svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
696 stars 176 forks source link

servo motor command #291

Closed ali-allafi-1996 closed 2 years ago

ali-allafi-1996 commented 2 years ago

hello, I have some questions for you 1- how I can adjust the program ( GRBL Plotter) to don't generate the command (M03/M04), when it generates the code this command is automatically generated with the g code. I don't use the servo motor except for the Gripper when the pen change. please I want to control my g code generated, I want to code without the (M03/M05) command. 2- the homing cycle in this program how I can fix my homing position for x, y, and z coordinate in this program?

svenhb commented 2 years ago

You need to adjust your pen-up/-down commands here: If you don't want M03/M04, don't choose Laser or PWM, but Z axis or put-in your own commands (individual). With Z-axis, you may enable "Don't use spindle", to avoid inital M03. image

Homing cycle and position is inside grbl-firmware, no chance to change. After homing you get not changeable machine-coordinates - but who cares. You will use work-coordinates (except for tool-changes): https://grbl-plotter.de/index.php?id=auto-pen-change

ali-allafi-1996 commented 2 years ago

image as you can see, this photo contact the g code that I was generated by using grbl plotter,

ali-allafi-1996 commented 2 years ago

I don't use the servo as z axes but I used it in the tool changer as a gripper. I don't need this command in my main g code. how I can avoid it?

ali-allafi-1996 commented 2 years ago

image

svenhb commented 2 years ago

Are you using latest version? https://github.com/svenhb/GRBL-Plotter/releases As you can see, no M3/M4 command: image

svenhb commented 2 years ago

Using individual commands: image

ali-allafi-1996 commented 2 years ago

could you give me the setting to use it on my own image

ali-allafi-1996 commented 2 years ago

I have another problem with the tool changer. image how I can use it. because I want to add a special code to the black and blue colors.

svenhb commented 2 years ago

Just click into the cell and put in your code

ali-allafi-1996 commented 2 years ago

image is it the right way to use it?

ali-allafi-1996 commented 2 years ago

m03 for the black color m05 for the blue color that is what I want.

svenhb commented 2 years ago

After changing, you need to save and reload tool table example "myTools" image

You need to enable grouping by colors and activate tool table: image

Then code will be applied: image

ali-allafi-1996 commented 2 years ago

Okay, I think i don't use this command after now image because I use a special command from the table is it right?

svenhb commented 2 years ago

If you don't need scripts for tool change (see below), you need not to enable. image

ali-allafi-1996 commented 2 years ago

Okey my friend thanks for giving me all the answers that I want . Now I can turn on my CNC plotter as I want it .