ValueCreationModes Enumeration
Creation mode for Values
Namespace: TwinCAT.ValueAccess
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229
Syntax
C#
[FlagsAttribute]
public enum ValueCreationModes
Members
|
Member name |
Value |
Description |
---|---|---|---|
None |
0 |
None / Uninitialized Mask | |
Primitives |
1 |
Convert to .NET Primitives, wherever possible. | |
Enums |
2 |
Use IEnumValue on EnumTypes instead of .NET Primitives | |
FullDynamics |
4 |
Wraps all Primitives also in IValue Objects | |
PlcOpenTypes |
8 |
Use PlcOpen Times (TIME, LTIME, DT, TOD, DATETIME) instead of .NET Primitives DateTime and TimeSpan | |
Default |
1 |
Default settings for the value creation mode (Translate to Primitives) |
Remarks
This setting is used by the ValueFactory/ to create Read values. In default primitive mode all values will be transferred to Primitive .NET Symbols if possible. E.g PlcOpen.TIME --> TimeSpan, IEnumValue --> .NET Primitives. They won't be wrapped into