Item (FB)ΒΆ
FUNCTION_BLOCK PUBLIC FINAL Item IMPLEMENTS IOPCUAClientMonitoredItemCallback
This function module represents an item inside a Subscription.
Usage example:
_aItems : ARRAY[0..1] OF UA.Item := [
(
eType := UA.IEC_UDINT,
pValue := ADR(udiValue),
psNodeId := ADR('ns=4;s=pathudiValue')
),
(
eType := UA.IEC_STRING,
pValue := ADR(sValue),
udiSize := SIZEOF(sValue),
psNodeId := ADR('ns=4;s=path.sValue')
)
];
- InOut:
Scope
Name
Type
Initial
Comment
Input
eTypeitem type
pValuePOINTER TO BYTE
target location of IEC value
If eType = IEC_ARRAY pValue is a pointer to ArrayValueIf eType = IEC_STRUCT pValue is a pointer to StructValueIf eType = IEC_UNION pValue is a pointer to UnionValueudiSizeUDINT(max) size of this item.with the exception of the types[UWX]?STRINGthis value is calculated by the library.If eType = IEC_ARRAY udiSize should be SIZEOF(UA.ArrayValue)If eType = IEC_STRUCT udiSize should be SIZEOF(ARRAY[0..n] OF UA.StructValue)If eType = IEC_UNION udiSize should be SIZEOF(UA.UnionValue)psNodeIdPOINTER TO NODEID
NodeId of the variable related to the servers address space
lrIntervalLREALxEnabledBOOLTRUE
psEncodingIdPOINTER TO NODEID
EncodingId of the variables type related to the servers address spaceOnly neccecary for top level descriptions of aSTRUCTmemberOutput
eErrorThe error code of the last event;
Methods:
Structure: