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:

Micro Programming In post


Recommended Posts

MP supports a lot of options. Macros? Sure, depending on what you want to do.

"Micro Machining" using small decimal values? Sure, it can support that also. You can support up to 9.9 digits (9 decimals before, and 9 decimals after, the decimal point.) But the Post must be configured so the XYZ, Feed, IJK (circle center) values (etc.) are modified for more precision output.

Plus, you must go in the Mastercam Configuration File (for Mastercam itself), and enable the "System Tolerance", and set the tolerance to 0.000000001.

You will (typically) get the most precision on the machine using Metric Mode. Doing this allows you to support Nanometer Precision output.

Now, the issue you will also (typically) face, is how does Windows store the number as a floating point unit, and how Windows operates on very small numeric values, contributes to issues with Rounding in the output. You can utilize 'round_opt$' to influence "what internal routine does Windows use to retrieve and round numbers".

  • Like 4
Link to comment
Share on other sites
  • 1 month later...
I m trying to generate post in this output format.
Loop format micro programming

G54 G21 G49 G0 G17 G40 G49 G80 G90
G91 G30 Z0.
T229 M6
G0 G90 G54 X-66.139 Y-49.768 S3500 M3
G5.1 Q1 P3 (ENABLE FINISHING)
G43 H229 Z20.
#100=10. (TOP OF STOCK)
#101=-2. (FINAL DEPTH)
#102=-0.5 (DEPTH OF CUT)
N100
G1 G90 Z#100 F3.6
G1 G90 X-66.139241 Y-49.767932
#100=#100+#102
X66.139
G5.1 Q0 (DISABLE FINISHING)
N200 #100=#100+#102
N210 IF[#100GE#101]GOTO100
N999G90G0Z100
M5
G91 G0 G28 Z0.
G28 Y0.
M30
Link to comment
Share on other sites

You are doing a combination of "Micro" and "Macro" Programming. Which one do you really want? I suspect what you're after is "Macro Programming", not "Micro Programming".

In your sample, you're only cutting 241 millionths of an inch of stroke in X and 68 millionths of an inch in Y. Is that what you want? Or were you just giving us an example?

Is your machine's least-increment-input set to 1 millionth of an inch?

Is your Geometry in Mastercam defined (with system tolerance properly set) to 0.1 millionth of an inch (7 decimal places. 0.0000001)?

Or where you just showing the "structure" of what you want the code to look like? The example is a little confusing.

Could this be coded inside the Mastercam Post, so you can take a toolpath "input" and turn it into this "output"? The answer is yes. But you're going to need to do a bunch of coding, there is nothing in the Post to do this "out of the box".

You may be better off just coding this "by hand" as a Manual Entry Toolpath. Unless you do this day-in, day-out with Macros, and it is important to you and/or the operator to be able to change the variables at the machine.

 

 

 

  • Like 1
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...