GETPOINTADR

GETPOINTADR

GETPOINTADR action


Function

The action gets the address of given I/O tag.

Declaration

GETPOINTADR pointIdent, adr1_Txt, adr2_Txt, retIdent_Int

 

Parameters

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.

 

Description

The action detects the address of the I/O tag defined by the parameter pointIdent. Address is represented by two strings (adr1_Txt, adr2_Txt).

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.

 

Example

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:

Script actions