![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Hobby Discussion Discuss other CNC-related Hobbies here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
So here's the thing...I've recently got my hands on a CNC router...and I've been trying to develop my own software to "translate" Gcode into stepper pulses. But I still dont know how to aproach it...for instance, if I want to represent an arc... 1) do I calculate all points in the arc and then generate a sequence of instructions in order to represent them as best as posible? 2) or do I "play" with the motor frequencies in order to get the arc I want...? Im I being clear? Thanx! |
|
#2
| |||
| |||
| Stepper drivers require a pulse for each increment of travel. For example if steppers set for .01 mm per pulse then you need to send 100 pulses to move stepper 1mm. This means you have to calculate every point on the path to the resolution of your cnc drives. You then have to send pulse to each axis at the same time to move all axis to the required result. For example at .01mm resolution to move in a straight line 1 mm in X and 2 mm in Y you would send pulse to Y only then a pulse to X and Y to move X .01 mm and Y .02mm you would repeat this 100 times to move X 1mm Y 2mm. On top of this you need to time the pulses to have motors run at the desired speed. George |
|
#3
| ||||
| ||||
| I haven't actually looked into this, but since EMC2 is open source, and it must incorporate the functionality that you are looking for, perhaps you could look through the source code and see how it is done there. EMC Documentation Wiki: Installing EMC2 |
|
#5
| |||
| |||
| You might also want to check here. http://reprap.org/wiki/Darwin/Arduino_GCode_Interpreter This is a g code interpreter written for the Arduino. The code may give you some help in understanding the basics of converting g code to stepper commands and would probably be easier than diving into the EMC2 code. |
| Sponsored Links |
![]() |
| Tags |
| cnc, g code, interpreter, software, stepper |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Hardware" GCode interpreter | DukerX | Group Projects | 57 | 06-03-2011 06:15 PM |
| stepper music g-code to MHZ | bgriggs | G-Code Programing | 4 | 03-05-2011 05:03 PM |
| Need Help!- PIC based GCode interpreter | KACZYNSKI | PicStep Controllers | 1 | 04-09-2010 10:35 AM |
| AVR G Code Interpreter/ Step-Dir Macro Recorder | bitmannz | General Electronics Discussion | 5 | 02-01-2007 12:07 AM |
| Regarding G Code Interpreter | aran.nav | General CNC (Mill and Lathe) Control Software (NC) | 2 | 01-07-2005 05:10 PM |