EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 939

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
906
Network Instructions Section 3-24
Example 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.
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.
Communications
Port Error Flag
A219.00 to
A219.07
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.
Communications
Port Completion
Codes
A203 to
A210
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.
Name Address Operation
0.00
S
D
C
ECHRD
D0
D100
D200
Communications
Port Enabled Flag (Port 6)
A202.06
CP1H
CJ1W-DRM21 DeviceNet Uni
t
(CPU Bus Unit with unit number 2)
Node address 07
CJ1W-DRM21 DeviceNet Unit
CPU Unit
ECHRD(723)
instruction
DeviceNet
Unit address 12 hex (because
the unit number is 2)
Ex
p
licit messa
g
e
15 0
D: D100
D+1: D100
D+2:
15 0
S: D0
S+1: D1
S+2: D2

Table of Contents

Related product manuals