import gCode
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
import gCode
Hello,
how can I import a readymade GCode to simulate it.
I want to cut geographic models of buildings with a 45m radius tool to simulate lightning protection. (osm models out of BlenderGIS for example)
I need those cutted surfaces to show the protected areas. (compare those envelops with and without thunder protection items)
Pycam or Freemill can generate gcodes. But they do not export the cutted model.
Blender-Cam needs updates and how-tos..
Sounds like Freecad is the last ressort
Thank you for your help.
Lukas
Esslingen
how can I import a readymade GCode to simulate it.
I want to cut geographic models of buildings with a 45m radius tool to simulate lightning protection. (osm models out of BlenderGIS for example)
I need those cutted surfaces to show the protected areas. (compare those envelops with and without thunder protection items)
Pycam or Freemill can generate gcodes. But they do not export the cutted model.
Blender-Cam needs updates and how-tos..
Sounds like Freecad is the last ressort
Thank you for your help.
Lukas
Esslingen
Re: import gCode
Sorry,
managed it... create a solid.. create a new path, even if empty.. open the gcode file via normal import..
not yet where i want to be, but progressing..
Lukas
managed it... create a solid.. create a new path, even if empty.. open the gcode file via normal import..
not yet where i want to be, but progressing..
Lukas
Re: import gCode
I can see some path next to my solid cube.. but it still not a gcode path..or is this it? how to let it run/simulate..
copy&paste inside the path editor?
in property 'Path'/'Gcode' there is a bunch of commands..
need to have a checked tool,operation,model,stock and setup?
hard to get through..
Lukas
copy&paste inside the path editor?
in property 'Path'/'Gcode' there is a bunch of commands..
need to have a checked tool,operation,model,stock and setup?
hard to get through..
Lukas
Re: import gCode
need to remove to setup infos out of the pycam/freemill export file..
do I?
lukas
do I?
lukas
Re: import gCode
You should at least upload the gcode as well. The standard 10x10x10 cube doesn't help much.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: import gCode
You might be interested in PR 3600
With this, you should be able to import external gcode using the gcode_pre.py preprocessor. It will create Custom ops that behave more like regular operations. You can enable/disable them and even apply dressups. So you could import externally created gcode and then add holding tags for example.
I would appreciate some testing.
With this, you should be able to import external gcode using the gcode_pre.py preprocessor. It will create Custom ops that behave more like regular operations. You can enable/disable them and even apply dressups. So you could import externally created gcode and then add holding tags for example.
I would appreciate some testing.
Re: import gCode
Thanks for your help..
is this pr4600 already in 0.19.21622 ?
Lukas
is this pr4600 already in 0.19.21622 ?
Lukas
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: import gCode
Pr 3600 hasn't been merged yet. I don't like merging my own stuff without giving other developers a chance to comment. If I don't hear otherwise, I'll merge it later this week
Re: import gCode
as long as something new is being introduced. On the example of an attempt to import my code, I noticed that if we use comments marked / instead of () in our code, we may get an empty trajectory instead. And I would like to see comments for /, as well as the use of conditions, loops, subroutines, processed correctly during import -
o<101> sub
G0 X[#2 * 0.00] Y[#3 * 762.50]
G1 F[#<_pm>] Z[#1]
G1 F[#<_pb>]
X[#2 * 0.00] Y[#3 * 762.50] Z[#1]
X[#2 * 0.08] Y[#3 * 1200]
o<prav> if [#4 ge 1]
G0 Z5
G0 Y[#3 * [1200 + #<_hp>]]
G1 F[#<_pm>] Z[#1]
G1 F[#<_pb>]
o<prav> endif
/X[#2 * 0.08] Y[#3 * 1143.73] Z[#1]
X[#2 * 0.00] Y[#3 * 1525.00] Z[#1]
X[#2 * 28.13] Y[#3 * 1524.90] Z[#1]
X[#2 * 45.83] Y[#3 * 1524.80] Z[#1]
X[#2 * 55.08] Y[#3 * 1524.60] Z[#1]
X[#2 * 57.58] Y[#3 * 1524.40] Z[#1]
o<101> endsub
o<101> call [-1] [1] [1] [0]
o<101> sub
G0 X[#2 * 0.00] Y[#3 * 762.50]
G1 F[#<_pm>] Z[#1]
G1 F[#<_pb>]
X[#2 * 0.00] Y[#3 * 762.50] Z[#1]
X[#2 * 0.08] Y[#3 * 1200]
o<prav> if [#4 ge 1]
G0 Z5
G0 Y[#3 * [1200 + #<_hp>]]
G1 F[#<_pm>] Z[#1]
G1 F[#<_pb>]
o<prav> endif
/X[#2 * 0.08] Y[#3 * 1143.73] Z[#1]
X[#2 * 0.00] Y[#3 * 1525.00] Z[#1]
X[#2 * 28.13] Y[#3 * 1524.90] Z[#1]
X[#2 * 45.83] Y[#3 * 1524.80] Z[#1]
X[#2 * 55.08] Y[#3 * 1524.60] Z[#1]
X[#2 * 57.58] Y[#3 * 1524.40] Z[#1]
o<101> endsub
o<101> call [-1] [1] [1] [0]