
134
Explicit Message Communications
Section 6-3
C200HW Master in a CS Series PC: Writing Data with IOWR
(––)
This example shows the instruction operands and results of the IOWR com-
mand when 20 words of data are written from a Master mounted in a CS-
series PC to words IR 200 to IR 219 in a Slave.
Refer to the
DeviceNet Masters Unit Operation Manual
(W379) for details on
explicit messages, and refer to the
SYSMAC CS/CJ Series Communications
Commands Reference Manual
(W342) for details on IOWR(––).
Example Network
Conditions
Master’s node number:
63
Slave’s node number:
2
IOWR(––) Operand Details
• Control Code
• Command Words
• Destination Information
• Response Words (The results are stored as follows.)
[IOWR
C
S
W]
Word
Contents
(Hex)
Function
C
3F FE
Master’s node number = 3F (Hex) specifies 63
Master’s unit address = FE (Hex) specifies the local Unit
Word
Contents
(Hex)
Function
S
82 07
Specifies starting response word = DM 2000
82 (Hex) specifies the DM area
07D0 (Hex) specifies address 2000
(Refer to the
CS Series Operation Manual
(W339) for details.)
S+1
D0 00
S+2
00 64
Response monitoring time = 10.0 seconds
S+3
00 32
Number of bytes of command data beginning with word S+4 =
32 (Hex) specifies 50 bytes
S+4
28 01
EXPLICIT MESSAGE SEND command code = 2801 (Hex)
S+5
02 1E
Slave node number = 02 (Hex)
WRITE BYTE DATA command service code = 1E (Hex)
S+6
00 2F
Class ID = 002F (Hex)
S+7
00 02
Instance ID = 0002 (Hex) specifies data area 2
S+8
C8 00
Starting write address = 00C8 (Hex) specifies IR 200
Address L = C8 (Hex); Address H = 00 (Hex)
S+9
to
S+28
HH LL
:
HH LL
These words contain the data to be written to Slave words
IR 200 to IR 219. When the WRITE BYTE DATA command is
executed from an OMRON Master, the bytes are written to the
Slave in the same order (HH LL) in which they appear in the
Master.
Word
Contents
(Hex)
Function
W
00 00
Master Unit’s unit number = 00 (Hex)
W+1
00 29
Number of words of command data beginning with word S+0 =
29 (BCD) specifies 29 words
Word
Contents
(Hex)
Function
DM 2000
28 01
EXPLICIT MESSAGE SEND command code = 2801 (Hex)
DM 2001
00 00
Normal completion code = 0000 (Hex)
DM 2002
00 02
Number of bytes received = 02 (Hex) indicates 2 bytes
(This is the number of bytes from D+3 to the end.)
DM 2003
02 9E
Slave’s node number = 02 (Hex)
WRITE BYTE DATA response service code = 9E (Hex)
Содержание CPM2C-S100C
Страница 2: ......
Страница 3: ...CPM2C S Programmable Controller Operation Manual Revised September 2009 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 14: ...xiv ...
Страница 180: ...158 One to one PC Link I O Response Time Section 7 4 ...
Страница 222: ...200 Programming Example Section 8 3 ...
Страница 250: ......
Страница 256: ......
Страница 258: ......
Страница 260: ...238 Support Software Appendix C ...
Страница 268: ......