7. LW3 Programmers' Reference
7.19.2. Setting the Delimiter Hex
This property stores the delimiter that is between the messages (e.g. Cr, Lf, Space). The value has to be in
hex format (e.g.0D, 0A, 20).
... Password :
Command and Response
SET·/MEDIA/UART/RECOGNIZER.DelimiterHex=<delimiter>
ç
pw·/MEDIA/UART/RECOGNIZER.DelimiterHex=<delimiter>
æ
Parameters
The
<delimiter>
parameter can be max. 8 characters long (or 16 digits) in hex format.
Example
ç SET /MEDIA/UART/RECOGNIZER.DelimiterHex=3a
æ pw /MEDIA/UART/RECOGNIZER.DelimiterHex=3a
7.19.3. Setting the Timeout
When the set time passed after the last received message and delimiter was not detected, the device saves
the data into the Rx, RxHex, Hash properties. The timeout setting is useful if there is no special or easily
defined delimiter in the incoming data, but there is a time gap between the messages.
Command and Response
SET·/MEDIA/UART/RECOGNIZER.TimeOut=<timeout>
ç
pw·/MEDIA/UART/RECOGNIZER.TimeOut=<timeout>
æ
Parameters
The
<timeout>
parameter sets the timeout value in milliseconds: 0 means the timeout is disabled, min.
value is 10.
Example
ç SET /MEDIA/UART/RECOGNIZER.TimeOut=20
æ pw /MEDIA/UART/RECOGNIZER.TimeOut=20
Delimiter (hex format: 3A)
Login name :
...
Stored string
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
MMX4x2 series – User's Manual
7.19.4. Querying the Last Recognized Message (String)
The recognized message is stored as a string in the property below until the next recognized message or
until the RECOGNIZER.clear() method is called.
TIPS AND TRICKS:
When this property is set as a condition in the Event Manager and the same strings
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
ç GET·/MEDIA/UART/RECOGNIZER.Rx
æ pr·/MEDIA/UART/RECOGNIZER.Rx=
Parameters
The
<recognized_string>
parameter can be max. 12-byte-long recognized data string.
Example
ç GET /MEDIA/UART/RECOGNIZER.Rx
æ pr /MEDIA/UART/RECOGNIZER.Rx=Login:
7.19.5. Querying the Last Recognized Message(Hex)
Command and Response
ç GET·/MEDIA/UART/RECOGNIZER.RxHex
æ pr·/MEDIA/UART/RECOGNIZER.RxHex=
Parameters
The
<recognized_hex>
parameter is the recognized data in hex format.
Example
ç GET /MEDIA/UART/RECOGNIZER.RxHex
æ pr /MEDIA/UART/RECOGNIZER.RxHex=FF1F4C6F67696E3A
7.19.6. Clearing the Last Recognized Stored Message
This method deletes all stored received serial messages.
Command and Response
ç CALL·/MEDIA/UART/RECOGNIZER:clear()
æ mO·/MEDIA/UART/RECOGNIZER:clear
Example
ç CALL /MEDIA/UART/RECOGNIZER:clear()
æ mO /MEDIA/UART/RECOGNIZER:clear
<recognized_string>
<recognized_hex>
123
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?