- Posts: 43
- Thank you received: 0
Coordinate system and touch off
1 year 8 months ago #320918
by flexbex
Coordinate system and touch off was created by flexbex
Hi a beginner question. So I setup my cnc and I want to do a first test run. I use freecad as CAD and CAM programm. In freecad I set my origin on one of the upper corners. Then I create the toolpath. But I get exceeding limit error in linuxcnc. My machine limits are x-10 to 2000, y-10 to 1000 and z0 to -150. So my procedure is I move the tip of the endmill to the corner of the workpiece. Which is lets say in machine coordinates at x100 y100 and z-20. Then I send g10 l2 p1 x0 y0 z0. My understanding was that this sets the coordinate system 1 to zero. Then I start my program which begins with
But I get an error at G0 Z6.000 already. So what am I missing here? In machine coordinates I would still have the space to move 6mm up.(Exported by FreeCAD)
(Post Processor: script_module)
(Output Time:2025-02-07 23:16:55.212221)
(begin preamble)
G17 G54 G40 G49 G80 G90
G21
(begin operation: Fixture)
(machine units: mm/min)
G54
(finish operation: Fixture)
(begin operation: 6mm_Endmill001)
(machine units: mm/min)
(6mm_Endmill001)
M5
M6 T2
G43 H2
M3 S2000
(finish operation: 6mm_Endmill001)
(begin operation: Profile)
(machine units: mm/min)
(Profile)
(Compensated Tool Path. Diameter: 6.0)
G0 Z6.000
G0 X56.121 Y56.121
G0 Z4.000
G1 X56.121 Y56.121 Z-5.000 F120.000
G2 X57.000 Y54.000 Z-5.000 I-2.121 J-2.121 F120.000
G1 X57.000 Y4.000 Z-5.000 F120.000
Please Log in to join the conversation.
1 year 8 months ago #320927
by Aciera
Replied by Aciera on topic Coordinate system and touch off
Try (note the difference in the L-word)
L2 sets the offset values themself to 0
L20 sets the offset values so the current coordinate is 0
Code:
g10 l20 p1 x0 y0 z0.
L2 sets the offset values themself to 0
L20 sets the offset values so the current coordinate is 0
Please Log in to join the conversation.
Time to create page: 0.078 seconds
