254
C200H I/O Link Units Section 6-1
D: Destination Information
Results are stored as shown in the following table.
Response Storage Words
Results are stored as shown in the following table.
Using the IOWR
Instruction (C200HX/HG/
HE PLCs) to Write Data
In the following example, the IOWR instruction is used to write data to words
IR 010 to IR 029 (20 words) on the Slave Unit, from the Master (C200HX/HG/
HE PLCs). For more detailed information on explicit messages, refer to the
DeviceNet Master Unit Operation Manual or for information on the IOWR
instruction, refer to the SYSMAC C200HX/HG/HE PLCs Operation Manual.
Example Conditions
Master node address: 63
Master’s Unit address: 0
Slave node address: 2
Example: Using IOWR
C: Control Words (C: First Control Word)
S+7 00 01 Instance ID: For IR Area 1: 0001 Hex
S+8 0A 00 Read start address: 10 = 000A Hex
Address L: 0A Hex, Address H: 00 Hex
S+9 28 00 No. of bytes of read data: 40 bytes = 28 Hex
(The rightmost byte is not used.)
Word Contents (Hex) Meaning
D 00 10
(0 010)
Master’s Unit address: 0, No. of words of
command data: 10 words (specified in BCD)
(No. of words from S onwards)
Word Contents (Hex) Meaning
DM 2000 28 01 EXPLICIT MESSAGE SEND command
code: 28 01 Hex
DM 2001 00 00 Response code (0000 Hex: Normal comple-
tion)
DM 2002 00 2A No. of received bytes (data length after
DM 2003): 42 bytes
DM 2003 02 9C Slave node address: 2
BYTE DATA READ response service code:
9C Hex
DM 2004 to
DM 2023
HH LL... Data read from the Slave’s IR 010 to IR 029.
When the BYTE DATA READ command is
used from an OMRON Master, data is stored
in the Master in the same sequence as the
Slave; leftmost byte to rightmost byte.
Word Contents (Hex) Meaning
Word Contents (Hex) Meaning
C 3F FE Master’s node address: 63
Master’s Unit address: FE Hex