6F3B0250
Basic Hardware and Function 201
7. Instructions

FUN 101 <= Less than or equal

Expression
Input -[
A
<=
B
]- Output
Function
When the input is ON, the data of
A
and the data of
B
are compared, and if
A
is less than or equal to
B
, the output is turned ON.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution
A
£
B
ON
A
>
B
OFF
Operand
Name Device Re
g
ister Constant Index
X Y R S T. C. XW YW RW SW T C D I J K
A
Compared
data ÖÖÖÖÖÖÖÖÖÖ Ö Ö
B
Reference data ÖÖÖÖÖÖÖÖÖÖ Ö Ö
Example
When R00C is ON, the data of D0125 is compared with the constant data -100, and if the data of
D0125 is less than or eq ual t o - 100, R020 is turned ON.
If t he data of D0125 is -150, t he comparison result is tr ue. Consequently, R020 is tur ned ON.
D0125 -150 <Constant -100 R020 is ON
If t he data of D0125 is 0, t he com parison result is f alse. Consequently, R020 is turned O FF.
D0125 0 ³Constant -100 R020 is OFF
Note
· This instr uct ion deals with the dat a as signed integer (-32768 to 32767).
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net