0x - Bit area for master output
Access via function code 01h, 05h, 0Fh
1x - Bit area for master input
Access via function code 02h
3x - Word area for master input
Access via function code 04h
4x - Word area for master output
Access via function code 03h, 06h, 10h, 16h
With the following Modbus function codes a Modbus master can access a Modbus slave.
The description always takes place from the point of view of the master:
Code Command Description
01h Read n Bits Read n bits of master output area 0x
02h Read n Bits Read n bits of master input area 1x
03h Read n Words Read n words of master output area 4x
04h Read n Words Read n words master input area 3x
05h Write 1 Bit Write 1 bit to master output area 0x
06h Write 1 Word Write 1 word to master output area 4x
0Fh Write n Bits Write n bits to master area 0x
10h Write n Words Write n words to master area 4x
16h Mask 1 Word Mask 1 word in master output area 4x
17h Write n Words and Read m
Words
Write n words into master output area 4x and the respond contains m
read words of the master input area 3x
Byte sequence in a word
1 word
High byte Low byte
If the slave announces an error, the function code is sent back with a "OR" and 80h.
Without an error, the function code is sent back.
Overview
Respond of the coupler
VIPA SPEED7
Modbus Communication
FKT Codes
HB00 | OPL_SP7 | Operation list | en | 18-30 198