NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
Forum Header

TOPIC: Motors never reverse

Motors never reverse 06 Июн 2012 12:48 #20689

  • jblain
  • jblain's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Karma: 0
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 This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 01:17 #20700

  • cncbasher
  • cncbasher's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 680
  • Thank you received: 30
  • Karma: 53
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
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 05:10 #20708

  • jblain
  • jblain's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Karma: 0
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
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 05:13 #20709

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4117
  • Thank you received: 141
  • Karma: 129
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)
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 05:21 #20710

  • cncbasher
  • cncbasher's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 680
  • Thank you received: 30
  • Karma: 53
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 Июн 2012 05:25 by cncbasher.
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 12:40 #20727

  • jblain
  • jblain's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Karma: 0
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 This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 12:50 #20729

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1069
  • Thank you received: 15
  • Karma: 80
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
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 12:55 #20731

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4117
  • Thank you received: 141
  • Karma: 129
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
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 13:05 #20732

  • cncbasher
  • cncbasher's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 680
  • Thank you received: 30
  • Karma: 53
these drives are optic isolated so the direction pins may need inverting .
The administrator has disabled public write access.

Re:Motors never reverse 07 Июн 2012 13:12 #20733

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4117
  • Thank you received: 141
  • Karma: 129
You say it works under XP. Is that with the exact same hardware, or with a different PC?
The administrator has disabled public write access.
Time to create page: 1.023 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.