Problems with setting up my Leadshine HBS86H steppers with PNCConf.

More
08 Apr 2025 14:26 #325931 by Lampje
Hello Hivemind.
As the title suggests I'm having issues setting up my drives.
I have a 4 axis setup. All the same drivers (Leadshine HBS86H) and steppers (closed loop).
The only motor I get to run during the setup stage is the A-axis. And I'm sure that the turn rate is incorrect.
Main problem is that there is no preset available for the HBS86H driver. And no matter how low I set the Step on-time and step space, when I go to ' calculate scale' I can't get the pulses per revolution above 1000.
The driver microsteps are: X&A=1600, Y&Z=25600.

Does anyone have any tips on this?

PS I had this setup working years ago. It's been collecting dust since 2017. And I fairly blindly just upgraded the LinuxCNC OS/SW. Not sure if I have my old configs somewhere.

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

More
08 Apr 2025 15:05 #325940 by PCW
I don't think the 1600 and 25600 numbers are microsteps, but rather
steps per turn, so 1600 = 8 microsteps and 25600 = 128 microsteps
 

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

More
08 Apr 2025 15:57 - 08 Apr 2025 15:59 #325942 by Lampje
Hi PCW.
The dip's on the drivers have it as needing 1600 (or 25600) pulses for 1 revolution.
In the stepper settings in Lightburn you set the pulses per revolution, so 25600. And I was expecting the same behaviour in LinuxCNC.
You are saying that in LinuxCNC you have to tell it how many microsteps are in 1 regular step? But how do i know how many full steps there are in 1 revolution?
So to what number would I have to change the 1000 then? And what about the step times?
Last edit: 08 Apr 2025 15:59 by Lampje.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
08 Apr 2025 16:22 #325944 by tommylight

You are saying that in LinuxCNC you have to tell it how many microsteps are in 1 regular step?

No, not LinuxCNC as it uses steps per unit only, but you can tell it on wizards in several ways.

But how do i know how many full steps there are in 1 revolution?

Motor steps per revolution are 200 usually, there are other types with 400 steps per turn but are rarely used in hobby machines. And there are also 3 and 5 phase stepper motors that have 300/600 or 500/1000 steps per revolution.

So to what number would I have to change the 1000 then? And what about the step times?

That you will have to figure out depending on your setup:
-belt drive = pulley / teeth / pitch / reduction if any
-ball screw or lead screw = pitch per turn
etc

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

More
08 Apr 2025 16:23 #325946 by PCW
If you divide the steps/turn by 200 (full steps per turn), you get the microstep ratio
(for 99% of 2 phase step motors)

Microsteps are by definition the number of step pulses needed to get a full step.

I would start with 5 usec (5000 ns) for steptime/stepspace as a starting point and only decrease
them if you can't reach the desired velocities (and the drive can accept shorter pulses)

I would use 20 usec (20000 ns)  for dir setup and hold (as this has no real effect on performance)

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

More
08 Apr 2025 17:27 #325947 by Lampje
Hi, Thanks for the input.

I finally did get the motors to turn*. And rechecked the micro steps. They were actualy set to 1000 pulses/rev. One of the driver documents listed the dipswitches wrong....

In the wizard i got it to run at least. But having completed the setup the motors won't turn from the interface.
There is no enable wired to the drivers. And it has functioned (back in 2017) without the enable wiring. Weird.

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

More
09 Apr 2025 08:09 #325972 by Lampje
On to the next issue :(
During setup of the axis (pncconf) and I test the axis movement, it works perfect.
But from Linuxcnc itself i only get it half distance. HOW?
There is no encoder feedback to the Mesa board as the closed-loop is handled between the drive and motor.
It seems others are having similar issues, but i can't get a clear picture of how they fixed it other than basically running double distance in the wizard to get it to do the correct distance in Linuxcnc. But adding complexity with the speed and acceleration.

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

More
09 Apr 2025 12:25 #325982 by PCW
I would just edit the .ini file and half the STEP_SCALE values.
There may be a bug in pncconf that sets this incorrectly  for it's
test.

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

Moderators: cmorley
Time to create page: 0.117 seconds
Powered by Kunena Forum