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

Possibility to fix height differences of the machine axis' #187

Closed metzger100 closed 3 years ago

metzger100 commented 3 years ago

My selfbuilt CNC is not perfectly aligned. So the right side of my basepalte is 1,5mm lower than the left side. After the machine is a Sprite-typed machine I can't fix this difference of height on the machine without completly rebuilding it. Maybe it is possible to fix in the software. It would be awesome. Maybe the settings would look like: X-axis to Z-axis: +-x mm for 10cm Y-axis to Z-axis: +-x mm for 10cm X-axis to Y-axis: +-x mm for 10cm

svenhb commented 3 years ago

You may use the height map option (Menu Workpiece - Surface Scan/Height map) :

  1. Option you measure the map of your machine bed and apply it to yout workiece, or
  2. You create the map by your self and load it into the Surface-scan dialog. Height map file looks like this (MaxX/Y = dimension in mm, SizeX/Y = number of points):
    <?xml version="1.0" encoding="utf-8"?>
    <heightmap MinX="0" MinY="0" MaxX="100" MaxY="100" SizeX="2" SizeY="2">
    <point X="0" Y="0">0</point>
    <point X="0" Y="1">0</point>
    <point X="1" Y="0">-1</point>
    <point X="1" Y="1">-1</point>
    </heightmap>

    This results to (just watch color map and use blue button): image

Only problem: the heigth map is bound to the work coordinate 0;0 and not to the machine coordinate.

metzger100 commented 3 years ago

Yes. I already use the heightmap, but it would make the life of all selfmade CNC-men easier, if you could implement that Solution i proposed above. I would love to see that in a future version. Greetings.

svenhb commented 3 years ago

You wrote "After the machine is a Sprite-typed machine I can't fix this difference of height on the machine" What doesit mean "sprite-typed machine", do you have a picture?

metzger100 commented 3 years ago

Sure. Maybe you know grblgru? The dev uses those CNC-types for his Gcode creation. The types describe the relations between workpiece and the axis of the machine. e.g Workpiece is fixed, Z axis is fixed, co. Spritetyp machines have the workpiece on the y-axis and the z-axis is mounted on the x-axis. IMG_20210225_141323.jpg

svenhb commented 3 years ago

I just knew the german wording... image

metzger100 commented 3 years ago

Ah okay. Ja. Ich kenn nur die Typen auf Englisch. Hab im Studium auch nur die englischen Begriffe gehabt, aber das scheint das selbe zu sein. In dem Fall Tischbauweise. Danke für deine Arbeit. Hab nachdem ich nun auch selbst ohne Gegenleistung Software anzubieten hab ich noch mehr Respekt vor deiner Leistung. Vielen Dank. Sehr cool!

svenhb commented 3 years ago

Probably it's easier to use a waste board, where you mill off the surface with fixed Z value - then the surface is parallel to your XY mechanincs and you can fix your workpiece on it. Thats the way other CNC user do it...

metzger100 commented 3 years ago

Thats how how I am doing right now. Didn't think about it when I opened the request.

svenhb commented 3 years ago

Thanks for the feedback