Page 25 of 59

Re: reading Pokeys pins

Posted: Wed May 29, 2019 12:53 am
by ArtF
Gary:

  Yes, very possible. Myself and Yanvrno realized at some point the fonts were a bit
flakey due to some technical factors. I havent worked on them as we typically worked around
the problem by using designs that didnt screw up, I was worried about breaking existing panels
and screens. I will take a look this week though to see if I can update them to be a bit
safer. The system "tries" out a font sizing of the text and adjusts it to just fit in a window,
it some cases it can fail, Ill see if I can figure out why in this case. If I can fix it
without breaking predefined screens Ill make a change.

Thx
Art

Re: reading Pokeys pins

Posted: Wed May 29, 2019 8:32 pm
by gburk
art

ok thanks I can set the panel to resizable forget the exact command but that will work, guess it really won't matter to much with the screen panel for spindle
the main thing is I get it to work correct with the m3 seeing the g code will be calling it most of the time screen panel was there mostly for testing.. 
but won't know till I get the new controller..

gary

Re: reading Pokeys pins

Posted: Fri May 31, 2019 4:00 pm
by gburk
Art

I think I seen you using a poscope in one of you video's..
How is it? is it worth the purchase..

Gary

Re: reading Pokeys pins

Posted: Tue Jun 04, 2019 6:52 pm
by gburk
Art

Got the new kb controller working on wiring it up a lot different than the old board hopefully I will get it right if not kaboom >:(
hoping to have it back in tomorrow and will see if auggie works I know I have the pokeys wired right now anyway..

Gary 

Re: reading Pokeys pins

Posted: Thu Jun 06, 2019 1:39 pm
by ArtF
Gary:

Never tried a PoScope. I have a  bench scope and a small pocket scope
thats usb I use in tight situations, but I havent tried a PoScope.

  Ill keep cross my fingers crossed for you.

Art

Re: reading Pokeys pins

Posted: Thu Jun 06, 2019 6:11 pm
by gburk
Art

I think you will be happy, I have the new kb wired up and tested it with auggie and the spindle is working m3 S it is changing the speeds ok and m5 shuts it down so will m3 s0.. I haven't tested what the RPM's are yet ended up needing a battery for my rpm reader.. will let you know in the next day or 2 how close it is compared to what I set it to with the m3 S code..

Also I am thinking of setting up CW and CCW spindle I have m4 working, my question is, I still have problems figuring out how to set pins from high to low.
Like if a wanted to control a relay not on board, I need to send 5+ to trigger the relay would SetPinDig GetPinDig be the proper way to read and write to the pin#?.
I know with the probe you have pin19 built into auggies config..

Ok I hooked up pin28 from the lcd 16pin plug and 5+, if I power on pokeys I get nothing from the pin no voltage if I set to 0 or 1 from auggie, now if I run the pokeys config I see the pin28 is set for digital out, but still no voltage change from auggie, but if I invert the pin in pokeys config it will start to work with auggie I can invert it again and still works I can close out the pokeys config and it works great, but if I power the pokeys off and back on its back to not working seems like I allways have to make a change to the pin in pokeys config for it to start working, Any thoughts on this?..


have you had a chance to check the g code m6 running when g code file first loaded..

Thanks gary 

Re: reading Pokeys pins

Posted: Wed Jun 12, 2019 5:58 pm
by gburk
Art

I think we have discussed this before dialogs.

anyway if I remember there is no way to read which button was pressed Ok or Cancel correct?

and if I create my own button, is there a way to close the dialog when button pressed?..

dialog doesn't seem to close endless you hit Ok Cancel or the X..

Thanks gary

Re: reading Pokeys pins

Posted: Thu Jun 13, 2019 5:56 pm
by ArtF
Hi Gary:

>>would SetPinDig GetPinDig be the proper way to read and write to the pin#?.

  Yes, Those should set any pin. I dont use any myself though, both my systems
are using the relays as the only output. But, on my test rig, I can turn on or off an LED
on a pin I set with those calls. Im not sure why you need to set it in pokeys though,
I dont. Did you tell the pokeys to save the config when you set it to digtial?
Is it still set to digital out when you next run Pokeys again?

  Last test I did , the M6 didnt run on load, I did add a kill for that but now
Im not sure if I released that version. I will check it and release a version
today or tomorrow just so we're sure. I turned off all macro calls during load
as a safety as I recall.

  As to the Dialog issue, I dont think you have much choice as it is implemented,
the user has to press OK or cancel to exit and close the dialog. I will add a Close()
command for you today , call if from any script that dialog is calling from a button
or item.

  Should be out within a day or two..

Art




Re: reading Pokeys pins

Posted: Thu Jun 13, 2019 8:23 pm
by gburk
Art

Some of my problem setting relays other than the 2 onboard is for some reason pokeys is outputting at least 1.6v from a pin before I trigger it..

for example if I use the LCD pin28  opps I forget if I had the other wire to gnd or +5 but anyway it would have 1.6v pin not triggered and for the relays I was using that was enough to trigger the relay on, so as soon as I powered pokeys the relay set if I triggered the relay it would jump to +5 so it was working.. I also tried the SSR output and I was getting the same voltage results..

The two onboard relays work fine, problem is I have 2 relays for power to the spindle m3 m4 and 2 for forward and 2 for reverse... SSR relays
I just ordered a couple DTDP I am going to try hopefully that will eliminate 2 relays..

I don't know to much about the oc1 2 3 4 outputs is it possible to use them?.

And a close() for the dialog would be great thenks

Gary 

Re: reading Pokeys pins

Posted: Fri Jun 14, 2019 6:16 pm
by ArtF
Gary:

New Auggie is online. It has a Close() command for dialogs
as a test, its untested as of yet.

  As to the voltages, that really sounds dodgy, if your connected to the
pokeys ground you should have 0 volts to the pin, or 5, but it may be your
requesting too much current. The outputs are pretty low ma capability
so wiring can count. Are you triggering with a transistor circuit?

oc's should work, though I havent used them I dont think..

Art


Art