NOTPLCopen motion icon

Operator - Performs a Boolean negation of the input.

Inputs

IN : BOOL  Boolean value

Outputs

Q : BOOL   Boolean negation of the input

Truth table

IN Q

0

1

1

0

Remarks

In FBDClosed"Function block diagram" A function block diagram describes a function between input variables and output variables. A function is described as a set of elementary blocks language, the block "NOT" can be used. Alternatively, you can use a link terminated by a "o" negation. In FFLD language, negated contacts and coils can be used. In ILClosed"Instruction list" This is a low-level language and resembles assembly language, the "N" modifier can be used with instructions FFLD, AND, OR, XOR and STClosed"Structured text" A high-level language that is block structured and syntactically resembles Pascal. It represents a negation of the operand. In ST language, NOT can be followed by a complex Boolean expression between parentheses.

ST Language

Q := NOT IN;
Q := NOT (IN1 OR IN2);

FBD Language

(* explicit use of the "NOT" block *)
Not FBD
(* use of a negated link: Q is IN1 AND NOT IN2 *)
Not FBD

FFLD Language

(* Negated contact: Q is: IN1 AND NOT IN2 *)
Not FFLD
(* 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) *)

See also

AND   OR   XOR