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:

Search the Community

Showing results for tags 'g68'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Mastercam Forums
    • Industrial Forum
    • Post Processor Development Forum
    • Educational Forum
    • Woodworking Forum
    • Machining, Tools, Cutting & Probing
    • 3D Printing

Categories

  • Mastercam Demo Software
  • Files Referenced in Books and Videos
    • Instructor Files
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • Mastercam X2
    • STEM
  • Free Book Samples
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • STEM Curriculum
  • Mastercam eBooks (PDF)
    • Mastercam 2023
    • Mastercam 2022
    • Mastercam 2021
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
  • Mastercam Documentation
    • Brochures
    • Press Releases
    • Tips & Guides
  • Tools
  • Post Processors
    • Post Processor 'How To' Info
    • Mpmaster (all versions)
    • Mplmaster (all versions)
    • Application Specific Posts
    • Educational Post Processors
    • Post Processor Request Forms
    • Post Processor Feature Checklist Forms

Product Groups

  • Sitewide Subscription
  • Books
    • Older Versions (No Demo Software)
  • eBooks (PDF)
    • Mastercam 2023
    • Older Versions (No Demo Software)
  • Multimedia
    • Older Versions (No Demo Software)
  • Clearance
  • eCourses
  • eCourses

Categories

  • General Mastercam
    • Hasp / Sim License Articles
    • Nethasp
  • Lathe
  • Toolpaths
    • FBM Drill
    • FBM Mill
    • Dynamic Milling
    • Contour
    • Drill
    • Pocket
    • Face
    • 2D Highspeed
    • Engraving
    • Surface Rough
    • Surface Finish
    • Surface High Speed
    • Curve 5 axis
    • Drill 5 Axis
    • Swarf 5 Axis
    • Multisurface 5 Axis
    • Flow 5 Axis
    • Rotary 4 Axis
    • Port 5 axis
    • Advanced Multiaxis
    • Circle Paths
    • Circle 5 Axis
  • Wire EDM
  • Art
  • Post-Processing
  • Editors & DNC
  • Add-ons + Chooks & Nethooks
  • Windows, PC & Hardware Troubleshooting
    • Windows Issues
    • Videocards
    • Network & Filesharing
  • Multiaxis
  • eBooks

Blogs

  • Mastercam Training Solutions
  • eMastercam Community
  • Reseller Blog
  • Future of CNC Manufacturing Education
  • Mastercam Xtras
  • Latest News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Interests


Location


Mastercam SIM Number


AIM


MSN

