GetCurrentStep

As described in the FB_TestPrepBase chapter, there are internal variables that can be used during the implementation of the preparation steps. 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 method GetCurrentStep returns the current value of the status variable nCurStep. If you want to use a different status variable, you can override this method.
Syntax
METHOD GetCurrentStep : UDINT
Return value
Name | Type | Description |
|---|---|---|
GetCurrentStep | UDINT | Returns the current state of the state machine if it is used in the test case. |