![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/8d/38d56254-54fe-46e3-85ae-d3f5260e1091/38d56254-54fe-46e3-85ae-d3f5260e1091-bg96.png)
FX Series Programmable Controlers Applied Instructions 5
5-24
5.3 Arithmetic And Logical Operations -
Functions 20 to 29
Contents:
Pa
e
ADD - Addition FNC 20 5-25
SUB - Subtraction FNC 21 5-26
MUL - Multiplication FNC 22 5-27
DIV - Division FNC 23 5-28
INC - Increment FNC 24 5-29
DEC - Decrement FNC 25 5-29
WAND - Word AND FNC 26 5-30
WOR - Word OR FNC 27 5-30
WXOR - Word Exclusive OR FNC 28 5-31
NEG - Ne
ation FNC 29 5-31
Symbols list:
D - Destination device.
S - Source device.
m, n- Number of active devices, bits or an operational constant.
Additional numeric suffixes will be attached if there are more than one operand with the same
function e.
. D
1
, S
3
or for lists/tabled devices D
3+0,
S
+9
etc.
MSB - Most Si
nificant Bit, sometimes used to indicate the mathematical si
n of a number, i.e.
positive = 0, and ne
ative = 1.
LSB - Least Si
nificant Bit.
Instruction modifications:
-
An instruction operatin
in 16 bit mode, where identifies the instruction
mnemonic.
P - A 16 bit mode instruction modified to use pulse (sin
le) operation.
D
- An instruction modified to operate in 32 bit operation.
D P - A 32 bit mode instruction modified to use pulse (sin
le) operation.
- A repetitive instruction which will chan
e the destination value on ever
scan unless
modified b
the pulse function.
- An operand which cannot be indexed, i.e. The addition of V or Z is either invalid or will
have no effect to the value of the operand.