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: Error when running st.cmd of SmartMotor
From: 최원철 via Tech-talk <[email protected]>
To: <[email protected]>
Date: Fri, 10 Jan 2020 18:31:41 +0900

hi 

I'm currently developing an IOC that runs a motor and I'm having trouble.

When I run "st.cmd" it produces this output: 

 

odroid@odroid:~/App/epics/iocs/testMotor/iocBoot/ioctestMotor$ ./st.cmd 

 

#!../../bin/linux-arm/testMotor

## You may have to change testMotor to something else

## everywhere it appears in this file

< envPaths

epicsEnvSet("IOC","ioctestMotor")

epicsEnvSet("TOP","/home/odroid/App/epics/iocs/testMotor")

epicsEnvSet("EPICS_BASE","/usr/local/epics/base")

epicsEnvSet("ASYN","/usr/local/epics/modules/asyn4-37")

epicsEnvSet("STREAM","/home/odroid/App/epics/modules/stream")

epicsEnvSet("MOTOR","/usr/local/epics/modules/motor-R6-10-1")

< epicsEnvSet(STREAM_PROTOCOL_PATH, "odroid/App/epics/iocs/testMotor/testMotorApp/Db")

st.cmd line 7: Can't open "epicsEnvSet": No such file or directory.

cd "/home/odroid/App/epics/iocs/testMotor"

## Register all support components

dbLoadDatabase "dbd/testMotor.dbd"

testMotor_registerRecordDeviceDriver pdbbase

drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyS2",0,0,0)

asynSetOption("SERIALPORT",-1,"baud","19200")

asynSetOption("SERIALPORT",-1,"bits","8")

asynSetOption("SERIALPORT",-1,"parity","none")

asynSetOption("SERIALPORT",-1,"stop","1")

asynSetOption("SERIALPORT",-1,"clocal","Y")

asynSetOption("SERIALPORT",-1,"crtscts","N")

asynOctetSetInputEos("SERIALPORT",0,"\r")

asynOctetSetOutputEos("SERIALPORT",0,"\r")

KKTechSetup(1,8,10)

KKTechConfig(0,"SERIALPORT")

## Load record instances

#dbLoadRecords("db/xxx.db","user=odroid")

dbLoadRecords("db/testMotor.db","PORT='SERIALPORT'")

#dbLoadRecords("db/testMotor.db")

cd "/home/odroid/App/epics/iocs/testMotor/iocBoot/ioctestMotor"

iocInit

Starting iocInit

############################################################################

## EPICS R3.15.6

## EPICS Base built Dec 23 2019

############################################################################

drvStreamInit: Warning! STREAM_PROTOCOL_PATH not set. Defaults to "."                                                      <-------?????

devMotorAsyn::init_record IOC:m1 bad link invalid INST_IO Must be asyn(<port> <addr> <timeout>)userParams             <-------?????

2020/01/09 17:46:06.002 devMotorAsyn::build_trans: IOC:m1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port  <-------?????

2020/01/09 17:46:06.002 devMotorAsyn::build_trans: IOC:m1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port  <-------?????

iocRun: All initialization complete

## Start any sequence programs

#seq sncxxx,"user=odroid"

epics>

 

 

Below is the contents of the st.cmd file. 

#!../../bin/linux-arm/testMotor

 

## You may have to change testMotor to something else

## everywhere it appears in this file

 

< envPaths

< epicsEnvSet(STREAM_PROTOCOL_PATH, "odroid/App/epics/iocs/testMotor/testMotorApp/Db")

 

cd "${TOP}"

 

## Register all support components

dbLoadDatabase "dbd/testMotor.dbd"

testMotor_registerRecordDeviceDriver pdbbase

 

drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyS2",0,0,0)

asynSetOption("SERIALPORT",-1,"baud","19200")

asynSetOption("SERIALPORT",-1,"bits","8")

asynSetOption("SERIALPORT",-1,"parity","none")

asynSetOption("SERIALPORT",-1,"stop","1")

asynSetOption("SERIALPORT",-1,"clocal","Y")

asynSetOption("SERIALPORT",-1,"crtscts","N")

asynOctetSetInputEos("SERIALPORT",0,"\r")

asynOctetSetOutputEos("SERIALPORT",0,"\r")

 

KKTechSetup(1,8,10)

KKTechConfig(0,"SERIALPORT")

 

## Load record instances

#dbLoadRecords("db/xxx.db","user=odroid")

dbLoadRecords("db/testMotor.db","PORT='SERIALPORT'")

#dbLoadRecords("db/testMotor.db")

 

cd "${TOP}/iocBoot/${IOC}"

iocInit

 

## Start any sequence programs

#seq sncxxx,"user=odroid"


Below is the contents of the testMotor.db file.
grecord(motor,"IOC:m1")
{
field(DESC,"$(DESC="motor $(M)")")
field(DTYP,"KKTech")
field(DIR,"$(DIR=Pos)")
field(VELO,"$(VELO=1)")
field(VBAS,"$(VBAS=.1)")
field(ACCL,"$(ACCL=.2)")
field(BDST,"$(BDST=0)")
field(BVEL,"$(BVEL=1)")
field(BACC,"$(BACC=.2)")
field(OUT,"#C$(C=0) S$(S) @")
field(MRES,"$(MRES=0.01)")
field(PREC,"$(PREC=5)")
field(EGU,"$(EGU=mm)")
field(DHLM,"$(DHLM=100)")
field(DLLM,"$(DLLM=-100)")
field(INIT,"$(INIT="")")
field(TWV,"1")
}


I can't solve the above 4 errors.

   I would appreciate a very small tip.
Thank you.

 

 



Replies:
Error when running st.cmd of SmartMotor <<-- cancel the question 최원철 via Tech-talk

Navigate by Date:
Prev: Re: EPICS release series after 7.0: 7.1 or 8.0? Wang Xiaoqiang via Tech-talk
Next: Error when running st.cmd of SmartMotor <<-- cancel the question 최원철 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: Re: EPICS Smartmotor example IOC 최원철 via Tech-talk
Next: Error when running st.cmd of SmartMotor <<-- cancel the question 최원철 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 Jan 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·