Fnc28 (Wxor): Logical Equivalence; Fnc24 (Inc): Increment, Fnc25 (Dec): Decrement - Mitsubishi FX2N-10GM Hardware / Programming Manual

Melsec-f
Hide thumbs Also See for FX2N-10GM:
Table of Contents

Advertisement

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
Every time the instruction
is executed, "1" is added to
the value of
.
Every time the instruction is
executed, "1" is subtracted
from the value of
32-bit operation
11 steps
KnM
D
V,Z
Logical multiplication operation is executed between
S2·
each pair of bits.
1 ∧ 1=1, 1 ∧ 0=0, 0 ∧ 1=0, 0 ∧ 0=0
S2·
Convenient to set a certain bit to "0".
Logical addition operation is executed between each
S2·
pair of bits.
1 ∨ 1=1, 1 ∨ 0=1, 0 ∨ 1=1, 0 ∨ 0=0
S2·
Convenient to set a certain bit to "1".
Logical equivalence operation is executed between
S2·
each pair of bits.
1 ∀ 1=0, 1 ∀ 0=1, 0 ∀ 1=1, 0 ∀ 0=0
S2·
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
Change to
-32,768
Change to
-2,147,483,648
* The ring operations shown above are
.
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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx2n-20gm

Table of Contents