beautypg.com

HEIDENHAIN TNC 306 Technical Manual User Manual

Page 115

background image


3/97

TNC 406/TNC 306

1 Machine axes

4-15

Example:

PLC program example for changing the software limit switch ranges. PLC-input I10 is used as a
condition for change.

I10 = 0

Software limit switch range 1

I10 = 1

Software limit switch range 2

.

127

LN I10

;Range 1

128

AN M555

;already done?

129

R M2816

;select range 1

130

R M2817

;select range 1

131

S M2824

;activate change

132

S M555

;edge recognition range 1

133

R M556

;reset edge recognition range 2

134

L I10

;Range 2

135

AN M556

;already done?

136

S M2816

;select range 2

137

R M2817

;select range 2

138

S M2824

;activate change

139

S M556

;edge recognition range 2

140

R M555

;reset edge recognition range 1

M555

M556

I10

M2816

M2817

M2824

This manual is related to the following products: