beautypg.com

3 program example – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 338

background image


01.98

TNC 407/TNC 415/TNC 425

13 Hirth coupling

4-213

13.3 Program example

The positioning of the 4th axis and locking by the Hirth coupling is described in the following
example. The following machine parameters and markers are required for the example:

MP420.3

Activate Hirth coupling axis 4
1 = active, 0 = not active

MP4310.1

W978

Direction for PLC positioning for repositioning

MP430.3

Hirth grid axis 4

MP960.3

Shift Hirth grid against reference mark
(machine datum)

MP4210.3

D776

Positioning window for PLC positioning

MP4201.3

D780

Input resolution for controlled mode

MP4220.3

W966

Feed rate for PLC positioning

W540

PLC Position for axis 4

W566

Feed rate for PLC position

D12

Actual value (Ref. related)

D20

Trailing error

D36

Hirth grid left of nominal value

D40

Hirth grid right of nominal value

D44

Nominal grid value

D28

Hirth grid

Hirth positioning in controlled mode
L

M0

;create logic zero

R

M0

LN

M1

;create logic one

S

M1

Activate initializing after switch-on (Module 290)
L

M2180

;first PLC cycle after switch-on

O

M2185

;first PLC cycle after interruption

CMT

290

;read MP420.3

L

M301

;Hirth function active

A

M304

;Submit 1 terminated

CMT

292

;read Hirth grid MP430.3

L

M2011

;axis 4 in position

A

M305

;Submit 2 terminated

S

M302

;Switch-on delay terminated

Interrogate operating mode
L

M2053

;positioning with manual input

O

M2054

;program run/single block

O

M2055

;full sequence

=

M5

;controlled mode