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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Network Instructions
Example
906
Name
Address
Communications
A219.00 to
Port Error Flag
A219.07
Communications
A203 to
Port Completion
A210
Codes
In this example, ECHRD(723) is used to read the I/O memory of a CJ-series
CPU Unit on the DeviceNet network, and store the data in the I/O memory of
the local CPU Unit.
Communications
Port Enabled Flag (Port 6)
0.00
A202.06
When CIO 0.00 and A202.06 (the Communications Port Enabled Flag for port
6) are ON, ECHRD(723) reads D0 to D2 from the I/O memory of the CJ-
series CPU Unit with node address 7 on the DeviceNet Network and stores
the data in D100 to D102 of the local CPU Unit.
ECHRD(723)
instruction
CJ1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
CP1H
Unit address 12 hex (because
the unit number is 2)
Explicit message
15
D:
D100
D+1:
D100
D+2:
These flags are turned ON to indicate that the
explicit message itself was not sent from the cor-
responding ports (00 to 07) during execution of
an explicit message instruction.
The flag status is retained until the next network
instruction is executed. The flag will be turned
OFF when the next instruction is executed even if
an error occurred previously.
These words contain the completion codes for the
corresponding ports (00 to 07) following execu-
tion of a network instruction.
The corresponding word will contain 0000
while the Explicit Communications Error Flag
is OFF.
The corresponding word will contain a FINS
error code when that port's Explicit Communi-
cations Error Flag and Communications Port
Error Flag are both ON.
The corresponding word will contain the
appropriate explicit message error code when
that port's Explicit Communications Error Flag
is ON and the Communications Port Error
Flag is OFF.
The corresponding word will contain 0000 while
the network instruction is being executed and the
completion code will be written when the instruc-
tion is completed. These words are cleared when
program execution begins.
ECHRD
S
D0
D
D100
C
D200
CJ1W-DRM21 DeviceNet Unit
DeviceNet
0
15
S:
D0
S+1:
D1
S+2:
D2
Section 3-24
Operation
CPU Unit
Node address 07
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents