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