31.07.2024, 06:40
Hi,
Is there any way to disable a modbus slave (when using profiles) from a script?
Thanks.
Is there any way to disable a modbus slave (when using profiles) from a script?
Thanks.
Modbus slave disable
|
31.07.2024, 06:40
Hi,
Is there any way to disable a modbus slave (when using profiles) from a script? Thanks.
31.07.2024, 07:34
(31.07.2024, 07:18)Daniel Wrote: Why would you like to do it? Because this slave has a slow response time (1 register per second), and it seems that it slows all the polling cycle (we have 5 slaves in this line). When this slowest device is read, we have some write timeouts on other slaves... (don't know why...) So, we want to disable it when we need to write, and enable again when done... (The second RS485 is used for other devices and it's not posssible to change this device to this one...)
01.08.2024, 06:41
You can use scripts instead of a profile to read this device. This way you can have a delay between reads without blocking other operations. Use mbproxy library: https://forum.logicmachine.net/showthrea...7#pid22637
01.08.2024, 09:13
(01.08.2024, 06:41)admin Wrote: You can use scripts instead of a profile to read this device. This way you can have a delay between reads without blocking other operations. Use mbproxy library: https://forum.logicmachine.net/showthrea...7#pid22637 And how mbproxy is assigned to RTU port 1 or 2? I've seen how to set the slave but not from which port...
01.08.2024, 09:15
Use this:
Code: require('mbproxy')
01.08.2024, 09:27
|
« Next Oldest | Next Newest »
|