Resolver Output

More
08 Oct 2012 16:20 #25128 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

I just realized something,

When I have the pin "setp hm2_5i23.0.resolver.00.index-divisor 2" enabled linux will not come up,.


That sounds like I messed up the patch. (as I said, I can't test this code, I don't have the hardware)

dmesg ought to say what is going on.

However, you do want to be careful about which version of LinuxCNC you are trying to start.
The desktop shortcut will (I think) try to start the "installed" LinuxCNC version, not the "run in place" version.
(you currently probably have 2 versions on the drive)

The way to test the newly patched version is to open a terminal:
. ./scripts/rip-environment
linuxcnc

Then pick the config in the config picker.

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

More
08 Oct 2012 16:48 - 08 Oct 2012 16:49 #25130 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
If I post the dmesg would that help?


It is 2.6.0 coming up though when I have that pin disabled in my hal.
Last edit: 08 Oct 2012 16:49 by LAIR82.

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

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

If I post the dmesg would that help?

It's certainy worth a try.

It is 2.6.0 coming up though when I have that pin disabled in my hal.

So, disable, and look in "show hal config" or type halcmd show param in the terminal, and see if the parameter exists. (and if so, what it is actually called).

If it isn't there, then perhaps you missed a bit of the patch, or I messed up, or the version you are running is base 2.6, not the patched version.

If you start from the command line then you will probably be told what has gone wrong.

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

More
08 Oct 2012 17:40 - 08 Oct 2012 17:42 #25134 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
Here is a copy of my dmesg.

Question though, on the actual patch, the first file that gets patched is the hostmot2.9, file is that file supposed to be located at:

a/docs/man/man9/hostmot2.9 or should it be
a/src/docs/man/man9/hostmot2.9

File Attachment:

File Name: srtdmesg.txt
File Size:26 KB




Also, there is nothing in the hal parameters regarding index-divisor.


Thanks
Attachments:
Last edit: 08 Oct 2012 17:42 by LAIR82.

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

More
08 Oct 2012 18:29 #25135 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

on the actual patch, the first file that gets patched is the hostmot2.9, file is that file supposed to be located at:
a/docs/man/man9/hostmot2.9 or should it be
a/src/docs/man/man9/hostmot2.9


linuxcnc-dev/docs/man9. There is no linuxcnc-dev/src/docs folder.

You need to run git am from the same folder location that git format-patch was run, otherwise the patch won't work. In this case git format-patch was run from the linuxcnc-dev folder, not the src folder.

Also, there is nothing in the hal parameters regarding index-divisor.

In that case it seems likely that you are not running the version of linuxCNC that you think you are running, unless there is a problem with my code, but that should have shown up in the compile stage.

I see nothing wrong in the dmesg, was that a successful or unsuccesful start?

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

More
08 Oct 2012 18:34 #25136 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
So I should put the patches in the src folder inside the linuxcnc-dev folder?

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

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

So I should put the patches in the src folder inside the linuxcnc-dev folder?


No

(Actually, it doesn't matter where the patch files are as long as you give the correct path to them, but you need to issue the patch command from the linuxcnc-dev folder, not the src folder so it is easier to just put the patch file there.)

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

More
08 Oct 2012 18:57 #25138 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
Here is a copy of what I am doing and where, and what it does.

I deleted that "0001-fanuc-style......" patch from everywhere on my computer it was, and it is still coming up though.


srt@Cinci:~/linuxcnc-dev$ git am 0001-Add-an-index-counter-for-multi-cycle-resolvers.patch
Dirty index: cannot apply patches (dirty: 0001-Fanuc-style-tool-change-for-Lathes.-On-Fanuc-control.patch)
srt@Cinci:~/linuxcnc-dev$

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

More
08 Oct 2012 20:31 #25139 by andypugh
Replied by andypugh on topic Re:Resolver Output
LAIR82 wrote:

I deleted that "0001-fanuc-style......" patch from everywhere on my computer it was, and it is still coming up though.

That is because git remembers what it was doing when it went wrong, and is waiting for you to tell it that you fixed it.

I would suggest that you recover the tool change patch then:

cd ~/linuxcnc-dev
git checkout master
git reset --hard origin/master
git pull
git am 0001-Fanuc-style-tool-change-for-Lathes.-On-Fanuc-control.patch
{ignore the whitespace errors}
git am 0001_Add_an_index_counter_for_multi_cycle_resolvers.patch.txt

cd src
make clean
./autogen.sh
./configure --prefix=/usr
{This makes an installed version, rather than run-in-place}
make
sudo make install

Then the icons/menus should start your new version.

(I have just tested all the above sequence (which is why the reply took so long). It ought to work for you too.

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

More
08 Oct 2012 20:50 #25140 by LAIR82
Replied by LAIR82 on topic Re:Resolver Output
I will try that out first thing tomorrow morning.

If I haven't said it yet Thank you for all the help.

Rick

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

Time to create page: 0.155 seconds
Powered by Kunena Forum