Changing default of G64 to add parameters or set to G61
- jpvonoy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
12 Jan 2021 18:12 #195101
by jpvonoy
Changing default of G64 to add parameters or set to G61 was created 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.
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
12 Jan 2021 19:32 #195108
by tommylight
Replied by tommylight on topic Changing default of G64 to add parameters or set to G61
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.
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.
- jpvonoy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
15 Jan 2021 02:41 #195394
by jpvonoy
Replied by jpvonoy on topic Changing default of G64 to add parameters or set to G61
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?
[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.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5709
- Thank you received: 2087
15 Jan 2021 06:08 - 15 Jan 2021 06:08 #195407
by phillc54
Replied by phillc54 on topic Changing default of G64 to add parameters or set to G61
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.
It is also good practice to set modal codes in your gcode files as the documentation you quoted suggests.
Last edit: 15 Jan 2021 06:08 by phillc54.
The following user(s) said Thank You: jpvonoy
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
15 Jan 2021 15:18 #195439
by andypugh
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.
Replied by andypugh on topic Changing default of G64 to add parameters or set to G61
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.
- jpvonoy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
15 Jan 2021 16:14 #195451
by jpvonoy
Thanks for that clarification. I didn't realize that.
Replied by jpvonoy on topic Changing default of G64 to add parameters or set to G61
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.
- Michael
- Offline
- Platinum Member
Less
More
- Posts: 335
- Thank you received: 59
15 Jan 2021 16:14 #195452
by Michael
Replied by Michael on topic Changing default of G64 to add parameters or set to G61
I manually add the G64 P.nnn after fusion processes the code and brings up the ngc file preview. Only takes a second to add for the whole file. You can also add it while doing your CAD in fusion 360 by adding an NC comment if you wanted to change it between operations or tools. I am not as familiar with this way.
You may want to change the P value based on the cutter size and accuracy levels you would like to achieve.
You may want to change the P value based on the cutter size and accuracy levels you would like to achieve.
The following user(s) said Thank You: jpvonoy
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
16 Jan 2021 19:27 #195563
by andypugh
Replied by andypugh on topic Changing default of G64 to add parameters or set to G61
The post-processor files are not _that_ hard to understand and edit.
It would be fairly easy to add a G64 at the same point in the code that it inserts a G21.
It would be fairly easy to add a G64 at the same point in the code that it inserts a G21.
Please Log in or Create an account to join the conversation.
- jpvonoy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
- Thank you received: 0
16 Jan 2021 19:50 #195564
by jpvonoy
Replied by jpvonoy on topic Changing default of G64 to add parameters or set to G61
Agreed. I have already created a modified post processor that accomplishes it, but I was thinking that it made more sense to change it in LinuxCNC (which I already have had to customize for other reasons, and therefore am already keeping track of its configuration) rather than bringing in another item that had to be modified and kept track of.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
16 Jan 2021 23:59 #195599
by andypugh
There is no harm, and some potential benefit in doing it everywhere.
If you set it in LinuxCNC then any G-code program can change it, and it will stay changed.
So it should be set in g-code that needs it set as well as defaulting on in your config.
Replied by andypugh on topic Changing default of G64 to add parameters or set to G61
Agreed. I have already created a modified post processor that accomplishes it, but I was thinking that it made more sense to change it in LinuxCNC
There is no harm, and some potential benefit in doing it everywhere.
If you set it in LinuxCNC then any G-code program can change it, and it will stay changed.
So it should be set in g-code that needs it set as well as defaulting on in your config.
Please Log in or Create an account to join the conversation.
Time to create page: 0.091 seconds