MC_ReadParameterSet

MC_ReadParameterSet 1:

The function block MC_ReadParameterSet is used to read the complete axis parameter set.

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

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

Parameter : Complete axis parameter set of data type ST_AxisParameterSet.  

Axis : Axis structure.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8

PC (i386)

TcMC.Lib