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  <20182019  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  <20182019  2020  2021  2022  2023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: Phytron Phymotion reset on IOC boot
From: Torsten Bögershausen <[email protected]>
To: Nilson Pereira <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 1 Feb 2018 07:51:04 +0100
Hej Nilson,
I don't have a Phytron controller, so I can't test.
But trying to be helpful:

You can actually try t remove the reset command in the driver.
motorApp/PhytronSrc/phytronAxisMotor.cpp

Remove these lines:

    //RESET THE CONTROLLER
    sprintf(this->outString_, "CR");
phyStatus = sendPhytronCommand(this->outString_, this->inString_, MAX_CONTROLLER_STRING_SIZE, &response_len);
    if(phyStatus){
      asynPrint(this->pasynUserSelf, ASYN_TRACE_WARNING,
"phytronController::phytronController: Could not reset controller %s\n", this->controllerName_);
    }

    //Wait for reset to finish
    epicsThreadSleep(10.0);

And see what is happening ;-)

Out of curiosity:
Why do you need to reboot the IOC ?





On 31/01/18 11:48, Nilson Pereira wrote:
Dear all,

I have a Phytron stepper controller (I1AM01) with 16 axis with
incremental encoders, and I using EPICS Motor module to control all axis
since it supports this controller.

I noticed that the IOC for that specific model resets the controller on
connection (IOC boot). The reset erases the count on all encoders
forcing me to "home" all 16 axis again every time I have to reboot the IOC.

Is there a way to avoid this controller reset at IOC boot time to avoid
loosing the encoder counts? Anyone using this controller that could help
me with the settings?

Versions:
  - EPICS Base R3.15.5
  - asyn R4.31
  - autosave R5.7.1
  - motor-R6-9

Best regards,

Nilson


________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (kommissarisch), Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de

Replies:
Re: Phytron Phymotion reset on IOC boot Nilson Pereira
References:
Phytron Phymotion reset on IOC boot Nilson Pereira

Navigate by Date:
Prev: Re: Seq-2.2.5 compilation on windows Andrew Johnson
Next: ACalcOUT question Amien Crombie
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  <20182019  2020  2021  2022  2023  2024  2025 
Navigate by Thread:
Prev: Phytron Phymotion reset on IOC boot Nilson Pereira
Next: Re: Phytron Phymotion reset on IOC boot Nilson Pereira
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  <20182019  2020  2021  2022  2023  2024  2025 
ANJ, 02 Feb 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·