- Posts: 79
- Thank you received: 2
Open loop stepper - 7i96 - following error
6 years 7 months ago #160344
by Muz94
Open loop stepper - 7i96 - following error was created by Muz94
Hi, i'm in the process of converting my parport configuration to work with my new Mesa 7i96.
I'm stuck with the following problem: as soon as i try to move an axis the control turns the machine off and returns a following error (this happens with every axis).
There is probably some stupid mistake somewhere but i can't find it.
I would consider my pc latency good (i bought a brand new j4105 motherboard, and with some fiddling i got it to stay below 40'000ns jitter with a dozen of glxgears, an hd video playing on youtube, 3 firefox windows with multiple tabs open, gimp etc...).
I checked my stpgen_maxacc and ferror, but they look fine to me.
Thank you for your help
I'm stuck with the following problem: as soon as i try to move an axis the control turns the machine off and returns a following error (this happens with every axis).
There is probably some stupid mistake somewhere but i can't find it.
I would consider my pc latency good (i bought a brand new j4105 motherboard, and with some fiddling i got it to stay below 40'000ns jitter with a dozen of glxgears, an hd video playing on youtube, 3 firefox windows with multiple tabs open, gimp etc...).
I checked my stpgen_maxacc and ferror, but they look fine to me.
Thank you for your help
Please Log in or Create an account to join the conversation.
6 years 7 months ago #160351
by PCW
Replied by PCW on topic Open loop stepper - 7i96 - following error
Your hal file is setup for running the stepgens in position mode but the stepgen driver is set for velocity mode:
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.control-type 1
changing this to
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.control-type 0
Should fix your problem
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.control-type 1
changing this to
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.control-type 0
Should fix your problem
The following user(s) said Thank You: Muz94
Please Log in or Create an account to join the conversation.
6 years 7 months ago #160354
by Muz94
Replied by Muz94 on topic Open loop stepper - 7i96 - following error
This fixed it!
I guess I should look better into what I take from sample configurations!
Thank you, I'll let a program run overnight to see if I have any other issues (for now I just have the board connected to the PC in my room).
I guess I should look better into what I take from sample configurations!
Thank you, I'll let a program run overnight to see if I have any other issues (for now I just have the board connected to the PC in my room).
Please Log in or Create an account to join the conversation.
5 years 7 months ago #203831
by Muz94
Replied by Muz94 on topic Open loop stepper - 7i96 - following error
Hi, i'm reviving this thread because i have another issue.
The machine is working well with the 7i96, and i decided to upgrade the stepper motors with step/dir driven bldc servos.
I bought one, i installed it and from the first test it looks very promising. At that point i decided to try to push it as it should be able to reach 3000RPM without any issues (that would translate in a whopping 30m/min rapid speed!), but i can't seem to push it further that what i did with stepper motors.
The problem is that i run into a "following error" as soon as i try to go beond 7000mm/min on that axis. I also tryed to push to the limit the X axis which is still driven by a stepper motor, but that also generated the same error (at a higher speed, as the X axis is driven with a belt with a different ratio).
What could be the limit in this case? 7000mm/m with a scale value of 401 isn't really even close to reaching the 10MHz limit of the mesa board ((7000/60)*401)= 46'783 pulses/sec). Am i reaching some kind of limit with the servo / base period of linuxcnc? Or is there something else wrong with my configuration?
The machine is working well with the 7i96, and i decided to upgrade the stepper motors with step/dir driven bldc servos.
I bought one, i installed it and from the first test it looks very promising. At that point i decided to try to push it as it should be able to reach 3000RPM without any issues (that would translate in a whopping 30m/min rapid speed!), but i can't seem to push it further that what i did with stepper motors.
The problem is that i run into a "following error" as soon as i try to go beond 7000mm/min on that axis. I also tryed to push to the limit the X axis which is still driven by a stepper motor, but that also generated the same error (at a higher speed, as the X axis is driven with a belt with a different ratio).
What could be the limit in this case? 7000mm/m with a scale value of 401 isn't really even close to reaching the 10MHz limit of the mesa board ((7000/60)*401)= 46'783 pulses/sec). Am i reaching some kind of limit with the servo / base period of linuxcnc? Or is there something else wrong with my configuration?
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
5 years 7 months ago #203834
by tommylight
Replied by tommylight on topic Open loop stepper - 7i96 - following error
Errors in the ini settings, only Z axis seems to be set correctly.
[JOINT_0]
MAX_VELOCITY = 200.0
MAX_ACCELERATION = 1000.0
STEPGEN_MAXACCEL = 1250.0
STEPGEN_MAXVEL = 190.0 <<<<wrong value, should be more than max_velocity above.
[JOINT_0]
MAX_VELOCITY = 200.0
MAX_ACCELERATION = 1000.0
STEPGEN_MAXACCEL = 1250.0
STEPGEN_MAXVEL = 190.0 <<<<wrong value, should be more than max_velocity above.
Please Log in or Create an account to join the conversation.
5 years 7 months ago #203839
by Muz94
Replied by Muz94 on topic Open loop stepper - 7i96 - following error
*facepalm*
I wasted all afternoon over forgetting to change those lines. Tomorrow i'll change them too and see if i can finally obtain the speed i wanted.
Thank you, i'll let you know how it goes
I wasted all afternoon over forgetting to change those lines. Tomorrow i'll change them too and see if i can finally obtain the speed i wanted.
Thank you, i'll let you know how it goes
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.052 seconds