NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: Servo Tuning PID and FFn

Re:Servo Tuning PID and FFn 17 Янв 2012 02:24 #16840

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4112
  • Thank you received: 140
  • Karma: 129
centaur wrote:
Please tell me just where these 'FF' values are set and how to get there. I am using Mesa 7i43 (small) with 7i33.
They are set in the HAL file, in exactly the same was as the PGain and IGain.
The actual values are probably read into the HAL file from the INI file, but putting them in the INI file will achieve nothing without a reference and a setp statement in the INI file.

You probably need to understand a bit about HAL pins and parameters.
linuxcnc.org/docview/2.5/html/hal/basic_hal.html

The pins and parameters of the PID component are described here:
linuxcnc.org/docview/2.5/html/man/man9/pid.9.html
The administrator has disabled public write access.

Re:Servo Tuning PID and FFn 29 Фев 2012 03:32 #18195

  • Fremder
  • Fremder's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 45
  • Karma: 0
Hi all,

verry good thread ...

to make SIMulated and optimicing my PID i have on my PC (office) the servo_sim.ini ...

what can i do to work simulated with the PIDs ? actuall i becomes ONLY the f.error joint 0 following error .
(he goes LINEAR from to to max-ferror ..)

i am stupid ? and the SIM its NOT for simulated a servo ? *g*
thanks for help.

PS: what its the POINT - i found NO samples for optimicing the PID and Co ?
PStart = 0
Pn = 0.5
Pmax = 5
.... then combine with the <I> <D> <F1> <F2> ? automaticly with ala pyhton ?

PPs: i goes to update the "office-pc" with the:
deb buildbot.linuxcnc.org/ lucid v2.5_branch-sim
deb-src buildbot.linuxcnc.org/ lucid v2.5_branch-sim
i hope this its the right way :-)
Last Edit: 29 Фев 2012 04:21 by Fremder.
The administrator has disabled public write access.

Re:Servo Tuning PID and FFn 29 Фев 2012 09:57 #18211

  • jmelson
  • jmelson's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 263
  • Thank you received: 10
  • Karma: 31
Fremder wrote:
and the SIM its NOT for simulated a servo ? *g*
No, sim is simulated real time, not simulated servo.
MANY years ago, the old EMC had a simulated motor/machine,
but it was not terribly realistic. Unless you make detailed
measurements to the motors electrical and mechanical
characteristics and all the springiness, friction and masses
of the machine, simulation will be totally pointless, anyway.

Trying to develop tuning parameters on a simulation is
only of benefit for NASA, where you can't operate the
device in its natural environment.

Jon
The administrator has disabled public write access.

Re:Servo Tuning PID and FFn 12 Июл 2012 05:53 #21822

  • LAIR82
  • LAIR82's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 195
  • Thank you received: 5
  • Karma: 2
After reading these posts about servo tuning, I feel pretty good about tuning both servos on my turning center, but before I try that I want to make sure that I am at least close on my values in my "ini" file for my axis, before i throw power to the servos and have a major crash.

Following is a copy of my INI



any help would be greatly apprecieated.

Thanks

Rick This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 12 Июл 2012 05:56 by LAIR82.
The administrator has disabled public write access.

Re:Servo Tuning PID and FFn 12 Июл 2012 06:47 #21824

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4950
  • Thank you received: 85
  • Karma: 134
I usually disconnect the connection if possible to do so without loosing the control feedback to the axis ball screw just to make sure my wiring etc is ok and no run away condition exists. If you can jog the servo a bit then connect the servo back up and carry on with your tuning.

We now have a Servo Tuning area... I'd move this post but seems like you can't move a post that is older than the category.

John
Last Edit: 12 Июл 2012 06:49 by BigJohnT.
The administrator has disabled public write access.

Re:Servo Tuning PID and FFn 12 Июл 2012 07:05 #21826

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1647
  • Thank you received: 86
  • Karma: 116
I agree that for first time servo power-up you should disconnect the motor from the mechanics, This is because the first time you connect things you have a better than 50% chance of a runaway.

So _expect_ a runaway and verify that you can power things down or disable the servo quickly before starting. As John says , once you have feedback working and can jog things, then reconnect the motors to the mechanics for tuning.

I would also add that you should verify the drive enable circuitry before starting.
you want a ferror to instantly disable the drives. You will need to have larger values of FERROR and MIN_FERROR as you start to tune
Last Edit: 12 Июл 2012 07:06 by PCW.
The administrator has disabled public write access.
Time to create page: 2.045 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.