Operators - JUMO LOGOSCREEN 601 Manual

Paperless recorder, st editor
Hide thumbs Also See for LOGOSCREEN 601:
Table of Contents

Advertisement

6

Operators

All operators supported by the ST module are shown in the following table. The order in the table de-
pends on the ranking of the operators, starting with the highest rank.
Operation
Brackets
Function
Negation
Complement
Multiplication
Division
Modulo
Addition
Subtraction
Comparison
Equivalence
Inequivalence
AND
Exclusive OR
OR
a
Boolean variables are logically linked, integer variables are linked bit-by-bit.
Symbol
(expression)
Identifier (argument
list)
-
NOT
*
/
MOD
+
-
<, >, <=, >=
=
<>
& or AND
XOR
OR
Admissible data types Example
REAL
a
BOOL, UINT, UDINT
UINT, UDINT, REAL
UINT, UDINT
UINT, UDINT, REAL
UINT, UDINT, REAL,
DATE_AND_TIME
BOOL, UINT, UDINT,
REAL,
DATE_AND_TIME
a
BOOL, UINT, UDINT
a
BOOL, UINT, UDINT
a
BOOL, UINT, UDINT
6 Operators
a := 3.0 * (b - 1.0);
i := MIN (3, j);
a := -a;
a := NOT b;
i := 5 * j;
a := 5.0 / b;
j := i MOD 10;
i := 5 + j;
a := b - 5.0E20;
bExample := 5 <= j;
bExample := 5 = i;
bExample := 5 <> j;
bExample := x AND y;
bExample := x XOR y;
bExample := x OR y;
29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Logoscreen 700706521706530

Table of Contents