Skip to content

DUTs

SPT Diagnostic

ST_SafetyStateDiag

1
2
3
4
5
6
7
{attribute 'pack_mode' := '1'}
TYPE ST_SafetyStateDiag :
    STRUCT
        State : USINT;
        Diag  : UINT; // **NOT PRESENT ON AND/OR FBs ** For components with USINT as Diag connection, connect first 8 Bit of UINT Diag. Inherited FB is evaluating correct length.
    END_STRUCT
END_TYPE

E_ComponentSafetyConnection_State

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{attribute 'qualified_only'}
{attribute 'strict'}
TYPE E_ComponentSafetyConnection_State : (
        Reset      := 100,
        Session    := 101,
        Connection := 102,
        Parameter  := 103,
        Data       := 104,
        Shutdown   := 105,
        Deactive   := 106
    ) USINT;
END_TYPE

E_ComponentSafetyEdm_State

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{attribute 'qualified_only'}
TYPE E_ComponentSafetyEdm_State : (
        Invalid := 0,
        Stop    := 2,
        Error   := 4,
        Reset   := 5,
        MonOff  := 14,
        MonOn   := 15
    ) USINT;
END_TYPE

E_ComponentSafetyEStop_State

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{attribute 'qualified_only'}
TYPE E_ComponentSafetyEStop_State : (
        Invalid  := 0,
        Run      := 1,
        Stop     := 2,
        Safe     := 3,
        Error    := 4,
        Reset    := 5,
        Start    := 6,
        DelayOut := 7
    ) USINT;
END_TYPE

E_ComponentSafetyGroup_Diag

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{attribute 'qualified_only'}
TYPE E_ComponentSafetyGroup_Diag : (
        NoError       := 0,
        FbError       := 1,
        ComError      := 2,
        ModuleError   := 3,
        CmpError      := 4,
        DeactiveError := 5,
        RestartError  := 6
    ) UINT;
END_TYPE

E_ComponentSafetyGroup_State

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
{attribute 'qualified_only'}
TYPE E_ComponentSafetyGroup_State : (
        Invalid      := 0,
        Run          := 1,
        Stop         := 2,
        Error        := 4,
        Reset        := 5,
        Start        := 6,
        StopError    := 7,
        Deactive     := 16,
        WaitComError := 17
    ) USINT;
END_TYPE

E_ComponentSafetyMon_State

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{attribute 'qualified_only'}
TYPE E_ComponentSafetyMon_State : (
        Invalid    := 0,
        Run        := 1,
        Stop       := 2,
        Safe       := 3,
        Error      := 4,
        Reset      := 5,
        Start      := 6,
        ErrorDelay := 7,
        DelayOut   := 8,
        FuncTest   := 9
    ) USINT;
END_TYPE

E_ComponentSafetyOrAnd_State

1
2
3
4
5
6
7
8
{attribute 'qualified_only'}
TYPE E_ComponentSafetyOrAnd_State : (
        Invalid := 0,
        Run     := 1,
        Stop    := 2,
        Safe    := 3
    ) USINT;
END_TYPE

SPT EtherCat

ST_EtherCatMasterInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
TYPE ST_EtherCatMasterInfo :
    STRUCT
        AmsNetID      AT %I* : AMSNETID;
        DevID         AT %I* : UINT;
        DevState      AT %I* : UINT;
        ChangeCount   AT %I* : UINT;
        SlaveCount    AT %I* : UINT;
        CfgSlaveCount AT %I* : UINT;
    END_STRUCT
END_TYPE

ST_EtherCatSyncUnitTaskInfo

1
2
3
4
5
6
7
8
TYPE ST_EtherCatSyncUnitTaskInfo :
    STRUCT
        WcState    AT %I* : BIT;
        ObjectId   AT %I* : OTCID;
        State      AT %I* : UINT;
        SlaveCount AT %I* : UINT;
    END_STRUCT
END_TYPE

ST_EtherCatMaster_HMI

1
2
3
4
5
6
7
TYPE ST_EtherCatMaster_HMI :
    STRUCT
        Config  : ST_EtherCatMaster_Config;
        Command : ST_EtherCatMaster_Command;
        Status  : ST_EtherCatMaster_Status;
    END_STRUCT
END_TYPE

ST_EtherCatMaster_Status

1
2
3
4
5
6
7
8
9
TYPE ST_EtherCatMaster_Status :
    STRUCT
        AmsNetID            : T_AMSNETID;
        CfgSlaveCount       : UINT;
        EcSlavesState       : ARRAY[0..EC_MAX_SLAVES] OF ST_EcSlaveState;
        ConfiguredSlaveInfo : ARRAY[0..EC_MAX_SLAVES] OF ST_EcSlaveConfigData;
        EcSlaveTopologyInfo : ARRAY[0..EC_MAX_SLAVES] OF ST_TopologyDataEx;
    END_STRUCT
END_TYPE