FE MONITOUCH V8 SERIES Reference: Additional Functions page 394

Table of Contents

Advertisement

Comparison
IF (F0 (condition) F1) (W) . . . . . . . . . . . . . . . . . . . . . . . WORD
IF (F0 (condition) F1) (D) . . . . . . . . . . . . . . . . . . . . . . . DWORD
IF (condition 2) (F0) (B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . BIT
(1)
ELSE
(2)
ENDIF
Function: Conditional branch
The above-mentioned macro commands for data in WORD and DWORD formats are used to compare
[F0] and [F1], and to execute processing (1) if true, or (2) if false.
The macro command for data in BIT format is used to compare [F0] and condition 2, and to execute
processing (1) if true, or (2) if false.
Processing of "ELSE" and (2) can be omitted.
Conditions 1
Symbol
==
!=
<
>
Greater than
<=
Less than or equal to
>=
Greater than or equal to
Available memory
Internal Memory
F0
F1
Range
WORD
F0
-32768 to +32767
(Decimal system with signs)
F1
Contents
Equal
Different
Less than
PLC1 - PLC8
Memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
-2147483648 to +2147483647
(Decimal system with signs)
Conditions 2
Symbol
Contents
ZERO
NON ZERO
Other than 0
Memory Card
Constant
DWORD
23
Macro
23
0
BIT
0, 1
-
23-25

Advertisement

Table of Contents
loading

Table of Contents