Need some help to clarify my ideas... I want to connect a LoraController to V570 PLC via RS485 and using ModbusRTU protocol, where PLC has to be the slave.
Reading PLC manuals, I think I have to 1)configure DIP Switch for RS485 configuration and 2) Update an application to the PLC via USB-PC(not sure how to update this application) to make it work with modbus rtu slave configuration... is there any template of this application?
Finally, on my Lora Controller, I have to configure modbus configuration as baud rate, data bit, stop bit, parity, slave id (where to get this information??) and modbus addresses where the data is.
Am i in the good way? Could you help to resolve my doubts?
Thanks in advanced.
Thank you for for your response.
The json looks like the attached example, or in the linked pastebin. It's just a simple array of integers at the moment, but I can change the format if that is necessary.
json-example - Pastebin.com
Yes, this is my mistake. It appeared because I tried to restore settings from archived projects in the office. In this case, I missed the speed. In fact, the speed is 19200, not 9600. If I had different speeds, then slave 2 would not give an answer to the master.