3/24/2023 7:36 AM | |
Joined: 3/9/2023 Last visit: 2/26/2025 Posts: 2 Rating:
|
Hello, Plc Load Memory 9% Used, Work Memory 30% Used. I don't think there is any problem. My module, cm1241 rs422/485, I could not find the cause of the problem when I connected more than 10. Attached is the pdf of the program. AttachmentPOWER METER.pdf (743 Downloads) |
3/24/2023 10:04 AM | |
Joined: 3/30/2020 Last visit: 9/27/2025 Posts: 5482 Rating:
|
There are 2 things that needs changing. 1) Do not trigger the MB_MASTER on a timer. Have the DONE / ERROR state of the MB_MASTER tell you when the next instrument should be queried. 2) Do not use multiple MB_COMM_LOAD. This is probably the cause of your problem. This would mean that the design concept changes. Have one MB_COMM_LOAD and one MB_MASTER. Have the parameters to MB_MASTER change according to which slave needs attention. The tricky part is that MB_MASTER.REQ needs to see a OFF -> ON transition to function. There is a very old sample project that uses LAD which you might find helpful. That is attached to this message. Focus on the structure of the Modbus instructions' usage. AttachmentV20 sample.zip (516 Downloads) |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
Follow us on