. .
Page 1 of 2 12 LastLast
  1. #1
    I have agreed to machine some components for someone, as a good gesture and think I have gone in over my head.
    I have received some MC files that this person purchased that they are Imperial where as my machine is set up as Metric. I initially thought I would be able to modify the code in an excel spread sheet or with some VBA routines. However looking at the file format it isn’t fully as i expected.
    Interesting Mach 3 reads the file in no problem, and changing the g20 to g21 it looks like when air machining it would machine the components- at a 40th scale. I have attached the header of one of the files, I don’t understand how it works without any xcoord data. I assume the N** is just line numbers.

    So the question is there some software that can do the conversion properly, feeds and speeds too, and visualise it better than in mach3. Or is it simpler for me just to make an imperial set up file in mach3. With the later I am nervous about using other people’s files - when I don’t understand the pedigree or file format.


    PROGRAM NAME - 001.3.NC)
    (POST - BC_3X_MILL 3-AXIS GENERIC FANUC)
    (DATE - THU. 07/23/2020)
    (TIME - 05:03PM)


    (FIRST MACHINE SETUP - MACHINE SETUP - 1)

    N01 G00 G17 G40 G49 G54 G80 G20 G90

    (FIRST CUT - FIRST TOOL)
    (MACHINE SETUP - 1-FEATURE 3 AXIS-PLANAR)
    (FEATURE 3 AXIS)

    (TOOL #4 0.5 0.500 DIA. 0.250 CRAD. 4 FL.1.125 CL)
    N02 T4 M06
    N03 G54
    N04 G00 G90 X-11.781 Y12.2657 S595 M03
    N05 G43 H4 D4 Z1. M08
    N06 Z0.2
    N07 Z-0.65
    N08 G01 Z-0.75 F20.
    N09 Y12.2888 Z-0.7734 F180.
    N10 Y12.3143 Z-0.7971
    N11 Y12.3399 Z-0.8184
    N12 Y12.3689 Z-0.8405
    N13 Y12.398 Z-0.8604
    N14 Y12.427 Z-0.8783
    N15 Y12.4561 Z-0.8943
    N16 Y12.484 Z-0.9082
    N17 Y12.5118 Z-0.9205
    N18 Y12.5397 Z-0.9316
    N19 Y12.5676 Z-0.9413
    N20 Y12.5968 Z-0.9502
    N21 Y12.626 Z-0.9577
    N22 Y12.6538 Z-0.9637
    N23 Y12.6817 Z-0.9685
    N24 Y12.7101 Z-0.9724
    N25 Y12.7386 Z-0.9751
    N26 Y12.7953 Z-0.9772
    N27 Y12.8239 Z-0.9766
    N28 Y12.8526 Z-0.975
    N29 Y12.8809 Z-0.9724
    N30 Y12.9092 Z-0.9685
    N31 Y12.9371 Z-0.9636
    N32 Y12.965 Z-0.9576
    N33 Y12.994 Z-0.9501
    N34 Y13.023 Z-0.9413
    N35 Y13.0507 Z-0.9316
    N36 Y13.0784 Z-0.9207
    N37 Y13.1061 Z-0.9084
    N38 Y13.1338 Z-0.8947

  2. #2
    Have a look at "Discriminator"

  3. #3
    Mach 3 uses generic Fanuc code that's why it works.

    The fact it only uses one X coordinate on line #4 makes no difference to mach3. Without seeing the rest of the code and knowing what it's cutting then difficult to say if good or bad code.

    Just changing G20 to G21 isn't enough for it to work correctly. G21 will make it the correct size but it won't change the feed rates so all the F codes will be wrong. For instance, F20 on line #8 will mean you'll travel at 20 mm/min instead of 20 inches a minute which was originally coded. So you'll need to multiply all the F numbers by 25.4 to get the correct mm/min feed rate.

    When using imperial G-code it's easier to set up an imperial profile in mach3 as this will avoid the feed rate issue.
    It's simple to do, just copy the profile you are using now, change the units to imperial, and change all the Steps per settings by multiplying them by 25.4 because now mach3 is working in STEPS PER INCH rather than STEPS PER MM
    So let's say you have the STEPS PER at 160, which is a common metric setting if using 10mm pitch screws with 1600 micro steps set on the drives with no ratios applied. This now needs to be 160 x 25.4 = 4064 STEPS PER INCH.

    The Velocity and acceleration are the opposite, now you divide by 25.4 because let's say you are set for 10,000 mmm/min this will become 10,000 Inch/Min.!!!

    Then restart Mach3 for the units to reset.
    Last edited by JAZZCNC; 02-05-2021 at 09:12 PM.
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

  4. #4
    Thanks Dean. I will investigate making a second imperial profile. Hopefully it’s a text file I can copy and edit.

    I think I will get a coupe of blocks of insulation foam to test out on. It looks like in goes in with a 3/8” cut at one point.. with a 1/2” cutter which seems scary to me even in wood. I prefer light cuts and fast feeds.

  5. #5
    Quote Originally Posted by Stressedwoodman View Post
    Thanks Dean. I will investigate making a second imperial profile. Hopefully it’s a text file I can copy and edit.
    Don't need to do that just use the mach3 loader and create a new profile, it will then give you the option to Clone an existing profile. Select your current MM profile and make the changes I mentioned in the previous post.

    Don't forget to restart Mach3 after you have changed the units from MM to Imperial and made the Steps per changes.
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

  6. #6
    Or use Discriminator to multiply your axis and feeds by 25.4 and do a save as, 30 secs tops. still got your origional file and not had to reconfigure your M/C

  7. #7
    I assume the native units in config is what I must toggle to inches. I assume I have to change all the limits and homing values to imperial too, as well as the parameters under motor tuning. In motor tuning I assume I factor the G’s parameters too - or is this dimensionless?

  8. #8
    Quote Originally Posted by johnsattuk View Post
    Or use Discriminator to multiply your axis and feeds by 25.4 and do a save as, 30 secs tops. still got your origional file and not had to reconfigure your M/C
    The short-sighted approach, in my opinion, literally takes 2mins to create a new profile. You are not reconfiguring the machine just making a few simple adjustments to a completely separate profile, his original config isn't affected at all.
    Then from that point on no messing around in a separate program is required, you just load the imperial profile when cutting imperial code.!! . . . Simplzzzz
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

  9. #9
    Quote Originally Posted by Stressedwoodman View Post
    I assume the native units in config is what I must toggle to inches. I assume I have to change all the limits and homing values to imperial too, as well as the parameters under motor tuning. In motor tuning I assume I factor the G’s parameters too - or is this dimensionless?
    Yes toggle native untis. If you have Softlimits set then yes they will need changing also.

    You can't change the G's it auto-adjusts with the Velocity and Acceleration changes.
    -use common sense, if you lack it, there is no software to help that.

    Email: [email protected]

    Web site: www.jazzcnc.co.uk

  10. #10
    Had a chance today to test the imperial set up.. used the MDI screen in Mach 3 to check things. The y and z axis measured accurate enough with the dial gauge. However the x axis however is moving twice the commanded distance. The x axis is the simplest one being 160 steps per mm as a 1:1 drive. Any suggestions on what’s going wrong i have checked what I have typed in to the parameters a number of times, and saved it.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. NEW MEMBER: Hello from Lincoln UK (Converting Warco WM14, need to learn G-Code or CAD CAM)
    By Jools in forum New Member Introductions
    Replies: 12
    Last Post: 29-11-2020, 03:09 PM
  2. FOR SALE: Oxford 0-25mn Metric/Imperial Digital Micrometer with SPC
    By Caster1 in forum Items For Sale
    Replies: 0
    Last Post: 03-01-2016, 08:52 AM
  3. Converting Imperial fractions to metric. Solution?
    By ChrisG in forum Machine Discussion
    Replies: 5
    Last Post: 03-02-2011, 07:11 PM
  4. Conversion Tables TO - FROM Imperial/Metric
    By Lee Roberts in forum Machine Discussion
    Replies: 0
    Last Post: 27-02-2008, 02:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •