G33 does not adjust IPM after the first one. 2.9.0 pre-3376

More
5 years 9 months ago #195247 by RBC
Hi-
I am using G33 z-0.5 K0.125, and S100.
The first time I open linuxcnc, it runs correctly and adjusts the IPM to around 12.5. When I try the same after this, it goes to max speed, in my case 60 IPM. Also it does not obey MAX_VELOCITY adjustment on axis.
Any ideas?

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

More
5 years 9 months ago #195248 by andypugh
Which version of LinuxCNC?

This could, potentially be a HAL setup prblem.

But could also be the unwelcome return of github.com/LinuxCNC/linuxcnc/issues/704

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

More
5 years 9 months ago #195253 by RBC
2.9.0 pre-3376, should be the latest update.

I am using a clearpath servo in stepper mode as the lathe spindle with mesa 7i92 board.
I have modified the hostmot2 with additional outputs for index-enable and revs for spindle.n.revs.
When I look at those pins on hal meter, they all check out.

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

More
5 years 9 months ago #195255 by andypugh
So, you are saying that the spindle encoder resets at the start of the G33 move, but the axis still moves at full speed?

Can you confirm that the spindle.0.revs pin is zeroed at the start of the G33 move?

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

More
5 years 9 months ago - 5 years 9 months ago #195258 by RBC
That is what I was about write.
spindle.0.revs is not resetting, it keeps counting up as spindle runs.
I have added code in hostmot2 that divides the hm2 position-fb to 360 and I feed this to spindle.0.revs in the hal file.
Last edit: 5 years 9 months ago by RBC.

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

More
5 years 9 months ago #195259 by andypugh
I think that you have broken the position feedback.

If you see the index-enable go high, then low, and the encoder position and counts don't reset to zero then the encoder counter is not working properly.
The following user(s) said Thank You: RBC

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

Time to create page: 0.177 seconds
Powered by Kunena Forum