AC800M - Modbus communication
I am using CI867 Module as Modbus Master module for polling the data at controller side.
On the field side there are multiple serial slaves with different slave ID but with same data address range. Like Slave ID 1 with address range 1001 to 1020 and Slave ID 4 also with adress range 1001 to 1020. Similarly there are 4 slaves. These slave are connected to a port in daisy-chain(Multi-drop) to a converter on RS-485 interface. The converter is converting Modbus RS485 to Modbus TCP/IP. I am able to connect single slave to CI867 then data is coming. but as and when I am adding second slave the data stops coming even for the salve which was communicating earlier.
I am able to see data in MODSCAN for all slaves.
Please tell how to configure the Modbus slave in this case at controller end.
Under Gateway how to define the slave ID. How slave ID is different w.r.t. Slave Position?
As per my understanding you have to call each slave after getting confirmation of previous one is completed.
In AC500 we are getting done bit once data is recived from one slave.
You have to call each modbus slave one by one instead of at a same time.
If you want deatiled information then we can discuss more on it.
In your original question you asked about AC800M and CI867. But the code you linked is from an AC500. Which is correct ? You also havent replied about your gateway.
Anyway, If I am reading the code correctly, the ordinal numbers in your AC500 program look completely messed up, so it appears like your execution order is totally wrong. This could cause all sorts of timing problems.