FX Series Programmable Controlers Applied Instructions 5
5-39
5.3.10 NEG (FNC 29)
Operation:
The bit pattern of the selected device is inverted.
This means any occurrence of a ‘1’ becomes a ‘0’
and any occurrence of a ‘0’ will be written as a ‘1’.
When this is complete, a further binary 1 is added to the bit pattern. The result is the total
logical sign change of the selected devices contents, e.g. a positive number will become a
negative number or a negative number will become a positive.
Mnemonic Function
Operands
Program steps
D
NEG
FNC 29
(Negation)
Logically inverts
the contents of
the designated
device
KnY, KnM, KnS,
T, C, D, V, Z
NEG,NEGP:
3steps
DNEG,
DNEGP:
5steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X0
[ D ]
D 10
NEG