586,060 active members*
4,425 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2009
    Posts
    146

    Heidenhain TNC 150 - problem with "LBL CALL"

    Can anyone give me a simple example program in certain coordinates called subroutines.

    0 BEGIN PGM 9001 MM
    1 CYCL DEF 7.0
    2 CYCL DEF 7.1 X+199.998
    3 CYCL DEF 7.2 Y-31.725
    4 CYCL DEF 7.3 Z-102.65
    5 TOOL DEF 1 L+124.95 R+6.000
    6 TOOL CALL 1 Z S 860.000
    7 L X+0.00 Y+82.0 Z+10.0 R0 F9999 M
    8 L Z+3.000 R0 F9999 M13
    9 CALL LBL 1
    10 L X-82.0 Y+0.0 R0 F9999 M
    11 CALL LBL 1
    12 L X+0.0 Y-82.0 R0 F9999 M
    13 CALL LBL 1
    14 L X+82.0 Y+0.0 R0 F9999 M
    15 CALL LBL 1
    16 L Z+10 R0 F9999 M05
    17 L X+0.0 Y+150.0 Z+30.000 R0 F9999 M02
    18 LBL 1
    19 L Z+1.0 R0 F1500 M
    20 L Z-11.0 R0 F500 M
    21 L Z-12.35 R0 F40 M
    22 L Z+3.0 R0 F9999 M
    23 LBL 0
    24 END PGM 9001 MM

    In this way I have done, but not working properly. After the first execution of sub-program, jump to the first line in the program, and not to line 10, as it should be. Why?

  2. #2
    Join Date
    Nov 2006
    Posts
    925
    Go here and download the programming examples.It says it is in German but the programmes are in English.
    http://content.heidenhain.de/doku/om...C3/N13AC3.html

    Mark.

  3. #3
    Join Date
    Aug 2009
    Posts
    684
    I can't see anything wrong with the program...

    It's like the LBL 0 is being ignored. Maybe someone knows if there is a parameter that affects this behaviour?

    DP

    Another way to program it would be to define the Program Call Cycle, and call it with an M99 at each position. Put the Z moves in the separate program.

  4. #4
    Join Date
    Jun 2009
    Posts
    146
    My apologies, I misunderstood copying program, actually I had written on the machine to call a program like this: "CALL LBL 1 REP1/1". When calling the program I pressed "ENTER" and it should press the "NO ENT" (I type directly on the machine). Now that I have written only when they call, "CALL LBL 1 REP". Work normaly.

    While I'm just taking ... What does it mean when it says "CALL LBL 1 REP 1 / 1"?

  5. #5
    Join Date
    Aug 2009
    Posts
    684
    You can specify number of repeats. Useful for incremental style programming, a rotational bolt hole pattern, for example.

    If you know that you will always want to repeat a LBL a certain amount of times, you can put also put this line inside the LBL before LBL 0. Quite handy.

    DP

  6. #6
    Join Date
    Nov 2008
    Posts
    69

    LBL CALL

    The CALL LBL 1 (without rep) is calling a part program which begins with LBL 1 and end to LBL 0. After reading LBL 0 program continues from the next line after CALL LBL 1.

    If you call CALL LBL 1 rep n/n the control calls LBL 1 (usually before the CALL line and repeats number of time that you have programmed.
    LBL 1
    L IX+100.000 R0 FMAX M99
    CALL LBL 1 5/5

    Take a look at manuals.

    Jukka

  7. #7
    Join Date
    Jun 2009
    Posts
    146
    Thanks for the responses. I think I now understand the difference. I have to try as soon as possible on Mashine, how it works.

Similar Threads

  1. "J" head type "millport"(tiwan,1980) clutch
    By marksbug in forum Bridgeport / Hardinge Mills
    Replies: 1
    Last Post: 08-17-2009, 04:48 PM
  2. Replies: 7
    Last Post: 06-14-2009, 02:56 PM
  3. Heidenhain TNC2500 or TNC360 Teksoft Post Processor " G " code ISO
    By RMARCH in forum Bridgeport / Hardinge Mills
    Replies: 0
    Last Post: 06-11-2009, 05:51 PM
  4. I have a big problem with "heidenhain Gcode".please help me!!!
    By ngocthiem3g in forum Community Club House
    Replies: 1
    Last Post: 09-16-2008, 05:49 PM
  5. Bridgeport 760\22 Heidenhain 370 "error 2 tool def"
    By JNFSWE in forum Bridgeport / Hardinge Mills
    Replies: 9
    Last Post: 08-26-2008, 07:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •