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


#
# Wire Scanner Database Entries for WIRE:IN20:531
#
#
# Start or Stop Scanning WIRE:IN20:531
#
record(bo, "WIRE:IN20:531:STARTSCAN") {
  field(DESC, "Start Wire Scan with WS01")
  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:IN20:531
# 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:IN20:531:SCANTOCENTER") {
  field(DESC, "WS01 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:IN20:531 from beam's point of view
#
record(ao, "WIRE:IN20:531:INSTALLANGLE") {
  field(DESC, "Orientation of WS01")
  field(ASG, "WIREADMIN")
  field(EGU, "degrees")
  field(VAL, "-45")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# Repeatability of WIRE:IN20:531 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:IN20:531:POSNTHRESH") {
  field(DESC, "WS01 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:IN20:531:SCANTIME") {
  field(DESC, "WS01 Calc. Scan Time")
  field(ASG, "WIREUSER")
  field(EGU, "seconds")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#
# The most recent scan WIRE:IN20:531
# was considered to have successfully moved.
#
record(mbbo, "WIRE:IN20:531:HADSUCCESS") {
  field(DESC, "WS01 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:IN20:531
# 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:IN20:531:RETRIES") {
  field(DESC, "WS01 Retries to Do")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

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

#
# Does WIRE:IN20:531 Have a Working X Wire?
#
record(bo, "WIRE:IN20:531:HASXWIRE") {
  field(DESC, "Is X Wire Avail. on WS01")
  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:IN20:531 be Used?
#
record(bo, "WIRE:IN20:531:USEXWIRE") {
  field(DESC, "Is X Wire Used on WS01")
  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:IN20:531 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:IN20:531:XWIREOFFSET") {
  field(DESC, "Offset of WS01 X Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "11278")
  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:IN20:531
#
record(longout, "WIRE:IN20:531:XWIREOUTER") {
  field(DESC, "Outer X on WS01")
  field(ASG, "WIREUSER")
  field(VAL, "12278")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32092")
  field(DRVL, "-28104")
  field(HOPR, "32092")
  field(LOPR, "-28104")
  info(autosaveFields, "VAL")
}

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

#
# Does WIRE:IN20:531 Have a Working Y Wire?
#
record(bo, "WIRE:IN20:531:HASYWIRE") {
  field(DESC, "Is Y Wire Avail. on WS01")
  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:IN20:531 be Used?
#
record(bo, "WIRE:IN20:531:USEYWIRE") {
  field(DESC, "Is Y Wire Used on WS01")
  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:IN20:531 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:IN20:531:YWIREOFFSET") {
  field(DESC, "Offset of WS01 Y Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "-17653")
  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:IN20:531
#
record(longout, "WIRE:IN20:531:YWIREOUTER") {
  field(DESC, "Outer Y on WS01")
  field(ASG, "WIREUSER")
  field(VAL, "-16653")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32092")
  field(DRVL, "-28104")
  field(HOPR, "32092")
  field(LOPR, "-28104")
  info(autosaveFields, "VAL")
}

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

# Does WIRE:IN20:531 Have a Working U (diagonal) Wire?
#
record(bo, "WIRE:IN20:531:HASUWIRE") {
  field(DESC, "Is U Wire Avail. on WS01")
  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:IN20:531 be Used?
#
record(bo, "WIRE:IN20:531:USEUWIRE") {
  field(DESC, "Is U Wire Used on WS01")
  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:IN20:531 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:IN20:531:UWIREOFFSET") {
  field(DESC, "Offset of WS01 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:IN20:531
#
record(longout, "WIRE:IN20:531:UWIREOUTER") {
  field(DESC, "Outer U on WS01")
  field(ASG, "WIREUSER")
  field(VAL, "1000")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32092")
  field(DRVL, "-28104")
  field(HOPR, "32092")
  field(LOPR, "-28104")
  info(autosaveFields, "VAL")
}

#
# The location at which the U Wire can be positioned to
# start a scan in push-through-beam mode on WIRE:IN20:531
#
record(longout, "WIRE:IN20:531:UWIREINNER") {
  field(DESC, "Inner U on WS01")
  field(ASG, "WIREUSER")
  field(VAL, "-1000")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32092")
  field(DRVL, "-28104")
  field(HOPR, "32092")
  field(LOPR, "-28104")
  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:IN20:531
#
record(ao, "WIRE:IN20:531:SCANPOSSTART") {
  field(DESC, "WS01 Wire Start Pos")
  field(ASG, "WIREUSER")
  field(VAL, "10278")
  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:IN20:531
#
record(ao, "WIRE:IN20:531:SCANPOSSTOP") {
  field(DESC, "WS01 Stop Position")
  field(ASG, "WIREUSER")
  field(VAL, "12278")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The number of beam pulses which WIRE:IN20:531
# will intercept as it moves across the total range of travel.
# This is typically selected by the user.
#
record(ao, "WIRE:IN20:531:SCANPULSES") {
  field(DESC, "Pulses needed by WS01")
  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:IN20:531:SCANDELAY") {
  field(DESC, "WS01 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:IN20:531
#
record(ao, "WIRE:IN20:531:SCANPROGRESS") {
  field(DESC, "Progress WS01 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:IN20:531
#
record(stringout, "WIRE:IN20:531:SCANTEXT") {
  field(DESC, "WS01 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:IN20:531:STARTSCAN",20,23,0,0,"WIRE:IN20:531:STARTSCAN")
#! Record("WIRE:IN20:531:SCANTOCENTER",260,23,0,0,"WIRE:IN20:531:SCANTOCENTER")
#! Record("WIRE:IN20:531:INSTALLANGLE",500,18,0,0,"WIRE:IN20:531:INSTALLANGLE")
#! Record("WIRE:IN20:531:POSNTHRESH",740,18,0,0,"WIRE:IN20:531:POSNTHRESH")
#! Record("WIRE:IN20:531:SCANTIME",980,12,0,0,"WIRE:IN20:531:SCANTIME")
#! Record("WIRE:IN20:531:HADSUCCESS",1220,22,0,0,"WIRE:IN20:531:HADSUCCESS")
#! Record("WIRE:IN20:531:RETRIES",1460,12,0,0,"WIRE:IN20:531:RETRIES")
#! Record("WIRE:IN20:531:CURRENTRETRY",1700,12,0,0,"WIRE:IN20:531:CURRENTRETRY")
#! Record("WIRE:IN20:531:HASXWIRE",1940,23,0,0,"WIRE:IN20:531:HASXWIRE")
#! Record("WIRE:IN20:531:USEXWIRE",2180,23,0,0,"WIRE:IN20:531:USEXWIRE")
#! Record("WIRE:IN20:531:XWIREOFFSET",2420,18,0,0,"WIRE:IN20:531:XWIREOFFSET")
#! Record("WIRE:IN20:531:XWIREOUTER",20,19,0,0,"WIRE:IN20:531:XWIREOUTER")
#! Record("WIRE:IN20:531:XWIREINNER",260,19,0,0,"WIRE:IN20:531:XWIREINNER")
#! Record("WIRE:IN20:531:HASYWIRE",3140,23,0,0,"WIRE:IN20:531:HASYWIRE")
#! Record("WIRE:IN20:531:USEYWIRE",3380,23,0,0,"WIRE:IN20:531:USEYWIRE")
#! Record("WIRE:IN20:531:YWIREOFFSET",3620,18,0,0,"WIRE:IN20:531:YWIREOFFSET")
#! Record("WIRE:IN20:531:YWIREOUTER",3860,19,0,0,"WIRE:IN20:531:YWIREOUTER")
#! Record("WIRE:IN20:531:YWIREINNER",4100,19,0,0,"WIRE:IN20:531:YWIREINNER")
#! Record("WIRE:IN20:531:HASUWIRE",4340,23,0,0,"WIRE:IN20:531:HASUWIRE")
#! Record("WIRE:IN20:531:USEUWIRE",4580,23,0,0,"WIRE:IN20:531:USEUWIRE")
#! Record("WIRE:IN20:531:UWIREOFFSET",20,378,0,0,"WIRE:IN20:531:UWIREOFFSET")
#! Record("WIRE:IN20:531:UWIREOUTER",260,319,0,0,"WIRE:IN20:531:UWIREOUTER")
#! Record("WIRE:IN20:531:UWIREINNER",500,319,0,0,"WIRE:IN20:531:UWIREINNER")
#! Record("WIRE:IN20:531:SCANPOSSTART",740,378,0,0,"WIRE:IN20:531:SCANPOSSTART")
#! Record("WIRE:IN20:531:SCANPOSSTOP",980,378,0,0,"WIRE:IN20:531:SCANPOSSTOP")
#! Record("WIRE:IN20:531:SCANPULSES",1220,372,0,0,"WIRE:IN20:531:SCANPULSES")
#! Record("WIRE:IN20:531:SCANDELAY",1460,378,0,0,"WIRE:IN20:531:SCANDELAY")
#! Record("WIRE:IN20:531:SCANPROGRESS",1700,373,0,0,"WIRE:IN20:531:SCANPROGRESS")
#! Record("WIRE:IN20:531:SCANTEXT",1940,372,0,0,"WIRE:IN20:531:SCANTEXT")
#! Generated by VisualDCT v2.5
#! DBDSTART
#! DBDEND


#
# Wire Scanner Database Entries for WIRE:IN20:741
#
#
# Start or Stop Scanning WIRE:IN20:741
#
record(bo, "WIRE:IN20:741:STARTSCAN") {
  field(DESC, "Start Wire Scan with WS04")
  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:IN20:741
# 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:IN20:741:SCANTOCENTER") {
  field(DESC, "WS04 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:IN20:741 from beam's point of view
#
record(ao, "WIRE:IN20:741:INSTALLANGLE") {
  field(DESC, "Orientation of WS04")
  field(ASG, "WIREADMIN")
  field(EGU, "degrees")
  field(VAL, "45")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# Repeatability of WIRE:IN20:741 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:IN20:741:POSNTHRESH") {
  field(DESC, "WS04 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:IN20:741:SCANTIME") {
  field(DESC, "WS04 Calc. Scan Time")
  field(ASG, "WIREUSER")
  field(EGU, "seconds")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
}

#
# The most recent scan WIRE:IN20:741
# was considered to have successfully moved.
#
record(mbbo, "WIRE:IN20:741:HADSUCCESS") {
  field(DESC, "WS04 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:IN20:741
# 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:IN20:741:RETRIES") {
  field(DESC, "WS04 Retries to Do")
  field(ASG, "WIREUSER")
  field(VAL, "0")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

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

#
# Does WIRE:IN20:741 Have a Working X Wire?
#
record(bo, "WIRE:IN20:741:HASXWIRE") {
  field(DESC, "Is X Wire Avail. on WS04")
  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:IN20:741 be Used?
#
record(bo, "WIRE:IN20:741:USEXWIRE") {
  field(DESC, "Is X Wire Used on WS04")
  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:IN20:741 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:IN20:741:XWIREOFFSET") {
  field(DESC, "Offset of WS04 X Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "11278")
  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:IN20:741
#
record(longout, "WIRE:IN20:741:XWIREOUTER") {
  field(DESC, "Outer X on WS04")
  field(ASG, "WIREUSER")
  field(VAL, "12278")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32179")
  field(DRVL, "-28191")
  field(HOPR, "32179")
  field(LOPR, "-28191")
  info(autosaveFields, "VAL")
}

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

#
# Does WIRE:IN20:741 Have a Working Y Wire?
#
record(bo, "WIRE:IN20:741:HASYWIRE") {
  field(DESC, "Is Y Wire Avail. on WS04")
  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:IN20:741 be Used?
#
record(bo, "WIRE:IN20:741:USEYWIRE") {
  field(DESC, "Is Y Wire Used on WS04")
  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:IN20:741 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:IN20:741:YWIREOFFSET") {
  field(DESC, "Offset of WS04 Y Wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "-17653")
  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:IN20:741
#
record(longout, "WIRE:IN20:741:YWIREOUTER") {
  field(DESC, "Outer Y on WS04")
  field(ASG, "WIREUSER")
  field(VAL, "-16653")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32179")
  field(DRVL, "-28191")
  field(HOPR, "32179")
  field(LOPR, "-28191")
  info(autosaveFields, "VAL")
}

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

# Does WIRE:IN20:741 Have a Working U (diagonal) Wire?
#
record(bo, "WIRE:IN20:741:HASUWIRE") {
  field(DESC, "Is U Wire Avail. on WS04")
  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:IN20:741 be Used?
#
record(bo, "WIRE:IN20:741:USEUWIRE") {
  field(DESC, "Is U Wire Used on WS04")
  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:IN20:741 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:IN20:741:UWIREOFFSET") {
  field(DESC, "Offset of WS04 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:IN20:741
#
record(longout, "WIRE:IN20:741:UWIREOUTER") {
  field(DESC, "Outer U on WS04")
  field(ASG, "WIREUSER")
  field(VAL, "1000")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32179")
  field(DRVL, "-28191")
  field(HOPR, "32179")
  field(LOPR, "-28191")
  info(autosaveFields, "VAL")
}

#
# The location at which the U Wire can be positioned to
# start a scan in push-through-beam mode on WIRE:IN20:741
#
record(longout, "WIRE:IN20:741:UWIREINNER") {
  field(DESC, "Inner U on WS04")
  field(ASG, "WIREUSER")
  field(VAL, "-1000")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  field(DRVH, "32179")
  field(DRVL, "-28191")
  field(HOPR, "32179")
  field(LOPR, "-28191")
  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:IN20:741
#
record(ao, "WIRE:IN20:741:SCANPOSSTART") {
  field(DESC, "WS04 Wire Start Pos")
  field(ASG, "WIREUSER")
  field(VAL, "10278")
  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:IN20:741
#
record(ao, "WIRE:IN20:741:SCANPOSSTOP") {
  field(DESC, "WS04 Stop Position")
  field(ASG, "WIREUSER")
  field(VAL, "12278")
  field(EGU, "microns")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#
# The number of beam pulses which WIRE:IN20:741
# will intercept as it moves across the total range of travel.
# This is typically selected by the user.
#
record(ao, "WIRE:IN20:741:SCANPULSES") {
  field(DESC, "Pulses needed by WS04")
  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:IN20:741:SCANDELAY") {
  field(DESC, "WS04 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:IN20:741
#
record(ao, "WIRE:IN20:741:SCANPROGRESS") {
  field(DESC, "Progress WS04 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:IN20:741
#
record(stringout, "WIRE:IN20:741:SCANTEXT") {
  field(DESC, "WS04 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:IN20:741:STARTSCAN",20,23,0,0,"WIRE:IN20:741:STARTSCAN")
#! Record("WIRE:IN20:741:SCANTOCENTER",260,23,0,0,"WIRE:IN20:741:SCANTOCENTER")
#! Record("WIRE:IN20:741:INSTALLANGLE",500,18,0,0,"WIRE:IN20:741:INSTALLANGLE")
#! Record("WIRE:IN20:741:POSNTHRESH",740,18,0,0,"WIRE:IN20:741:POSNTHRESH")
#! Record("WIRE:IN20:741:SCANTIME",980,12,0,0,"WIRE:IN20:741:SCANTIME")
#! Record("WIRE:IN20:741:HADSUCCESS",1220,22,0,0,"WIRE:IN20:741:HADSUCCESS")
#! Record("WIRE:IN20:741:RETRIES",1460,12,0,0,"WIRE:IN20:741:RETRIES")
#! Record("WIRE:IN20:741:CURRENTRETRY",1700,12,0,0,"WIRE:IN20:741:CURRENTRETRY")
#! Record("WIRE:IN20:741:HASXWIRE",1940,23,0,0,"WIRE:IN20:741:HASXWIRE")
#! Record("WIRE:IN20:741:USEXWIRE",2180,23,0,0,"WIRE:IN20:741:USEXWIRE")
#! Record("WIRE:IN20:741:XWIREOFFSET",2420,18,0,0,"WIRE:IN20:741:XWIREOFFSET")
#! Record("WIRE:IN20:741:XWIREOUTER",20,19,0,0,"WIRE:IN20:741:XWIREOUTER")
#! Record("WIRE:IN20:741:XWIREINNER",260,19,0,0,"WIRE:IN20:741:XWIREINNER")
#! Record("WIRE:IN20:741:HASYWIRE",3140,23,0,0,"WIRE:IN20:741:HASYWIRE")
#! Record("WIRE:IN20:741:USEYWIRE",3380,23,0,0,"WIRE:IN20:741:USEYWIRE")
#! Record("WIRE:IN20:741:YWIREOFFSET",3620,18,0,0,"WIRE:IN20:741:YWIREOFFSET")
#! Record("WIRE:IN20:741:YWIREOUTER",3860,19,0,0,"WIRE:IN20:741:YWIREOUTER")
#! Record("WIRE:IN20:741:YWIREINNER",4100,19,0,0,"WIRE:IN20:741:YWIREINNER")
#! Record("WIRE:IN20:741:HASUWIRE",4340,23,0,0,"WIRE:IN20:741:HASUWIRE")
#! Record("WIRE:IN20:741:USEUWIRE",4580,23,0,0,"WIRE:IN20:741:USEUWIRE")
#! Record("WIRE:IN20:741:UWIREOFFSET",20,378,0,0,"WIRE:IN20:741:UWIREOFFSET")
#! Record("WIRE:IN20:741:UWIREOUTER",260,319,0,0,"WIRE:IN20:741:UWIREOUTER")
#! Record("WIRE:IN20:741:UWIREINNER",500,319,0,0,"WIRE:IN20:741:UWIREINNER")
#! Record("WIRE:IN20:741:SCANPOSSTART",740,378,0,0,"WIRE:IN20:741:SCANPOSSTART")
#! Record("WIRE:IN20:741:SCANPOSSTOP",980,378,0,0,"WIRE:IN20:741:SCANPOSSTOP")
#! Record("WIRE:IN20:741:SCANPULSES",1220,372,0,0,"WIRE:IN20:741:SCANPULSES")
#! Record("WIRE:IN20:741:SCANDELAY",1460,378,0,0,"WIRE:IN20:741:SCANDELAY")
#! Record("WIRE:IN20:741:SCANPROGRESS",1700,373,0,0,"WIRE:IN20:741:SCANPROGRESS")
#! Record("WIRE:IN20:741:SCANTEXT",1940,372,0,0,"WIRE:IN20:741:SCANTEXT")
#
# Angle of WIRE:IN20:531 from beam's point of view
#
record(ao, "WIRE:IN20:531:XWIRESIZE") {
  field(DESC, "Diam. of WS01 x wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "20")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

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

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

#
# Angle of WIRE:IN20:741 from beam's point of view
#
record(ao, "WIRE:IN20:741:XWIRESIZE") {
  field(DESC, "Diam. of WS04 x wire")
  field(ASG, "WIREADMIN")
  field(EGU, "microns")
  field(VAL, "20")
  field(SCAN, "Passive")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

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

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

