Omron CJ2 - 02-2010 User Manual page 585

Cj2 cpu unit software
Table of Contents

Advertisement

Address
Name
Words
Bits
A203
---
Communications
to
Port Completion
A210
Codes
A211
---
Number of Ports
Available for CJ2
Network Com-
munications
Instruction
A213
A213.00
Explicit Commu-
to
nications Error
A213.07
Flag
A214
A214.00
First Cycle Flags
to
after Network
A214.07
Communications
Finished
A215
A215.00
First Cycle Flags
to
after Network
A215.07
Communications
Error
CJ2 CPU Unit Software User's Manual
Function
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.
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.
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.
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.
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.
Appendices
Status
Write timing/
Status at
after mode
Related flags, set-
startup
change
tings
Cleared
---
---
---
Updated
---
accord-
ing to
internal
status
(cleared).
Cleared
---
A219.00 to A219.07
A203 to A210
Retained
Cleared
---
Retained
Cleared
---
A-109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents