Option GCODE

More
12 Apr 2020 12:25 #163746 by mydani
Option GCODE was created by mydani
Hello

Anyone knows what the intention for GCODE option is? In the combo user fields there are values, user specific and GCODE.

What does it do?

Regards
Daniel

Please Log in or Create an account to join the conversation.

More
12 Apr 2020 12:49 #163748 by skrap58
Replied by skrap58 on topic Option GCODE
I believe you can enter custom gcode into nativecam but it seems like you have to type the gcode in. Unless I am missing something. It would be nice if one could copy and paste the gcode into this field.

Bill

Please Log in or Create an account to join the conversation.

More
12 Apr 2020 12:52 #163750 by mydani
Replied by mydani on topic Option GCODE
Hm
This is what I also expected, so I have to dig into it again. Could not find documentation about this option.

I wanted to do a circular drilling operation but with custom GCODE (for threading instead of drilling) and it was not really working out, threw some error in the NC interpreter.

Please Log in or Create an account to join the conversation.

More
12 Apr 2020 16:53 - 12 Apr 2020 23:11 #163788 by FernV
Replied by FernV on topic Option GCODE
The option Gcode for value is usefull when you want to set the same value to different item or for a custom loop.

Example :

You add 'Gcode' and write in it's text box this
#<param 1> = 100
#<param 2> = 60
Note that you write code that lcnc can interpret

Then you add a 'Circle'
to set 'Diameter' you select 'Change to gcode' and type '#<param 1>'

You also add a 'Rectangle'
you also change 'Width' to gcode and type #<param 1>
you also change 'Height' to gcode and type #<param 2>

Now if you change the value of #<param 1> = 120 and #<param 2> = 70
your 'Circle' and 'Rectangle' get the new values

It can also be used before a 'Radial Array' or 'Rectangular Array' and add as the last item a new 'GCode'
and you write
#<param 1> = [#<param 1> + 10]
#<param 2> = [#<param 2> + 6]
Note that it is usefull only on repeating groups

Hoping this help

Regards
Fern

p.s. this could not be available in the next release
Last edit: 12 Apr 2020 23:11 by FernV.

Please Log in or Create an account to join the conversation.

More
13 Apr 2020 16:16 #163880 by skrap58
Replied by skrap58 on topic Option GCODE
Thank you Fern.

The reply clarified a lot for me.

Bill

Please Log in or Create an account to join the conversation.

More
13 Apr 2020 16:23 #163881 by mydani
Replied by mydani on topic Option GCODE
Hello Fern,

thanks now it is clear. I suggest to change the naming for this option from GCODE to Parameter though. If you think it’s ok I will go ahead and do it on branch.

Regards
Daniel

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum