Triggers and Macros – TCP Strings to SCP Driver
To configure the SCP driver to listen to a specific TCP Port, you must edit the TCP_Listen_Port property for the SCP driver in Hardware Manager. This property can be a number from 0 to 32000. Setting this value to 0 will Turn Off the SCP’s ability to listen to TCP messages. Any changes made to the TCP_Listen_Port property will only take affect after the propery has been saved, and the driver has been restarted.
The command syntax changed a little (see below):
In the example above ~ is the BOM and ! is the EOM and 1.0 is the SCP controller address and 12 is the macro to execute for that SCP. You’ll notice that I added the letters “EM”, which is short for Execute Macro. I did this to allow for future support of a command library.
I tested this by having the VertX send out a TCP message to the SCP driver and execute macros. Below is the script that I used on my VertX controller:
TCP(“192.168.0.7″,”2080″,”~1.1-EM1!”) = I(0,8)
TCP(“192.168.0.7″,”2080″,”~1.1-EM2!”) = I(0,10)
My SCP driver is running on a PC with IP address 192.168.0.7 and the TCP__Listen_Port property is set to 2080. So based on a REX#1 on VertX, it will send out a TCP string to the SCP driver to execute Macro #1 on the SCP. 2080. And REX#2 on VertX, will send out a TCP string to the SCP driver to execute Macro #2 on the SCP.