NOT
Inputs
IN : BOOL Boolean value
Outputs
Q : BOOL Boolean negation of the input
Truth table
IN | Q |
---|---|
0 |
1 |
1 |
0 |
Remarks
In FBD "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 IL "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 ST "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 *)
(* use of a negated link: Q is IN1 AND NOT IN2 *)
FFLD Language
(* Negated contact: Q is: IN1 AND NOT IN2 *)
(* Negated coil: Q is NOT (IN1 AND IN2) *)
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