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  <20132014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: macLib: macro PORT is undefined
From: Alan Greer <ajg@observatorysciences.co.uk>
To: Yasemin Barutçu <barutcu.y@gmail.com>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 10 Apr 2013 09:30:57 +0100
Dear Yasemin,

In your start-up script it appears you have defined Port=L0 but the record wants it in capital letters.

So your dbLoadRecords should be

dbLoadRecords("/opt/epics/modules/soft/asyn4-20/db/asynRecord.db","P=yasemin:,R=asyn,PORT=L0,ADDR=24,IMAX=100,OMAX=100")

Give this a try.

Kind regards, Alan



On 04/10/2013 08:56 AM, Yasemin Barutçu wrote:
Hello,

I have a problem when start ioc.
O.S. : Scientific Linux
Base Vers : 3.14.12.3

I've been gettin following error when I start IOC.

cd /opt/Epics-Ex/burakCihaz
## Register all support components
dbLoadDatabase "dbd/burakCihaz.dbd"
burakCihaz_registerRecordDeviceDriver pdbbase
##Configure devices
drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
asynSetOption("L0",-1,"baud","9600")
asynSetOption("L0",-1,"bits","8")
asynSetOption("L0",-1,"parity","none")
asynSetOption("L0",-1,"stop","1")
asynSetOption("L0",-1,"clocal","Y")
asynSetOption("L0",-1,"crtscts","N")
dbLoadRecords("/opt/epics/modules/soft/asyn4-20/db/asynRecord.db","P=yasemin:,R=asyn,Port=L0,ADDR=24,IMAX=100,OMAX=100")
macLib: macro PORT is undefined (expanding string field(PORT,"$(PORT)")
)
filename="../dbLexRoutines.c" line number=319
macExpandString failed for file /opt/epics/modules/soft/asyn4-20/db/asynRecord.db
yasemin:asyn.PORT Has unexpanded macro
Can't set "yasemin:asyn.PORT" to "$(PORT,undefined)"
Error at or before ")" in file "/opt/epics/modules/soft/asyn4-20/db/asynRecord.db" line 4
## Load record instances
#dbLoadRecords("db/xxx.db","user=rootHost")
cd /opt/Epics-Ex/burakCihaz/iocBoot/iocburakCihaz
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.3 $Date: Mon 2012-12-17 14:11:47 -0600$
## EPICS Base built Mar 28 2013
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=rootHost"
epics> ^C
[root@localhost iocburakCihaz]# vi st.cmd
[root@localhost iocburakCihaz]# ../../bin/linux-x86_64/burakCihaz st.cmd
#!../../bin/linux-x86_64/burakCihaz
## You may have to change burakCihaz to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocburakCihaz")
epicsEnvSet("TOP","/opt/Epics-Ex/burakCihaz")
epicsEnvSet("EPICS_BASE","/opt/epics/base-3.14.12.3")
epicsEnvSet("ASYN","/opt/epics/modules/soft/asyn4-20")
cd /opt/Epics-Ex/burakCihaz
## Register all support components
dbLoadDatabase "dbd/burakCihaz.dbd"
burakCihaz_registerRecordDeviceDriver pdbbase
##Configure devices
drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
asynSetOption("L0",-1,"baud","9600")
asynSetOption("L0",-1,"bits","8")
asynSetOption("L0",-1,"parity","none")
asynSetOption("L0",-1,"stop","1")
asynSetOption("L0",-1,"clocal","Y")
asynSetOption("L0",-1,"crtscts","N")
dbLoadRecords("/opt/epics/modules/soft/asyn4-20/db/asynRecord.db","P=yasemin:,R=asyn,Port=L0,ADDR=24,IMAX=100,OMAX=100")
macLib: macro PORT is undefined (expanding string field(PORT,"$(PORT)")
)
filename="../dbLexRoutines.c" line number=319
macExpandString failed for file /opt/epics/modules/soft/asyn4-20/db/asynRecord.db
yasemin:asyn.PORT Has unexpanded macro
Can't set "yasemin:asyn.PORT" to "$(PORT,undefined)"
Error at or before ")" in file "/opt/epics/modules/soft/asyn4-20/db/asynRecord.db" line 4
## Load record instances
#dbLoadRecords("db/xxx.db","user=rootHost")
cd /opt/Epics-Ex/burakCihaz/iocBoot/iocburakCihaz
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.3 $Date: Mon 2012-12-17 14:11:47 -0600$
## EPICS Base built Mar 28 2013
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=rootHost"
epics>



References:
macLib: macro PORT is undefined Yasemin Barutçu

Navigate by Date:
Prev: Conversion problem from double to 32 bit unsigned int (in ao) Dirk Zimoch
Next: Re: Stream Device and Asyn Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: macLib: macro PORT is undefined nick.rees
Next: Conversion problem from double to 32 bit unsigned int (in ao) Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·