53
14 Supplement
VEGAPULS C 21 • Modbus and Levelmaster protocol
58343-EN-200806
Register Number Register Name Type Note
2308 Device serial num-
ber
string (12
charac-
ters)
-
14.8 Function codes
The function codes (FCs) are automatically used by the Modbus master to carry out certain actions
such as reading or writing.
FC3 Read Holding Register
With this command, any number (1-127) of holding registers is read out. The start register, from
which the readout should start, and the number of registers are transmitted.
Parameter Length Code/Data
Request: Function Code 1 Byte 0x03
Start Address 2 Bytes 0x0000 to 0xFFFF
Number of Registers 2 Bytes 1 to 127 (0x7D)
Response: Function Code 1 Byte 0x03
Start Address 2 Bytes 2*N
Register Value N*2 Bytes Data
FC4 Read Input Register
With this command, any number (1-127) of input registers is read out. The start register, from which
the readout should start as well as the number of registers are transmitted.
Parameter Length Code/Data
Request: Function Code 1 Byte 0x04
Start Address 2 Bytes 0x0000 to 0xFFFF
Number of Registers N*2 Bytes 1 to 127 (0x7D)
Response: Function Code 1 Byte 0x04
Start Address 2 Bytes 2*N
Register Value N*2 Bytes Data
FC6 Write Single Register
This function code is used to write to a single Holding Register.
Parameter Length Code/Data
Request: Function Code 1 Byte 0x06
Start Address 2 Bytes 0x0000 to 0xFFFF
Number of Registers 2 Bytes Data