Spindle orientation

More
22 Jan 2013 02:00 #28927 by tld70
Spindle orientation was created by tld70
Hi Guys

is there a way to orient the Spindle by HAL or COMP
included the angle in degrees
some times ago I read something about loadrt orient.....

But this dont work.

Hope you can help me
Thanks
Thomas

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

More
22 Jan 2013 07:52 - 22 Jan 2013 07:54 #28936 by BigJohnT
Replied by BigJohnT on topic Spindle orientation
There might be more to just loading the orient component. The manual page is here and it includes example HAL lines for usage. I was pleasantly surprised to find the orient component as I will need that when I convert my Discovery 308.

John
Last edit: 22 Jan 2013 07:54 by BigJohnT.

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

More
22 Jan 2013 14:50 #28939 by tld70
Replied by tld70 on topic Spindle orientation
Good morning

this is exactly what I found,
but it dont work.
The Error is " Can't find module 'orient'....
Do I have to install something?

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

More
22 Jan 2013 17:36 - 22 Jan 2013 17:37 #28949 by ArcEye
Replied by ArcEye on topic Spindle orientation
JT

Does not seem to be in the .deb or the source for 2.5.1, despite being in the docs.

It is however in the master. :huh:

tld70

The attached zip contains the orient.comp and a compiled module built against Linuxcnc 2.5.1 running on 10.04
It goes in /usr/realtime-xxxxxxxx/modules/linuxcnc
then run sudo /sbin/depmod -a to make sure it is found

If that flavour does not match yours, instructions for compiling below
linuxcnc.org/docs/2.5/html/hal/comp.html

regards

File Attachment:

File Name: orient.zip
File Size:42 KB
Attachments:
Last edit: 22 Jan 2013 17:37 by ArcEye.

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

More
22 Jan 2013 18:58 #28953 by tld70
Replied by tld70 on topic Spindle orientation
Hello,

do I need more?
it dont runs

net orient-angle motion.spindle-orient-angle orient.angle
net orient-mode motion.spindle-orient-mode orient.mode

linuxcnc says the pin motion.spindle-orient-angle is not found...

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

More
22 Jan 2013 20:24 #28959 by ArcEye
Replied by ArcEye on topic Spindle orientation
OK

Mystery solved, the reason the module is not in 2.5.1, despite the docs being there, is that motion.spindle-orient-????? pins only exist in 2.6

If you really need this module you will have to download and run the master (2.6)

Regards the iocontrol module, the one I wrote for you will not work as is, but I don't think the changes in the master go much beyond someone messing about with it and changing uppercase constants to lowercase ones.

I need to look at it for someone else anyway, so will get back to you in the next few days.

regards

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

More
22 Jan 2013 20:54 #28962 by ArcEye
Replied by ArcEye on topic Spindle orientation
See your original spindle thread for the updated ioControl file.

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

More
22 Jan 2013 21:28 - 22 Jan 2013 21:45 #28967 by BigJohnT
Replied by BigJohnT on topic Spindle orientation

JT

Does not seem to be in the .deb or the source for 2.5.1, despite being in the docs.

It is however in the master. :huh:

regards


There seems to be some kind of snafu with the online docs as it is not in my local built docs. And all that time I thought someone slipped that in when I wasn't looking. It's actually not in the local docs only the online docs as well as bldc_sine.9.

John
Last edit: 22 Jan 2013 21:45 by BigJohnT.

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

More
02 Feb 2013 21:28 #29489 by tld70
Replied by tld70 on topic Spindle orientation
Hello,

today I try the orien comp.
Bus the Spindle does nothing,
ans in the description orient is thie line:
net spindle-pos ...encoder..position orient.position orient-pid.position

But linuxcnc dont know the pin pid.4.position ( I use pid4 because I need 4 PIDs )



motion.spindle-orient is 1

orient.enable is 1
orient.poserreo is 249.
What I do wrong?

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

More
02 Feb 2013 23:11 #29496 by ArcEye
Replied by ArcEye on topic Spindle orientation
You will have to post your hal file, or at least the relevant part of it, for us to be able to help much.

Only thing that jumps out, is that pid.4 would be the 5th pid not the 4th, because numbering starts at 0

regards

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

Time to create page: 0.070 seconds
Powered by Kunena Forum