
6F3B0253
7. Instructions
FUN 045
Decrement
Expression
Input − [
Function
When the input is ON, the data of A is decreased by 1 and stored in A.
Execution condition
Input |
| Operation | Output |
OFF | No execution |
| OFF |
ON | Execution |
| 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 |
|
|
|
|
|
|
| √ | √ | √ √ | √ | √ | √ | √ | √ |
|
| √ |
|
Example
At the rising edge of X005 changes from OFF to ON, the data of D0050 is decreased by 1 and stored in D0050.
If the data of D0050 is 1022 before the execution, it will be 1021 after the execution.
D0050
1022
-1
D0050
1021
Note
•There is no limit value for this instruction. When the data of operand A is
Basic Hardware and Function 155