winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.9k stars 765 forks source link

GCODE not compatible with grbl 1.1 HELP! #1276

Closed oraherb closed 5 years ago

oraherb commented 5 years ago

please help me im a new to cnc so i got this problem with gcode when i try to send this gcode to universal gcode sender..it gives me an error "an error was detected while sending OS30: error:1" im using GRBL 1.1 and UGS i know that the gcode im using is from the inkscape and M300 S30 and M300 S50 is the issue because when i use and gcode and sample gcode that dont have those value it works so how can i create a gcode that is compatible with grbl 1.1 please help me

the gcode i was sending is like this

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

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

M01 (Plotting layer 'Calque 1') (Polyline consisting of 63 segments.) G1 X13.99 Y0.73 F3000.00 M300 S30.00 (pen down) G4 P50 (wait 50ms) G1 X11.60 Y1.51 F3000.00 G1 X10.51 Y1.89 F3000.00 G1 X9.97 Y2.14 F3000.00 G1 X9.43 Y2.38 F3000.00 G1 X8.54 Y2.92 F3000.00 G1 X4.32 Y6.01 F3000.00 G1 X2.84 Y7.59 F3000.00 G1 X1.72 Y9.24 F3000.00 G1 X1.50 Y9.61 F3000.00 G1 X1.44 Y9.88 F3000.00 G1 X1.37 Y10.14 F3000.00 G1 X1.37 Y10.44 F3000.00 G1 X1.37 Y10.75 F3000.00 G1 X1.26 Y10.82 F3000.00 G1 X0.80 Y11.01 F3000.00 G1 X0.46 Y11.14 F3000.00 G1 X0.52 Y11.16 F3000.00 G1 X0.57 Y11.19 F3000.00 G1 X0.91 Y11.07 F3000.00 G1 X1.32 Y10.89 F3000.00 G1 X1.39 Y10.83 F3000.00 G1 X1.66 Y11.17 F3000.00 G1 X1.94 Y11.51 F3000.00 G1 X2.18 Y11.64 F3000.00 G1 X3.64 Y12.19 F3000.00

(Polyline consisting of 63 segments.) G1 X12.29 Y37.91 F3000.00 M300 S30.00 (pen down) G4 P50 (wait 50ms) G1 X12.59 Y37.96 F3000.00 G1 X12.74 Y37.96 F3000.00 G1 X12.54 Y37.91 F3000.00 G1 X12.24 Y37.87 F3000.00 G1 X12.14 Y37.87 F3000.00 G1 X12.29 Y37.92 F3000.00 G1 X12.29 Y37.91 F3000.00 M300 S50.00 (pen up) G4 P50 (wait 50ms)

(Polyline consisting of 63 segments.) G1 X12.85 Y38.02 F3000.00 M300 S30.00 (pen down) G4 P50 (wait 50ms) G1 X13.07 Y38.02 F3000.00 G1 X13.18 Y37.99 F3000.00 G1 X12.96 Y37.99 F3000.00 G1 X12.74 Y37.99 F3000.00 G1 X12.85 Y38.02 F3000.00 M300 S50.00 (pen up) G4 P50 (wait 50ms)

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

breiler commented 5 years ago

The M300 looks suspicious along with some other M-commands... Those commands are not supported by GRBL. How did you generate this gcode?

oraherb commented 5 years ago

@breiler i create gcode in inkscape and it is automaticaly created

breiler commented 5 years ago

Which plugin?

oraherb commented 5 years ago

@breiler sorry im new to this what im still learning what plugin?? the mi inkscape extension? dxf_input.inx dxf_input.py servo.inx servo.py

or the

MI GRBL Z-AXIS SERVO Controller

or

unicorn plugin

oraherb commented 5 years ago

please help guys

breiler commented 5 years ago

Dude it's impossible to help you with this little information... Did you follow a guide?

Let's start with the hardware and GRBL-firmware:

The plugin for Inkscape is quite important and is really dependant on the right hardware. I couldn't find anything on "MI Inkscape plugin" or "MI GRBL Z-AXIS SERVO Controller".

It looks like the Gcode you posted first comes from the "Unicorn plugin" (https://github.com/martymcguire/inkscape-unicorn) which requires the right hardware. More specifically it was designed for "MakerBot CupCake CNC" which I believe uses Marlin firmware popular with 3D-printers.

Ex. the M300-command is used for playing a tone using a specific frequency which I guess can be used for signalling a servo. (http://marlinfw.org/docs/gcode/M300.html)

oraherb commented 5 years ago

@breiler im using this grbl (https://github.com/gnea/grbl) and its not modified and using ardruino nano with stepstick drv8825 i connect the servo with DIGITAL PIN 11 and GND and 5V on arduino

oraherb commented 5 years ago

@breiler but my issue is not the pen and servo my gcode that i send from inkscape gives me an error so how can i create a gcode that can run in UNIVERSAL GCODE SENDER please help to make a gcode that compatible with (https://github.com/gnea/grbl) this grbl thats only my problem how to make compatible gcode sir please thanks

breiler commented 5 years ago

There are alot of options, when I started I used Easel from Iventables: http://easel.inventables.com/

It can export gcode, have look at the following link for instructions: https://inventables.zendesk.com/hc/en-us/articles/360012762533-Walkthrough-Tutorial-Offline-Easel-Usage

Other than that you can have a look at this page from Shapeoko and pick a tool that suits your needs: https://wiki.shapeoko.com/index.php/CAM

whitetd commented 5 years ago

https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.instructables.com/id/How-to-Control-a-Servo-Using-GRBL/&ved=2ahUKEwjKwqHg_oHlAhWCFjQIHbGtDR4QFigAMAB6BAgHEAE&usg=AOvVaw1GGGoz6Q3cgRSNr3JBIKxK&cshid=1570171014511

On Thu, Oct 3, 2019, 5:08 PM oraherb notifications@github.com wrote:

@breiler https://github.com/breiler but my issue is not the pen and servo my gcode that i send from inkscape gives me an error so how can i create a gcode that can run in UNIVERSAL GCODE SENDER please help to make a gcode that compatible with (https://github.com/gnea/grbl) this grbl thats only my problem how to make compatible gcode sir please thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/winder/Universal-G-Code-Sender/issues/1276?email_source=notifications&email_token=AATT5E54RQEIIY4TK64XWYLQM2CQPA5CNFSM4I5DNQ7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJ6SJI#issuecomment-538175781, or mute the thread https://github.com/notifications/unsubscribe-auth/AATT5E36TYOPLUVKOPRNZLTQM2CQPANCNFSM4I5DNQ7A .

oraherb commented 5 years ago

@breiler thanks it work bro