Analog output of the spindle speed, 1 direction of spindle rotation, 1 analog output of the spindle speed – HEIDENHAIN TNC 335 Technical Manual User Manual
Page 177

4-80
TNC 360
4 Spindle
8/95
4.1 Analog output of the spindle speed
For analog output of the spindle speed (S analog) spindle speeds can be programmed from 0 to 99
999.999 rpm. The programmed spindle speed is available as an analog DC voltage of 0 to 10 V on
connector X8 of the logic unit. In addition, gear change signals can be assigned to any PLC outputs
by the PLC program.
For S analog the value 991 must be entered in the machine parameter MP3020!
If the control is operating with S analog, marker M2042 is set. The programmed spindle speed is
stored in D356 in 1/1 000 [rpm]. The nominal spindle speed is stored in Word W320 in rpm. The
actual spindle speed is stored in Word W322 in rpm.
Marker,
Function
Set
Reset
Word
M2042
Analog output of the spindle speed
NC
NC
D356
Programmed spindle speed
NC
NC
W320
Nominal spindle speed
NC
NC
W322
Actual spindle speed
NC
NC
4.1.1 Direction of spindle rotation
The polarity of the S-analog voltage is defined by machine parameter MP3130. The count direction
of the measuring system signals for the spindle is defined in MP3140. The direction of spindle
rotation can be reversed by setting marker M2489, i.e. the polarity of the analog voltage is inverted.
The S-analog voltage appears at the output as soon as the marker M2485 for M03 or M2486 for
M04 is set. At the same time the miscellaneous function is displayed in the status window of the
control (see section "Display and operation"). Marker M2487 turns off the analog voltage and
displays M05.
If more than one of the markers M2485 to M2487 is set at the same time, this will release the
flashing error message
Error in PLC program 1Q
Marker M2608 can be used to remove the spindle-enable, at the same time M03, M04 or M05 is
displayed inversely. The S-analog voltage will then go to 0 V.
MP3130
Polarity of the S-analog voltage
Input value: 0 to 3
0 =M03 positive voltage
M04 negative voltage
1 =M03 negative voltage
M04 positive voltage
2 =M03 and M04 positive voltage
3 =M03 and M04 negative voltage