Hello Guest it is June 15, 2025, 06:04:32 AM

Author Topic: program causing pokeys to quit  (Read 9265 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  598 598
program causing pokeys to quit
« on: August 10, 2010, 07:46:23 PM »
I have a small program that runs when a button is pushed. Every time I run this program the pokeys is no longer seen. Here is the program. Any ideas?

SetUserLED (1220, 1)
ActivateSignal(Output3) 'turn on chiller
Sleep (2000)
ActivateSignal(Output2) 'turn on spindle
Code "S18000"
Sleep (120000)
Code "S27000"
Sleep (120000)
Code "S36000"
Sleep (120000)
DeActivateSignal(Output2) 'turn off spindle
Sleep (10000)
DeActivateSignal(Output3) 'turn off chiller
SetUserLED (1220, 0)

Bill

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
Re: program causing pokeys to quit
« Reply #1 on: August 10, 2010, 10:25:35 PM »
Hey Bill, are you running the latest PoKeys Plugin version 10.2, and the latest PK firmware?

Even if you upgrade, I would STILL be at a loss to understand why your program would make it disappear, what do you mean by disappear?

You still have my Biznesscard and phone call me at the house number tommorrow if you can, I might be able to help you through it.

scott
fun times

Offline Bill_O

*
  •  598 598
Re: program causing pokeys to quit
« Reply #2 on: August 11, 2010, 07:57:39 AM »
Scott,
I have 27 buttons and  a proportional joystick on the pokeys. After running the program nothing works on the pokeys.
I also messed up and locked the pokeys. How do I unlock it?
Bill

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
Re: program causing pokeys to quit
« Reply #3 on: August 12, 2010, 10:28:34 AM »
Hey Bill,

      I think there is a conflict inside of Mach3 with the VB sleep functions.... I think Brian is looking into that, since it is inside of Mach.  There is no plugin controlled VB functions or actions in the plugin.  As far as the look up of the pokeys is concerned, I sent you my number give me a call, there is also an Unlock method in the pokeys manual....

Also, The time of the VB Sleep may also suspend the HID/USB connecxtion code, and that may make the PoKeys think it is disconnected.........  again, we (or you), could ask Brian to look into it. He moved my plugin into its very own thread in Mach3 a while back, So, he may have to look at if the PoKeys thread is/will continue to run serperate even if Mach3 is in a "Sleep" state thread.....  I dont know, the issue is a core mach3, I believe and only Brian can chase that one.

scott

fun times