Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Heidenhain Control


Recommended Posts

Anybody here running Heidenhain Controls?? If so, does anybody have an example of a program with the tool breakage detection cycle in it?? Cycle 586??

 

0 BEGIN PGM 20 INCH

1 ;***************

2 ;THIS PROGRAM IS THE MAIN SUB CALL

3 ;IT WILL WRITE THE POCKET ROTATION VALUE INTO C

4 ;IT WILL CALL THE REQUIRED TOOL IF NEEDED

5 ;IT WILL THEN CALL THE CODE PROGRAM

6 ;******************

7 ; POCKET 1

8 ;TOOL CALL

9 TOOL CALL 81 Z S3600

10 FN 17: SYSWRITE ID 503 NR3 IDX6 =+0

11 CALL LBL 100

12 ; POCKET 2

13 ;TOOL CALL

14 FN 17: SYSWRITE ID 503 NR3 IDX6 =+24

15 CALL LBL 100

16 ; POCKET 3

17 ;TOOL CALL

18 FN 17: SYSWRITE ID 503 NR3 IDX6 =+48

19 CALL LBL 100

20 ; POCKET 4

 

TOOL breakage detection cycle here.

 

21 TOOL CALL 82 Z S3600

22 FN 17: SYSWRITE ID 503 NR3 IDX6 =+72

23 CALL LBL 100

24 ; POCKET 5

25 ;TOOL CALL

26 FN 17: SYSWRITE ID 503 NR3 IDX6 =+96

27 CALL LBL 100

28 ; POCKET 6

29 ;TOOL CALL

30 FN 17: SYSWRITE ID 503 NR3 IDX6 =+120

31 CALL LBL 100

32 ; POCKET 7

 

 

TOOL breakage detection cycle here.

 

33 TOOL CALL 83 Z S3600

 

Here is an example of my program. You can see where I would like to add the tool breakage detection cycle. Any help would be awesome. Thanks guys.

Link to comment
Share on other sites

Does this help ?

 

TOOL CALL 1 Z S10000 F1000 DL0 DR0 ;TOOL 1

TCH PROBE 586 Q356=+1 Q357=+0 Q359=+0

FN 9: IF +Q199 EQU +0 GOTO LBL “SKIP”

STOP ;TOOL BROKEN

LBL “SKIP”

 

OR

 

TOOL CALL 1 Z S10000 ;TOOL 1

TCH PROBE 586 TOOL BREAKAGE DETECT ~

Q356=+1 ;MEAS. DIRECTION ~

Q357=+0 ;RADIAL OFFSET ~

Q359=+0 ;ADD. LENGTH CORRECT.

TOOL CALL 1 Z

Link to comment
Share on other sites

Does the cycle need to be right after a TOOL CALL??

 

You can see from the program I put in as an example:

 

Tool Call 1

Run Program

Rotate C

Run Program

Rotate C

Run Program

Tool Call 2

.

.

.

 

I would really like it to run like this:

 

Tool Call 1

Run Program

Tool Breakage Detection

Rotate C

Run Program

Tool Breakage Detection

Rotate C

Run Program

Tool Breakage Detection

Tool Call 2

.

.

.

 

If the tool breaks, I want to stop everything from running.

 

Sorry if this is very elementary, I am new to the Heidenhain Conrtols and still getting acquainted with how they operate.

Link to comment
Share on other sites

put the cycle after the tool runs. Doesnt the load setting take care of a worn out tool. Unless you are checking something like a small drill before a tap, then call the tool & run the path then check for breakage. Also you can "check" the tool through out the path as often as you want. Just rapid up, check, reposition & go.

Link to comment
Share on other sites
  • 3 years later...

Does this help ?

 

TOOL CALL 1 Z S10000 F1000 DL0 DR0 ;TOOL 1

TCH PROBE 586 Q356=+1 Q357=+0 Q359=+0

FN 9: IF +Q199 EQU +0 GOTO LBL “SKIP”

STOP ;TOOL BROKEN

LBL “SKIP”

 

OR

 

TOOL CALL 1 Z S10000 ;TOOL 1

TCH PROBE 586 TOOL BREAKAGE DETECT ~

Q356=+1 ;MEAS. DIRECTION ~

Q357=+0 ;RADIAL OFFSET ~

Q359=+0 ;ADD. LENGTH CORRECT.

TOOL CALL 1 Z

 

Thanks this worked for me as well with a minor modification since it didnt like the "SKIP" i changed it to a 1 without quotes:

TCH PROBE 586 Q356=+1 Q357=+0 Q359=+0

FN 9: IF +Q199 EQU +0 GOTO LBL 1

STOP ;TOOL BROKEN

LBL 1

 

My question is this; If I have multiple tool break checks in the same program will the goto command only search forward to the next "LBL 1" or does it have the possibility of jumping to any of the other LBL 1 lines?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...