![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi! I'm farely new here so dont shoot me for asking I work on a Nicholas correa Calidad A-30 3-axis with Heidenhain tnc426(PB) on my job here in sweden. Using mastercam X. I got a post from this forum a while ago (actually a 4-axis post) and have used it with a lot of luck. But there is a few simple bugs that I have in my post and wondered if there is someone that could help me with them. I've done some modifications that have helped me but there are some left. These bugs I have to change before i transfer the program to the control. Bugs like: 0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME - 1 ; PROGRAM FOR - HEIDENHAIN 2 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23 There I want it to be: 0 BEGIN PGM "program name" MM 1 BLK FORM 0.1 Z X-5 Y-5 Z-1 2 BLK FORM 0.2 X+5 Y+5 Z+0 3 ; PROGRAM FOR - HEIDENHAIN 4 ; DATE=DD-MM-YY - 12-09-07 TIME=HH:MM - 09:23 Without the " post says: pheader #Start of file seqno = 0 seqinc = 1 n = seqno n, "BEGIN PGM ", progname, *smetric n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1" n, "BLK FORM", "0.2", "X+5 Y+5 Z+0" psof0 #Start of file for tool zero psof psof #Start of file for non-zero tool number nextcflg = c9k last_mr2 = c9k last_mr3 = c9k last_mr4 = c9k last_workofs = c9k plast_recd rc1 = one gcode1 = rbuf ( one, rc1 ) if ntools = one, stagetool = two #skip single tool output gcode = zero cc_pos = zero pspindle pcom_movbtl pbld, n, "; PROGRAM NAME - ", progname, e pbld, n, "; PROGRAM FOR - HEIDENHAIN ", e pbld, n, "; DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, e if mi3 > 0, pm92_rtrnz And an other bug: 4713 L Z3. FMAX 4714 L M5 M9 Want to be: 4713 L Z3. FMAX 4714 L M2 4715 END PGM "program name" MM Without the " again Post says: ptoolend #End of tool path gcode1 = rbuf ( one, rc1 ) if gcode1 <> 1000, ptoolend_t ptoolend_t #End of tool path, toolchange gcode = zero coolant = zero if cc_pos <> zero, cc_pos = zero pbld, n, "L", sccomp, "M5 M9", e and peof #End of file for non-zero tool ptoolend_t comment pbld, n, "L","M2" pbld, n, "END PGM ", progname, *smetric That became a long thread. :/ If there is someone that wants to help don't get to involved with it. it's not that big of a deal but it would be a great help. Thanks Last edited by Longitud; 09-12-2007 at 05:42 PM. Reason: too many zeros + I missed program info |
|
#2
| |||
| |||
| 0 BEGIN PGM MM0 BLK FORM 0.1 Z X-5 Y-5 Z-10 BLK FORM 0.2 X+5 Y+5 Z+00 ; PROGRAM NAME - There I want it to be: 0 BEGIN PGM "program name" MM 1 BLK FORM 0.1 Z X-5 Y-5 Z-1 2 BLK FORM 0.2 X+5 Y+5 Z+0 ************************************** A. If you wish to output at separate line add "e" letter at end of line in post n, "BLK FORM", "0.1", "Z X-5 Y-5 Z-1" , e n, "BLK FORM", "0.2", "X+5 Y+5 Z+0" , e B. if you do not want output any line or simbol put "#" before like #pbld, n, "L", sccomp, "M5 M9", e |
|
#3
| |||
| |||
| Thanks! That was great info! New to post-writing, so that infos good! It helped my programs start but the end is still wrong. It's like Mastercam chooses to use "ptoolend #End of tool path" instead of "peof #End of file for non-zero tool". Or is this maybe a setting in mastercam I should change? Thanks |
|
#5
| |||
| |||
| Longitud If you will not find a solution by yourself send me a post and I will try to adjust it for you b0066746@yandex.ru |
| Sponsored Links |
|
#6
| |||
| |||
I've managed to sort most of the bugs out. Seems that its one left. With the coolant, but I'll try to figure it out. The problem with "peof #End of file for non-zero tool" was the ", e" Thanks again for that info! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bugs in 2005 | mdlmkr | Surfcam | 9 | 10-04-2005 11:45 AM |
| Visual Mill 4th axis bugs | metalchipper | Visual Mill | 1 | 07-07-2005 01:13 PM |