EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Logical Operations ANDL; ORL; NOTL

SEW-Eurodrive IPOS plus
384 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...
358
Manual – IPOSplus®
23
Comparison commands
Assembler – Commands
23.10.2 Logical operations ANDL / ORL / NOTL
ANDL LOGICAL
AND
The ANDL command is the logical AND operation of two variables. The result is written
to variable X1. Variable X2 remains unchanged. The result is zero when one of the two
variables = 0. The result is one when both variables != 0.
Structure
Example 1
SET H01 = 100
SET H02 = 0
ANDL H01 && H02
After the program has been processed, H01 has the value zero.
Example 2
SET H01 = 100
SET H02 = 50
ANDL H01 && H02
After the program has been processed, H01 has the value one.
ORL/LOGICAL OR The ORL command is the logical OR operation of two variables. The result is written to
variable X1. Variable X2 remains unchanged. The result is one when one of the two vari-
ables != 0. The result is zero when both variables = 0.
Structure
Example 1
SET H01 = 100
SET H02 = 0
ORL H01 ¦¦ H02
After the program has been processed, H01 has the value one.
Example 2
SET H01 = 0
SET H02 = 0
ORL H01 ¦¦ H02
After the program has been processed, H01 has the value zero.
Command structure
Mxxx ANDL X1 && X2
Mxxx: Label (optional)
X1: Variable (result)
X2: Variable
Command structure
Mxxx ORL X1 ¦¦ X2
Mxxx: Label (optional)
X1: Variable (result)
X2: Variable
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents