G33.1 synchronized tapping problem
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4538
- Thank you received: 2018
19 Mar 2025 07:55 - 19 Mar 2025 10:32 #324268
by Aciera
Replied by Aciera on topic G33.1 synchronized tapping problem
I might have found a clue as to what causes this problem with G33.
I just noticed on my test setup that synchronized motion (eg G33, G33.1) shows this erratic behavior if 'joint.n.index-enable' (where n is the joint for the caxis) is connected to the encoder index-enable and subsequently also to spindle.n.index-enable. This is used to home the caxis to index on startup.
In your rev 1.713 config you have
Seems to me like a bug in how joint index-enable is handled.
[edit]
I just confirmed this on my test bed (caxis is on joint 4):
1. start config and home all (joint 4 is set to home to index)
2. testing g33 shows broken behavior (does a rapid move to target coordinate)
3. open 'hal configuration' tool and issue HAL command: 'unlinkp joint.4.index-enable'
4. testing g33 shows expected behavior
5. issue HAL command: 'net c-index-enable joint.4.index-enable'
6. testing g33 shows broken behavior (does a rapid move to target coordinate)
I just noticed on my test setup that synchronized motion (eg G33, G33.1) shows this erratic behavior if 'joint.n.index-enable' (where n is the joint for the caxis) is connected to the encoder index-enable and subsequently also to spindle.n.index-enable. This is used to home the caxis to index on startup.
In your rev 1.713 config you have
net SPIN0-INDEX-ENABLE <=> joint.2.index-enableSeems to me like a bug in how joint index-enable is handled.
[edit]
I just confirmed this on my test bed (caxis is on joint 4):
1. start config and home all (joint 4 is set to home to index)
2. testing g33 shows broken behavior (does a rapid move to target coordinate)
3. open 'hal configuration' tool and issue HAL command: 'unlinkp joint.4.index-enable'
4. testing g33 shows expected behavior
5. issue HAL command: 'net c-index-enable joint.4.index-enable'
6. testing g33 shows broken behavior (does a rapid move to target coordinate)
Last edit: 19 Mar 2025 10:32 by Aciera.
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4538
- Thank you received: 2018
19 Mar 2025 10:25 #324276
by Aciera
Replied by Aciera on topic G33.1 synchronized tapping problem
I have found a workaround for the issue described above using hal commands.
Here is my config including the hal component I use to disconnect the encoder position value and the modified orient component to rehome to index before orienting the spindle:
Some notes:
- Rotary (Caxis) is on Joint 4, uses a stepgen with settings from ini [JOINT_4] section
- Spindle also uses stepgen but with setting from ini [SPINDLE_0]
- Startup mode is rotary with joint.4 homing to index (ie joint.4.index-enable is connected in HAL)
- 'M419' moves rotary to 0 position, sets hal pin to freeze joint.4.pos-fb and calls M119 to set stepgen values as set in ini [SPINDLE_0] and disconnect 'joint.4.index-enable' to avoid breaking sinchronized motion as outlined in my last post
- 'M420' orients the spindle to 0° (using index to rehome first) sets hal pin to reconnect the encder to joint.4.pos-fb and calls M120 to set stepgen values as set in ini [JOINT_4] and reconnect the 'joint.4.index-enable' pin
Here is my config including the hal component I use to disconnect the encoder position value and the modified orient component to rehome to index before orienting the spindle:
Some notes:
- Rotary (Caxis) is on Joint 4, uses a stepgen with settings from ini [JOINT_4] section
- Spindle also uses stepgen but with setting from ini [SPINDLE_0]
- Startup mode is rotary with joint.4 homing to index (ie joint.4.index-enable is connected in HAL)
- 'M419' moves rotary to 0 position, sets hal pin to freeze joint.4.pos-fb and calls M119 to set stepgen values as set in ini [SPINDLE_0] and disconnect 'joint.4.index-enable' to avoid breaking sinchronized motion as outlined in my last post
- 'M420' orients the spindle to 0° (using index to rehome first) sets hal pin to reconnect the encder to joint.4.pos-fb and calls M120 to set stepgen values as set in ini [JOINT_4] and reconnect the 'joint.4.index-enable' pin
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4538
- Thank you received: 2018
19 Mar 2025 10:29 #324279
by Aciera
Replied by Aciera on topic G33.1 synchronized tapping problem
Also note that [JOINT_4] FERROR=10 and MIN_FERROR=1 may seem a bit large but are due to a lag in the simulated encoder feedback from the Mitsubishi controller I use here.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 1954
- Thank you received: 792
19 Mar 2025 11:24 #324283
by spumco
Have you raised an issue on GH about this?
NOTE: It'll be a bit before I can test this on my lathe as the 2nd motor I was planning to use turned out not to work. So I threw money at the problem and have to rearrange my electrical cabinet to fit a significantly larger drive. Re-wiring seems to take me an eternity.
Replied by spumco on topic G33.1 synchronized tapping problem
Thank you so much for confirming the behavior I saw, and for the workaround guidance.I might have found a clue as to what causes this problem with G33.
Have you raised an issue on GH about this?
NOTE: It'll be a bit before I can test this on my lathe as the 2nd motor I was planning to use turned out not to work. So I threw money at the problem and have to rearrange my electrical cabinet to fit a significantly larger drive. Re-wiring seems to take me an eternity.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4538
- Thank you received: 2018
19 Mar 2025 12:02 #324286
by Aciera
Not yet. I would like to have somebody else confirm this first.
Replied by Aciera on topic G33.1 synchronized tapping problem
Have you raised an issue on GH about this?
Not yet. I would like to have somebody else confirm this first.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- jpg
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 13
09 Sep 2025 06:52 #334673
by jpg
Replied by jpg on topic G33.1 synchronized tapping problem
Hello Aciera, regarding your “patch,” I would like to know if it is functional? Have you had any feedback? It is indeed a matter of correcting the defect concerning the tapping after the execution of the caxis component.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4538
- Thank you received: 2018
09 Sep 2025 15:08 - 09 Sep 2025 15:40 #334710
by Aciera
Replied by Aciera on topic G33.1 synchronized tapping problem
No feedback from other users so far but the workaround disconnecting the 'joint.n.index-enable' (where n is the joint for the caxis) certainly worked for me.
Note though that I have since dismantled my test setup, so no further testing has been done on my part.
[edit]
I have now filed an issue on git:
github.com/LinuxCNC/linuxcnc/issues/3556
Note though that I have since dismantled my test setup, so no further testing has been done on my part.
[edit]
I have now filed an issue on git:
github.com/LinuxCNC/linuxcnc/issues/3556
Last edit: 09 Sep 2025 15:40 by Aciera.
The following user(s) said Thank You: jpg
Please Log in or Create an account to join the conversation.
- jpg
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 13
09 Sep 2025 19:02 #334725
by jpg
Replied by jpg on topic G33.1 synchronized tapping problem
Thanks, Aciera. I'll check with Cofhal. He had a setup that seemed to work well. Spumco hasn't said anything since... I plan to give it a try before Christmas (purchase of a 7i96). I'll keep you posted. Thanks again for the feedback and your efforts to make this C-axis fully functional.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 1954
- Thank you received: 792
23 Sep 2025 14:26 #335326
by spumco
I've still not gotten the new spindle motor completely hooked up and tested, much less tried Aciera's fix. Hoping to get back to it in the next month or so now that the outside work has finished.
Replied by spumco on topic G33.1 synchronized tapping problem
I've been on an LCNC hiatus for 6 months due to some other work eating up all my free time.Spumco hasn't said anything since...
I've still not gotten the new spindle motor completely hooked up and tested, much less tried Aciera's fix. Hoping to get back to it in the next month or so now that the outside work has finished.
Please Log in or Create an account to join the conversation.
- jpg
- Offline
- Premium Member
-
Less
More
- Posts: 105
- Thank you received: 13
26 Sep 2025 11:22 #335450
by jpg
Replied by jpg on topic G33.1 synchronized tapping problem
Hello Spumco, no worries, I just wanted to know where you were with the C axis.
Please Log in or Create an account to join the conversation.
Time to create page: 0.324 seconds