Delta AS Series Programming Manual page 301

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
4.
When two strings are the same, the corresponding comparison operation results of the instructions are listed
below. For example:
b 15
16#42( B)
S 1
16#44( D)
S 1
+1
16#00
S 1
+2
Example
When the string starting with the data in D0-16#00 is equal to the string staring with D2-16#00, Y0.0 is ON.
_6
Additional remarks
1.
If the string contains more than 256 characters or the string does not end with 16#00, the instruction is not
executed, SM is ON, and the error code in SR0 is 16#200E.
2.
During the string comparison, the string ends when the end symbol 16#00 is found. The symbol 16#00 determines
the length of the string.
6 - 2 2
b 8 b 7
b 0
16#41( A)
Compar ison sign
16#43( C)
16#45( E)
"
"
ABCDE
Comparison symbol
$=
$<>
b 15
b 8 b 7
16#42( B)
16#41( A)
S 2
16#44( D)
16#43( C)
S 2
+1
16#00
16#45( E)
S 2
+2
"
"
ABCDE
Comparison operation result
Continuity
Discontinuity
b 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents