AlexNVZ
Как настроить работу с несколькими подчиненными устройствами в ModBus RTU, если адреса самих устройств 1, 2, 3 и адреса регистров внутри этих модулей одинаковы. Адрес %IW100 попытается прочитать со всех устройств одновременно.
 
From PSM I can read and write each device separately via ModBus, is it possible to do the same by means of OpenPLC?
Reply 0 0
thiagoralves
Just add 3 separate devices in the Slave Devices menu. Each one will receive a separate address space depending on the number of registers read/written in them.
Reply 0 0
AlexNVZ
The addressability of the registers in each device is 0-32.
At address IW100 I read register 0. But how to specify from which device this register should be read?
Reply 0 0
thiagoralves
Add all three devices and you will see. IW100 will map to register zero of the first added device only. 
Reply 0 0
AlexNVZ
And how to read the 0 register of the second and third device?
Reply 0 0
thiagoralves
Check the slave devices table after you have added all three devices. The appropriate address will appear in front of the second and third devices
Reply 0 0
AlexNVZ
I understand now, thank you.
Reply 0 0
Paolo
Is it possible to connect 2 or 3 slaves (arduino nano) to one usb port of the master ( UNIPI 1.1) ? like wiring RS485 like that ?
[2wire_rs485_fig1]
Reply 0 0
thiagoralves
Yes, just use a USB hub
Reply 1 0
Flare09
Yes, just use a USB hub
I am still looking for hardware to make sure I can set it up properly, but will any USB hub work? I am needing around 40 AI, and 80 DO (relays and smart leds). I can simply hook up just about any powered 10 - 20 port usb hub, and I won't need to worry about communication through the hubs driver? Likely going with Arduino clones.
Reply 0 0
thiagoralves
Most likely it will work just fine. If you go with Arduino Megas, you probably won’t need more than 2 or 3. The Mega has plenty of IOs
Reply 1 0
Flare09
Most likely it will work just fine. If you go with Arduino Megas, you probably won’t need more than 2 or 3. The Mega has plenty of IOs
That seems like the better idea. Thank you for the quick response. And thank you for OpenPLC. It is an incredible project, very well made, documented, and active.
Reply 0 0
thiagoralves
Thank you for your kind words 🙂
Reply 0 0
Reply