6.1.3.5.4 NOT
Function
Perform a "reverse" operation on the value of IN1 based on binary bits, and output the result at OUT
LD Graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| IN | Var_Input | ANY_BIT | Operand |
| OUT | Var_Output | ANY_BIT | Output result |
warning
- ANY_BIT data types include BYTE, WORD, DWORD, and LWORD
- ST language operator: NOT
Example
The signal status of the result of a logical operation can be inverted. Negation can be used anywhere. As shown in the figure below, the result after negation of 15 is 240
| Operand | value |
|---|---|
| IN1 | 0000 1111 |
| OUT | 1111 0000 |
