Omron DeviceNet CV Series Operation Manual page 269

Devicenet slaves
Table of Contents

Advertisement

C200H I/O Link Units
Using CMND to Write Data
(CS-series and CV-series)
252
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: CustomerService@valin.com
Word
C+3
3F FE
C+4
00 00
C+5
00 64
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:
Slave network address: 1
Slave node address:
Example: Using the CMND Instruction
Command Words (S: First Command Word)
Word
S
28 01
S+1
02 1E
S+2
00 2F
S+3
00 01
S+4
0A 00
S+5
HH LL
to
to
S+24
HH LL
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
Word
D
28 01
D+1
00 00
Contents (Hex)
Master's node address: 63
Master's Unit address: FE Hex
Response returned, communications port
No.: 0, No. of retries: 0
Response monitoring time: 10 s
63
2
Contents (Hex)
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
Slave node address: 2
BYTE DATA WRITE command service code:
1E Hex
Class ID: 002F Hex
Instance ID: For IR Area 1: 0001 Hex
Write start address: 10 = 000A Hex
Address L: 0A Hex, Address H: 00 Hex
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.
Contents (Hex)
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
Response code (0000 Hex: Normal comple-
tion)
Section 6-1
Meaning
Meaning
Meaning

Advertisement

Table of Contents
loading

Table of Contents