ValueCreationMode Enumeration

Creation mode for Values

Namespace:  TwinCAT.ValueAccess
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

[FlagsAttribute]
public enum ValueCreationMode

VB

<FlagsAttribute>
Public Enumeration ValueCreationMode

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

Reference

TwinCAT.ValueAccess Namespace