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 PUBLIC IncStepIf
VAR_INPUT
bCondition : BOOL;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
bCondition | BOOL | If this value is TRUE, the current state of the state machine is incremented. |
Sample
IncStepIf(bCondition:=<condition>);