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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Request for support: Error reading data in Epics Controls while modifying project
From: Grzegorz Lak via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 27 Mar 2023 14:13:12 +0000
Good morning,
I am asking you for support in solving the problem we encountered while modifying our project. We've noticed an error reading data in Epics Controls and I need help fixing it.

The modification of the project consisted in reducing the number of supported stepper motors and did not include changes in the mechanics of the program's operation. When testing on the first two controllers, the same problem was obtained with reading the encoder counts. The encoder count reading is correct only in one direction, while in the opposite direction, when the measured displacement goes through "0", it immediately changes to a number corresponding to -2^31. Phymotion "Phylogic" software was used to test the functionality of the hardware: a stepper motor and an incremental encoder - the tests were successful.

PV type: motor

file "db/Phytron_motor.db"
{
patterns
{P, N, M, DTYP, PORT, ADDR, DESC, INIT, EGU, DIR, VELO, VBAS, HVEL, VMAX, ACCL, BDST, BVEL, BACC, MRES, ERES, RDBD, RCNT, PREC, DHLM, DLLM , UEIP}
{PHYIOC:, 1, "m$(N)", "asynMotor", phyMotionPort, 11, "motor $(N)", "", urad, Pos, 50, 60, 60, 160 .4, 0, 100 , .2, 0.05, 0.010, 0.100, 10, 3, 8100, -8100, 1 }
}

file "db/Phytron_I1AM01.db"
{
patterns
{P, N, M, PORT, ADDR, SCAN, TIMEOUT, INIT, INIT_TIME, POS_TIME, HOMING, MODE, POS_OFFSET, NEG_OFFSET, SWITCH_TYP, PWR_STAGE, ENC_TYP, ENC_SFI, ENC_DIR, STOP_CURR, RUN_CURR, BOOST_CURR, BOOST, CURRENT_DELAY, HOPR , HIGH, HIHI, STEP_RES, PS_MON, MRES }
{PHYIOC, 1,":m$(N)", phyMotionPort, 11, "1 second", 3, YES, 20, 20, 2, 1, 0, 0, 4, 1, 1, 0, 0, 50 , 1200, 1200, 0, 20, 1210, 1210, 1210, 1, 1, 0.05 }
}

Thank you in advance for taking the time to consider my request.

Kind regards,

Grzegorz Lak

 


Replies:
Re: Request for support: Error reading data in Epics Controls while modifying project Kevin Peterson via Tech-talk

Navigate by Date:
Prev: RE: areadetector on windows, xml2 done, now Lightfield Mark Rivers via Tech-talk
Next: RE: Encoder Stall happens when increasing direction of motor pulses is opposite of that of encoder count Pearson, Matthew 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  <20232024 
Navigate by Thread:
Prev: RE: areadetector on windows, xml2 done, now Lightfield Mark Rivers via Tech-talk
Next: Re: Request for support: Error reading data in Epics Controls while modifying project Kevin Peterson 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  <20232024 
ANJ, 13 Apr 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·