Hello Guest it is April 26, 2024, 02:37:48 PM

Author Topic: Can someone else varify a SS bug? while using the modbus?  (Read 13941 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Can someone else varify a SS bug? while using the modbus?
« on: July 10, 2009, 02:09:19 AM »
I have 3 different computers with Mach3, and this bug happens on all three.  I have the SS installed and working, on each, I then set up the Serial modbus, with a simple Brian.
then Mach3 Crashes. This doesnot happen when using the PP.

So if you happen to have somekind of Modbus device, like: Peter Holmans Mod IO, or CNC4PC's Modbus cards, or a PLC  can you set up your serial (TCP modbus in the latest Mach3 is currently broken). modbus and make a simple Brain that will transfer a input from the modbus to a ULED on the Screen, and perhaps set up a button on the screen that will turn on another ULED that will go out to your external device to turn on an LED or something like that.

Here is what I am seeing: With the Smooth Stepper working, the Modbus working and the Brain enabled and working Mach3 will crash.......  Under the exact same conditions but using the Parallel ports Mach will not crash.  I dont understand why adding the SS to a slightly more complex system should make it crash.

I am running the latest SS plugin, and Latest Mach3    .027

The conflict seams to be in running the Smooth Stepper and the Modbus since you have to use Brians to do things with the serial plugin modbus it could therectially be Brains and SS have an issue..............  BUT, to test that, I wrote a quicky plugin that did the Modbus serial IO discussed above and still the crash, BUT, NOT, on a PP system......

Perhaps if others are seeing this, or can recreate it, we can give Greg some info that may help him track it down.

scott
fun times

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #1 on: July 10, 2009, 04:17:10 AM »
My lathe has a PLC (serial Modbus) and SS and has no problems.
Hood

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #2 on: July 10, 2009, 11:26:24 AM »
are you running "Brians" along with it?
fun times

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #3 on: July 11, 2009, 02:24:25 AM »
Yes, have two running via your Mad plugin and another 2 or 3 as well.
Hood

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #4 on: July 11, 2009, 10:01:14 PM »
Hummm,

   The bug appears here, when everything is running: SS, Modbus, Brians, and then you "Edit" and reload your Brian, or sometimes, enable or disable a brian, and then view the enabled one, it then crashes.

After that once you reboot mach (post crash), it then runs ok, (unless the Ground bug in the SS appears), but with repowering the SS that unlocks the USB glitch. It then works ok, untill..........  you try to edit the Brians and then the Mach Crashes, again......

I dont know what else to do really,  The only work around I have found here is to Unhook the SS, and turn off the Plugin.  Then close and restart mach3, do all the Brians changes, and Serial Modbus changes that need to be done. Then close mach3, and reopen, then enable the plugin then close and open again (with the SS pluged in). It then comes up ok, and runs ok.....

I dont know for sure what it is, but my suspecion is that there is something in the way the active Brian Editor, or Brian controller interacts with the active SS. I dont understand why.

But I can recreate it on any 3 of my comps one running XP, one running Vista 32, and last Vista 64

scott
« Last Edit: July 11, 2009, 10:05:52 PM by poppabear »
fun times

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #5 on: July 12, 2009, 05:34:08 AM »
Ah ok now that is a different thing,  you are editing or enabling the Brains not just running them, that has jogged my memory :)
 I believe this is a Mach problem which may or may not be solved as I still use 021 version on my lathe. What I have done in the past to enable or edit a brain was rename the exe and put a slightly older one in, start Mach and enable or edit the Brain, shut down and then replace the exe with the renamed one and all is fine.
 Brian was aware of this a while back and thought it may have been fixed but as I have never moved on from 021 on the lathe (no point as nothing has been done to turn ;)  ) I dont really know. Version 3.042.020 should be OK, dont have my machine hooked to the network today (took the PCI card home to test something there) so afraid I am unable to test 027.


Hood
« Last Edit: July 12, 2009, 06:33:30 AM by Hood »

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #6 on: July 12, 2009, 07:47:58 AM »
So, it appears you also have to do "Stupid Pet Tricks", to get the contraption to work.......  I now dont feel so crazy seeing that your seeing it also.  If you dont mind, since you have a "Call a Friend" line to Brian, could you ask him to look into it???

and if you get a chance, run the 027 on your R&D comp and see if your seeing it thier as well.

Yesterday, I flew down to Atlanta, GA.  Had an OEM there who had a router that had 12 hold down clamps(with open close sensor), and a Foot plate on his dual spindle. He had a M13 for all the extra IO load (about 20 inputs and 16 outputs on the modbus).  He was running a Smooth Stepper and didnt know how to get all the modbus and brains set up).  To make  a long story short while setting up Mobbus serial & Brians the same crash happened there as well. Each time I had to Reboot the entire computer, (to unlock mach3 even running the driver test didnt unlock/close it). Once the Comp came up, I had to kill power to the SS and reapply to unlock the USB port (Yes, varified a good ground). Then do the Pet tricks above to make the brians to bring in the IO and Pendant on the modbus to mach3.    Very frustrating, the customer was talking about going back to the PP, since it dropped or crashed so much.  But in the end I got it working, once I figured out the work around above.

scott
fun times
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #7 on: July 12, 2009, 01:45:12 PM »
Scott,

This ijust a 'shot in the dark' for what it's worth.  I have noticed a pluthera of communication problems when I hooked up my SS to a computer that has USB ver 1.0 on it.  All kinds of weirdness that was really hard to T-shoot.  Finally I decided to disable any onboard USB Hubs and installed a Ver 2.0 USB/PCI card.

All problems disappeared.  SS wants USB ver 2.0 anything else is a crapshoot.

HTH,
Sid

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #8 on: July 12, 2009, 05:34:24 PM »
hmmmmm,

interesting point, I will definatly look into that one!!!

Thank you for the heads up........

scott
fun times

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Can someone else varify a SS bug? while using the modbus?
« Reply #9 on: July 13, 2009, 04:28:36 AM »
It is a Mach problem, the lockdown is fine, anything newer is not. Brian was aware of this when I first tested Ver 3.042.021 hopefully it will be fixed in Rev 4 (if not then the moaning starts ;) ) but until then use the lockdown version or if you need to use a later version for any reason then have the .exe for ver 3.042.020 handy so you can place it in the folder to do any editing or enabling, it only takes a few seconds and as said is only needed if you have a reason to need one of the development versions otherwise use the lockdown.
Hood