Machsupport Forum

Third party software and hardware support forums. => PoKeys => Topic started by: Hood on October 13, 2008, 07:59:36 PM

Title: Art has posted new plugin
Post by: Hood on October 13, 2008, 07:59:36 PM
Heres what Art has to say and also have attached the plugin.

Quote
Hi Guys:

New dev version PoKeys.m3p is in the files section for testing. It will accept
up to 7 encoders, but is untested in that regard. It uses new firmware that you
have to download from poKeys ( PoKeys55) ..

When turning on encoders, you must set them to port#10 in MAch3, and the
encoders used must be numbered from 1 - x in order in the plugin. In other words
if you turn on only #5 and #6 which are MPG encoders, then you need only
encoders 1 and 2 turned on in the pokeys. You dont need to turn on 6 of them and
then only use #5 and 6.

Again, untested except for basic IO. Analogue's .. up to 4 .. are read as well
if available and put in the same spot the G100IO uses ( registers 124 - 127 )
for use by brains. The analogue inputs are all 16 bit.

No analogue out has been added, Ill add that in future when the current encoder
tests and analogue input testing is complete.

Thanks,
Art
Title: Re: Art has posted new plugin
Post by: budman68 on October 13, 2008, 08:15:47 PM
Hood, I'll probably have to ask Boris about this but do you know if there's a way to update the Pokeys Firmware without having to be connected to the internet? In other words, a separate downloadable file?

Thanks,
Dave
Title: Re: Art has posted new plugin
Post by: Hood on October 14, 2008, 02:57:41 AM
dont have a clue I am afraid.
Hood
Title: Re: Art has posted new plugin
Post by: budman68 on October 14, 2008, 06:07:42 PM
Just spoke (emailed) with Boris, he said you can just download the software and that's it.

Dave

Title: Re: Art has posted new plugin
Post by: Hood on October 15, 2008, 06:03:54 PM
Good to know Dave, thanks.
 I have been too busy soldering up circuit boards the last few nights  to set the pokeys up with an encoder but hope I can tomorrow evening. Have you tried it yet?
Hood
Title: Re: Art has posted new plugin
Post by: budman68 on October 15, 2008, 06:31:24 PM
No sir, not as of yet.

I've just been swamped all of a sudden with my "side job" work to even setup the new software, let alone connect an encoder that doesn't even exist   :D

Dave
Title: Re: Art has posted new plugin
Post by: Hood on October 15, 2008, 07:29:47 PM
LOL, oh well hopefully I will get a chance tomorrow evening or should I say this evening as its after midnight now

Hood
Title: Re: Art has posted new plugin
Post by: borisz on November 20, 2008, 01:37:36 PM
New, faster plugin for PoKeys55 is published on htttp://www.poscope.com
Thanks Art.

Z lepimi pozdravi / With best regards
Boris Zalokar
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 01:39:53 PM
Just tried the one that Art posted on the Yahoo group and it doesnt work for analogue or MPG. I will try the one posted on your site and see if that helps.
Hood
Title: Re: Art has posted new plugin
Post by: borisz on November 20, 2008, 01:45:34 PM
It was released today.
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 01:48:48 PM
Yes that is correct, Art posted on the Yahoo a few hours ago and it doesnt work for me, have also just downloaded from your site and again not working. I will check and see what the PoKeys software is reporting to see if it is something else wrong.
Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 01:55:44 PM
PoKeys software shows both MPG and Analogue working correctly but no response in Mach. If I revert to the previous plugin both are working again.

Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 02:32:14 PM
Upgraded to latest firmware and it is now again working. MPG response
is much faster although it is just on the desktop and not actually
controlling any motors but would think it to be fine.
Analogue still a bit funny, if I wind the pot down  too fast then the FRO
DRO may end up at any number between the 146% and minimum, usually
between 30 and 6. Winding it slowly it works fine. Winding up the way to max  at any speed always results in the 146% which is correct.

Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 02:52:41 PM
Analogue FRO does not seem to work now when actually running the code. Do a feedhold and the DRO will update and the analogue start working but start the code again and it again stops working.
Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 06:00:37 PM
Sorry to keep reporting things but the MPG doesnt seem to work in any mode other than velocity, step and multistep dont work.
Hood
Title: Re: Art has posted new plugin
Post by: ART on November 20, 2008, 06:43:37 PM
hood..

 Ill check it out. I take it all inputs work except during running of code as well?

