Logic Machine Forum
Problem with modbus TCP on Spacelynk 2.6.0 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Problem with modbus TCP on Spacelynk 2.6.0 (/showthread.php?tid=3314)



Problem with modbus TCP on Spacelynk 2.6.0 - buuuudzik - 23.04.2021

My client has such device and recently I've added to it new script which connects with Nibe api and read data. This communication has few requests to api to collect all the data but CPU usage isn't alarming, when script is running it is ~0.7 and script executes every 60 seconds.

All was good but after few hours trends stopped and spacelynk lost proper connection  with Modicon i/o which is connected to Spacelynk over Modbus TCP. Other RTU devices working properly.

After switching of nibe script trends starts working but not Modicon, but it is reachable from Spacylynk and error is "Invalid data". Same with "Read test".

I've tried to read data directly by script and it is working with same parameters but from Modbus tab it still have an error "Invalid data".

I've tried reboot Spacelynk, Modicon. I've changed ip addresses on both.

What can I do now?

Please for an advice


RE: Problem with modbus TCP on Spacelynk 2.6.0 - admin - 26.04.2021

Do you have "Persistent connection" enabled for this Modbus TCP device?


RE: Problem with modbus TCP on Spacelynk 2.6.0 - buuuudzik - 26.04.2021

Thank you admin for reply

Yes. I've tried also without this setting and nothing changed. What modbus deamon doing in background when I am toggling this option? Is it changing or I must do some process restart to accept it?

How restart this deamon?


RE: Problem with modbus TCP on Spacelynk 2.6.0 - admin - 26.04.2021

You don't have to restart anything. By default the daemon will connect to the TCP device, read then disconnect. Persistent connection mode does not disconnect. This is needed for certain devices that have a limited number of connections available and sometimes will refuse connections.
"Invalid data" is a protocol error which means that the TCP device sent some invalid data. Can you provide remote access to this device?


RE: Problem with modbus TCP on Spacelynk 2.6.0 - buuuudzik - 26.04.2021

I will but maybe not immediatelly, I must contact with customer.


RE: Problem with modbus TCP on Spacelynk 2.6.0 - admin - 26.04.2021

Thanks for the access. The problem was caused by a bug that reset the slave ID from 255 to 247 when the Modbus device properties were edited. I've changed the address back and it started working. Be careful when editing it before it is fixed in the next firmware Smile


RE: Problem with modbus TCP on Spacelynk 2.6.0 - buuuudzik - 26.04.2021

(26.04.2021, 13:00)admin Wrote: Thanks for the access. The problem was caused by a bug that reset the slave ID from 255 to 247 when the Modbus device properties were edited. I've changed the address back and it started working. Be careful when editing it before it is fixed in the next firmware Smile

Big thanks for your help?


RE: Problem with modbus TCP on Spacelynk 2.6.0 - benjii - 17.05.2021

(26.04.2021, 13:00)admin Wrote: Thanks for the access. The problem was caused by a bug that reset the slave ID from 255 to 247 when the Modbus device properties were edited. I've changed the address back and it started working. Be careful when editing it before it is fixed in the next firmware Smile

Hello, 

I would like to know how did you change that, I have been trying to change the slave ID from 247 to 255 but it keeps getting reset!
It shows me 255 on the Modbus tab, but then when I click on the device, I see the default ID 247...


RE: Problem with modbus TCP on Spacelynk 2.6.0 - Daniel - 17.05.2021

Install RC1


RE: Problem with modbus TCP on Spacelynk 2.6.0 - benjii - 17.05.2021

(17.05.2021, 07:41)Daniel. Wrote: Install RC1

can you explain more please  Smile


RE: Problem with modbus TCP on Spacelynk 2.6.0 - Daniel - 17.05.2021

https://forum.logicmachine.net/showthread.php?tid=3358


RE: Problem with modbus TCP on Spacelynk 2.6.0 - benjii - 17.05.2021

(17.05.2021, 07:59)Daniel. Wrote: https://forum.logicmachine.net/showthread.php?tid=3358

Thanks a lot  Big Grin Big Grin