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


#
# Wire Scanner Database Entries for WIRE:B025:100
#
#
# Start or Stop Scanning WIRE:B025:100
#
record(bo, "WIRE:B025:100:STARTSCAN") {
  field(DESC, "Start Wire Scan with WS31")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "Scanning")
  field(ZNAM, "Scan Stopped")
}

#
# Normally scanning moves from inner position to outer
# position, against the force of the vacuum.  If this
# PV is set to true, then WIRE:B025:100
# will scan from the outer to inner position, moving
# with the force of the vacuum.  The scanner is expected
# to provide best results when moving against the force
# of the vacuum.
#
record(bo, "WIRE:B025:100:SCANTOCENTER") {
  field(DESC, "WS31 will scan inwards")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "Scan to Center")
  field(ZNAM, "Scan from Center")
  info(autosaveFields, "VAL")
}

#
# Angle of WIRE:B025:100 from beam's point of view
#
record(ao, "WIRE:B025:100:INSTALLANGLE") {
  field(DESC, "Orientation of WS31")
  field(ASG, "WIREADMIN")
  field(EGU, "degrees")
  field(VAL, "-45")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# Repeatability of WIRE:B025:100 when doing a wire scan.
# If the motion returns to the original LVDT-measured position, within
# POSNTHRESH microns, the scan is considered successful.  If not, then
# RETRIES number of scans (in total) will be attempted.
#
record(ao, "WIRE:B025:100:POSNTHRESH") {
  field(DESC, "WS31 Position Deadband")
  field(ASG, "WIREUSER")
  field(EGU, "microns")
  field(VAL, "1000")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# Calculated time for wire scan; actual time that wire is spent moving.
#
record(ao, "WIRE:B025:100:SCANTIME") {
  field(DESC, "WS31 Calc. Scan Time")
  field(ASG, "WIREUSER")
  field(EGU, "seconds")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#
# The most recent scan WIRE:B025:100
# was considered to have successfully moved.
#
record(mbbo, "WIRE:B025:100:HADSUCCESS") {
  field(DESC, "WS31 Scan Successful")
  field(ASG, "$WIREUSER")
  field(OMSL, "supervisory")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(DTYP, "Raw Soft Channel")
  field(NOBT, "32")
  field(ZRST, "No Scan Attempt")
  field(ZRVL, "0")
  field(ONST, "Scan Successful")
  field(ONVL, "1")
  field(TWST, "Scan Failed")
  field(TWVL, "2")
  field(PINI, "YES")
}

#
# The total number of scans to be done by WIRE:B025:100
# for a given scan request; if the scanner motion does not return
# to POSNTHRESH microns of where it started, then a retry is made.
#
record(ao, "WIRE:B025:100:RETRIES") {
  field(DESC, "WS31 Retries to Do")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The current retry attempt of WIRE:B025:100 to
# perform a scan.  Up to RETRIES attempts will be made, and this
# value indicates which attempt is currently underway.
#
record(ao, "WIRE:B025:100:CURRENTRETRY") {
  field(DESC, "WS31 Current Retry Count")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#
# Does WIRE:B025:100 Have a Working X Wire?
#
record(bo, "WIRE:B025:100:HASXWIRE") {
  field(DESC, "Is X Wire Avail. on WS31")
  field(ASG, "WIREADMIN")
  field(VAL, "1")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "X Wire is Usable")
  field(ZNAM, "X Wire NOT Usable")
  info(autosaveFields, "VAL")
}

#
# Will the X Wire from WIRE:B025:100 be Used?
#
record(bo, "WIRE:B025:100:USEXWIRE") {
  field(DESC, "Is X Wire Used on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "1")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "X Wire Selected")
  field(ZNAM, "X Wire NOT Selected")
  info(autosaveFields, "VAL")
}

#
# Distance of WIRE:B025:100 X Wire from beam centerline,
# when motor is at the 0 position.  The U Wire intersecting with the
# beam centerline is defined as 0.
#
record(ao, "WIRE:B025:100:XWIREOFFSET") {
  field(DESC, "Offset of WS31 X Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "15500")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The location at which the X Wire can be positioned to
# start a scan in pull-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:XWIREOUTER") {
  field(DESC, "Outer X on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "17500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

#
# The location at which the X Wire can be positioned to
# start a scan in push-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:XWIREINNER") {
  field(DESC, "Inner X on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "13500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

#
# Does WIRE:B025:100 Have a Working Y Wire?
#
record(bo, "WIRE:B025:100:HASYWIRE") {
  field(DESC, "Is Y Wire Avail. on WS31")
  field(ASG, "WIREADMIN")
  field(VAL, "1")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "Y Wire is Usable")
  field(ZNAM, "Y Wire NOT Usable")
  info(autosaveFields, "VAL")
}

#
# Will the Y Wire from WIRE:B025:100 be Used?
#
record(bo, "WIRE:B025:100:USEYWIRE") {
  field(DESC, "Is Y Wire Used on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "Y Wire Selected")
  field(ZNAM, "Y Wire NOT Selected")
  info(autosaveFields, "VAL")
}

#
# Distance of WIRE:B025:100 Y Wire from beam centerline,
# when motor is at the 0 position.  The U Wire intersecting with the
# beam centerline is defined as 0.
#
record(ao, "WIRE:B025:100:YWIREOFFSET") {
  field(DESC, "Offset of WS31 Y Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "-15500")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The location at which the Y Wire can be positioned to
# start a scan in pull-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:YWIREOUTER") {
  field(DESC, "Outer Y on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "-13500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

#
# The location at which the Y Wire can be positioned to
# start a scan in push-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:YWIREINNER") {
  field(DESC, "Inner Y on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "-17500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

# Does WIRE:B025:100 Have a Working U (diagonal) Wire?
#
record(bo, "WIRE:B025:100:HASUWIRE") {
  field(DESC, "Is U Wire Avail. on WS31")
  field(ASG, "WIREADMIN")
  field(VAL, "1")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "U Wire is Usable")
  field(ZNAM, "U Wire NOT Usable")
  info(autosaveFields, "VAL")
}

#
# Will the U Wire from WIRE:B025:100 be Used?
#
record(bo, "WIRE:B025:100:USEUWIRE") {
  field(DESC, "Is U Wire Used on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(ONAM, "U Wire Selected")
  field(ZNAM, "U Wire NOT Selected")
  info(autosaveFields, "VAL")
}

#
# Distance of WIRE:B025:100 U Wire from beam centerline,
# when motor is at the 0 position.  The U Wire intersecting with the
# beam centerline is defined as 0.
#
record(ao, "WIRE:B025:100:UWIREOFFSET") {
  field(DESC, "Offset of WS31 U Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The location at which the U Wire can be positioned to
# start a scan in pull-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:UWIREOUTER") {
  field(DESC, "Outer U on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "1800")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

#
# The location at which the U Wire can be positioned to
# start a scan in push-through-beam mode on WIRE:B025:100
#
record(longout, "WIRE:B025:100:UWIREINNER") {
  field(DESC, "Inner U on WS31")
  field(ASG, "WIREUSER")
  field(VAL, "-1100")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32142")
  field(DRVL, "-28154")
  field(HOPR, "32142")
  field(LOPR, "-28154")
  info(autosaveFields, "VAL")
}

#
# The position at which the current scan will start, set to
# the value of :XWIREOUTER, :YWIREOUTER or UWIREOUTER if in
# pull-through-beam mode, or set to :XWIREINNER, :YWIREINNER
# or UWIREINNER if in push-through-beam mode, for WIRE:B025:100
#
record(ao, "WIRE:B025:100:SCANPOSSTART") {
  field(DESC, "WS31 Wire Start Pos")
  field(ASG, "WIREUSER")
  field(VAL, "13500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The position at which the current scan will stop, set to
# the value of :XWIREOUTER, :YWIREOUTER or UWIREOUTER if in
# push-through-beam mode, or set to :XWIREINNER, :YWIREINNER
# or UWIREINNER if in pull-through-beam mode, for WIRE:B025:100
#
record(ao, "WIRE:B025:100:SCANPOSSTOP") {
  field(DESC, "WS31 Stop Position")
  field(ASG, "WIREUSER")
  field(VAL, "17500")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The number of beam pulses which WIRE:B025:100
# will intercept as it moves across the total range of travel.
# This is typically selected by the user.
#
record(ao, "WIRE:B025:100:SCANPULSES") {
  field(DESC, "Pulses needed by WS31")
  field(ASG, "WIREUSER")
  field(VAL, "100")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The time to delay between motion stop and position readout
#
record(ao, "WIRE:B025:100:SCANDELAY") {
  field(DESC, "WS31 Position Delay Time")
  field(ASG, "WIREUSER")
  field(VAL, "1.5")
  field(EGU, "seconds")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# An indication of progress in terms of percent
# completion of WIRE:B025:100
#
record(ao, "WIRE:B025:100:SCANPROGRESS") {
  field(DESC, "Progress WS31 WireScan")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(EGU, "percent")
  field(HOPR, "100")
  field(LOPR, "0")
  field(PREC, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#
# A textual indication of the status of WIRE:B025:100
#
record(stringout, "WIRE:B025:100:SCANTEXT") {
  field(DESC, "WS31 Wire Scan Status")
  field(ASG, "WIREUSER")
  field(VAL, "READY to START Wire Scan")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#! Further lines contain data used by VisualDCT
#! View(-194,-11,0.7)
#! Record("WIRE:B025:100:STARTSCAN",20,23,0,0,"WIRE:B025:100:STARTSCAN")
#! Record("WIRE:B025:100:SCANTOCENTER",260,23,0,0,"WIRE:B025:100:SCANTOCENTER")
#! Record("WIRE:B025:100:INSTALLANGLE",500,18,0,0,"WIRE:B025:100:INSTALLANGLE")
#! Record("WIRE:B025:100:POSNTHRESH",740,18,0,0,"WIRE:B025:100:POSNTHRESH")
#! Record("WIRE:B025:100:SCANTIME",980,12,0,0,"WIRE:B025:100:SCANTIME")
#! Record("WIRE:B025:100:HADSUCCESS",1220,22,0,0,"WIRE:B025:100:HADSUCCESS")
#! Record("WIRE:B025:100:RETRIES",1460,12,0,0,"WIRE:B025:100:RETRIES")
#! Record("WIRE:B025:100:CURRENTRETRY",1700,12,0,0,"WIRE:B025:100:CURRENTRETRY")
#! Record("WIRE:B025:100:HASXWIRE",1940,23,0,0,"WIRE:B025:100:HASXWIRE")
#! Record("WIRE:B025:100:USEXWIRE",2180,23,0,0,"WIRE:B025:100:USEXWIRE")
#! Record("WIRE:B025:100:XWIREOFFSET",2420,18,0,0,"WIRE:B025:100:XWIREOFFSET")
#! Record("WIRE:B025:100:XWIREOUTER",20,19,0,0,"WIRE:B025:100:XWIREOUTER")
#! Record("WIRE:B025:100:XWIREINNER",260,19,0,0,"WIRE:B025:100:XWIREINNER")
#! Record("WIRE:B025:100:HASYWIRE",3140,23,0,0,"WIRE:B025:100:HASYWIRE")
#! Record("WIRE:B025:100:USEYWIRE",3380,23,0,0,"WIRE:B025:100:USEYWIRE")
#! Record("WIRE:B025:100:YWIREOFFSET",3620,18,0,0,"WIRE:B025:100:YWIREOFFSET")
#! Record("WIRE:B025:100:YWIREOUTER",3860,19,0,0,"WIRE:B025:100:YWIREOUTER")
#! Record("WIRE:B025:100:YWIREINNER",4100,19,0,0,"WIRE:B025:100:YWIREINNER")
#! Record("WIRE:B025:100:HASUWIRE",4340,23,0,0,"WIRE:B025:100:HASUWIRE")
#! Record("WIRE:B025:100:USEUWIRE",4580,23,0,0,"WIRE:B025:100:USEUWIRE")
#! Record("WIRE:B025:100:UWIREOFFSET",20,378,0,0,"WIRE:B025:100:UWIREOFFSET")
#! Record("WIRE:B025:100:UWIREOUTER",260,319,0,0,"WIRE:B025:100:UWIREOUTER")
#! Record("WIRE:B025:100:UWIREINNER",500,319,0,0,"WIRE:B025:100:UWIREINNER")
#! Record("WIRE:B025:100:SCANPOSSTART",740,378,0,0,"WIRE:B025:100:SCANPOSSTART")
#! Record("WIRE:B025:100:SCANPOSSTOP",980,378,0,0,"WIRE:B025:100:SCANPOSSTOP")
#! Record("WIRE:B025:100:SCANPULSES",1220,372,0,0,"WIRE:B025:100:SCANPULSES")
#! Record("WIRE:B025:100:SCANDELAY",1460,378,0,0,"WIRE:B025:100:SCANDELAY")
#! Record("WIRE:B025:100:SCANPROGRESS",1700,373,0,0,"WIRE:B025:100:SCANPROGRESS")
#! Record("WIRE:B025:100:SCANTEXT",1940,372,0,0,"WIRE:B025:100:SCANTEXT")
#
# Angle of WIRE:B025:100 from beam's point of view
#
record(ao, "WIRE:B025:100:XWIRESIZE") {
  field(DESC, "Diam. of WS31 x wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "20")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(ao, "WIRE:B025:100:YWIRESIZE") {
  field(DESC, "Diam. of WS31 y wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "20")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(ao, "WIRE:B025:100:UWIRESIZE") {
  field(DESC, "Diam. of WS31 u wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "20")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

