282
RS-232C Units
Section 6-2
D: Response Words (D: First Response Word)
Results are stored as shown in the following table.
Control Words (C: First Control Word)
Using IOWR to Write Data
(C200HX/HG/HE PLCs)
The following example shows how to use the IOWR instruction to change all
the parameters of port 1 of the RS-232C Unit at once from the Master Unit
(C200HX/HG/HE PLC). For more detailed information on explicit messages,
refer to the Master Unit’s
Operation Manual
. For information on the IOWR
instruction, refer to the
SYSMAC C200HX/HG/HE PLCs Operation Manual
.
Example Conditions
Master node address:
27
Master’s Unit address: 5
Slave node address:
14
Example: Using IOWR
C: Control Words (C: First Control Word)
Source Words (S: First Source Word)
Word
Contents (Hex)
Meaning
D
28 01
EXPLICIT MESSAGE SEND command code: 28
01 Hex
D+1
00 00
Response code (0000 Hex: Normal completion)
D+2
00 xx
No. of received bytes (data length after D+3)
D+3
0E 8E
Slave node address: 14
RS-232C RECEIVE DATA READ response ser-
vice code: 8E Hex
D+4
HH LL
The receive data read from RS-232C port 1 is
stored in sequence from the leftmost bit to the
rightmost bit.
to
to
Word
Contents (Hex)
Meaning
C
00 09
No. of bytes of command data: S (9 bytes of
command data)
C+1
00 xx
No. of bytes of response data: D
C+2
00 02
Destination node network address: 2
C+3
1B FE
Master’s node address: 27
Master’s Unit address: FE Hex
C+4
00 00
Response returned, communications port No.:
0, No. of retries: 0
C+5
00 64
Response monitoring time: 10 s
Word
Contents (Hex)
Meaning
C
1B FE
Master’s node address: 27
Master’s Unit address: FE Hex
Word
Contents (Hex)
Meaning
S
82 07
Response storage words: DM2000
82 Hex: DM Area, 07D0 Hex: 2000 words
(For more detail, refer to the PLC Operation
Manual.)
S+1
D0 00
S+2
00 64
Response monitoring time: 10 s
S+3
00 0F
No. of bytes of command data: 15 bytes (No. of
bytes from S+4 onwards.)
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 ...