MC_ReadAxisComponents

MC_ReadAxisComponents 1:

The function block MC_ReadAxisComponents is used to read information about the elements of an axis as encoder, drive and controller.

    Note:  "Axis" is referencing the TwinCAT NC axis parameters in this case, not the drive!

VAR_INPUT

VAR_INPUT
    Execute : BOOL;
END_VAR

Execute : The command is executed with rising edge.

VAR_OUTPUT

VAR_OUTPUT
    Done    : BOOL;
    Busy    : BOOL;
    Error   : BOOL;
    ErrorID : UDINT;
END_VAR

Done : Becomes TRUE, if the states were determined successfully.

Busy : Becomes TRUE, as soon as the block is active. Busy becomes TRUE with a rising edge at Execute and becomes FALSE again after the block finished or aborted its operation. A rising edge at Execute will then be accepted.

Error: Becomes TRUE, as soon as an error occurs.

ErrorID : Supplies the error number when the Error output is set.

VAR_IN_OUT

VAR_IN_OUT
    Parameter : ST_AxisParameterSet;
    Axis      : NCTOPLC_AXLESTRUCT;
END_VAR

AxisComponents : axis parameter set of data type ST_AxisComponents.

Axis : Axis structure.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.10 Build 1251

PC (i386)

TcMC.Lib