Incorrect relative positioning following an aborted relative positioning run on the function block L_CamPosCtrlLin

Which products are affected?
ESP-SPAC-CAM1 – Cam V2.0 software package (library LenzeCamControl1V0200.lib)

What does the response look like?
A negative speed is set at the function block output nNOut_v, despite the fact that the user actually set a positive positioning target at the function block input dnSet_p. This negative speed remains in place until the setpoint of the relative positioning appears at the function block output dnPosOut_p, i.e. until an absolute positioning run has been performed to reach the position setpoint, although relative positioning has been selected as the mode.

When does the problem occur?
The problem always occurs when
  • a relative positioning run (bPosMode = TRUE) with a large position setpoint has been aborted before the target position has been reached and then
  • relative positioning is initiated with a small position setpoint.

Diagnostics options?
When starting a relative positioning run (bPosMode = TRUE) and specifying a positive position setpoint at the function block input dnSet_p, a negative speed is incorrectly set at the function block output nNOut_v.

Short-term measures/recommendations?
Only operate the function block in absolute positioning mode. Convert relative positioning procedures to absolute positioning procedures by adding the travel difference to the respective previous positioning target.

Evaluation:
The behaviour leads to a situation where instead of a movement in the positive direction, a movement is executed in the negative direction. The problem can be prevented by using the absolute positioning mode.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200800101/1/
Contact form