Machsupport Forum

Third party software and hardware support forums. => PoKeys => Topic started by: rustamd on September 27, 2012, 10:27:50 PM

Title: Two buttons doing same thing, possible?
Post by: rustamd on September 27, 2012, 10:27:50 PM
I have kbd48cnc keyboard, and on my control panel I also have external cycle start and feed hold buttons.

When I assign the oem code 1000 to cycle start button on pin 38 the cycle start button stops working on kbd48cnc, and same with feed hold. Is there a way to have both working?

Appreciate the help,
Title: Re: Two buttons doing same thing, possible?
Post by: NeoTO on September 28, 2012, 04:23:43 AM
Hi

We will check that and make it work. Both should work, but they might be 'fighting' each other at the moment.

Regards,
Matevž
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on September 28, 2012, 10:46:28 PM
Thanks, that would be really nice :)
Title: Re: Two buttons doing same thing, possible?
Post by: NeoTO on September 30, 2012, 06:44:14 AM
There is a simple fix. Use the 'inverted' option in the mapping settings. It will also activate the function as soon as you depress the button (assuming you have connected it between PoKeys pin 38 and GND).
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on October 20, 2012, 08:53:34 AM
Finally got around to testing the set up, still not working, with invert checkbox checked only the external button is working
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on December 15, 2013, 09:45:13 PM
Any resolutions for this? Really need to get this working.

Thanks,
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on December 16, 2013, 07:03:09 AM
Hi,
link the  kbd48cnc buttons to a user led instead to cycle start / feed hold
lets say when you press cycle start ULED 2000 turned on
the same thing with your external button, lets say ULED 2001

now create a brain thats  doing a cycle start when one of or both went on.

Or just wire the external button to the same pin to kbd48cnc button ( if that is possible )

just a thought

alex
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on December 16, 2013, 11:15:51 AM
Hi,
link the  kbd48cnc buttons to a user led instead to cycle start / feed hold
lets say when you press cycle start ULED 2000 turned on
the same thing with your external button, lets say ULED 2001

now create a brain thats  doing a cycle start when one of or both went on.

Or just wire the external button to the same pin to kbd48cnc button ( if that is possible )

just a thought

alex

ha! if I would only be smart enough to do that, will give it a try later today when i'm in the shop. Tho I do have an question, would this introduce any kind of lag/delay?

Thanks,
Russ
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on December 16, 2013, 12:02:26 PM
Ok.., just tried making a brain, and I clueless at this, any way you could walk me thru what I need to do?

Screenshot attached, is this what I need to do?

Thanks for the help,
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on December 16, 2013, 02:06:04 PM
Quote
Tho I do have an question, would this introduce any kind of lag/delay?

Yes, I think its about 100 ms

Quote
Screenshot attached, is this what I need to do?

a part of it.

see pic.

take care the user led that you intend to use is not used for other operations.


alex
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on December 16, 2013, 02:08:39 PM
forgot the attachment  ;D
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on December 24, 2013, 11:33:55 AM
Alex,

I tried your solution, honestly didn't get anywhere(most likely because missed something), but what I did encounter was my Single Block stopped working, any ideas?

Thanks,
Russ
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on December 24, 2013, 07:14:42 PM
Russ,

go to pokeys plugin configuration. -->  kbd48cnc-->
CycleStart  --> Function= Key --> LED = 1990 --> Button = none   ( maybe inverted can't see it here )
FeedHold    --> Function= Key --> LED = 1992 --> Button = none   ( maybe inverted can't see it here )

Pin***   --> Function= Input --> LED = 1991 --> Button = none --> inverted      ( external Cycle Start button )
Pin***   --> Function= Input --> LED = 1993 --> Button = none --> inverted      ( external Feed Hold button )


is working fine here so far, accept I have no  kbd48cnc.

see pict. of the brain I used

Alex


Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on January 02, 2014, 03:35:52 PM
Thanks! Seems to work good now with both buttons operating correctly. Have not tested Single Block yet however.

Got another question also, probably wrong section for it, but its same thing, i have buttons connected thru pokeys56u, and i would like to be able to jog with them same way you can with arrow keys/pg up/down, but only way it works right now if you press button the table moves by itself until you press button again, which is not very safe, i want  it to move only when button is pressed. Any idea what # button to use for these?

Thanks,
Russ
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on January 03, 2014, 01:57:36 PM
Glad you got it so far :)
to see if is something wrong in your Pokeys settings regarding the Single Block just save your actual Pokeys settings ( XML file)
then use the default XML file from Polabs website and see if it works correctly. If so you can compare the settings.
Unfortunetly I can't load the  kbd48cnc XML file without a  kbd48cnc connected to the Pokeys so can't help with the
jogging problem. Only thing I can do from here is if you assingn all buttons ( jog +- and axis select) to an Userled then it could
be done with a brain. But first explore if there is a setting for what you need in Pokeys setup for the Jog Buttons.
maybe you can attach a screenshot.

Alex


Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on January 03, 2014, 05:03:38 PM
jogging is not related to kbd48cnc, i just have 6 arcade buttons on my panel i made that are connected to pokeys directly, and would like to use two for x jogging, two for y and two for z.
Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on January 03, 2014, 06:09:26 PM
ah ok,

in this case try

Pin***   --> Function= Input --> LED = none --> Button = 307 push to jog X++  --> inverted
Pin***   --> Function= Input --> LED = none --> Button = 308 push to jog X--    --> inverted
Pin***   --> Function= Input --> LED = none --> Button = 309 push to jog Y++  --> inverted
Pin***   --> Function= Input --> LED = none --> Button = 310 push to jog Y--    --> inverted
Pin***   --> Function= Input --> LED = none --> Button = 311 push to jog Z++  --> inverted
Pin***   --> Function= Input --> LED = none --> Button = 312 push to jog Z--    --> inverted
 
is working here

Alex

Title: Re: Two buttons doing same thing, possible?
Post by: cncalex on January 03, 2014, 06:29:39 PM
can it be that your buttons are not momentary switches ?

Alex
Title: Re: Two buttons doing same thing, possible?
Post by: rustamd on January 03, 2014, 06:41:18 PM
They are just plain arcade buttons with cherry brand micro switches, and they are momentary.

I think its how I had it set, however will check in the morning, thanks again!

- Russ