beautypg.com

HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 347

background image


4-222

TNC 407/TNC 415/TNC 425

14 Datum correction

01.98

PLC example:

Datum correction with M20 activated, with M21 deactivated
.
LN

M2045

S

M10

L

M1920

A

M2045

;M20 activated

A

M10

;Buffered marker for strobe marker 2716

CMT

200

;Datum correction call

R

M10

L

M1921

A

M2045

;M21 activated

S

M10

;Buffered marker for strobe marker 2716

C

201

;Deactivate datum correction call

R

M10

.
.
L

M1920

O

M1921

A

M2045

AN

M2716

S

M2482

;Feedback for M20 and M21

EM

;End of main program

LBL 200

;Activate module for datum correction

L

D896

;Value from MP4210.32

=

D528

;Shift X axis

L

K0

;Do not shift Y, Z, 4th and 5th axis

=

D532

=

D536

=

D540

=

D544

L

M10

S

M2716

;Activate datum compensation

EM
LBL 201

;Deactivate module for datum correction

L

D900

;Value from MP4210.33

=

D528

;Shift X axis

L

K0

;Do not shift Y, Z, 4th and 5th axis

=

D532

=

D536

=

D540

=

D544

L

M10

S

M2716

;Activate datum correction

EM