252
C200H I/O Link Units
Section 6-1
Using CMND to Write Data
(CS-series and CV-series)
In the following example, the CMND instruction is used to write data to words
CIO 10 to CIO 29 (20 words) on the Slave Unit from the Master in a CS-series
or CV-series PLC.
Note
If a CS-series PLC is being used, this example is applicable only when a CS-
series Master Unit is mounted. Use the IOWR instruction when a C200HX/
HG/HE or C200HS Master Unit is mounted. In this case, refer to the
DeviceNet Master Unit Operation Manual
for details on using the IOWR
instruction.
For more detailed information on explicit messages, refer to the
DeviceNet
Master Unit Operation Manual
. For information on the CMND instruction, refer
to the PLC’s
Operation Manual
or
Programming Manual
.
Example Conditions
Master node address:
63
Slave network address: 1
Slave node address:
2
Example: Using the CMND Instruction
Command Words (S: First Command Word)
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
C+3
3F FE
Master’s node address: 63
Master’s Unit address: FE Hex
C+4
00 00
Response returned, communications port
No.: 0, No. of retries: 0
C+5
00 64
Response monitoring time: 10 s
Word
Contents (Hex)
Meaning
Word
Contents (Hex)
Meaning
S
28 01
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
S+1
02 1E
Slave node address: 2
BYTE DATA WRITE command service code:
1E Hex
S+2
00 2F
Class ID: 002F Hex
S+3
00 01
Instance ID: For IR Area 1: 0001 Hex
S+4
0A 00
Write start address: 10 = 000A Hex
Address L: 0A Hex, Address H: 00 Hex
S+5
HH LL
Data written to the Slave’s IR10 to IR29.
When the BYTE DATA WRITE command is
used from an OMRON Master, data is written
to the Slave in the same sequence it is
stored in the Master; leftmost byte to right-
most byte.
to
to
S+24
HH LL
Word
Contents (Hex)
Meaning
D
28 01
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
D+1
00 00
Response code (0000 Hex: Normal comple-
tion)
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: [email protected]
Summary of Contents for CS1W-DRM21
Page 3: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 7: ...vi Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 11: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 47: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 315: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 337: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 339: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 371: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 373: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 378: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Page 379: ...W347 E1 6 Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...