beautypg.com

HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 234

background image


01.98

TNC 407/TNC 415/TNC 425

4 Main Spindle

4-109

Marker

Function

Set

Reset

M2007

Spindle in Position

NC

NC

M2127

Spindle in motion (controlled spindle)

NC

NC

M2408

Cycle 13 is being executed

NC

PLC

M2499

Open the spindle control loop

PLC

PLC

M2501

Activates spindle-speed MP3520.0

PLC

PLC

and direction of rotation from Marker M2656

M2615

Re-evaluation of the reference marks

PLC

NC

for spindle orientation

M2656

Spindle orientation from stop

PLC

PLC

0 = Orientation with M03
1 = Orientation with M04

M2712

Activate PLC positioning for

NC, PLC

NC

spindle orientation

D592

Nominal position for spindle orientation
(Strobe M2712)

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

;Acknowledgement 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