EasyManua.ls Logo

Delta DVP-SE - Page 697

Delta DVP-SE
1006 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-576
API
Mnemonic Operands Function
Controllers
ES2/EX2
SS2
SA2
SE
SX2
287~
292
FOR※
Floating Point Contact Type
Comparison OR※
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
FOR※: 9 steps
S
1
*
*
*
S
2
*
*
*
PULSE
16-bit
32-bit
ES2/
EX2
SS2
SA2/
SE
SX2
ES2/
EX2
SS2
SA2/
SE
SX2
ES2/
EX2
SS2
SA2/
SE
SX2
Operands:
S
1
: Source device 1 S
2
: Source device 2
Explanations:
1. This instruction compares the content in S
1
and S
2
. Take “FOR =” for example, if the result is “=”,
the continuity of the instruction is enabled. If the result is “≠”, the continuity of the instruction is
disabled
2. The user can specify the floating point value directly into operands S
1
and S
2
(e.g. F1.2) or store
the floating point value in D registers for further operation.
FOR※ instruction is used for parallel connection with contacts.
API No.
32-bit instruction
Continuity condition
Discontinuity condition
287
FOR
=
S
1
=
S
2
S
1
≠S
2
288
FOR>
S
1
>S
2
S
1
≦S
2
289
FOR<
S
1
<S
2
S
1
≧S
2
290
FOR<>
S
1
≠S
2
S
1
=S
2
291
FOR
<=
S
1
≦S
2
S
1
>
S
2
292
FOR>=
S
1
≧S
2
S
1
<S
2
Program Example:
When both X2 and M30 are On and the content in D100(D101) ≥ F1.234, M60 = ON..
FOR>= D100 F1.234
X2 M30
M60

Table of Contents