Not (Negation in binary format)
Command
Negation on <value 1> in binary format (bit
reversal)
not (Negation)
*1. You cannot obtain a correct result with commands such as UB(1) not UB(0).
Use "xor" command to reverse variables with bit data size as shown in the following examples.
• Example 1: UB(1) UB(0) xor 1
• Example 2: UB(2) X(00) xor 1
Note If an overflow or underflow occurs, the Drive Programming detects it as an error. Take neces-
Example
Block number
1
Assigns 12 to U(03).
2
Assigns 65523 (binary: 111110011), which is the result of negation (bit reversal) on 12 (U(03)
binary: 00000110), to U(04).
3
Jumps to the block 3: loop_ unconditionally.
Drive Programming User's Manual (I580-E2)
Description
Value 1
Result
0
1
1
0
Flowchart method
<result> :
not <value>
sary measures in the application so that they do not occur.
Flowchart
6 Drive Programming Commands
Result: any variable except variables with bit
*1
data size
Value: any variable except variables and con-
stants with bit data size
(range 2,147,483,648 to 2,147,483,647)
Format
Text language method
<result> : not <value>
Operation
Argument
*1
Text
6 - 33
6