MACRO FIX VS FUP VS ROUND

I often write code for Orthopaedic Taps and Screws. Quite a few of these have flutes running thru the threads as one would expect. As I set my macro for a family print of 6 or more sizes, one thing I need to consider is how to tackle the way my code handles roughing passes as diameters change and flute dimension moves in the Y axis. FIX, FUP, and ROUND allow me to handle this with relative ease.

FIX is not a rounding function, really. Any value after the decimal point is simply taken off. FIX[3.1] = 3. FIX[3.9] = 3. Regardless of the decimal point, it will be the same value.

FUP will round to the next whole number, away from 0. FUP[3.1] = 4. FUP[-3.1] = -4. This is very handy when coding rough passes. Take the total distance needed divided by your DOC and FUP will make sure your 1st pass isn't too heavy.

Round is exactly what we think it is. It is going to round to the next number, up or down. ROUND[3.1] = 3. ROUND[2.9] = 3. This can be dangerous if not handling it correctly. Some macros will end up taking heavier cuts than desired, unless adding more logic to prevent it.

No alt text provided for this image

This is what I am currently using in a Tap program. I have 6 Taps that have the Major ? and Radial Flute in Y change per size. Notice in #139 that I have a -1. at the end. If you do not do this, the 1st pass will be air. FUP calculates # of passes and rounds to next integer away from 0. So this will add an extra pass.

This is written for a Citizen M32 with a Mitsubishi control. It is set up with a radial Y axis. Feel free to ask any questions should you want to use it and get confused.

要查看或添加评论,请登录

Mike Sites的更多文章

  • Setting L20 T20s

    Setting L20 T20s

    Pending the age of your L20, and similar machines, getting the Z lengths can really get silly. There are so many things…

  • For those who HATE Knurling

    For those who HATE Knurling

    I recently chatted with some people that cut knurl in order to stay away from form knurling. The reasoning made me…

    7 条评论
  • G2/G3 HELICAL INTERPOLATION TIP

    G2/G3 HELICAL INTERPOLATION TIP

    I am currently working on a program that I am going to circular interpolate a .078? crosshole.

  • One of my personal favorite Macros

    One of my personal favorite Macros

    I think it is fair to say the hexalobe is a very common feature in the orthopaedic world of machining. Most OEMs have…

    1 条评论
  • Straight Knurl Macro

    Straight Knurl Macro

    When I look at a low volume job with a straight Knurl, I will often not waste a ton of time getting my knurling tool in…

    5 条评论
  • Citizen G160 - What is it, and why would I ever use it?

    Citizen G160 - What is it, and why would I ever use it?

    Most people that know me have a good understanding that I have absolutely no fear when I walk up to a swiss lathe…

    6 条评论
  • What does my drill really cost?

    What does my drill really cost?

    Anyone that knows me will tell you that I like using good tools. Most cringe at the initial cost of a good Mitsubishi…

    4 条评论
  • Programmer vs Machinist vs Operator

    Programmer vs Machinist vs Operator

    When people, outside of machining, get involved in the machining industry, there is a very distinct line that…

    3 条评论

社区洞察

其他会员也浏览了