IncStepIf

Like the IncStep method, this method increments the internal status variable of the “Case” construct by 1 when a condition is met. The condition itself is checked in the application code, and you must pass the Boolean result when calling the method. If a status variable other than nCurStep is to be used, this method must be overridden if it is to be applied.
Syntax
METHOD IncStepIf
VAR_INPUT
condition : BOOL;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
condition | BOOL | If this value is TRUE, the current state of the state machine is incremented. |
Example
IncStepIf(Condition);