Boolean NOT (BNOT)
This information applies to the CompactLogix 5370, ControlLogix 5570, Compact GuardLogix 5370, GuardLogix 5570, Compact GuardLogix 5380, CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, and GuardLogix 5580 controllers.
The BNOT instruction complements a Boolean input. To perform a bitwise NOT, refer to
Bitwise Not (NOT)
.Available Languages
Ladder Diagram
This instruction is not available in ladder diagram.
Function Block Diagram
Function Block Diagram supports these elements:
FBD Block
FBD Function
TIP:
FBD Function is applicable to CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers only.
Structured Text
This instruction is not available in structured text.
Operands
Function Block Diagram
FBD Block
Operand | Data Type | Format | Description |
---|---|---|---|
BNOT tag | FBD_BOOLEAN_NOT | structure | BNOT structure |
FBD_BOOLEAN_NOT Structure
Input Members | Data Type | Description |
---|---|---|
EnableIn | BOOL | Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set. |
In | BOOL | Input to the instruction.
Set to 1 on first download |
Output Members | Data Type | Description |
---|---|---|
EnableOut | BOOL | Indicates if instruction is enabled. |
Out | BOOL | The output of the instruction. |
FBD Function
TIP:
FBD Function is applicable to CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers only.
Input Operands (Left Pins) | Data Type CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers | Description |
---|---|---|
In | BOOL | Input to the instruction. |
Output Operand (Right Pin) | Data Type CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers | Description |
---|---|---|
Out | BOOL | The output of the instruction. |
See FBD Functions.
Operation
The BNOT instruction complements a Boolean input.
Out = NOT In
Affects Math Status Flags
No
Major/Minor Faults
None specific to this instruction.
Execution
Function Block Diagram
FBD Block
Condition/State | Action Taken |
---|---|
Prescan | EnableIn and EnableOut bits are cleared to false. |
Tag.EnableIn is false | EnableIn and EnableOut bits are cleared to false. |
Tag.EnableIn is true | EnableIn and EnableOut bits are set to true. The instruction executes as described in the Operation section. |
Instruction first run | N/A |
Instruction first scan | N/A |
Postscan | EnableIn and EnableOut bits are cleared to false. |
FBD Functions
TIP:
FBD Function is applicable to CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers only.
Condition/State | Action Taken |
---|---|
Prescan | N/A |
Normal Scan | The instruction executes as described in the Operation section. |
Instruction first run | N/A |
Instruction first scan | N/A |
Postscan | N/A |
Example
Function Block Diagram
FBD Block
In this example, bool_in1 is copied into BNOT_02.In, the result of the complement of BNOT_02.In is placed into BNOT_02.Out and BNOT_02.Out is copied into value_result_not.
If bool_in1 is: | Then value_result_not is: |
---|---|
0 | 1 |
1 | 0 |
FBD Function
In this example, the result of the complement of bool_in1 is placed in value_result_not.
Provide Feedback