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 me;; dbLoadRecords
From: Mark Rivers <[email protected]>
To: "'[email protected]'" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 6 Jan 2016 15:56:50 +0000

You would need to show us this file: 10MeV_ODA_PS_PS232_2.db

 

Ø  dbLoadRecords(“db/10MeV_ODA_PS_PS232_2.db”,“P=$(P),R=TM:,PORT2=P2,A=2”)

Ø  dbLoadRecords(“db/10MeV_ODA_PS_RS232_3.db”,“P=$(P),R=TM:,PORT3=P3,A=3”)

Unless the PORT2 and A are used in forming the record names then it looks to me like you may have a problem with multiple records with the same name.  I would have expected to see R=TM1: for the first dbLoadRecord, R=TM2: for the second, etc.

 

Mark



 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: Wednesday, January 06, 2016 9:16 AM
To: [email protected]
Subject: Please, Help me;; dbLoadRecords

 

Dear. EPICS STAFF.

 

I have a question.

I programing the magnet power supply.

But, something is happen.

 

Below sentens;; R=TM is what's meaning?

(dbLoadRecords(“db/10MeV_ODA_PS_RS232_1.db”,“P=$(P),R=TM:,PORT1=P1,A=1”)

 

If you know, Please, let me konw

 

Thank you very mech.

Cha.

 

dbLoadRecords(“db/10MeV_ODA_PS_RS232_1.db”,“P=$(P),R=TM:,PORT1=P1,A=1”)

 

========================================================================

#!../../bin/linux-x86_64/ODA_PS_RS232

##You may have to change ASYN to something else
##everywhere it appears in this file

< envPaths
epicsEnvSet "STREAM_PROTOCOL_PATH" "$(TOP)/db"

#Allow PV name prefixes and serial port name to be set from the environment
epicsEnvSet "P" "$(P=10MeV)"
epicsEnvSet "TCP1" "$(TCP1=100.100.10.11:4001)"
epicsEnvSet "TCP2" "$(TCP2=100.100.10.11:4002)"
epicsEnvSet "TCP3" "$(TCP3=100.100.10.11:4003)"
epicsEnvSet "TCP4" "$(TCP4=100.100.10.11:4004)"
epicsEnvSet "TCP5" "$(TCP5=100.100.10.11:4005)"
epicsEnvSet "TCP6" "$(TCP6=100.100.10.11:4006)"
epicsEnvSet "TCP7" "$(TCP7=100.100.10.11:4007)"
epicsEnvSet "TCP8" "$(TCP8=100.100.10.11:4008)"

cd ${TOP}

##Register all support components
dbLoadDatabase "dbd/ODA_PS_RS232.dbd"
ODA_PS_RS232_registerRecordDeviceDriver pdbbase

#The ASYN ports below are for the first terminal server with numerical
#instantiation for TCP macros.
#Note if new power supply added a new entry will have to be made here.
#If any additions are made, one should instantiate differently.
#Instead of “P1, P2, ...” one should use something like “L1, L2, ...”.
#drvAsynIPPortConfigure(“portName”,“hostInfo”,priority,noAutoConnect,noProcessEos)
drvAsynIPPortConfigure(“P1”,“$(TCP1)”,0,0,0)
drvAsynIPPortConfigure(“P2”,“$(TCP2)”,0,0,0)
drvAsynIPPortConfigure(“P3”,“$(TCP3)”,0,0,0)
drvAsynIPPortConfigure(“P4”,“$(TCP4)”,0,0,0)
drvAsynIPPortConfigure(“P5”,“$(TCP5)”,0,0,0)
drvAsynIPPortConfigure(“P6”,“$(TCP6)”,0,0,0)
drvAsynIPPortConfigure(“P7”,“$(TCP7)”,0,0,0)
drvAsynIPPortConfigure(“P8”,“$(TCP8)”,0,0,0)

 

 

 

##The lines below are for debugging purposes.
#If additions made to drvAsynIPPortConfigure entries,
#then copy lines 2 lines below and use new letter
#that you made in new drvAsynIPPortConfigure.
#See comments starting on line 61.
asynSetTraceIOMask(“P1”,-1,0x2)
asynSetTraceMask(“P1”,-1,0x9)
asynSetTraceIOMask(“P2”,-1,0x2)
asynSetTraceMask(“P2”,-1,0x9)
asynSetTraceIOMask(“P3”,-1,0x2)
asynSetTraceMask(“P3”,-1,0x9)
asynSetTraceIOMask(“P4”,-1,0x2)
asynSetTraceMask(“P4”,-1,0x9)
asynSetTraceIOMask(“P5”,-1,0x2)
asynSetTraceMask(“P5”,-1,0x9)
synSetTraceIOMask(“P6”,-1,0x2)
asynSetTraceMask(“P6”,-1,0x9)
asynSetTraceIOMask(“P7”,-1,0x2)
asynSetTraceMask(“P7”,-1,0x9)
asynSetTraceIOMask(“P8”,-1,0x2)
asynSetTraceMask(“P8”,-1,0x9)

###Load record instances
#Note: if new TDK-Lambda ZUP power supplies become available:
#1.) Add a new macro to account for new port. See comments in beginning around line 12.
#2.) Add a new “drvAsynIPPortConfigure”. See comments starting on line 59.
#3.) Add a couple new debugging lines. See comments on line 101.
#4.) Add a new dbLoadRecords line with with a new “PORT” line and “A” line.
#The “PORT” and “A” come from database files. One can just as easily label the port
#“PORTA” or “PORTA1”, as long as it’s the same as the database file.
### 10 MeV Linac #############
# Solenoids & Steerings
dbLoadRecords(“db/10MeV_ODA_PS_RS232_1.db”,“P=$(P),
R=TM:,PORT1=P1,A=1”)
dbLoadRecords(“db/10MeV_ODA_PS_PS232_2.db”,“P=$(P),R=TM:,PORT2=P2,A=2”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_3.db”,“P=$(P),R=TM:,PORT3=P3,A=3”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_4.db”,“P=$(P),R=TM:,PORT4=P4,A=4”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_5.db”,“P=$(P),R=TM:,PORT5=P5,A=5”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_6.db”,“P=$(P),R=TM:,PORT6=P6,A=6”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_7.db”,“P=$(P),R=TM:,PORT7=P7,A=7”)
dbLoadRecords(“db/10MeV_ODA_PS_RS232_8.db”,“P=$(P),R=TM:,PORT8=P8,A=8”)

 

 

 

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

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

## Start any sequence programs
#seq sncxxx,"user=chaHost" 

 


References:
Please, Help me;; dbLoadRecords [email protected]

Navigate by Date:
Prev: RE: Please, Help me;; dbLoadRecords peter.owens
Next: .template and .db files Phil Atkin
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: RE: Please, Help me;; dbLoadRecords peter.owens
Next: .template and .db files Phil Atkin
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 ·