Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Flipz01 on August 22, 2009, 04:16:49 PM

Title: Smooth Stepper reset
Post by: Flipz01 on August 22, 2009, 04:16:49 PM
Has anyone else had a problem with the Smooth Stepper hanging up.  That is, if I do something that makes it glitch, like hitting my e-stop, the Smooth Stepper has to be unplugged for about 15 seconds, restarted, and then Mach has to be re-started to get the thing sorted.

We were at a trade show with a machine and somebody leaned against the e-stop.  I finally gave up and re-booted the computer to get the Smooth Stepper back online.  VERY embarassing while potential customers watched.

I took it out before delivering the machine - too many little issues.  For example, bridge squaring was iffy!

That was about 6 months ago - any improvements since?
Title: Re: Smooth Stepper reset
Post by: HimyKabibble on August 22, 2009, 04:21:24 PM
I've been running a SmoothStepper for almost a year, and no such problems.  It has, perhaps twice, gone out to lunch due to a buffer under-run, but exiting Mach, dis-connecting and re-connecting the USB cable, then re-starting Mach got it going again.  And I believe that problem will be fixed in the new Plug-In Greg is working on.

Regards,
Ray L.
Title: Re: Smooth Stepper reset
Post by: Greolt on August 22, 2009, 08:19:18 PM
I have wondered about this also.  When communication is lost to SS a disconnect and restart is required.

The SS does have connectors on board for a reset switch, but as far as I can tell they have no effect.

Unplugging the USB cable is the only thing that works for me to reset the SS.  That is why it is still on the shelf.

Greg
Title: Re: Smooth Stepper reset
Post by: HimyKabibble on August 22, 2009, 10:55:16 PM
I have wondered about this also.  When communication is lost to SS a disconnect and restart is required.

The SS does have connectors on board for a reset switch, but as far as I can tell they have no effect.

Unplugging the USB cable is the only thing that works for me to reset the SS.  That is why it is still on the shelf.

Greg

Greg,

How many computer peripherals do you have that you can just reset on-the-fly?  Any USB device will require a re-connect to re-boot it....  Besides, I've had to do that perhaps 3 times in the last year.

Regards,
Ray L.
Title: Re: Smooth Stepper reset
Post by: sshneider on August 23, 2009, 01:27:14 AM
What USB Protocol are you using?  (i.e. USB 2.0).  I was having a ton of comm issues with smooth stepper on a machine that had USB 1.0.  Then I purchased a PCI to USB 2.0 Card and after installing virtually all my problems went away.  I seem to recall getting some pop up message once that said something like, Communication error motin has been stopped in the future this will be handled more gracefully, press ok to regain control.  Pressing OK did not regain control, nor did a reset- however, shutting down Mach (no power cycling necessary) and relaunching Mach cured all.

HTH,
Sid
Title: Re: Smooth Stepper reset
Post by: Greolt on August 23, 2009, 01:31:12 AM


How many computer peripherals do you have that you can just reset on-the-fly?  Any USB device will require a re-connect to re-boot it.... 



Yes I hear what you are saying Ray.  But what is the reset on the SS for?

Greg
Title: Re: Smooth Stepper reset
Post by: budman68 on August 23, 2009, 08:26:12 AM
I have wondered about this also.  When communication is lost to SS a disconnect and restart is required.

The SS does have connectors on board for a reset switch, but as far as I can tell they have no effect.

Unplugging the USB cable is the only thing that works for me to reset the SS.  That is why it is still on the shelf.

Greg

Can't say I blame you Greg, that's a but un-nerving  :o

Dave
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 09:28:09 AM
The reset is for forcing the flash memory to clear. You should never actually have to use it though.

When you have to unplug the SS and restart mach to get things going again it is a clear sign that you are picking up noise on the USB cable. After the USB hub in your computer gets tired of trying to work through all the noise it will shut down. As another poster said, a similar problem can come from some USB 1.1 ports being flaky, I have one of those PCs my self, the PIC USB card has kept it going for years though.

Make sure your USB cable is as short as possible and is not routed along with noisy lines like your stepper leads, or AC lines. Other things in your machine can cause a lot of electrical noise too, like the spindle motor. I  have found on Taigs that if you get the spindle power power arranged just right alongside the USB cable it will cause problems. I mounted a line filter up by the motor to solve the problem (and made the line filter kit available through my website).
Title: Re: Smooth Stepper reset
Post by: budman68 on August 23, 2009, 09:32:56 AM
Hi Jeff,

Is all that info that you just mentioned included in the smoothstepper instructions or something like that something "everyone" should already know?

I would think if noise was enough to stop the unit, there would be some sort of filter built into the line itself on the smoothstepper? Kind of like how they used the filter on a PC monitor cable?

Thanks,
Dave
Title: Re: Smooth Stepper reset
Post by: Greolt on August 23, 2009, 09:33:55 AM
The reset is for forcing the flash memory to clear.

OK so why does it not work for me?   I must not only restart Mach but also disconnect/reconnect the SS.

Is that not what the reset on the SS is for?  Or is it some other purpose?

Greg
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 10:25:55 AM
Quote
Is all that info that you just mentioned included in the smoothstepper instructions or something like that something "everyone" should already know?


There is a note somewhere in the docs about it. It is a reset for the flash memory, it clears the flash memory. You have to have the reset shorted when powering on to make it work. As I mentioned you should never need to use it. Usually memory resets like that are intended to rescue a unit (any device with flash memory) that has locked itself into an unknown state.


Quote
I would think if noise was enough to stop the unit, there would be some sort of filter built into the line itself on the smoothstepper?

The problem is noise induced on the USB cable.  The way USB hubs work is that they will give up if they see too much noise. While the SS does have some noise filtering built into it, as does your PC, when building a machine you have to try to minimize the noise from outside sources as much as possible. To do that you need to filter the noise as close to the source as possible, hence I mounted my line filter for the Taig spindle motor in spindle switch box (used a larger box.)
Title: Re: Smooth Stepper reset
Post by: sshneider on August 23, 2009, 11:33:21 AM
Jeff,

Thanks for your comments.  It seems that you & I are living parrallel lives regarding the SS.  

I have experienced all of the USB noise related problems that you mention.  

Currently I am having a problem with my spindle motor triggeriing a reset.  Noise filters in the plug in are ineffective.  I'm going to check out the line filter you mentioned but, sometimes it's pretty hard to route the USB cable in the manner in which you describe.  Enclosure size/configuration can make it a real challenge to kick this USB noise thing.  

That being said is is possible to design/build/modify a USB calble that has some sheilding (I don't think USB cables have any??).  Perhaps this might be the 'Silver Bullet'?

Sid

P.S.  Do you guys think we should move this topic over to the SS forum/section???
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 11:51:13 AM
All USB cables (any one that displays a USB logo) is shielded, but it is not enough in all applications.You can try adding a ferrite core over the USB cable, that can help but it can also slew the data making it harder to read. You can also buy shield braid that slips over existing cables. I used to use it all the time on plasma torch leads. Greg is working on an inexpensive USB isolator right now. I think it will be a big hit with all sorts of industrial USB applications.

For spindle motor noise you need to nip-it-in-the-bud by placing a line filer close to your spindle motor. The 10A line filter kit is here: http://soigeneris.com/cncparts2.aspx, I've attached a pic of how I installed it on my Taig.
Title: Re: Smooth Stepper reset
Post by: HimyKabibble on August 23, 2009, 11:53:52 AM
Hi Jeff,

Is all that info that you just mentioned included in the smoothstepper instructions or something like that something "everyone" should already know?

I would think if noise was enough to stop the unit, there would be some sort of filter built into the line itself on the smoothstepper? Kind of like how they used the filter on a PC monitor cable?

Thanks,
Dave

Dave,

USB 2.0 runs at a 480MBit/sec data rate.  Any "filter" to remove external noise would also remove the signal.  Interfaces like USB simply can't work in noisy environments.  So, you have to fix the noise at the source.  Of course, that's *always* the best way to deal with noise problems anyway.

Regards,
Ray L.
Title: Re: Smooth Stepper reset
Post by: HimyKabibble on August 23, 2009, 11:58:47 AM
Jeff,

Thanks for your comments.  It seems that you & I are living parrallel lives regarding the SS. 

I have experienced all of the USB noise related problems that you mention. 

Currently I am having a problem with my spindle motor triggeriing a reset.  Noise filters in the plug in are ineffective.  I'm going to check out the line filter you mentioned but, sometimes it's pretty hard to route the USB cable in the manner in which you describe.  Enclosure size/configuration can make it a real challenge to kick this USB noise thing. 

That being said is is possible to design/build/modify a USB calble that has some sheilding (I don't think USB cables have any??).  Perhaps this might be the 'Silver Bullet'?

Sid

P.S.  Do you guys think we should move this topic over to the SS forum/section???

Where do you guys have your SS mounted?  I used to have mine mounted *inside* the PC case, and it worked perfectly in there, in two different PCs.  I now have it mounted inside my E-box, which contains *everything* - PC, servo power supplies, VFD, relays, and lots of other stuff.  And the SS is within inches of the servo motor wiring.  It works absolutely perfectly in there.  If you're seeing flaky SS operation, you must have something in your system that is radiating some serious noise.  You should find that, and fix it at the source, and your whole system will probably behave better.  It is very important to have your grounding right.  I think this is an area many people don't understand, and don't handle correctly, ending up with shields that carry signals or noise, ground loops, and other things that can cause very erratic behavior.

Regards,
Ray L.
Title: Re: Smooth Stepper reset
Post by: sshneider on August 23, 2009, 12:33:43 PM
Jeff,

Thanks but, I am running a 1.5HP 3Phase spindel motor from a VFD.  I don't think your line filter is gonna do it for me.  I'll have to search elsewhere.  BTW- I think it's the VFD causing the noise problems in my case-not the motor.

Ray,

I have 2 enclosures.  The main panel is a 36"x24" with most everything in there- Power Distro, Servo Motors/breakouts, E-stop circuit contactors, DC power supplies, circuit protection, the PMDX122 breakout AND finally the SS.  The other enclosure is a 16x20 that is mounted on top of the main panel. It houses the computer, Screen, E-stop button and a few indicator lights.

Everything works pretty well- EXCEPT starting the spindle motor from Mach triggers a reset about 80% of the time.

I don't understand why you would mount the SS inside the PC case.  It seems to me that it defeats the purpose of being able to use USB cables to break the 6' PP cable liimit-maybe I'm misunderstanding something??

I know I'm going to sound like a broken record here but...Interestingly when I run this system on PP everything works flawlessly.  ZERO noise problems.  I just have to run at a lower resolution and conversely a slower speed due to the high encoder count (or use electronic gearing).

Any suggestions to 'get er done' with the SS would be appreciated!!

Thanks,
Sid
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 12:50:48 PM
The noise is there when running with the LPT as well. It is just being picked up by the USB cable. Look to see if your VFD manufacturer has a 'line reactor' available.
Title: Re: Smooth Stepper reset
Post by: HimyKabibble on August 23, 2009, 01:02:33 PM
Sid,

Inside the PC enclosure is fairly "quiet", so it's a very safe place to mount the SS.  Inside your "main panel"....  Not so much.  The PP cables are reasonably noise-immine, as long as you use a good shielded cable, and don't connect the shield at the main panel end.  If you want to brute force it, enclose the SS in a metla box.  Just a grounded sheet-metal enclosure (preferably steel) over it should help a lot.  Make sure the USB cable *inside* the "main panel" is as short as possible, and that the main panel itself is well grounded.

MOST problems I see on the forums are due to inadequate shielding and grounding, not SS, not PC, etc.

Regards,
Ray L.
Title: Re: Smooth Stepper reset
Post by: budman68 on August 23, 2009, 01:07:35 PM
I think you fellas are correct in saying that most problems are indeed noise. Even though there are MANY variations/ways to put together a CNC setup, there should be a single place that someone can read (and understand, lol!) how to properly ground/sheild a system.

Thanks for the info as always, guys- :)
Dave
Title: Re: Smooth Stepper reset
Post by: sshneider on August 23, 2009, 01:45:05 PM
Ray,

Thanks- Steel Box comming right up!  I know the Main Enclosure is grounded well.  I am using the standard USB cable that Greg/Stephanie ship with their units, I think it's about 4 feet.  It's too short for me to route around the perimeter of the enclosure (away from other pwr cables) SO- I was able to route it BEHIND the subpanel.  It is the only cable runing back there and my thought was that being behind a 1/32" plate of steel it would help with the noise issue. Maybe not??  I'll try the steel box but maybe I need to rething my USB cable routing and get a longer USB-A to USB-B?

Aside from this issue- everything else works good!

Regards,
Sid
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 02:14:47 PM
The one they sell is 6'. I have them in 10' and 15' as well. Shorter is better. VFDs are noisy critters though, the USB isolator Greg is working on may be a good fit in your application.
Title: Re: Smooth Stepper reset
Post by: Greolt on August 23, 2009, 06:20:39 PM
OK I take it that no one knows what the reset on the SS does or how to implement it.   ;D

Greg
Title: Re: Smooth Stepper reset
Post by: Hood on August 23, 2009, 06:33:41 PM
OK I take it that no one knows what the reset on the SS does or how to implement it.   ;D

Greg
It has been answered at least twice in this thread, or are you meaning something different?
Hood
Title: Re: Smooth Stepper reset
Post by: Jeff_Birt on August 23, 2009, 06:34:36 PM
Well, I have already stated twice what it does, what the heck maybe the third time is the charm...It clears the flash memory. You have to have the jumper in place when the SS is powered up. It is something you will most likely never need to do.
Title: Re: Smooth Stepper reset
Post by: Greolt on August 23, 2009, 06:46:55 PM
Well I must apologise.  :-[

"Clears the flash memory"    I guess I did not understand what that meant.

I was under the impression that the plugin in Mach reset the flash memory every time Mach booted up.

Greg

EDIT:  I reread Jeff's post number ten where he explained that.  First reading I was just seeing talk of noise elimination discussion and skipped over that bit.  Sorry.