![SEW-Eurodrive IPOS plus Скачать руководство пользователя страница 355](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042355.webp)
Manual – IPOSplus®
355
23
Comparison commands
Assembler – Commands
23.10 Comparison commands
23.10.1 Comparison operations CPEQ / CPGE / CPGT / CPLE / CPLT / CPNE
A variable is compared with a 2nd argument (variable or constant). The following com-
parisons are possible:
• Equal to (CPEQ)
• Greater than or equal to (CPGE)
• Greater than (CPGT)
• Less than or equal to (CPLE)
• Less than (CPLT)
• Not equal to (CPNE)
The result can be processed further with a subsequent jump command.
CPEQ/COMPARE
EQUAL
The CPEQ command compares, observing the signs, whether variable X1 is the same
as variable or constant X2. Variable X1 contains the result. It is not equal to zero if the
condition is fulfilled; otherwise, the result is zero.
The result can be processed further, for example, with a subsequent jump command.
Variable X2 remains unchanged.
Structure
Example 1
SET H0 = 13
SET H1 = 50
CPEQ H0 == H1
After the program has been processed, H0 has the value zero and H1 the value 50.
Example 2
SET H0 = 13
CPEQ H0 == 13
After the program has been processed, H0 has the value one.
CPGE/COMPARE
GREATER OR
EQUAL
The CPGE command compares, observing the signs, whether variable X1 is greater
than or equal to the variable or constant X2. Variable X1 contains the result. It is not
equal to zero if the condition is fulfilled; otherwise, the result is zero.
The result can be processed further, for example, with a subsequent jump command.
Variable X2 remains unchanged.
Structure
Command structure
Mxxx CPEQ X1 == X2
Mxxx: Label
(optional)
X1:
Variable (result)
X2:
Variable or constant
Command structure
Mxxx CPGE X1 >= X2
Mxxx: Label
(optional)
X1:
Variable (result)
X2:
Variable or constant
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n