cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create ability to add a line of g-code in HSMWorks, like a comment without ( )

Create ability to add a line of g-code in HSMWorks, like a comment without ( )

I can add comments to my program by going to Drilling > Manual NC > Comment, but what if I want to add in a line of code in a specific spot? I can do that manually in my g-code, but it would be a time saver to be able to input a custom line of code right into HSMWorks where I know I want it. Can we add this functionality to HSMWorks 2019?

 

For one example, our Hurco mill has machine accuracy is controlled by a "G05.3 P#" - where # is a range from 1-100. For roughing, we set this to 80, every single time. For finishing we set this to 20, most every single time. I manually enter a comment in the HSMWorks tree where I want to modify it, then in my g-code I go and delete the parenthesis. I would like the ability to just go to "Drilling > Manual NC > Direct Code" and type in "G05.3 P80" and have it show up right there in my code and not have to go find it to delete my comment parenthesis.

 

Is this feasible to implement and do you folks think this is okay to add?

 

Thanks,

Kyle

2 Comments

@KyleJansson

The Manual NC -> PassThrough is designed for this.

By default, it's not activated in the post because you can cause yourself and the machine harm if you fill in something wrong.

 

Therefore I would advise doing two things:

1. Vote for this Idea. So we can make our own Manual NC options. So you would be able to make an input box for this:

https://forums.autodesk.com/t5/hsm-ideas/create-your-own-manual-nc-options/idi-p/5945479

2. Use Manual NC -> Action instead. And Make that output the line for you.

That way you would give in P80 and the post processor would know to write G05.3 P80.

If you then would write O80 in error the post would not output the wrong code.

 

(For this to work you need to change your post processor a little.

It would need code like this: (It is possible that the Function OnParameter is already present in your post processor.)

function onParameter(name, value) {
if(name == "action"){
value = value.toUpperCase(); 
if(value.charAt(0) == "P"){
writeBlock("G05.3" + value);
} else{ 
error(localize("Unknown Action Manual NC"))
} 

)

cj.abraham
Alumni
Status changed to: Archived

As Lauren's said, this is already possible through some post modifications.

 

The post can be configured to simply pass a text string into the gcode (passthrough), which doesn't always put the line exactly where it is needed. This is usually not the ideal workflow.

 

If you want to have the line appear in a certain place, is it possible to use Manual NC: Action (or similar) to command the post to perform a function that will know exactly what needs to go where. An example would be "Manual NC: Action, Text: G05.3 P20." This would put the post into "P20" mode until another manual NC action changes the P value. 

 

It is also possible to configure the post to need no input from the user to choose the correct setting. The post can know when an operation is for roughing, finishing, is a drilling toolpath, etc, so the post itself can have logic built in and pick the right P value for you automatically, so long as you know what the numbers you want are when you write the logic into the post.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea