December 2001 Spindle 6 – 201
6.12.7 Oriented Spindle Stop
For spindle orientation the spindle must be in a closed control loop:
7
77
7 Mount a position encoder for the spindle.
7
77
7 With MP3010 (input value 6 to 8), specify whether the control provides for 
spindle orientation.
In the NC's touch probe cycles and rigid tapping cycle, the NC orients the 
spindle directly. In these cases, the NC sets M4017. You must reset M4012 
in the PLC.
To orient the spindle to a specific angle in an NC program, use 
FN17: SYSWRITE ID990 NR8. The conditions above must be followed. The 
NC program resumes after the spindle is in position (M4000). 
You can ascertain the current spindle angle with FN18: SYSWRITE ID990 NR8.
If the spindle orientation is started with an M function (e.g. M19), you must 
activate the oriented spindle stop in the PLC. 
In MP7442, enter the number of the M function (e.g., 19) which will trigger the 
oriented spindle stop during the machining cycles. If MP7442 = 0 (no oriented 
spindle stop), the error message ORIENTATION not permitted appears when a 
cycle which uses oriented spindle stop is called.
The spindle orientation runs asynchronously to the NC positioning commands. 
You may only acknowledge the orientation once the spindle is in position 
(M4000).
The NC starts orienting the spindle only if the drive is switched on with Module 
9161.
There are three ways to orient the spindle in the PLC:
n Module 9171
n Marker M4130
n Via initiator with marker M4011
MP7442 Number of the M function for spindle orientation in the 
cycles
Input:  1 to 999: Number of the M function
0: No oriented spindle stop
–1: Oriented spindle stop by the NC