MC_SEW_ConfigHoming
This function block configures the reference travel of the axis. The configuration can also be carried out via the configuration menu Reference travel of the logical device. With drive-based reference travel (eReferenceMode is DriveBased), the inverter parameters (volatile) are written to the drive by this function block.

VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Axis | AXIS_REF | Reference to a logical device See also AXIS_REF. |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Execute | BOOL | Start execution of the function block. |
eReferenceMode | E_ReferenceMode | Select controller or inverter-based reference travel. |
eReferenceType | E_ReferenceType | Select reference travel type. |
xReference- | BOOL | Specify whether the zero pulse (reference pulse of the encoder) is used as the reference point. The parameter is used for the following reference travel types:
|
lrReferenceOffset | LREAL | Reference offset in [user units] |
lrSearchVelocity | LREAL | Speed in [user unit/s] used to search for reference cams or hardware limit switches. |
lrRetractionVelocity | LREAL | Speed in [user unit/s] used during the reference travel. This specification applies in the following cases:
|
lrAcceleration | LREAL | Acceleration at start or direction of rotation reversal of reference travel |
lrDeceleration | LREAL | Deceleration for stopping or a direction of rotation reversal during the reference travel |
xGoToHomePosition | BOOL | Position approached after referencing:
|
lrHomePosition | LREAL | Home position |
lrHomeVelocity | LREAL | Homing speed |
eVelocityChangeoverBeforeFixedStop | E_ReferenceVelocityChangeover | Time at which the search speed changes to the retraction speed. |
uiDwellTimeAtFixedStop | UINT | Duration in [ms] of how long the drive remains at the fixed stop once the value defined in the "Torque limit at fixed stop" parameter is reached. The drive is only referenced afterwards. |
lrTorqueLimitAtFixedStop | UINT | Torque limit in [% nominal motor torque] for referencing to a fixed stop. Once this limit value has been reached, the fixed stop remains active as long as this is defined in the uiDwellTimeAtFixedStop parameter. |
lrJerk | LREAL | Jerk to be used during homing. |
lrInPositionWindowWidth | LREAL | Position window for homing |
lrInPositionHysteresis | LREAL | Hysteresis window for homing |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
Done | BOOL | Function block successfully completed |
Busy | BOOL | Function block is active |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