Found 3 results

  1. Hi, I'm a newbie at using G68, so having some issues. i have a square casting that has a round boss on the bottom, i have to hold the round boss and machine the square. i want to use G68 to make sure I'm machining square but also need to set the G54 in the middle of the square casting not of the round boss. i have written what i thought would work but I'm having issues with where the controller stores the macro angular change. I have tried using a G54 for the datum and G55 for just the angle but they store in the same place and keep over writing. % O0 (SQUARE PILOT) (T25|6MM PROBE|H25) (T6|10 MAPAL|H6) (T10|16. AZSTAR BALL ENDMILL|H10) G21 G00 G17 G40 G49 G80 G90 (PROBE) T25 M06 (move from centre) G00 G90 G54 X-46. Y-46. G43 H25 Z20. Z10. G01 Z5. F1000. G01 Z-20. F1000. (corner probe) G00 G90 G65 P9023 A15. I50. J50. B1. S54. G00 Z50. G91 G28 Z0. G00 G90 G54 X37.5 Y37.5 G43 H25 Z20. G00 Z10. G01 Z5. F1000. (centre probe) G00 G90 G65 P9023 A16. X75. Y75. Z-20. S54. G00 Z50. M05 G91 G28 Z0. M01 G21 G0 G17 G40 G49 G80 G90 (10mm MAPAL VH) T6 M6 G0 G90 G54 X-39.105 Y-45.617 S4800 M3 G43 H6 Z50. T10 M8 (READ G68 R#189) G68 X0 Y0 R#189 Z5. G1 Z-7. F1000. X-40.214 Y-42.636 F1100.
  2. Hello All, We have a part with some undercutting and would like to tilt our spindle head to accomplish the machining. It is a Head-Table Machine. I know in Mastercam I can tilt the C-Plane and T-Plane where the tool is at the angle required, and program regular 3-Axis paths. The simulation looks good. I have attempted to run this with G68 on the Fanuc 15M; That is, tilting the machine work plane just as I have tilted it in Mastercam - to match them up. The path itself looks good, and retracts are along the angle specified, so I know the planes match. Positionally however, the tool is away from the part. I did all the trig in figuring out the new G54 after the spindle has been rotated, but something is still off. Perhaps this is a syntax error in the NC code? Our tilt Syntax in this situation G68 X0. Y0. Z0. I0. J1. K0. R15. It would be great if we could figure this out as we don't have a post for this machine. Thanks for any help!
  3. Hello guys. I am studying a way to configure the turning cycle G68 XZCDLMKFHSE Q. I managed to set almost the whole cycle, but the value of X and Z not yet. X and Z are the start profile. I know the generic pos mastercam calculates this, but I can not capture these values​​. Can someone give me a light on this. G0 X110. Z2.566 F.2 G68 X52.634 Z.097 C2. D.2 L.4 M.2 S10 E20 Q220 (Correctly) G68 X0. Z0. C2. D.2 L.4 M.2 S10 E20 Q220 (Wrongly) N10 X52.634 G1 Z.097 X55.297 Z-1.234 G3 X55.765 Z-1.8 R.8 G1 Z-7.372 Z-24.517 Z-32.604 Z-58.773 X63.639 Z-69.42 X97.127 Z-76.026 G3 X97.862 Z-76.32 R.8 G1 X99.723 Z-77.687 G3 X100. Z-78.137 R.8 G1 Z-104.726 N20 X110. G0 Z2.566 G0 X300. Z100. The values ​​that are coming X0 and Z0 should be X52.634 Z.097. I know that somehow these values ​​can be captured in this excerpt from post processor. But do not know how. formulate and test several already failed. prcc_setup$ #Lathe canned cycle setup #Capture values from rough sav_iprcc = c1_ipr_actv sav_feedcc = c1_fr_pos if orient$ = one|orient$ = two|orient$ = five|orient$ = 6, lccdirx = one else, lccdirx = m_one if orient$ = one|orient$ = four|orient$ = five|orient$ = 8, lccdirz = one else, lccdirz = m_one if lathecc > zero, cc_stop_fcc = one else, cc_stop_fcc = zero #G74/G75 if lathecc = three, [ lcc_xcst = vequ (copy_x) if dopeckcc = zero, [ depthcc = zero clearcc = zero ] if directcc > one, [ gcodecc = four grvspcc = stepcc grvdpcc = depthcc ] else, [ gcodecc = five grvspcc = depthcc grvdpcc = stepcc ] ] else, [ if n1_cc_pos, [ sav_xa = vequ(copy_x) #Shift for cutter comp. start position copy_x = copy_x + (lcc_move * lccdirx) copy_z = copy_z + (lcc_move * lccdirz) pcom_moveb compok = zero lcc_cc_pos = one ] else, lcc_cc_pos = zero ] sub_seq_typ$ = 0 prcc_call_st$ #Rough canned cycle start if tool_op$ <> 208, [ sav_subout = subout$ sav_omitsq = omitseq$ omitseq$ = one extprg$ = one subout$ = three ] prcc_call_end$ #Rough canned cycle end # Restore cc_1013 to the value it held prior to the rough # groove canned cycle. cc_1013 was changed in ptoolend. if tool_op$ = 208 | tool_op$ = 62, cc_1013$ = sav_cc_1013 if tool_op$ <> 208, [ omitseq$ = sav_omitsq #Close the ext file result = fclose (sbufname3$) #Open the ext file as a buffer #Use the size to determine the start and end sequence subout$ = sav_subout size3 = rbuf(three, zero) if omitseq$ = one, [ ng70s = n$ ng70e = n$ + seqinc$ ] else, [ if old_new_sw = zero, ng70s = n$ + seqinc$ else, ng70s = n$ + (seqinc$ * two) ng70e = ng70s + (seqinc$ * (size3 - one)) ] pwrite_g70 ] #Setup the stock and clearance directions g73x = vsub (lcc_xcst,lcc_xcend) if old_new_sw = zero, g73x = g73x else, g73x = g73x * dia_mult g73z = g73z xstckcc = xstckcc * dia_mult * lccdirx zstckcc = zstckcc * lccdirz clearcc = clearcc * lccdirz #Write the cycle definition sav_feed = feed sav_ipr = ipr_actv$ feed = sav_feedcc ipr_actv$ = sav_iprcc if lathecc = three, [ #Setup the previous position for inc. in G74/G75 cycle sav_xa = vequ(xabs) #Save the cycle end copy_x = vequ(lcc_xcst) #The cycle start raw pshft_map_xa pxyzcout ##The cycle start in machine terms ps_inc_calc #Recalculate incremental pe_inc_calc #Update previous at start xabs = vequ(sav_xa) #Restore the cycle end ps_inc_calc #Recalculate incremental ] if old_new_sw = zero, [ if gcodecc < three, pg71old if gcodecc = three, pg73old if gcodecc > three, pg74old ] else, [ if gcodecc < three, pg71new if gcodecc = three, pg73new if gcodecc > three, pg74new ] if lathecc = three, [ #Set the cycle end position at the original start copy_x = vequ(lcc_xcst) #The cycle start raw pshft_map_xa pxyzcout ##The cycle start in machine terms ps_inc_calc #Position at start pe_inc_calc #Update previous ps_inc_calc #Recalculate incremental ] feed = sav_feed ipr_actv$ = sav_ipr if tool_op$ <> 208, [ #Bug2 is off to prevent execution crashes with long strings bug2$ = zero #Write the cycle profile, sequence are written now rc3 = one while rc3 <= size3, [ #Write the lathe canned cycle profile string3 = rbuf (three, rc3) if rc3 = two, [ #Add the finish spindle speed to the first move speed = n1_ss pbld, *n$, *string3, e$ #*speed, ] else, [ if omitseq$ = one & rc3 = size3 + one, pbld, *n$, *string3, e$ else, pbld, n$, *string3, e$ ] ] #Close the buffer result = fclose (three) #Remove the ext file result = remove (sbufname3$) bug2$ = sav_bug2 ] pfcc_call$ #G70 recall output postblock if cc_stop_fcc = zero, [ pread_g70 if foundcc = zero, result = mprint(sfccerror) ] no_nc_out$ = zero cc_stop_fcc = zero pread_g70 #Read G70 recall buffer foundcc = zero size2 = rbuf (two, zero) wc2 = one while wc2 <= size2 & foundcc = zero, [ fcc_subid = rbuf (two, wc2) if fcc_subid = sub_op_id$, [ gcodecc = zero ng70s = fcc_ng70s ng70e = fcc_ng70e pbld, n$, *scclgcode, *ng70s, *ng70e, e$ foundcc = one ] ] pwrite_g70 #Write G70 recall buffer fcc_subid = sub_op_id$ fcc_ng70s = ng70s fcc_ng70e = ng70e fcc_subid = wbuf (two, rc2) I appreciate your cooperation in my learning.

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