2. Modbus
2.1. Configuration of parameters
• Communication speed : between 2400 and 115200 bauds, 19200 bauds by default
• Data bits : 8 bits
• Stop bit : 1 bit
• Parity : None
• Flow control : None
• Transmitter addressing : between 1 and 255 (automatically answers the requests from address 0)
2.2. Functions
• Register function : Function 03
• Register writing : Function 16
• Communication loop test : Function 08
2.3. Access code to register
• Registers type:
Type Size Detail
Serial number 8 octets Data organization
U8 1 octet 8 bits unsigned integer
U16 2 octets 16 bits unsigned integer
U32 4 octets 32 bits unsigned integer
Real 4 octets 32 bits real
Enumeration 1 octet See table “Enumerations”” pError: Reference source not found
Boolean 1 octet True = 1 ; False = 0
Date 4 octets Year (2 octets), Month (1 octet), Day (1 octet)
Time 5 octets Hour (1 octet), Minute (1 octet), Second (1 octet), Millisecond (2 octets)
• Alarms status – Modbus code : 7000
b31 … b4 b3 b2 b1 b0
0 1 0 1
• Values – Modbus code : 7010 (channel 1)
7040 (channel 2)
7070 (channel 3)
7100 (channel 4)
• Number of digits after the decimal point – Modbus code : 7020 (channel 1)
7050 (channel 2)
7080 (channel 3)
7110 (channel 4)
7
Alarm channel 1
Alarm channel 2
Alarm channel 3
Alarm channel 4