6.1.3.4.8 INC
Function
Increment
LD Graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| INOUT | Var_InOut | ANY_INT | Value to be incremented |
Example
The variable a is used for self-increment through the INC instruction, as shown in the following figure: a variable of type INT is defined, and the INC instruction is executed through compilation, downloading, and the result of the self-increment of variable a is achieved
