OnStartPointInitialization

OnStartPointInitialization 1:

Called once to provide the initial motion state before cyclic setpoint generation begins.

Syntax

Definition:

METHOD OnStartPointInitialization : HRESULT
VAR_INPUT
    InvokeId     : XWORD;
    StartDcTime  : LINT;
    Position     : LREAL;
    Velocity     : LREAL;
    Acceleration : LREAL;
END_VAR

OnStartPointInitialization 2: Inputs

Name

Type

Description

InvokeId

XWORD

Unique identifier, the interpretation is user specific.

StartDcTime

LINT

DC time at which the generation starts.

Position

LREAL

Start position of the axis.

Velocity

LREAL

Start velocity of the axis.

Acceleration

LREAL

Start acceleration of the axis.

OnStartPointInitialization 3: Return value

HRESULT