Packaging Library Function Block

 

VBagPTOMoveFast  Function Block

Function Description

This function block commands a relative move at a specified velocity.

Stop Signal Management

There are 7 possible results when a stop signal occurs:

oStop signal is triggered during the acceleration:

G-SE-0012221.1.gif-high.gif

 

oStop signal is triggered before the deceleration and the number of pulses from the compensation is greater than the rest pulses of TargetDistance.

G-SE-0012226.1.gif-high.gif

 

oStop signal is triggered during the deceleration and the numbers of pulses from the compensation is greater than the remaining pulses of TargetDistance.

G-SE-0012222.1.gif-high.gif

 

oStop signal is triggered before the deceleration, and the number of pulses from the compensation is less than the remaining pulses of TargetDistance.

G-SE-0012219.1.gif-high.gif

 

oStop signal is triggered during the deceleration, and the number of pulses from the compensation is less than the rest pulses of TargetDistance.

G-SE-0012223.1.gif-high.gif

 

oIf stop signal is triggered during the deceleration, but the speed is very low resulting in a very long compensation time.

G-SE-0012224.1.gif-high.gif

 

In order to avoid a very long compensation, use the IgnoreCompVelocity input.

If the current velocity < IgnoreCompVelocity (ICV), the stop signal will be ignored and the move will finish normally.

G-SE-0011643.1.gif-high.gif

 

oYou can set two points A and B. If the stop signal is triggered between A and B, stop action is executed, else stop signal is ignored.

G-SE-0018524.1.gif-high.gif

 

Both A and B are more than 0 and less than TargetDistance.

A – start inhibit

B – stop inhibit

Graphical Representation

G-SE-0013123.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

The following table describes the input variables:

Inputs

Type

Comment

PTO_REF_IN

PTO_REF

Reference to the PTO axis.

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.

StartInput

FAST_PTO_TRIGGER

Physical input to start the function block

DelayStart

DWORD

Delays the function block execution after the movement is triggered. (0...1999 ms)

Acceleration

DWORD

Acceleration in Hz/ms or in ms (according to configuration).

Range ms: Acc. max....Maximum Software Limit

Direction

PTO_DIRECTION

Direction of the move.

Velocity

DWORD

Target velocity in Hz.

Range: 1...Frequency max

TargetDistance

DWORD

Target distance to perform.

If target distance is reached, the movement stops.

StopInput

FAST_PTO_TRIGGER

Physical input to stop the function block

Compensation

DWORD

Number of additional pulses after a stop request.

Deceleration

DWORD

Deceleration in Hz/ms or in ms (according to configuration).

Range Hz/ms: 1...Dec. max.

Range ms: Dec. max....Maximum Software Limit

IgnoreCompVelocity

DWORD

At any time other than acceleration, when a stop signal occurs, if the current frequency is lower than this value (in Hz), the stop signal is not taken in account and the move finishes normally.

StartInhibit

DWORD

Starting point of the valid stop range.

Value is user defined in number of pulses.

if StartInhibit>StopInhibit an error is reported.

StopInhibit

DWORD

Ending point of the valid stop range.

Value is user defined in number of pulses.

if StartInhibit>StopInhibit an error is reported.

The following table describes the output variables:

Outputs

Type

Comment

PTO_REF_OUT

PTO_REF

Reference to the PTO axis.

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

InMode

BOOL

TRUE = indicates the function is active and can be controlled with external inputs.

Status

Byte

Provides the status of the movement (see the diagram below):

0 No move

1 Move in delay

2 Move in acceleration

3 Move at required frequency

4 Move in compensation

5 Move in deceleration

6 Move in deceleration because target distance reached

Active

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 Execute pins, refer to General Information on Function Block Management

This diagram illustrates a PTOFastMove profile and their associated status:

G-SE-0008105.1.gif-high.gif