6.4.4 Modbus Master - Function codes
Modbus has some naming conventions:
n
Modbus differentiates between bit and word access; Bits = "Coils" and Words = "Reg-
ister".
n
Bit inputs are referred to as "Input-Status" and Bit outputs as "Coil-Status".
n
Word inputs are referred to as "Input-Register" and Word outputs as "Holding-Reg-
ister".
The following function codes are supported by the driver:
FC
Function
Action in the PLC
01
Read coil status
read in bits
memory bits M
read in bits
outputs Q
read in bits (16bit grid)
timer T
read in bits (16bit grid)
counter C
02
Read input status
read in bits
memory bits M
read in bits
inputs I
03
Read holding registers
read in words
data block DB
04
Read input registers
read in words
data block DB
05
Force single coil
write in bits
memory bits M
write in bits
outputs Q
06
Preset single register
write in words
07
Read exception status
read in bits
event
08
Loop back test
-
-
11
Fetch communication event counter
read status word and event counter
status, event
12
Fetch communication event log
read additional status
status, event, mes-
sage
15
Force multiple coils
write in bits (1...2040bits)
memory bits M
write in bits (1...2040bits)
outputs Q
16
Preset multiple registers
write in words (1...127 Register)
data block DB
Naming convention
Modbus Function codes
VIPA System 300S
Communication protocols
Modbus > Modbus Master - Function codes
HB130 | CP | 341-1CH01 | en | 18-40
58