HEIDENHAIN TNC 426 PB/M Technical Manual page 908

Table of Contents

Advertisement

PLC program example
1
2 *+----------------------------------------------------+
3 *|
4 *+----------------------------------------------------+
5
6 GLOBAL M_Function
7
175 LBL M_FUNCTION
8 LBL M_Function
176 L W260
9
177 < K30
10
178 IFT
11
179 L W260
12
180 =X
13
181 L KF M_FUNK_TAB[X]
14
182 =X
15
183 L M4072
16
184 = M0[X]
17
185 ENDI
18
186 EM
19 EM
20
188 KFIELD M_FUNK_TAB
21 KFIELD M_Funk_Tab
189
K3995 ; 0
22
190
K4805 ; 1
23
191
K3995 ; 2
24
192
K3997 ; 3
25
193
K3996 ; 4
26
194
K3995 ; 5
27
195
K4805 ; 6
28
196
K4805 ; 7
29
197
K4805 ; 8
30
198
K4805 ; 9
31
199
K4805 ;10
32
200
K4805 ; 1
33
201
K4805 ; 2
34
202
K3997 ; 3
35
203
K3996 ; 4
36
204
K4805 ; 5
37
205
K4805 ; 6
38
206
K4805 ; 7
39
207
K4805 ; 8
40
208
K3994 ; 9
41
209
K4805 ;20
42
210
K4805 ; 1
43
211
K4805 ; 2
44
212
K4805 ; 3
45
213
K4805 ; 4
46
214
K4805 ; 5
47
215
K4805 ; 6
48
216
K4805 ; 7
49
217
K4805 ; 8
50
218
K4805 ; 9
51
219
K3995 ;30
52
220 ENDK
53 ENDK
________________________________ Local Labels ________________________________
M_FUNK_TAB
14
1
2 *+----------------------------------------------------+
3 *|
4 *+----------------------------------------------------+
5
6 GLOBAL reference_endswitch
7
M3200
8 #define Inputs
M3200
9 #define /c Input_Bit0
M3201
10 #define /c Input_Bit1
M3202
11 #define /c Input_Bit2
M3203
12 #define /c Input_Bit3
M3204
13 #define /c Input_Bit4
14
221 LBL REFERENCE_ENDSWI
15 LBL reference_endswitch
222 L I0
16
223 = M3200
17
224 L I1
18
225 = M3201
19
226 L I2
20
227 = M3202
21
228 L I4
22
229 = M3203
23
230 L I6
24
231 = M3204
25
26
233 LB M3200
27
234 = W1054
28
235 EM
29 EM
30
December 2001
M-function
L
NP_W260_M_code
<
K+30
IFT
L
NP_W260_M_code
=X
L
KF M_Funk_Tab[X]
=X
L
NP_M4072_strobe_M_function
=
M0[X]
ENDI
K &MG_spindle_off_M05
K &PN_error_not_used_M_function
K &MG_spindle_off_M05
K &MG_spindle_on_M03
K &MG_spindle_on_M04
K &MG_spindle_off_M05
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &MG_spindle_on_M03
K &MG_spindle_on_M04
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &MG_spi_Pos_M19_R_M0X
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &PN_error_not_used_M_function
K &MG_spindle_off_M05
:
21
Reference endswitch
M[16]
M &Inputs + 0
M &Inputs + 1
M &Inputs + 2
M &Inputs + 3
M &Inputs + 4
L
I_Ref_Endswitch_1_axis
=
Input_Bit0
L
I_Ref_Endswitch_2_axis
=
Input_Bit1
L
I_Ref_Endswitch_3_axis
=
Input_Bit2
L
I_Ref_Endswitch_4_axis
=
Input_Bit3
L
I_Ref_Endswitch_5_axis
=
Input_Bit4
LB
Inputs
=
PN_W1054_reference_endswitch
PLC Program Example
|
; 0
; 1
; 2
; 3
; 4
; 5
; 6
; 7
; 8
; 9
;10
; 1
; 2
; 3
; 4
; 5
; 6
; 7
; 8
; 9
;20
; 1
; 2
; 3
; 4
; 5
; 6
; 7
; 8
; 9
;30
|
7 – 59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents