The NOT and NOTP instructions are logical invert instructions. When a NOT instruction is run, S1 is logically inverted and the result is stored in D1. NOT and NOTP instructions always pass power. If the variables designated to operands S1 and D1 are not the same type, an error will occur when using the NOT/NOTP instructions. Designate the same variable type in all operands S1 and D1.
Refer to the following for specifying a constant.
S1 |
Operator |
D1 |
---|---|---|
OFF |
NOT |
ON |
ON |
OFF |
When a NOT instruction is executed, if the S1 bit is OFF, the D1 bit turns ON. If the S1 bit is ON, the D1 bit turns OFF.
When operand D1 is an integer variable
When operand D1 is an integer variable and you want to input hexadecimal values in operand S1.
When 0x (zero and lower case "x") is input, the following values become hexadecimal values.
When Calculating Data in a Specified Array (Integer Variable Array)
Specifying the entire array
Individually Specifying Array Variables