UMX-TPS-TX100 series – User's Manual 127
Setting the Message Header
Command and Response
ç <header_text>
æ <header_text>
Example
ç
æ
Sending a Post Message
Command and Response
ç <body_text>)
æ
Example
ç
æ
Sending a Put Message
Command and Response
ç <body_text>)
æ
Example
ç
Command>)
æ
TCP Message Recognizer
DIFFERENCE:
package v1.5.0b4.
event Action that is run when a message is recognized, but you can also use it in Event manager.
#tcprecognizer #message
Preparation
Step 1.
properties of the target TCP server.
Step 2. Set the DelimiterHex and the TimeOut settings for the proper message processing
Step 3.
Step 4. Connect to the TCP server.
Working Method
A message got recognized from the incoming data, if one of the following occurs:
▪ The set DelimiterHex is detected in the message, or
▪ The set TimeOut has been elapsed since receiving the last data bit.
* In that case, the not-recognized data is kept in the memory (up to 128 bytes). If the DelimiterHex is detected
later, or the TimeOut parameter is set meanwhile, the data appears in the Rx, RxHex, Hash and ActiveRx,
ActiveRxHex, ActiveRxHash properties.
Setting the IP Address of the TCP Server
Command and Response
ç <loc>.ServerIP=<IP_address>
æ <loc>.ServerIP=<IP_address>
Parameters
The <loc> parameter can be 1, 2 or 3 as at most three TCP connections can be established at the same time.
Example
ç
æ
MESSAGE
saved in Rx property
MESSAGE
MESSAGE
saved in ActiveRx property
ActiveRx property is cleared
ActiveProperty
Timeout
MESSAGE
saved in Rx property
MESSAGE
saved in ActiveRx property
ActiveRx property is cleared
ActiveProperty
Timeout
Delimiter
MESSAGE
TimeOut
with timeout
MESSAGE
no timeout,
no delimiter
*