Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: garhar1 on July 11, 2009, 12:20:04 PM

Title: motor does not run
Post by: garhar1 on July 11, 2009, 12:20:04 PM
Just starting.  Xylotex board.  Double checked wiring.  Vrefs all 1.86V.  VBB 24.8 V checked.
Set X, Y, and Z for pin 2, 3, 4, 5, 6, 7 Step Dir.  Can't get limit switch ( when switched) to show on Diagnostics.  Motors won' jog, although the position DRO moves when arrows pressed. 
Tried Paralell Port BIOS settings of output only, bidirectional, EPP, and ECP, with no motro action on any.
Can some one point me in a direction?
Thanks,
Title: Re: motor does not run
Post by: Hood on July 11, 2009, 04:06:25 PM
Correct port address set up?
Hood
Title: Re: motor does not run
Post by: garhar1 on July 11, 2009, 04:27:15 PM
yes, 0x378.  Check same on parellel port in hardware.
Title: Re: motor does not run
Post by: Hood on July 11, 2009, 04:37:23 PM
Disconnect the  parallel port cable from the computer and put a voltmeter between a Dir pin and a Gnd pin on the computers port then jog that axis, see if the voltage changes between 0v and 5v as you jog one way then the other. If it does then connect the cable up and disconnect the other end and check there.
Hood
Title: Re: motor does not run
Post by: Chip on July 11, 2009, 05:03:55 PM
Hi, Garhar1

I responded to the same Question in FAQ section, http://www.machsupport.com/forum/index.php/topic,12032.0.html.

Please don't post the same question all over the place.

Thanks, Chip
Title: Re: motor does not run
Post by: garhar1 on July 11, 2009, 07:30:12 PM
Put the question in the wrong spot. 
The jumpers are there.  I checked Sherline 1/2 step mode.  Nothing.
I only have X stepper connected.  I hit Y and Z jog.  X moved in same direction with both  Z up and Z down (pg up and down).
Tried it again with  Sherline 1/2 step mode off, nothing.  Turned on Sherline 1/2 step mode again, now nothing.
Title: Re: motor does not run
Post by: Chip on July 11, 2009, 09:17:15 PM
Hi, Garhar1

It may be a LowActive setting issue for the one dir only problem, You'd think the MFG's would do a better job with a "link" to Good setup files.

Just use the pin numbers that move the X axis and change them from Z to X axis in Ports & pins.

Hears the Manual I think for your board, Sending a PM message to you.

Chip
Title: Re: motor does not run
Post by: garhar1 on July 12, 2009, 10:15:47 AM
I'm reading 3.42 TO 0 volts on the parallel port out of computer.

                   PIN 2   PIN 3   PIN 4   PIN 5   PIN 6   PIN 7
X-  ARROW LEFT   0.03V   3.42V            
X+  ARROW RIGHT   0.03V   0V            
Y-  ARROW DOWN         0.07V   3.42V      
Y+  ARROW UP         0.07V   0V      
Z-  PAGE DOWN               0.07V   3.42V
Z+  PAGE UP               0.07V   0V
               

Title: Re: motor does not run
Post by: Hood on July 12, 2009, 10:24:34 AM
Ok so if I am understanding correctly pin 2  pin4 and pin6 toggle between 0v and 3.42 v when you jog each axis one way then the next? If thats correct then that is what you should see presuming you have 2, 4 and 6 set for Dir pins for their respective axis. 3.42 is a bit on the low side and it will depend on the drives whether it is good enough, dont know abiout xylotex.
 Ok try at the other end of the cable now and make sure its going through the cable. If it is then looks like your problem is the low voltage.

Hood
Title: Re: motor does not run
Post by: garhar1 on July 21, 2009, 07:31:51 PM
Chip,
The parallel cable fixed the problem.  So the serial printer null modem cable was the problem.
Now that the motors are moving, I have a new issue: I can not get the program to reset without bypassing the estop and limit switches.  I have 0 volts on the limit switch circuit.  It goes to 5 volts when I open the sircuit (hit the limit switch).  Active low is not checked.  I see the pin LED light (in diognostics) when I open the circuit, but it will not reset.
Any ideas?
Thanks for the help.
Title: Re: motor does not run
Post by: Chip on July 21, 2009, 09:53:38 PM
Hi, Rich

Not sure how you have your limits wired, Change the Active Low for all of the Home & Limit's should allow you to Reset. Just 1 Input Pin can do it if all SW's are wired NC and then in series to  each other. One end to Gnd. the other end to an Input Pin.

