Status variable g_bVertShaftPosDone does not remain set to TRUE

Which products are affected?
ESP-SPAC-CAM1 – Software Package Cam 1.4 (cam template)

What happens?
The template status variable g_bVertShaftPosDone does not remain statically set to the TRUE state after terminating the continuous operation of the virtual master (g_bVertShaftContinuous = FALSE).

When does the problem occur?
The behaviour occurs if the virtual master is terminated by selecting the continuous operation mode (g_bVertShaftContinuous = FALSE).
The behaviour does not occur if the virtual master in chopping operation mode is selected.
At the end of a clock pulse the variable g_bVertShaftPosDone remains set to TRUE until the chopping operation in the virtual master is deactivated (g_bVertShaftCycle = FALSE).

Possible diagnostics?
In the online operation mode of DDS the variable g_bVertShaftPosDone does not permanently indicate the TRUE state when selecting the virtual master and terminating the continuous operation mode.

Short-term measures/recommendations?
If a permanent feedback concerning the termination of the continuous operation mode of the virtual master is required the state of the template variable g_bVertShaftPosDone can be saved temporarily via a RS function block. The temporary storage must be executed in a POU which can be called up in correspondingly short time intervals (e. g. user POU UserProgram1 in a 7ms interval or UserProcessInput in a 2 ms interval) in order to 'catch' the short-term TRUE state of the variable g_bVertShaftPosDone.

A corresponding example has been attached below. The reset criterion for the RS function block is to be specified by the user (e.g. when restarting the continuous operation mode).

Evaluation:
The behaviour only occurs if the virtual master is used in the continuous operation mode. The problem can be avoided by saving temporarily the state of g_bVertShaftPosDone as mentioned above.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200409046/1/
Kontaktformular