Appendices
A-114
CJ2 CPU Unit Software User’s Manual
A203
to
A210
--- Communications
Port Completion
Codes
These words contain the completion codes for the corresponding
port numbers when network instructions (SEND, RECV, CMND,
or PMCR) or background execution have been executed.
(The corresponding word will be cleared to 0000 hex when back-
ground execution has been completed.)
Words A203 to A210 correspond to communications ports 0 to 7.
Non-zero: Error code
0000: Normal condition
The following codes will be stored when an Explicit Message
Instruction (EXPLT, EGATR, ESATR, ECHRD, or ECHWR) has
been executed.
If the Explicit Communications Error Flag turns OFF, 0000 hex is
stored.
If the Explicit Communications Error Flag is ON and the Network
Communications Error Flag is ON, the FINS end code is stored.
If the Explicit Communications Error Flag is ON and the Network
Communications Error Flag is OFF, the explicit message end
code is stored.
During communications, 0000 hex will be stored and the suitable
code will be stored when execution has been completed. The
code will be cleared when operation is started.
(The completion code for a given port is cleared to 0000 when a
network instruction with that port number is executed.)
Cleared when an instruction is executed.
Cleared --- ---
A211 --- Number of Ports
Available for CJ2
Network Com-
munications
Instruction
When the number of CJ2 network communications instructions
that can be used reaches 0, A202.08 will turn OFF. This word can
be used only with the following instructions: SEND2, CMND2,
PMCR2, and RECV2.
The contents of this word can be used to check communications
traffic.
--- Updated
accord-
ing to
internal
status
(cleared).
---
A213 A213.00
to
A213.07
Explicit Commu-
nications Error
Flag
Turn ON when an error occurs in executing an Explicit Message
Instruction (EXPLT, EGATR, ESATR, ECHRD, or ECHWR).
Bits 00 to 07 correspond to communications ports 0 to 7.
ON: Error end
OFF: Normal end
The corresponding bit will turn ON both when the explicit mes-
sage cannot be sent and when an error response is returned for
the explicit message.
The status will be maintained until the next explicit message com-
munication is executed. The bit will always turn OFF when the
next Explicit Message Instruction is executed.
Cleared --- A219.00 to A219.07
A203 to A210
A214 A214.00
to
A214.07
First Cycle Flags
after Network
Communications
Finished
Each flag will turn ON for just one cycle after communications
have been completed. 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.
1: First cycle after communications finish only
2: Other status
These flags are not effective until the next cycle after the commu-
nications instruction is executed. Delay accessing them for at
least one cycle.
Use the port number specified in A218 (Used Communications
Port Numbers) to access the correct bit for the port being used.
Retained Cleared ---
A215 A215.00
to
A215.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. Determine the cause of the error according
to the Communications Port Completion Codes stored in A203 to
A210.
ON: First cycle after communications error only
OFF: Other status
These flags are not effective until the next cycle after the commu-
nications instruction is executed. Delay accessing them for at
least one cycle.
Use the port number specified in A218 (Used Communications
Port Numbers) to access the correct bit for the port being used.
Retained Cleared ---
Address
Name Function
Status
after mode
change
Status at
startup
Write timing/
Related flags, set-
tings
Words Bits