Omron DeviceNet CV Series Operation Manual page 271

Devicenet slaves
Table of Contents

Advertisement

C200H I/O Link Units
Using the IOWR
Instruction (C200HX/HG/
HE PLCs) to Write Data
254
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: CustomerService@valin.com
Word
Contents (Hex)
S+7
00 01
S+8
0A 00
S+9
28 00
D: Destination Information
Results are stored as shown in the following table.
Word
Contents (Hex)
D
00 10
(0 010)
Response Storage Words
Results are stored as shown in the following table.
Word
Contents (Hex)
DM 2000
28 01
DM 2001
00 00
DM 2002
00 2A
DM 2003
02 9C
DM 2004 to
HH LL...
DM 2023
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)
Word
Contents (Hex)
C
3F FE
Meaning
Instance ID: For IR Area 1: 0001 Hex
Read start address: 10 = 000A Hex
Address L: 0A Hex, Address H: 00 Hex
No. of bytes of read data: 40 bytes = 28 Hex
(The rightmost byte is not used.)
Meaning
Master's Unit address: 0, No. of words of
command data: 10 words (specified in BCD)
(No. of words from S onwards)
Meaning
EXPLICIT MESSAGE SEND command
code: 28 01 Hex
Response code (0000 Hex: Normal comple-
tion)
No. of received bytes (data length after
DM 2003): 42 bytes
Slave node address: 2
BYTE DATA READ response service code:
9C Hex
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.
Meaning
Master's node address: 63
Master's Unit address: FE Hex
Section 6-1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DeviceNet CV Series and is the answer not in the manual?

Table of Contents