Skip to main content

6.1.3.5.4 NOT

Function

Perform a "reverse" operation on the value of IN1 based on binary bits, and output the result at OUT

LD Graphics

alt text

Parameter description

Interface variableDeclarationData typeDescription
INVar_InputANY_BITOperand
OUTVar_OutputANY_BITOutput result
warning
  • ANY_BIT data types include BYTE, WORD, DWORD, and LWORD
  • ST language operator: NOT

Example

The signal status of the result of a logical operation can be inverted. Negation can be used anywhere. As shown in the figure below, the result after negation of 15 is 240

Operandvalue
IN10000 1111
OUT1111 0000

alt text