Using Spindle and Axis C commands simultaneously

More
5 years 9 months ago #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 to join the conversation.

More
5 years 9 months ago #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)

Please Log in to join the conversation.

More
5 years 9 months ago #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 to join the conversation.

More
5 years 9 months ago #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 to join the conversation.

More
5 years 8 months ago #199343 by chris@cnc
I will also connect my C-axis in the next few days. Have you found a solution?

Please Log in to join the conversation.

More
5 years 8 months ago #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.

Please Log in to join the conversation.

More
1 year 8 months ago #321464 by COFHAL
Could you share with me your configuration to use the servo that controls the spindle and also to use it with the C axis?

Please Log in to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum