9/14/2018 6:08 PM | |
Posts: 3 Rating: (0) |
Software: TiA Portal V14 SP1 Hardware: S7-317 PN/DP 6ES7 317-2EK14-0AB0, V3.2 I have eight Modbus/TCP servers (four Basler BE1-11g, four ABB M2M Ethernet) that I am interrogating for registers. I can successfully read each one if I call only one in the software. Data is read and lands in the correct data reception DB. When I setup all eight devices, each call to MODBUSPN with its' own instanceDB and own ControlDB information (as laid out in the Siemens examples) then strange things start happening. Data read from one device ends in the wrong reception DB, the devices lose connection, they stay "busy" for several seconds, and everything slows down drastically. Each call to the MODBUSPN on its' own works fine when all the others are removed. I have eight separate Parameter DBs, one for each connection. Eight separate Control DBs, one for each connection. I have eight separate DBs for receiving the data into. I have tried polling ENQ_ENR and that has not helped. I've tried using different port numbers for the PLC connections, and that hasn't helped. I'm obviously doing something wrong, but I'm not sure what. The modbus license is valid, and the block does report the package is licensed, even though this should be irrelevant for whether it works or not. The modbus-related blocks are in the "Modbus" folder under "Program Blocks" in the project. This is a stripped-down version of my actual software AttachmentModbusProblem_1.zap14.zip (282 Downloads) |
Follow us on