Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 967

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents