6F3B0253
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 |
|
|
|
|
|
|
| Register |
|
|
|
|
|
| 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
If the data of D0125 is
D0125
<Constant
R020 is ON
If the data of D0125 is 0, the comparison result is false. Consequently, R020 is turned OFF.
D0125
0
≥Constant
R020 is OFF
Note
•This instruction deals with the data as signed integer
Basic Hardware and Function 183