How to a read a node which it's value (astring)-1 from motion (motion/state/kin-list) to PLC.
In the Datalayer library there's DL.NodeValue.GetTypeAsString. Is that something related to what I'm trying to read? Is there any examples how to use it?
How to a read a node which it's value (astring)-1 from motion (motion/state/kin-list) to PLC.
In the Datalayer library there's DL.NodeValue.GetTypeAsString. Is that something related to what I'm trying to read? Is there any examples how to use it?
To read a data layer node that is just a string you can use DL_ReadNode and just pass a string to the Value input. It uses an AnyType as the Value input, so if the data layer type matches the type it was passed in it will write the value to the string.
something like
Var
__readNode : DL_ReadNode
__StringReadVal : STRING
__size : DINT
__bExecute : BOOL;
END_VAR
readNode (Execute := __bExecute,
NodeName :=<data layer address with string value>,
Value := __StringReadVal,
Size => __size);