Skip to content

Motion Control

Function Blocks

FB_Component_BasicAxis

1
FUNCTION_BLOCK FB_Component_BasicAxis EXTENDS FB_ComponentBase IMPLEMENTS I_BasicAxis

Wrapper function block adding I_ComponentBase properties and methods to FB_BasicAxis. All motion method calls have the same signature as FB_BasicAxis.

Note

See also: - I_ComponentBase - I_BasicAxis

FB_Component_BasicSlaveAxis

1
FUNCTION_BLOCK FB_Component_BasicSlaveAxis EXTENDS FB_ComponentBase IMPLEMENTS I_BasicAxis

Wrapper function block adding I_ComponentBase properties and methods to FB_BasicSlaveAxis. All motion method calls have the same signature as FB_BasicAxis and FB_BasicSlaveAxis.

FB_Component_CamSlaveAxis

1
FUNCTION_BLOCK FB_Component_CamSlaveAxis EXTENDS FB_ComponentBase IMPLEMENTS I_CamSlaveAxis

Wrapper function block adding I_ComponentBase properties and methods to FB_CamSlaveAxis. All motion method calls have the same signature as FB_BasicAxis and FB_CamSlaveAxis.

DUTs

ST_AxisBase_HMI

1
2
3
4
5
6
7
TYPE ST_AxisBase_HMI :
    STRUCT
        Config  : ST_AxisBase_Config;
        Command : ST_AxisBase_Command;
        Status  : ST_AxisBase_Status;
    END_STRUCT
END_TYPE

ST_AxisBase_Command

1
2
3
4
5
6
7
8
TYPE ST_AxisBase_Command :
    STRUCT
        JogFast_Forward  : BOOL;
        JogFast_Backward : BOOL;
        JogSlow_Forward  : BOOL;
        JogSlow_Backward : BOOL;
    END_STRUCT
END_TYPE

ST_AxisBase_Config

1
2
3
4
5
TYPE ST_AxisBase_Config :
    STRUCT

    END_STRUCT
END_TYPE

ST_AxisBase_Status

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
TYPE ST_AxisBase_Status :
    STRUCT
        Enabled              : BOOL;
        InPosition           : BOOL;
        Stopped              : BOOL;
        Coupled              : BOOL;
        SetPosition          : LREAL;
        SetPositionModulo    : LREAL;
        SetVelocity          : LREAL;
        SetAcceleration      : LREAL;
        ActualPosition       : LREAL;
        ActualPositionModulo : LREAL;
        ActualVelocity       : LREAL;
        ActualAcceleration   : LREAL;
        ActualTorque         : LREAL;
        PositionLag          : LREAL;
    END_STRUCT
END_TYPE