HEIDENHAIN TNC 426 PB/M Technical Manual page 900

Table of Contents

Advertisement

PLC program example
1
2 *+----------------------------------------------------+
3 *|
4 *+----------------------------------------------------+
5
6 #plcpath PLC:\EXAMPLE\
7 #pragma symsort
8 #pragma nsc
9 #pragma dl 1
10 *#pragma nsw
11
12 *+----------------------------------------------------+
13 *|
14 *+----------------------------------------------------+
15
16 #define /MN 3200 3999
17 #define /MR 200
18 #define /BN 2048 4095
19 #define /BR 4
20
21 *+----------------------------------------------------+
22 *|
23 *+----------------------------------------------------+
24
25 #define /g
1
2 *+---------------------------------------------------+
3 *| Configuartion file for this PLC program
4 *+---------------------------------------------------+
5
6 * Number of PL boards
K0
7 #define
8
9 * Input Belegung definieren
K0
10 #define
K1
11 #define
K0
12 #define
13
14 * Monitoring motor temperature axes 1...5
K255
15 #define
K255
16 #define
K255
17 #define
K255
18 #define
K255
19 #define
K255
20 #define
21
22
23 #ifdef $TNC410M$ or $TNC410MA$ or $TNC410PA$
K0
24
25 #endif
26
27 #ifdef $TNC426M$ or $TNC426PB$ or $TNC430M$ or $TNC430PA$
28
29 #endif
30
31 #ifdef $TNC410$ or $TNC410M$ or $TNC410M$ or $TNC410MA$ or $TNC410CA$ or $TNC410PA$
K4
32
33 #else
34
35 #endif
36
26 #define /g
1 *+----------------------------------------------------+
2 *|
3 *+----------------------------------------------------+
4
5 #Type M
M3999
6
M3998
7
M3997
8
M3996
9
M3995
10
M3994
11
M3993
12
M3992
13
M3991
14
M3990
15
16
December 2001
Main-Program for TNC 430
Marker range definition
999
127
Gloal file definition
Config.Def
First_PL
IO_MB410
IO_SPG
IO_Belegung
Motor_Temp_1
Motor_Temp_2
Motor_Temp_3
Motor_Temp_4
Motor_Temp_5
Motor_Temp_S
#define
NC_Type_Digital
#define
NC_Type_Digital
#define
Max_NC_Axis
#define
Max_NC_Axis
GLB_TCMB.Def
Global makrker Byte Word
DWord
MG_one_marker
MG_zero_marker
MG_spindle_on_M03
MG_spindle_on_M04
MG_spindle_off_M05
MG_spi_Pos_M19_R_M0X
MG_T_I_N_supervision
MG_Spindle_RPM_Zero
MG_spindle_on_gear
MG_gear_change_activ
PLC Program Example
|
|
|
|
0
K+0
K+1
K &IO_MB410
255
255
255
255
255
255
0
0
4
* NC-axis without spindle
5
* NC-axis without spindle
|
7 – 51

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