Aligning machine with the stock
- avarakin
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
05 Mar 2022 19:17 #236446
by avarakin
Aligning machine with the stock was created by avarakin
Total newbie with LCNC here.
I have a CNC router which I am currently running using GRBL with UGS or bCNC.
I mostly cut parts out of plywood and many times I cut parts out of cut offs of irregular shape, so I normally use the following workflow, supported by both bCNC and UGS:
1. Jog to a corner of stock and then align to a corresponding corner of g-code by clicking on corresponding point in g-code preview
2. Confirm that my gcode program will not go beyond boundaries of the stock:
- in UGS I use "Contour" feature, which will run the machine along the contour of the g-code program
- in bCNC I use "Move Gantry" feature, where I click on several critical points in g -code preview and machine jogs to those points
I was not able to find similar features in LCNC.
I have a CNC router which I am currently running using GRBL with UGS or bCNC.
I mostly cut parts out of plywood and many times I cut parts out of cut offs of irregular shape, so I normally use the following workflow, supported by both bCNC and UGS:
1. Jog to a corner of stock and then align to a corresponding corner of g-code by clicking on corresponding point in g-code preview
2. Confirm that my gcode program will not go beyond boundaries of the stock:
- in UGS I use "Contour" feature, which will run the machine along the contour of the g-code program
- in bCNC I use "Move Gantry" feature, where I click on several critical points in g -code preview and machine jogs to those points
I was not able to find similar features in LCNC.
Please Log in or Create an account to join the conversation.
- tommylight
- Online
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
05 Mar 2022 21:10 #236452
by tommylight
Replied by tommylight on topic Aligning machine with the stock
I think there is no such feature (well there is but for plasma), but that is easily done since LinuxCNC has a wealthy preview, so jog the machine to the material start pint, touch of X and Y, look at the extents on the preview and use MDI or F5 and type F1000 G1 Xnnn Ynnn, where nnn are the extents from the preview in numbers, be it millimeters or inches.
The following user(s) said Thank You: avarakin
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
10 Mar 2022 00:12 #236798
by andypugh
Replied by andypugh on topic Aligning machine with the stock
I can think of fun ways to do this. One way would be to run a Python script that simply runs through the loaded G-code looking for max and min X and Y, then sends a sequence of rapid moves to trace it.
This could relatively easily be started from a hardware or software button (Or MDI command)
For extra fun it would trace the actual external contour, though that would need more elaborate maths.
Are you by any chance an enthusiastic Python programmer?
This could relatively easily be started from a hardware or software button (Or MDI command)
For extra fun it would trace the actual external contour, though that would need more elaborate maths.
Are you by any chance an enthusiastic Python programmer?
Please Log in or Create an account to join the conversation.
- avarakin
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 Mar 2022 01:39 #236805
by avarakin
Replied by avarakin on topic Aligning machine with the stock
I am a little bit of Python programmer, so I may try doing something about it if I have time.
Here is my recent Python project: github.com/avarakin/MirrorGenerator
Here is my recent Python project: github.com/avarakin/MirrorGenerator
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
10 Mar 2022 01:47 #236806
by andypugh
Replied by andypugh on topic Aligning machine with the stock
In that case, look here:
linuxcnc.org/docs/2.8/html/config/python-interface.html
You can get the path to the currently loaded file with stat.file(), run through it loiking for X and Y moves, then command.mdi() a set of G0 rapid moves to indicate the area.
(once your script works we can tell you how to call it conveniently with a button or MDI comand)
linuxcnc.org/docs/2.8/html/config/python-interface.html
You can get the path to the currently loaded file with stat.file(), run through it loiking for X and Y moves, then command.mdi() a set of G0 rapid moves to indicate the area.
(once your script works we can tell you how to call it conveniently with a button or MDI comand)
Please Log in or Create an account to join the conversation.
- avarakin
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 Mar 2022 01:58 #236807
by avarakin
Replied by avarakin on topic Aligning machine with the stock
I was thinking of a simpler approach: enter into some special mode, where I can move gantry to a point in loaded g code file by clicking on the corresponding point in g code preview window. In my experience it is more convenient and faster approach comparing to tracing the contour.
Please Log in or Create an account to join the conversation.
Time to create page: 0.063 seconds