3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e i n f o r m a t i o n v i s i t : w w w. e a t o n . c o m
3 - 5 1 9
API Mnemonic
Operands
Function
287~
292
FOR*
S
1
, S
2
Floating Point Number Parallel Contact
Comparison
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C
D
E
F
S
1
*
*
*
S
2
*
*
*
FOR*: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P 32 16 P 32
16
P
Operands:
S
1
: Data source value 1
S
2
: Data source value 2
Description:
1.
Compare the contents of
S
1
and of
S
2
. For example “FOR=” compares
S
1
and of
S
2
,and if the
comparison result is “=”, the instruction is true, and if it is “
≠
”, the instruction is false.
2.
The FOR* operands, can directly insert floating point numbers into S
1
and S
2
can each be 2 T,
C, D or actual floating point values (e.g. F1.2).
3.
The FOR*instruction is an input instruction
API No.
32-bit
instruction
Instruction is true Instruction is false
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:
If both X2 and M30 are “ON”, or if the contents of the floating point numbers D101, D100 are greater
or equal to F1.234, M60=ON.
FOR>=
D100
F1.234
X2
M30
M60
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...