Open raresandrei opened 6 years ago
can you post the gcode or the linkt to online gcode interpreters? maybe the command to switch on the laser is too specialized?
https://ncviewer.com/ the code is here https://mega.nz/#!0oU1yBSA!t1JkmznKPrtKScgEDwV3CHgyXjYSTti8VUshdAgM_3Y https://mega.nz/#!A5k0RYRR!_4F9PsLZY2KzoPCl-N32Q9TW14P-8PPfaDyOtkFFKXQ the second is with this converter The image is this one https://mega.nz/#!sg1xQC7Y!ifcpxkU04hrEcgk6el9OZVxCzcPcQxRlE5i1nm6obi0
ok, my script is special for my machine. I use "S0" to control the laser intensity. "M3" turns on the laser. "M5" turns off the laser. Grbl 0.9i is running on the machine. pronterface also reports an error at the point, it does not recognize "S0" (bad.gcode). I transferred the gcode with SerialComCNC back then. This works with my configuration.
"1.gcode" seems to control the intensity with Z - that's another principle? Maybe, you would have to adapt the program to your machine... What's your machine? "Z1" = Laser OFF ?
I could see if I can make the parameters for laser ON/OFF variable.
For the second image I used npm library img2gcode .I am planning to build the cnc laser on a FPGA and I search for this code to interpret the gcode and then send it to the machine.I didn't began to work on FPGA code to interpret the gcode because I am still facing problem with sending the data to the FPGA.I wonder if I will find a library or find a way to convert grbl to work on a c++ program on the FPGA.
I haven't looked at FPGA yet - it's a different league. But there are some who have tried it (https://hackaday.com/2015/09/21/fpga-cnc/). I would implement a serial interface for receiving. This makes you compatible to e.g. pronterface. good luck!
Thanks
I used the converter and then I tried some online gcode interpreters and they don't show any valid data.What am I missing?