ET_Result

Overview

Type:

Enumeration

Available as of:

V1.0.1.0

Description

The enumeration includes the possible values that indicate the result of operations executed by the function block.

Enumeration Elements

Name

Data type

Value

Description

If q_xError of a function block is FALSE, one of the following status messages is shown.

Ok

DINT

0

The POU is OK, but not running.

Disabled

DINT

1

The POU is disabled.

Initializing

DINT

2

The POU is being initialized.

Running

DINT

4

The POU is being executed.

ResettingTimerAndCounter

DINT

5

The POU is resetting the timer and counter.

If q_xError of a function block is TRUE, one of the following error messages is shown.

UnitModeCurrentRange

DINT

11

The value of the input i_diUnitModeCurrent is out of range. The value of operation mode must be in the range 0 and Gc_uiMaxNumberOfModes.

StateCurrentRange

DINT

12

The value of the input i_diStateCurrent is out of range. The value of state must be in the range 0 and Gc_uiMaxNumberOfStates.

NumberOfModesRange

DINT

13

Number of operation modes is out of range. The number of operation modes must be in the range 0 and Gc_uiMaxNumberOfModes.

PointerInitModeInvalid

DINT

14

The initial operation mode pointer i_pstInitMode is invalid.

PointerAdminInvalid

DINT

15

The admin pointer i_pstAdmin is invalid.

PointerStatusInvalid

DINT

16

The status pointer i_pstStatus is invalid.

UnitModeRange

DINT

17

The operation mode out of range. Range should be:

0 < i_diUnitMode <= diNumberOfModes

InvalidStateModelNoExecuteState

DINT

20

The state model of the operation mode is invalid: there is no Execute state.

InvalidStateModelNoStoppedState

DINT

21

The state model of the operation mode is invalid: there is no Stopped state.

InvalidStateModelNoHeldState

DINT

22

The state model of the operation mode is invalid: a Held state must exist if a Holding or an Un-Holding state is present.

InvalidStateModelNoCompleteState

DINT

23

The state model of the operation mode is invalid: if Completing state exists, a Complete state must be present.

InvalidStateModelNoSuspendedState

DINT

24

The state model of the operation mode is invalid: a Suspended state must exist if a Suspending or an Un-Suspending state is present.

InvalidStateModelNoAbortedState

DINT

25

The state model of the operation mode is invalid: an Aborted state must exist if an Aborting or a Clearing state is present.

InvalidStateModelNoIdleState

DINT

26

The state model of the operation mode is invalid: the Resetting state can be used only in connection with the Idle state.

InvalidStateModelNoResettingState

DINT

27

The state model of the operation mode is invalid: the Idle state can be used only in connection with the Resetting state.

ModeChangeRequestRejected

DINT

28

The request to change the operation mode is rejected.

StateChangeRequestRejected

DINT

29

The triggered state command is not accepted in the present state.

UnknownResult

DINT

30

The value of the input i_etResult of the function FC_EtResultToString is unknown.

InvalidInput

DINT

33

At least one of the specified inputs is invalid.

MaxNumberOfUnitModesExceeded

DINT

34

The maximum number of unit modes is defined. Remove a unit mode before adding a new one.

NoUnitMode

DINT

35

No unit mode is active. The commanded operation is not allowed.

UnitModeNotFound

DINT

36

The specified unit mode is not defined.

UnitModeActive

DINT

37

Unit mode is active. The commanded operation is not allowed.

NoStateModelHandler

DINT

39

The definition of the unit mode requires an instance of the FB_StateModelHandlerBase.

RegisterLoggerPointFailed

DINT

41

The logger point could not be registered.

AlreadyExists

DINT

42

Unit mode with same value or name is already defined.

NotReady

DINT

43

The POU is blocked by another task and is not ready for execution.

Used By

The enumeration ET_Result is used by all POUs of this library.