Basic "easy" stuff? (Solved)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Basic "easy" stuff?

Post by GeneFC »

dkolars wrote: Thu Oct 21, 2021 12:29 am OK, here 'tis. TY.
I did not see any problem with the file, and I did not have any problem setting the stepdown

Capture.JPG
Capture.JPG (17.99 KiB) Viewed 1694 times

Capture2.JPG
Capture2.JPG (28.76 KiB) Viewed 1694 times


I tried several values, and the generated path was exactly as commanded.

Does your Profile task panel look like the one shown here?

I am using a very recent version of FreeCAD, but this operation has not changed much for quite a long time.

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)

Gene
dkolars
Posts: 56
Joined: Tue Oct 19, 2021 10:43 pm

Re: Basic "easy" stuff?

Post by dkolars »

My task panel is mostly the same... the Step Down is different format...
No 1.png
No 1.png (70.67 KiB) Viewed 1662 times
Also, I always have the offset between the body and the cutting path?
No 2.png
No 2.png (16.01 KiB) Viewed 1662 times
So, I created the G-code and ran it... the bit went to a position, touched the surface, went back up. Job completed, 6 secs. Sigh

Code: Select all

(Exported by FreeCAD)
(Post Processor: grbl_post)
(Output Time:2021-10-20 21:41:56.452158)
(Begin preamble)
G17 G90
G21
(Begin operation: Fixture)
(Path: Fixture)
G54
(Finish operation: Fixture)
(Begin operation: TC: Default Tool)
(Path: TC: Default Tool)
(TC: Default Tool)
(Begin toolchange)
( M6 T1.0 )
M3 S0.0
(Finish operation: TC: Default Tool)
(Begin operation: Profile)
(Path: Profile)
(Profile)
(Compensated Tool Path. Diameter: 5.0)
G0 Z2.461
G0 X29.762 Y30.246
G0 Z0.461
G1 X29.762 Y30.246 Z-0.635
G2 X22.627 Y7.619 Z-0.635 I-9.456 J-9.456 K0.000
G2 X7.135 Y18.467 Z-0.635 I-2.322 J13.170 K0.000
G2 X17.983 Y33.960 Z-0.635 I13.170 J2.322 K0.000
G2 X29.762 Y30.246 Z-0.635 I2.322 J-13.170 K0.000
G1 X29.762 Y30.246 Z-1.270
G2 X22.627 Y7.619 Z-1.270 I-9.456 J-9.456 K0.000
G2 X7.135 Y18.467 Z-1.270 I-2.322 J13.170 K0.000
G2 X17.983 Y33.960 Z-1.270 I13.170 J2.322 K0.000
G2 X29.762 Y30.246 Z-1.270 I2.322 J-13.170 K0.000
G1 X29.762 Y30.246 Z-1.905
G2 X22.627 Y7.619 Z-1.905 I-9.456 J-9.456 K0.000
G2 X7.135 Y18.467 Z-1.905 I-2.322 J13.170 K0.000
G2 X17.983 Y33.960 Z-1.905 I13.170 J2.322 K0.000
G2 X29.762 Y30.246 Z-1.905 I2.322 J-13.170 K0.000
G1 X29.762 Y30.246 Z-2.540
G2 X22.627 Y7.619 Z-2.540 I-9.456 J-9.456 K0.000
G2 X7.135 Y18.467 Z-2.540 I-2.322 J13.170 K0.000
G2 X17.983 Y33.960 Z-2.540 I13.170 J2.322 K0.000
G2 X29.762 Y30.246 Z-2.540 I2.322 J-13.170 K0.000
G0 Z2.461
G0 Z2.461
(Finish operation: Profile)
(Begin postamble)
M5
G17 G90
M2
OS: Ubuntu 20.04.3 LTS (XFCE/xubuntu)
64-bit
Version: 0.19.24291 (Git) AppImage
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
user1234
Veteran
Posts: 3345
Joined: Mon Jul 11, 2016 5:08 pm

Re: Basic "easy" stuff?

Post by user1234 »

dkolars wrote: Thu Oct 21, 2021 12:37 am Nope
Sorry tho hear. In this case, i can not help you forther.

Greetings
user1234
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Basic "easy" stuff?

Post by GeneFC »

dkolars wrote: Thu Oct 21, 2021 2:51 am My task panel is mostly the same... the Step Down is different format...No 1.png

