Hi Sungsu,
In the drvAsyn... calls, you have to either user quotes around the
string arguments, or remove all spaces at the beginning and end.
The error message shows that asyn is trying to interpret the
beginning of the URI (a space character) as the protocol tag, which
fails.
However, setting the environment variables earlier on seems to
suggest using these variable in the calls, so something along the
lines of
drvAsynIPPortConfigure("P1", "$(TCP1)", 0, 0, 0)
seems more appropriate.
Hope this helps,
~Ralph
Dear.EPICS friend
I want to control the power supply but medm not operational. Would
you some please help me?
Whant part is some problems?
==========================================================================
localhost.localdomain[341]# ./start_run
#!../../bin/linux-x86_64/ODA_PS_RS232
##You may have to change ASYN to something else
##everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocODA_PS_RS232")
epicsEnvSet("TOP","/home/cha/ODA_PS_RS232")
epicsEnvSet("EPICS_BASE","/usr/local/epics/base")
epicsEnvSet("ASYN","/usr/local/epics/extensions/src/synApps_5_7/support/asyn-4-21")
epicsEnvSet("STREAM","/usr/local/epics/extensions/src/synApps_5_7/support/stream-2-6")
epicsEnvSet "STREAM_PROTOCOL_PATH" "/home/cha/ODA_PS_RS232/db"
#Allow PV name prefixes and serial port name to be set from the environment
epicsEnvSet "P" "10MeV"
epicsEnvSet "R" "TM"
epicsEnvSet "TCP1" "100.100.10.13:4001"
epicsEnvSet "TCP2" "100.100.10.14:4002"
epicsEnvSet "TCP3" "100.100.10.15:4003"
epicsEnvSet "TCP4" "100.100.10.11:4004"
epicsEnvSet "TCP5" "100.100.10.11:4005"
- Ignored:
epicsEnvSet "TCP6" "100.100.10.11:4006"
epicsEnvSet "TCP7" "100.100.10.11:4007"
epicsEnvSet "TCP8" "100.100.10.11:4008"
cd /home/cha/ODA_PS_RS232
##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 , 100.100.10.13:4001 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P2 , 100.100.10.14:4002 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P3 , 100.100.10.15:4003 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P4 , 100.100.10.11:4004 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P5 , 100.100.10.11:4005 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P6 , 100.100.10.11:4006 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P7 , 100.100.10.11:4007 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
drvAsynIPPortConfigure( P8 , 100.100.10.11:4008 ,0,0,0)
drvAsynIPPortConfigure: Unknown protocol " ".
##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)
asynManager:connectDevice port P1 not found
asynSetTraceMask( P1 ,-1,0x9)
asynManager:connectDevice port P1 not found
asynSetTraceIOMask( P2 ,-1,0x2)
asynManager:connectDevice port P2 not found
asynSetTraceMask( P2 ,-1,0x9)
asynManager:connectDevice port P2 not found
asynSetTraceIOMask( P3 ,-1,0x2)
asynManager:connectDevice port P3 not found
asynSetTraceMask( P3 ,-1,0x9)
asynManager:connectDevice port P3 not found
asynSetTraceIOMask( P4 ,-1,0x2)
asynManager:connectDevice port P4 not found
asynSetTraceMask( P4 ,-1,0x9)
asynManager:connectDevice port P4 not found
asynSetTraceIOMask( P5 ,-1,0x2)
asynManager:connectDevice port P5 not found
asynSetTraceMask( P5 ,-1,0x9)
asynManager:connectDevice port P5 not found
asynSetTraceIOMask( P6 ,-1,0x2)
asynManager:connectDevice port P6 not found
asynSetTraceMask( P6 ,-1,0x9)
asynManager:connectDevice port P6 not found
asynSetTraceIOMask( P7 ,-1,0x2)
asynManager:connectDevice port P7 not found
asynSetTraceMask( P7 ,-1,0x9)
asynManager:connectDevice port P7 not found
asynSetTraceIOMask( P8 ,-1,0x2)
asynManager:connectDevice port P8 not found
asynSetTraceMask( P8 ,-1,0x9)
asynManager:connectDevice port P8 not found
###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=10MeV,R=TM1:,PORT1=P1,A=1 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_1.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_2.db ,
P=10MeV,R=TM2:,PORT2=P2,A=2 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_2.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_3.db ,
P=10MeV,R=TM3:,PORT3=P3,A=3 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_3.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_4.db ,
P=10MeV,R=TM4:,PORT4=P4,A=4 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_4.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_5.db ,
P=10MeV,R=TM5:,PORT5=P5,A=5 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_5.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_6.db ,
P=10MeV,R=TM6:,PORT6=P6,A=6 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_6.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_7.db ,
P=10MeV,R=TM7:,PORT7=P7,A=7 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_7.db
dbLoadRecords( db/10MeV_ODA_PS_RS232_8.db ,
P=10MeV,R=TM8:,PORT8=P8,A=8 )
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
db/10MeV_ODA_PS_RS232_8.db
#dbLoadRecords("db/xxx.db","user=chaHost")
cd /home/cha/ODA_PS_RS232/iocBoot/iocODA_PS_RS232
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built Dec 23 2015
############################################################################
MEDM Version 3.1.8.1: Loading aliased fonts.................
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=chaHost"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
epics> ../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
../online_notify.c: CA beacon (send to "100.100.10.255:5065") error was "Connection refused"
SIGINT
^C
===========================================================================
which part is problems??
Please, help me
Thanks
Sungsu
|
|