Jasper123
I want to know how OpenPLC converts this or atleast what modbuss address is connected to what variable
Reply 0 0
Jasper123
Ty <3 this will help alot

Have a great day / weekend <3
Reply 0 0
fg71
Same to you, sometimes the only way is to test, test and test.... the good thing we always learn from it 😉
Reply 1 0
Jasper123
To be clear on that, %QX100.1 is going to be your second coil on your first slave device, however you’ve mapped it in the slave settings. If you mapped it to start on slave address 0, then %QX100.1 is going to be your slave coil address 1 (the first coil is address 0). If you mapped it to start on slave address 5, then %QX100.1 is going to be your slave coil address 6. So it all depends on how you configured the start addresses for your slave devices.
With this if i have 2 or more devices with the same modbus addresses like:
Counting on the offset to be normal


Device one
Modbus address 00001-00020
Device two
Modbus address 00001-00020

can i put in my runtime:

Device one %QX100.0-%QX102.0
Starting address 0 Size 20

Device two %QX100.0-%QX102.0
Starting address 0 Size 20

or do i need to do
 
device one %QX100.0-%QX102.0
Starting address 0 Size 20

Device two %QX100.0-%QX102.0
Starting address 20 Size 20
Reply 0 0
thiagoralves
No, if you have 2 devices with 20 coils each (starting address 0 size 20), you will have the first device’s 20 coils mapped to %QX100.0 - %QX102.3, and the second device’s 20 coils mapped to %QX102.4 - %QX104.7
Reply 1 0
Jasper123
Thanks i understand now how it works so if i make 2 devices with 0-20 its okay and the %QX from device 2 just follows off the last %QX from the device 1
Reply 0 0
Reply