![background image](http://html1.mh-extra.com/html/omron/cpm2c-s100c/cpm2c-s100c_operation-manual_742520153.webp)
131
Explicit Message Communications
Section 6-3
C200HX/HG/HE PCs: Reading Data with IOWR(––)
This example shows the instruction operands and results when 20 words of
data (IR 010 to IR029) in a Slave are read through a Master mounted in a
C200HX/HG/HE PC and stored in words DM 2000 to DM 2019.
Refer to the
DeviceNet Masters Operation Manual
(W379) for details on
explicit messages and refer to the
C200HX/HG/HE Programmable Controllers
Operation Manual
(W303) for details on IOWR(––).
Example Network
Conditions
The Master’s node number is 63, the Slave’s network address is 0, and the
Slave’s node number is 2.
IOWR(––) Operand Details
• Control Code
• Command Words (Source information)
• Destination Information
• Response Words (The results are stored as follows.)
[IOWR
C
S
D]
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
C200HX/HG/HE Operation Manual
(W303) for
details.)
S+1
D0 00
S+2
00 64
Response monitoring time = 64 (Hex) specifies 10.0 seconds
S+3
00 0B
Number of bytes of command data beginning with word S+4 =
0B (Hex) specifies 11 bytes
S+4
28 01
EXPLICIT MESSAGE SEND command code = 2801 (Hex)
S+5
02 1C
Slave node number = 02 (Hex)
READ BYTE DATA command service code = 1C (Hex)
S+6
00 2F
Class ID = 002F (Hex)
S+7
00 01
Instance ID = 0001 (Hex) specifies data area
S+8
0A 00
Starting read address = 000A (Hex) specifies IR 010
Address L = 0A (Hex); Address H = 00 (Hex)
S+9
28 00
Number of bytes = 28 (Hex) specifies 40 bytes
(The rightmost byte of S+5 is not used.)
Word
Contents
(Hex)
Function
D
00 10
Master Unit’s unit number = 00
Number of words of command data beginning with word S = 10
(BCD) specifies 10 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 2A
Number of bytes received = 2A (Hex) indicates 42 bytes
(This is the number of bytes from D+3 to the end.)
DM 2003
02 9C
Slave’s node number = 02 (Hex)
READ BYTE DATA response service code = 9C (Hex)
DM 2004
to
DM 2023
HH LL
:
HH LL
These words contain the data read from slave words IR 010
to IR 029. When the READ BYTE DATA command is exe-
cuted from an OMRON Master, the bytes are stored in the
same order (HH LL) in which they were stored in the Slave.
Содержание 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: ......