Chapter 4. programming – IAI America S-SEL-E User Manual
Page 161

Page 156
Chapter 4. Programming
[Function]
Turns ON the post flag or the output port when the value in Operand 1 is less than the value in Operand 2.
(Variable values do not change.) If it is equal to or greater than the value in Operand 2, the output section turns
OFF.
[Example]
CPLT 1
5
600
When the content of variable 1 in Operand 1 is less than the content of Operand 2 (in this case, when it
becomes equal to or less than 4), output 600 turns ON. When the condition is not met, output 600 turns OFF.
CPLT 1
*2
600
When the content of variable 1 in Operand 1 is less than the content of the variable in Operand 2, output 600
turns ON. When the condition is not met, 600 turns OFF.
[Function]
Turns ON the post flag or the output port when the value in Operand 1 is equal to or less than the value in
Operand 2. (Variable values do not change.) When the condition is not met, the output section turns OFF.
* It is almost impossible for the values to be equal as explained in the section on the CPEQ command.
[Example]
CPLE 1
5
600
When the content of variable 1 in Operand 1 is equal to or less than the content of Operand 2 (in this case,
equal to or less than 5), output 600 turns ON. If the content of variable 1 is 6 or greater, output 600 turns OFF.
CPLE 1
*2
600
If the content of variable 1 in Operand 1 is equal to or less than the content of the variable in Operand 2, output
600 turns ON. If it is greater than the content of variable 2, 600 turns OFF.
CPLT (Compare if less than)
E x p a n s io n
c o n d itio n
( A N D · O R )
In p u t
c o n d itio n
( I/O · F la g )
C o m m a n d
P o s t
( O u tp u t p o r t · F la g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p tio n a l
O p tio n a l
C P L E
V a r ia b le n o .
D a ta ·V a r ia b le n o .
R e q u ir e d
E x p a n s io n
c o n d itio n
( A N D · O R )
In p u t
c o n d itio n
( I/O · F la g )
C o m m a n d
P o s t
( O u tp u t p o r t · F la g )
C o m m a n d
O p e r a n d 1
O p e r a n d 2
O p tio n a l
O p tio n a l
C P LT
V a r ia b le n o .
D a ta ·V a r ia b le n o .
R e q u ir e d
CPLE (Compare if equal or less than)