MC_Reset

MC_Reset 1:

An axis reset is carried out with the function block MC_Reset.

MC_Reset initially resets the NC axis. In many cases this also leads to a reset of the connected drive units. Depending on the bus system or drive types, in some cases a separate reset may be required for the drive units.

Inputs


VAR_INPUT
Execute : BOOL;
END_VAR

Execute

The command is executed with a rising edge at input Execute.

Outputs


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

Done

The Done output becomes TRUE when the reset was carried out successfully.

Busy

The Busy output becomes TRUE when the command is started with Execute and remains TRUE as long as the command is processed. If Busy becomes FALSE again, the function block is ready for a new command. At the same time one of the outputs, Done or Error, is set.

Error

Becomes TRUE if an error occurs.

ErrorID

If the error output is set, this parameter supplies the error number

Inputs/outputs


VAR_IN_OUT
Axis    : AXIS_REF;
END_VAR

Axis

Axis data structure

The axis data structure of type AXIS_REF addresses an axis uniquely within the system. Among other parameters it contains the current axis status, including position, velocity or error status.