www.wobit.com.pl
User manual -ADT42 – 23.06.2015 – v.1.3
page 12
4.
RS485 MODBUS Communication
RS485 can be used for communication with PLC driver, HMI panel or other device operating in
MODBUS-RTU protocol. RS485 port in ADT42 has no galvanic insulation, so you must provide the
same ground potential for ADT42 as for master device.
Default transmission parameters:
Baudrate:
38400bps
, bits: 8, Stop bit: 1, Parity: none
Address
Modbus: 1
Baudrate and slave address of ADT42 can be changes by ADT42-PC program.
Used MODBUS functions
Function number (hex)
Description
1 (0x01)
Reading of output state (OUT1, OUT2)
2 (0x02)
Reading of input state (IN1, IN1)
3 (0x03)
Reading of X registers
5 (0x05)
Record of single bit
Plan of ADT42 registers
Address
Name
Type of
variable
Mode(Modbus
function)
Description
Values stored in registers INT type (integral number)
0 (*1)
SUM_INT
INT
R (0x03)
Aggregate value of measurement
2 (*3)
SUM_MIN_INT
INT
R (0x03)
Recorded minimal value
2 (*3)
SUM_MAX_INT
INT
R (0x03)
Recorded maximal value
3 (*4)
CANAL0_INT
INT
R (0x03)
Value of 1 channel
4 (*5)
CANAL1_INT
INT
R (0x03)
Value of 2 channel
5 (*6)
CANAL2_INT
INT
R (0x03)
Value of 3 channel
6 (*7)
CANAL3_INT
INT
R (0x03)
Value of 4 channel
7 (*8)
ANALOG_INT
INT
R (0x03)
Value of analog output (x1000)
Values stored in registers REAL type (floating point number)
8 -9 (*9-10)
SUM_REAL
REAL
R (0x03)
Aggregate value of measurement
10 -11 (*11-12)
SUM_MIN_REAL
REAL
R (0x03)
Recorded minimal value
12 -13 (*13-14)
SUM_MAX_REAL
REAL
R (0x03)
Recorded maximal value
14 -15 (*15-16)
CANAL0_REAL
REAL
R (0x03)
Value of 1 channel
16 -17 (*17-18)
CANAL1_REAL
REAL
R (0x03)
Value of 2 channel
18 -19 (*19-20)
CANAL2_REAL
REAL
R (0x03)
Value of 3 channel
20 -21 (*21-22)
CANAL3_REAL
REAL
R (0x03)
Value of 4 channel
22 -23 (*23-24)
ANALOG_REAL
REAL
R (0x03)
Value of analog output
1 – bit values
4000 (*4001)
MIN_MAX_RESET
BIT
W (0x05)
Zeroing of min/max. value
4001 (*4002)
TARA
BIT
W (0x05)
Tare of aggregate value
4002 (*4003)
ZERO_CANAL1
BIT
W (0x05)
Zeroing of 1 channel
4003 (*4004)
ZERO_CANAL2
BIT
W (0x05)
Zeroing of 2 channel
4004 (*4005)
ZERO_CANAL3
BIT
W (0x05)
Zeroing of 3 channel
4005 (*4006)
ZERO_CANAL4
BIT
W (0x05)
Zeroing of 4 channel
4006 (*4007)
ZERO_ALL
BIT
W (0x05)
Zeroing of 1..4 channels
5000 (*5001)
INPUTS
BIT
R(0x02)
Reading of inputs state
bit 0 – IN1
bit 1 – IN2
6000 (*6001)
OUTPUTS
BIT
R(0x01)
Reading/ output setting