MLFB_HomeUsingCurrentPosition

Pipe Network motion icon

 Function Block - Homing using current position.

Inputs

Input

Data Type

Range

Unit

Default

Description

ibExecute

BOOL

FALSE, TRUE

N/A

No default

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

FALSE, TRUE

N/A

Done bit.

obActive

BOOL

FALSE, TRUE

N/A

Active bit.

obError

BOOL

FALSE, TRUE

N/A

Error bit.

oErrorID

DINT

 

 

N/A

Error identifier:

ErrorID

Description

1

Axis in error.

2

Axis is not enabled.

3

Timeout exceeded or expired.

4

SDO read/write error.

5

Input parameter out of range.

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