Block that performs a logical operation of boolean "not" in a variable, storing the result in another.
Ladder Representation
![]()
Block Structure
Variable Type |
Name |
Data Type |
Description |
VAR_INPUT |
EN |
BOOL |
Block enabling |
Value |
BYTE USINT SINT WORD UINT INT DWORD UDINT DINT |
Reference variable for the operation |
|
VAR_OUTPUT |
ENO |
BOOL |
End of operation |
Result |
BYTE USINT SINT WORD UINT INT DWORD UDINT DINT |
Variable that stores the result of the operation |
Operation
When this block has a TRUE value in EN, it sends to the Result output the denied Boolean value of the Value input variable.
When EN has FALSE value, Result remains unchanged.
The ENO value forwards to the next Ladder block the EN value after the operation is completed.
Block Flowchart

Example in Ladder

The example above performs a boolean "not" operation in AUX, storing the result in AUX2.
Example in ST
The example below displays the instructions for applying the example above in the ST language.
VAR AUX : BYTE := 2#0011_1011; AUX2 : BYTE; END_VAR
AUX2 := FB_NOT( EN:=DI1, Value:=AUX, ENO=>DO1);
|
|---|