852
Network Instructions Section 3-24
Note (1) Use the following flowchart to determine whether to use the Network
Communications Port Allocation Enabled Flag (A20215) and the Network
Communications Completion Code Storage Address (A216 and A217).
(2) The Auxiliary Area bits and words used for user-specified communica-
tions ports are listed in the following table.
A215 00 to 07 First Cycle Flags after Network
Communications Error
Each flag will turn ON for just one cycle after a communications
error occurs. Bits 00 to 07 correspond to ports 0 to 7. Use the Used
Communications Port Number stored in A218 to determine which
flag to access.
Note These flags are not effective until the next cycle after the com-
munications instruction is executed. Delay accessing them for
at least one cycle.
08 to 15 Do not use.
A216
and
A217
--- Network Communications
Completion Code Storage
Address
The completion code for a communications instruction is automati-
cally stored at the address with the I/O memory address given in
these words. Place this address into an index register and use indi-
rect addressing through the index register to reach the communica-
tions completion code.
A218 --- Used Communications Port
Number
When a communications instruction is executed, the number of the
communications port that was used is stored in this word. Values
0000 to 0007 hex correspond to communications ports 0 to 7.
Address Bits Name Description
YES
NO
NO
YES
Use A202.15 and perform exclu-
sive control.
Using more than 8 com-
munications ports?
Communications comple-
tion codes required?
Use A216 and A217 with indirect
addressing via an index register to
check the code.
Use automatic communications
port allocation.
Address Bits Name Description
A202 00 to 07 Communications Port Enabled
Flags
ON when a communications instruction can be executed with the
corresponding port number. Bits 00 to 07 correspond to communica-
tions ports 0 to 7.
The completion of communications can be confirmed by monitoring
when a flag turns ON. The flag will turn OFF when execution of a
communications instruction is started.
A203 to
A210
--- Communications Port Comple-
tion Codes
These words contain the completion codes for the corresponding
port numbers when communications instructions have been exe-
cuted. Words A203 to A210 correspond to communications ports 0
to 7.
A219 00 to 07 Communications Port Error
Flags
ON when an error occurred during execution of a communications
instruction. When a flag is ON, check the completion code in A203
to A210 to troubleshoot the error.
Turn OFF then execution has been finished normally. Bits 00 to 07
correspond to communications ports 0 to 7.