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  <20162017  2018  2019  2020  2021  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Please help us with some problems in building an IOC with GCS2 module in motorR6-9 using PI C863.11 controller. Thanks!
From: Mark Rivers <[email protected]>
To: 周永年 <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 31 Mar 2016 11:49:35 +0000
I think I answered this question for you yesterday.


> Why the "PI Motor GCS2" is commented?


Because that support is for an old "model 1" driver that had separate device support for each model.  The driver was replaced by the new "model 3" type, which uses a model-independent device support.

> dbLoadRecords "db/motor.db"
> Can't set "Motor1.DTYP" to "PI Motor GCS2"
> Error at or before ")" in file "db/motor.db" line 4

This line is your problem.  When using the new "model 3" driver you must use the database that is based on asyn_motor.db or basic_asyn_motor.db, not motor.db.  There use the $(PORT) and $(ADDR) macros rather than $(C) and $(S).

Mark

________________________________
From: [email protected] [[email protected]] on behalf of 周永年 [[email protected]]
Sent: Thursday, March 31, 2016 3:33 AM
To: [email protected]
Subject: Please help us with some problems in building an IOC with GCS2 module in motorR6-9 using PI C863.11 controller. Thanks!


Hello,



According to the release notice of EPICS:Motor record at the website http://www.aps.anl.gov/bcda/synApps/motor/R6-8/motor_release.html . It says that "Steffen Rau (Physik Instrumente GmbH & Co.) has added asyn motor support for PI motion controllers that use the GCS2 (General Command Set) command language. This support resides in the <motor>/motorApp/PIGCS2Src/ directory of the motor module."



It means the GCS2 module should work well form motorR6-8.



I'm trying to build an IOC named C863 with EPICS base-3.14.12.5, asyn4-23, calc-R3-6-1, motorR6-9.



There is no error message in building the IOC except an weird stituation in thePI_GCS2Support.dbd file in motorR6-9/dbd directory.



The PI_GCS2Suport.dbd is,



+++++++++++++++++++++++++++++++++++++++++++

include "asyn.dbd"
include "motorRecord.dbd"
##device(motor,VME_IO,devPIasyn,"PI Motor GCS2")
##driver(PIasyn)
registrar(PIasynDriverRegister)
##registrar(PIasynRegister)



+++++++++++++++++++++++++++++++++++++++++++



Why the "PI Motor GCS2" is commented?



Regardless of this, we run the IOC in the terminal, the result of PI_GCS2_CreateController seemed the C-863.11 controller worked well. But there is an error when load the db file. The display of the linux terminal are as follows.





++++++++++++++++++++++++++ the linux terminal display ++++++++++++++++++++++++++++++++



[blctrl@localhost iocC863]$ ../../bin/linux-x86/C863 st.cmd
#!../../bin/linux-x86/C863
## You may have to change C863 to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","iocC863")
epicsEnvSet("TOP","/home/blctrl/D-Line")
epicsEnvSet("ASYN","/BLC/epics/modules/asyn4-23")
epicsEnvSet("CALC","/BLC/epics/modules/calc-R3-6-1")
epicsEnvSet("MOTOR","/BLC/epics/modules/motorR6-9")
epicsEnvSet("EPICS_BASE","/BLC/epics/base")
cd "/home/blctrl/D-Line"
## Register all support components
dbLoadDatabase "dbd/C863.dbd"
C863_registerRecordDeviceDriver pdbbase
drvAsynIPPortConfigure("C863","10.30.54.93:4006 TCP",0,0,0)
PI_GCS2_CreateController("PI","C863","1","","","100","1000")
2016/03/29 14:26:06.436 read from C863: (c)2013 Physik Instrumente(PI) Karlsruhe, C-863.11,0,1.3.0.7
PIasynAxis::PIasynAxis() 0: 1
## Load record instances
#dbLoadTemplate "db/userHost.substitutions"
#dbLoadRecords "db/dbSubExample.db", "user=blctrlHost"
dbLoadRecords "db/motor.db"
Can't set "Motor1.DTYP" to "PI Motor GCS2"
Error at or before ")" in file "db/motor.db" line 4
## Set this to see messages from mySub
#var mySubDebug 1
## Run this to trace the stages of iocInit
#traceIocInit
cd "/home/blctrl/D-Line/iocBoot/iocC863"
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.5 $Date: Tue 2015-03-24 09:57:35 -0500$
## EPICS Base built Mar 23 2016
############################################################################
devMotorAsyn::init_record Motor1 bad link invalid INST_IO Must be asyn(<port> <addr> <timeout>)userParams
2016/03/29 14:26:06.754 devMotorAsyn::build_trans: Motor1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port
2016/03/29 14:26:06.754 devMotorAsyn::build_trans: Motor1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port
iocRun: All initialization complete
## Start any sequence programs
#seq sncExample, "user=blctrlHost"
epics> exit
2016/03/29 14:36:58.631 PIInterface::sendAndReceive error calling writeRead, output=4 status=3, error=10.30.54.93:4006 TCP disconnected:
2016/03/29 14:36:58.631 PIGCSController:sendAndReceive error calling write, output=POS? 1 status=3, error=10.30.54.93:4006 TCP disconnected:
2016/03/29 14:36:58.631 PIGCSController:sendAndReceive error calling write, output=POS? 1 status=3, error=10.30.54.93:4006 TCP disconnected:
[blctrl@localhost iocC863]$



Please give us some advice with this. Thanks!



Best regards,



yongnian


References:
Please help us with some problems in building an IOC with GCS2 module in motorR6-9 using PI C863.11 controller. Thanks! 周永年

Navigate by Date:
Prev: Please help us with some problems in building an IOC with GCS2 module in motorR6-9 using PI C863.11 controller. Thanks! 周永年
Next: RE: RE: RE: RE: RE: The camera cannot work when I start the IOC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Please help us with some problems in building an IOC with GCS2 module in motorR6-9 using PI C863.11 controller. Thanks! 周永年
Next: RE: RE: RE: RE: RE: The camera cannot work when I start the IOC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·