Receiving encoder signals but can get any rotation as a spindle

More
22 Jun 2024 22:45 #303574 by Dave2024
Can someone help me get my AC servo working as a spindle in Pncconf?  I’ve so far been able to set the port as an Axis StepGen and then I’m able to jog the motor perfectly and test it out but when I attempt to set the port as a Spindle StepGen I can’t get any rotation.  I have also connected the encoder signal wires from the drive to the encoder port and I’m successfully receiving encoder data.  I can’t seem to go any further now to making the system work though.  I’ve also tried setting the encoder into differential mode and single ended mode of which both are displaying feedback data but still can’t rotate.  Is there something I’m clearly doing wrong?   Any assistance would be greatly appreciated.  Thanks

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

More
23 Jun 2024 01:02 #303581 by PCW
Can you post your current hal and ini files?

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

More
23 Jun 2024 01:36 - 23 Jun 2024 01:38 #303583 by Dave2024
Last edit: 23 Jun 2024 01:38 by Dave2024.

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

More
23 Jun 2024 01:38 #303584 by Dave2024
Sorry didnt mean to post the ini as a reply
Attachments:

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

More
23 Jun 2024 03:46 - 23 Jun 2024 03:46 #303597 by PCW
Not sure why you would get no steps but there are some issues:

net spindle-enable => [HMOT](CARD0).stepgen.04.enable

Should be:

net machine-is-on           =>  [HMOT](CARD0).stepgen.04.enable

Otherwise setting the spindle off results in an instant stop (this is fixed in newer versions of pncconf)

To debug why you are getting no spindle movement:

Enable the spindle and set its speed to 1/2 (2500RPM) in LinuxCNC and then
issue this command in a terminal:

halcmd show signal spin

and post the result here
Last edit: 23 Jun 2024 03:46 by PCW.

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

More
23 Jun 2024 04:24 #303601 by Dave2024

Not sure why you would get no steps but there are some issues:

net spindle-enable => [HMOT](CARD0).stepgen.04.enable

Should be:

net machine-is-on           =>  [HMOT](CARD0).stepgen.04.enable

Otherwise setting the spindle off results in an instant stop (this is fixed in newer versions of pncconf)

To debug why you are getting no spindle movement:

Enable the spindle and set its speed to 1/2 (2500RPM) in LinuxCNC and then
issue this command in a terminal:

halcmd show signal spin

and post the result here

Ok that’s awesome!  Its working in LinuxCNC when enabling the spindle!  But definitely not letting me take it up to the 5000 rated rpm lol.  Its only getting up to like 300rpm or something.  But this is great!  Im so glad for cool people like you that know these systems.  

Do you think because Im running the raspberyPI 4 version of LinuxCNC that theres some bugs like you mentioned with the net spindle-enable => [HMOT](CARD0).stepgen.04.enable Should be: net machine-is-on =>  [HMOT](CARD0).stepgen.04.enable? 

Even after changing that line in the hal file I still wasn’t able to test or get much further with the testing and calibration in of the spindle Pncconf.

This is great though I am inspired to learn more about this.  Thanks!

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

More
23 Jun 2024 04:53 #303604 by PCW
The pncconf bug is just related to LinuxCNC version
but easily fixed by editing the hal file

The speed limit is likely because your 10000 steps/turn scale
would require very short step length and step space settings.

That is, to get to 5000 RPM at 10000 steps per turn, you need
833333 steps per second but your current step length and stepspace
settings (5 usec and 5 usec) only allow 100000 steps per second or
about 600 RPM.

Fixes: Reduce the drives steps/turn and or shorten the steplength
and stepspace parameters (noting the drives minimum timings
for these parameters and leaving adequate margins )

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

More
23 Jun 2024 05:02 #303605 by Dave2024

The pncconf bug is just related to LinuxCNC version
but easily fixed by editing the hal file

The speed limit is likely because your 10000 steps/turn scale
would require very short step length and step space settings.

That is, to get to 5000 RPM at 10000 steps per turn, you need
833333 steps per second but your current step length and stepspace
settings (5 usec and 5 usec) only allow 100000 steps per second or
about 600 RPM.

Fixes: Reduce the drives steps/turn and or shorten the steplength
and stepspace parameters (noting the drives minimum timings
for these parameters and leaving adequate margins )

Fantastic then!  Thank you so much PCW!  This is great.  You are awesome and know and have lots of good skills.  I want to send you a gift or something about this if I could!
The following user(s) said Thank You: tommylight

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

More
23 Jun 2024 08:26 #303621 by tommylight

I want to send you a gift or something about this if I could!

That is easy, just buy more Mesa boards ! :)
PCW is the owner of Mesa.

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

More
23 Jun 2024 09:15 #303625 by Dave2024

Fixes: Reduce the drives steps/turn and or shorten the steplength
and stepspace parameters (noting the drives minimum timings
for these parameters and leaving adequate margins )

Hey so when your saying I should reduce the drives pulse per turn that means go and change the parameters of the drive using its configuration software or the LCD display panel and its buttons?  I looked around in the T6 manual and found a parameter called 'Command pulse counts per one motor revolution' (Pr0.08)  and sure enough it reads 10000 just like you said.  Whats a good number I should change it too you recommend?  Im sure you get these questions allot your pretty good at this stuff and awesome.  But I want to learn how to calculate all the formulas and math behind this stull like you do?  This is supper cool!  
Attachments:

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

Time to create page: 0.133 seconds
Powered by Kunena Forum