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

Subject: Re: [motorPIGCS2] can't turn on servo state of PI E-712
From: "Peterson, Kevin M. via Tech-talk" <tech-talk@aps.anl.gov>
To: Chiang, Liang-Chih [江良志] <chiang.lc@nsrrc.org.tw>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 5 Aug 2019 16:29:33 +0000
LiangChih,

What are the input and output terminators for the asyn port that is used 
to communicate with the moxa?  You can run these commands on the ioc shell:

   asynOctetGetOutputEos("PIE712")
   asynOctetGetInputEos("PIE712")

The output terminator needs to be '\n' when manually sending commands to 
the controller, but the output terminator needs to be empty for the 
driver to successfully communicate with the controller.  The driver 
appends the terminator to the commands that require it and omits it from 
the single-character commands, which don't use terminators.

Kevin


On 8/4/19 10:14 PM, Chiang, Liang-Chih [江良志] via Tech-talk wrote:
> Hi, Allan,
> 
> 
> I used motor module(version 6.9) with the content of motorApp/PIGCS2Src 
> replaced by motorPIGCS2 (https://github.com/epics-motor/motorPIGCS2).
> 
> 
> After changed to motor module version 6.11, the error message "GCS 
> error, Controller was stopped by command" disappeared. However, I still 
> can't control PI E-712.
> 
> 
> If I use motor module version 6.11, there will be error message about 
> GCS error code 5:
> 
> 
> 2019/08/05 10:52:37.836 PIGCSController::getGCSError() GCS error code = 5
> 2019/08/05 10:52:37.836 PIGCSController::getGCSError() GCS error, 
> Unallowable move attempted on unreferenced axis, or move attempted with 
> servo off
> 2019/08/05 10:52:37.836 Could not set servo state!
> 
> If I use motor module version 6.11 with patch from Allan, there will be 
> error mesaage about GCS error code 5 and 17:
> 
> 2019/08/05 10:39:47.253 PIGCSController::getGCSError() GCS error code = 5
> 2019/08/05 10:39:47.253 PIGCSController::getGCSError() GCS error, 
> Unallowable move attempted on unreferenced axis, or move attempted with 
> servo off
> 2019/08/05 10:39:47.253 Could not set servo state!
> 2019/08/05 10:39:47.261 PIGCSController::setAxisPosition() sent "RON 1 0"
> 2019/08/05 10:39:47.261 PIGCSController::setAxisPosition() sent "POS 1 
> 1937869.000000"
> 2019/08/05 10:39:47.261 PIGCSController::setAxisPosition() sent "RON 1 1"
> 2019/08/05 10:39:47.267 PIGCSController::getGCSError() GCS error code = 17
> 2019/08/05 10:39:47.267 PIGCSController::getGCSError() GCS error, 
> Parameter out of range
> 2019/08/05 10:39:47.267 PIGCSController::setAxisPosition() failed, GCS 
> error 17
> 
> 
> If I issue GCS commands "FRF" and "SVO 1 1" before starting IOC, the 
> CSS(Control-System Studio) interface of motor record will show:
> 
> 
> https://www.dropbox.com/s/yrx7sikta3cqwzy/controller_error_PIE712.png?dl=0
> 
> 
> 
> 
> Still fighting againt PI E-712, any suggestions are welcome.
> 
> 
> 
> Best regards.
> 
> LiangChih Chiang
> 
> National Synchrotron Radiation Research Center (NSRRC)
> email:chiang.lc@nsrrc.org.tw <mailto:chiang.lc@nsrrc.org.tw>
> 


-- 
My working hours may not be your working hours. Please do not
feel obligated to reply outside of your normal work schedule.

Replies:
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
References:
[motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Allan Serra Braga Bugyi via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Allan Serra Braga Bugyi via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Allan Serra Braga Bugyi via Tech-talk
RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk

Navigate by Date:
Prev: Re: spec epics_caget not working Ralph Lange via Tech-talk
Next: Re: spec epics_caget not working Jennings, Guy 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  <20192020 
Navigate by Thread:
Prev: RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] via Tech-talk
Next: RE: [motorPIGCS2] can't turn on servo state of PI E-712 Chiang, Liang-Chih [江良志] 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  <20192020