Fm210_01b_oi_e.docx / Nov-20
Page 31 / 40
Modbus Protocol
If you communicate with the unit by the Modbus protocol, you have full read and write access to all
internal parameters, states and actual values. The FM210 uses the Modbus RTU protocol. The serial
access codes for all parameters of the unit are listed in the parameter list. With the help of USB
access the parameter Serial Mode can be changed from Lecom to Modbus. The parameter Serial
Baud Rate refers to both protocols. With the parameter Modbus Address the Modbus unit address
can be set. Allowed here are the settings 1
…
247.
Attention: The Modbus checksum sequence L/H is just reversed to the data.
The FM210 supports the function Reading Holding Register (R, FCT = 03), the function Report Slave
ID (R, FCT = 11) and the function Preset Single Register (W, FCT = 06).
Modbus Read
To request data from the unit, the following request string must be sent:
ADR FCT STH STL CRH CRL CRCL
CRCH
ADR = MB address (Parameter)
FCT = function (Hex 03)
STH = start Address, High Byte
STL = start Address, Low Byte
CRH = number of registers High Byte
CRL = number of registers, Low Byte
CRCL = checksum CRC16, Low Byte
CRCH = checksum CRC16, High Byte
For example, if the parameter Ref Speed High (Modbus ST = 00 0C (hex), 32 Bit = 2 Word -> Modbus
CR = 00 02) is to be read from the unit with address 07, the detailed request string is:
Designation:
ADR
FCT
STH
STL
CRH
CRL
CRCL CRCH
Hexadecimal:
07
03
00
0C
00
02
04
6E
Binary:
0000
0111
0000
0011
0000
0000
0000
1100
0000
0000
0000
0010
0000
0100
0110
1110