For the operating modes ContinuousWithCorrection and CutOnTouchProbe, specific functions are available.
It is possible to capture the position of the master axis for calculating the distance between two products in units defined for the master axis as follows:
Via a digital input by setting the parameter ifTriggerRef to 0:
Upon a rising edge at the input i_xTpDigitalInput, the present position of the master axis is captured and used as touch probe position.
Via a capture unit by setting the parameter ifTriggerRef = DRV_Lexium32S.triggerCap1 / Cap2 / Cap3:
The position of the master axis is captured via the configured capture input (number of the capture input and rising / falling edge) of the master axis. For further information, refer to Activating Capture Inputs.
The function block provides a FIFO buffer to save the touch probe positions of products if more than one product is detected by the sensor before the product can be processed. The maximum number of products that can be stored in the FIFO buffer is defined with the parameter GPL.Gc_usiFiFoMaxNumberOfProducts.
The FIFO buffer is activated when the slave axis reaches the rest position after a cold start.
The FIFO buffer is deactivated and the entries are deleted with a falling edge at the input i_xEnable.
With a falling edge at the input i_xStartOperation, the slave moves to the rest position. The FIFO buffer as well as the touch probe function are kept active allowing the process to continue without operator intervention upon a rising edge at i_xStartOperation and allowing restart of the motion. New captured positions are written to the FIFO buffer and at every start of a new process cycle, the corresponding position is read from the FIFO. The FIFO and the touch probe function continue operation as if the slave axis was moving.
If the maximum number of products that can be stored in the FIFO buffer (GPL.Gc_usiFiFoMaxNumberOfProducts) is exceeded, the function block detects an error and stops the slave axis. The last captured position is not stored.
If the function block becomes inactive, the entries of the FIFO buffer are deleted.