
6F3B0253
7. Instructions
FUN 161
LL
Lower limit
Expression
Input − [ A LL B → C ]− Output
Function
When the input is ON, the following operation is executed. (Lower limit for A by B) If A ≥ B, then C = A.
If A < B, then C = B.
Execution condition
Input | Operation | Output |
OFF | No operation | OFF |
ON | Execution: not limited (A ≥ B) | OFF |
| Execution: limited (A < B) | ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
|
|
|
| Register |
|
|
|
|
| Constant | Index | ||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I |
| J | K |
|
| |||
A | Operation data |
|
|
|
|
|
| √ | √ |
| √ | √ |
| √ | √ | √ | √ | √ | √ |
| √ | √ |
|
B | Lower limit |
|
|
|
|
|
| √ | √ |
| √ | √ |
| √ | √ | √ | √ | √ | √ |
| √ | √ |
|
C | Destination |
|
|
|
|
|
|
|
| √ |
| √ | √ | √ | √ | √ | √ | √ | √ |
|
| √ |
|
Example
When R031 is ON, the lower limit operation is executed for the data of RW019 by the data of D1220, and the result is stored in RW022.
C (RW022)
A (RW019)
Lower limit B (D1220)
When RW019 is
Note
•This instruction deals with the data as signed integer
Basic Hardware and Function 225