Template Positioner V3.x: Configuring TP inputs

Question:

Why is the configuration information of the touch probe inputs not accepted via the function L_TpConfigDigInX of the Template Positioner V3.x?

Answer:

When using the Template Positioner 3.1 the TP inputs are configured using global variables (g_byEdgeTouchProbeDIGIN_X, g_dnDelayTouchProbeDIGIN_X_p). In the variable declaration 'VarTouchProbe' these variables are initialised with predefined values. When the touch probe interface (g_bTPEnable=TRUE) is activated, the inputs are configured with these values in the interval of the template task 1 (default 2 ms).
The data is overwritten when the function L_TpConfigDigInX is also used to configure the TP inputs.
If you want to use the function L_TpConfigDigInX to configure the inputs the TP interface of the template must be deactivated (g_bTPEnable=FALSE).

When the template is used, the TP inputs should preferably be configured via the global variables.

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