Mesa Analog Vs Step Dir

More
2 years 3 months ago #305710 by anfänger
Replied by anfänger on topic Mesa Analog Vs Step Dir
These are the numbers I have. I get an error the my Stepgen.00.maxvel ist to big. could that be the case?
I just used the theoretical maximum velocity I could get by the servos.

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 100000
SERVO_PERIOD = 1000000

P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP = 10000
DIRHOLD = 10000
STEPLEN = 5000
STEPSPACE = 5000
STEP_SCALE = 1600.0
ENCODER_SCALE = 1600.0

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

More
2 years 3 months ago #305712 by PCW
Replied by PCW on topic Mesa Analog Vs Step Dir
Normally the stepgen maxvel is set to 25% greater than the
machine joint maximum velocity. You get the "too big" error
because the stepgen cannot reach the value you set because
of the current step timing. That is, with 5000 ns step time
and 5000 ns step space you are limited to a 100 KHz step rate.

At a step scale of 1600 steps/mm the maximum velocity
is bounded to 62.5 mm/second by the step timing. This
means that the actual maximum joint velocity should be
about 50 mm/s (leaving the stepgen about 25% headroom)

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

More
2 years 3 months ago - 2 years 3 months ago #305714 by anfänger
Replied by anfänger on topic Mesa Analog Vs Step Dir
many thanks,

I just reused the numbers from the analog control, didn't think about a max frequency.

I Adjusted it. but still oscillation about 0.1mm
It comes definitively from Linuxcnc. I disabled the drives and the dro ist still moving. So no feedback from the drives

I'll adjust the steps to 1000/mm later which should be reasonable and change the speeds to 100 / 75 mm/s which helps with the 1000mm x travel
But I ned to get rid of the oscillation
Last edit: 2 years 3 months ago by anfänger.

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

More
2 years 3 months ago #305715 by PCW
Replied by PCW on topic Mesa Analog Vs Step Dir
Yes, oscillations are basically guaranteed if the velocity is limited by the
stepgen settings.

Make sure the stepgen max velocity is 25% higher than the machine
maximum joint velocity and that the stepgen is not bounded by the step timing
(at 100 mm/s and 1000 steps per mm for example, you would not be able to
provide any overhead for the stepgen at all at 5000+5000 timing)

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

More
2 years 2 months ago #306909 by anfänger
Replied by anfänger on topic Mesa Analog Vs Step Dir
I'm kind of stuck I think there are some mistakes in my hal and ini setup.
I wonder if it would make sense to start new but its a relative complex machine an I've also done a lot to the GUI.
I attached my config files maybe some one sees what I can't see at the moment.
If not I'll restart new new

File Attachment:

File Name: probe_basic.ini
File Size:7.54 KB
 

File Attachment:

File Name: wully.hal
File Size:30.85 KB


these two files are for gui and hand wheel

 

File Attachment:

File Name: handrad.hal
File Size:10.28 KB
 

File Attachment:

File Name: time_2024-08-04.hal
File Size:6.55 KB


thanks Patrick
 

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

More
2 years 2 months ago #306923 by PCW
Replied by PCW on topic Mesa Analog Vs Step Dir
What are the specific issues you have now?

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

Moderators: PCW, jmelson
Time to create page: 0.061 seconds
Powered by Kunena Forum