3. Instructions
912
CS/CJ/NSJ Series Instructions Reference Manual (W474)
User Specification of Communications Ports
The communications port can be specified in the control data of the Network Communications
Instruction.
The same communications port cannot be used in any other instruction until processing this instruction
has been completed. Exclusive control of the communications port is necessary.
z Auxiliary Area Words and Bits Used for User Specification of Communications
Ports
z Flag/Word Operation
Address Bits Name Description
A202 00 to 07 Communications Port
Enabled Flags
Turns ON when a communications instruction can be executed. Bits 00 to 07 correspond to
ports 0 to 7. You can tell when communications have been completed because the
Communications Port Enabled Flag will turn ON again after the completing execution of the
communications instruction. The Communications Port Error Flag will be OFF while the
communications instruction is being executed.
A203 to A210 --- Communications Port
Completion Codes
These words contain the completion codes for the corresponding port numbers when
communications instructions have been executed. Words A203 to A210 correspond to
communications ports 0 to 7.
A219 00 to 07 Communications Port Error
Flags
Turns ON when a communications error occurs during execution of network
communications. If the Communications Port Error Flag turns ON, refer to the
Communications Port Completion Code in (A203 to A210) to identify the cause of the error.
Bits 00 to 07 correspond to communications ports 0 to 7. The Communications Port Error
Flag will be OFF while the communications instruction is being executed.
ON for one cycle
ON for one cycle
Cleared to zeros
Response stored
Communications Port Enabled
Flag (A202.00 to A202.07)
Normal completion:
Communications Port
Completion Code (A203 to A210)
Error completion:
Communications Port Error
Flag (A219.00 to A219.07)
First Cycle Flag after Network
Communications Error
(A215.00 to A215.07)
Communications
instruction
executed.
Communications
completed.
First Cycle Flags after
Network Communications
Finished (A214.00 to A214.07)