mesa 7i76 configuring a spindle encoder

More
10 years 7 months ago #71739 by andypugh
Starting from scratch isn't the way, this shouldn't be this difficult.
(And, to an extent, learning what these errors mean and how to fix them is useful)
What error do you get if you comment out the offending line?

Please Log in to join the conversation.

More
10 years 7 months ago #71740 by Clive S

andypugh wrote: Starting from scratch isn't the way, this shouldn't be this difficult.

Ok Andy that is helpful :) I will report back tomorrow with the degbug msg I know there are bugs in PnCConf shall I re submit my hal file as well?

Please Log in to join the conversation.

More
10 years 7 months ago #71770 by Clive S
Ok Andy commented out ###loadrt lowpass names=lowpass.spindle.gain

Attachment not found



Attachment not found

Please Log in to join the conversation.

More
10 years 7 months ago #71772 by andypugh

Clive s wrote: Ok Andy commented out ###loadrt lowpass names=lowpass.spindle.gain


That wasn't the line I was suggesting you comment out. The "Offending line" is given in the error report, line 190 of the file "Myford_Lathe.hal"

Some HAL background.

When you loadrt lowpass you get the pins and parameters listed here:
linuxcnc.org/docs/2.7/html/man/man9/lowpass.9.html
So, typically lowpass.0.gain, lowpass.0.in etc.

If you use names= then the pins get new names. If you use "names = lowpass.spindle.gain" then the pins/parameters are lowpass.spindle.gain.gain and lowpass.spindle.gain.in and so on.

What you need is "loadrt lowpass names=lowpass.spindle"

Please Log in to join the conversation.

More
10 years 7 months ago #71775 by Clive S
Andy I am getting mixed up. Would you mind checking my HAL file and being explicate where I have to change things

I have added this to the hal file loadrt lowpass names=lowpass.spindle

Attachment not found



Attachment not found

Please Log in to join the conversation.

More
10 years 7 months ago #71776 by andypugh
You have tried to loadrt the lowpass component twice, with two different names
Code:
loadrt lowpass names=lowpass.spindle.gain loadrt lowpass names=lowpass.spindle

Please Log in to join the conversation.

More
10 years 7 months ago #71778 by Clive S
Ok I have commented this out #loadrt lowpass names=lowpass.spindle.gain

Attachment not found

Please Log in to join the conversation.

More
10 years 7 months ago #71779 by andypugh
What is the background here? how did you end up with this file which has all the net commands but none of the loadrt commands?

loadrt abs names=abs.spindle

Please Log in to join the conversation.

More
10 years 7 months ago #71782 by Clive S
OK Andy :) WE (you) are getting there axis now loads with no errors .
The file was generated by PnCConf for my lathe But I know there are bugs in PnCConf some have been sorted but have missed 2.7.4

Now I need to connect up the index A and B from the encoder. I will report back when I have done it

Please Log in to join the conversation.

More
10 years 7 months ago #71784 by Clive S
Thanks Andy can I trouble you with the setting up now.

I have connected the A, B and index to the 7i76 What do I have to set in the hal and ini file to make it work

Please Log in to join the conversation.

Time to create page: 0.472 seconds
Powered by Kunena Forum