NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Pokeys

Re:Pokeys 18 Jul 2012 05:35 #22126

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4249
  • Thank you received: 152
  • Karma: 130
JR1050 wrote:
The names of the pins dont really matter .I do however need them all to be inputs.The first half of all the pins have s32 values attached instead of bitsThey all show as inputs and will change in the pokeys program that runs on my XP box..How did you set your pokeys up?Thanks

Is the problem that they are S32, or that they don't change when you press buttons?
The administrator has disabled public write access.

Re:Pokeys 18 Jul 2012 07:18 #22129

  • JR1050
  • JR1050's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 88
  • Thank you received: 1
  • Karma: 3
Andy,

After playing with the thing for a while,I set the EV options for hal input to -k and loaded two pokeys as thats what the system saw,like so

loadusr -W hal_input -K PoKeys:0 PoKeys:1

In halshow i get instance 0,which is about 20-30 buttons and instance 1 which is keys.


They do not change when a button would be pressed(right now im just grounding the the pin out,which causes its state to change in the pokeys i/o window in XP).Ive been watching in hal show.

I suspect a permissions thing.I added rule file to the ect/udev/rules.d like so

SYSFS=="1001", SYSFS=="1dc3", MODE="0660", GROUP="plugdev"

and another one like so


SUBSYSTEM=="input",MODE="0660",GROUP="plugdev"

Info on getting emc and pokeys to get along seems scarce at best.Got any suggestions?Thanks

JR
The administrator has disabled public write access.

Re:Pokeys 18 Jul 2012 07:22 #22131

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4249
  • Thank you received: 152
  • Karma: 130
JR1050 wrote:
In halshow i get instance 0,which is about 20-30 buttons and instance 1 which is keys.
They do not change when a button would be pressed

One thing to check, you are using the "watch" tab, not the other one? Only the "watch" tab shows live data.

I don't think it ought to be permissions given that it loads OK.
The administrator has disabled public write access.

Re:Pokeys 18 Jul 2012 07:27 #22133

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
I plugged my pokeys in and did a

loadusr -W hal_input -KRAL PoLabs

The HAL pins show up but don't change states with any regularity... I found the old pokeys config file where I had the analog pins working but not my old emc config.

I'll see if I can work on it some more later today.

John
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: PCW, jmelson
Time to create page: 1.325 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.