Machsupport Forum

Third party software and hardware support forums. => SmoothStepper USB => Topic started by: widpyro on March 07, 2012, 10:09:38 PM

Title: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 07, 2012, 10:09:38 PM
I am using smooth stepper and it works well EXCEPT for one isuue: I am using a brain to close an output switch when the DRO for the Z axis is greater than 0.00.    This worked fine on an old laptop with a DB25 output connector so I know the g-code can run properly. When I use a laptop with a USB connection and SmoothStepper, the g-code stops running when the Z-axis is used to close the output switch.

Can anyone suggest a fix for this problem?

Thanks,
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 09, 2012, 09:39:32 AM
Can you post your brain here and the version of Mach and the SS plug-in you are using? Some things that Mach does in Brains/macros do not work well with external motion devices like the SmoothStepper. Mostly this is due to the plug-in not being told (having access to) some information from Mach. Also what are you doing with this output? There may be other ways to accomplish the same result.
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 10, 2012, 08:31:12 AM
My Brain is:

If Z DRO > 0.0000  close output #4

I am using a command to the Z axis to close a switch. I am doing this because I want the switch to close while the X and Y axis are moving.

Thanks, any help is MUCH appreciated.

-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 10, 2012, 10:30:41 PM
But WHY are you turning on OUtput#4? What does outptu#4 do? I'm trying to understand what you are trying to accomplish.
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 10, 2012, 10:50:46 PM
I am not using Mach3 to run a milling machine. I am using it to control a CNC machine of my own design. What needs to happen is for me to be able to throw a switch in the middle of an x&Y axis run.

So my question is what is causing smooth stepper to stop the running of my g-code. Do I need to de-bounce the signal? Do I need an opto-coupler between smooth stepper and my motors/switches?

Thanks,
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 11, 2012, 10:35:09 AM
Jim I'm really trying to help you but you won't answer my questions. I'll try one more time:

1) What does your Output #4 do? Turn on a coolant pump, an air blast etc? If you tell us what this output does someone may be able to come up with an alternate way to accomplish the same task. For example a typical way to turn on an output would be to use GCode by issuing an M3. You can even create your own macro to turn on a custom output.

2) What version of Mach and the SmoothStepper plug-in are you using?

In general Brains can be hard to work with as they often have not worked properly from one version of Mach to the next.
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 12, 2012, 07:18:34 AM
Hi Jeff,
Sorry for not being as clear as possible. Output #4 turns on a compressed air solenoid valve on my application. It is open for about 1-4 seconds during an (approximately)  10-20 second run of the motors connected to the X and Y axis.

I just got the smooth stepper about 2 weeks ago. I am using the most current version of Mach3 (as downloaded from the artsoft website.

thanks,
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 12, 2012, 10:02:49 AM
OK, why not use an M7 or M8 (typical coolant/mist macros) to turn your solenoid on/off?

i.e.

M7
G1 X10.5 Y0
M9
G1 X15 Y0

That would be a more typical way of controlling an air blast.

Can you tell me 'exactly' what versions of Mach and the SmoothStepper plug-in you are using. The reason I keep asking is that there have been recent changes in Mach that broke compatibility with some plug-ins and you should only use the current Mach lock down version with the latest USB SmoothStepper plug-in. When the next USB SmoothStepper plug-in comes out it will be made to work with Mach .057 and higher.
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 12, 2012, 08:04:06 PM
Hi Jeff,

The smooth stepper i am using is version 1.2

The version of Mach3 is:  R3.043.022

Hope this helps. Please help!!

Thanks,
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 13, 2012, 06:23:17 PM
When the z axis is activated to trigger the #4 output using a brain, it will sometimes work. But every once in a while, the E-stop is activated when the #4 output is set back to "off".

Is there a software adjustment that will make the e-stop function less sensitive? I don't know why it is being tripped, but since it happens irregularly, I wonder if the problem might be a switch "bounce" or the duration of the #4 output signal.

Thanks,
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 15, 2012, 07:26:16 PM
Quote
When the z axis is activated to trigger the #4 output using a brain, it will sometimes work. But every once in a while, the E-stop is activated when the #4 output is set back to "off".

This sounds like noise from the solenoid turning off is causing interference. When an inductive load, like a solenoid or motor, is turned on or off an electrical spike is generated which can cause problems. You can fit a snubber across the relay to reduce the noise generated.
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: widpyro on March 15, 2012, 08:03:01 PM
Whats a snubber?
-jim
Title: Re: smooth stepper stops when using z-axis to throw switch
Post by: Jeff_Birt on March 17, 2012, 10:28:22 AM
A snubber (or arc snubber) is an electronic component that contains a special type of capacitor and a resistor in side it. You fit it across the relay contacts and it help to keep an arc from forming when the contacts open/close. I like to use a line filter mounted close to the spindle motor as well. The line filter will keep most of the electrical noise from the motor from propagating through the system.