December 2001 Spindle 6 – 203
With Module 9171 you can specify the speed, nominal position and direction 
of rotation for spindle orientation.
M4130 is set as long the positioning movement lasts.
The module functions only in the cyclic PLC program. If you call the module 
while the spindle is rotating, the transferred direction will be ignored. The 
spindle will be oriented in the direction of spindle rotation.
If the values 2 to 4 are transferred as direction of rotation, the spindle will be 
oriented to the angle last defined in CYCL DEF 13. The transferred angle is 
added to the value from CYCL DEF 13.
Module 9171 Oriented spindle stop
Can only be called from the sequential program.
Call:
PS B/W/D/K <Angle [1/10 000 °]>
or additional preset if there is a value from CYCL DEF 13
PS B/W/D/K <Speed [1/1000 rpm]>
0: MP3520.1 is assumed
PS B/W/D/K <Direction of rotation>
–1: Negative direction (M04)
0: Direction of the shortest path
1: Positive direction (M03)
2: Same as –1 but angle from CYCL DEF 13
3: Same as 0 but angle from CYCL DEF 13
4: Same as +1 but angle from CYCL DEF 13
CM 9171
Error recognition:
Set Reset
M4000 Spindle in position NC NC
M4012 Opening the spindle control loop PLC PLC
M4015 Renewed evaluation of the spindle 
reference mark
PLC NC
M4017 Spindle moving in feedback control NC NC
M4018 Reference mark for spindle not yet 
traversed
NC NC
Marker Value Meaning
M4203 0 Spindle is brought to an oriented stop
1 Error code in W1022
W1022 1 Incorrect value for direction of rotation or rotational 
angle
2 Incorrect speed
19 No feedback-controlled spindle
24 Call was in a submit or spawn job
27 A spindle orientation is already running