External measuring hardware
By default, measurement runs are simulated in the kernelv DLL for the measurement simulation configured for each axis.
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 measurement methods for real-time control implemented in the PLC with the kernelv DLL.
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:
Trigger interface for the measuring event and possibly the measured value from the PLC to the CNC.
The sequence of a measurement run using the external measurement interface is as follows:
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().
Notice
When the external measurement 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.