EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
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...
3. Instructions
976
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Hint
ECHWR(724) sends an explicit message with the Service Code 1E hex (Byte Data Write).
Example Programming
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.
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
0.00
S
D
C
@ECHWR
D0
D100
D200
Communications
Port Enabled Flag (Port 6)
A202.06
DeviceNet
CJ1W-DRM21 DeviceNet Unit
(CPU Bus Unit with unit number 2)
Node address 07
CS1W-DRM21 DeviceNet Unit
CPU Unit
ECHWR(724)
instruction
CPU
Unit
Explicit
message
Unit address 12 hex (because
the unit number is 2)
15 8 7 0
C: 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
Node address of remote CPU Unit to be written to = 07 hex (node 07)
Write 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)
D: D100
D+1: D101
D+2: D102
S: D0
S+1: D1
S+2: D2

Table of Contents

Related product manuals