PML_UnitModeConfig

PML_UnitModeConfig 1:

Machines may have unit modes other than "Production", "Maintenance" and "Manual". This function block enables the user to configure further models (UnitModes).

The number of the new model, the existing states and the states in which a model change is possible can be freely defined.

PML_UnitModeConfig 2: Inputs

VAR_INPUT
    eMode                           : DINT;
    sName                           : STRING;
    bDisableClearing                : BOOL;
    bDisableStarting                : BOOL;
    bDisableSuspended               : BOOL;
    bDisableStopping                : BOOL;
    bDisableAborting                : BOOL;
    bDisableHolding                 : BOOL;
    bDisableHeld                    : BOOL;
    bDisableUnholding               : BOOL;
    bDisableSuspending              : BOOL;
    bDisableUnsuspending            : BOOL;
    bDisableResetting               : BOOL;
    bDisableIdle                    : BOOL;
    bDisableCompleting              : BOOL;
    bDisableComplete                : BOOL;
    bEnableUnitModeChangeStopped    : BOOL;
    bEnableUnitModeChangeIdle       : BOOL;
    bEnableUnitModeChangeSuspended  : BOOL;
    bEnableUnitModeChangeExecute    : BOOL;
    bEnableUnitModeChangeAborted    : BOOL;
    bEnableUnitModeChangeHeld       : BOOL;
    bEnableUnitModeChangeComplete   : BOOL;
END_VAR

Name

Type

Description

eMode

DINT

Number of the new PML UnitMode [4..31]

sName

STRING

Name of the new PML UnitMode

bDisableClearing

BOOL

Deactivates the "Clearing" PML state.

bDisableStarting

BOOL

Deactivates the "Starting" PML state.

bDisableSuspended

BOOL

Deactivates the "Suspended" PML state.
The deactivation of the static state also causes the "Suspending" and "Unsuspending" PML states to be deactivated.

bDisableStopping

BOOL

Deactivates the "Stopping" PML state.

bDisableAborting

BOOL

Deactivates the "Aborting" PML state.

bDisableHolding

BOOL

Deactivates the "Holding" PML state.

bDisableHeld

BOOL

Deactivates the "Held" PML state.
The deactivation of the static state also causes the "Holding" and "Unholding" PML states to be deactivated.

bDisableUnholding

BOOL

Deactivates the "Unholding" PML state.

bDisableSuspending

BOOL

Deactivates the "Suspending" PML state.

bDisableUnsuspending

BOOL

Deactivates the "Unsuspending" PML state.

bDisableResetting

BOOL

Deactivates the "Resetting" PML state.

bDisableIdle

BOOL

Deactivates the "Idle" PML state. The deactivation of the static state also causes the "Resetting" PML state to be deactivated.

bDisableCompleting

BOOL

Deactivates the "Completing" PML state.

bDisableComplete

BOOL

Deactivates the "Complete" PML state. The deactivation of the static state also causes the "Completing" PML state to be deactivated.

bEnableUnitModeChangeStopped

BOOL

Enables a mode change in the "Stopped" PML state.

bEnableUnitModeChangeIdle

BOOL

Enables a mode change in the "Idle" PML state.

bEnableUnitModeChangeSuspended

BOOL

Enables a mode change in the "Suspended" PML state.

bEnableUnitModeChangeExecute

BOOL

Enables a mode change in the "Execute" PML state.

bEnableUnitModeChangeAborted

BOOL

Enables a mode change in the "Aborted" PML state.

 

bEnableUnitModeChangeHeld

BOOL

Enables a mode change in the "Held" PML state.

bEnableUnitModeChangeComplete

BOOL

Enables a mode change in the "Complete" PML state.

 

PML_UnitModeConfig 3: Outputs

VAR_OUTPUT
    bError     : BOOL;
    nErrorID   : UDINT;
END_VAR

Name

Type

Description

bError

BOOL

Becomes TRUE as soon as an error occurs.

nErrorId

UDINT

Supplies the error number when the bError output is set.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.1 Build 4018 and higher

PC (i386)

Tc3_PackML_V2