Hi Mark,
I seem to remember the PID fields in the motor record are restricted to 0-1 values, which is of limited use. The motor record documentation mentions scaling can be done by the driver, but I’m not aware of any model 3 driver doing this and
it would be confusing.
In the Galil driver it seems like the functions were implemented:
grep -r set.Gain *
GalilSup/src/GalilAxis.h: asynStatus setPGain(double pGain);
GalilSup/src/GalilAxis.h: asynStatus setIGain(double iGain);
GalilSup/src/GalilAxis.h: asynStatus setDGain(double dGain);
But they are not called in the GalilController class, and there are no associated records for setting KP, KI or KD in the galil_motor_extras.template. So I suspect it was never fully implemented.
It wouldn’t take too much to add driver parameters and records to call those functions, but a quick work around would be to manually set KP, KI or KD by sending strings to $(P)SEND_STR_CMD after IOC init, either via a few ‘dbpf’ commands
or a set of stringout records.
Cheers,
Matt
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Mark Rivers via Tech-talk
Sent: Wednesday, January 17, 2024 1:54 PM
To: tech-talk at aps.anl.gov
Subject: [EXTERNAL] Galil advice for servo motors
Folks,
I have been using the Galil DMC-4183 controllers for stepper motors, both with pulse/direction outputs and on-board amplifiers.
I now am setting up my first servo system with on-board amplifiers and quadrature encoders. I have a question about the best way to configure and save the PID parameters. Do people generally using the motor record
to configure KP, KI, and KD, or do you use the Galil GDK to configure those and then just save in the non-volatile memory on the controller?
I did not find any discussion of this in the EPICS Galil documentation.
Thanks,
Mark