#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(ao, USEG:LBNL_MMF:1:Desired) {
  field(DESC, "Desired gap")
  field(FLNK, "USEG:LBNL_MMF:1:TopDesired")
  field(PREC, "4")
  field(EGU, "mm")
  field(DRVL, "7.2")
  field(LOPR, "7.2")
  field(PINI, "Yes")
  info(autosaveFields_pass0, "VAL")
}

record(ao, USEG:LBNL_MMF:1:TopDesired) {
  field(DESC, "Top motor desired position")
  field(FLNK, "USEG:LBNL_MMF:1:BottomDesired")
  field(DOL, "USEG:LBNL_MMF:1:Desired")
  field(OMSL, "closed_loop")
  field(PREC, "4")
  field(EGU, "mm")
  field(LOPR, "7.2")
  info(autosaveFields_pass0, "VAL")
}

record(calc, USEG:LBNL_MMF:1:BottomDesired) {
  field(DESC, "Bottom motor desired")
  field(CALC, "B+((A-B)/2)")
  field(INPA, "USEG:LBNL_MMF:1:Desired")
  field(INPB, "Z:ENCODER")
  field(EGU, "mm")
  field(PREC, "4")
  field(LOPR, "7.2")
  info(autosaveFields_pass0, "VAL")
}

record(bo, USEG:LBNL_MMF:1:GO) {
  field(DESC, "Set Gap")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

record(bo, USEG:LBNL_MMF:1:STOP) {
  field(DESC, "STOP")
  field(VAL, "0")
  field(SCAN, "Passive")
}

#! Further lines contain data used by VisualDCT
#! View(1959,1763,1.0)
#! Record(USEG:LBNL_MMF:1:Desired,2220,1986,0,1,"USEG:LBNL_MMF:1:Desired")
#! Field("USEG:LBNL_MMF:1:Desired.FLNK",16777215,1,"USEG:LBNL_MMF:1:Desired.FLNK")
#! Link("USEG:LBNL_MMF:1:Desired.FLNK",USEG:LBNL_MMF:1:TopDesired)
#! Field("USEG:LBNL_MMF:1:Desired.VAL",16777215,1,"USEG:LBNL_MMF:1:Desired.VAL")
#! Record(USEG:LBNL_MMF:1:TopDesired,2520,2006,0,0,"USEG:LBNL_MMF:1:TopDesired")
#! Field("USEG:LBNL_MMF:1:TopDesired.DOL",16777215,0,"USEG:LBNL_MMF:1:TopDesired.DOL")
#! Link("USEG:LBNL_MMF:1:TopDesired.DOL","USEG:LBNL_MMF:1:Desired.VAL")
#! Field("USEG:LBNL_MMF:1:TopDesired.FLNK",16777215,1,"USEG:LBNL_MMF:1:TopDesired.FLNK")
#! Link("USEG:LBNL_MMF:1:TopDesired.FLNK",USEG:LBNL_MMF:1:BottomDesired)
#! Record(USEG:LBNL_MMF:1:BottomDesired,2800,2106,0,0,"USEG:LBNL_MMF:1:BottomDesired")
#! Field("USEG:LBNL_MMF:1:BottomDesired.INPA",16777215,0,"USEG:LBNL_MMF:1:BottomDesired.INPA")
#! Link("USEG:LBNL_MMF:1:BottomDesired.INPA","USEG:LBNL_MMF:1:Desired.VAL")
#! Field("USEG:LBNL_MMF:1:BottomDesired.INPB",16777215,0,"USEG:LBNL_MMF:1:BottomDesired.INPB")
#! Record(USEG:LBNL_MMF:1:GO,2560,2328,0,1,"USEG:LBNL_MMF:1:GO")
#! Record(USEG:LBNL_MMF:1:STOP,20,22,0,0,"USEG:LBNL_MMF:1:STOP")
