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"