GETPOINTADR action
Related pages:
GETPOINTADR pointIdent, adr1_Txt, adr2_Txt, retIdent_Int
pointIdent | in | Reference to a I/O tag type object. |
adr1_Txt | out | Identifier
of Text type. |
adr2_Txt | out | Identifier of Text type. |
retIdent_Int | out | Identifier of Int type - return code. |
If the detection of an address is successful, then the value of the parameter retIdent_Int is 0 and the parameters adr1_Txt, adr2_Txt get the particular values.
BEGIN INT _retIdent TEXT _adr1, _adr2 GETPOINTADR M.bod, _adr1, _adr2, _retIdent IF _retIdent = _ERR_NO_ERROR THEN MESSAGE "Address of I/O tag M.bod:" + _adr1 + ", " + _adr2 ON srvskol1v.HIP ELSE MESSAGE "Failed to find the address of I/O tag M.bod" ON srvskol1v.HIP ENDIF END
Related pages:
Pridať komentár