![Lightware MMX4x2 Series Скачать руководство пользователя страница 123](http://html1.mh-extra.com/html/lightware/mmx4x2-series/mmx4x2-series_user-manual_1915430123.webp)
7. LW3 Programmers’ Reference
MMX4x2 series – User's Manual
123
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
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).
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
... Password :
Login name :
...
Delimiter (hex format: 3A)
Stored string
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=
<recognized_string>
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=
<recognized_hex>
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