xLadder user manual-V2.0.0.6

6.3 Communication

6.3.1 Get port address

Operand

Input / output

Data type

ADDR

VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *LD, *AC

byte

Constant ( 0 or1 )

PORT

byte

The GET - ADDR instruction reads the PLC port site from the

PORT , and put the value in the address specified in the ADDR.

6.3.2 Set port address

Operand

Input / output

Data type

ADDR

VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *LD, *AC

byte

Constant ( 0 or 1 )

PORT

byte

SET - ADDR instruction set the PORT site to the value specified

in the ADDR.

The new address is not permanently saved.

Example:

84

Made with FlippingBook - Online magazine maker