Big problem with Modbus TCP - 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: Big problem with Modbus TCP (/showthread.php?tid=644) |
Big problem with Modbus TCP - Mirco - 24.02.2017 Hi guys I'll hope you can help me! I have an HL that communicate with 2 Risco intrusion stations and 2 Notifier fire stations and every station have 200 - 250 registers to read. I use profiles, and my biggest problem is that: after few correct read, the HL, start to write wrong value on some group value and then stop to update all value of the register of the 2 fire stations, while the value of the 2 intrusion stations works correctly. Between the HL and the fire station there's a moxa modbus converter that convert TCP modbus packets into serial modbus packets becauseĀ fire stations don't have only serial port. From this converter I can see all packets that pass through, and I saw that HL every minutes send correctly questions and fire central answer correctly, but HL don't update group address.. Another think that don't work is the istruction "read_delay": 1 because the question that arrives to the moxa comes after 30ms and not 1 seconds that I write.. Someone can help me? RE: Big problem with Modbus TCP - admin - 24.02.2017 Read delay might not be implemented on your device, it was only added recently. Is there anything in the error log? RE: Big problem with Modbus TCP - Mirco - 24.02.2017 No Another think that happened when HL read all 4 stations is that the CPU/IO load arrives to 8-9 I think because I have Event Script that are linked to all object for checking if the sensor are in allarm, and if so send an email. When HL stop to update group addresses of 2 fire station, CPU/IO load is 0.1, max 0.5 RE: Big problem with Modbus TCP - admin - 24.02.2017 Try reading values from a script, maybe this will help to identify why values are incorrect. Which ModBus data types are you using? RE: Big problem with Modbus TCP - Mirco - 24.02.2017 Modbus type are all uint16 and bus type are all uint8 I'm working on it, when I'm able to test it in field I'll update you! Probably in 4-5 hours! Thanks RE: Big problem with Modbus TCP - admin - 24.02.2017 Are you sure that values don't overflow because object data type is smaller? For UINT8 any value larger than 255 will be written as 255. RE: Big problem with Modbus TCP - Mirco - 27.02.2017 No the values that fire stations have are from 0 to 255 because every bit means a message (2nd bit set to 1 means esclusion, 6th bit set to 1 means allarm) anyhow now this problem no longer happened. After a full day of test this is what I understand:
RE: Big problem with Modbus TCP - admin - 27.02.2017 Can you show the profile that's not working after the first read? RE: Big problem with Modbus TCP - Mirco - 27.02.2017 How can I send you profiles, because when I try to attach it, it returns an error of extension.. RE: Big problem with Modbus TCP - admin - 27.02.2017 Try now, or rename it to .txt if it does not work. RE: Big problem with Modbus TCP - Mirco - 27.02.2017 I have optimized the script and now all work perfectly! I'll waiting for your response on the profiles Thanks again! |