New to Grblgru lathe

I have built a small lathe to test some samples efore making big one
I tried to make 8mm rod to 6mm in diameter, but I’m 3d drawing showing some other lines.

I have used solidworks dxf for this exporting into Grblgru

Could somebody explain me how to do just a simple program to get in start.

Welcome to the forum. :smile:

Please select the machine ‘My_lathe’ and load the file ‘Candlestick.dxf’ from the examples. This will automatically activate the ‘#AutoStart’ job. You can then immediately see the result of the calculated GCode in the 3D view.
Load the DXF file into your solidworks and take a look at where the origin is and in which direction the axes are pointing.
If you create a DXF file yourself, the origin and direction must be exactly the same.

1 Like

Thanks for the reply, as I was watching this forum for a month as there was no activity, and I didn’t expect it at all, but posted in the final.

I do not know much about this dxf file import export, but now I understand. It is going to the left side from the origin. See screenshot.

From the chessrock, I erased some part of that left side and again imported it to Grblgru, but it cuts at the left side only, not on the part. here too, I made a mistake.

[/quote]

The image is mirrored. There is something wrong with your X direction.
X must become more positive to the right.

1 Like

I am still trying with SolidWorks, including SolidWorks CAM, but it didn’t work.
I tried ChatGPT’s G-code, but this too is not working. Could you check and let me know what is wrong with this code?

(8mm rod turning down to 6mm for 20mm length)
G21        ; Use millimeters
G90        ; Absolute positioning
G17        ; XY plane selection (not needed for lathe)
G94        ; Feed per minute
M3 S1000   ; Spindle ON clockwise at 1000 RPM
G0 X8 Z2   ; Rapid move to start position (2mm clearance)

(Loop to turn down from 8mm to 6mm)
G1 Z-20 F100  ; Move to cutting length
X7.8 F50      ; First cut (0.2mm depth)
G0 Z2         ; Retract
G0 X8         ; Rapid return to start
G1 Z-20 F100  ; Move to cutting length
X7.6 F50      ; Second cut
G0 Z2
G0 X8
G1 Z-20 F100
X7.4 F50
G0 Z2
G0 X8
G1 Z-20 F100
X7.2 F50
G0 Z2
G0 X8
G1 Z-20 F100
X7.0 F50
G0 Z2
G0 X8
G1 Z-20 F100
X6.8 F50
G0 Z2
G0 X8
G1 Z

It is for making 8mm rod to make 6mm for a length of 20mm

Also, can you give me 8mm rod to make 6mm threaded for a length of 20mm ?

Either G-code or drawing dxf flie so I can manually check it and want to run

As already mentioned, the directions of your axes are not identical to my definition. Press the left, right or forwards and backwards buttons and observe how the values change.

You can use the macros to simply rotate a piece cylindrically.
To do this, switch on the macros under ‘Extras - Settings’ ‘Show macro Toolbar’.
Then select the ‘Lathe’ macro in the toolbar. A few buttons will then appear on the right-hand side. If you press the top button ‘cylindrical turning’, a dialogue will appear in which you can enter the data for a simple cylindrical turning.
Make sure that you have entered your starting diameter correctly and that it matches your current position.

You can also create macros yourself. There is a video about this.

1 Like