Changing default of G64 to add parameters or set to G61

More
5 years 9 months ago #195101 by jpvonoy
I'm using 2.8 and haven't yet found where/how G64 gets set by default. If I want to change it to add a P value or change it to G61, how would I go about it?

I see this in the ini documentation, but I don't see this line in my ini file, so I don't think it's getting set with this method:

"RS274NGC_STARTUP_CODE = G17 G20 G40 G49 G64 P0.001 G80 G90 G92 G94 G97 G98 - A string of NC codes that the interpreter is initialized with. This is not a substitute for specifying modal g-codes at the top of each ngc file, because the modal codes of machines differ, and may be changed by g-code interpreted earlier in the session."

Is that note basically discouraging people from setting it in the ini file, or is that how I should make the change? Would I add the following to my ini file, or do I need to include all of the other default modals in this list?

RS274NGC_STARTUP_CODE = G61

I strictly use Fusion 360 for CAM, and the post processor for LinuxCNC never sets G64 or G61 in any files, so I'm thinking it shouldn't be a problem to change the LinuxCNC default, right?

Alternatively, I know I could modify the post processor to add the desired path mode at the beginning of the file (I've already done so just to learn how). I think I would prefer to control it from my LinuxCNC configuration.

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

More
5 years 9 months ago #195108 by tommylight
Add it to the ini and post processor, that way whatever happens one of them will be active, till it is changed in gcode if needed.
It can also be added using MDI, but that gets tedious after a while.

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

More
5 years 9 months ago #195394 by jpvonoy
According to this I think I could also set it using MDI commands from the ini file using this method:

[HALUI] section
MDI_COMMAND = G61

Would that be preferred to using RS274NGC_STARTUP_CODE, or is there no difference either way?

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

More
5 years 9 months ago - 5 years 9 months ago #195407 by phillc54
If you want to set it in the ini file then use RS274NGC_STARTUP_CODE, that is what this variable is for.

It is also good practice to set modal codes in your gcode files as the documentation you quoted suggests.
Last edit: 5 years 9 months ago by phillc54.
The following user(s) said Thank You: jpvonoy

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

More
5 years 9 months ago #195439 by andypugh

jpvonoy wrote: According to this I think I could also set it using MDI commands from the ini file using this method:

[HALUI] section
MDI_COMMAND = G61?


MDI_COMMANDS execute when a HAL pin changes state. They are generally connected to physical (or onscreen) buttons.

I don't see that being the best way to do what you want to do.
The following user(s) said Thank You: jpvonoy

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

More
5 years 9 months ago #195451 by jpvonoy

andypugh wrote: MDI_COMMANDS execute when a HAL pin changes state. They are generally connected to physical (or onscreen) buttons.


Thanks for that clarification. I didn't realize that.

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

Time to create page: 0.256 seconds
Powered by Kunena Forum