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:

Rotary Axis Control posts ugly code


Miediev
 Share

Recommended Posts

I'm trying to mill a pocket using a lathe c-axis using 2d contour with rotary axis control. I've selected 3 axis; rotate about Z axis; and everything works as expected, except the gcode posted breaks each move into dozens of seemingly random incremental moves. The code works but it's ugly, hard to understand what you're looking at, and inflates the filesize to the point where I'm going to have to break it up just to fit it into the control. Is there any way to shorten the output besides going in and manually deleting all the intermediary moves? Here's an example of what I'm getting. This is with using the generic fanuc 4x mill post:

N100 G20
N102 G0 G17 G40 G49 G80 G90
N104 T1 M6
N106 G0 G90 G54 X5.7717 Y0. C4.97 S1000 M3
N108 G43 H1 Z2.25
N110 Z2.2
N112 G1 Z2. F10.
N114 X5.8127 C4.918
N116 X5.8531 C4.833
N118 X5.8927 C4.718
N120 X5.9312 C4.573
N122 X5.9684 C4.4
N124 X6.0041 C4.2
N126 X6.038 C3.975
N128 X6.0699 C3.727
N130 X6.0997 C3.457
N132 X6.1272 C3.168
N134 X6.1522 C2.861
N136 X6.1746 C2.538
N138 X6.1943 C2.202
N140 X6.2111 C1.853
N142 X6.225 C1.494
N144 X6.2359 C1.128
N146 X6.2437 C.755
N148 X6.2484 C.379
N150 X6.25 C0.
N152 C-1.333
N154 C-2.666
N156 C-3.999
N158 C-5.332
N160 C-6.665
N162 C-7.998
N164 C-9.331
N166 C-10.664
N168 C-11.998
N170 C-13.331
N172 C-14.664
N174 C-15.997
N176 C-17.33
N178 C-18.663
N180 X6.0967 C-19.15
N182 X5.9456 C-19.657
N184 X5.7967 C-20.183
N186 X5.65 C-20.731
N188 X5.5054 C-21.302
N190 X5.3631 C-21.896
N192 X5.223 C-22.515
N194 X5.0852 C-23.16
N196 X4.9496 C-23.833
N198 X4.8163 C-24.536
N200 X4.6853 C-25.269
N202 X4.5566 C-26.035
N204 X4.4302 C-26.836
N206 X4.3399 C-27.442
N208 X4.25 C-28.072
N210 C-26.371
N212 C-24.67
N214 C-22.968
N216 C-21.267
N218 C-19.566
N220 C-17.864
N222 C-16.163
N224 C-14.462
N226 C-12.76
N228 C-11.059
N230 C-9.357
N232 C-7.656
N234 C-5.955
N236 C-4.253
N238 C-2.552
N240 C-.851
N242 C.851
N244 C2.552
N246 C4.253
N248 C5.955
N250 C7.656
N252 C9.357
N254 C11.059
N256 C12.76
N258 C14.462
N260 C16.163
N262 C17.864
N264 C19.566
N266 C21.267
N268 C22.968
N270 C24.67
N272 C26.371
N274 C28.072
N276 X4.3714 C27.227
N278 X4.4952 C26.418
N280 X4.6212 C25.644
N282 X4.7496 C24.903
N284 X4.8802 C24.194
N286 X5.013 C23.513
N288 X5.1481 C22.861
N290 X5.2853 C22.235
N292 X5.4248 C21.634
N294 X5.5665 C21.057
N296 X5.7103 C20.502
N298 X5.8562 C19.969
N300 X6.0044 C19.457
N302 X6.127 C19.052
N304 X6.25 C18.663
N306 C17.33
N308 C15.997
N310 C14.664
N312 C13.331
N314 C11.998
N316 C10.664
N318 C9.331
N320 C7.998
N322 C6.665
N324 C5.332
N326 C3.999
N328 C2.666
N330 C1.333
N332 C0.
N334 X6.2484 C-.379
N336 X6.2437 C-.755
N338 X6.2359 C-1.128
N340 X6.225 C-1.494
N342 X6.2111 C-1.853
N344 X6.1943 C-2.202
N346 X6.1746 C-2.538
N348 X6.1522 C-2.861
N350 X6.1272 C-3.168
N352 X6.0997 C-3.457
N354 X6.0699 C-3.727
N356 X6.038 C-3.975
N358 X6.0041 C-4.2
N360 X5.9684 C-4.4
N362 X5.9312 C-4.573
N364 X5.8927 C-4.718
N366 X5.8531 C-4.833
N368 X5.8127 C-4.918
N370 X5.7717 C-4.97
N372 G0 Z2.25
N374 M5
N376 G91 G28 Z0.

 

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