Art
Title: Re: Art has posted new plugin
Post by: Hood on November 20, 2008, 07:09:18 PM
Just tried an Input and it is very slow to react when code is running but does eventually.

Hood
Title: Re: Art has posted new plugin
Post by: HillBilly on November 23, 2008, 06:16:51 PM
Hood,

What FORMULA are you using in the BRAIN for your analog input for the FRO.

Darek
Title: Re: Art has posted new plugin
Post by: Hood on November 23, 2008, 06:20:46 PM
Hood,

What FORMULA are you using in the BRAIN for your analog input for the FRO.

Darek

A/7


Hood
Title: Re: Art has posted new plugin
Post by: HillBilly on November 23, 2008, 06:22:53 PM
Try (A/7)+.1
Title: Re: Art has posted new plugin
Post by: Hood on November 23, 2008, 06:24:58 PM
Art has posted a new plugin and all seems to be working well in it. I still had problems with the Pot not setting the DRO to zero but by chance I was trying all different pots and found one that would work if wired backwards, ie turn CW to reduce. I found the reason it was working and it is because when its would fully clockwise it does not go to 0 Ohms but rather 30 or so. I have just soldered a 32Ohm resistor in line with the other pots 0V and it works perfectly as well so looks like the Brain has to catch up a bit and needs to see it just about at minimum but not quite :)

Anyway the new plugin is attached.

Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 23, 2008, 06:26:25 PM
Darek, thanks will try that as well but I was typing while you posted and I have found a workaround :)
Will let you know if your way works also, away to test .
Hood
Title: Re: Art has posted new plugin
Post by: Hood on November 23, 2008, 06:30:26 PM
Darek, yes your formula works perfectly :)

Thanks

Hood
Title: Re: Art has posted new plugin
Post by: budman68 on November 24, 2008, 05:40:34 PM
What is and how are these "formulas" used?

Thanks,
Dave
Title: Re: Art has posted new plugin
Post by: Hood on November 24, 2008, 05:47:44 PM
The formulas are used in Brains, it lets you scale the analogue inputs to suit. I actually have (A/6.8)+0.1   now as that means I have 0 to 150%  for the FRO. Changing the denominator would alter the max % so for example having 5 would be 204%.

Hood
Title: Re: Art has posted new plugin
Post by: budman68 on November 24, 2008, 05:51:18 PM
Ah, I see, I still have yet to play with any brains yet, (insert simple joke here)  :P

Thanks for the explanation though, as I'm sure I'll understand it.... someday -

Dave
Title: Re: Art has posted new plugin
Post by: Hood on November 24, 2008, 06:01:02 PM
LOL you and me both. I am probably wrong but this is my understanding ,  the PoKeys analogue inputs are 10Bit (Binary Digit) so thats 10000000000 or in decimal thats 1024. The Pokeys seems to actually be 1020 so divide that by 6.8 and you get 150.
Make sense?
If yes then can you tell me what it means :D

Hood
Title: Re: Art has posted new plugin
Post by: HillBilly on November 24, 2008, 07:01:09 PM
I ran into this same problem using a Modbus analog input. It appears you can not send the FRO terminator in a brain a value of zero, thats where the +.1 comes in. When you do send it a zero it will remain the value it was before it saw the zero.

Darek
Title: Re: Art has posted new plugin
Post by: Hood on November 24, 2008, 07:05:41 PM
Seems to be the case Darek and that will also be why putting a resistor in the 0V line does the same as basically the resistance means you can never send a zero. Your way is better though as it means no extra hardware is required :)

Hood