MLFB_HomeUsingCurrentPosition
Function Block A function block groups an algorithm and a set of private data. It has inputs and outputs. - Homing The Homing procedure allows, based on a position measurement, to set a position offset to the motor in order to ensure it is physically at the home position using current position.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
ibExecute |
BOOL |
|
|
|
Start homing, edge-triggered. |
iAxisID |
DINT |
|
|
|
ID of the axis block of the Pipe Network. |
iPosition |
LREAL |
|
|
|
Reference position. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obDone |
BOOL |
|
|
Done bit. |
||||||||||||
obActive |
BOOL |
|
|
Active bit. |
||||||||||||
obError |
BOOL |
|
|
Error bit. |
||||||||||||
oErrorID |
DINT |
|
|
Error identifier:
|
Remarks
- Use this parameter to set the value of the home position other then zero.
- This allows you to offset your home reference away from zero.
- Using the current position is the most basic homing method.
- This method uses the current position of the motor as the home point reference.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//No movement, set current axis position to position input in this case zero
Inst_MLFB_HomeUsingCurrenctPosition( StartHomeRoutine, PipeNetwork.AXIS1, 0 );
HomeDone := Inst_MLFB_HomeUsingCurrenctPosition.obDone;
See Also