Also, I always have the offset between the body and the cutting path? No 2.png
It appears you are using "US Customary" units. Frankly that is an utter disaster and has not been customary for many, many decades. I recommend a switch to "Imperial Decimal" units.

The offset occurs because you are looking at the original FC model, not the moved model in the Job.

Hide the "Pad" in the upper portion and show the "Model-Body" in the Job portion.

Capture.PNG
Capture.PNG (8.01 KiB) Viewed 1560 times


Both the FC model and the Job model (moved as per your instructions) are shown here, along with the actual path. Hide the one on the left.

Capture2.PNG
Capture2.PNG (25.74 KiB) Viewed 1560 times

Gene
dkolars
Posts: 56
Joined: Tue Oct 19, 2021 10:43 pm

Re: Basic "easy" stuff?

Post by dkolars »

OK, so the "default" view is the split-apart view, with the other, "real" view being available.

I switched the units to Imperial Decimal, and that did seem to work for some dimensions - I discovered if you want to change dimensions, you have to put "in" after the number... "0.025" will not work to affect a change, but "0.025 in" will.

Now, however, I have tried to run the G-code for this on my unit (using a stubby broken bit in my motor), and find that it moves to position, goes down INTO the wood and attempts to move in the circular pattern, WITHOUT the motor running. So, have to abort the running... Looking at the G-code that FC creates, I see that Z numbers are TOTALLY wrong... I have it set to step down by 0.025, starting at 0.00 (see Profile pic). The G-code is totally messed up, as it starts the first step @ -0.635, 2nd step down is -1.270, 3rd is -1.915, 4th (last) is -2.540 - see the Overall view for this.

My piece is 0.10" thick!!

Viewing the model view of the piece shows it looks fine:
Model-body Job Edit.png
Model-body Job Edit.png (99.13 KiB) Viewed 1515 times
Looking at the overall view, however, shows a problem:
Overall view.png
Overall view.png (130.6 KiB) Viewed 1515 times
Profile settings:
Profile.png
Profile.png (79.55 KiB) Viewed 1515 times

The program is also funky... note that the word "Job" is missing from the tree now... and, if I click on "Stock 001", the program crashes.

I deleted the Job, created a new one, Same results. Sigh.

Code: Select all

(Exported by FreeCAD)
(Post Processor: grbl_post)
(Output Time:2021-10-21 11:17:22.037695)
(Begin preamble)
G17 G90
G21
(Begin operation: Fixture)
(Path: Fixture)
G54
(Finish operation: Fixture)
(Begin operation: TC: Default Tool)
(Path: TC: Default Tool)
(TC: Default Tool)
(Begin toolchange)
( M6 T1.0 )
M3 S1000.0
(Finish operation: TC: Default Tool)
(Begin operation: Profile)
(Path: Profile)
(Profile)
(Compensated Tool Path. Diameter: 5.0)
G0 Z5.000
G0 X0.000 Y0.000
G0 X10.961 Y11.222
G0 X10.961 Y11.222 Z3.000
G1 X10.961 Y11.222 Z-0.635 F127.000
G2 X17.983 Y33.960 Z-0.635 I9.344 J9.567 K0.000 F254.000
G2 X33.475 Y23.112 Z-0.635 I2.322 J-13.170 K0.000 F254.000
G2 X22.627 Y7.619 Z-0.635 I-13.170 J-2.322 K0.000 F254.000
G2 X10.961 Y11.222 Z-0.635 I-2.322 J13.170 K0.000 F254.000
G1 X10.961 Y11.222 Z-1.270 F127.000
G2 X17.983 Y33.960 Z-1.270 I9.344 J9.567 K0.000 F254.000
G2 X33.475 Y23.112 Z-1.270 I2.322 J-13.170 K0.000 F254.000
G2 X22.627 Y7.619 Z-1.270 I-13.170 J-2.322 K0.000 F254.000
G2 X10.961 Y11.222 Z-1.270 I-2.322 J13.170 K0.000 F254.000
G1 X10.961 Y11.222 Z-1.905 F127.000
G2 X17.983 Y33.960 Z-1.905 I9.344 J9.567 K0.000 F254.000
G2 X33.475 Y23.112 Z-1.905 I2.322 J-13.170 K0.000 F254.000
G2 X22.627 Y7.619 Z-1.905 I-13.170 J-2.322 K0.000 F254.000
G2 X10.961 Y11.222 Z-1.905 I-2.322 J13.170 K0.000 F254.000
G1 X10.961 Y11.222 Z-2.540 F127.000
G2 X17.983 Y33.960 Z-2.540 I9.344 J9.567 K0.000 F254.000
G2 X33.475 Y23.112 Z-2.540 I2.322 J-13.170 K0.000 F254.000
G2 X22.627 Y7.619 Z-2.540 I-13.170 J-2.322 K0.000 F254.000
G2 X10.961 Y11.222 Z-2.540 I-2.322 J13.170 K0.000 F254.000
G0 Z5.000
G0 Z5.000
(Finish operation: Profile)
(Begin postamble)
M5
G17 G90
M2
OS: Ubuntu 20.04.3 LTS (XFCE/xubuntu)
64-bit
Version: 0.19.24291 (Git) AppImage
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Basic "easy" stuff?

