January 2012 6.18 Spindles 1021
Module 9171 Start of a spindle orientation with adjustable parameters
Module 9171 can be used to start an orientation of the spindle. The orientation 
speed, orientation angle and the direction of rotation can be set. The module 
sets M4130, which displays that the positioning is running and for how long.
Constraints:
 If no speed output has occurred for the spindle, the call will have no effect.
 If the marker M4130 is set in the same PLC scan and Module 9171 is called, 
the spindle is oriented with the parameters from the module call.
 If the module is called several times in the same scan, the spindle will be 
oriented with the parameters of the last call.
 If the module is called although an orientation from an earlier PLC scan is not 
yet finished, the call will have no effect.
 The module functions only in the cyclic PLC program.
 If the module is called while the spindle is turning, the direction of 
orientation that was transferred will be ignored. The spindle is always 
oriented in the direction of spindle rotation.
 If the values +2 to +4 are transferred as direction of rotation, the spindle can 
be oriented to the angle last defined in CYCL DEF 13. The transferred angle 
of orientation is added to the value from CYCL DEF 13. Therefore the PLC 
can transfer an additional spindle preset.
 If 0 is transferred as the speed, the speed from MP3520.1 is used.
 The module is only supported for PLC programs that use API version 1.0.
Call:
PS B/W/D/K <>Orientation angle [1/10000 degrees]>
or additional preset if there is a value from CYCLE DEF 13
PS B/W/D/K <>Speed [1/1000 rpm]>
PS B/W/D/K <>Direction of rotation>
–1: Negative direction (M04)
0: Direction of the shorter path
1: Positive direction (M03)
2: Same as –1, but angle from CYCLE DEF 13
3: Same as 0, but angle from CYCLE DEF 13
4: Same as +1, but angle from CYCLE DEF 13
CM 9171
This PLC module was introduced in order to remain compatible with older 
PLC programs (with API version 1.0) of older HEIDENHAIN contouring 
controls. This module is not supported if the symbolic programming 
interface is used. Use Module 9414 instead.