![DNF Controls USP3-16 Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/dnf-controls/usp3-16/usp3-16_user-manual_2514494032.webp)
19. EXAMPLES: RECEIVE PATTERN MATCHING
NOTE-
ASCII and HEC data can be mixed in a user entered pattern. For simplicity only, the examples
do not mix ASCII or HEX in a user entered pattern.
ASCII Examples
User Entered Pattern
Received ASCII Data
Notes
ABCD
ABCDEFG
Successful pattern match of first 4 received characters
ABCD
1234ABCDEFG
Successful pattern match of 5th , 6
th
, 7
th
, and 8
th
received
characters
ABCD
1234A5BCDEFG
No pattern match. User entered pattern must be received
as entered.
A %XX C D
NOTE
- spaces are not
included in pattern
match
ABCD
ACCD
AJCD
A2CD
The value of the second character in the pattern, %XX, is like
a wildcard, so it can be any character.
A successful pattern match will result if the first, third and
fourth characters are correct.
All four received character patterns are a successful
pattern match.
A %XX C D
1234ABCDEFG
1234A5CDEFG
4AKCDE
Successful pattern matches.
A %XX C D
ACD
No pattern match. Four characters must be received.
Hex Examples
(Base 16 Numbering)
User Entered Pattern
Received Hex Data
(spaces for display only)
Notes
%12 %34
12 34
12 34 56 78
56 78 12 34 9A
56 78 12 34
Successful pattern matches for hexadecimal values 12 and
34.
%X2
12
32
52
A2
The first half of the received Hex value is like a wildcard and
can be any value. Only the second half must match the user
entered value.
Successful pattern matches.
%12 %4X
12 43
12 4A
12 49 56
98 12 49
The second half of the received Hex value is like a wildcard
and can be any value. Only the first half must match the user
entered value.
Successful pattern matches.
%12 %4X
12 34
12 84
12 56
No pattern match.
USP3 User Manual
Page 32 of 46