GetCurrentStep

GetCurrentStep 1:

As described in the chapter FB_TestCaseBase, there are internal variables that can be used during the implementation of test cases. Among other things, the variable nCurStep is used as a status variable for a “Case” construct, which can be used to structure test cases in the form of a state machine. 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

GetCurrentStep 2: Return value

Name

Type

Description

GetCurrentStep

UDINT

Returns the current state of the state machine if it is used in the test case.

Example

currentStep:= GetCurrentStep();