UMX-TPS-TX100 series – User's Manual 128
Setting the TCP/IP Port Number of the TCP Server
Command and Response
ç <loc>.ServerPort=<port_no>
æ <loc>.ServerPort=<port_no>
Example
ç
æ
Connecting to a TCP Server
Command and Response
ç <loc>:connect()
æ <loc>:connect
Example
ç
æ
Disconnecting from a TCP Server
Command and Response
ç <loc>:disconnect()
æ <loc>:disconnect
Example
ç
æ
Setting the Delimiter Hex
Space). The value has to be in hex format (e.g.0D, 0A, 20).
Command and Response
ç <loc>.DelimiterHex=<delimiter>
æ <loc>.DelimiterHex=<delimiter>
Parameters
The <delimiter>
Example
ç
æ
...00PWR_0100...
Stored string
Setting the Timeout
saves the data into the Rx, RxHex, Hash properties. The timeout setting is useful if there is no special or easily
Command and Response
ç <loc>.TimeOut=<timeout>
æ <loc>.TimeOut=<timeout>
Parameters
The <timeout> parameter sets the time value in milliseconds: 0 means the timeout is disabled, min. value
is 10.
Example
ç
æ
The recognized message is stored as a string in the below property till the next recognized message or until
the clear() method is called.
TIPS AND TRICKS:
follow each other, the action will execute once. (A Condition can be detected in Event Manager if a change
happens. But if the same string is saved into the property after each other, it will not cause a change.)
Command and Response
ç <loc>.Rx
æ <loc>.Rx=
<recognized_string>
Parameters
The <recognized_string> parameter can be max. 128 byte long.
Example
ç
æ