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  <20132014  2015  2016  2017  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: macLib: macro PORT is undefined
From: <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Wed, 10 Apr 2013 08:10:30 +0000
Hi Yasemin,

Looking at it, macLib is case sensitive so macros like PORT are case sensitive. So:

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)"))

has "Port" defined as a macro and so "PORT" is undefined.

Nick Rees
Principal Software Engineer           Phone: +44 (0)1235-778430
Diamond Light Source                  Fax:   +44 (0)1235-446713

From: [email protected] [mailto:[email protected]] On Behalf Of Yasemin Barutçu
Sent: 10 April 2013 08:56
To: [email protected]
Subject: macLib: macro PORT is undefined

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> 

-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 





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

Navigate by Date:
Prev: Re: macLib: macro PORT is undefined Hinko Kocevar
Next: RE: linux file search from Asyn nick.rees
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  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: macLib: macro PORT is undefined Hinko Kocevar
Next: Re: macLib: macro PORT is undefined Alan Greer
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  2020  2021  2022  2023  2024 
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 ·