S1: Spindles
16.10 Examples
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1357
16.10 Examples
16.10.1 Automatic gear step selection (M40)
Example
To illustrate the contents of the new block search variables:
Assumptions about automatic gear step selection (M40):
S0...500 1. Gear step
S501..1000 2. Gear step
S1001..2000 3. Gear step
Content of system variables:
$P_SEARCH_S ; Collected S value
$P_SEARCH_DIR ; Collected direction of rotation
$P_SEARCH_GEAR ; Collected gear step
Collected S value: Direction of
rotation:
Gear step:
; 0/last speed -5 40/last GS
N05 G94 M40 M3 S1000 ; 1000 3 40
N10 G96 S222 : 222 3 40
N20 G97 ; f (PlanAxPosPCS)* 3 40
N30 S1500 ; 1500 3 40
N40 SPOS=0** ; 1500 -19 40
N50 M19** ; 1500 -19 40
N60 G94 G331 Z10 S300 ; 300 -19 40
N70 M42 ; 300 -19 42
N80 M4 ; 300 4 42
N90 M70 ; 300 70 42
N100 M3 M40 ; 300 3 40
N999 M30
* f (PlanAxPosPCS): The speed depends on the current position of the transverse axis in the
workpiece coordinate system.
** ($P_SEARCH_SPOS and $P_SEARCH_SPOSMODE are programmed)