Function Block MLFB_HomeFindLimitInputPipe Network motion icon

Description

UDFB HomeFindLimitInput

The find limit input mode moves to a limit input. This method can be used if you have a positive or negative limit switch available that you want to establish as a home reference point.

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

ibDirection

Description

0=positive, 1=negative

 

Data type

BOOL

iVelocity

Description

Reference speed

 

Data type

LREAL

iAcceleration

Description

Reference acceleration

 

Data type

LREAL

iDeceleration

Description

Reference deceleration

 

Data type

LREAL

ibLimitSwitch

Description

Pos. or neg. limit switch, high-active (depends on ibDirection)

 

Data type

BOOL

iTimeout

Description

Time monitoring (T#0ms: off)

 

Data type

TIME

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

//Call homing function on Axis1 with preset velocity, accel, and decel values
//Start in negative direction and stop when axis hits limit switch or times out
//after seeing limit switch, set axis position to zero

Inst_MLFB_HomeFindLimitInput( StartHomeRoutine,
PipeNetwork.AXIS1,
0,
TRUE,
100,
1000,
1000,
HomeDigitalInput,
T#30s );

HomeDone := Inst_MLFB_HomeFindLimitInput.obDone;

Function Block Diagram

FFLD

Go back to the top of the page [Top]