IReaderGroupDiagnostics.GetInstancePointer (METH) ¶ METHOD GetInstancePointer : POINTER TO ReaderGroupDiagnostics Converts the Interface Reference to the Instance Pointer The InstancePointer can be used to access the value of each output variable. Example pReaderGroupDiagnostics : POINTER TO ReaderGroupDiagnostics ; pDiagnosticsCounter : POINTER TO DiagnosticsCounter ; udiValue : UDINT ; pReaderGroupDiagnostics := itfDiagnostics.GetInstancePointer (); pDiagnosticsCounter := pReaderGroupDiagnostics ^. itfTotalError.GetInstancePointer (); udiValue := pDiagnosticsCounter ^. udiValue InOut: Scope Name Type Return GetInstancePointer POINTER TO ReaderGroupDiagnostics Output eErrorID ERROR
IRootDiagnostics.GetInstancePointer (METH) ¶ METHOD GetInstancePointer : POINTER TO RootDiagnostics Converts the Interface Reference to the Instance Pointer The InstancePointer can be used to access the value of each output variable. Example pRootDiagnostics : POINTER TO RootDiagnostics ; pDiagnosticsCounter : POINTER TO DiagnosticsCounter ; udiValue : UDINT ; pRootDiagnostics := itfDiagnostics.GetInstancePointer (); pDiagnosticsCounter := pRootDiagnostics ^. itfTotalError.GetInstancePointer (); udiValue := pDiagnosticsCounter ^. udiValue InOut: Scope Name Type Return GetInstancePointer POINTER TO RootDiagnostics Output eErrorID ERROR
IWriterDiagnostics.GetInstancePointer (METH) ¶ METHOD GetInstancePointer : POINTER TO WriterDiagnostics Converts the Interface Reference to the Instance Pointer The InstancePointer can be used to access the value of each output variable. Example pWriterDiagnostics : POINTER TO WriterDiagnostics ; pDiagnosticsCounter : POINTER TO DiagnosticsCounter ; udiValue : UDINT ; pWriterDiagnostics := itfDiagnostics.GetInstancePointer (); pDiagnosticsCounter := pWriterDiagnostics ^. itfTotalError.GetInstancePointer (); udiValue := pDiagnosticsCounter ^. udiValue InOut: Scope Name Type Return GetInstancePointer POINTER TO WriterDiagnostics Output eErrorID ERROR
IWriterGroupDiagnostics.GetInstancePointer (METH) ¶ METHOD GetInstancePointer : POINTER TO WriterGroupDiagnostics Converts the Interface Reference to the Instance Pointer The InstancePointer can be used to access the value of each output variable. Example pWriterGroupDiagnostics : POINTER TO WriterGroupDiagnostics ; pDiagnosticsCounter : POINTER TO DiagnosticsCounter ; udiValue : UDINT ; pWriterGroupDiagnostics := itfDiagnostics.GetInstancePointer (); pDiagnosticsCounter := pWriterGroupDiagnostics ^. itfTotalError.GetInstancePointer (); udiValue := pDiagnosticsCounter ^. udiValue InOut: Scope Name Type Return GetInstancePointer POINTER TO WriterGroupDiagnostics Output eErrorID ERROR
Structs ¶ ArrayType (Struct) Index (Struct) UIndex (Struct) UMeta (Struct) VersionTime (Struct)
ArrayType (STRUCT) ¶ TYPE ArrayType : STRUCT InOut: Name Type udiRank UDINT pDimension POINTER TO ARRAY [0..0] OF UDINT pValues POINTER TO ARRAY [0..0] OF Index
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
UIndex (STRUCT) ¶ TYPE UIndex : STRUCT A Variant is a part of a union and references other Index structures 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 pVariant POINTER TO Index First Element of the Variant Array udiMaxField UDINT Max index of Variants Array
UMeta (STRUCT) ¶ TYPE UMeta : 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 pudiSwitch POINTER TO UDINT reference to a value to specify the current variant pVariants POINTER TO UIndex First Element of the Variant Array udiMaxVariant UDINT max index of Variants Array
VersionTime (STRUCT) ¶ TYPE VersionTime : STRUCT The VersionTime Data Type is defined in Part 4 of OPC UA Specification. To assure interoperability, the Subscriber has to use DataSet Meta Data for decoding with a MajorVersion that matches the MajorVersion in DataSetMessages sent by the Publisher . Removing fields from the DataSet content, reordering fields, adding fields in between other fields or a Data Type change in fields shall result in an update of the MajorVersion . See: VersionTime at OPC Foundation InOut: Name Type Comment udiMajorVersion UDINT The MajorVersion reflects the time of the last major change of the DataSet content udiMinorVersion UDINT The MinorVersion reflects the time of the last change of the DataSet content