HEIDENHAIN TNC 335 Technical Manual User Manual

Page 193

Advertising
background image


4-96

TNC 360

4 Spindle

8/95

After the start of spindle orientation the spindle position is displayed in the status window.
The displayed value remains, as long as the spindle is in the closed position control loop.
The display is modulo 360 degrees.

A spindle orientation can also be performed by an initiator. For this, marker M2501 must be set by
the PLC. This marker activates a spindle rotation with a spindle speed defined by machine parameter
MP3520.0 and a direction of rotation according to marker M2656. If the marker M2501 is reset by
the PLC (e.g.. via initiator), then the spindle will stop. The positional value will be displayed in the
status window. "Jog mode" for the spindle can be achieved in this way.

MP3520.0 Spindle speed activated by marker M2501

Input value: 0 to 99 999.999 [rpm]

Set

Reset

M2501

Activates spindle speed MP3520.0

PLC

PLC

and direction of rotation from marker M2656

Example of a PLC program for spindle orientation with M19/M20

Program description:
Using the M Function M19 to activate a spindle orientation to the value which is determined by the
spindle-orientation cycle.

Using the M Function M20 to activate a spindle orientation to the value which is stored in
MP4210.47.

;Main program
LN

M1

;Generate logic ONE

S

M1

;Buffer marker which is continuously ONE

.
.
.

.
.
.

.
.
.

LN

M2045

;M strobe inactive

R

M12

;Spindle-orientation cycle active

R

M2482

;Acknowledgment of M code

Activation of the orientation to the value from the HEIDENHAIN cycle
L

M1919

;Decoded M function 19

A

M2045

;M-code change signal

AN

M12

;Orientation cycle active

CMT

180

;Activation of the Orientation from the cycle

S

M12

;Orientation cycle active

Advertising