![Xinje XD Series Скачать руководство пользователя страница 236](http://html.mh-extra.com/html/xinje/xd-series/xd-series_user-manual_887444236.webp)
235
(5)
Function code 0FH: write multiple coils
Eg. Write 16 coils start from address 6000H (Y0).
RTU mode:
Asking format
Response format
Address
01H
Address
01H
Function code
0FH
Function code
0FH
Coil address
60H
Coil address
60H
00H
00H
Coil number
00H
Coil number
00H
10H
10H
Byte number
02H
-
-
Data contents
(low byte is before
high byte)
03H
01H
CRC CHECK
Low
43H
CRC CHECK Low
4AH
CRC CHECK
High
16H
CRC CHECK High
07H
The data contents are 0103H, the binary format is 0000 0001 0000 0011, write in
corresponding Y17~Y0, so Y0, Y1, Y10 are set ON.
Note: when writing the data contents, the low byte is before the high byte.
(6)
Function code 10H: write multiple registers
Eg. Write 3 registers starting from address 0000H (D0).
RTU mode:
Asking format
Response format
Address
01H
Address
01H
Function code
10H
Function code
10H
Register address
00H
Register address
00H
00H
00H
Register number
00H
Register number
00H
03H
03H
Byte number
06H
-
-
Data contents
00H
01H
00H
02H
00H
03H
CRC CHECK
Low
3AH
CRC CHECK Low
3AH
CRC CHECK
High
81H
CRC CHECK High
81H
After executing, the value in D0, D1, D2 are 1, 2, 3.
Note: byte number = register number * 2.
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...