- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 6i24 - high stepgen speed, axis go crazy
Mesa 6i24 - high stepgen speed, axis go crazy
12 Mar 2016 22:01 - 13 Mar 2016 16:44 #71510
by yaqwsx
Mesa 6i24 - high stepgen speed, axis go crazy was created by yaqwsx
Today I tried to setup my CNC mill with Mesa 6i24 card. I used 5i24's firmware SVST2_8 with a custom breakout board.
I have configured all axis using PnCConf. I also tested them in PnCConf. When I used speed smaller than 2000 mm/min, everything worked fine. However when I went over 2000 mm/min, the axe "went crazy" - it didn't stop with the given acceleration; whole decceleration took about 3-4 seconds and it sometimes changed a direction. I thought the problem is in the drivers or steppers; I thought I could be using higher step rate than the driver is capable of, but I wasn't. Then I noticed the speed_rpm net reflected the current axe speed I was observing - this leads me to thinking the problem is inside the system (wrong speed command is issued).
Have you ever experienced similar behavior? What could be wrong? How to diagnose this problem?
I have configured all axis using PnCConf. I also tested them in PnCConf. When I used speed smaller than 2000 mm/min, everything worked fine. However when I went over 2000 mm/min, the axe "went crazy" - it didn't stop with the given acceleration; whole decceleration took about 3-4 seconds and it sometimes changed a direction. I thought the problem is in the drivers or steppers; I thought I could be using higher step rate than the driver is capable of, but I wasn't. Then I noticed the speed_rpm net reflected the current axe speed I was observing - this leads me to thinking the problem is inside the system (wrong speed command is issued).
Have you ever experienced similar behavior? What could be wrong? How to diagnose this problem?
Last edit: 13 Mar 2016 16:44 by yaqwsx.
Please Log in or Create an account to join the conversation.
12 Mar 2016 22:31 - 12 Mar 2016 22:31 #71517
by PCW
Replied by PCW on topic Mesa 6i24 - fast stepgen speed, axis go crazy
A couple possibilities
1. Pncconf has a bug with stepgen tuning. Try changing the P terms for all axis to 1000
2. Make sure the 6I24 is jumpered for 5I24 emulation
1. Pncconf has a bug with stepgen tuning. Try changing the P terms for all axis to 1000
2. Make sure the 6I24 is jumpered for 5I24 emulation
Last edit: 12 Mar 2016 22:31 by PCW.
Please Log in or Create an account to join the conversation.
12 Mar 2016 22:52 #71522
by yaqwsx
Replied by yaqwsx on topic Mesa 6i24 - fast stepgen speed, axis go crazy
Thank you for the answer. The card is in compatibility mode.
I am not right now by the machine, however I don't remember any PID setting during the stepgen setup. Where should I look it, please?
I am not right now by the machine, however I don't remember any PID setting during the stepgen setup. Where should I look it, please?
Please Log in or Create an account to join the conversation.
12 Mar 2016 23:12 #71525
by cmorley
Replied by cmorley on topic Mesa 6i24 - fast stepgen speed, axis go crazy
in the INI file under each [AXIS] section
Chris M
Chris M
Please Log in or Create an account to join the conversation.
13 Mar 2016 04:05 #71538
by cmorley
Replied by cmorley on topic Mesa 6i24 - fast stepgen speed, axis go crazy
I wonder if you could zip and post your 5i24 XML file so I could test with it. Thanks
Please Log in or Create an account to join the conversation.
13 Mar 2016 16:51 - 13 Mar 2016 16:52 #71572
by yaqwsx
Replied by yaqwsx on topic Mesa 6i24 - high stepgen speed, axis go crazy
All my firmwares that I have compiled from source (including XML files) and PncConf configuration file can be found here: dl.dropboxusercontent.com/u/39138503/mill.zip
So if I understand correctly - this is a known bug in PncConf? This behavior is "normal" and its solution is manually change P constant in ini file? So there is no way how to test axe in PncConf?
cmorley: If you want my XML files to try then in PncConf, you also have to apply this PR to add support for 5i24 and 6i24: github.com/LinuxCNC/linuxcnc/pull/46
So if I understand correctly - this is a known bug in PncConf? This behavior is "normal" and its solution is manually change P constant in ini file? So there is no way how to test axe in PncConf?
cmorley: If you want my XML files to try then in PncConf, you also have to apply this PR to add support for 5i24 and 6i24: github.com/LinuxCNC/linuxcnc/pull/46
Last edit: 13 Mar 2016 16:52 by yaqwsx.
Please Log in or Create an account to join the conversation.
13 Mar 2016 17:48 #71573
by PCW
Replied by PCW on topic Mesa 6i24 - high stepgen speed, axis go crazy
Pretty sure the latest version of pncconf has this built in, but it may not have been done by the 2.7.4 release
Also sounds like the following error limit setting should be tweaked for the stepgen configs
so any tracking problems give a instant following error.
(wide ferror settings make sense for initial servo configs to allow tuning but are not needed for stepgen configs)
Also sounds like the following error limit setting should be tweaked for the stepgen configs
so any tracking problems give a instant following error.
(wide ferror settings make sense for initial servo configs to allow tuning but are not needed for stepgen configs)
Please Log in or Create an account to join the conversation.
13 Mar 2016 19:20 #71576
by cmorley
Yes that is what i would like to test. Thanks
Chris M
Replied by cmorley on topic Mesa 6i24 - high stepgen speed, axis go crazy
All my firmwares that I have compiled from source (including XML files) and PncConf configuration file can be found here: dl.dropboxusercontent.com/u/39138503/mill.zip
So if I understand correctly - this is a known bug in PncConf? This behavior is "normal" and its solution is manually change P constant in ini file? So there is no way how to test axe in PncConf?
cmorley: If you want my XML files to try then in PncConf, you also have to apply this PR to add support for 5i24 and 6i24: github.com/LinuxCNC/linuxcnc/pull/46
Yes that is what i would like to test. Thanks
Chris M
Please Log in or Create an account to join the conversation.
13 Mar 2016 19:21 #71577
by cmorley
Yes pncconf sets wide ferror for servo tuning I never thought to change them for PID steppers.
What would be reasonable settings?
Chris M
Replied by cmorley on topic Mesa 6i24 - high stepgen speed, axis go crazy
Pretty sure the latest version of pncconf has this built in, but it may not have been done by the 2.7.4 release
Also sounds like the following error limit setting should be tweaked for the stepgen configs
so any tracking problems give a instant following error.
(wide ferror settings make sense for initial servo configs to allow tuning but are not needed for stepgen configs)
Yes pncconf sets wide ferror for servo tuning I never thought to change them for PID steppers.
What would be reasonable settings?
Chris M
Please Log in or Create an account to join the conversation.
13 Mar 2016 19:26 #71578
by cmorley
The fix was added after 2.7.4 release but you can edit the PID settings in pncconf - the axis test will honour them
Chris M
Replied by cmorley on topic Mesa 6i24 - high stepgen speed, axis go crazy
So if I understand correctly - this is a known bug in PncConf? This behavior is "normal" and its solution is manually change P constant in ini file? So there is no way how to test axe in PncConf?
The fix was added after 2.7.4 release but you can edit the PID settings in pncconf - the axis test will honour them
Chris M
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 6i24 - high stepgen speed, axis go crazy
Time to create page: 0.075 seconds