Modbus limits - 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: Modbus limits (/showthread.php?tid=2457) |
Modbus limits - alb-smith - 07.02.2020 I state that I have read all the posts containing the term "modbus" but have not found an answer Situation: Wiser4KNX which interrogates about 30 slave devices made up of switches or meters (Masterpact, Compact NSX, PowerTags, etc.) connected to Modbus TCP gateways (ComX510, IFE, Smartlink). No connection problems. For each of these devices only 2 registers are needed: Active Power and Active Energy. Overall, therefore, a small amount of information is acquired from the system. If I configure the devices in the Modbus section, using the preloaded profiles, after 7-8 objects an error message appears: "The limit has been reached. It is not possible to add objects of the same type". If I access by script I can configure further 7-8 devices (therefore a total of about 16 readings). Code: require('luamodbus') Each additional line of code produces no reading. In the Modbus configuration I tried to differentiate the ip hosts or the polling time but the result does not change. What is this limitation determined by? Thanks RE: Modbus limits - Erwin van der Zwart - 07.02.2020 Hi, First of all a Wiser for KNX can host a maximum of 10 devices by profile, this is a software restriction that is build in the Wiser for KNX firmware, if you need more profiles then you need to have a spaceLYnk that has no software limit. You should be able to read the 30 devices by profile with a spaceLYnk. As i understand it correctly you now have several devices by profile and another set by script, do you read them over the same gateway (ICF module)? If yes then i think you have a port (502) conflict when the profile and the script are reading the same device at the same moment. If that is the case i would advice you to read them all in sequence from script and to remove the other devices from the Modbus template engine. To simplify your script (and have some extra routine checks) you can do this: Code: require('luamodbus') Erwin RE: Modbus limits - alb-smith - 09.02.2020 Thank you so much Erwin! Everything is working properly now. I hadn't noticed this limitation between Wiser and Spacelynk During the weekend I temporarily implemented the script on two different plants with 32 meters the first and 28 the second. No problem, CPU load does not exceed 0.09. The script that reads the energy values runs every 5 minutes. The power is read every 5 seconds. BR, Alberto RE: Modbus limits - FatMax - 10.02.2020 FYI, a SpaceLYnk can easily handle 250 Modbus TCP IP clients. |