PTOSimple Function Block

Overview

The PTOSimple function block manages the PTO function.

Call the function block in each cycle of the MAST task.

The function block instance name is the name defined by configuration.

It is created when a user invokes PTO mode on Channel PTO 0 from the Embedded Functions configuration:

G-SE-0024878.1.gif-high.gif

 

 

NOTE: Assign the function block instance name to the Global Variable PTO_PWM.PTO00.

G-SE-0026846.1.gif-high.gif

 

 

Graphical Representation

G-RU-0010491.2.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

This table describes the input variables:

Inputs

Type

Comment

ResetError

BOOL

On rising edge, resets the detected PTO error.

NOTE: The Execute pin on any PTOMoveRelative tied to the PTO00 axis must be set to FALSE for resetting detected errors.

DIS_AuxInput

BOOL

TRUE = disables the auxiliary input when configured as Drive Ready input.

This pin has no effect when auxiliary input is not used.

This table describes the output variables:

Outputs

Type

Comment

PTO_REF

PTO_REF

Reference to the PTO channel.

To be used with the PTO_REF_IN input pin of the PTO function blocks.

PTOError

BOOL

TRUE = indicates that an error was detected. Use PTOGetDiag function block to get more information about this detected error.

Moving

BOOL

TRUE = indicates that the motion state is moving.

Stopping

BOOL

TRUE = indicates that the motion state is stopping.

Frequency

DWORD

Current velocity (in Hz) of the move.

Distance

DWORD

Distance traveled by the current move of the PTO axis (in number of pulses).