Resolver Output

More
07 Oct 2012 17:21 #25107 by andypugh
Replied by andypugh on topic Re:Resolver Output
Try this patch.
Put the file in the linuxcnc-dev folder, navigate there and type
git am 0001-Add-an-index-counter-for-multi-cycle-resolvers.patch
Tab-completion should allow you to just type git am 00<tab>

If it doesn't work then it is probably because you are not in the src directory, or the patch file is not in the src directory.

Then make as normal.

File Attachment:

File Name: 0001_Add_a...rs.patch
File Size:5 KB
Attachments:

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

More
08 Oct 2012 11:09 #25114 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
Good Morning Andy,

Will I have to set up a hal pin to set the cycles/rev?


Rick

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

More
08 Oct 2012 11:53 #25116 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

Will I have to set up a hal pin to set the cycles/rev?


Yes. (it's actually a parameter)

You will need something like

setp hm2_5i25.0.resolver.00.index-divisor 2

If that works, can you also please check that index-divisor = 1 works as before? (I don't have a 7i65 to test with)

And I have just noticed a possible bug, because index-divisor of zero will never trigger, and if it happened to miss an index, it could get into that state.

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

More
08 Oct 2012 12:08 #25117 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
I will check it out and see how it runs. I still had problems loading that patch though.


After I saved the file to my linuxcnc-dev folder
I opened my terminal window,
Typed cd linuxcnc-dev hit enter,
Typed git am 0001-Add-an-index-counter-for-multi-cycle-resolvers.patch
And I get something about dirty index,

I went ahead and manually did the changes and that's were I'm at now.

Not sure what I'm doing wrong.

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

More
08 Oct 2012 12:22 #25118 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

And I get something about dirty index,.


When I get that sort of problem I tend to copy the error message and paste it into a Google search.
That generally finds the problem.

Manually making the changes is probably OK in this case, as not a lot changed.

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

More
08 Oct 2012 12:28 #25119 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
I have a major problem now, I tried to start linux to see how the patch would , and when I click on the Icon it doesn't do anything. I click on it again it says that it is already running and wants to know if I want to restart. I went back to the terminal window and tried run it from the terminal but it says there is already a shortcut on the desktop.


Any ideas?

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

More
08 Oct 2012 12:39 #25120 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

I have a major problem now, I tried to start linux to see how the patch would , and when I click on the Icon it doesn't do anything. I click on it again it says that it is already running and wants to know if I want to restart. I went back to the terminal window and tried run it from the terminal but it says there is already a shortcut on the desktop.?


What is your build process?

If you did a ./configure without a path specified then you get a run-in-place system (where all the files are inside linuxcnc-dev, rather than in usr/bin etc.

did you do . ./scripts/rip-environment?

It's probably worth restarting the machine, then trying to start linuxcnc from the command line to see if any errors are mentioned.
(also, have a look in dmesg)

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

More
08 Oct 2012 12:45 #25121 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
Last week when I finally got everything t a point where I was comfortable, I did the

. ./scripts/rip-environment

and ran it for a while. I closed out of it did some other things and when I restarted it, I clicked create desktop shortcut, in the lower left hand corner of the window where you can select which config to use. It ran fine the rest of the day friday shutting down and restarting from the icon it put on the desktop.

Should I do the configure route instead to make it permanent?

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

More
08 Oct 2012 13:51 #25124 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
This thing is crazy, I repeatedly clicked on the icon and it kept popping up that it was already running and should it restart, I kept clicking "no" and then one time the linux screen actually came up. so I shut it down and tried to start linux back up and it has to be starting, just without the display because if I click on the Icon again it says that it is already running.

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

More
08 Oct 2012 14:34 #25127 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
I just realized something,

When I have the pin "setp hm2_5i23.0.resolver.00.index-divisor 2" enabled linux will not come up, it won't fault out or anything, it just wont come up, and that's when it tells me if I try to start it again that its already running. If I # it out in my hal file then linux will start up.

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

Time to create page: 0.160 seconds
Powered by Kunena Forum