NOT |
Top Previous Next |
The logical operator NOT operates on expressions with the BOOL, SINT, INT, and DINT data types. When operating on data types other than BOOL, the operation is bitwise (which is to say that all "1" bits will be set to "0" and vice versa). When operating on BOOL, it has the following truth table:
Input Output ----------------------- 0 1 1 0 -----------------------
It can also be used in #IFDEF conditional compilation directive.
Example: INCLUDE rtcu.inc |