973
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Network Instructions
3
ECHRD
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.
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.
0.00
S
D
C
@ECHRD
D0
D100
D200
Communications
Port Enabled Flag (Port 6)
A202.06
CJ1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
Node address 07
CS1W-DRM21 DeviceNet Unit
CPU Unit
ECHRD(723)
instruction
DeviceNet
CPU
Unit
Unit address 12 hex (because
the unit number is 2)
Explicit
message
15 8 7 0
D200 0 0 0 7
C+1: D201 0 0 0 3
C+2: D202 0 6 1 2
C+3: D203 0 0 0 0
C+4: D204 0 0
0
0
C:
Node address of remote CPU Unit to be read = 07 hex (node 07)
Read data size (number of words) = 3 hex
Communications port = 6 hex (port 6),
and the DeviceNet Unit’s unit address = 12 hex
Response monitoring time = 0000 hex (2 s)
Explicit format type = 0000 hex (DeviceNet format)
15 0
D: D100
D+1: D100
D+2:
15 0
S: D0
S+1: D1
S+2: D2