NOT

PLCopen motion icon

Operator - Performs a Boolean negation of the input.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN

BOOL

 

 

 

Boolean value.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

Boolean negation of the input.

Truth Table

IN

Q

0

1

1

0

Remarks

FBD Language

Example: Explicit use of the NOT block:
Not FBD

Example: Use of a negated link: Q is IN1 AND NOT IN2:
Not FBD

FFLD Language

  • In the FFLD language, negated contacts and coils can be used.

Example: Negated contact: Q is: IN1 AND NOT IN2:
Not FFLD

Example: Negated coil: Q is NOT (IN1 AND IN2):
Not FFLD

IL Language

Op1: FFLDN IN1
     OR  IN2
     ST  Q   (* Q is equal to: (NOT IN1) OR IN2 *)
Op2: FFLD  IN1
     AND IN2
     STN Q   (* Q is equal to: NOT (IN1 AND IN2) *)st

ST Language

  • In the ST language, NOT can be followed by a complex Boolean expression between parentheses.
Q := NOT IN;
Q := NOT (IN1 OR IN2);

See Also