Start and Stop

Overview

The processing sequence of the function block is as follows:

  • Enabling the function block (i_xEnable = TRUE).

  • The function block is active (q_xActive = TRUE).

  • Starting the movement (i_xStartOperation and q_xReady = TRUE).

  • Stopping the movement (i_xStartOperation = FALSE or i_xEnable = FALSE).

  • Disabling the function block (i_xEnable = FALSE).

  • The function block is deactivated (q_xActive = FALSE).

Enabling the FlyingShear Function Block

Upon a rising edge of the input i_xEnable, the following actions are executed:

  • The output q_xActive is set to TRUE.

  • The references to the master and slave axis are verified and stored. Modifications while the function block is active are ignored.

  • The parameter configuration is verified for validity.

  • Cam data is calculated and curves are created.

  • The outputs q_lrTpDistToSyncPointMin and q_lrLengthToCutMin are calculated.

  • If no error is detected, the function block is ready to start the Flying Shear process and the output q_xReady is set to TRUE.

  • If an error is detected, the output q_xError is set to TRUE and error information is provided at q_etResult and q_sResultMsg. A renewed execution of the function block is not possible as long as the error state is present. The function block must be disabled in order to reset the error state.

 WARNING
UNINTENDED EQUIPMENT OPERATION
Do not send any other commands to the slave axis when it is under control of the FlyingShear function block.
Failure to follow these instructions can result in death, serious injury, or equipment damage.

Starting the Movement

Upon a rising edge of the input i_xStartOperation and when q_xReady is set to TRUE, the following actions are executed:

  • The input parameters are verified for consistency.

  • In cold start: The slave is moved to the lrRestPosition.

    In warm start, the action depends on the warm start mode selected:

    MoveToRestPosition: The slave moves to the rest position and stores the FIFO values. The slave is coupled to the master axis and the start is performed at the next possible process cycle without loss of synchronization between master and slave.

    MoveToCurvePosition: The slave is moved to the position on the curve.

    ContinueWithOffsetCurve: The new curve is calculated with offset.

  • If no error is detected, the output q_xBusy is set to TRUE.

  • If an error is detected, the output q_xError is set to TRUE and error information is provided at q_etResult and q_sResultMsg.

  • After the slave has reached lrRestPosition or the curve position, depending on the start mode, the corresponding curve is loaded and the cam is activated.

  • Modifiable inputs are verified during the movement.

Stopping the Movement

Upon a falling edge of the input i_xStartOperation, the slave does not stop immediately or remain stationary. The following actions are executed:

  • Depending on the process phase:

    • Outside the synchronous phase: The slave is uncoupled from the master and returns to the rest position (lrRestPosition).

    • Inside the synchronous phase: The slave remains coupled with the master until the end of the synchronous phase. Then the slave is uncoupled from the master and returns to the rest position (lrRestPosition).

  • The output q_xBusy is set to FALSE.

Immediately Stopping the Movement

The slave is stopped immediately with the deceleration ramp lrStopDeceleration if one of the following conditions applies:

Disabling the FlyingShear Function Block

Upon a falling edge of the input i_xEnable, the following actions are executed:

  • The output q_xReady is set to FALSE.

  • If the slave is moving, it is stopped immediately with the deceleration ramp lrStopDeceleration.

  • The output variables are reset after the slave has come to a halt.

  • A cold start is prepared as no warm start is possible after disabling.

  • The FIFO buffer is reset, the stored touch probe positions are deleted.

  • After successful disabling the function block, the output q_xActive is set to FALSE.