1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: macro value |
From: | "Mooney, Tim M." <[email protected]> |
To: | l123173 <[email protected]>, "[email protected]" <[email protected]> |
Date: | Wed, 31 Aug 2016 15:19:23 +0000 |
Hi Li,
How are you supplying macro values to 4motor_form.opi? You probably want to call up 4motor_form.opi from a related display button. (That's what the button type is called in MEDM, anyway. I forget what it's called in BOY.) Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov) Advanced Photon Source, Argonne National Lab From: [email protected] [[email protected]] on behalf of l123173 [[email protected]]
Sent: Wednesday, August 31, 2016 8:17 AM To: [email protected] Subject: macro value Hi all,
After I started the IOC and 4motor_form.opi ( ${MOTOR}/motorApp/op/opi ) in CSS, the pv contain "$(P)$(M) ,$(P)$(M1), $(P)$(M2)" all disconnetcted. But IOC start up successfully. And when I changed the pv name to IOC:m2, it connected. why does other contain $(P)$(M) disconnected. dbl list was like these: epics> dbl IOC:4 IOC:m2 IOC:m3 IOC:m4 KOZ:m1 ******* the st.cmd file was ( part of st.cmd file): dbLoadDatabase("$(TOP)/dbd/WithAsyn.dbd") WithAsyn_registerRecordDeviceDriver(pdbbase) dbLoadTemplate("motor.substitutions") drvAsynSerialPortConfigure("serial","/dev/ttyS0",0,0,0) ... ****** and the motor.substitutions was: 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)", mm, 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)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} {IOC:, 4, "m$(N)", "SC-800", 0, 3, "motor $(N)", degrees, Pos, 1, .1, .2, 0, 1, .2, 0.01, 5, 100, -100, ""} } Thanks, Li xing
|