mesa 7i76 configuring a spindle encoder

More
16 Mar 2016 18:35 #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 or Create an account to join the conversation.

More
16 Mar 2016 18:41 - 16 Mar 2016 18:42 #71740 by Clive S

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?
Last edit: 16 Mar 2016 18:42 by Clive S.

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

More
17 Mar 2016 09:33 #71770 by Clive S
Ok Andy commented out ###loadrt lowpass names=lowpass.spindle.gain



File Attachment:

File Name: Myford_Lathe-2-3.hal
File Size:9 KB
Attachments:

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

More
17 Mar 2016 10:27 #71772 by andypugh

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 or Create an account to join the conversation.

More
17 Mar 2016 11:54 #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



File Attachment:

File Name: Myford_Lat...-3-4.hal
File Size:9 KB
Attachments:

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

More
17 Mar 2016 12:04 #71776 by andypugh
You have tried to loadrt the lowpass component twice, with two different names
loadrt lowpass names=lowpass.spindle.gain
loadrt lowpass names=lowpass.spindle

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

More
17 Mar 2016 12:13 #71778 by Clive S
Ok I have commented this out #loadrt lowpass names=lowpass.spindle.gain
Attachments:

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

More
17 Mar 2016 12:24 #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 or Create an account to join the conversation.

More
17 Mar 2016 12:36 #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 or Create an account to join the conversation.

More
17 Mar 2016 12:56 #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 or Create an account to join the conversation.

Time to create page: 0.277 seconds
Powered by Kunena Forum