Spindle gear change (M40 - M45)
A spindle gear change is programmed with M40...M45. These M functions define max. 6 gear stages. A separate gear data record must be parameterised for each gear stage in the associated spindle axis list [AXIS].
The M functions can be programmed together with the spindle speed and the M function for the direction of rotation in the same NC block. Functions M40 to M45 are used to select the gear stage and to trigger mechanical gear change.
Syntax: | |
M40 | M41 | M42 | M43 | M44 | M45 [<spindle_name>..] [ M03 | M04 ] | modal |
M40 to M45 | Gear stages 1 to 6 |
<spindle_name>=<expr> | Spindle speed consisting of spindle name according to P-CHAN-00053 and speed value in [rpm]. |
Programming Example
Spindle gear change (M40 - M45)
- The decoded functions M40 to M45 are modal and are activated at block start. M40 to M45 cancel each other out.
- The system permits definition of max. 6 spindle gear stages (M40... M45). The minimum and maximum speeds are defined for each gear stage in a "Table of speed stages" in [1]-4 (unit = rpm).
- The maximum speed for the 10 V output in the case of position-controlled spindles is defined for analogue drives via the Multi-Gain Factors P-AXIS-00128 and P-CHAN-00129..
- In a system with automatic gear stage selection, this is determined solely by programming the speed S. M40 to M45 then do not need to be programmed.
- M40 to M45 can only be programmed for closed-loop position-controlled spindles.
- The NC kernel always attempts to minimise gear changing (for example, if a new speed can be used with the current gear stage, a gear change is suppressed even if it was explicitly programmed with M40 to M45).
Channel parameter list [1]:
- Definition of M functions M40 - M45 and definition of synchronisation modes.
- Activate gear change:
- Parameterise the spindle gear (search direction, speed ranges):
Programming Example
Spindle gear change (M40 - M45)
Programming Example
Spindle gear change (M40 - M45)