Experimental Physics and
| |||||||||||||||||
|
I set the "asynSetTraceMask("song",0,255)" as following your suggestion. and then I got information as below. < envPaths epicsEnvSet("ARCH","linux-x86") epicsEnvSet("IOC","iocIpTest") epicsEnvSet("TOP","/home/sanguk/epics/module/synApps_5_6/support/ip-2-13") epicsEnvSet("ASYN","/home/sanguk/epics/module/synApps_5_6/support/asyn-4-18") epicsEnvSet("EPICS_BASE","/home/sanguk/epics/base-3.14.12.2") dbLoadDatabase("../../dbd/ip.dbd") dbLoadDatabase("../../dbd/ipSupport.dbd") ip_registerRecordDeviceDriver(pdbbase) #dbLoadRecords("/Users/jihyesong/EPICS/modules/synApps_5_5/support/ip-2-10/db/TPG261.db","P=Vacuum:,GAUGE=tpg261,PORT=/dev/tty.UC-232AC,ADDR=0,TIMEOUT=1")
#dbLoadRecords("/Users/jihyesong/EPICS/modules/synApps_5_5/support/sscan-2-6-6/sscanApp/Db/scan.db", "P=/dev/tty.UC-232AC:,MAXPTS1=2000,MAXPTS2=200,MAXPTS3=20,MAXPTS4=10,MAXPTSH=10") # Use the following commands for serial RTU or ASCII #drvAsynSerialPortConfigure(const char *portName, # const char *ttyName, # unsigned int priority, # int noAutoConnect, # int noProcessEos); drvAsynSerialPortConfigure("song", "/dev/ttyUSB0", 0, 0, 0) asynSetOption("song",0,"baud","38400") asynSetOption("song",0,"parity","none") asynSetOption("song",0,"bits","8") asynSetOption("song",0,"stop","1") # Use the following commands for serial ASCII asynOctetSetOutputEos("song",0,"\r\n") asynOctetSetInputEos("song",0,"\r\n") # Note: non-zero write delay (last parameter) may be needed. #modbusInterposeConfig("song",2,1000,0) # Load Pfeiffer TPG 261 driver database dbLoadRecords("/home/sanguk/epics/module/synApps_5_6/support/ip-2-13/ipApp/Db/TPG261.db","P=Vacuum:,GAUGE=tpg261,PORT=song,ADDR=0,TIMEOUT=2") asynSetTraceIOMask("song",0,0x2) asynSetTraceMask("song",0,255) iocInit Starting iocInit ############################################################################ ## EPICS R3.14.12.2 $Date: Mon 2011-12-12 14:09:32 -0600$ ## EPICS Base built Aug 20 2013 ############################################################################ 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:PRES; command string=GET_PRESSURE command=1 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SP1V; command string=GET_SPVAL1 command=6 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SP2V; command string=GET_SPVAL2 command=9 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SET1; command string=SET_SP1 command=8 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SET2; command string=SET_SP2 command=11 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SP1S; command string=GET_SPS1 command=7 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SP2S; command string=GET_SPS2 command=10 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:STATUS; command string=GET_SENSOR command=4 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:START; command string=SET_SENSOR command=5 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:UNIT; command string=GET_UNIT command=2 address=0 2013/08/29 00:39:23.716 devTPG261::initCommon name=Vacuum:tpg261:SUNIT; command string=SET_UNIT command=3 address=0 iocRun: All initialization complete |pics> 2013/08/29 00:39:25.717 devTPG261::buildCommand Vacuum:tpg261:PRES len=4 string=|PR0 2013/08/29 00:39:25.717 song addr -1 queueRequest priority 0 not lockHolder 2013/08/29 00:39:25.717 asynManager::portThread port=song callback 2013/08/29 00:39:25.717 song set Eos 2 \r\n 2013/08/29 00:39:25.717 /dev/ttyUSB0 write. 2013/08/29 00:39:25.717 /dev/ttyUSB0 write 6 PR0\r\r\n 2013/08/29 00:39:25.717 wrote 6 to /dev/ttyUSB0, return asynSuccess 2013/08/29 00:39:25.717 song wrote PR0\r\r\n 2013/08/29 00:39:25.717 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:PRES nwrite=4, output=[P]0 2013/08/29 00:39:25.717 /dev/ttyUSB0 read. 2013/08/29 00:39:27.712 /dev/ttyUSB0 timeout handler. 2013/08/29 00:39:27.814 /dev/ttyUSB0 read 0, return 1 2013/08/29 00:39:27.814 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:PRES nread=0, input=[] 2013/08/29 00:39:27.814 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:PRES message too small=0 |013/08/29 00:39:27.814 devTPG261::buildCommand Vacuum:tpg261:STATUS len=4 string=|SEN 2013/08/29 00:39:27.814 song addr -1 queueRequest priority 0 not lockHolder 2013/08/29 00:39:27.814 asynManager::portThread port=song callback 2013/08/29 00:39:27.814 song set Eos 2 \r\n 2013/08/29 00:39:27.814 /dev/ttyUSB0 write. 2013/08/29 00:39:27.814 /dev/ttyUSB0 write 6 SEN\r\r\n 2013/08/29 00:39:27.814 wrote 6 to /dev/ttyUSB0, return asynSuccess 2013/08/29 00:39:27.814 song wrote SEN\r\r\n 2013/08/29 00:39:27.814 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:STATUS nwrite=4, output=]SEN 2013/08/29 00:39:27.814 /dev/ttyUSB0 read. |013/08/29 00:39:29.717 devTPG261::buildCommand Vacuum:tpg261:PRES len=4 string=|PR0 2013/08/29 00:39:29.717 song addr -1 queueRequest priority 0 not lockHolder 2013/08/29 00:39:29.809 /dev/ttyUSB0 timeout handler. 2013/08/29 00:39:29.914 /dev/ttyUSB0 read 0, return 1 2013/08/29 00:39:29.914 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:STATUS nread=0, input=[] 2013/08/29 00:39:29.914 devTPG261::devTPG261Callback Cmd Vacuum:tpg261:STATUS message too small=0 |013/08/29 00:39:29.914 devTPG261::buildCommand Vacuum:tpg261:SP1S len=4 string=|SPS 2013/08/29 00:39:29.914 song addr -1 queueRequest priority 0 not lockHolder 2013/08/29 00:39:29.914 asynManager::portThread port=song callback 2013/08/29 00:39:29.914 song set Eos 2 \r\n 2013/08/29 00:39:29.914 /dev/ttyUSB0 write. 2013/08/29 00:39:29.914 /dev/ttyUSB0 write 6 PR0\r\r\n 2013/08/29 00:39:29.914 wrote 6 to /dev/ttyUSB0, return asynSuccess 2013/08/29 00:39:29.914 song wrote could you let me know what is problem ? Thanks -- Sanguk Won C302-002 Physics Dep. /Pusan National Univ. /609-735 Pusan, Republic of KOREA Tel. +82-51-513-2594(Lab.)/+82-51-5 http://hipex.phys.pusan.ac.kr/drupal/ http://memorize7.tistory.com/444 On 2013년 8월 28일 Wednesday at 오후 9:23, Mark Rivers wrote:
| ||||||||||||||||
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |