Delta AS Series Programming Manual page 290

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0012-0017 D
OR※
Device
X
Y
M
S
1
S
2
Data
type
S
1
S
2
Symbol
Taking OR= and DOR= 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.
API number
0012
0013
0014
0015
0016
0017
Example
1.
When X0.1 is ON, or when the current value in C10 is equal to 100, Y0.10 is ON.
2.
When both X0.2 and M30 are ON, or when the value in (D101, D100) is greater than or equal to 1000,000, M60 is
ON.
Operand
,S
S
1
S
T
C
HC
Pulse Instruction
: Data source 1
S
1
: Data source 2
S
2
and S
. Take the OR= 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
16-bit
32-bit
instruction
instruction
OR=
DOR=
OR<>
DOR<>
OR>
DOR>
OR>=
DOR>=
OR<
DOR<
OR<=
DOR<=
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
E
16-bit instruction
AS
, the discontinuity condition of the instruction is
2
Continuity
Discontinuity
condition
=S
S
1
2
≠S
S
1
2
>S
S
1
2
≧S
S
1
2
<S
S
1
2
≦S
S
1
2
Function
Comparing values OR※
K
16#
"$"
F
32-bit instruction
AS
condition
≠S
S
1
2
=S
S
1
2
≦S
S
1
2
<S
S
1
2
≧S
S
1
2
>S
S
1
2
6 - 11
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents