Deployment
Wieland Electric GmbH | BA001269 | 09/2021 (Rev. A)
54
Write n bits 0Fh
Code 0Fh: Write n bits to master output area 0x.
Please regard that the number of bits are additionally to be set in byte.
Command telegram
Modbus/TCP-Header Slave
address
Function
code
Address
1. bit
Number
of bits
Number
of bytes
Data
1. byte
Data
2. byte
…
x x 0 0 0
6 byte
1 byte
1 byte 1 word 1 word 1 byte
1 byte
1 byte
1 byte
max. 248 byte
Respond telegram
Modbus/TCP-Header Slave address
Function code
Address 1. bit
Number of bits
x x 0 0 0 6
6 byte
1 byte
1 byte
1 word
1 word
Write n words 10h
Code 10h: Write n words to master output area 4x.
Command telegram
Modbus/TCP-Header Slave
address
Function
code
Address
1. word
Number
of words
Number
of bytes
Data
1. word
Data
2. word
…
x x 0 0 0
6 byte
1 byte
1 byte 1 word 1 word 1 word 1 word 1 word 1 word
max. 124 byte
Respond telegram
Modbus/TCP-Header Slave address
Function code
Address 1. word
Number of words
x x 0 0 0 6
6 byte
1 byte
1 byte
1 word
1 word
Mask a word 16h
Code 16h: This function allows to mask a word in the master output area 4x.
Command telegram
Modbus/TCP-Header Slave address Function code Address word AND mask
OR mask
x x 0 0 0 8
6 byte
1 byte
1 byte
1 word
1 word
1 word
Respond telegram
Modbus/TCP-Header Slave address Function code Address word AND mask
OR mask
x x 0 0 0 8
6 byte
1 byte
1 byte
1 word
1 word
1 word