new guy here


Page 1 of 2 12 LastLast
Results 1 to 20 of 32

Thread: new guy here

  1. #1
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default new guy here

    I got one of those cheap chinese table top cnc machines, its called a "1610 cnc" the workspace is only 6x4 inch but I wasnted to give it a try to add little details to some of the tables I build. the program it came with is called GRBLCONTROL, the only inputs it allows is [.nc, .ncc, .tap and .txt} everything ive found so far on the internet to use is all gcode or something else and doesnt work. is there a program I can use to convert gcode to .nc or to make my own .nc or better yet is there a better program than GRBL i can link this cnc to and print gcode? thanks for any help.



  2. #2
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    .nc, .ncc, .tap, and maybe .txt are all G-code files.

    All of those are plain text, and they all look something like this, and the name of this particular file is 1001.nc, but it could have a .tap, or .ncc extension and it would be the same.

    (1001)
    (T1 D=0.25 CR=0 - ZMIN=-0.2 - flat end mill)
    (2D Contour1)
    N4650 M8
    N4655 G0 X3.2075 Y-0.9815
    N4660 G1 Z0.2 F8
    N4665 Z0.0394
    N4670 Z-0.175
    N4675 G18 G3 X3.1825 Z-0.2 I-0.025 K0
    N4680 G1 X3.1575 F24
    N4685 G17 G3 X3.1325 Y-1.0065 I0 J-0.025
    N4690 G2 X3.0768 Y-1.1105 I-0.125 J0
    N4695 G1 X1.5768 Y-2.1105
    N4700 G2 X1.4382 I-0.0693 J0.104
    N4705 G1 X-0.0618 Y-1.1105
    N4710 G2 Y-0.9025 I0.0693 J0.104
    N4715 G1 X1.4382 Y0.0975
    N4720 G2 X1.5768 I0.0693 J-0.104
    N4725 G1 X3.0768 Y-0.9025
    N4730 G2 X3.1325 Y-1.0065 I-0.0693 J-0.104
    N4735 G3 X3.1575 Y-1.0315 I0.025 J0
    N4740 G1 X3.1825
    N4745 G18 G2 X3.2075 Z-0.175 I0 K0.025
    N4750 G0 Z0.2
    N4755 G17
    N4760 M9
    N4765 M2

    Jim Dawson
    Sandy, Oregon, USA


  3. #3
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    yeah one of the things i found online was just to change the .gcode to a .txt and it will work, it will input the code but when i press "send" all i get is errors.



  4. #4
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    The G code has to be formatted correctly for your machine. The CAM software needs to format the G code output specifically for the GRBL controller, this is called Post Processing. Normally during the post processing and saving the file, it will allow you to set the file extension. The G code example I posted above probably would not run on your machine, I forget what controller it was post processed for..

    Jim Dawson
    Sandy, Oregon, USA


  5. #5
    Member
    Join Date
    May 2005
    Location
    USA
    Posts
    3920
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    How exacy is GRBL getting these files? I believe GRBL can be set up to read from SD cards but it is also common to use a GCode sender program on a PC!

    The GCode sender program communicates with the GRBL controller over a USB/ serial connection. You need to use a proper "sender" program to control the data transfer to the GRBL controller. Basically the sender program has to prevent data over run to the GRBL controller.

    If you look up the GRBL web site you can find all sorts of helpful information there. GRBL is extremely popular and frankly is part of why we hAve low cost CNC solutions today.



  6. #6
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    GRBL is an app on my computer and my computer is connected to the cnc via usb cable. so once GRBL is open it shows im connected to cnc I can then open a file which to this program it only searches for .nc .ncc .tap and .txt then click send it it runs but so far the only thing its ran is 1 of 3 test files it came with.



  7. #7
    Member
    Join Date
    May 2005
    Location
    USA
    Posts
    3920
    Downloads
    0
    Uploads
    0

    Default

    I urge you to spend sometime on the GRBL web sites to gain a better understanding of how GRBL works.

    Quote Originally Posted by AlwaysBanned View Post
    GRBL is an app on my computer and my computer is connected to the cnc via usb cable.
    Technically GRBL is software embedded on the little computer (the CNC controller) you attach to with the USB cable. The application you run on your PC is likely one of dozens (likely dozens at this time) of GCode sending apps that work with the GRBL CNC controller. The last time i was on the GRBL site there where links to 3 or 4 of these programs. You can always try another program to send the data over.

    so once GRBL is open it shows im connected to cnc I can then open a file which to this program it only searches for .nc .ncc .tap and .txt then click send it it runs but so far the only thing its ran is 1 of 3 test files it came with.
    Well not running test files is not good. Are you getting any diagnostic information back?

    Not to throw another stick in the sprocket but many bits of software have had issues with Chinese made Arduino boards that use a different serial chip than the standard one used be the Arduino foundation. This chip is known to cause communications issues that are often solved by the use of a genuine Arduino board. I don't have enough information to even say this is a possibility.

    Beyond that the only other thing i can suggest is to make sure all software is up to date on the PC. Oh and download the Arduino development tools.



  8. #8
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    By "1 of 3" I miss worded and mean im choosing 1 out of the 3 to run .



  9. #9
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    Quote Originally Posted by AlwaysBanned View Post
    By "1 of 3" I miss worded and mean im choosing 1 out of the 3 to run .

    OK, so your system is working. Other than the 3 sample files, you just don't have any .nc or .tap files to run. Is that correct?

    Jim Dawson
    Sandy, Oregon, USA


  10. #10
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    yes, my plan was to use "inkspace" and using ordinary jpg an turn them into gcode which ive tried but it does not work. so then i just tried searhing the web for some .nc but cant find any, all are gcode or etc..



  11. #11
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    Quote Originally Posted by AlwaysBanned View Post
    yes, my plan was to use "inkspace" and using ordinary jpg an turn them into gcode which ive tried but it does not work. so then i just tried searhing the web for some .nc but cant find any, all are gcode or etc..
    .nc, .tap, and .ncc files are G code files. There is no way to directly convert a .jpg into G code. It is possible to convert a jpg into a dxf or some other vector format and then convert that into G code. There is software available to do that. I'm not sure what ''inkspace'' is, do you mean inkscape?

    The normal way of creating G code is to start with a CAD program to make a drawing, then run that drawing file through a CAM program, which will create the needed tool paths, then post process that file to create the G code that will run on your machine.

    Jim Dawson
    Sandy, Oregon, USA


  12. #12
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    Quote Originally Posted by AlwaysBanned View Post
    GRBL is an app on my computer and my computer is connected to the cnc via usb cable. so once GRBL is open it shows im connected to cnc I can then open a file which to this program it only searches for .nc .ncc .tap and .txt then click send it it runs but so far the only thing its ran is 1 of 3 test files it came with.
    Post one of the test files

    Mactec54


  13. #13
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    yes i meant inkscape sorry,

    So, this one is a test one and works just fine;
    G90

    G1Z3F200
    M03 S1000
    G0 X2.4349 Y10.0865
    G1Z-0.2

    G02 X3.0232 Y9.8437 I0. J-0.8343
    G02 X3.2659 Y9.26 I-0.5806 J-0.5838
    G02 X3.023 Y8.6756 I-0.8243 J-0.
    G02 X2.4349 Y8.4329 I-0.5881 J0.5911
    G02 X1.847 Y8.6755 I0. J0.8334
    G02 X1.6041 Y9.26 I0.5816 J0.5845
    G02 X1.8468 Y9.8438 I0.8235 J-0.
    G02 X2.4349 Y10.0865 I0.5881 J-0.5912
    G1 X2.4349 Y10.0865

    G1Z3
    G0 X4.6998 Y9.7942
    G1Z-0.2

    G1 X6.94 Y9.7942
    G02 X8.4764 Y9.5923 I0. J-5.9451
    G02 X9.3506 Y9.1502 I-0.6167 J-2.305
    G02 X9.9191 Y8.395 I-1.1924 J-1.4891
    G02 X10.1542 Y7.22 I-2.8192 J-1.175
    G02 X9.9404 Y5.9643 I-3.7938 J0.
    G02 X9.2966 Y5.0616 I-1.8793 J0.6591
    G02 X8.3687 Y4.5891 I-1.643 J2.0797
    G02 X6.8773 Y4.3841 I-1.4914 J5.3225
    G1 X6.0881 Y4.3841
    G1 X6.0881 Y1.089
    G1 X4.6998 Y1.089
    G1 X4.6998 Y9.7942
    G1 X4.6998 Y9.7942


    this is a gcode I found on internet and changed file extension to .txt so grbl would open it and all i got were errors, im now thinking it has something to do with the options my mini cnc has...
    G90
    G21
    G49
    G00 X 0.0000 Y 0.0000 Z 25.0000
    G00 A0.000
    G00 Y0.0000
    M03
    G00 X -0.2140 Y -21.9110 Z 25.0000
    G01 X -0.2140 Y -21.9110 Z 1.0000 F 200.0
    G01 X -0.1903 Y -21.9110 Z 1.0000 F 160.0
    G01 X 0.2140 Y -21.9110 Z 1.0000
    G01 X 0.2375 Y -21.8875 Z 1.0000
    G01 X 0.3875 Y -21.8875 Z 1.0000
    G01 X 0.3991 Y -21.8759 Z 1.0000
    G01 X -0.3991 Y -21.8759 Z 1.0000
    G01 X -0.4125 Y -21.8625 Z 1.0000
    G01 X -0.4875 Y -21.8625 Z 1.0000
    G01 X -0.5121 Y -21.8379 Z 1.0000
    G01 X 0.5121 Y -21.8379 Z 1.0000
    G01 X 0.5875 Y -21.8375 Z 1.0000
    G01 X 0.6125 Y -21.8125 Z 1.0000
    G01 X 0.6625 Y -21.8125 Z 1.0000
    G01 X 0.6752 Y -21.7998 Z 1.0000
    G01 X -0.6752 Y -21.7998 Z 1.0000
    G01 X -0.6875 Y -21.7875 Z 1.0000
    G01 X -0.7125 Y -21.7875 Z 1.0000
    G01 X -0.7375 Y -21.7625 Z 1.0000
    G01 X -0.7883 Y -21.7617 Z 1.0000
    G01 X 0.7883 Y -21.7617 Z 1.0000
    G01 X 0.8125 Y -21.7375 Z 1.0000
    G01 X 0.8375 Y -21.7375 Z 1.0000
    G01 X 0.8514 Y -21.7236 Z 1.0000
    G01 X -0.8514 Y -21.7236 Z 1.0000
    G01 X -0.8625 Y -21.7125 Z 1.0000
    G01 X -0.8875 Y -21.7125 Z 1.0000
    G01 X -0.9125 Y -21.6875 Z 1.0000
    G01 X -0.9394 Y -21.6856 Z 1.0000
    G01 X 0.9394 Y -21.6856 Z 1.0000
    G01 X 0.9625 Y -21.6625 Z 1.0000
    G01 X 0.9875 Y -21.6625 Z 1.0000
    G01 X 1.0025 Y -21.6475 Z 1.0000
    G01 X -1.0025 Y -21.6475 Z 1.0000
    G01 X -1.0375 Y -21.6125 Z 1.0000
    G01 X -1.0625 Y -21.6125 Z 1.0000
    G01 X -1.0656 Y -21.6094 Z 1.0000
    G01 X 1.0656 Y -21.6094 Z 1.0000
    G01 X 1.1037 Y -21.5713 Z 1.0000
    G01 X -1.1037 Y -21.5713 Z 1.0000
    G01 X -1.1125 Y -21.5625 Z 1.0000
    G01 X -1.1375 Y -21.5625 Z 1.0000
    G01 X -1.1667 Y -21.5333 Z 1.0000
    G01 X 1.1667 Y -21.5333 Z 1.0000
    G01 X 1.2048 Y -21.4952 Z 1.0000
    G01 X -1.2048 Y -21.4952 Z 1.0000
    G01 X -1.2125 Y -21.4875 Z 1.0000
    G01 X -1.2375 Y -21.4875 Z 1.0000
    G01 X -1.2679 Y -21.4571 Z 1.0000
    G01 X 1.2679 Y -21.4571 Z 1.0000
    G01 X 1.3060 Y -21.4190 Z 1.0000
    G01 X -1.3060 Y -21.4190 Z 1.0000
    G01 X -1.3440 Y -21.3810 Z 1.0000
    G01 X 1.3440 Y -21.3810 Z 1.0000
    G01 X 1.3821 Y -21.3429 Z 1.0000
    G01 X -1.3572 Y -21.3429 Z 1.0000
    G01 X -1.3821 Y -21.3429 Z 0.8586
    G01 X -1.4202 Y -21.3048 Z 0.5694
    G01 X -1.3704 Y -21.3048 Z 0.9479
    G01 X -1.3454 Y -21.3048 Z 1.0000
    G01 X 1.4202 Y -21.3048 Z 1.0000
    G01 X 1.4583 Y -21.2667 Z 1.0000
    G01 X -1.3586 Y -21.2667 Z 1.0000
    G01 X -1.3835 Y -21.2667 Z 0.8482
    G01 X -1.4583 Y -21.2667 Z 0.2801
    G01 X -1.4963 Y -21.2287 Z -0.0091
    G01 X -1.3717 Y -21.2287 Z 0.9381
    G01 X -1.3467 Y -21.2287 Z 1.0000
    G01 X 1.4963 Y -21.2287 Z 1.0000
    G01 X 1.5125 Y -21.2125 Z 1.0000
    G01 X 1.5125 Y -21.1906 Z 1.0000
    G01 X -1.3389 Y -21.1906 Z 1.0000
    G01 X -1.3637 Y -21.1906 Z 0.9983
    G01 X -1.5125 Y -21.1906 Z -0.1318
    G01 X -1.5125 Y -21.1875 Z -0.1318
    G01 X -1.5475 Y -21.1525 Z -0.3976
    G01 X -1.3728 Y -21.1525 Z 0.9295
    G01 X -1.3478 Y -21.1525 Z 1.0000
    G01 X 1.5475 Y -21.1525 Z 1.0000
    G01 X 1.5856 Y -21.1144 Z 1.0000
    G01 X -1.3608 Y -21.1144 Z 1.0000
    G01 X -1.4358 Y -21.1144 Z 0.4512
    G01 X -1.5856 Y -21.1144 Z -0.6868
    G01 X -1.5875 Y -21.1125 Z -0.7014
    G01 X -1.5875 Y -21.0875 Z -0.7014
    G01 X -1.5986 Y -21.0764 Z -0.7861
    G01 X -1.3738 Y -21.0764 Z 0.9215
    G01 X -1.3489 Y -21.0764 Z 1.0000
    G01 X 1.5986 Y -21.0764 Z 1.0000
    G01 X 1.6367 Y -21.0383 Z 1.0000
    G01 X -1.3619 Y -21.0383 Z 1.0000
    G01 X -1.6367 Y -21.0383 Z -1.0753
    G01 X -1.6375 Y -21.0375 Z -1.0812
    G01 X -1.6375 Y -21.0125 Z -1.0812
    G01 X -1.6498 Y -21.0002 Z -1.1747
    G01 X -1.3748 Y -21.0002 Z 0.9139
    G01 X -1.3498 Y -21.0002 Z 1.0000
    G01 X 1.6498 Y -21.0002 Z 1.0000
    G01 X 1.6875 Y -20.9621 Z 1.0000
    G01 X -1.3625 Y -20.9621 Z 1.0000
    G01 X -1.6875 Y -20.9621 Z -1.4610
    G01 X -1.6875 Y -20.9375 Z -1.4610
    G01 X -1.7025 Y -20.9225 Z -1.5747
    G01 X -1.3794 Y -20.9225 Z 0.8794
    G01 X -1.3545 Y -20.9225 Z 1.0000
    G01 X 1.7025 Y -20.9225 Z 1.0000
    G01 X 1.7375 Y -20.8875 Z 1.0000
    G01 X 1.7375 Y -20.8844 Z 1.0000
    G01 X -1.3404 Y -20.8844 Z 1.0000
    G01 X -1.3652 Y -20.8844 Z 0.9873
    G01 X -1.7375 Y -20.8844 Z -1.8408
    G01 X -1.7375 Y -20.8625 Z -1.8408
    G01 X -1.7536 Y -20.8464 Z -1.9633
    G01 X -1.3805 Y -20.8464 Z 0.8708
    G01 X -1.3556 Y -20.8464 Z 1.0000
    G01 X 1.7536 Y -20.8464 Z 1.0000
    G01 X 1.7625 Y -20.8375 Z 1.0000
    G01 X 1.7625 Y -20.8125 Z 1.0000
    G01 X 1.7667 Y -20.8083 Z 1.0000
    G01 X -1.3437 Y -20.8083 Z 1.0000
    G01 X -1.3686 Y -20.8083 Z 0.9615
    G01 X -1.7667 Y -20.8083 Z -2.0626
    G01 X -1.7875 Y -20.7875 Z -2.2206
    G01 X -1.7875 Y -20.7702 Z -2.2206
    G01 X -1.3875 Y -20.7702 Z 0.8177
    G01 X -1.3625 Y -20.7702 Z 1.0000
    G01 X 1.7875 Y -20.7702 Z 1.0000
    G01 X 1.7875 Y -20.7625 Z 1.0000
    G01 X 1.8125 Y -20.7375 Z 0.8177
    G01 X 1.8125 Y -20.7321 Z 0.8177
    G01 X 1.7875 Y -20.7321 Z 1.0000
    G01 X -1.3625 Y -20.7321 Z 1.0000
    G01 X -1.8125 Y -20.7321 Z -2.4104
    G01 X -1.8125 Y -20.7125 Z -2.4104

    its actually waaayyy longer so i only included about 10% of it.



  14. #14
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    also this is what the code looks like from inkscape, just a simply 2D cartoon.

    G21 (metric ftw)
    G90 (absolute mode)
    G92 X0.00 Y0.00 Z0.00 (you are here)

    M300 S30 (pen down)
    G4 P150 (wait 150ms)
    M300 S50 (pen up)
    G4 P150 (wait 150ms)
    M18 (disengage drives)
    M01 (Was registration test successful?)
    M17 (engage drives if YES, and continue)

    (Polyline consisting of 7 segments.)
    G1 X-86.96 Y94.09 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-88.88 Y93.75 F3500.00
    G1 X-90.79 Y92.89 F3500.00
    G1 X-93.61 Y91.61 F3500.00
    G1 X-95.67 Y90.60 F3500.00
    G1 X-96.60 Y88.70 F3500.00
    G1 X-96.99 Y85.54 F3500.00
    G1 X-96.76 Y84.16 F3500.00
    G1 X-96.25 Y82.99 F3500.00
    G1 X-95.64 Y81.59 F3500.00
    G1 X-95.20 Y80.29 F3500.00
    G1 X-94.75 Y79.59 F3500.00
    G1 X-94.27 Y79.33 F3500.00
    G1 X-93.72 Y79.49 F3500.00
    G1 X-93.06 Y80.08 F3500.00
    G1 X-92.35 Y80.88 F3500.00
    G1 X-92.35 Y80.23 F3500.00
    G1 X-90.11 Y69.17 F3500.00
    G1 X-89.19 Y66.77 F3500.00
    G1 X-88.06 Y64.73 F3500.00
    G1 X-86.80 Y63.15 F3500.00
    G1 X-85.50 Y62.17 F3500.00
    G1 X-83.70 Y61.77 F3500.00
    G1 X-80.57 Y62.18 F3500.00
    G1 X-78.38 Y62.50 F3500.00
    G1 X-76.37 Y62.25 F3500.00
    G1 X-72.80 Y61.79 F3500.00
    G1 X-70.99 Y62.14 F3500.00
    G1 X-69.54 Y63.25 F3500.00
    G1 X-68.18 Y64.98 F3500.00
    G1 X-66.99 Y67.20 F3500.00
    G1 X-66.06 Y69.79 F3500.00
    G1 X-64.76 Y75.40 F3500.00
    G1 X-64.00 Y79.88 F3500.00
    G1 X-64.00 Y80.76 F3500.00
    G1 X-63.27 Y80.04 F3500.00
    G1 X-62.44 Y79.43 F3500.00
    G1 X-61.79 Y79.42 F3500.00
    G1 X-61.26 Y80.06 F3500.00
    G1 X-60.81 Y81.35 F3500.00
    G1 X-60.11 Y82.99 F3500.00
    G1 X-59.60 Y84.07 F3500.00
    G1 X-59.38 Y85.46 F3500.00
    G1 X-59.84 Y88.80 F3500.00
    G1 X-60.67 Y90.59 F3500.00
    G1 X-62.77 Y91.58 F3500.00
    G1 X-65.24 Y92.74 F3500.00
    G1 X-67.44 Y93.77 F3500.00
    G1 X-70.02 Y93.99 F3500.00
    G1 X-78.17 Y93.90 F3500.00
    G1 X-82.79 Y93.90 F3500.00
    G1 X-85.61 Y94.05 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-78.01 Y93.66 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-75.60 Y93.55 F3500.00
    G1 X-72.31 Y93.04 F3500.00
    G1 X-71.44 Y92.77 F3500.00
    G1 X-70.19 Y92.04 F3500.00
    G1 X-68.12 Y89.81 F3500.00
    G1 X-67.01 Y87.18 F3500.00
    G1 X-65.61 Y83.61 F3500.00
    G1 X-64.79 Y81.76 F3500.00
    G1 X-64.45 Y80.24 F3500.00
    G1 X-64.56 Y78.40 F3500.00
    G1 X-65.07 Y75.61 F3500.00
    G1 X-66.34 Y70.17 F3500.00
    G1 X-67.69 Y66.53 F3500.00
    G1 X-69.22 Y64.10 F3500.00
    G1 X-70.00 Y63.22 F3500.00
    G1 X-69.24 Y64.78 F3500.00
    G1 X-68.17 Y67.59 F3500.00
    G1 X-68.00 Y69.94 F3500.00
    G1 X-68.40 Y71.84 F3500.00
    G1 X-68.66 Y73.17 F3500.00
    G1 X-68.97 Y74.44 F3500.00
    G1 X-69.82 Y75.21 F3500.00
    G1 X-70.54 Y75.94 F3500.00
    G1 X-70.14 Y76.87 F3500.00
    G1 X-69.73 Y77.44 F3500.00
    G1 X-69.63 Y78.32 F3500.00
    G1 X-69.23 Y80.31 F3500.00
    G1 X-68.93 Y81.93 F3500.00
    G1 X-69.27 Y82.42 F3500.00
    G1 X-70.00 Y82.87 F3500.00
    G1 X-71.46 Y83.78 F3500.00
    G1 X-72.69 Y84.63 F3500.00
    G1 X-73.82 Y84.97 F3500.00
    G1 X-74.42 Y84.80 F3500.00
    G1 X-75.04 Y84.07 F3500.00
    G1 X-75.75 Y83.29 F3500.00
    G1 X-76.63 Y82.76 F3500.00
    G1 X-77.38 Y82.35 F3500.00
    G1 X-77.59 Y81.94 F3500.00
    G1 X-76.75 Y80.83 F3500.00
    G1 X-75.00 Y79.60 F3500.00
    G1 X-72.83 Y77.89 F3500.00
    G1 X-71.16 Y75.85 F3500.00
    G1 X-70.79 Y74.69 F3500.00
    G1 X-70.74 Y72.58 F3500.00
    G1 X-71.06 Y69.36 F3500.00
    G1 X-72.22 Y66.59 F3500.00
    G1 X-72.83 Y66.47 F3500.00
    G1 X-73.20 Y66.91 F3500.00
    G1 X-73.71 Y67.51 F3500.00
    G1 X-74.08 Y67.94 F3500.00
    G1 X-73.88 Y68.53 F3500.00
    G1 X-73.81 Y68.74 F3500.00
    G1 X-74.17 Y68.89 F3500.00
    G1 X-74.56 Y69.09 F3500.00
    G1 X-74.68 Y69.46 F3500.00
    G1 X-74.92 Y70.08 F3500.00
    G1 X-75.70 Y70.44 F3500.00
    G1 X-76.23 Y70.75 F3500.00
    G1 X-76.27 Y71.07 F3500.00
    G1 X-75.74 Y71.32 F3500.00
    G1 X-75.16 Y71.71 F3500.00
    G1 X-75.80 Y72.06 F3500.00
    G1 X-76.33 Y72.21 F3500.00
    G1 X-76.43 Y72.78 F3500.00
    G1 X-76.34 Y73.32 F3500.00
    G1 X-76.04 Y73.56 F3500.00
    G1 X-75.65 Y73.86 F3500.00
    G1 X-75.07 Y74.70 F3500.00
    G1 X-74.71 Y75.20 F3500.00
    G1 X-74.66 Y75.66 F3500.00
    G1 X-75.66 Y77.04 F3500.00
    G1 X-76.88 Y78.05 F3500.00
    G1 X-78.21 Y78.32 F3500.00
    G1 X-78.81 Y78.21 F3500.00
    G1 X-78.58 Y77.82 F3500.00
    G1 X-78.96 Y77.36 F3500.00
    G1 X-79.55 Y77.28 F3500.00
    G1 X-79.40 Y77.80 F3500.00
    G1 X-79.15 Y78.12 F3500.00
    G1 X-79.46 Y77.98 F3500.00
    G1 X-80.39 Y77.15 F3500.00
    G1 X-80.89 Y76.25 F3500.00
    G1 X-81.38 Y75.49 F3500.00
    G1 X-81.84 Y74.97 F3500.00
    G1 X-81.59 Y74.83 F3500.00
    G1 X-80.60 Y74.18 F3500.00
    G1 X-79.92 Y73.24 F3500.00
    G1 X-79.75 Y72.79 F3500.00
    G1 X-79.70 Y70.88 F3500.00
    G1 X-80.16 Y70.73 F3500.00
    G1 X-80.46 Y70.68 F3500.00
    G1 X-80.31 Y70.52 F3500.00
    G1 X-80.27 Y70.21 F3500.00
    G1 X-80.79 Y69.83 F3500.00
    G1 X-81.38 Y69.56 F3500.00
    G1 X-81.59 Y69.47 F3500.00
    G1 X-81.57 Y69.17 F3500.00
    G1 X-81.61 Y68.78 F3500.00
    G1 X-82.04 Y68.14 F3500.00
    G1 X-82.66 Y67.17 F3500.00
    G1 X-82.96 Y66.93 F3500.00
    G1 X-83.09 Y67.17 F3500.00
    G1 X-83.16 Y67.34 F3500.00
    G1 X-83.20 Y67.07 F3500.00
    G1 X-83.37 Y66.70 F3500.00
    G1 X-83.72 Y66.60 F3500.00
    G1 X-84.42 Y67.17 F3500.00
    G1 X-85.37 Y71.02 F3500.00
    G1 X-85.28 Y74.62 F3500.00
    G1 X-84.44 Y76.83 F3500.00
    G1 X-82.59 Y78.54 F3500.00
    G1 X-80.00 Y80.69 F3500.00
    G1 X-78.89 Y82.11 F3500.00
    G1 X-80.67 Y84.42 F3500.00
    G1 X-81.84 Y85.05 F3500.00
    G1 X-83.44 Y84.97 F3500.00
    G1 X-85.88 Y83.72 F3500.00
    G1 X-87.57 Y82.34 F3500.00
    G1 X-87.50 Y80.96 F3500.00
    G1 X-86.78 Y79.15 F3500.00
    G1 X-86.14 Y77.16 F3500.00
    G1 X-86.70 Y75.34 F3500.00
    G1 X-87.79 Y72.58 F3500.00
    G1 X-88.20 Y70.81 F3500.00
    G1 X-88.21 Y68.97 F3500.00
    G1 X-87.75 Y66.05 F3500.00
    G1 X-86.88 Y63.98 F3500.00
    G1 X-86.45 Y63.41 F3500.00
    G1 X-87.03 Y63.94 F3500.00
    G1 X-88.36 Y65.91 F3500.00
    G1 X-89.64 Y68.92 F3500.00
    G1 X-91.05 Y74.85 F3500.00
    G1 X-91.96 Y80.28 F3500.00
    G1 X-91.72 Y81.47 F3500.00
    G1 X-90.79 Y83.54 F3500.00
    G1 X-89.35 Y87.19 F3500.00
    G1 X-88.66 Y89.12 F3500.00
    G1 X-87.49 Y90.82 F3500.00
    G1 X-85.97 Y92.16 F3500.00
    G1 X-84.19 Y93.03 F3500.00
    G1 X-81.49 Y93.51 F3500.00
    G1 X-78.01 Y93.66 F3500.00
    G1 X-78.01 Y93.66 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-85.36 Y81.85 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-85.16 Y81.65 F3500.00
    G1 X-85.36 Y81.46 F3500.00
    G1 X-85.55 Y81.65 F3500.00
    G1 X-85.36 Y81.85 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-71.92 Y81.66 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-71.75 Y81.51 F3500.00
    G1 X-71.97 Y81.29 F3500.00
    G1 X-72.13 Y81.45 F3500.00
    G1 X-71.92 Y81.66 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-80.59 Y73.07 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-80.80 Y72.87 F3500.00
    G1 X-80.71 Y72.68 F3500.00
    G1 X-80.50 Y72.87 F3500.00
    G1 X-80.59 Y73.07 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-80.60 Y71.42 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-80.79 Y71.39 F3500.00
    G1 X-81.09 Y71.20 F3500.00
    G1 X-80.60 Y71.31 F3500.00
    G1 X-80.60 Y71.42 F3500.00
    G1 X-80.60 Y71.42 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)

    (Polyline consisting of 7 segments.)
    G1 X-78.53 Y69.07 F3500.00
    M300 S30.00 (pen down)
    G4 P150 (wait 150ms)
    G1 X-76.84 Y68.91 F3500.00
    G1 X-75.59 Y68.31 F3500.00
    G1 X-75.07 Y66.96 F3500.00
    G1 X-75.06 Y65.87 F3500.00
    G1 X-75.25 Y65.27 F3500.00
    G1 X-74.97 Y65.07 F3500.00
    G1 X-74.68 Y64.83 F3500.00
    G1 X-74.56 Y64.16 F3500.00
    G1 X-74.63 Y63.73 F3500.00
    G1 X-75.19 Y63.24 F3500.00
    G1 X-76.19 Y62.80 F3500.00
    G1 X-78.46 Y62.74 F3500.00
    G1 X-80.54 Y62.84 F3500.00
    G1 X-81.72 Y63.15 F3500.00
    G1 X-82.09 Y63.71 F3500.00
    G1 X-81.74 Y64.59 F3500.00
    G1 X-81.54 Y65.51 F3500.00
    G1 X-81.51 Y66.47 F3500.00
    G1 X-81.07 Y67.47 F3500.00
    G1 X-80.40 Y68.26 F3500.00
    G1 X-79.63 Y68.58 F3500.00
    G1 X-79.10 Y68.81 F3500.00
    G1 X-78.53 Y69.07 F3500.00
    G1 X-78.53 Y69.07 F3500.00
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)


    (end of print job)
    M300 S50.00 (pen up)
    G4 P150 (wait 150ms)
    M300 S255 (turn off servo)
    G1 X0 Y0 F3500.00
    G1 Z0.00 F150.00 (go up to finished level)
    G1 X0.00 Y0.00 F3500.00 (go home)
    M18 (drives off)



  15. #15
    Community Moderator Jim Dawson's Avatar
    Join Date
    Dec 2013
    Posts
    5717
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    The first example has some unusual formatting, but it works. It must work in an area about 3/8 inch square, either that or your machine calibration is way off. If that is in inches, it would require at least a 10x10 inch work area. If it's metric, that the work area would be about 3/8x3/8 inch. There is no indication as to the units, G20 = inches, G21 = metric. Many machines will default to metric if you don't specifically issue a G20 or G21.

    Your second example probably would not work because the formatting is not like the first example. And maybe your machine calibration is not correct for that file.

    The third example is G code that runs a pen plotter, and I suspect would not work at all. There are commands in it that are not common in routers/engravers. This is where the post processor comes into play. Some machine controllers are very fussy about G code formatting. In Inkscape you should have an option to choose the post processor, and you need one for a GRBL machine, then the formatting might be correct.

    EDIT: You might take a look at this to get an idea of what G code is and what it does. https://en.wikipedia.org/wiki/G-code

    Last edited by Jim Dawson; 12-25-2017 at 06:11 AM.
    Jim Dawson
    Sandy, Oregon, USA


  16. #16
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: new guy here

    this is a gcode I found on internet and changed file extension to .txt so grbl would open it and all i got were errors, im now thinking it has something to do with the options my mini cnc has...
    This could be due to the G21, and possibly the A axis? Does GRBL support rotary A axis, and do you have one?



    also this is what the code looks like from inkscape, just a simply 2D cartoon.
    This one has custom M codes that GRBL probably doesn't support? M17, M18, M300.....

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  17. #17
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    AlwaysBanned

    If you have MS Word or others like it just open your program with this program and when finished editing, save as text, so just do some and try it in you control, until you understand how your program needs to look

    Your first program, is a standard format, ( Fanuc or most other controls will accept code like this ) and is just missing a few parts in the Header for a normal control to run this program, most hobby controls will run this

    The second program is messed up, the Z axes movements are incorrect and would not work correctly on any machine, the code it's self is fine, just the Z axes movements are incorrect, also will your control do 3 axes simultaneous, if not, then you can't load a program like this

    The third program, the code it's self is normal as well, except for all the Headers are incorrect for your control, so if you where to change it like this it should run on your control, you would have to change all the headers, not just this first one but all the way through the program, it's not much really, and good practice to get to know what is needed for your control

    G21
    G90
    G0Z5.
    X0Y0
    G1Z0F100. ( Change this Z0 move to the depth you want the pen or cutter to go, anything below Z0 will be a Negative number so like this Z-1. would move the Z axes down 1mm into the material )

    G1 X-88.88 Y93.75 F3500.00
    G1 X-90.79 Y92.89 F3500.00
    G1 X-93.61 Y91.61 F3500.00
    G1 X-95.67 Y90.60 F3500.00
    G1 X-96.60 Y88.70 F3500.00
    G1 X-96.99 Y85.54 F3500.00
    G1 X-96.76 Y84.16 F3500.00
    G1 X-96.25 Y82.99 F3500.00
    G1 X-95.64 Y81.59 F3500.00
    G1 X-95.20 Y80.29 F3500.00



    Second Move in the program to change, as with the rest of the program

    G1 X-85.61 Y94.05 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    M300 S50.00 (pen up) ( Remove )
    G4 P150 (wait 150ms) ( Remove )

    (Polyline consisting of 7 segments.) ( Remove )
    G1 X-78.01 Y93.66 F3500.00
    M300 S30.00 (pen down) ( Remove )
    G4 P150 (wait 150ms) ( Remove )
    G1 X-75.60 Y93.55 F3500.00
    G1 X-72.31 Y93.04 F3500.00
    G1 X-71.44 Y92.77 F3500.00
    G1 X-70.19 Y92.04 F3500.00
    G1 X-68.12 Y89.81 F3500.00


    This below is a copy of above once you remove the wrong code and add the new,

    G1 X-82.79 Y93.90 F3500.00
    G1 X-85.61 Y94.05 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    G1 X-86.96 Y94.09 F3500.00
    G0Z5. ( Add )


    G1 X-78.01 Y93.66 F3500.00
    G1Z- F100. ( Add ) ( Set the Z Depth to the minus number you want)
    G1 X-75.60 Y93.55 F3500.00
    G1 X-72.31 Y93.04 F3500.00
    G1 X-71.44 Y92.77 F3500.00
    G1 X-70.19 Y92.04 F3500.00
    G1 X-68.12 Y89.81 F3500.00

    Mactec54


  18. #18
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    after removing those items now what I have is to big of a project, Im assuming.. that is the code that inkscape gave me and i made the document size the same size as my workspace but when i pressed send it was driving all the axis passed their restriction. also all of the "M" values were errors so im guessing my cnc does not work with those and finally even though it started with that code it still did not give me a picture in grbl like the samples did. is there a simple code I can try to see if all 3 axis move at the same time?

    thanks for all the help



  19. #19
    Member mactec54's Avatar
    Join Date
    Jan 2005
    Location
    USA
    Posts
    15362
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    Quote Originally Posted by AlwaysBanned View Post
    after removing those items now what I have is to big of a project, Im assuming.. that is the code that inkscape gave me and i made the document size the same size as my workspace but when i pressed send it was driving all the axis passed their restriction. also all of the "M" values were errors so im guessing my cnc does not work with those and finally even though it started with that code it still did not give me a picture in grbl like the samples did. is there a simple code I can try to see if all 3 axis move at the same time?

    thanks for all the help
    Try this, is a 2" square at 45deg with a radius on each corner, X0 Y0 is the yellow circle on the drawing, it will be interesting to know if this will load, you will see some different code, but adjust by removing if need to

    This is in inches but has a G20 in the code so should run, all 3 axes will move at the same time when cutting

    %
    O3443
    N1G17G40G80
    G20
    T2M6
    G54
    S3000M3
    G90G0X.0344Y.296
    G43Z.1H2
    G1Z0.F20.
    G3X.1192I.0424J.0424
    G1X1.2551Y1.4319Z-.0117
    G2X1.5733Z-.0142I.1591J-.1591
    G1X2.8461Y.1591Z-.0273
    G2Y-.1591Z-.0298I-.1591J-.1591
    G1X1.5733Y-1.4319Z-.0429
    G2X1.2551Z-.0455I-.1591J.1591
    G1X-.0177Y-.1591Z-.0585
    G2Y.1591Z-.0611I.1591J.1591
    G1X.1192Y.296Z-.0625
    X1.2551Y1.4319Z-.0742
    G2X1.5733Z-.0767I.1591J-.1591
    G1X2.8461Y.1591Z-.0898
    G2Y-.1591Z-.0923I-.1591J-.1591
    G1X1.5733Y-1.4319Z-.1054
    G2X1.2551Z-.108I-.1591J.1591
    G1X-.0177Y-.1591Z-.121
    G2Y.1591Z-.1236I.1591J.1591
    G1X.1192Y.296Z-.125
    X1.2551Y1.4319Z-.1367
    G2X1.5733Z-.1392I.1591J-.1591
    G1X2.8461Y.1591Z-.1523
    G2Y-.1591Z-.1548I-.1591J-.1591
    G1X1.5733Y-1.4319Z-.1679
    G2X1.2551Z-.1705I-.1591J.1591
    G1X-.0177Y-.1591Z-.1835
    G2Y.1591Z-.1861I.1591J.1591
    G1X.1192Y.296Z-.1875
    X1.2551Y1.4319Z-.1992
    G2X1.5733Z-.2017I.1591J-.1591
    G1X2.8461Y.1591Z-.2148
    G2Y-.1591Z-.2173I-.1591J-.1591
    G1X1.5733Y-1.4319Z-.2304
    G2X1.2551Z-.233I-.1591J.1591
    G1X-.0177Y-.1591Z-.246
    G2Y.1591Z-.2486I.1591J.1591
    G1X.1192Y.296Z-.25
    X1.2551Y1.4319
    G2X1.5733I.1591J-.1591
    G1X2.8461Y.1591
    G2Y-.1591I-.1591J-.1591
    G1X1.5733Y-1.4319
    G2X1.2551I-.1591J.1591
    G1X-.0177Y-.1591
    G2Y.1591I.1591J.1591
    G1X.1192Y.296
    G3Y.3808I-.0424J.0424
    G0Z1.
    M5
    M30
    %

    Attached Thumbnails Attached Thumbnails new guy here-2-inch-square-png  
    Mactec54


  20. #20
    Registered
    Join Date
    Dec 2017
    Location
    United States
    Posts
    13
    Downloads
    0
    Uploads
    0

    Default Re: new guy here

    Not only did it run that just fine but it did it without changing anything and showed me the picture.



Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

new guy here

new guy here