MC_ReadDriveAddress

MC_ReadDriveAddress 1:

MC_ReadDriveAddress reads the ADS access data for a drive device connected to the axis. This information is required for accessing the device, e.g. for special parameterization.

Inputs


VAR_INPUT
Execute : BOOL; (* B *)
END_VAR

Execute

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

General rules for MC function blocks

Outputs


VAR_OUTPUT
Done         : BOOL;  (* B *)
Busy         : BOOL;  (* E *)
Error        : BOOL;  (* B *)
ErrorID      : DWORD; (* B *)
DriveAddress : ST_DriveAddress; (* B *)

END_VAR

Done

Becomes TRUE if the command was executed error-free.

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 job.

Error

Becomes TRUE if an error occurs.

ErrorID

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

DriveAddress

ADS access data of a drive unit connected to the axis.

General rules for MC function blocks

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.