Delta AS Series Programming Manual page 314

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
CMPT※
0059-0064
Device
X
Y
M
S
1
S
2
n
D
Data
type
S
1
S
2
n
D
Symbol
Explanation
1.
This instruction compares n signed decimal numbers in devices starting at S
and then stores the comparison results in D.
2.
The operand n must be between 1–256.
3.
The value that is written into the operand D is a one-bit value.
4.
When the results of the comparison using the CMPT# instruction are that all devices are ON, SM620 is ON.
Otherwise, SM620 is OFF.
5.
If the operand S
is a device, the comparison is as shown below.
1
1234(BIN)
S 1
5678(BIN)
S 1
+1
5000(BIN)
S 1
+2
1000(BIN)
S 1
+3
10(BIN)
S 1
+( N- 2)
S 1
90(BIN)
+( N- 1)
Operand
,S
,n,D
P
S
1
2
S
T
C
HC
Pulse Instruction
AS
: Source device 1
S
1
: Source device 2
S
2
: Data length
n
: Comparison result
D
S 2
S 2
+1
Compar ison sign
S 2
+2
n
>
S 2
+3
S 2
+( N- 2)
S 2
+( N- 1)
C h a p t e r 6 Ap p l i e d I n s t r u c t i o n s
D
FR
SM
SR
E
16-bit instruction
AS
with those in devices starting at S
1
1111(B IN)
2222(BIN)
3333(BIN)
4444(BIN)
n
8888(BIN)
9999(BIN)
Function
Comparing tables
K
16#
"$"
F
32-bit instruction
Compar ison result
1
D
1
D
+1
1
D
+2
0
D
+3
0
D
+( N- 2)
0
D
+( N- 1)
6 - 3 5
6_
,
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents