E L C P r o g r a m m i n g M a n u a l
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 M N 0 5 0 0 3 0 0 3 E
3 - 5 1 8
API Mnemonic
Operands
Function
281~
286
FAND*
S
1
, S
2
Floating Point Number Series 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
*
*
*
FAND*: 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, “FAND=”,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 FAND* 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 FAND* instruction is an input instruction
API No.
32 -bit instruction
Instruction is true Instruction is false
232
FAND
=
S
1
=
S
2
S
1
≠
S
2
233
FAND
>
S
1
>
S
2
S
1
≦
S
2
234
FAND
<
S
1
<
S
2
S
1
≧
S
2
236
FAND
<>
S
1
≠
S
2
S
1
=
S
2
237
FAND
<=
S
1
≦
S
2
S
1
>
S
2
238
FAND
>=
S
1
≧
S
2
S
1
<
S
2
Program Example:
If X1=OFF and the contents of floating point numbers D1, D0 is not equal to F1.2, set Y21=ON.
FAND<>
F1.2
D0
SET
Y21
X1
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...