PTOHome Function Block

Function Description

This function block commands a move to the reference position. It requires the Origin input to be configured and wired, otherwise the function block sets the Error output.

As soon as the axis has reached the home position, the output Done is set to TRUE.

Homing is carried out using one of the following methods:

oShort Cam

oLong Cam Positive

oLong Cam Negative

oShort Cam with Positive Limit

oShort Cam with Negative Limit

oShort Cam with Marker(Z)

Graphical Representation

G-SE-0007770.1.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variables Description

The following table describes the input variables:

Inputs

Type

Comment

PTO_REF_IN

PTO_REF

Reference to the PTO channel.

To be connected to the PTO_REF of the PTOSimple or the PTO_REF_OUT of the Administrative or Motion output pins function blocks.

Execute

BOOL

On rising edge, starts the function block execution.

When FALSE, resets the outputs of the function block when its execution terminates.

HighVelocity

DWORD

Value of the maximum initial Homing search velocity in Hz.

Range: 1 Hz...100 kHz

LowVelocity ≤ HighVelocity ≤ Maximum frequency of the output

LowVelocity

DWORD

Value of the maximum final Homing approach velocity in Hz.

Range: 1 Hz...100 kHz

LowVelocity ≤ HighVelocity

HomingType

PTO_HOMING_TYPE

Defines the homing type.

Direction

PTO_DIRECTION

Direction of the move.

The following table describes the output variables:

Outputs

Type

Comment

PTO_REF_OUT

PTO_REF

Reference to the PTO channel.

To be connected with the PTO_REF_IN input pin of the Administrative and Motion function blocks.

Done

BOOL

TRUE = indicates that the command is finished.

Function block execution is finished.

Busy

BOOL

TRUE = indicates that the command is in progress.

CommandAborted

BOOL

TRUE = indicates that the command was aborted due to another move command.

Function block execution is finished.

Error

BOOL

TRUE = indicates that an error was detected.

Function block execution is finished.

ErrID

PTOPWM_ERR_TYPE

When Error is TRUE: type of the detected error.

NOTE: For more information about Done, Busy, CommandAborted and Execution pins, refer to General Information on Function Block Management.