0% found this document useful (0 votes)
175 views1 page

WinCC C Script: Bit Operators Guide

The document discusses different types of bitwise and logical operators that can be used to manipulate variables in WinCC. It describes 6 bitwise operators that allow setting, querying, or resetting individual bits, including AND, OR, exclusive OR, and inversion. It also lists 7 logical operators such as greater than, equal to, and AND/OR that generate true or false Boolean values based on whether the value is 0 or non-zero.

Uploaded by

viniciusbj3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
175 views1 page

WinCC C Script: Bit Operators Guide

The document discusses different types of bitwise and logical operators that can be used to manipulate variables in WinCC. It describes 6 bitwise operators that allow setting, querying, or resetting individual bits, including AND, OR, exclusive OR, and inversion. It also lists 7 logical operators such as greater than, equal to, and AND/OR that generate true or false Boolean values based on whether the value is 0 or non-zero.

Uploaded by

viniciusbj3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

WinCC C-Course 09.

99

Bit-by-Bit Operators
These operators make it possible to set, query or reset individual bits in variables.

Operator Description
& Bit-by-Bit AND
| Bit-by-Bit OR
^ Bit-by-Bit exclusive OR
~ Bit-by-Bit inversion
<< Move bits to the left
>> Move bits to the right

Logical Operators
All logical operators follow the same rule: 0 is FALSE, all other numbers are TRUE. These
operators either generate a 0 (FALSE) or a 1 (TRUE).

Operator Description
> Greater than
>= Greater than or equal to
== Equal to
!= Not equal to
<= Less than or equal to
< Less than
&& Logical AND
|| Logical OR
! Logical inversion

4-32 WinCC Configuration Manual


C79000-G8276-C157-01

You might also like