- Posts: 50
- Thank you received: 0
C-Axis (Angular) and sprockets configuration..
[Edited - Nevermind - I cannot count - the jack outer sprocket is 30 teeth not 40 - The math works]
On my XZC lathe, i have the following mechanical on my "C" axis.
Stepper motor (200 steps/rev)
Driver (Half stepping enabled) - so result is 400 steps / rev)
I have sprocket w/chain setup as the following:
Motor (10 teeth) - > Jack outer (40 teeth) with same spindle Jack inner (10 teeth) -> Lathe spindle (18 teerh).
By my calculations:
400 Steps / Rev * 4 (first reduction) * 1.8 (second reduction) gives me 2880 steps / revolution
So 2880 / 360 (degrees) gives me a scale of 8
When i enter the scale = 8 in the .INI file - and i tell it to run from G0 C0 to G0 C360 it overshoots by quite a lot.
When I change the scale to "6" - it is spot on.
Why? What am i missing?
Here are the relevant portions from my .INI file (I think):
[AXIS_5]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 360.0
MAX_ACCELERATION = 1200.0
STEPGEN_MAXACCEL = 1500.0
SCALE = 8.0
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -9999.0
MAX_LIMIT = 9999.0
HOME_OFFSET = 0.0
[TRAJ]
AXES = 6
COORDINATES = X Z C
MAX_ANGULAR_VELOCITY = 360.00
DEFAULT_ANGULAR_VELOCITY = 36.00
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 9.50
MAX_LINEAR_VELOCITY = 95.00
Please Log in to join the conversation.
I have a similar situation. but even more.cts1085 wrote: G0 C0 to G0 C360 it overshoots by quite a lot.
When I change the scale to "6" - it is spot on.
I have five axes on the machine. fifth - the rotary axis.
the simple move from 0 to 180 blows this axis to 202, and then back to 179 and then 180.
even if you move just one degree, axis still overshoots and returns.
why?
Please Log in to join the conversation.
Please Log in to join the conversation.
pkasy wrote: I have five axes on the machine. fifth - the rotary axis.
the simple move from 0 to 180 blows this axis to 202, and then back to 179 and then 180.
even if you move just one degree, axis still overshoots and returns.
Is this a stepper or a servo system?
In either case this is probably due to a miss-match in acceleration values. If it is a stepper check that the axis accel and stepgen accel are about the same value, with stepgen slighly higher.
Your rotary axis numbers rise aproximatey 360 x as fast as linear axis numbers in engineering units.
Please Log in to join the conversation.
there is a stepper motor 1.8 degree step running in the half-step mode
it wears a pulley, with the number of teeth - 18.
the shaft of the reducer also has pulley, with a number of teeth 23
reducer has a gear ratio of 1:80 (passport, ie pdf)
pulleys are connected by a belt, that is, the stepping motor rotates the reducer
just how to calculate SCALE?
Please Log in to join the conversation.
pkasy wrote: please help me calculate the SCALE value for B axis.
there is a stepper motor 1.8 degree step running in the half-step mode
it wears a pulley, with the number of teeth - 18.
the shaft of the reducer also has pulley, with a number of teeth 23
reducer has a gear ratio of 1:80 (passport, ie pdf)
pulleys are connected by a belt, that is, the stepping motor rotates the reducer
just how to calculate SCALE?
The final number you want is motor step pulses per degree.
Your mechanical gearing is 80 * (23/18) : 1 = 102.2222..
You have a 200 step motor and half stepping. = 400 steps per motor rev.
So that is 40888.888... step pulses per rev.
Divide by 360 for step pulses per degree = 113.58. That should be your SCALE value.
(Actually, to be pedantic, that should be your stepgen.N.position-scale value. You could put that number directly in the HAL, or use a completely different name for the INI file entry if you wanted to. What I am saying is that the [AXIS_3]SCALE INI entry is not anything special to the system. )
Please Log in to join the conversation.
SCALE = 113.58024691358
But Linux CNC thinks differently, or more precisely
SCALE = 123.828938408304 (about)
As you have guessed, if there was a question, then it is not that simple.
What could be wrong?
The gear ratio of the gear unit is engraved on its body.
Number of teeth on the pulleys I recounted many times.
The step value?
or there is some other variables that affect LinuxCNC?
Please Log in to join the conversation.
pkasy wrote: What could be wrong?
What makes you think that anything is wrong?
What scale number are you using? What do you see? What would you expect to see?
I just answered the question on how to calculate the scale.
Please Log in to join the conversation.
now SCALE = 123.828938408304andypugh wrote: What scale number are you using?
I expect that when command G0B180 B axis is rotated at 180 degrees. But this does not happen, if the SCALE = 113.58024691358andypugh wrote: What would you expect to see?
Please Log in to join the conversation.
Please Log in to join the conversation.
