FX Series Positioning Controllers
5.10.17 FNC24 (INC): Increment, FNC25 (DEC): Decrement
FNC 24
INC
INCREMENT
FNC 25
DEC
DECREMENT
devices
Applicable
devices
and basic
format
5.10.18 FNC26 (WAND): Logical product, FNC27 (WOR): Logical sum,
FNC28 (WXOR): Logical equivalence
FNC 26 WAND
FNC 27 WOR
FNC 28 WXOR
devices
Applicable
devices
and basic
format
Increment/Decrement
INC
16-bit operation
3 steps
DEC
Word
K,H
KnX
KnY
Drive
input
FNC 24
INC
+1
Drive
input
FNC 25
DEC
-1
Logical product (AND)/Logical sum (OR)/Logical
equivalence (XOR)
WAND
16-bit operation
WOR
7 steps
WXOR
S1· S2·
Word
K,H
KnX
KnY
Drive
input
FNC 26
S1·
WAND
S1·
Drive
input
FNC 27
S1·
WOR
S1·
Drive
input
FNC 28
S1·
WXOR
S1·
32-bit operation
5 steps
KnM
D
V,Z
D·
•
Every time the instruction
is executed, "1" is added to
D·
the value of
D·
.
•
Every time the instruction is
D·
executed, "1" is subtracted
from the value of
32-bit operation
11 steps
KnM
D
V,Z
D·
•
Logical multiplication operation is executed between
S2·
D·
each pair of bits.
1 ∧ 1=1, 1 ∧ 0=0, 0 ∧ 1=0, 0 ∧ 0=0
S2·
D·
Convenient to set a certain bit to "0".
•
Logical addition operation is executed between each
S2·
D·
pair of bits.
1 ∨ 1=1, 1 ∨ 0=1, 0 ∨ 1=1, 0 ∨ 0=0
S2·
D·
Convenient to set a certain bit to "1".
•
Logical equivalence operation is executed between
S2·
D·
each pair of bits.
1 ∀ 1=0, 1 ∀ 0=1, 0 ∀ 1=1, 0 ∀ 0=0
S2·
D·
Convenient to compare between certain bits to
evaluate Convenient to compare between certain bits
to evaluate
Applicable models
Series name
[D]INC
FX
[D] DEC
FX
D·
Change to
-32,768
Change to
D·
-2,147,483,648
* The ring operations shown above are
D·
.
performed, but the flags do not operate.
Applicable models
Series name
[D]AND
FX
[D]OR
FX
[D]XOR
Program format 5
Remarks
-10GM
2N
-20GM
2N
in a 16-bit operation
+1 (INC)
0
+32,767
-1 (DEC)
in a 32-bit operation
+1 (INC)
0
+2,147,483,647
-1 (DEC)
Remarks
-10GM
2N
-20GM
2N
5-58