API
FOR※
287~
292
Bit Devices
X
M
Y
K
S1
S2
Operand: #: &, |, ^
Please refer to the specifications of each model for the
range of operands.
S1: Source device 1 S2: Source device 2
Explanation
This instruction compares the content in S1 and S2. 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
The user can specify the floating point value directly into operands S1 and S2
(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.
When both X2 and M30 are On and the content in D100(D101) ≥ F1.234, M60 =
Example
ON..
S1
S2
Word Devices
H
KnX KnY KnM
T
*
*
32-bit instruction
FOR=
287
FOR>
288
FOR<
289
FOR<>
290
FOR<=
291
FOR>=
292
X2
M30
FOR>=
D100
Chapter 16 PLC Function C2000 Series
Floating Point Contact Type
Comparison OR※
16-bit command (5 STEPS)
-
-
C
D
*
*
32-bit command (9 STEPS)
*
*
FOR※
-
Flag signal: none
Continuity 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
F1.234
16-107
-
-
-
-
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
M60