Logic Machine Forum
Modbus profiles write_delay - 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 profiles write_delay (/showthread.php?tid=5473)



Modbus profiles write_delay - jmir - 20.06.2024

Hi, I've seen that recently you have added a "write_delay" field.
Is it possible to use this modbus package on 20230607 firmware?

Thanks.


RE: Modbus profiles write_delay - admin - 20.06.2024

This feature has not been tested yet. But you can try at your own risk if you want.

https://dl.openrb.com/pkg/genohm-scada-modbus_20240507_imx6.ipk
https://dl.openrb.com/pkg/genohm-scada-modbus_20240507_imx6.sig

Install through System config > System > Packages > Add package. Reboot LM after installation.


RE: Modbus profiles write_delay - jmir - 21.06.2024

(20.06.2024, 11:28)admin Wrote: This feature has not been tested yet. But you can try at your own risk if you want.

https://dl.openrb.com/pkg/genohm-scada-modbus_20240507_imx6.ipk
https://dl.openrb.com/pkg/genohm-scada-modbus_20240507_imx6.sig

Install through System config > System > Packages > Add package. Reboot LM after installation.

Hi I've tried but it seems that write doesn't work...


RE: Modbus profiles write_delay - admin - 21.06.2024

Anything in the Modbus logs or Error logs?


RE: Modbus profiles write_delay - jmir - 21.06.2024

(21.06.2024, 13:53)admin Wrote: Anything in the Modbus logs or Error logs?

Code:
/lib/genohm-scada/plugins/modbus/daemon.lua:0: attempt to index a nil value



RE: Modbus profiles write_delay - admin - 21.06.2024

We'll take a look and publish an update next week.


RE: Modbus profiles write_delay - jmir - 21.06.2024

(21.06.2024, 13:58)admin Wrote: We'll take a look and publish an update next week.

Ok thanks!


RE: Modbus profiles write_delay - Daniel - 24.06.2024

Use this package, write_ delay works here
https://dl.openrb.com/pkg/genohm-scada-modbus_20240621_imx6.ipk
https://dl.openrb.com/pkg/genohm-scada-modbus_20240621_imx6.sig


RE: Modbus profiles write_delay - jmir - 25.06.2024

(24.06.2024, 09:53)Daniel Wrote: Use this package, write_ delay works here
https://dl.openrb.com/pkg/genohm-scada-modbus_20240621_imx6.ipk
https://dl.openrb.com/pkg/genohm-scada-modbus_20240621_imx6.sig

Hi I've tested and it works!
How are writes managed? I've seen that dependig on the value set in poll time, only one write is done at the end of each poll...

Thanks.


RE: Modbus profiles write_delay - admin - 25.06.2024

Writes can only happen between poll cycles. Polling cycle for a single device cannot be interrupted by a write operation.
You should adjust the poll interval so the bus is not completely occupied by reading.


RE: Modbus profiles write_delay - jmir - 25.06.2024

(25.06.2024, 09:01)admin Wrote: Writes can only happen between poll cycles. Polling cycle for a single device cannot be interrupted by a write operation.
You should adjust the poll interval so the bus is not completely occupied by reading.

Ok understood. Thanks!