![background image](http://html1.mh-extra.com/html/omron/cs1w-drm21/cs1w-drm21_operation-manual_742357300.webp)
283
RS-232C Units
Section 6-2
D: Transmission Information (Destination Unit and Number of Words).
Response Storage Words
Results are stored as shown in the following table.
Using IOWR to Read Data
(C200HX/HG/HE PLCs)
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
S+4
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
S+5
0E 10
Slave node address: 14
PARAMETER SET response service code: 10
Hex
S+6
00 94
Class ID: 0094 Hex
S+7
00 01
Instance ID: For IR Area 1: 0001 Hex
S+8
64 06
ALL PARAMETER SET Attribute ID: 64 Hex,
(8 bits, even parity, 1 stop bit): 06 Hex.
S+9
06 00
Header code, delimiter code, and flow control all
enabled: 00 Hex, 1,200 bps: 00 Hex.
S+10
02 03
Header code STX: 02 Hex, Delimiter code ETX:
03 Hex.
S+11
00 00
No. of bytes after delimiter = 0 (00 Hex)
Word
Contents (Hex)
Meaning
D
05 12
Master’s Unit address: 5, No. of words of com-
mand data: 12 words (specified in BCD) (No. of
words from S onwards)
Word
Contents (Hex)
Meaning
DM2000
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
DM2001
00 00
Response code (0000 Hex: Normal completion)
DM2002
00 02
No. of received bytes (data length after
DM2003): 2 bytes
DM2003
0E 90
Slave node address: 14
PARAMETER SET response service code:
90 Hex
Word
Contents (Hex)
Meaning
Buy: www.ValinOnline.com | Phone 844-385-3099 | Email: [email protected]
Содержание CS1W-DRM21
Страница 3: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 7: ...vi Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 11: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 47: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 245: ...228 B7AC Interface Units Section 5 5 Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 315: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 337: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 339: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 371: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 373: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 378: ...Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...
Страница 379: ...W347 E1 6 Buy www ValinOnline com Phone 844 385 3099 Email CustomerService valin com ...