Explanation Of Comparison Instructions - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

6.1.2 Explanation of Comparison Instructions

API
Instruction code
LD※
0000-0005 D
Device
X
Y
M
S
1
S
2
Data
type
S
1
S
2
Symbol
Taking LD= and DLD= for example
Explanation
1.
These instructions compare the values in S
result is that the value in S
comparison result is that the value in S
met.
2.
Only the 32-bit instruction can use the 32-bit counter, but not the device E.
16-bit
API number
instruction
0000
LD=
LD<>
0001
0002
LD>
LD>=
0003
0004
LD<
LD<=
0005
Example
1.
When the value in C10 is equal to 200, Y0.10 is ON.
2.
When the value in D200 is greater than -30, Y0.11 stays ON.
3.
When the value in (C201, C200) is less than 678,493, or when M3 is ON, M50 is ON.
Operand
,S
S
1
S
T
C
HC
Pulse instruction
: Data source 1
S
1
: Data source 1
S
2
and S
. Take the LD= instruction for example. When the comparison
1
2
is equal to that in S
, the continuity condition of the instruction is met. When the
1
2
is not equal to that in S
1
32-bit
instruction
DLD=
DLD<>
DLD>
DLD>=
DLD<
DLD<=
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
2
D
FR
SM
SR
16-bit instruction
AS
, the discontinuity condition of the instruction is
2
Continuity
Discontinuity
condition
condition
=S
≠S
S
S
1
2
1
2
=S
≠S
S
S
1
2
1
>S
≦S
S
S
1
2
1
2
≧S
<S
S
S
1
2
1
<S
≧S
S
S
1
2
1
2
≦S
>S
S
S
1
2
1
Function
Comparing values LD※
E
K
16#
"$"
32-bit instruction
AS
2
2
2
F
6_
6 - 7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents