Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 990

Table of Contents

Advertisement

3. Instructions
Hint
• ECHRD(723) sends an explicit message with the Service Code 1C hex (Byte Data Read).
Example Programming
In this example, ECHRD(723) is used to read the I/O memory of the 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
CS1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Explicit
message
15
D:
D100
D+1:
D100
D+2:
954
A202.06
@ECHRD
D0
S
D100
D
D200
C
CJ1W-DRM21 DeviceNet Unit
ECHRD(723)
instruction
DeviceNet
15
C:
D200
C+1:
D201
C+2:
D202
C+3:
D203
C+4:
D204
0
S:
S+1:
S+2:
When CIO 0.00 and A202.06 (the Communications Port
Enabled Flag for port 06) are ON, ECHRD(723) reads D0
to D2 from the I/O memory of the CJ-series CPU Unit
with node address 07 on the DeviceNet Network and
stores the data in D100 to D102 of the local CPU Unit.
CPU Unit
Node address 07
8 7
0
Node address of remote CPU Unit to be read = 07 hex (node 07)
0
0
0
7
Read data size (number of words) = 3 hex
0
0
0
3
Communications port = 6 hex (port 6),
0
6
1
2
and the DeviceNet Unit's unit address = 12 hex
Response monitoring time = 0000 hex (2 s)
0
0
0
0
Explicit format type = 0000 hex (DeviceNet format)
0
0
0
0
15
0
D0
D1
D2
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents