Skip to main content
Discussion Topic
User avatar

Parametric G code programming

I have been successfully radiusing and fretwire slotting guitar fretboards in the X/Z plane using G18 and multiple G3 passes. I have a Workbee with Duet2 and would love to use parametric programming. I currently write G code on a text editor and use cut and paste to generate the large number of code itterations , sometimes in the hundreds. 19 frets with 6 passes of a 0.7mm end mill!

Can I use parametric code with a Duet2 or is there a way of “pre processing to generate a text file?

Lindsay

Reply to discussion Subscribe to discussion

Is this a worthwhile discussion?

Score 0
Add a comment

3 Replies

User avatar

Hi Lindsay,

With the controller, you can use variables commands: https://duet3d.dozuki.com/Wiki/GCode_Met...

So with this, it would be possible to build a parametric G-Code file.

Robert

Was this reply helpful?

Score 0
Add a comment
User avatar

Hi Robert

To test if I can use a parametric G-Code file with WorkBee Control 3.3.0 - V1.2 I have tried to upload a file that should declare a global variable but I get “Error—-meta command: unknown variable “. I did add a simple G Code instruction as a second line and this works fine if I delete the declaration line.

Block Image

Block Image

Block Image

Was this reply helpful?

Score 0
Add a comment
User avatar

Hi Lindsay,

I think your code to declare it is incorrect.

It should be global testvar1 = 0

Best Regards

Robert

Was this reply helpful?

Score 0
Add a comment

Join the discussion

Author avatar Lindsay will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 1

Past 30 Days: 1

All Time: 136