Index (STRUCT)ΒΆ

TYPE Index : STRUCT

Take a look to the example PubSubDataSet.project to see how to use this struct in the context of a DataSet

InOut:

Name

Type

Comment

eType

IEC_TYPE

item type

pValue

POINTER TO BYTE

target/source location

udiSize

UDINT

(max) size of this item in the data set message
With the exception of the types STRING and WSTRING this value is calculated by the library.
If eType is set to IEC_TYPE.TYPE_BIT then this value is interpreted as
  • Bit 30+31: BIT_SIZE

  • Bit 0-7: Bit Offset (0..63) in pValue

udiOffset

UDINT

offset inside data set message
this value is calculated by the library