Omron CPM2C-S100C Operation Manual page 155

Sysmac cpm2c-s series
Table of Contents

Advertisement

Explicit Message Communications
C200HW Master in a CS Series PC: Reading Data with IOWR
Example Network
Conditions
IOWR(––) Operand Details
[IOWR
C
S W]
This example shows the instruction operands and results of the IOWR com-
mand when 20 words of data are read from IR 010 to IR 029 in a Slave, and
written to response words from DM 2000 to the end in a Master mounted in a
CS-series PC.
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(––).
Master's node number:
Slave's node number:
• Control Code
Word
Contents
(Hex)
C
3F FE
Master's node number = 3F (Hex) specifies 63
Master's unit address = FE (Hex) specifies the local Unit
• Command Words
Word
Contents
(Hex)
S
82 07
Specifies starting response word = DM 2000
S+1
D0 00
82 (Hex) specifies the DM area
07D0 (Hex) specifies address 2000
(Refer to the CS Series Operation Manual (W339) for details.)
S+2
00 64
Response monitoring time = 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 of data to read = 28 (Hex) specifies 40 bytes
• Destination Information
Word
Contents
(Hex)
W
00 00
Master Unit's unit number = 00 (Hex) specifies 0
W+1
00 10
Number of words of command data beginning with word S+0 =
10 (BCD) specifies 10 words
• Response Words (The results are stored as follows.)
Word
Contents
(Hex)
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
HH LL
These words contain the data to be read from Slave
words IR 010 to IR 029.
When the READ BYTE DATA command is executed from an
OMRON Master, the bytes are written to the Master in the
same order (HH LL) in which they appear in the Slave.
(––)
63
2
Function
Function
Function
Function
Section 6-3
133

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpm2c-s110cCpm2c-s100c-drtCpm2c-s110c-drt

Table of Contents