Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 885

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Network Instructions
Address
Bits
A215
00 to 07 First Cycle Flags after Network
Communications Error
08 to 15 Do not use.
A216
---
Network Communications
and
Completion Code Storage
A217
Address
A218
---
Used Communications Port
Number
Note
Address
Bits
A202
00 to 07 Communications Port Enabled
Flags
A203 to
---
Communications Port Comple-
A210
tion Codes
A219
00 to 07 Communications Port Error
Flags
852
Name
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.
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.
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.
(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).
Using more than 8 com-
munications ports?
NO
Communications comple-
tion codes required?
NO
Use automatic communications
port allocation.
(2) The Auxiliary Area bits and words used for user-specified communica-
tions ports are listed in the following table.
Name
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.
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.
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.
Description
YES
Use A202.15 and perform exclu-
sive control.
Use A216 and A217 with indirect
YES
addressing via an index register to
check the code.
Description
Section 3-24

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents