Nc Macro For Changing Pallets And Fixtures - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

NC macro for
changing pallets
and fixtures
1500
In NCMACRO.SYS, use the entry PALETT= to define the complete path and
name of the NC macro that is to be called when a pallet entry (PAL) is run.
In NCMACRO.SYS, use the entry CLAMP= to define the complete path and
name of the NC macro that is to be called when a fixture entry (FIX) is run.
In these macros you can request the current line or pallet name with FN18:
SYSREAD Qxxx = ID510 NR1 or NR2, respectively.
This NC macro also can be started from the PLC with Module 9280.
To synchronize the current machine status and the look-ahead calculation with
an NC macro call, see "NCMACRO.SYS" on page 1709.
A simple example of an NC macro for changing fixtures:
0
BEGIN PGM TOclamp MM
1
FN 18: SYSREAD Q1 = ID510 NR5 IDX1
2
FN 18: SYSREAD Q2 = ID510 NR5 IDX2
3
FN 18: SYSREAD Q3 = ID510 NR5 IDX3
4
FN 18: SYSREAD Q4 = ID510 NR5 IDX4
5
FN 18: SYSREAD Q5 = ID510 NR5 IDX5
6
FN 9: IF +Q3 EQU +0 GOTO LBL 1
7
FN 18: SYSREAD Q13 = ID510 NR6 IDX3
8
L Z+Q13 R0 FMAX
9
LBL 1
10
FN 9: IF +Q1 EQU +0 GOTO LBL 2
11
FN 18: SYSREAD Q11 = ID510 NR6 IDX1
12
L X+Q11 R0 FMAX
13
LBL 2
14
FN 9: IF +Q2 EQU +0 GOTO LBL 3
15
FN 18: SYSREAD Q12 = ID510 NR6 IDX2
16
L Y+Q12 R0 FMAX
17
LBL 3
18
FN 9: IF +Q4 EQU +0 GOTO LBL 4
19
FN 18: SYSREAD Q14 = ID510 NR6 IDX4
20
L C+Q14 R0 FMAX
21
LBL 4
22
FN 9: IF +Q5 EQU +0 GOTO LBL 5
23
FN 18: SYSREAD Q15 = ID510 NR6 IDX5
24
L B+Q15 R0 FMAX
25
LBL 5
26
END PGM TOclamp MM
If such an NC macro is canceled (e.g. PALLET = with an internal stop), Marker
M4185 is set and Module 9320 provides the same status information as in the
event of an NC program cancelation. Pallet and fixture macros that are
canceled with an external/internal stop behave just like NC programs regarding
the setting of M4185 and the status data of Module 9320. In connection with
MACROCANCEL they are regarded as NC macros, however, see page 1709.
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents