Programming the PTOMoveRelative Function Block

Procedure

Step

Action

1

Select the Libraries tab in the Software Catalog and click Libraries.

Select Controller > HMISCU > HMISCU PTOPWM > PTORelative in the list, drag-and-drop the item onto the Start Here box in the lower POU window.

2

Declare the function block instance.

3

Associate the PTO_REF_IN input of the function block to the PTO_REF output of the PTOSimple function block.

4

The inputs/outputs are detailed in the function block description PTOMoveRelative.

The interactions between the inputs/outputs are detailed in the General Information.

The interactions between the motion commands are detailed in the Command Sequence.

An aborted motion command cannot be completed after having been stopped. A new motion command must be issued.

When the movement is launched, it cannot be changed (only aborted) while its profile execution is not complete.

The PTOMoveRelative movement is aborted when:

oA PTOStop function block is called.

oThe Drive Ready Input (if defined at configuration time) becomes inactive.

oThe sequence of commands is not supported.

oThe application is stopped.

oAn error is detected.