Sending RUT200 Modbus communication data MQTT server on trigger basis

Hello,

I am using RUT200 for collecting data from HMI via Modbus TCP/IP and share the same to MQTT server. I am able read modbus data and share to server on time basis intervals it’s working perfeclty fine but I want to share the data on trigger basis.

Example- I have 3 Int16 Tags and 1 Bool tag all reading data from Modbus device on 5 Secs interval. Whenever Bool tag becomes 0 to 1 then only I need to push all 3 Int Tags data to MQTT server.

Hi,

That cannot be done with the default functionality:

  • “Data to Server” functionality can only send data to the server at a set time interval, or at a particular time of the day.
  • Meanwhile, the Modbus Alarm function (from the “Services → Modbus → Modbus TCP Client → (edit) → Alarms configuration”) could take an action when your Bool Tag changes, but it cannot include information from other Modbus registers.

If your current Modbus-MQTT communication approach is not acceptable, you might need to create your own custom script to achieve the new desired logic.

1 Like

Hi,

Thanks for your reply.

Yes I tried by using alarm configuration as you mentioned it can only send same register data not other register data. Can you just give a hint how to use custom script.

Thanks in advance.

This topic was automatically closed after 60 days. New replies are no longer allowed.