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