BaseMultiTest (FB)ΒΆ
FUNCTION_BLOCK PUBLIC BaseMultiTest EXTENDS CBM.ETrigA IMPLEMENTS IBaseIecUnitTest
This FB is the base for the multi-test POUs and contains the additional inputs and outputs.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xExecuteBOOLRising edge: Action startsFalling edge: Resets outputsIf a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone,xError,iError) are present at the outputs for exactly one cycle.ETrigA
xAbortBOOLTRUE: Action is stopped immediately and all outputs are reset to their initial values.ETrigA
Output
xDoneBOOLTRUE: Action successfully completedETrigA
xBusyBOOLTRUE: Function block activeETrigA
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorETrigA
xAbortedBOOLTRUE: Action aborted by userETrigA
Input
diTestCaseIndexDINTIndex of the test case which will be executed. In combination with xGetTestInfo = TRUE you can fetch the following information about the multi-test POU:
name of the test case
categories
time-out for the test case
If the test case index is -1 then you get the count of test cases in the multi-test POU.
xGetTestInfoBOOLIf set to TRUE the outputs return the basic information about the test case.
Output
diTestCaseCountDINTIf xGetTestInfo = TRUE and diTestCaseIndex = -1 then you get the count of test cases in the multi-test POU.
wsTestCaseNameWSTRING(Constants.WSTRING_LENGTH)Name of the current test case
wsTestCaseCategoriesWSTRING(Constants.WSTRING_LENGTH)Test categories
diTestCaseTimeoutDINTTimeout of the test case. In milliseconds.
wsInfoWSTRING(Constants.WSTRING_LENGTH)Info about the test case. It can contain the description of the test step if used by a test table with the necessary column.
eErrorUT_ERRORError ID
wsErrorWSTRING(Constants.WSTRING_LENGTH)Error message
wsWarningWSTRING(Constants.WSTRING_LENGTH)Warning message
eFailureModeFailure mode informs how to proceed after the test case failed.
Methods:
Structure: