Pokeys

More
08 Aug 2017 01:10 #97151 by andypugh
andypugh replied the topic: Pokeys
did
cp PokeysLib.h /usr/include
work?

I would probably expect that to need a sudo.

Is the file actually there?

(do you know what cp does? It is hard to know what to assume and what not to assume)
More
08 Aug 2017 01:21 #97153 by juanelo1221
juanelo1221 replied the topic: Pokeys
This is the file PokeysLib.h on /usr/include

File Attachment:

File Name: PoKeysLib.h
File Size:58 KB

How can I be sure it work?

Thank you.
Attachments:
More
08 Aug 2017 01:29 #97154 by andypugh
andypugh replied the topic: Pokeys
If it is there, it should work
If you open the file with a text editor, does it contain the function definitions that the compiler is saying that it can't find?
(It may be a different library that is missing)
More
08 Aug 2017 02:13 #97155 by juanelo1221
juanelo1221 replied the topic: Pokeys
Could be the problem the version of Linux CNC?

Thank you so much.
More
08 Aug 2017 09:20 #97166 by andypugh
andypugh replied the topic: Pokeys
Probably not, but if youa re using a LinuxCNC version that still uses "comp" rather than "halcompile" then I would strongly encourage upgrading anyway.
Instructions here: linuxcnc.org/docs/html/getting-started/updating-linuxcnc.html
The following user(s) said Thank You: juanelo1221
More
08 Aug 2017 17:39 #97195 by fixer
fixer replied the topic: Pokeys
follow the instructions in first post carefully.
1. use hacompile without! install option. This will only generate pokeys.comp file.
2. then compile pokeys.comp with gcc
The following user(s) said Thank You: juanelo1221
More
09 Aug 2017 16:42 #97244 by juanelo1221
juanelo1221 replied the topic: Pokeys
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:
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.
More
09 Aug 2017 17:16 #97247 by fixer
fixer replied the topic: Pokeys
I dont understand you well, but if .alive is blinking, then the communication works and you should get values from pins to HAL.
Check Pokeys pin configuration in Windows if you have trouble.
Time to create page: 0.088 seconds
Powered by Kunena Forum