Rotronic RMS Forum

Send data via TCP action

Thread #514 | 2019-07-19 13:47 UTC | Guest | replies: 4
Post #1 | 2019-07-19 13:47 UTC | Guest
Hi the manual is fairly vague on how the 'Send Data via TCP' section of an Action template works.

There are fields for IP and Data On Data Off

Some questions
1. Can you define the port eg can you put 192.1681.1:80 in the IP field?
2. When is the 'Off' message triggered (presumably when the Warning/Alarm ends or is manually closed?
3. Do you have any examples?

Thanks

Post #2 | 2019-07-22 08:44 UTC | ME_Rotronic
Hi Jeremy, which manual are you talking about - before I search all available manuals
Post #3 | 2019-08-15 07:57 UTC | ME_Rotronic
The functionality is very simple. In case of an active Alarm/Warning (ON) the string (text field Data on 'ON') is sent out to the designated IP address. The address can have the form 10.11.12.13 without port or 10.11.12.13:42 for port 42 for example or even a host name with / without port.
The syntax of the data string might be free and depends on your device. That could be a modbus order, or an order to a PLC or another protocol. Tipp: Please do not forget e. g. the string termination if required from the protocoll (e. g. ' ' for carriage return - often used).
Send_data_via_TCP.pnp.png

The Off message might be triggered if the Warning/Alarm ends.
Post #4 | 2019-08-21 18:38 UTC | Guest
Thank you yes this works! Carriage return and port number usage was the key information! Thanks
Post #5 | 2021-01-05 07:41 UTC | James
Currently the only option via RMS to trigger 3[SUP]rd[/SUP] party relay modules is via the “Send Data via TCP” with the Actions section of RMS. Here you can send a ASCII string to an IP device.

You can use this function to trigger the relays on a PF4. To
trigger a relay on a PF4 with the following IP address 192.168.1.1:

IP Address = 192.168.1:2101
ON Command = { 99TST 1;}
OFF Command = { 99TST 0;}

No matching posts in this thread.