HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 143

Marker
Function
Set
Reset
M2824
Activation of the selected traverse range
PLC
NC
(M2816/M2817)
If one of the software limit switches is reached, the error message "LIMIT SWITCH ..." appears and
the appropriate marker (M2624 to M2633) is set.
Marker
Function
Set
Reset
M2624
Limit switch X+
NC
NC
M2625
Limit switch X–
M2626
Limit switch Y+
M2627
Limit switch Y–
M2628
Limit switch Z+
M2629
Limit switch Z–
M2630
Limit switch 4+
M2631
Limit switch 4–
M2632
Limit switch 5+
M2633
Limit switch 5–
Example:
PLC-program example of changing the traverse ranges. The PLC-input I10 is used as a condition for
change.
I10 = 0
Traverse range 1
I10 = 1
Traverse range 2
.
127
LN I10
;Traverse range 1
128
AN M555
;already done?
129
R M2816
;select traverse range 1
130
R M2817
;select traverse range 1
131
S M2824
;activate change
132
S M555
;edge recognition traverse range1
133
R M556
;reset edge recognition traverse range2
134
L I10
;traverse range2
135
AN M556
;already done?
136
S M2816
;select traverse range2
137
R M2817
;select traverse range2
138
S M2824
;activate change
139
S M556
;edge recognition traverse range2
140
R M555
;reset edge recognition traverse range1
.