Is is possible to have a post processor make calculations to come up with a number?
I have a Cobra with recoil, and I want the linear speed of the A-axis to match the speed of my Y-axis.
So what I want is my post processor to assign a separate feedrate to the A-axis that would be calculated as
([FC]114.65/[WRAP_DIA]).
For now, I put in a line "[N] F 10000 A", where I can make that calculation myself and manually change the '10000' to whatever angular speed I need. But it would be nice to have the post processor make that calculation automatically, so I don't have to edit the G-code for each tool that uses a different speed.
"[N] F ([FC]114.65/[WRAP_DIA]) A", where everything in the parenthesis would be calculated automatically.
making calculations in a post processor
- rscrawford
- Vectric Wizard
- Posts: 1102
- Joined: Mon Jan 17, 2011 6:49 pm
- Model of CNC Machine: CAMaster Cobra 408 ATC, ShopSabre IS408
- Location: Wetaskiwin, Alberta
- Contact:
making calculations in a post processor
Russell Crawford
http://www.cherryleaf-rustle.com
http://www.cherryleaf-rustle.com
Re: making calculations in a post processor
Hi,
Did you get a solution on this issue? I need to make some small calculations to output spoilboard thickness in my code.
Did you get a solution on this issue? I need to make some small calculations to output spoilboard thickness in my code.
- IslaWW
- Vectric Wizard
- Posts: 1402
- Joined: Wed Nov 21, 2007 11:42 pm
- Model of CNC Machine: CNC Controller Upgrades
- Location: Bergland, MI, USA
Re: making calculations in a post processor
Thomas....
This is an old post, but not an uncommon ask. Russell's problem has been solved as the current CAMaster post processors have this calculation, in its corrected form, included. Your solution is more dependent on your controllers features than the ability to modify or place those calculations into a Vectric post processor. You will need to find out if or which operands you can use with your controller and what is the acceptable syntax.
This is an old post, but not an uncommon ask. Russell's problem has been solved as the current CAMaster post processors have this calculation, in its corrected form, included. Your solution is more dependent on your controllers features than the ability to modify or place those calculations into a Vectric post processor. You will need to find out if or which operands you can use with your controller and what is the acceptable syntax.
Gary Campbell
GCnC Control
ATC & Servo Controller Controller Upgrades
GCnC411 (at) gmail.com
GCnC Control
ATC & Servo Controller Controller Upgrades
GCnC411 (at) gmail.com