RS-232C Units
Using IOWR to Read Data
(C200HX/HG/HE PLCs)
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: CustomerService@valin.com
Word
Contents (Hex)
S+4
28 01
S+5
0E 10
S+6
00 94
S+7
00 01
S+8
64 06
S+9
06 00
S+10
02 03
S+11
00 00
D: Transmission Information (Destination Unit and Number of Words).
Word
Contents (Hex)
D
05 12
Response Storage Words
Results are stored as shown in the following table.
Word
Contents (Hex)
DM2000
28 01
DM2001
00 00
DM2002
00 02
DM2003
0E 90
The following example shows how to use the IOWR instruction to read the
reception data of port 1 of the RS-232C Unit, from the Master Unit (C200HX/
HG/HE PLC). The maximum amount of data that can be read from an
OMRON DeviceNet Master at one time is 152 bytes.
Before using the RS-232C RECEIVE DATA READ command, be sure that the
communications status Received Flag (Port 1: bit 03, Port 2: bit 11), allocated
in the Master's IN Area is ON.
For more detailed information on explicit messages, refer to the Master Unit's
Operation Manual . For information on the IOWR instruction, refer to the SYS-
MAC C200HX/HG/HE PLCs Operation Manual .
Example Conditions
Master node address:
27
Master's Unit address: 5
Slave node address:
14
Example: Using IOWR
Meaning
EXPLICIT MESSAGE SEND command code: 28
01 Hex
Slave node address: 14
PARAMETER SET response service code: 10
Hex
Class ID: 0094 Hex
Instance ID: For IR Area 1: 0001 Hex
ALL PARAMETER SET Attribute ID: 64 Hex,
(8 bits, even parity, 1 stop bit): 06 Hex.
Header code, delimiter code, and flow control all
enabled: 00 Hex, 1,200 bps: 00 Hex.
Header code STX: 02 Hex, Delimiter code ETX:
03 Hex.
No. of bytes after delimiter = 0 (00 Hex)
Meaning
Master's Unit address: 5, No. of words of com-
mand data: 12 words (specified in BCD) (No. of
words from S onwards)
Meaning
EXPLICIT MESSAGE SEND command code: 28
01 Hex
Response code (0000 Hex: Normal completion)
No. of received bytes (data length after
DM2003): 2 bytes
Slave node address: 14
PARAMETER SET response service code:
90 Hex
Section 6-2
283
Need help?
Do you have a question about the DeviceNet CV Series and is the answer not in the manual?