%MACRO=252=..=Spindle Control=
|
System
Variables |
System Variable Description |
|
DIRECTION |
Spindle Direction |
|
GEAR |
Gear pointer, see below (=0 indicates automatic selection) |
|
MAXRPM |
Maximum RPM for this tool |
|
CSS |
1 = CSS mode, 0 = RPM |
A new gear access array GEAR() allows Gear Definition from the %MACHINE statement to be accessed and will give information for the currently selected spindle (or driven tool).
After use of the instruction #TEMP=GEAR(0) the number of gear ranges defined for the gear range for the current spindle is available.
NUMGEARS Number of gear ranges defined
For any gear range further variables can then be made available by use of GEAR(NUM) where NUM is the range number. NUM must be a positive integer between 1 and NUMGEARS inclusive.
GEARMINRPM Minimum RPM available in that gear
GEARMAXRPM Maximum RPM available in that gear
GEARUSERMAXRPM User Maximum RPM
If the GEAR required is specified by the value in GEAR then these last variables can be accessed directly using #TEMP=GEAR(GEAR).