Omron SYSMAC CPM2B-S001M-DRT Operation Manual page 123

Table of Contents

Advertisement

Explicit Message Communications
C200HX/HG/HE PCs: Reading Data with IOWR(– –)
Example Network
Conditions
IOWR(– –) Operand Details
[IOWR
Downloaded from
Elcodis.com
electronic components distributor
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 (CompoBus/D) Masters Operation Manual for details
on explicit messages and refer to the C200HX/HG/HE Programmable Control-
lers Operation Manual for details on IOWR(– –).
The Master's node number is 63, the Slave's network address is 0, and the
Slave's node number is 2.
C
S D]
• Control Code
Word
Contents
(Hex)
C
3F FE
• Command Words (Source information)
Word
Contents
(Hex)
S
82 07
S+1
D0 00
S+2
00 64
S+3
00 0B
S+4
28 01
S+5
02 1C
S+6
00 2F
S+7
00 01
S+8
0A 00
S+9
28 00
• Destination Information
Word
Contents
(Hex)
D
00 10
• Response Words (The results are stored as follows.)
Word
DM 2000
28 01
DM 2001
00 00
DM 2002
00 2A
DM 2003
02 9C
DM 2004
HH LL
to
DM 2023
HH LL
Master's node number = 3F (Hex) specifies 63
Master's unit address = FE (Hex) specifies the local Unit
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 for details.)
Response monitoring time = 64 (Hex) specifies 10.0 seconds
Number of bytes of command data beginning with word S+4 =
0B (Hex) specifies 11 bytes
EXPLICIT MESSAGE SEND command code = 2801 (Hex)
Slave node number = 02 (Hex)
READ BYTE DATA command service code = 1C (Hex)
Class ID = 002F (Hex)
Instance ID = 0001 (Hex) specifies data area
Starting read address = 000A (Hex) specifies IR 010
Address L = 0A (Hex); Address H = 00 (Hex)
Number of bytes = 28 (Hex) specifies 40 bytes
(The rightmost byte of S+5 is not used.)
Master Unit's unit number = 00
Number of words of command data beginning with word S = 10
(BCD) specifies 10 words
Contents
(Hex)
EXPLICIT MESSAGE SEND command code = 2801 (Hex)
Normal completion code = 0000 (Hex)
Number of bytes received = 2A (Hex) indicates 42 bytes
(This is the number of bytes from D+3 to the end.)
Slave's node number = 02 (Hex)
READ BYTE DATA response service code = 9C (Hex)
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.
Section 7-3
Function
Function
Function
Function
111

Advertisement

Table of Contents
loading

Table of Contents