Machsupport Forum

Third party software and hardware support forums. => PoKeys => Topic started by: Ron Ginger on February 07, 2014, 10:35:18 AM

Title: Basic input function
Post by: Ron Ginger on February 07, 2014, 10:35:18 AM
i am trying to build a control panel with a pokeys 55. Just to test I have set pin 1 and 2 as inputs, to LED 301 and 302. I have put the 2 leds on my screen. When I connect the switch to ground pin 1 or pin 2 the pokeys I/O status screen shows them work, but the leds on the screen do not change.

I  intend to test these LEDs in a macro pump and  set some DRos. My VB script does not see the LEDs change.

What am I missing?

The config screen shows pins 35,36,37 as outputs, and 35 keeps blinking. I have not configured anything on these pins, and the setup screen shows them as unused. Why are they active?
Title: Re: Basic input function
Post by: cncalex on February 07, 2014, 03:46:08 PM
Hi Ron,
just tested a bit around with the Pokeys 55.
It looks like LED's below 1000 didn't work, maybe the are reserved ?
from 1000 to 1999 it is fine.

Quote
The config screen shows pins 35,36,37 as outputs, and 35 keeps blinking. I have not configured anything on these pins, and the setup screen shows them as unused. Why are they active?

I would say it is a kind of bug there.

When a pin is activated then it is fix activated in the Pokeys even when you assign it as "not used " in the Plugin setup.

Important is when a pin is set to  "not used " that all funktions for that pin is set to " none " before.

After that you can open the Pokeys software and set the pin to " inactive " and sent the configuration to the device.

After that and reopen Mach all is fine.

Alex


Title: Re: Basic input function
Post by: NeoTO on February 08, 2014, 03:02:55 AM
Pins 35, 36, 37 are used for PoExtBus - you might have enabled that in PoKeys settings. You can do Device > Clear settings in device in PoKeys application to clear the configuration to the default values.
'Not used' in Mach3 only means that that pin is not used by Mach3 plugin, but it might be used elsewhere (keyboard emulation,...).

LEDs below 1000 are reserved for mach3 special functions (OEM LEDs).
Title: Re: Basic input function
Post by: Ron Ginger on February 08, 2014, 07:26:59 AM
Ok, should I be using the standalone PoKeys config software or the mach3 plugin? 

I do not plan to use a keyboard, just single input pins, mostly from a couple rotary switches.
Title: Re: Basic input function
Post by: NeoTO on February 10, 2014, 12:21:04 AM
Mach3 plugin is preferred for most functions.
Title: Re: Basic input function
Post by: Ron Ginger on February 10, 2014, 09:39:59 PM
Ok, I have most of my PoKey control working, except for the jog functions. I have a series of buttons, for jog X+, jog X-, Jog Y-, etc. I have these as inputs on pins 34 to 41. I have configured these as inputs, and selected the "Input Jog x+" etc.

If I set them to negative inputs, all my DROS run wild, so I know they are working. But if I set them to not be negative inputs, then they do not move the axis.

How do I get the inputs to cause a jog?
Title: Re: Basic input function
Post by: NeoTO on February 11, 2014, 12:17:23 AM
Hi, Ron

You should use mapping to buttons instead of inputs - use OEM buttons 307 and on.

Regards,
Matevž
Title: Re: Basic input function
Post by: Ron Ginger on February 11, 2014, 10:51:00 AM
Ok, buttons work ok. I also had a wiring error.

I still cannot use pins 35,36,37 They seem to be stuck on some output function. I have tried clear the config and reset it.

I have  plenty of extra pins, I will just not use those. This is a rather old PoKey55

I think my panel now does all I want, I will now put in on my machine and try to do some real work with it. Thanks for the help.
Title: Re: Basic input function
Post by: cncalex on February 11, 2014, 11:32:53 AM
Hi Ron,
the current Plugin always enables the PoExtBus ( pins 35,36,37)  when using the old Pokeys55. No way to disable it within the Plugin.
It is fine with Pokeys56.

Alex
Title: Re: Basic input function
Post by: Ron Ginger on February 11, 2014, 12:06:54 PM
Ok, thanks. I plenty of extra pins so I will just skip those.
Title: Re: Basic input function
Post by: Ron Ginger on February 13, 2014, 08:42:50 AM
One more problem. I got the panel working fine on my desk machine, so I tried to move it to my shop XP machine. I had some trouble finding the correct xml, but I think I have it now. I have the plugin enabled. the config screen shows all the pins I have setup. But none of them actually work.

If I run the pokeys application the test screen shows all the inputs change as expected.

Any suggestions?
Title: Re: Basic input function
Post by: NeoTO on February 13, 2014, 11:08:06 AM
1. Check that communication with PoKeys device is established.
2. Open Status IO tab and check that inputs are being refreshed correctly
3. For moving the configuration from machine to machine, either copy PoKeys plugin config file (see http://www.machsupport.com/forum/index.php/topic,26559.0.html) or use Export/Import functionality in the plugin.
Title: Re: Basic input function
Post by: Ron Ginger on February 13, 2014, 12:31:09 PM
This is a pokey55 and the config screen does not have a Status IO tab. If I use the Pokey55 program it does show the signals changing.

Under Mach when I open the config menu the pins show up as I expect, but the Apply button never enables. If I make a change in the pins it still does not enable.

I think I do not have real communication to the device. I have tried add and remove from the Plugins Config with no change.
Title: Re: Basic input function
Post by: Ron Ginger on February 13, 2014, 02:49:30 PM
i believe I do not have the correct plugin for mach. This is an old pokey55- ser no 10804. If I load the 56u files I can communicate with the device via the pokey ap. I have cleared the config and re-loaded with an import. Using the pokeys ap everything seems normal, but I cannot get it to work under mach.
Title: Re: Basic input function
Post by: cncalex on February 13, 2014, 09:41:02 PM
Just tested latest Plugin Mach3 Ver .062 Pokeys55 ser no 10299. Win7 OS , Pokeys Firmware  2.1.23 Pokeys Software V 3.1.9b

Everything works fine except for pins 35,36,37 (PoExtBus) can not be disabled.
As I mentioned before for unused Pins Set everything to " none "  the funktion is not diabled otherwise. eg.

PIN        Function           LED          Button         IO
 
 1           not used          none           none         none         ====>    disabled

 1           not used          none      307 jogX++    none         ====>    not  disabled !!!!!   ( just found the axis starts running in this case )

Browse through all pins and check.

attached the latest Plugin for Pokeys55

Alex

Title: Re: Basic input function
Post by: NeoTO on February 14, 2014, 12:07:46 AM
The latest "official" plugin is installed by the PoKeys software and is available only through poscope.com homepage. If you have Mach3 installed in C:\Mach3\, the plugin get automatically copied there. I removed your attachment as it contained an old version.
Moreover, the latest version of Mach3 (.066) has to be installed in order for the plugin to function correctly.
PoKeys plugin supports all PoKeys devices - including PoKeys55.
Title: Re: Basic input function
Post by: Ron Ginger on February 14, 2014, 03:50:36 PM
Ok, that did it. Latest versions of mach and pokeys, my panel works fine now.

Thanks for all the help.