GoToStep

As described in the chapter FB_TestPrepBase, there are internal variables that can be used during the implementation of the preparation step. Among other things, the variable nCurStep is used as a status variable for a “Case” construct, which can be used to structure the state machine so that it reaches the operating point of a test case. The GoToStep method sets the value of the status variable nCurStep to the value passed to it. This means that in the next iteration of the “Case” construct, the program jumps to exactly this step. If a different status variable is to be used, this method must be overridden when needed.
Syntax
METHOD GoToStep
VAR_INPUT
step : UDINT; // target step
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
Step | UDINT | Sets the current state of the state machine to this value. |