[Emc-users] stepper lose steps at low speed

2015-03-03 Thread Tomaz T .
What could be the reason that stepper is losing steps at very low speeds?  On 
my machine I have servos for XYZ axes (Pico control), and two (leadshine) 
hybrid steppers for rotary axes, which I found out that they are loosing steps 
at very low speeds. I think it might not be related to driver and stepper, as I 
tried to switch them with some other non-hybrid stepper and driver and results 
were the same, also after changing breakout board
My HAL content:http://pastebin.com/n6KAUE10My INI 
content:http://pastebin.com/zETiGmFT
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Dave Caroline
Make sure you dont power down, stay at full power, you did not mention
microsteps, Are you expecting higher resolution and accuracy than is
possible with a stepper.
You can see regular accuracy error due to the stepper when I tested a
linear axis
http://www.archivist.info/cnc/screw_error/

I also have seen some terrible rotary tables and some good ones, there
is a basic error at worm and gear rate which will/should be better at
higher reduction ratios, all the low reduction I have measured were
bad (up to .7 degree error and worm wheel rate) they were all below
60:1 the 72:1 I tested was within specification and used for some gear
cutting masters I made. The Vertex 90:1 I use seems ok not done the
full test I did on the 72:1.
Method was angle dekkor and precision polygon.

Dave Caroline

On 03/03/2015, Tomaz T. tomaz_...@hotmail.com wrote:
 What could be the reason that stepper is losing steps at very low speeds?
 On my machine I have servos for XYZ axes (Pico control), and two (leadshine)
 hybrid steppers for rotary axes, which I found out that they are loosing
 steps at very low speeds. I think it might not be related to driver and
 stepper, as I tried to switch them with some other non-hybrid stepper and
 driver and results were the same, also after changing breakout board
 My HAL content:http://pastebin.com/n6KAUE10My INI
 content:http://pastebin.com/zETiGmFT  
 --
 Dive into the World of Parallel Programming The Go Parallel Website,
 sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for
 all
 things parallel software development, from weekly thought leadership blogs
 to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Andy Pugh



 On 3 Mar 2015, at 17:27, Tomaz T. tomaz_...@hotmail.com wrote:
 
 What could be the reason that stepper is losing steps at very low speeds?

It could be that the drives are of a type that switches to a standby current 
when idle. (Though if that always caused problems they clearly wouldn't do it)

A recent similar problem on the forum  went away when he increased step length. 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Marius Liebenberg
  Tomas
I found the if the step pulse width is very small it could be a problem 
at low speeds. Try and make it a bit bigger and see what happens.

-- Original Message --
From: Tomaz T. tomaz_...@hotmail.com
To: emc-users@lists.sourceforge.net emc-users@lists.sourceforge.net
Sent: 2015-03-03 18:27:50
Subject: [Emc-users] stepper lose steps at low speed

What could be the reason that stepper is losing steps at very low 
speeds? On my machine I have servos for XYZ axes (Pico control), and 
two (leadshine) hybrid steppers for rotary axes, which I found out that 
they are loosing steps at very low speeds. I think it might not be 
related to driver and stepper, as I tried to switch them with some 
other non-hybrid stepper and driver and results were the same, also 
after changing breakout board
My HAL content:http://pastebin.com/n6KAUE10My INI 
content:http://pastebin.com/zETiGmFT
--
Dive into the World of Parallel Programming The Go Parallel Website, 
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub 
for all
things parallel software development, from weekly thought leadership 
blogs to
news, videos, case studies, tutorials and more. Take a look and join 
the
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Tomaz T .
Microstep is set to 4000, gearing is 21:1 and it has very very small backlash 
and its well above my accuracy needs. The thing is that at very low speeds (ie 
50deg/min on motor side) it loses so many steps that the error is more then few 
degrees after reaching final position...

 Make sure you dont power down, stay at full power, you did not mention
 microsteps, Are you expecting higher resolution and accuracy than is
 possible with a stepper.
 You can see regular accuracy error due to the stepper when I tested a
 linear axis
 http://www.archivist.info/cnc/screw_error/

 I also have seen some terrible rotary tables and some good ones, there
 is a basic error at worm and gear rate which will/should be better at
 higher reduction ratios, all the low reduction I have measured were
 bad (up to .7 degree error and worm wheel rate) they were all below
 60:1 the 72:1 I tested was within specification and used for some gear
 cutting masters I made. The Vertex 90:1 I use seems ok not done the
 full test I did on the 72:1.
 Method was angle dekkor and precision polygon.

 Dave Caroline

  
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Jon Elson
On 03/03/2015 11:39 AM, Tomaz T. wrote:
 What could be the reason that stepper is losing steps at very low speeds?
 It could be that the drives are of a type that switches to a standby current 
 when idle. (Though if that always caused problems they clearly wouldn't do 
 it)

 A recent similar problem on the forum went away when he increased step 
 length.
 I found in driver's manuals that pulse width should be longer than 2.5μs, so 
 what would be recommended value to set it for steplen?


Then, you should use at least 2500 for the pulse-width.

The default settings for LinuxCNC 2.7 in the configs file 
univstep_motion.hal are like this :
setp ppmc.0.stepgen.00-03.pulse-width-ns 3500
setp ppmc.0.stepgen.00-03.pulse-space-min-ns 3500
# setup time is set to 1 uS
setp ppmc.0.stepgen.00-03.setup-time-ns 1000

The setup-time is the separation between direction changes 
and step pulses.
Depending on the stepper drive, it may need more.

If the stepper is losing steps when moving entirely in one 
direction, then there could
be two problems.  One is the step length is right on the 
edge of the drive's opto-isolated
inputs ability to recognize the pulse, in which case 
lengthening the step pulse width
will definitely help.  The other possibility is that you 
have a particularly bad combination
of SCALE and PID settings.  The default settings in the file 
are not good at all for
all values of SCALE.  I use a combination of audio and 
Halscope, looking at
ppmc.0.encoder.00.delta (velocity in raw encoder count 
units) and
pid.0.error.  Trigger Halscope on ppmc.0.encoder.00.delta 
and look for
a lot of jumpy pulses.  Proper  PID tuning will get rid of 
the jumps there.
What can happen if the servo response is very jumpy is it 
can actually be
causing the command to the step generator to be rapidly 
reversing direction,
and the drive may either reject the command or the motor 
simply can't
follow it.

The part above where I talk about encoder is how the step 
generator and LinuxCNC
remain in sync about position.  The encoder counter function 
of the Universal Stepper
controller counts the step pulses and reports that position 
back to LinuxCNC.
LinuxCNC uses the PID component to compute a new velocity to 
send to
the step generator.

Where I mention audio I connect one of those 2 computer 
internal speakers
with a 100 Ohm series resistor to the step output of the 
board (other speaker wire
to gnd) and LISTEN to the step pulses at different jog 
speeds.  When it sounds like
a smooth tone rising and falling, then the tuning is good.

If this is all going over your head, just send me the SCALE 
value and MAX_VELOCITY
in the univstep.ini file for each axis, and I can run it 
here to find optimum values.

Jon

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] stepper lose steps at low speed

2015-03-03 Thread Tomaz T .

 What could be the reason that stepper is losing steps at very low speeds?
 
 It could be that the drives are of a type that switches to a standby current 
 when idle. (Though if that always caused problems they clearly wouldn't do it)
 
 A recent similar problem on the forum went away when he increased step 
 length. 

I found in driver's manuals that pulse width should be longer than 2.5μs, so 
what would be recommended value to set it for steplen?  
 
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users