03.12.2016, 09:24
(This post was last modified: 03.12.2016, 09:33 by Erwin van der Zwart.)
Hi,
The first part set a default slave to address 10 by a broadcast command so be sure to have only 1 device connected when you write the address to device, when all devices have a new final address you can connect them all together and use 2nd script to control them by using there new adresses.
4, 5, 6, 7 are the modbus registers in the connected modbus device.
I would advice you to read the manual of the device as all modbus registers are explained there.
BR,
Erwin
The first part set a default slave to address 10 by a broadcast command so be sure to have only 1 device connected when you write the address to device, when all devices have a new final address you can connect them all together and use 2nd script to control them by using there new adresses.
4, 5, 6, 7 are the modbus registers in the connected modbus device.
I would advice you to read the manual of the device as all modbus registers are explained there.
BR,
Erwin