Chip
Title: Re: motor does not run
Post by: garhar1 on July 22, 2009, 05:54:36 PM
Chip,
This is exactly how I have the limits set (plus the estop).  All are wired in series.  All NC.  If I hit one of the limit switches (with my finger), all the LEDs light in the configuration window.  If I let go, they go out.  But it won't reset.  It says "external estop requested" and scrolls "press reset...emergency mode active".
Here is the port 1 pin state in the configuration window (x=on, o=off):
ooo*********oxoooo
oooooooooooo

If I hit the limit switch (capital X comes on):
ooo*********Xxoooo
oooooooooooo
Title: Re: motor does not run
Post by: Hood on July 22, 2009, 06:00:41 PM
Settings page and Enable Auto Limits Override.
Hood
Title: Re: motor does not run
Post by: garhar1 on July 22, 2009, 06:08:15 PM
Chip,
That didn't show well.
Try these screan shots:
Title: Re: motor does not run
Post by: garhar1 on July 22, 2009, 06:10:32 PM
Auto limit override is enabled.
The before shot"
Title: Re: motor does not run
Post by: Hood on July 22, 2009, 06:11:05 PM
Just reading again, how do you have the E-Stop wired?
Hood
Title: Re: motor does not run
Post by: Hood on July 22, 2009, 06:13:35 PM
Can you attach your xml please and I will see what happens here with it, often easier to catch something that way.
Hood
Title: Re: motor does not run
Post by: garhar1 on July 22, 2009, 06:31:17 PM
attached file
Title: Re: motor does not run
Post by: garhar1 on July 22, 2009, 06:32:51 PM
Using limit switches as estop.
Title: Re: motor does not run
Post by: Hood on July 22, 2009, 07:15:47 PM
All seems to be working fine here but I am just simulating the switches. Is there a chance that you have noise or a switch thats not closing correctly?
Hood
Title: Re: motor does not run
Post by: garhar1 on July 23, 2009, 05:03:46 AM
No, switches are working properly.
Title: Re: motor does not run
Post by: Hood on July 23, 2009, 06:30:30 AM
I have just tested with your xml and a switch connected between pin10 and Gnd and its working fine so not likely a config issue, almost definitely has to be hardware. I know you say the switches are good but can you test by removing the switches and just using a piece of wire connecting pin 10 to gnd and see what happens when you break then reconnect.
Hood
Title: Re: motor does not run
Post by: garhar1 on July 23, 2009, 04:01:58 PM
I did that.  When closed, I read 0.02 volts.  When open I read 4.99 volts.
Also, when closed, there are no limit or estop LEDs lit in the configuration window.  When opened, they light.
Is it normal for the 3 LEDs to be lit at all times (see before picture)?  Could that be it?
garhar1   
Title: Re: motor does not run
Post by: Hood on July 23, 2009, 04:09:21 PM
Is it normal for the 3 LEDs to be lit at all times (see before picture)?  Could that be it?
garhar1   

Which LEDs are you meaning?
Hood
Title: Re: motor does not run
Post by: garhar1 on July 23, 2009, 06:16:02 PM
Looks like the 0.02V is enough to keep it from resetting.  If I bypass all the limit switches (and all the limit switch wiring running in the cable carrier) everything works fine.  I guess I'm getting some bleed from the stepper wiring.
Title: Re: motor does not run
Post by: Hood on July 23, 2009, 06:36:06 PM
Have you got the wires shielded and the shielding only grounded at one end?
Hood
Title: Re: motor does not run
Post by: garhar1 on July 24, 2009, 06:46:04 AM
The stepper motor wires are shielded and ground at one end.  I have nowhere to ground the other end.  The limit wires are not shielded.
Title: Re: motor does not run
Post by: Hood on July 24, 2009, 06:55:46 AM
Should only be grounded at one end anyway and ideally all shielding should be grounded to the same point in your control cabinet.
Hood
Title: Re: motor does not run
Post by: garhar1 on July 24, 2009, 07:17:09 AM
I think its the cheap wire I used for the limit switch wiring.  Time to rewire them. yuk
Title: Re: motor does not run
Post by: garhar1 on July 25, 2009, 07:41:26 AM
Rewired and still the same problem.  Searched the forum more and found I should set debounce to 500 to 2000.  The 500 setting seems to have fixed the problem.  Should have searched better the first time. Would have saved me a lot of time.
Title: Re: motor does not run
Post by: Hood on July 25, 2009, 07:47:12 AM
Debounce only masks the problem it does not cure it as such, you will still have the noise or bouncing switch issue underneath. Personally I always say to people to set the debounce to 2000 and if it helps then the problem has been found and really it should be cured by properly shielding and grounding or getting switches that dont bounce.

Hood