Modbus tcp -> TRB1 - HTTP - ->TRB2 ->output 4

Hey everyone, im trying to connect TRB246(1) to another TRB246(2) with HTTP,

So the flow goes like :
TRB1 polls modbus tcp data and when data changes it needs to send an HTTP post to TRB2 to toggle Output 4,

and ive set everything up trough RMS VPN.

Does anyone have some complete documentation about this?

Thanks in advance!

Hello,

Thank you for reaching out.

For this specific scenario, one alternative and streamlined method would be to use the Modbus Alarms service on Modbus TCP client device TRB246 (1). Instead of handling HTTP POST manually, you can configure the Modbus Alarms to trigger a Modbus write request to your TRB246 (2) (server device) when a specified condition is met (for example, when the polled data value changes or exceeds a threshold).

The general setup would look like this:

  • On TRB246 (1):
    • Enable and configure Modbus TCP client to poll your data source.
    • Configure Modbus Alarms service to monitor the polled value.
    • Set the condition for the alarm (e.g. data changes or exceeds a value).
    • Configure the alarm action to send a Modbus write request to TRB246 (2), toggling the appropriate Output 4 register.
  • On TRB246 (2):
    • Enable Modbus TCP server.
    • Make sure Allow remote access to the Modbus server is enabled.

For more detailed information, please check these references:


Example:
An alarm is set to monitor a specific Modbus register value, and upon the value changing beyond a set threshold, it sends a write command to a Modbus register on TRB246 (2) which is mapped to Output (4) control.

Modbus Alarms configuration example


Best regards,