- Posts: 508
- Thank you received: 94
tune stepper function
- Reinhard
- Offline
- Platinum Member
-
I'm playing with pncconf with a test-setup (and new steppers). First try to tune a stepper looked ok, but when I increased travel distance, axis crashed against limit, where the stepper blocked and the driver turned into error state.
As I had no idea, about what went wrong, I thought, may be better to test with rotational axis, which can not block ...
But pncconf fails on trying to tune A-axis.
So I faked pncconf and connected the A-Axis at the X-Stepper connector. Then I realized, that the test function runs 1 distance ahead, but 2 distances back - As the carriage was near one limit at first test, I now know, why it runned into limits.
Could that be turned off, so that the step runs one distance ahead, and the same distance back?
What about driver parameters?
I can't change timing parameters or max vel. in test panel. Does that limitations come from GUI or from hal testfunction?
Driver bandwith is 200kHz and I'd like to test that speed.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7368
- Thank you received: 2181
A quick look at axistest.comp seems to show it should request +- 1 amplitude around start position.(if you select the +- option)
This get connected to simpletp and PID which could screw that up I suppose..
I'll have to test with hardware.
I do see setp pid.0.maxerror .0005 - in the test - which is wrong for metric machines...
As for adjusting stepper settings and max velocity.
max velocity is what you are testing. - maybe I don't understand what you are asking.
stepper driver timing setting should be able to be set in the test. - are you saying the spinboxes don't work?
Chris
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
- Posts: 508
- Thank you received: 94
Hm, if the behaviour is intended, than I recommend a big fat warning in the dialog.if you select the +- option
I guess, nobody likes the stepper crash against limits - and the meaning of ± is not obvious.
It could as well be like what I thought, that the test runs one dimension in one direction and the same dimension back to the beginning.
I would prefer this as default.
.
Well, I didn't try smaller values, but bigger values don't work.stepper driver timing setting should be able to be set in the test. - are you saying the spinboxes don't work?
Max velocity is tied to 6000 mm/min.
I use stepper + drivers with a setting of 4000 steps per revolution. That leads to 12000 mm/min on a bandwith of 200kHz.
I tried to change max velocity to 10000 mm/min, but 6000 is fixed limit of the spinbox.
I can change settings in pncconf, but not in the tune-dialog.
Same is true for driver timings.
step-timings are set to 5000ns, same as directory changes. Specs of my driver recommend a delay of 10000ns between last/first step pulse and directory change.
So I tried to change timings of directory signal, but it keeps tied to 5000ns.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7368
- Thank you received: 2181
I'm confused - is this what it did and you don't like it or did it do something else which means it's broken?
step setings/ velocity:
ok i understand now.
I use imperial so 6000 ipm is high enough
I have increased the settings in pncconf pages for metric people but i guess I didn't for the tests. I'll do that shortly.
Thanks
Chris
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
- Posts: 508
- Thank you received: 94
Ok, I used the word "dimension" instead of "amplitude", but yes, that's what it does.+- is default and it moves 1 amplitude in the negative direction, moves back to start, and then moves one amplitude in the positive direction moves back to start.
For me this behaviour is not obvious from "+-" without description.
Would be nice to add a warning, that carriage should be located in the middle of the axis for that test to work.
May be its possible to add a static text linked to the option, that describes the behavior of the selected test.
.
Thanks a lot!I have increased the settings in pncconf pages for metric people but i guess I didn't for the tests. I'll do that shortly.
Could you please check the test for an A-axis?
If pncconf supports xyza machines, it would be nice to be able to test an A-axis too.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
- Posts: 7368
- Thank you received: 2181
Please Log in or Create an account to join the conversation.