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:

Drill Cycle - the first hole should be in a subroutine


Recommended Posts

Hi Guys,

Iam trying to change the output of drill cycles for a TNC426 controller. The post gives me subroutines, so far so good. But when I choose subroutines, it gives me the code for the cycle and the first drill point, after this i get the call for the subprogramm. I know that the cycle will be processed when it has been read by the controller and in this way the position must be contained in the cycle, but with heidenhain its a little bit diffrent. 

This means in the pdrill$ should be postet the subroutine.

For example what i get a the moment:

 

4 TOOL CALL 5 Z S763 DL+0 DR+0 
5 L R0 FMAX M03
6 CYCL DEF 1.0 PECKING
7 CYCL DEF 1.1 SET UP 2.
8 CYCL DEF 1.2 DEPTH -10.
9 CYCL DEF 1.3 PECKG 10.
10 CYCL DEF 1.4 DWELL .5
11 CYCL DEF 1.5 F153
12 L X+30. Y+80. Z+50. R0 FMAX M08
13 L Z+2. FMAX M99
14 L Z+50. R0 FMAX
15 CALL  LBL 1
16 M09
17 M05
18 CALL PGM 9999 36 CALL PGM 9999
37 STOP M30
38 LBL 1
39 L X+30. Y+50. Z+50. R0 FMAX
40 L Z+2. FMAX M99
41 L Z+50. R0 FMAX
42 L X+30. Y+20. Z+50. R0 FMAX
43 L Z+2. FMAX M99
44 L Z+50. R0 FMAX
45 L X+65. Y+20. Z+50. R0 FMAX
46 L Z+2. FMAX M99
47 L Z+50. R0 FMAX
48 L X+100. Y+20. Z+50. R0 FMAX
49 L Z+2. FMAX M99
50 L Z+50. R0 FMAX
51 L X+135. Y+15. Z+50. R0 FMAX
52 L Z-28. FMAX M99
53 L Z+50. R0 FMAX
54 L X+160. Y+15. Z+50. R0 FMAX
55 L Z-28. FMAX M99
56 L Z+50. R0 FMAX
57 L X+185. Y+15. Z+50. R0 FMAX
58 L Z-28. FMAX M99
59 L Z+50. R0 FMAX
60 L X+185. Y+50. Z+50. R0 FMAX
61 L Z-28. FMAX M99
62 L Z+50. R0 FMAX
63 L X+185. Y+85. Z+50. R0 FMAX
64 L Z-28. FMAX M99
65 L Z+50. R0 FMAX
66 L X+160. Y+85. Z+50. R0 FMAX
67 L Z-28. FMAX M99
68 L Z+50. R0 FMAX
69 L X+135. Y+85. Z+50. R0 FMAX
70 L Z-28. FMAX M99
71 L Z+50. R0 FMAX
72 L X+135. Y+50. Z+50. R0 FMAX
73 L Z-28. FMAX M99
74 L Z+50. R0 FMAX
75 L X+100. Y+80. Z+50. R0 FMAX
76 L Z+2. FMAX M99
77 L Z+50. R0 FMAX
78 L X+65. Y+80. Z+50. R0 FMAX
79 L Z+2. FMAX M99
80 L Z+50. R0 FMAX
81 LBL 0

And this is what is want

4 TOOL CALL 5 Z S763 DL+0 DR+0 
5 L R0 FMAX M03
6 CYCL DEF 1.0 PECKING
7 CYCL DEF 1.1 SET UP 2.
8 CYCL DEF 1.2 DEPTH -10.
9 CYCL DEF 1.3 PECKG 10.
10 CYCL DEF 1.4 DWELL .5
11 CYCL DEF 1.5 F153
15 CALL  LBL 1
16 M09
17 M05
36 CALL PGM 9999
37 STOP M30
38 LBL 1
12 L X+30. Y+80. Z+50. R0 FMAX M08
13 L Z+2. FMAX M99
14 L Z+50. R0 FMAX
39 L X+30. Y+50. Z+50. R0 FMAX
40 L Z+2. FMAX M99
41 L Z+50. R0 FMAX
42 L X+30. Y+20. Z+50. R0 FMAX
43 L Z+2. FMAX M99
44 L Z+50. R0 FMAX
45 L X+65. Y+20. Z+50. R0 FMAX
46 L Z+2. FMAX M99
47 L Z+50. R0 FMAX
48 L X+100. Y+20. Z+50. R0 FMAX
49 L Z+2. FMAX M99
50 L Z+50. R0 FMAX
51 L X+135. Y+15. Z+50. R0 FMAX
52 L Z-28. FMAX M99
53 L Z+50. R0 FMAX
54 L X+160. Y+15. Z+50. R0 FMAX
55 L Z-28. FMAX M99
56 L Z+50. R0 FMAX
57 L X+185. Y+15. Z+50. R0 FMAX
58 L Z-28. FMAX M99
59 L Z+50. R0 FMAX
60 L X+185. Y+50. Z+50. R0 FMAX
61 L Z-28. FMAX M99
62 L Z+50. R0 FMAX
63 L X+185. Y+85. Z+50. R0 FMAX
64 L Z-28. FMAX M99
65 L Z+50. R0 FMAX
66 L X+160. Y+85. Z+50. R0 FMAX
67 L Z-28. FMAX M99
68 L Z+50. R0 FMAX
69 L X+135. Y+85. Z+50. R0 FMAX
70 L Z-28. FMAX M99
71 L Z+50. R0 FMAX
72 L X+135. Y+50. Z+50. R0 FMAX
73 L Z-28. FMAX M99
74 L Z+50. R0 FMAX
75 L X+100. Y+80. Z+50. R0 FMAX
76 L Z+2. FMAX M99
77 L Z+50. R0 FMAX
78 L X+65. Y+80. Z+50. R0 FMAX
79 L Z+2. FMAX M99
80 L Z+50. R0 FMAX
81 LBL 0

I searched a lot in this forum, but didnt find anything similar to this problem. Where can i get the informtion in the postrun, if there is a subroutine call?  I know that it only will work when absolute coordiantes are choosen.

 

Maybe someone has an idea an can help me. Thanks a lot! 🙂

 

Mike

Link to comment
Share on other sites
Just now, MikeEhrmanntraut said:

This is not an important issue for my boss, he thinks we don't need it. That's why he doesn't pass the matter on to the reseller. Since I don't get any support from my boss, I turned to the forum.

Are you not allowed to talk to your reseller?

Link to comment
Share on other sites
37 minutes ago, MikeEhrmanntraut said:

yes, my boss reserves the right to do that himself.  I just hoped to find someone here who could give an idea or tip. 

That's fine, can you post a zip 2 go or mastercam file for a sim check please?

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...