Omron CJ - 09-2009 Operation Manual page 648

Programmable controllers
Table of Contents

Advertisement

Auxiliary Area
Address
Name
Words
Bits
A203 to
All
Communica-
A210
tions Port
Completion
Codes
A213
A21300
Explicit Com-
to
munications
A21307
Error Flag
A214
A21400
First Cycle
to
Flags after
A21407
Network Com-
munications
Finished
600
Function
These words contain the completion codes for the
corresponding port numbers when network instruc-
tions (SEND, RECV, CMND, or PMCR) or back-
ground execution (CJ1-H CPU Units only) have been
executed.
(The corresponding word will be cleared when back-
ground execution has been completed for CJ1-H
CPU Units.)
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 num-
ber is executed.)
(When the simple backup operation is used to per-
formed a write or compare operation for a Memory
Card on a CS1-H CPU Unit, a communications port
will be automatically allocated, and a completion
code will be stored in the corresponding word.)
(The completion code for a given port is cleared to
0000 when a network instruction with that port num-
ber is executed.)
(When the simple backup operation is used to per-
formed a write or compare operation for a Memory
Card on a CJ1-H or CJ1M CPU Unit, a communica-
tions port will be automatically allocated, and a com-
pletion code will be stored in the corresponding
word.)
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.
1: Error end
0: Normal end
The corresponding bit will turn ON both when the
explicit message cannot be sent and when an error
response is returned for the explicit message.
The status will be maintained until the next explicit
message communication 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 commu-
nications have been completed. Bits 00 to 07 corre-
spond 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
Note: These flags are not effective until the next
cycle after the communications instruction is exe-
cuted. Delay accessing them for at least one cycle.
Appendix C
Status
Status
Write timing/
after
at star-
Related flags,
mode
tup
settings
change
Cleared
---
---
Cleared
---
A21900 to A21907
A203 to A210
Retained Cleared
---

Advertisement

Table of Contents
loading

Table of Contents