EasyManua.ls Logo

JUMO LOGOSCREEN 700 - 8.5 Logical Functions

JUMO LOGOSCREEN 700
64 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
41
8 Functions
8.5 Logical functions
Boolean variables are linked logically, UINT and UDINT variables are linked bit-by-bit.
If there are more than two parameters, each pair is always linked from left to right.
Admissible data types
Operand: BOOL, UINT, UDINT
Result: BOOL, UINT, UDINT
AND
AND link
Examples:
Logical link:
x := TRUE;
y := FALSE;
z := x AND y; (* z = FALSE *)
Bit-by-bit link:
a := 5; (* 0101 *)
b := 6; (* 0110 *)
c := a AND b; (* 0100 = 4 *)
OR
OR link
Examples:
Logical link:
x := TRUE;
y := FALSE;
z := x OR y; (* z = TRUE *)
Bit-by-bit link:
a := 5; (* 0101 *)
b := 6; (* 0110 *)
c := a OR b; (* 0111 = 7 *)
XOR
Exclusive OR link
Examples:
Logical link:
x := TRUE;
y := FALSE;
z := x XOR y; (* z = TRUE *)
Bit-by-bit link:
a := 5; (* 0101 *)
b := 6; (* 0110 *)
c := a XOR b; (* 0011 = 3 *)

Other manuals for JUMO LOGOSCREEN 700

Related product manuals