(2) Modbus write in word address
5.6
5.6
5.6
5.6 Application
Application
Application
Application example
example
example
example
Connect the MA-4DA with XC-32T-E, set channel 1 to be "current 4~20mA", transform the value
in D100 of the PLC into analog quantity.
(1) Hardware connection: connect the RS485 com port A, B of MA-4DA and PLC.
(2) Communication parameters setting: baud rate 19200bps, station number 1.
For MA-4DA: baud rate 19200bps, set DIP switch 1-OFF, 2-OFF;
Station number 1, set DIP switch 1-OFF, 2-OFF, 3-OFF, 4-OFF.
For PLC: set the baud rate of com2 to be 1920bps, write into the PLC and restart it.
(3) Address corresponding relationship:
Modbus address
( decimal )
Description
Remark
0x128
Channel 0 output mode configure bit
0
:
voltage
1
:
current
0x129
Channel 1 output mode configure bit
0
:
voltage
1
:
current
0x130
Channel 2 output mode configure bit
0
:
voltage 1
:
current
0x131
Channel 3 output mode configure bit
0
:
voltage
1
:
current
0x136
Channel 0 output range configure bit
voltage
0
:
0~10v
1
:
0~5v
current
0
:
0~20mA
1
:
4~20mA
0x137
Channel 1 output range configure bit
voltage
0
:
0~10v
1
:
0~5v
current
0
:
0~20mA
1
:
4~20mA
0x144
Channel 2 output range configure bit
voltage
0
:
0~10v
1
:
0~5v
current
0
:
0~20mA
1
:
4~20mA
0x145
Channel 3 output range configure bit
voltage
0
:
0~10v
1
:
0~5v
current
0
:
0~20mA
1
:
4~20mA
Modbus address
( decimal )
Description
Remark
4x128
Channel 0 output value
10 bits
4x129
Channel 1 output value
10 bits
4x130
Channel 2 output value
10 bits
4x131
Channel 3 output value
10 bits
PLC coil address
M100
M101
D100
MA Modbus address
Description
K128
Channel 0 output mode configure bit
K136
Channel 0 output range configure bit