Delta AS Series Programming Manual page 313

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example
1.
When X0.0 is switched from OFF to ON, SM609 is OFF. The search for the bits with different states (SM607 is
OFF) starts from the bits specified by the adding one to the current value of the pointer.
2.
Suppose the current value in D20 is 2. When X0.0 is switched from OFF to ON four times, you get the following
execution results.
The value in D20 is 5, SM610 is ON, and SM608 is OFF.
The value in D20 is 45, SM610 is ON, and SM608 is OFF.
The value in D20 is 47, SM610 is OFF, and SM608 is ON.
The value in D20 is 1, SM610 is ON, and SM608 is OFF.
S
0
1
0
1
1
0
1
0
1
0
1
0
1
b47
_6
S
0
0
1
1
2
0
0
1
1
0
1
1
1
b47
Additional remarks
1.
Operation error codes: If the devices S
SM is ON, and the error code in SR0 is 16#2003. If the value in the operand n is not between 1 and 256, the
MCMP instruction is not executed, SM is ON, and the error code in SR0 is 16#200B.
2.
Operation flags:
SM607:
SM608:
SM609:
SM610:
SM611:
6 - 3 4
b0
b0
0
1
0
1
0
1
0
1
0
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
MCMP
b0
0
0
0
1
0 1
0
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
1
1
+n-1 and S
1
Matrix comparison flag.
ON: comparing equivalent values
OFF: comparing different values
The matrix comparison ends. When the last bits are compared, SM608 is ON.
ON: the comparison starts from bit 0.
Matrix bit search flag. When the matching bits are found, the comparison stops immediately, and
SM610 is ON.
Matrix pointer error flag. When the value of the pointer exceeds the comparison range, SM611 is
ON.
2
Pointer
D20
+n-1 exceed the range, the MCMP instruction is not executed,
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents