EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
<== Date ==> <== Thread ==>

Subject: Re: brushless dc motor MRES IS N/A
From: "Tran, Phi Dung via Tech-talk" <tech-talk at aps.anl.gov>
To: "Peterson, Kevin M." <kmpeters at anl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 6 Jan 2025 15:14:50 +0000
Hi Kevin,

Hi Kevin,
I used the ACS motion controller software to move the motors to their target positions successfully.
However, after configuring the EPICS substitution files with the following parameters:
bash
{N,   M,       DTYP,         PORT,  ADDR,  DESC,          EGU, DIR,  VELO,  VBAS,  ACCL,  BDST,  BVEL,  BACC,  MRES,         PREC,  DHLM,  DLLM,  INIT} # 2.54 mm/rev, 200 steps/rev, 1024 microsteps/step {1,  "m$(N)",  "asynMotor",  ACS1,  0,     "VerY $(N)",   mm,  Pos,  2.2,    2,     4,    0, 2.2,    4,    9.765625e-07,  4,     400,    0,  ""}
I observed that the motor oscillates around the target positions until the retry limit is exceeded. I have attempted adjustments using PID and FRAC settings without success.
Could this issue be related to the VMAX parameter being set to 0? What would be the best approach to resolve this problem?
Best regards,
Alex Tran

From: Peterson, Kevin M. <kmpeters at anl.gov>
Sent: Thursday, December 19, 2024 6:18 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Tran, Phi Dung <ptran1 at bnl.gov>
Subject: Re: brushless dc motor MRES IS N/A
 
There are multiple reasons why the MRES should be set to the ERES for DC brushless motors:

* The MRES, not the ERES, is used by the motor record to convert velocities and accelerations from EGU into controller units
* The MRES, not the ERES, is used to synchronize the raw limit fields with the dial and user limit fields
* The absolute value of the MRES is used as the minimum retry deadband
* The MRES, not the ERES, is used to calculate the raw position to send to the controller when the motor record's dial position is being redefined
* If a user changes UEIP to "No", the motor will still work if MRES == ERES (assuming the motor driver sets both the RMP and REP to the same value)

Kevin

________________________________________
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Tran, Phi Dung via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, December 19, 2024 10:10 AM
To: tech-talk at aps.anl.gov
Subject: brushless dc motor MRES IS N/A

hI,
I am using a DC brushless motor with an encoder. For the motor record, I will define ERES and set UEIP to YES. That's it; my MRES is not applicable therefore, I will not include this field..
However, experts have advised that I should set MRES equal to ERES. What is the rationale behind this? Is it to ensure that when UEIP is set to NO, the motor still operates correctly?
Alex


Replies:
RE: brushless dc motor MRES IS N/A Mark Rivers via Tech-talk
Re: brushless dc motor MRES IS N/A Peterson, Kevin M. via Tech-talk

Navigate by Date:
Prev: Re: I implemented the Model 3 of EPICS motor driver support, but the VAL and RBV of motor record are zero after IOC reboot. LiangChih Chiang via Tech-talk
Next: RE: brushless dc motor MRES IS N/A Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
Navigate by Thread:
Prev: Re: Cross-compiling epics for petalinux Donny Domagoj Cosic via Tech-talk
Next: RE: brushless dc motor MRES IS N/A Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <2025
ANJ, 15 Jan 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·