HAL Connections

More
04 Oct 2012 04:53 - 04 Oct 2012 05:36 #24929 by shine
HAL Connections was created by shine
Hi all,

I tried to connect it according to the manual.
It could not be complete by my poor skill about linux though it could be shown into a tab.:unsure:
gnipsel.com/linuxcnc/gladevcp/gladevcp03.html

If I could do it, I would connect them to EMC action Run and action (all) home with new buttons like the way.
Please let me know that too.

Regard
Attachments:
Last edit: 04 Oct 2012 05:36 by shine.

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

More
04 Oct 2012 05:10 - 04 Oct 2012 05:38 #24930 by shine
Replied by shine on topic Re:HAL Connections
sorry, I could not delete upper message once.
I attached them on this again.

File Attachment:

File Name: custom.glade
File Size:5 KB
Attachments:
Last edit: 04 Oct 2012 05:38 by shine.

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

More
04 Oct 2012 10:40 #24937 by BigJohnT
Replied by BigJohnT on topic Re:HAL Connections
You have motion.spindle-on in two places. The tutorial assumes you did not use motion.spindle-on yet.

Did you use the Stepconf Wizard to generate your configuration?

If so change

net spindle-state gladevcp.hal_led1 <= motion.spindle-on

to

net spindle-on gladevcp.hal_led1

John

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

More
04 Oct 2012 10:47 #24940 by andypugh
Replied by andypugh on topic Re:HAL Connections
I am not sure about the Glade problem, but the LinuxCNC not-starting problem is that your HAL files are trying to create two signals linked to motion.spindle-on (and there can be only one)

Your line
net spindle-state <= motion.spindle-on

is conflicting with another HAL command
net spindle-on <= motion.spindle-on.

The solution is to re-use the spindle-on signal, ie change your postgui file entry to

net spindle-on gladevcp.hal_led1

It will then crash at the next line, because I suspect that motion.spindle-speed-out is also already net-ed.
The next line in the postgui HAL needs to read (at a guess)

net spindle-speed gladevcp.hal_meter1
(though I am not entirely sure what signal name stepconf will have chosen for the spindle speed)

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

More
04 Oct 2012 10:52 #24941 by BigJohnT
Replied by BigJohnT on topic Re:HAL Connections
shine wrote:

Hi all,

I tried to connect it according to the manual.
It could not be complete by my poor skill about linux though it could be shown into a tab.:unsure:
gnipsel.com/linuxcnc/gladevcp/gladevcp03.html

If I could do it, I would connect them to EMC action Run and action (all) home with new buttons like the way.
Please let me know that too.

Regard


That is a tutorial and relies on you using the supplied configuration files from the tutorial.

John

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

More
04 Oct 2012 11:54 - 04 Oct 2012 12:25 #24945 by shine
Replied by shine on topic Re:HAL Connections
John, Andy,

Thank you for helping me.
I could make a success in debug by that way.
It did not move unfortunately at all even if input a command on MDI like the tutorial though it usually was turning on in HAL configuration.



shine
Attachments:
Last edit: 04 Oct 2012 12:25 by shine.

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

More
04 Oct 2012 12:08 #24946 by BigJohnT
Replied by BigJohnT on topic Re:HAL Connections
Did you follow the instructions in the tutorial to edit the postgui.hal file?

John

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

More
04 Oct 2012 12:34 - 04 Oct 2012 13:48 #24947 by shine
Replied by shine on topic Re:HAL Connections
John,

I was going to do it.
I mean, done.

Now I found that I took a mistake about hal_led1.
It moved. Sorry so much.
"net spindle-on gladevcp.hal_led1"
but hal_meter1 was not moving.

I could also do it about hal_meter1.
It was correct below.
"net spindle-cmd gladevcp.hal_meter1"


I left a mistake for someone.

Thank you.

shine
Attachments:
Last edit: 04 Oct 2012 13:48 by shine.

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

More
04 Oct 2012 15:44 - 04 Oct 2012 15:49 #24949 by shine
Replied by shine on topic Re:HAL Connections
well, I have also a question about hal_led.

It will be able to count the number of times to be turned on by hal_ led?
How should I do it as setting if possible?
Please give advice to me.

Regard.

shine
Last edit: 04 Oct 2012 15:49 by shine.

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

More
04 Oct 2012 20:36 #24956 by andypugh
Replied by andypugh on topic Re:HAL Connections
shine wrote:

It will be able to count the number of times to be turned on by hal_ led?


Possibly. You could use a hal encoder module counter mode, for example. Or add some code to the Glade.
There might even be a counter as a Glade Hal widget. (I haven't used Glade much yet)

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

Moderators: mhaberlerHansU
Time to create page: 0.110 seconds
Powered by Kunena Forum