Hi to all,
Based on this pictures i will show you the workflow to prepare a part to generate gcode for 2.5D and i think others who reading this helps it:
WCS = Work-Coordinate-System
Let us have a look to where we can found these Coordinate-Systems in Freecad:
When we set the WCS: Z=0 at the top of the part then the post processor generates g Code with -Z values. So the spindle steps down to engrave it.
@Sliptonic gave us a nice tool (Setup) to take the Model-body to the right place:
1. Click on the top of the body
2. take Z-Axis
3. take Z=0. The Model-Body flips down
4. You have to refresh the stock.
Now let us take a look what we now see:
This is the startpoint to generate the gcode with 2.5D operations
BR
Walter
Tutorial to prepare a part to generate gcode
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Tutorial to prepare a part to generate gcode
Last edited by roerich_64 on Mon May 20, 2019 1:49 pm, edited 2 times in total.
Die Liebe wird siegen, denn sie ist unzerstörbar
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
Ok.
Let us have a look to a real part, how we can need the above procedure.
It is a rolling container for sorting parts: In FreeCAD: When it is ready prepared, than it looks so: I think the best way for now is, i make a video.
But, when it is needed, i can also do a step-by-step turorial here
BR
Walter
Let us have a look to a real part, how we can need the above procedure.
It is a rolling container for sorting parts: In FreeCAD: When it is ready prepared, than it looks so: I think the best way for now is, i make a video.
But, when it is needed, i can also do a step-by-step turorial here
BR
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: Tutorial to prepare a part to generate gcode
Hi Walter,
Nice pictures and a good tutorial. Keep it up!
One clarification however; FreeCAD has no knowledge of the Machine Coordinate System (MCS) at all. We ONLY work with the WCS. What you show in the second picture of the first post is the default placement of the body. It will be used as the default origin for the WCS when the job is set up. The origin of the job can, as you show, be moved.
Machine controllers like LinuxCNC keep track of both and are able to visualize the WCS within the real work envelope of the machine. But FreeCAD doesn't know anything about the machine's origin or work envelope. Since it doesn't know about those things, it can't know about the relationship between job origin and the machine origin.
Nice pictures and a good tutorial. Keep it up!
One clarification however; FreeCAD has no knowledge of the Machine Coordinate System (MCS) at all. We ONLY work with the WCS. What you show in the second picture of the first post is the default placement of the body. It will be used as the default origin for the WCS when the job is set up. The origin of the job can, as you show, be moved.
Machine controllers like LinuxCNC keep track of both and are able to visualize the WCS within the real work envelope of the machine. But FreeCAD doesn't know anything about the machine's origin or work envelope. Since it doesn't know about those things, it can't know about the relationship between job origin and the machine origin.
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
Hi @Sliptonic,
thank you for the additional explanation
Edit: and now corrected.
Walter
thank you for the additional explanation
Yes i am with you and will correct itThe origin of the job can, as you show, be moved.
Edit: and now corrected.
Walter
Die Liebe wird siegen, denn sie ist unzerstörbar
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
At first i will show you how we can generate the container frame:
To do that we need the boxCreator-Macro. We found them with 'Tools / Addonmanager' then with the TAB 'Macros': 1. Click the TAB 'Macros' in AddonManager and scroll down to 'BoxCreator'.
2. Select them with a 'click' and take 'Install / update'
Now we have to create a new File.
After them we can start the macro 'BoxCreator' when we take the TAB 'Macro' and then take 'Macros...': It opens the window 'start Macro': 1. Select with a click the 'BoxCreator.FCMacro'
2. then take 'Start' (in German: Ausführen -) )
To do that we need the boxCreator-Macro. We found them with 'Tools / Addonmanager' then with the TAB 'Macros': 1. Click the TAB 'Macros' in AddonManager and scroll down to 'BoxCreator'.
2. Select them with a 'click' and take 'Install / update'
Now we have to create a new File.
After them we can start the macro 'BoxCreator' when we take the TAB 'Macro' and then take 'Macros...': It opens the window 'start Macro': 1. Select with a click the 'BoxCreator.FCMacro'
2. then take 'Start' (in German: Ausführen -) )
Last edited by roerich_64 on Fri May 31, 2019 11:30 pm, edited 6 times in total.
Die Liebe wird siegen, denn sie ist unzerstörbar
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
Ok, for now the 'box creator-macro' works with Py2 / Qt4
Another thanks to @Christi from here!
The Boxcreator-Forum:
https://forum.freecadweb.org/viewtopic. ... 10#p311162
And here my System with which i do the next steps:
So, we have installed the box creator-macro as above and we will create a container under the desk to sort parts:
Dimensions for my Container: W: 475mm, H: 650mm, L: 600mm.
Thickness of the material: 9mm
Overhang in the front for the dazzle: 19mm
Another thanks to @Christi from here!
The Boxcreator-Forum:
https://forum.freecadweb.org/viewtopic. ... 10#p311162
And here my System with which i do the next steps:
Code: Select all
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16274 (Git)
Build type: Release
Branch: master
Hash: 7c760259a389b38b76da78e4f6e1f9be66714842
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
Dimensions for my Container: W: 475mm, H: 650mm, L: 600mm.
Thickness of the material: 9mm
Overhang in the front for the dazzle: 19mm
Die Liebe wird siegen, denn sie ist unzerstörbar
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
The next step is to delete the 'box':
Now we see this: To see how i can place the walls of the container on the CNC i have create a sketch with the dimensions of my machine: Result:
Select the 'Box' and delete them with 'DEL' on the keyboard.Now we see this: To see how i can place the walls of the container on the CNC i have create a sketch with the dimensions of my machine: Result:
Die Liebe wird siegen, denn sie ist unzerstörbar
- roerich_64
- Veteran
- Posts: 1465
- Joined: Thu May 21, 2015 7:00 pm
- Location: Ostfriesland
Re: Tutorial to prepare a part to generate gcode
Next steps:
1. Select the Path-WB
2. Create the job
We select the parts and click 'OK': Now we are in the 'Setup' and we can do the positioning of the walls:
Click in the canvas on the Top of the first part (bottom)
Click 'Z-Axis'
Click 'Z=0'
The part 'bottom' flips down. We have Z=0 at his top
Next: - Click the inner side of the left wall to define on which surface should be the Z-vector.
- Click 'Z-Axis'
- Click 'Z=0'
Result:
1. Select the Path-WB
2. Create the job
We select the parts and click 'OK': Now we are in the 'Setup' and we can do the positioning of the walls:
Click in the canvas on the Top of the first part (bottom)
Click 'Z-Axis'
Click 'Z=0'
The part 'bottom' flips down. We have Z=0 at his top
Next: - Click the inner side of the left wall to define on which surface should be the Z-vector.
- Click 'Z-Axis'
- Click 'Z=0'
Result:
Die Liebe wird siegen, denn sie ist unzerstörbar