← All bug reports

FS#2458mygcode [PF] returns the valie of the feed rate from the tool path and not the correct plunge rate

Type
Bug
Status
Closed
Resolution
Not a bug
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.27.9
Operating system
All
Reported
2023-03-14 by seaglass23
Closed
2023-03-27 by andrew

There are not a lot of waterjet resources so I went ahead an tried to modify mygcode.js.

The issue is that plunge rate is entered in the tool and that shows up in the toolpath. The water jet wants to see that number to determine how long it holds in place to pierce the work. It needs it to be displayed as a prefix "S" followed by time in seconds and finally a period. I had been just hard coding a 2 second default time as I only cut glass but recently found some circumstance where I need different vaules. It is also more user friendly to get it to work correctly.

 	[// variables: Change Plunge Rate prefix from F to S
   	 //                   			 name,                  ID,                     always, prefix, decimals, options
		this.registerVariable("plungeRate",          "FP",                   true, "S", 0);

It needs to show up in the header as M1407 = [FP] which the water jet uses as a default pierce time after forced stop. In this instance it looks like M1407 = S2. This is working in the code currently.

For each remaining toolpath the Waterjet needs a pierce time.

M3
M8
G [FP].

And this is were it falls apart. I have red lined the gcode in a word document highlighting the first few problem instances. The first instance displays the value for Feed Rate and not Plunge Rate.

<CODE>: SELECT ALL

M3
M8
G4 S240.  Wrong value, should be as above "S2." but instead it grabbed the feed rate value from toolpath 1 "240"

</code>

Thanks.
Version:
3.27.8.0 (3.27.8)
Internet:
QCAD.org
Build Date:
Oct 6 2022
Revision:
dea3962
Qt Version:
5.13.2
Architecture:
x86_64
Compiler:
MSVC++ 14.0 (2015)

Comments (1)

Closure comment

This needs to be addressed in the post processor.