![Vicruns 2S-0.4G-B User Manual Download Page 269](http://html1.mh-extra.com/html/vicruns/2s-0-4g-b/2s-0-4g-b_user-manual_1013433269.webp)
Chapter 10 Appendix
-268-
Command command (CMD) and data description (DATA)
Command code: 03H, read N words (Word), can read up to 12 words and N=1
~
12. The
specific format is as follows:
Host read command frame
Frame header
Slave address
Read command
code 0×03
Function code
address H...L
Number of read
function codes (h)
H...L
CRC check
L...H
Finish
Calculate CRC check
≥
3
.
5
Character
1 Byte
1 Byte
2 Byte
2 Byte
2 Byte
Slave read response frame
Frame header
Slave address
Read command
code 0×03
Number of data
bytes (2n)
Function code
parameters H...L
CRC check
L...H
Finish
Calculate CRC check
≥
3
.
5
Character
1 Byte
1 Byte
1 Byte
2 Byte
2 Byte
Host write command frame
Frame header
Slave address
Write command
code 0×06
Function code
parameters H...L
Function code
setting value
H...L
CRC check
L...H
Finish
Calculate CRC check
≥
3
.
5
Character
1 Byte
1 Byte
2 Byte
2 Byte
2 Byte
Slave write response frame
Frame header
Slave address
Write command
code 0×06
Function code
parameters H...L
Function code
setting value
H...L
CRC check
L...H
Finish
Calculate CRC check
≥
3
.
5
Character
1 Byte
1 Byte
2 Byte
2 Byte
2 Byte
If the slave detects a communication frame error, or fails to read and write due to other reas
-
ons, it will reply with an error frame. Slave read response error frame:
C
h
a
p
te
r
1
0
Summary of Contents for 2S-0.4G-B
Page 6: ...Safety and Attentions Chapter 1 1 1 Safety Matters 6 1 2 Use Considerations 9...
Page 80: ...Function Parameter Table 5 1 Functional group 78 Chapter 5...
Page 126: ...Function Parameter Table Chapter 6...
Page 245: ......
Page 249: ......
Page 255: ......