CAD CAM EDM DRO - Yahoo Group Archive

Re: Heidenhain DRO loops

Posted by Paul Corner
on 1999-10-14 13:26:05 UTC
Hi Randolph

Just reread my post, didn't quite come out as I intended - the danger of typing
late at night. Hopefully the prog will explain things a bit better.

> > Had a little play with my mill using llabel calls - Nested calls work fine as
> >long as there are no repeats. When a label call is made with repeats, the
> >program jumps to the designated label. But on reaching LBL 0, instead of
> >returning to the calling label, LBL 0 is ignored and all lines are executed up
> >to the original calling line. This is fine as long as it is not a forward call
> >or there are no nested calls with repeats. In other words, if you wish to nest
> >calls, do not use multiple repeats with the nested calls. If you
> >need to repeat
> >a nested call, use multiple CALL LBL REP 0/0 blocks instead.

1 TOOL CALL 0 Z S2000
2 LBL 1
3 ,do a few moves
4 LBL 0
5 LBL 2
6 ,do a few more moves
7 LBL CALL 1 REP 2/2
,lines 3 to 6 get repeated
8 LBL CALL 4 REP 0/0
,this works OK
9 LBL CALL 4 REP 3/3
,this line won't work !!
10 LBL 2
11 ,move again
12 LBL 3
13 ,yet more moves
14 LBL CALL 3 REP 2/2
,this works
15 ,say index a dividing head
17 LBL CALL 2 REP 6/6
18 TOOL CALL n


850 LBL 4
851 ,the forward jump point
852 LBL 0
853 STOP

When LBL 4 is called by line 9, it won't return to line 9 at the LBL 0. Handy
if you want to skip a chunk of code, fatal if didn't. In which case, you would
need to use a series of LBL CALL $ REP 0/0 instead.

Changing the subject a litlle. I've talked to Heidenhain about adding functions
and memory, 7,000 pounds ($11500 ish) and I would have to change the controller.
I'll pass on that, and go down the EMC path, then I can use the same langauge
as my lathe.
Hope I haven't gon on too much.
Regards, Paul.

Discussion Thread

Paul Corner 1999-10-13 12:17:29 UTC Re: Heidenhain DRO loops Randolph Lee 1999-10-13 15:03:18 UTC Re: Heidenhain DRO loops Paul Corner 1999-10-14 13:26:05 UTC Re: Heidenhain DRO loops