Function BlockMLFB_HomeUsingCurrentPositionPipe Network motion icon

Description

UDFB HomeUsingCurrenctPosition

Using the current position is the most basic homing method. This method simply uses the current position of the motor as the home point reference.

You can 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.

Arguments

Input

ibExecute

Description

Start homing, edge-triggered

 

Data type

BOOL

iAxisID

Description

ID of Axis block of Pipe Network

 

Data type

DINT

iPosition

Description

Reference position

 

Data type

LREAL

Output

obDone

Description

Done bit

 

Data type

BOOL

obActive

Description

Active bit

 

Data type

BOOL

obError

Description

Error bit

 

Data type

BOOL

oErrorID

Description

Error identifier, see list here

ErrorID Description
1 Axis in error
2 Axis not enabled
3 Timeout expired
4 SDO read/write error
5 Input parameter out of range
 

Data type

DINT

Example

ST

//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;

Function Block Diagram

FFLD

Go back to the top of the page [Top]