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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Home motorSim Device
From: William Cork via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Fri, 10 Apr 2020 08:25:02 -0700
Playing around with the motor and asyn modules to get more familiar with EPICS motion control.

I'm using an example motorSim found here: https://github.com/shroffk/motorsim.git
Using:
asyn-R4-37
motor-R7-1
calc-R3-7-3

Having an issue where I tell an sioc using motorSim to home but, the MSTA record never updates the HOMED bit.

Startup deck has these lines to configure motorSim device:
```
motorSimCreate( 0, 0, -32000, 32000, 0, 1, 6 )
drvAsynMotorConfigure("motorSim1", "motorSim", 0, 6)
```

fakemotor.db:
```
record(ao, "$(Sys)$(Dev)-SP") {
    field(FLNK, "$(Sys)$(Dev)-SP_")
}

record(seq, "$(Sys)$(Dev)-SP_") {
    #disable mtr rec processing
    field(DOL1, "1")
    field(LNK1, "$(Mtr).DISA")

    # write setpoint to mtr rec
    field(DLY2, "0.1")
    field(DOL2, "$(Sys)$(Dev)-SP")
    field(LNK2, "$(Mtr).VAL CP")

    # to re-enable mtr rec processing, write or process "$(Sys)$(Dev)Cmd:Go-Cmd"
}

record(ai, "$(Sys)$(Dev)-I") {
    field(INP, "$(Mtr).RBV CPP")
}

record(bo, "$(Sys)$(Dev)Cmd:Go-Cmd") {
    field(DOL, "0")
    field(OUT, "$(Mtr).DISA CPP")
}

record(bo, "$(Sys)$(Dev)Cmd:Stop-Cmd") {
    field(VAL, "1")
    field(OUT, "$(Mtr).STOP CPP")
}

record(bi, "$(Sys)$(Dev)Sts:Moving-Sts") {
    field(INP, "$(Mtr).DMOV CPP")
    field(ZNAM, "Moving")
    field(ONAM, "Done")
}
```

Does motorSim have support for homing?
Is it broken from the seq record in fakemotor.db?

Your help is appreciated,
Will

Replies:
Re: Home motorSim Device Mark Rivers via Tech-talk

Navigate by Date:
Prev: New versions of areaDetector modules ADGenICam, ADSpinnaker, ADVimba released Mark Rivers via Tech-talk
Next: Re: Home motorSim Device 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: New versions of areaDetector modules ADGenICam, ADSpinnaker, ADVimba released Mark Rivers via Tech-talk
Next: Re: Home motorSim Device 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  <20202021  2022  2023  2024 
ANJ, 10 Apr 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·