Post by GeneFC »

dkolars wrote: Thu Oct 21, 2021 6:17 pm I have it set to step down by 0.025, starting at 0.00 (see Profile pic). The G-code is totally messed up, as it starts the first step @ -0.635, 2nd step down is -1.270, 3rd is -1.915, 4th (last) is -2.540 -
Obviously those numbers are 25.4 times too large, so the output is in mm instead of inches.

You need to add G20 to the g-code.

I have my standard postprocessor hard-coded, but I believe you can choose to output in inch units in the Job Edit >> Output tab by adding "-- inches" to the Arguments list. (without parentheses).

See the wiki for more details.

https://wiki.freecadweb.org/Path_Workbench

The g-code you attached shows G21 in the header. That is the code for metric.

Gene
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Basic "easy" stuff?

Post by TheMarkster »

I haven't used Path in a long time and can't really help with it, but I have suggestion. Switch to metric mode. FreeCAD was made for metric use by metric users. Many of the addons are made for metric use and pretty much untested for imperial. Imperial, frankly, is an afterthought. It works (mostly), but you will find the occasional quirk where it doesn't exactly work as expected, like you have found with the post processor. Enter your values in the f(x) field as metric, such as:

for 5/16" enter:

(5/16)*25.4

You'll be able to see the formula is (5/16) *25.4 so you'll know instantly it's 5/16", but FreeCAD will be using the metric value.

In this image I have a cylinder that is 5/16" diameter and 1" tall even though I'm in metric mode.
Snip macro screenshot-cff1ca.png
Snip macro screenshot-cff1ca.png (75.13 KiB) Viewed 1448 times
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Basic "easy" stuff?

Post by chrisb »

To add to TheMarkster's: You don't have to change all values in your model. If you switch to metric, everything stays at the same size.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
pathfinder
Posts: 315
Joined: Mon Oct 04, 2021 10:27 am

Re: Basic "easy" stuff?

Post by pathfinder »

Now, however, I have tried to run the G-code for this on my unit (using a stubby broken bit in my motor), and find that it moves to position, goes down INTO the wood and attempts to move in the circular pattern, WITHOUT the motor running.
That's probably because the origin of the stock is in the middle of the stock and that plus the safe height is where the job will start, had the same thing happen to me the first time.

When you create a job, select one of the upper vertices of the bounding box, then click "set origin".
dkolars wrote: Thu Oct 21, 2021 12:37 am
dk@dk-desktop:~/Downloads$ chmod a+x appimagetool-x86_64.AppImage
dk@dk-desktop:~/Downloads$ appimagetool-x86_64.AppImage
appimagetool-x86_64.AppImage: command not found
Nope
Try ./appimagetool-x86_64.AppImage
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Basic "easy" stuff?

Post by GeneFC »

chrisb wrote: Fri Oct 22, 2021 5:46 am To add to TheMarkster's: You don't have to change all values in your model. If you switch to metric, everything stays at the same size.
Here we go again. :?

Yes, the model stays the same in either type of units. However, it can be very inconvenient to work in metric if all the tools, machines, and materials are in imperial.

As I said several times in the past I worked exclusively with metric in my career. I use imperial for FreeCAD, including g-code, because everything in my workshop is based on imperial units. I guess I could replace everything, but I would rather use FreeCAD in the (well-supported) imperial mode.

There are only a couple of things in FreeCAD that do not work correctly in anything but metric. Non-linear operations such as "floor", "ceiling", and "integer" in the spreadsheet work in metric so the result in imperial is nonsense. Otherwise I have never found a single item that does not work right.

Some WBs are essentially perfect, such as the sketcher. One does not even need to add the " symbol or inches to dimensions. Other WBs (most) require adding the units, and a few just won't deal with anything but metric.

Gene
Post Reply