Experimental Physics and
| |||||||||||||||
|
Hi all, I want to control the Kohzu with motor module in synApps. (fedora23 synApps 5.8 motor6.10 epics 3.15.3) Then I started the IOC with the st.cmd.kohzu1 and saw the output with some serial tool in another terminal. I got the "IDN?" output when the IOC start, so I think the IOC worked fine. But I do not know how to do it then, I do not know how to execute the command "ORG" or other command of Kohzu controller. I don't know how to use the command. These command are all exist in KohzuSrc file. Why I could got the IDN command, could not get the other command? the dbl list was associated with motor.substitutions.(IOC:m1,IOC:m2,.....,IOC:m8) Which step I forgot? Regards, Li xing st.cmd.kohzu1: ############################################################################ < envPaths epicsEnvSet("ARCH","linux-x86_64") epicsEnvSet("TOP","/opt/epics/synApps_5_8/support/motor-6-10") epicsEnvSet("EPICS_BASE","/opt/epics/base") epicsEnvSet("STREAM","/opt/epics/synApps_5_8/support/stream-2-6a") epicsEnvSet("ASYN","/opt/epics/synApps_5_8/support/asyn-4-26") epicsEnvSet("MOTOR","/opt/epics/synApps_5_8/support/motor-6-10") # For deviocstats # Change this PV according to set-up # Overide default ############################################################################ # Increase size of buffer for error logging from default 1256 errlogInit(20000) ############################################################################ # Register all support components dbLoadDatabase("$(TOP)/dbd/WithAsyn.dbd") WithAsyn_registerRecordDeviceDriver(pdbbase) dbLoadTemplate("motor.substitutions") #this file in motor/ioc/ioc/ ,the content was in "dbl" drvAsynSerialPortConfigure("serial","/dev/ttyS0",0,0,0) asynOctetSetInputEos("serial",0,"\r\n") asynOctetSetOutputEos("serial",0,"\r\n") asynSetOption("serial",0,"baud","38400") asynSetOption("serial",0,"bits","8") asynSetOption("serial",0,"stop","1") asynSetOption("serial",0,"parity","none") asynSetOption("serial",0,"clocal","Y") asynSetOption("serial",0,"crtscts","N") asynSetOption("serial",0,"") asynSetTraceIOMask("serial",0,2) asynSetTraceMask("serial",0,0xFF) ############################################################################ #GPIB: portname, autoConnect, boardId, timeout, 5th_arg ##GpibBoardDriverConfig("kohzu",1,0,3,0) #comment out # Kohzu SC-800 motor controller setup parameters: # (1) maximum number of controllers in system # (2) motor task polling rate (min=1Hz,max=60Hz) ##SC800Setup(5, 60) SC800Setup(1,1) # Kohzu SC-800 motor controller configuration parameters: # (1) controller# being configured # (2) ASYN port name # (3) address (GPIB only) SC800Config(0,"serial",0) var drvSC800debug 4 ############################################################################ # Start EPICS IOC iocInit ############################################################################ motor.substitutions: file "$(MOTOR)/db/basic_motor.db" { pattern {P, N, M, DTYP, C, S, DESC, EGU, DIR, VELO, VBAS, ACCL, BDST, BVEL, BACC, MRES, PREC, DHLM, DLLM, INIT} {IOC:, 1, "m$(N)", "SC-800", 0, 0, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 2, "m$(N)", "SC-800", 0, 1, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 3, "m$(N)", "SC-800", 0, 2, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 4, "m$(N)", "SC-800", 0, 3, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 5, "m$(N)", "SC-800", 0, 4, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 6, "m$(N)", "SC-800", 0, 5, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 7, "m$(N)", "SC-800", 0, 6, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 8, "m$(N)", "SC-800", 0, 7, "motor $(N)", um, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} }
Attachment:
st.cmd.kohzu1 Attachment:
motor.substitutions
| ||||||||||||||
ANJ, 13 Sep 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |