NOT block

Short summary

Name

NOT

→POU type

→function

Category

IEC-block, Bitstring

Conform to →IEC-standard

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg no restrictions

Graphical interface

images/download/thumbnails/414780757/NOT-version-1-modificationdate-1534860725677-api-v2.png

Available since

version 1.0.0 (for logi.CAD 3)

Functionality

The block returns the bitwise complement of the input. All set bits of the input are reset and all non-set bits of the input are set.

Inputs, return value


Identifier

→Data type

Inputs :

IN

BOOL, BYTE, WORD, DWORD or LWORD(corresponds to →generic data type ANY_BIT)

Return value:

BOOL, BYTE, WORD, DWORD or LWORD(corresponds to →generic data type ANY_BIT)

Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

Example for usage within ST-editor

PROGRAM Test
VAR
result1, result2 : BOOL;
END_VAR
result1 := NOT(TRUE); (* The variable 'result1' evaluates to 'FALSE'. *)
result2 := NOT(FALSE); (* The variable 'result2' evaluates to 'TRUE'. *)
END_PROGRAM

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.