Gearchange.comp is called every time when is M3/M4 shifted or it is running all time long at LCNC background powered by thread task? it is not fully clear to me yet.
definition from manual
Code:
Component
When we talked about hardware design, we referred to the individual pieces as parts, building blocks, black boxes, etc. The HAL equivalent is a component or HAL component. (This document uses HAL component when there is likely to be confusion with other kinds of components, but normally just uses component.) A HAL component is a piece of software with well-defined inputs, outputs, and behavior, that can be installed and interconnected as needed.
and for customizing components should I use "vocabulary" of system parameters like next example for G96 and G96?
vocabulary from here - 3.5 System Parameters -
linuxcnc.org/docs/2.8/html/gcode/overvie...#cha:g-code-overview
#<_
spindle_rpm_mode> - Return 1 if spindle rpm mode (G97) is on, else 0.
#<_
spindle_css_mode> - Return 1 if constant surface speed mode (G96) is on, else 0.
Code:
if(spindle_rpm_mode){
//some code;
}
else{
if(spindle_css_mode){
//some code;
}
else{
//error code;
//exit;
}
}
or if not, when should I found and information which mode is selected please?
thanks