Back to all lessons

Lesson 06

The NOT Logic Operation

NOT inverts signals to express inhibits, faults, and active-low conditions.

logicbeginnerschooluniversityengineerNOT

1. The NOT Operation

NOT is logical negation. It changes a signal to its opposite value:

Output = NOT Input

TRUE becomes FALSE; FALSE becomes TRUE.

2. The Basic NOT Rule

Input_1Output_1
FALSETRUE
TRUEFALSE

NOT has one input and one output and inverts the Boolean state.

3. FBD Diagram

[Input_1] ──> [NOT] ──> [Output_1]

Read from left to right: Input_1 enters NOT, and the opposite value reaches Output_1.

4. Where NOT Is Used

  • prevent starting when a fault is active;
  • permit motion when an obstacle sensor is not active;
  • activate an alarm when a door is not closed;
  • detect the absence of a part;
  • express that Stop is not pressed.

5. Example: Blocking a Start During a Fault

Alarm_Active is TRUE when a fault is active. Starting requires the opposite condition: no fault.

SignalTypePurpose
Alarm_ActiveInputFault active
No_AlarmInternal signalNo fault
Motor_RunOutputMotor run command
No_Alarm = NOT Alarm_Active
Alarm_ActiveNo_Alarm
FALSETRUE
TRUEFALSE

When there is no fault, No_Alarm becomes TRUE and can serve as a start permissive.

6. Starting with a Fault Permissive

The motor should run when Start is pressed and no fault is active:

No_Alarm = NOT Alarm_Active
Motor_Run = Start_Button AND No_Alarm
Start_ButtonAlarm_ActiveNo_AlarmMotor_Run
FALSEFALSETRUEFALSE
TRUEFALSETRUETRUE
FALSETRUEFALSEFALSE
TRUETRUEFALSEFALSE

An active fault prevents running even if Start_Button is TRUE.

7. Inversion and Signal Names

You can compute No_Alarm = NOT Alarm_Active or use a positively named permissive such as Emergency_OK. Names such as Safety_OK, Door_Closed, and Drive_Ready often reduce the number of inversions and make learning diagrams easier to read.

8. Example: Door Not Closed

Door_Closed is TRUE when the door is closed. Invert it to obtain the opposite condition:

Door_Not_Closed = NOT Door_Closed
Door_ClosedDoor_Not_Closed
FALSETRUE
TRUEFALSE

The result can be used for a warning or start inhibit.

9. Simulator Practice

Open the lesson example and start the simulation. Its first path uses one NOT: Input 1 FALSE produces Output 1 TRUE; Input 1 TRUE produces Output 1 FALSE. The second path uses two NOT blocks, so Output 2 follows Input 2.

For another simple inversion, open the NOT example in the examples catalog. Door_Open FALSE produces Door_Closed TRUE; Door_Open TRUE produces Door_Closed FALSE. In edit mode, insert a second NOT after the first and verify that two inversions reproduce the original input.

10. Key Points

  • NOT changes TRUE to FALSE and FALSE to TRUE.
  • Use it to invert signals and express opposite conditions.
  • When reading a diagram, account for every NOT in the signal path.
  • Clear signal names can reduce unnecessary inversions.

Practice block

Open the related example in the editor, run the simulation, and repeat the exercise from the article. The JSON is also available as a direct download.