FC_InitHomeSetPos - General Information
Type: |
Function |
Available as of: |
V1.1.0.0 |
Support for: |
PacDrive3 pilot template architecture |
Versions: |
Current version |
Function for initialization of an axis that is controlled by the FB_AxisModule function block.
This function is used to specify that an axis, when homed, will be homed by setting the position of the axis based on the encoder position and/or stored values. The i_etMode input specifies which position is changed as follows:
i_etMode |
Home Action |
---|---|
PDL.ET_HomeMode.SetPosAxisPosition |
The axis’s position is set to the value at input i_lrPosition |
PDL.ET_HomeMode.SetPosLogEncoderPosition |
The logical encoder is set to the value at the i_lrEncoderPosition input. |
PDL.ET_HomeMode.SetPosAxisAndLogEncoderPosition |
Performs both of the above functions |
All possible values of i_etMode are listed in PDL.ET_HomeMode. The function returns FALSE if none of the above three values is used.
Input |
Data type |
Description |
---|---|---|
i_etMode |
PDL.ET_HomeMode |
Specifies the specific type of homing to perform |
i_lrPosition |
LREAL |
The axis’s position is set to this value in units |
i_lrEncoderPosition |
LREAL |
The associated logical encoder’s position is set to this value in units |
Input/Output |
Data type |
Description |
---|---|---|
iq_stAxisModuleItf |
ST_ModuleInterface |
The axis interface structure of the associated axis |