Please regard that the number of bits has additionally to be set in byte.
Command telegram
Slave
address
Function
code
Address 1.
bit
Number of
bits
Number of
bytes
Data 1.
byte
Data 2.
byte
...
Check sum
CRC/LRC
1byte
1byte
1word
1word
1byte
1byte
1byte
1byte
1word
max. 250byte
Respond telegram
Slave address
Function code
Address 1. bit
Number of bits
Check sum
CRC/LRC
1byte
1byte
1word
1word
1word
Code 10h: Write n words to master output area 4x
Command telegram
Slave
address
Function
code
Address 1.
word
Number of
words
Number of
bytes
Data 1.
word
Data 2.
word
...
Check sum
CRC/LRC
1byte
1byte
1word
1word
1byte
1word
1word
1word
1word
max. 125words
Respond telegram
Slave address
Function code
Address 1. word
Number of words
Check sum
CRC/LRC
1byte
1byte
1word
1word
1word
Write n words 10h
VIPA System MICRO
Option: PtP communication
Modbus - Function codes
HB400 | CPU | M13-CCF0000 | en | 16-47
168