Delta Electronics AH500 Manual page 226

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
232~238
D
AND※
Device
X
Y
M
S
1
S
2
 S
 The instructions are used to compare the value in S
E xp la nat io n
 The instruction AND※ is connected to a contact in series.
 If a 32-bit counter is used, the 32-bit insturciton DAND※ must be used. If
 When X0.0 is ON and the present value in C10 is equal to K200, Y1.0 is
E xa mple
 When X0.1 is OFF and the value in D0 is not equal to K-10, Y1.1 is set
 When X0.2 is ON and the value in (D11, D10) is less than 678,493, or
5 - 111
Operand
S
S
K
16#
F
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (7 steps)
: Source device 1; S
: Source device 2
1
2
Take the instruction AND= for instance. If the comparison result is that
the value in S
is equal to that in S
1
met. If the comparison result is that the value in S
S
, the condition of the instruction is not met.
2
16-bit
API No.
instruction
232
AND=
233
AND>
234
AND<
236
AND<>
237
AND<=
238
AND>=
a 32-bit counter and the 16-bit instruction AND※ are used, ,a program
error will occur, and the ERROR LED indicator on the motion control
module will blink. (C200~C255 are 32-bit counters.)
ON.
to ON.
when M3 is ON, M50 is ON.
X0.0
K200
AND=
X0.1
K- 10
AND<>
X0.2
K678493
DAND>
M3
Ch ap te r 5 Ap plie d Instruc tions
, S
1
2
KnM KnS
D
W
, the condition of the instruction is
2
32-bit
ON
instruction
=S
DAND=
S
1
2
>S
DAND>
S
1
2
<S
DAND<
S
1
2
≠S
S
DAND<>
1
2
≦S
DAND<=
S
1
2
≧S
DAND>=
S
1
2
C10
D0
D10
Function
Comparing values
T
C
V
Z
with that in S
.
1
2
is not equal to that in
1
OFF
≠S
S
1
2
≦S
S
1
2
≧S
S
1
2
=S
S
1
2
>S
S
1
2
<S
S
1
2
Y1.0
SET
Y1.1
M50

Advertisement

Table of Contents
loading

Table of Contents