FC_SetHomeMode

 

FC_SetHomeMode - General Information

Overview

Type:

Function

Available as of:

V1.1.0.0

Support for:

PacDrive3 pilot template architecture

Versions:

Current version

Task

Function for initialization of an axis that is controlled by the FB_AxisModule function block.

Description

This function is used to specify which homing method to use depending on whether the associated axis is real or virtual. A real axis has the WorkingState real. A virtual axis has the WorkingState virtual or deactivated. The axis is specified with the iq_stAxisModuleItf input. The homing method specified by i_etModeRealDrive is used if the axis is real, otherwise the method specified by the i_etModeVirtualDrive input is used.

All the possible values of i_etHomingMode are enumerated in PDL.ET_HomeMode; however, the function returns FALSE if an invalid HomeMode is used.

This function makes it easier to debug programs. You only need a PacDrive Controller. When the program is loaded into a controller on a machine the homing method will automatically change when the axis is assigned a real drive.

Interface

Input

Data type

Description

i_etModeVirtualDrive

PDL.ET_HomeMode

Homing mode to use when the associated axis is a virtual axis

i_etModeRealDrive

PDL.ET_HomeMode

Homing mode to use when the associated axis is a real axis

Input/Output

Data type

Description

iq_stAxisModuleInterface

ST_ModuleInterface

The axis interface structure of the associated axis