
Tip
When viewing large statements, press the left mouse button to pan and use the
scroll wheel to zoom.
Overview of the combinatory logic operators
The following operators can be used:
Logical (Boolean) operators
The logical operators work only on actuators and resultants of type
bool
.
Syntax example
Description
Operator
Destination := Source1 AND Source2 ...
AND Source8
Logical AND operator.
1 if all source signals are 1.
AND
Destination := Source1 OR Source2 ... OR
Source8
Logical OR operator.
1 if at least one of the source sig-
nals is 1.
OR
Destination := Source1 XOR Source2 ...
XOR Source8
Logical exclusive OR operator.
1 if odd number of source signals
are 1.
XOR
Destination := NOT Source
Inverted value
NOT
Arithmetic (integer) operators
The arithmetic operators work only on actuators and resultants of type
INT32
.
Syntax example
Description
Operator
Destination := S Source2
Add integer value.
+
Destination := Source1 - Source2
Subtract integer value.
-
Destination := Source1 * Source2
Multiply integer value.
*
Destination := Source1 / Source2
Divide integer value. See also the
operator DIV.
Note
Division by zero is undefined. If
the denominator is zero, then the
quotient keeps its current value.
/
Destination := Source1 < Source2
Compares two integer values and
produces a Boolean result.
<, <=, ==, >,
>=, !=
Destination := Source1 != Source2
(smaller than, smaller/equal, equal,
larger than, larger/equal, not
equal)
...
Destination := ABS Source
Absolute value of integer.
ABS
COPY(Source, Destination1, Destina-
tion2,...,Destination8)
Copy integer value.
Copy integer value from source to
up to eight destination signals.
COPY
Continues on next page
100
Application manual - Functional safety and SafeMove2
3HAC052610-001 Revision: P
© Copyright 2016-2020 ABB. All rights reserved.
4 The Visual SafeMove user interface in RobotStudio
4.6.4 Pre-logic and post-logic
Continued
Summary of Contents for SafeMove2
Page 1: ...ROBOTICS Application manual Functional safety and SafeMove2 ...
Page 8: ...This page is intentionally left blank ...
Page 16: ...This page is intentionally left blank ...
Page 34: ...This page is intentionally left blank ...
Page 56: ...This page is intentionally left blank ...
Page 72: ...This page is intentionally left blank ...
Page 112: ...This page is intentionally left blank ...
Page 194: ...This page is intentionally left blank ...
Page 196: ...This page is intentionally left blank ...
Page 234: ...This page is intentionally left blank ...
Page 237: ......