Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors

More
7 years 10 months ago #121803 by andypugh
Replied by andypugh on topic Pokeys
Why do you have a different order of execution in your "real" HAL than when testing?

Where did you get the pokeys HAL driver from?

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

More
7 years 10 months ago - 7 years 10 months ago #121807 by Erikcnc
Replied by Erikcnc on topic Pokeys
I followed the installation from this topic (page 1)

After i continued reading this topic, on page 5 i read this:



juanelo1221 wrote: Ok,I think I've got it!
Yesterday I was testing the system. thinking first in the update I moved my debian wheezy to debian jessi and afterwards tried to update linuxcnc.Everything seemed right until I tried to open my-mill then a linuxcnc error appeared. I thought the issue was because I had created the file in the older version so I created a new one but had no success. Desperate and a little upset I made an afresh installation of debian wheezy, I updated cnclinux and was able to open up the file.
I went back to do all the steps Fixer stated from page 1 and connected the Pokeys in windows to know the serial number. In the file my-mill.hall I wrote loadusr pokeys, ran the linuxcnc and was now able to see the pins. I shut down linuxcnc and now in my-mill.hall I wrote pokeys.0.devSerial 66258 save file and try to open linuxcnc send me an error:

Code:
Debug file information: . ./my-mill.hal:7: parameter or pin 'pokeys.0.devSerial' not found

I change the code loadusr pokeys and pokeys.0.devSerial to custom.hal and show me an error, if I put the loadusr pokeys in my-mill.hal and pokeys.0.devSerial66258 in custom.hal linuxcnc run fine, and pokeys.0.err are false and pokeys.0.alive start blinking. Is this procedure correct?

I tried to use estop with pokeys to test but i did not get it work, in custom.hal I wrote net estop-ext <= pokeys.0.in-52 it dont send me errors and in HAL configuration the pin 52 show :
Owner Type Dir Value Name
7 bit OUT FALSE pokeys.0.in-52 ==>estop-ext


Thank you so much for your help, have a nice day.



My apologizes for my lack of language. I try my best to explain my issue. I really hope to get it to work.


Erik
Last edit: 7 years 10 months ago by Erikcnc.

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

More
7 years 10 months ago #121808 by andypugh
Replied by andypugh on topic Pokeys
Is it possible that you need to recompile linked to a different RTAI system?
From the starting post:
Code:
gcc -Wall -Os -g -I. -I/usr/include/libusb-1.0 -I/usr/include -L/usr/lib/ -L/usr/lib/arm-linux-gnueabihf/ -lPoKeys -lusb-1.0 -I/usr/realtime-3.4-9-rtai-686-pae/include -I. -I/usr/realtime-3.4-9-rtai-686-pae/include -I/usr/include/i386-linux-gnu -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-math-errno -funsafe-math-optimizations -fno-rounding-math -fno-signaling-nans -fcx-limited-range -mhard-float -DRTAI=3 -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/usr/include/linuxcnc -Wframe-larger-than=2560 -URTAPI -U__MODULE__ -DULAPI -Os -o pokeys ./pokeys.c -Wl,-rpath,/lib -L/lib -llinuxcnchal

There are quite a number of explicit references to a specific RTAI path in there.

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

More
7 years 10 months ago #121809 by andypugh
Replied by andypugh on topic Pokeys
[strike]

andypugh wrote: Is it possible that you need to recompile linked to a different RTAI system?

[/strike]
No, forget that, it has already been shown to work on your current system.

Try adding
Code:
show pin
after the "loadusr pokeys" line in the HAL.

Also, start linuxcnc from the command-line (command "linuxcnc") and paste all the output here.

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

More
7 years 10 months ago #121810 by Erikcnc
Replied by Erikcnc on topic Pokeys

andypugh wrote: [strike]

andypugh wrote: Is it possible that you need to recompile linked to a different RTAI system?

[/strike]
No, forget that, it has already been shown to work on your current system.

Try adding
Code:
show pin
after the "loadusr pokeys" line in the HAL.

Also, start linuxcnc from the command-line (command "linuxcnc") and paste all the output here.



Oke thanks!
I will try this evening.

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

More
7 years 10 months ago - 7 years 10 months ago #121931 by Erikcnc
Replied by Erikcnc on topic Pokeys
Works like a charm!

Thank you so much for the support!

A overview how it works for me.

in my_mill.hal file
Code:
loadusr -W pokeys show pin # --- HOME-ALL --- net all-home pokeys.0.in-2 <= halui.home-all # ---CYCLE START --- net program.run pokeys.0.in-0 <= halui.program.run # ---CYCLE STOP --- net program.stom pokeys.0.in-3 <= halui.program.stop

Home-all works also without going to the home tab.

in postgui_call_list.hal file
Code:
setp pokeys.0.devSerial 38163


i got also three 10K potetiometer to use as feed, maxvelocity and spindle override.
How could i get this to work though?
Last edit: 7 years 10 months ago by Erikcnc.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum