Skip to content

Data Types

ENUMs

E_AlarmResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{attribute 'qualified_only'}
{attribute 'strict'}
TYPE E_AlarmResponse : (
        Abort_ImmediateError,
        Abort_Immediate,
        Stop_Immediate,
        Stop_Controlled,
        Hold_Immediate,
        Hold_Controlled,
        Suspend_Immediate,
        Suspend_Controlled,
        NoResponse
    );
END_TYPE

E_PMLUnitMode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TYPE E_PMLUnitMode : (
        ePMLUnitMode_Invalid     := 0,
        ePMLUnitMode_Production  := 1,
        ePMLUnitMode_Maintenance := 2,
        ePMLUnitMode_Manual      := 3,
        ePMLUnitMode_UserMode1   := 4,
        ePMLUnitMode_UserMode2   := 5,
        ePMLUnitMode_UserMode3   := 6,
        ePMLUnitMode_UserMode4   := 7,
        ePMLUnitMode_UserMode5   := 8,
        ePMLUnitMode_UserMode6   := 9,
        ePMLUnitMode_UserMode7   := 10,
        ePMLUnitMode_UserMode8   := 11,
        ePMLUnitMode_UserMode9   := 12,
        ePMLUnitMode_UserMode10  := 13,
        ePMLUnitMode_UserMode11  := 14,
        ePMLUnitMode_UserMode12  := 15,
        ePMLUnitMode_UserMode13  := 16,
        ePMLUnitMode_UserMode14  := 17,
        ePMLUnitMode_UserMode15  := 18,
        ePMLUnitMode_UserMode16  := 19,
        ePMLUnitMode_UserMode17  := 20,
        ePMLUnitMode_UserMode18  := 21,
        ePMLUnitMode_UserMode19  := 22,
        ePMLUnitMode_UserMode20  := 23,
        ePMLUnitMode_UserMode21  := 24,
        ePMLUnitMode_UserMode22  := 25,
        ePMLUnitMode_UserMode23  := 26,
        ePMLUnitMode_UserMode24  := 27,
        ePMLUnitMode_UserMode25  := 28,
        ePMLUnitMode_UserMode26  := 29,
        ePMLUnitMode_UserMode27  := 30,
        ePMLUnitMode_UserMode28  := 31
    ) DINT;
END_TYPE

STRUCTs

ST_ComponentBase_HMI

1
2
3
4
5
6
7
TYPE ST_ComponentBase_HMI :
    STRUCT
        Config  : ST_ComponentBase_Config;
        Command : ST_ComponentBase_Command;
        Status  : ST_ComponentBase_Status;
    END_STRUCT
END_TYPE

ST_ComponentBase_Config

1
2
3
4
5
TYPE ST_ComponentBase_Config :
    STRUCT
        Name : STRING;
    END_STRUCT
END_TYPE

ST_ComponentBase_Command

1
2
3
4
5
6
7
TYPE ST_ComponentBase_Command :
    STRUCT
        SimulatedOperation : BOOL;
        StandardOperation  : BOOL;
        Reset              : BOOL;
    END_STRUCT
END_TYPE

ST_ComponentBase_Status

1
2
3
4
5
6
7
8
9
TYPE ST_ComponentBase_Status :
    STRUCT
        InSimulation        : BOOL;
        Busy                : BOOL;
        Error               : BOOL;
        ErrorID             : UDINT;
        HMIControlAvailable : BOOL; //Set TRUE *FROM PLC* when HMI requests can be processed
    END_STRUCT
END_TYPE

ST_PackMLBaseModule_HMI

1
2
3
4
5
6
7
TYPE ST_PackMLBaseModule_HMI :
    STRUCT
        Config  : ST_PackMLBaseModule_Config;
        Command : ST_PackMLBaseModule_Command;
        Status  : ST_PackMLBaseModule_Status;
    END_STRUCT
END_TYPE

ST_PackMLBaseModule_Config

1
2
3
4
5
6
7
8
TYPE ST_PackMLBaseModule_Config :
    STRUCT
        Name            : STRING;       //Human-readable module name for user-side messaging
        LogStateChanges : BOOL := TRUE; //Toggle to permit or suppress state change logging (Should be tied to HMI setting to optionally reduce event logger clutter)
        LogModeChanges  : BOOL := TRUE; //Toggle to permit or suppress state change logging (Should be tied to HMI setting to optionally reduce event logger clutter)
        ModeNames       : ARRAY[0..31] OF STRING;
    END_STRUCT
END_TYPE

ST_PackMLBaseModule_Command

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
TYPE ST_PackMLBaseModule_Command :
    STRUCT
        Mode               : E_PMLUnitMode              := Parameters_PackML_Base.UNIT_MODE_DEFAULT;
        State              : Tc3_PackML_V2.E_PMLCommand := Parameters_PackML_Base.UNIT_STATE_DEFAULT;
        ActivateStateLog   : BOOL; //HMI requests to enable the module
        DeactivateStateLog : BOOL; //HMI requests to disable the module
        ActivateModeLog    : BOOL; //HMI requests to enable the module
        DeactivatModeLog   : BOOL; //HMI requests to disable the module
    END_STRUCT
END_TYPE

ST_PackMLBaseModule_Status

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
TYPE ST_PackMLBaseModule_Status :
    STRUCT
        Busy                : BOOL;
        Error               : BOOL;
        ErrorID             : UDINT;
        Mode                : E_PMLUnitMode;
        State               : Tc3_PackML_V2.E_PMLState;
        HMIControlAvailable : BOOL;
    END_STRUCT
END_TYPE

ST_PackML_Control

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
TYPE ST_PackML_Control :
    STRUCT
        CurrentMode      : E_PMLUnitMode;
        ModeCommand      : E_PMLUnitMode;
        CurrentState     : E_PMLState;
        StateCommand     : E_PMLCommand;
        ModeNames        : ARRAY[0..31] OF STRING;
        ModeCommandLast  : E_PMLUnitMode;
        StateCommandLast : E_PMLCommand;
    END_STRUCT
END_TYPE

ST_PackML_Control_Simplified

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
TYPE ST_PackML_Control_Simplified :
    STRUCT
        ResetPermissive     : BOOL;
        StartPermissive     : BOOL;
        StopPermissive      : BOOL;
        ResetPressed AT %I* : BOOL;
        StartPressed AT %I* : BOOL;
        StopPressed  AT %I* : BOOL;
    END_STRUCT
END_TYPE