FE MONITOUCH V8 SERIES Reference: Additional Functions page 373

Table of Contents

Advertisement

23
Macro
F0 = NEG (F1) (W) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WORD
F0 = NEG (F1) (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DWORD
F0 = NEG (F1) (F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FLOAT
Function: Sign inversion
This macro command is used to store a value with its sign inverted from [F1] in [F0].
WORD
Available memory
F0
F1
Range
F0
F1
Example
• $u100 = NEG ($u200) (W)
When $u200 = "-1", on command execution "1" is stored in $u100.
Supplementary information
• $s1056 stores the result of macro execution.
Code (DEC)
* An indefinite value is stored in [F0].
23-4
-
F1
+
F1
+
-
Internal Memory
WORD
-32767 to +32767
(Decimal system
with signs)
1
1
1
$u200
F
0
0
0
$u100
0
0
1
2
DWORD
FLOAT
F0
F1+1
-
F0
F1+1
+
PLC1 - PLC8
Memory Card
Memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
DWORD
-2147483647 to +2147483647
(Decimal system with signs)
1
1
1
1
1
1
1
1
F
F
-1
NEG
0
0
0
0
0
0
0
0
0
0
1
Contents
Normal
Overflow*
Underflow*
F1
F0+1
+
F1
F0+1
-
Constant
FLOAT
IEEE 32-bit single precision
real number
1
1 1
1 1 BIN
F
HEX
DEC
0
0 0
0 1 BIN
1
HEX
DEC
F0
F0

Advertisement

Table of Contents
loading

Table of Contents