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: motor command in synApps
From: l123173 <[email protected]>
To: [email protected]
Date: Tue, 13 Sep 2016 17:49:17 +0800 (CST)
Hi all,
        I sent the question last week, did not get the answer. So I sent it again.
        I want to control the Kohzu motor with motor6-10 module in synApps.     (fedora23  synApps 5.8   motor6.10   epics 3.15.3)
        I started the IOC with the st.cmd.kohzu1(the content was following, also in attachment).
        I am sure that the configure of serial was right.
        I got the "IDN?" output when the IOC started ( I saw the output with serial tool ), so I think the IOC worked fine.
        But I do not know how to do it then. For example, I do not know how to execute the command "ORG" or any other command of Kohzu controller.
        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)

############################################################################
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
Description: Binary data

Attachment: motor.substitutions
Description: Binary data


Replies:
RE: motor command in synApps Mark Rivers
Re: motor command in synApps Kevin Peterson

Navigate by Date:
Prev: RE: Autosave ignores PVs starting with some characters Mooney, Tim M.
Next: Test Benjamin Franksen
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: motor command in synApp when invoking the drive file l123173
Next: RE: motor command in synApps Mark Rivers
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, 13 Sep 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·