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:

Generic 5X post question


gcode
 Share

Recommended Posts

I'm working on a 5x axis post starting with a stock Generic Fanuc 5X post.

I can't get the post to output unclamp and clamp

on rotary moves.

I have set the use_clamp switch to 1 but I get no output.

All the clamp and unclamp output is controled

by the IF statment

 

if use_clamp & not(opcode$ = three | cuttype <> zero),

 

If I #out this statement, I get the output I want,

but it happens whether I need it or not.

 

All my rotatary motion is positional, and I'm thinking that does not satisfy this IF statment.

Can someone explain what this IF statement means

and what is required to satisfy it??

 

TIA

Link to comment
Share on other sites

Hey Tom here is what I got from a file I did and all the lock code seem to work correct.

 

code:

:0001 ( PROGRAM -  T-4 )

N100 ( DATE - 03-02-07 TIME - 09:34 )

N102 G20

N104 G0 G17 G40 G80 G90 G94 G98

N106 G0 G28 G91 Z0.

N108 G0 G28 X0. Y0.

N110 ( 1 INCH FLAT ENDMILL TOOL - 243 DIA. OFF. - 0 LEN. - 0 DIA. - 1. )

N112 M11

N114 M79

N116 T243 M6

N118 G0 G54 G90 X-4.1 Y-2.9999 C0. B0. S534 M3

N120 M10

N122 M78

N124 G43 H0 Z3.1

N126 G1 Z3. F6.42

N128 X3.6

N130 G3 Y-2.2499 J.375

N132 G1 X-3.6

N134 G2 Y-1.4999 J.375

N136 G1 X3.6

N138 G3 Y-.75 J.3749

N140 G1 X-3.6

N142 G2 Y0. J.375

N144 G1 X3.6

N146 G3 Y.75 J.375

N148 G1 X-3.6

N150 G2 Y1.4999 J.375

N152 G1 X3.6

N154 G3 Y2.2499 J.375

N156 G1 X-3.6

N158 G2 Y2.9999 J.375

N160 G1 X4.1

N162 Z3.1

N164 M11

N166 G0 B180.

N168 M10

N170 X-4.1 Y-2.9999

N172 G1 Z3.

N174 X3.6

N176 G3 Y-2.2499 J.375

N178 G1 X-3.6

N180 G2 Y-1.4999 J.375

N182 G1 X3.6

N184 G3 Y-.75 J.3749

N186 G1 X-3.6

N188 G2 Y0. J.375

N190 G1 X3.6

N192 G3 Y.75 J.375

N194 G1 X-3.6

N196 G2 Y1.4999 J.375

N198 G1 X3.6

N200 G3 Y2.2499 J.375

N202 G1 X-3.6

N204 G2 Y2.9999 J.375

N206 G1 X4.1

N208 Z3.1

N210 M11

N212 G0 B270.

N214 M10

N216 X-2.9999 Y4.1

N218 G1 Z3.

N220 Y-3.6

N222 G3 X-2.2499 I.375

N224 G1 Y3.6

N226 G2 X-1.4999 I.375

N228 G1 Y-3.6

N230 G3 X-.75 I.3749

N232 G1 Y3.6

N234 G2 X0. I.375

N236 G1 Y-3.6

N238 G3 X.75 I.375

N240 G1 Y3.6

N242 G2 X1.4999 I.375

N244 G1 Y-3.6

N246 G3 X2.2499 I.375

N248 G1 Y3.6

N250 G2 X2.9999 I.375

N252 G1 Y-4.1

N254 Z3.1

N256 M79

N258 G0 C90.

N260 M78

N262 X-2.9999 Y4.1

N264 G1 Z3.

N266 Y-3.6

N268 G3 X-2.2499 I.375

N270 G1 Y3.6

N272 G2 X-1.4999 I.375

N274 G1 Y-3.6

N276 G3 X-.75 I.3749

N278 G1 Y3.6

N280 G2 X0. I.375

N282 G1 Y-3.6

N284 G3 X.75 I.375

N286 G1 Y3.6

N288 G2 X1.4999 I.375

N290 G1 Y-3.6

N292 G3 X2.2499 I.375

N294 G1 Y3.6

N296 G2 X2.9999 I.375

N298 G1 Y-4.1

N300 Z3.1

N302 M5

N304 G0 G28 G91 Z0.

N306 G28 C0. B0.

N308 M01

Maybe try a virgin post and see maybe by accident something did not get changed wrong.

 

HTH

Link to comment
Share on other sites

.

 

It looks like it's using the "use clamp" without opcode 3. Check and see which machining types are included in opcode 3. I think it's all milling ops but I don't remember offhand. It should be working right if you have all your switches set. I haven't used clamp switches with the latest post.

 

.

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