Pokeys
- juanelo1221
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Aug 2017 01:21 #97153
by juanelo1221
Replied by juanelo1221 on topic Pokeys
This is the file PokeysLib.h on /usr/include
How can I be sure it work?
Thank you.
How can I be sure it work?
Thank you.
Please Log in or Create an account to join the conversation.
- juanelo1221
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Aug 2017 02:13 #97155
by juanelo1221
Replied by juanelo1221 on topic Pokeys
Could be the problem the version of Linux CNC?
Thank you so much.
Thank you so much.
Please Log in or Create an account to join the conversation.
08 Aug 2017 09:20 #97166
by andypugh
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
Instructions here: linuxcnc.org/docs/html/getting-started/updating-linuxcnc.html
The following user(s) said Thank You: juanelo1221
Please Log in or Create an account to join the conversation.
08 Aug 2017 17:39 #97195
by fixer
The following user(s) said Thank You: juanelo1221
Please Log in or Create an account to join the conversation.
- juanelo1221
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
09 Aug 2017 16:42 #97244
by juanelo1221
Replied by juanelo1221 on 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:
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.
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.
Please Log in or Create an account to join the conversation.
13 Apr 2018 01:44 #108923
by JR1050
Hello, I have followed the instructions on the very first page of this topic and have had success until i tried to compile with the gcc compiler using the following commands
pi@raspberrypi:~ $ 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 -llinuxcnchalth
gcc: error: unrecognized command line option ‘-mieee-fp’
the very last line above I am getting a gcc error, any ideas what is causing it and how to get it working. thanks
pi@raspberrypi:~ $ 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 -llinuxcnchalth
gcc: error: unrecognized command line option ‘-mieee-fp’
the very last line above I am getting a gcc error, any ideas what is causing it and how to get it working. thanks
Please Log in or Create an account to join the conversation.
13 Apr 2018 12:20 #108940
by andypugh
bugs.debian.org/cgi-bin/bugreport.cgi?bug=588960
Leads me to believe that the answer might be to leave out that modifier in your architecture.
Leads me to believe that the answer might be to leave out that modifier in your architecture.
Please Log in or Create an account to join the conversation.
Time to create page: 0.217 seconds