Hello Guest it is January 19, 2020, 12:25:49 PM

Author Topic: MACH4 will not load POKEYS shared library  (Read 6777 times)

0 Members and 1 Guest are viewing this topic.

MACH4 will not load POKEYS shared library
« on: May 14, 2015, 04:09:42 PM »
I have MACH4 hobby running with the Ethernet SmoothStepper and can move the motors, home, and all seems pretty good.  I decided to start working on my Yaskawa pendant which has a POKEYS 56U inside.  This pendant works perfect with MACH3, so figured I would start working on the scripts to make it all work in MACH4.

The issue is when I put the two POKEY plugin files in the plugin directory in MACH4 and restart it I get "Failed to load shared library Mach4PokeysPlugin.m4pw, Error-0, t he operation completed successfully."  I am trying the latest plugin on the Po-Labs site which is 1.5.9 dated 4/26/15, and I have tested this with MACH4 version 2336 and the latest 2441.

If I remove the plugins from the plugin directory restart MACH4 it comes up clean with no errors.  If I tell MACH4 to add the plugin and point it to another directory with these files MACH4 does not even see these files.

I seen other people say they got the POKEYS plugin to work, I followed the docs, must be doing something stupid or something.  Any suggestions are welcome.  Thanks

Russ
Re: MACH4 will not load POKEYS shared library
« Reply #1 on: May 15, 2015, 09:03:58 AM »
Just for a test, I have MACH4 demo loaded on my desktop machine and have the ESS plugin installed but no hardware at all.  I copied the POKEYS 1.5.9/2336 plugin into the MACH4 plugins directory and started MACH4 with no errors.  It finds the POKEYS plugin and has it on the list to configure.  Both machines are running Windows 7 professional 64-bit, so this is very strange, one computers works fine and the other given me ERROR "0" completed successfully.

Russ
Re: MACH4 will not load POKEYS shared library
« Reply #2 on: May 16, 2015, 12:40:52 PM »
I am also getting the same error with the Pokeys plugin. I have tried the latest version and also the previous release of the plugin. The PC is running Win XP SP3. No smooth stepper in this case, I am running the machine via the parallel port with Darwin.

I also tested on another PC that runs Win 7 x64 but doesn't have any hardware attached and found that the Pokeys plugin loaded without any problems.

I would also appreciate any suggestions.

Alastair
Re: MACH4 will not load POKEYS shared library
« Reply #3 on: May 17, 2015, 08:46:24 AM »
Today, I am going to run an experiment.  Thanks Akwell for responding which tells me I am NOT crazy.  LOL

Today I am going to disable the plugin for ESS, which is currently my motion device.  I would think you can try the same experiment disable Darwin and see if the plugin will install for Pokeys.  The logic for this experiment is the POKEY plugin has the ability to be the motion device, so perhaps MACH4 sees you already have a motion device and causes the ERROR 0.  That is the only thing I could come up with since you are seeing the same thing and have a different motion plugin in use "Darwin" the parallel port driver by ART, and I have the ESS plugin.  More to follow to see if this makes any difference.

Russ
Re: MACH4 will not load POKEYS shared library
« Reply #4 on: May 17, 2015, 09:46:57 AM »
Well spent another couple hours running experiments in MACH4 with the POKEYS latest plugin, to no avail.  Clearly there are more issues with MACH4.

1) Even when I try this on my desktop computer with an Intel i7, 12G of ram, super fast video card, where the plugin loads there are issues.  The first issue is if you tell MACH4 to add a plugin and navigate to a directory with the plugin it says nothing matches your search.  Keep in mind this is with the same plugin that loads on my desktop when it is placed in the plugin directory.  That is clearly a MACH4 bug, navigate to file does not work.

2) On the 2.4GHz Dual Core, with 4G of ram, super fast video card, and Windows7 Pro 64-bit, no matter what I have tried I get the error loading plugin with the ERROR code 0, completed successfully.

3) removing all motion plugins from MACH4 and only having it in simulation mode which was my latest experiment made no difference.  The theory was MACH4 did not like seeing a plugin with another motion driver, like the POKEY.  I have updated the POKEY to the latest firmware and using the latest plugin make no difference.  In fact you don't even need a pokey device to add the pokey plugin on my desktop it finds it and adds it to the list.  When I plugin the pokey device USB or Ethernet on my desktop MACH4 allows me to configure the device, so clearly something strange, since both systems are running the exact same version of Window7 and same version of MACH4, the latest, and the latest Pokeys plugin. 

The pokeys device is very popular and one of the first several companies to have provided plugins for MACH4.  At this point I have no clue if this is a plugin issue or a MACH4 issue.  Love to see other users post so the developers would figure out what is wrong.

Russ
Re: MACH4 will not load POKEYS shared library
« Reply #5 on: May 18, 2015, 03:03:57 PM »
Following the lead by Russ I also tried removing all the other plugins. I can report that I also got the same result, that is, it didn't make any difference.

Alastair
Re: MACH4 will not load POKEYS shared library
« Reply #6 on: May 21, 2015, 05:29:17 PM »
To follow up for anyone else who may be having the same issue.

In my case the resolution was to install the Visual C++ 2010 Redistributable x86 package. It can be downloaded from the link below.
https://www.microsoft.com/en-us/download/details.aspx?id=5555


 Alastair
Re: MACH4 will not load POKEYS shared library
« Reply #7 on: May 22, 2015, 08:33:54 AM »
Alastair,

Thank you so much, adding this to my CNC PC also fixed my issue.  The reason it worked on my desktop is I already had the compiler installer for other work, so the libraries were already there.  Thanks again.

Russ
 ::)
Re: MACH4 will not load POKEYS shared library
« Reply #8 on: May 23, 2015, 04:13:40 PM »
Well I have configured my POKEYS unit many times and the unit itself works perfect under MACH3.  I discovered several things over the last few days.  First the MACH4 plugin does not support LED matrix like it did in the MACH3 plugin which was a huge loss, since that was used on my Yaskawa pendant for light up many LEDs.  The other thing was when configuring the matrix keyboard I could get Jog X+,X-,Y+,Y-,Z+ to work but not Z-.  Played with this several times and now I have X+,Y+, Z-, Z+ working but X-, Y- will not work.  I never could get the table to move with the MPG and you can see on the POKEY diagnostic screen that Pins 1,2 are working perfect.  Again, everything works for MACH3, so this is configuration issues on the new MACH4 pokeys plugin and configurations inside of MACH4.   One last thing is when you start the MACH4 the LCD will flash and say POKEYS PLUGIN for MACH4 and then that disappears.  I never got the X,Y,Z DROs to display on the pendant.  The entire configuration of the POKEY in MACH4 is more involved and complex that it was in MACH3.  Anyone get this all figured out and working correctly.  I also can't job the machine using the keyboard that button does nothing in the latest version.

Russ
Re: MACH4 will not load POKEYS shared library
« Reply #9 on: May 26, 2015, 02:50:02 PM »
There is a bug in the matrix keyboard setup. To get it to work you have to set an extra row and an extra column. This had been confirmed by PoKeys support. They have also said that matrix keyboard support is not yet fully implemented and that they have to have it done soon. For example you can't pick a key from the matrix keyboard in the pendant tab.

Perhaps matrix LED support will also be added eventually. May be worth an email to suport@poscope.com.

They have also indicated that after initial discussions with the developers some of the functions that were in the Mach3 Plugin are now to be handled by Mach4 internally but that the user interface in Mach4 may not be fully implemented yet. For the time being the only option appears to be getting acquainted with Lua scripting. Apparently all the signals are available in the registers.

Alastair