× Forum Header

Motors never reverse

More
06 Jun 2012 19:48 #20689 by jblain
Motors never reverse was created by jblain
Hello,

I have just installed the latest Linuxcnc (2.5) version using the 10.04 live cd.

Everything installed correctly
Max Latency reported around 6000

I have a four axis stepper motor setup that I have been using for years without problems.

Went trough Stepconf (see attached files) and when I test an axis (any of the four axis) i always get the same result

One direction works flawlessly, but i get no movement whatsoever in the reverse direction.

All attemps so far at tweaking timing or signal direction(normal, inverted) always give the same result and all axis willonly move in one of the two direction (the same direction regardless of software and parallel port settings).

I have also included the manual that came with my stepper drives.

Any help, suggestion, toughts would be greatly appreciated.

Regards

Jacques Blain

File Attachment:

File Name: Uppercut.zip
File Size:84 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 08:17 #20700 by cncbasher
Replied by cncbasher on topic Re:Motors never reverse
your configuration is wrong , your reseting the parrallel port pins ,
i cannot see the reason for this reset in your setup , remove the reset and you should be ok

what is happening your setting say the direction pin low , then switching it back to default high , so therfore the stepper is only going one way
the direction pin is either logic high or low depending on the direction needed , it is not a pulse

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 12:10 #20708 by jblain
Replied by jblain on topic Re:Motors never reverse
Thank you for the info,

You are right, I can see that in the configuration the reset is activated on the parport pins. But I do not know why or how it got set.

I tried simply deleting all configuration files and restarting from scratch by running stepconf again, I got the same configuration, with reset on and was never asked about it.

Am I skipping an important step ?

Should i go in and manually edit the .hal file to remove resets ? I tried but In that case, if I try to run the stepconf test to see if the axis now work in both directions, in that case i still am stuck with my initial problem, because as soon as I start stepconf, it overwrites the hal file, putting back the reset code....

Any suggestions

Regards

Jacques Blain

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 12:13 #20709 by andypugh
Replied by andypugh on topic Re:Motors never reverse
cncbasher wrote:

your configuration is wrong , your reseting the parrallel port pins


Are you sure? As far as I can see only the "step" pins have reset enabled, not the dir pins.

My theory is that either the dir and enable wires to the drives are switched, or the step and dir wires. (though the latter case would normally just give on step every time the direction reversed)

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 12:21 - 07 Jun 2012 12:25 #20710 by cncbasher
Replied by cncbasher on topic Re:Motors never reverse
i notice your reset time is 500 , change to 5000
the reset is as far as i can see only on the step pins , so should be ok ,
use the kelling 4030 preset setttings and see if thats any better

you dont mention which interface to the parrell port you are using ?
check your wiring as Andy suggests .
Last edit: 07 Jun 2012 12:25 by cncbasher.

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 19:40 #20727 by jblain
Replied by jblain on topic Re:Motors never reverse
Hello again,

Did some more testing, always with the same outcome :

In EMC2, Axis moves as expected in the minus direction (when dir signal is high on halscope) and not at all (completely stopped) in the plus direction. I can see the position changing onscreen in both directions.

Electrical connections are as follows and have been traced with an Ohmmeter from the pc port pins on the PC side of my parallel cable, to the terminal screws on the drivers themselves :

Pin 2 XStep
Pin 3 XDir
Pin 4 YStep
Pin 3 YDir
Pin 5 ZStep
Pin 6 ZDir
Pin 7 AStep
Pin 8 ADir

These drivers have a self test mode : do half step half turns of the motor in normal and then reverse direction at about 0.5 hertz. This works fine.

Further more the whole hardware, works fine as is in both directions, when connected to an old setup I had under windows xp...

In my bios, I have different parport mode (PS/2, EPP, ECP) I have so far tried PS/2 and EPP with always the same results

I am stumped. My only thought at this time is to try to find a real scope and monitor the step and dir pins on the drivers ?? Bad part port hardware ?? Software bug ??

I attached my latest config

Thanks for the input guys

Jacques

File Attachment:

File Name: my_mill.zip
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 19:50 #20729 by Rick G
Replied by Rick G on topic Re:Motors never reverse
Hello,

If you do not have a scope you can use a voltmeter on the direction pins of the parallel port , moving one direction should be around 5 volt the other direction 0 volt.

Rick G

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 19:55 #20731 by andypugh
Replied by andypugh on topic Re:Motors never reverse
jblain wrote:

Pin 3 XDir
Pin 3 YDir

I thought I had spotted the problem until I checked the HAL…
Incidentally, you can turn the reset back on for your step pins, it should double your step rate.

In my bios, I have different parport mode (PS/2, EPP, ECP) I have so far tried PS/2 and EPP with always the same results

It is unlikely to be that (very unlikely) though some ports can sink more current in EPP.

I am stumped. My only thought at this time is to try to find a real scope and monitor the step and dir pins on the drivers

You should be able to test the dir pins with a multimeter.
Jog one way, then try to jog the other, watching the voltage at the drive.
Then try the same test with the pins disconnected from the drive. (don't make/break connections to the drive while it is powered up)

You can take almost everything else out of the puzzle with: wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 20:05 #20732 by cncbasher
Replied by cncbasher on topic Re:Motors never reverse
these drives are optic isolated so the direction pins may need inverting .

Please Log in or Create an account to join the conversation.

More
07 Jun 2012 20:12 #20733 by andypugh
Replied by andypugh on topic Re:Motors never reverse
You say it works under XP. Is that with the exact same hardware, or with a different PC?

Please Log in or Create an account to join the conversation.

Time to create page: 0.191 seconds
Powered by Kunena Forum