Pokeys

More
30 Jul 2018 17:20 - 30 Jul 2018 17:22 #115155 by Erikcnc
Replied by Erikcnc on topic Pokeys
Well...thats clear, i know how to show them. Of i understand, pokeys.0.alive should be blinking?

Noting blinking and no respons of the button.

I whas searching though some photos, saw that the pokeys.comp nstalled i think.

Last lines says; collet2: error: ld returned 1 exit status.
Attachments:
Last edit: 30 Jul 2018 17:22 by Erikcnc.

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

More
30 Jul 2018 18:54 #115159 by andypugh
Replied by andypugh on topic Pokeys
"alive" doesn't blink, it just shows true or false (yellow is true, an odd colour choice I agree)

It looks like the install failed because the driver isn't installed.
Can you try re-compiling the driver and show us the result of that command?

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

More
30 Jul 2018 21:23 - 30 Jul 2018 21:24 #115175 by Erikcnc
Replied by Erikcnc on topic Pokeys
I did what you said and it works!!!! I see the dot change collor if i push the button!! Can't see changes on the analog ports if i turn the potentiometer but they are active though.

Thank you for your support!!!

Now search to define pin to do lets say nc start.
Last edit: 30 Jul 2018 21:24 by Erikcnc.

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

More
02 Dec 2018 14:34 - 02 Dec 2018 14:34 #121712 by Erikcnc
Replied by Erikcnc on topic Pokeys
After re-installing my linuxcnc my machine is working.
Unfortunately i had to do the pokeys installation all over....

Yesterday i did that in 1 hour or so. Now in halshow its working again. I can see the pins changing if i push a specific button.

Now i struggle with getting it working in linuxcnc.

I got the setp pokeys.0.devSerial ***** in costom.hal and Loadusr -W pokeys in my_mill.hal with the first pin i want to test.
net all-home pokeys.0.in-4 => halui.all-home

Still...i got nothing. not even in Halshow in linuxcnc.
Last edit: 02 Dec 2018 14:34 by Erikcnc.

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

More
02 Dec 2018 15:13 #121714 by andypugh
Replied by andypugh on topic Pokeys
I am confused, first you say it is working in halshow, then you say it isn't ?

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

More
02 Dec 2018 16:25 #121719 by Erikcnc
Replied by Erikcnc on topic Pokeys
Yes.

If i do:
 halrun
 loadusr -W pokeys
 setp pokeys.0.devSerial *****

And in a 2nd terminal
Halshow

I can see the pins and see them active if i trigger them.

But, if i open halshow in linuxcnc, nothing happens.

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

More
02 Dec 2018 16:39 #121720 by andypugh
Replied by andypugh on topic Pokeys
Does moving the "setp" into the my_mill.hal help?

If you start linuxCNC from the command line (command "linuxcnc") is there any helpful output in the terminal?

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

More
02 Dec 2018 17:15 #121722 by Erikcnc
Replied by Erikcnc on topic Pokeys
if i put all the commands in my_mill.hal file i got a error.

this is the (test) code
setp pokeys.0.devSerial 38163

loadusr -W pokeys

# --- ALL-HOME ---

net all-home pokeys.0.in-2 => halui.home-all

if i start linuxcnc (program) , the error says:

parameter or pin 'pokeys.0.devSerial' not found

posting 'setp pokeys.0.devSerial 38163' in costom_postgui.hal linuxcnc starts, but no respons from the pokeys

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

More
02 Dec 2018 20:10 #121726 by andypugh
Replied by andypugh on topic Pokeys
You will need to load the component before you try to set any of its hal pins.

Swap the order of those two lines.

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

More
02 Dec 2018 21:26 - 02 Dec 2018 21:27 #121729 by Erikcnc
Replied by Erikcnc on topic Pokeys
Do you mean this?:
loadusr -W pokeys

setp pokeys.0.devSerial 38163

Or swap the pin command?
net halui.home-all  =>  pokeys.0.in-2


I tried the first one though. Didn't work.
Last edit: 02 Dec 2018 21:27 by Erikcnc.

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

Time to create page: 0.121 seconds
Powered by Kunena Forum