CAD CAM EDM DRO - Yahoo Group Archive

Re: Heidenhain Program Examples

Posted by Paul Corner
on 1999-10-12 13:17:27 UTC
On Tue, 12 Oct 1999, you wrote:
> From: Randolph Lee <boss@...>
>
> Thanks Paul,
>
> The main problems are with understanding the nesting the docs say
> that 8 levels of nesting can be used but I can only make one work and
> they give no examples of deeper nesting...
>

Hi Randolph

First point - TNCremo was the utility I was tring to think of, TNCRemoNT
sounds like a WindowsNT version.

Nesting of loops - 8 levels is what my manual quotes too. Here's a short
example from my TNC145 manual :

1 TOOL DEF 1 L+0,000 R+0.000
2 LB 1
3 TOOL CALL 0 Z S 2000
4 Z+25,000 R0 F99999 M05
5 L X-25,000 Y-25,000 R0 F99999
6 LBL 0
7 STOP M25
8 TOOL CALL 1 Z S 2000
9 CYCL DEF 1 0 PECKING
10 CYCL DEF 1 1 SET UP -2,000
11 CYCL DEF 1 2 DEPTH -25,000
12 CYCL DEF 1 3 PECKG -4,000
13 CYCL DEF 1 4 DWELL 0,000
14 CYCL DEF 1 5 F200
15 L X+10,000 Y-10,000 R0 F9999
16 Z+2,000 R0 F9999 M03
17 LBL 2
18 CYCL CALL
19 IX+10,000 R0 F9999
20 LBL 0
21 CALL LBL 2 REP 3/3
22 CYCL CALL
23 L X+10,000 IY-20,000 R0 F9999
24 CALL LBL 2 REP 2/2
25 CALL LBL 1 REP
26 STOP M25
27 STOP M02

Here is a program to drill 5 holes, 10mm apart in 3 rows, 20mm apart.
There is a problem in the way the label calls are handled.
<Quote>
If an earlier defined label is recalled with no repeats i.e. CALL LBL 1 REP
then only the contents of that label are recalled { line 2 to line 6 }. When a
label is recalled with repeats i.e. CALL LBL 2 REP 2/2 then all lines of
the program from the start of the label definition { line 17 } up to the call
label line { line 24 } are repeated the number of times requested, in this
example, twice.
<End Quote>

I tend not to use nesting because of this litlle quirk, when I do, it is
without repeats. I'm not all that keen on the TNC language, what with the memory
limitation and no G code support, I am switchig to another control system.

I have come across a couple of programs, one imports a TNC file and displays
the tool path graphically, the other one as i recall, would import a dxf ( or
was it a HPGL) file and output a TNC program. I will have to boot up my dos
system later to find them. I'll give you a URL later on.

Regards, Paul.

Discussion Thread

Paul Corner 1999-10-12 13:17:27 UTC Re: Heidenhain Program Examples Randolph Lee 1999-10-12 16:35:34 UTC Re: Heidenhain Program Examples