External measuring hardware
By default, measurement runs are simulated in the kernelv DLL for the measurement simulation configured for each axis.
The following measurement methods are available:
- “Measuring with external measuring hardware“ (default)
- “Measuring with external interface with measured value detected in the drive” (as of V3.1.3080.05)
The interface to the external measuring hardware consists of the following parts:
- Command interface from the CNC to the PLC or to the DLL user.
- Acknowledgement interface from the PLC or from the user to the CNC:
The measured value is detected by measurement simulation in the CNC.
Measurement method “Measuring with external measuring hardware“
With the measurement variant “Measuring with external measuring hardware”, the interface on the HLI to the external measuring hardware is made accessible to the user via API functions. The user then has the possibility to use measuring methods for real-time control implemented in the PLC with the kernelv DLL.
The sequence of a measurement run using the external measuring interface is as follows:
Notice
When the external measuring interface is used, the internal measurement simulation for the axis must be deactivated by setting the axis parameter P-AXIS-00112 to the value 0.
The following functions are required to use this measuring method:
- kernelv_ax_get_ext_latch_command(),
- kernelv_ax_acknowledge_ext_latch_command()
- kernelv_ax_set_ext_latch_event()
- kernelv_ax_set_ext_latch_event_pos()
The command interface is queried by the function kernelv_ax_get_ext_latch_command(), the command is acknowledged by kernelv_ax_acknowledge_ext_latch_command(), the latch event is set and if required the latch value is tracked by kernelv_ax_set_ext_latch_event() or by kernelv_ax_set_ext_latch_event_pos().
Measuring method “Measuring with external measuring interface with measured value detected in the drive”
The procedure for a measurement run using the external measuring interface with measured value detected in the drive is as follows:
Notice
When the external measuring interface with measured value detected in the drive is used, the internal measurement simulation for the axis must be activated by setting the axis parameter P-AXIS-00112 to the value 1
The following functions are required to use this measuring method:
The command interface is queried by the function kernelv_ax_get_ext_latch_command(). The command is acknowledged by kernelv_ax_acknowledge_ext_latch_command(),