Chapter 8 Logic Instructions
8-123
FB/FC
FC
NOT is used for the NOT operation taking the inverse of a variable or
DVP15MC11T-06
Parameters
Meaning
Description Valid range
In Operand Input
Input parameter to take the
inverse
Depends on the data type of the
variable that the input parameter is
Out
Operation
result
Output Not operation result
Depends on the data type of the
variable that the output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
LWORD
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
STRING
In
● ● ● ● ● ● ● ● ●
Out
● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data
type.
Function Explanation
NOT is used for the bitwise NOT operation taking the inverse of the value of a variable or constant
and the result is output to Out.
The operational rule:
If one bit of the input variable is TRUE, the corresponding bit of the output variable is FALSE. If one
bit of the input variable is FALSE, the corresponding bit of the output variable is TRUE.
The data type of Out must be the same as In.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software if
any input variable is omitted. But the output variable is allowed to omit.
001
011
00
1
101
0011
Bit0Bit7
In
Out