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: "Peterson, Kevin M. via Tech-talk" <tech-talk at aps.anl.gov>
To: "Tran, Phi Dung" <ptran1 at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 8 Jan 2025 20:34:10 +0000
The VMAX field is only used by the motor record to limit the VELO field; the VMAX field is never sent to the controller.  Setting VMAX to zero should simply disable the limiting of the VELO field in the motor record.

What is the amplitude of the encoder oscillation while the motor is idle?  How does that amplitude compare to the MRES?

Kevin

________________________________________
From: Tran, Phi Dung <ptran1 at bnl.gov>
Sent: Monday, January 6, 2025 9:14 AM
To: Peterson, Kevin M.; tech-talk at aps.anl.gov
Subject: Re: brushless dc motor MRES IS N/A

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 Copy code {N, M, DTYP, PORT,
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd
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
Copy code
{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


References:
Re: brushless dc motor MRES IS N/A Tran, Phi Dung via Tech-talk

Navigate by Date:
Prev: Re: Using Aerotech Automation1 motor controller with EPICS - controller initialization Peterson, Kevin M. via Tech-talk
Next: calcout Record causing crash Jörn Dreyer 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: brushless dc motor MRES IS N/A Mark Rivers via Tech-talk
Next: Display Builder symbol monitor Vishnu Patel 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, 10 Jan 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·