Using Spindle and Axis C commands simultaneously

More
31 Dec 2020 21:48 #193681 by RBC
Hi-
I have finally compiled the master. At least I believe so. It created a hostmot2.so under rtlib folder. It is about 1 mb in size. I copied this to my modules folder and linuxcnc started without errors.
I added as the first line in my M101 code(that goes back angle mode)
halcmd setp hm2_7i92.0.stepgen.04.position-reset 1
It does not seem to reset the counter. What am I missing here?

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

More
31 Dec 2020 23:05 - 01 Jan 2021 00:07 #193687 by PCW
Position_reset resets the position feedback

Did you verify that the new pin exists?
Also note that the reset pin must be set true
and then set false (or the position
feedback will be stuck at 0)
Last edit: 01 Jan 2021 00:07 by PCW.
The following user(s) said Thank You: RBC

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

More
01 Jan 2021 15:52 #193739 by RBC
Thank you. That worked. I was trying with position-reset, but it was position_reset. I also added another line with false, so it is not stuck in reset.
Now I need to turn the C axis to 0 before all this. If I am left with 734000 degrees after a turning op, I will be at 320 degrees, so will need to turn another 40 degrees.
This position info is in stepgen.position-fb only at this moment. How can I move this to a variable so I can use it in M101 or a remap of it?

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

More
06 Jan 2021 19:27 #194265 by RBC
Hi-
I am also trying to use G33, G76 commands with this setup. The instructions says I need to connect an index output to encoder.Z phase pin. Is there a way to send a signal to this pin every 800 steps somehow.
Thanks,

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

More
18 Feb 2021 20:26 - 18 Feb 2021 20:27 #199343 by chris@cnc
I will also connect my C-axis in the next few days. Have you found a solution?
Last edit: 18 Feb 2021 20:27 by chris@cnc.

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

More
18 Feb 2021 20:34 - 18 Feb 2021 20:35 #199345 by RBC
This is what I have done so far.
-Used PCW s update for position-reset, so I can switch from spindle mode to C mode and back.
-If you need to use G33 and G76, that is a different story. You will need to have encoder A/B and index connected to hal pins.
-I chose not to use G33 and G76 for now, and only use C axis, which you can more precisely make thread and position anyways.
Last edit: 18 Feb 2021 20:35 by RBC.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum