EPICS Home

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  <20222023  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  <20222023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: Re: motor record field assignment problem
From: 高振华 via Tech-talk <tech-talk at aps.anl.gov>
To: "mark rivers" <rivers at cars.uchicago.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 2 Feb 2022 11:08:04 +0800 (GMT+08:00)

Hi Mark,

Thank you very much for your help!

I understand now.

Then I redownloaded motordevicedriver.html and it did end up on this line:  

NOTE: This documentation file is incomplete. It needs to be completed.

There should be a problem with the motordevicedriver.html that i originally got,This line is missing. 


Zhenhua

-----原始邮件-----
发件人:"Mark Rivers" <rivers at cars.uchicago.edu>
发送时间:2022-01-31 23:38:14 (星期一)
收件人: "Kevin Peterson" <kmpeters at anl.gov>, "高振华" <gaozh at ihep.ac.cn>
抄送: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
主题: Re: motor record field assignment problem

Hi Zhenhua,

Sorry for the delay in getting back to you.  I can add to some things Kevin said.

You asked about the DTYP field.  For model-3 drivers this is always "asynMotor".  For older model-1 drivers it is driver-specific.  One way to determine the correct value is to look at the example substitutions files.  For example, motor/modules/motorOms/iocs/omsIOC/iocBoot/iocOms/MAXv.substitutions contains this:

{P,     N,  M,        DTYP,        C,  S,  DESC,           EGU,  DIR,  VELO,  VBAS,  ACCL,  BDST,  BVEL,  BACC,  MRES,    PREC,  DHLM,  DLLM,  INIT}
{oms:,  1,  "m$(N)",  "OMS MAXv",  0,  0,  "MAXv M$(N)",   mm,   Pos,  1,     .1,    .2,    0,     1,     .2,    2.5e-4,  5,     100,   -100,  ""}

So you can see that DTYP is "OMS MAXv". 

If there is no example substitutions file, then you can look at the .dbd file for that driver.  In this case devOms.dbd contains this line:

devOms.dbd:device(motor,VME_IO,devMAXv,"OMS MAXv")

> The content of the motordevicedriver. HTML file is not completely displayed, and only this sentence is displayed:

You are correct, that documentation file is incomplete.  It ends with this line:

NOTE: This documentation file is incomplete. It needs to be completed.

I started writing that documentation in 2012 and never finished it.

Mark



From: Kevin Peterson <kmpeters at anl.gov>
Sent: Monday, January 31, 2022 9:09 AM
To: 高振华 <gaozh at ihep.ac.cn>; Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: motor record field assignment problem
 
1. The motor record provides databases that simplify specifying the OUT
field.  Older model-1 motor drivers use motor.db:

https://github.com/epics-modules/motor/blob/master/motorApp/Db/motor.db#L16

C is the index of the controller and S is the index of the motor.  Both
start at zero.

Newer model-3 motor drivers use asyn_motor.db:

https://github.com/epics-modules/motor/blob/master/motorApp/Db/asyn_motor.db#L16

PORT is the name of the asyn port created by when the motor driver was
started.  ADDR is the index of the axis, starting at zero.

2. Is the content on this web page visible?

   https://epics-modules.github.io/motor/motorDeviceDriver.html

If not, the file also resides in the motor module's docs directory
(documentation for older versions).

3. The name of the motor's VAL field is written to one of the sscan
record's positioner fields (P1PV, P2PV, P3PV, P4PV).

Kevin

On 1/27/22 21:49, 高振华 via Tech-talk wrote:
> *Hello Mark,*
>
> *I am learning stepper motor control and have encountered some problems. *
>
> *1. I don't know how to fill in the values of DTYP and OUT fields in
> motor records. *
>
> *For a certain type of stepper motor controller how to know its
> corresponding DTYP value and OUT or INP field assignment format?  I
> can't find the assignment format description in the motor example and
> documentation, do I have to look it up in the source code? *
>
> *2. the content of the motordevicedriver. HTML file is not completely
> displayed, and only this sentence is displayed: *
>
> *“****asynMotorAxis base class*
>
> *The asynMotorAxis base class defines the following methods:”*
>
> *Where can I download a full version?*
>
> *3. **By which field is the SSCAN record connected to the motor record? *
>
> **
>
>   * *
>
>     For example, the motor record of the OMS VME58 is shown below
>
>     *
>
> **
>
> Thank you!
>
> Best regards,
>
> Gao Zhenhua
>
>
> --
>
> BSRF(Beijing Synchrotron Radiation Facility)
> Email:gaozh at ihep.ac.cn <mailto:gaozh at ihep.ac.cn>
>
>
>
>

--
      
祝好!
高振华

电话:010-88235426
Email:gaozh at ihep.ac.cn


References:
motor record field assignment problem 高振华 via Tech-talk
Re: motor record field assignment problem Kevin Peterson via Tech-talk
Re: motor record field assignment problem Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Re: motor record field assignment problem 高振华 via Tech-talk
Next: Configuring serial communication with Lakeshore 331 via Moxa Wlodek, Jakub 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  <20222023  2024  2025 
Navigate by Thread:
Prev: Re: motor record field assignment problem Mark Rivers via Tech-talk
Next: Questions from the Static Database Access chapter of the Application Developer's Guide Wang, Andrew 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  <20222023  2024  2025