# # Wire Scanner Database Entries for $(dev) # # # Start or Stop Scanning $(dev) # record(bo, "$(dev):STARTSCAN") { field(DESC, "Start Wire Scan with $(mad)") 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 $(dev) # 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, "$(dev):SCANTOCENTER") { field(DESC, "$(mad) will scan inwards") field(VAL, "0") field(SCAN, "Passive") field(PINI, "YES") field(ONAM, "Scan to Center") field(ZNAM, "Scan from Center") info(autosaveFields, "VAL") } # # Angle of $(dev) from beam's point of view # record(ao, "$(dev):INSTALLANGLE") { field(DESC, "Orientation of $(mad)") field(EGU, "degrees") field(VAL, "$(orient)") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # Repeatability of $(dev) when doing a wire scan. # If the motion returns to the original LVDT-measured position, within # POSNTHRESH $(units), the scan is considered successful. If not, then # RETRIES number of scans (in total) will be attempted. # record(ao, "$(dev):POSNTHRESH") { field(DESC, "$(mad) Position Deadband") field(EGU, "$(units)") field(VAL, "$(thresh)") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # Calculated time for wire scan; actual time that wire is spent moving. # record(ao, "$(dev):SCANTIME") { field(DESC, "$(mad) Calc. Scan Time") field(EGU, "seconds") field(VAL, "0") field(SCAN, "Passive") field(PINI, "YES") } # # The most recent scan $(dev) # was considered to have successfully moved. # record(mbbo, "$(dev):HADSUCCESS") { field(DESC, "$(mad) Scan Successful") 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 $(dev) # for a given scan request; if the scanner motion does not return # to POSNTHRESH $(units) of where it started, then a retry is made. # record(ao, "$(dev):RETRIES") { field(DESC, "$(mad) Retries to Do") field(VAL, "$(retries)") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # The current retry attempt of $(dev) to # perform a scan. Up to RETRIES attempts will be made, and this # value indicates which attempt is currently underway. # record(ao, "$(dev):CURRENTRETRY") { field(DESC, "$(mad) Current Retry Count") field(VAL, "0") field(SCAN, "Passive") field(PINI, "YES") } # # Does $(dev) Have a Working X Wire? # record(bo, "$(dev):HASXWIRE") { field(DESC, "Is X Wire Avail. on $(mad)") field(VAL, "$(hasx)") 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 $(dev) be Used? # record(bo, "$(dev):USEXWIRE") { field(DESC, "Is X Wire Used on $(mad)") field(VAL, "$(hasx)") field(SCAN, "Passive") field(PINI, "YES") field(ONAM, "X Wire Selected") field(ZNAM, "X Wire NOT Selected") info(autosaveFields, "VAL") } # # Distance of $(dev) 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, "$(dev):XWIREOFFSET") { field(DESC, "Offset of $(mad) X Wire") field(EGU, "$(units)") field(VAL, "$(xoffs)") 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 $(dev) # record(longout, "$(dev):XWIREOUTER") { field(DESC, "Outer X on $(mad)") field(VAL, "$(xout)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The location at which the X Wire can be positioned to # start a scan in push-through-beam mode on $(dev) # record(longout, "$(dev):XWIREINNER") { field(DESC, "Inner X on $(mad)") field(VAL, "$(xin)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The Park location at which the X Wire can be positioned to after complete moving # record(longout, "$(dev):XWIREPARKPOSN") { field(DESC, "Park Position X on $(mad)") # field(VAL, "0") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # Does $(dev) Have a Working Y Wire? # record(bo, "$(dev):HASYWIRE") { field(DESC, "Is Y Wire Avail. on $(mad)") field(VAL, "$(hasy)") 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 $(dev) be Used? # record(bo, "$(dev):USEYWIRE") { field(DESC, "Is Y Wire Used on $(mad)") 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 $(dev) 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, "$(dev):YWIREOFFSET") { field(DESC, "Offset of $(mad) Y Wire") field(EGU, "$(units)") field(VAL, "$(yoffs)") 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 $(dev) # record(longout, "$(dev):YWIREOUTER") { field(DESC, "Outer Y on $(mad)") field(VAL, "$(yout)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The location at which the Y Wire can be positioned to # start a scan in push-through-beam mode on $(dev) # record(longout, "$(dev):YWIREINNER") { field(DESC, "Inner Y on $(mad)") field(VAL, "$(yin)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The Park location at which the Y Wire can be positioned to after complete moving # record(longout, "$(dev):YWIREPARKPOSN") { field(DESC, "Park Position Y on $(mad)") # field(VAL, "0") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # Does $(dev) Have a Working U (diagonal) Wire? # record(bo, "$(dev):HASUWIRE") { field(DESC, "Is U Wire Avail. on $(mad)") field(VAL, "$(hasu)") 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 $(dev) be Used? # record(bo, "$(dev):USEUWIRE") { field(DESC, "Is U Wire Used on $(mad)") 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 $(dev) 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, "$(dev):UWIREOFFSET") { field(DESC, "Offset of $(mad) U Wire") field(EGU, "$(units)") 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 $(dev) # record(longout, "$(dev):UWIREOUTER") { field(DESC, "Outer U on $(mad)") field(VAL, "$(uout)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The location at which the U Wire can be positioned to # start a scan in push-through-beam mode on $(dev) # record(longout, "$(dev):UWIREINNER") { field(DESC, "Inner U on $(mad)") field(VAL, "$(uin)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # The Park location at which the U Wire can be positioned to after complete moving # record(longout, "$(dev):UWIREPARKPOSN") { field(DESC, "Park Position U on $(mad)") # field(VAL, "0") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") field(DRVH, "$(hilim)") field(DRVL, "$(lolim)") field(HOPR, "$(hilim)") field(LOPR, "$(lolim)") info(autosaveFields, "VAL DRVH DRVL HOPR LOPR") } # # 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 $(dev) # record(ao, "$(dev):SCANPOSSTART") { field(DESC, "$(mad) Wire Start Pos") field(VAL, "$(xin)") field(EGU, "$(units)") 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 $(dev) # record(ao, "$(dev):SCANPOSSTOP") { field(DESC, "$(mad) Stop Position") field(VAL, "$(xout)") field(EGU, "$(units)") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # The number of beam pulses which $(dev) # will intercept as it moves across the total range of travel. # This is typically selected by the user. # record(ao, "$(dev):SCANPULSES") { field(DESC, "Pulses needed by $(mad)") field(VAL, "$(pulses)") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # The time to delay between motion stop and position readout # record(ao, "$(dev):SCANDELAY") { field(DESC, "$(mad) Position Delay Time") field(VAL, "$(delay)") field(EGU, "seconds") field(SCAN, "Passive") field(PINI, "YES") info(autosaveFields, "VAL") } # # An indication of progress in terms of percent # completion of $(dev) # record(ao, "$(dev):SCANPROGRESS") { field(DESC, "Progress $(mad) WireScan") 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 $(dev) # record(stringout, "$(dev):SCANTEXT") { field(DESC, "$(mad) Wire Scan Status") field(VAL, "READY to START Wire Scan") field(SCAN, "Passive") field(PINI, "YES") } # # Is Motor enabled? # What is motor enabled: Motor torque is ON & Motor is Initialized # record(bi, "$(dev):MOTR_ENABLED_STS") { field(DESC, "Enabled") field(ZNAM, "OFF") field(ONAM, "ON") } record(calcout, "$(dev):CALC_ENABLED_STS") { field(DESC, "Check if enabled") field(CALC, "A&&B") field(INPA, "$(dev):MOTR_INIT_STS CP") field(INPB, "$(dev):MOTR_ON_STS CP") field(OUT, "$(dev):MOTR_ENABLED_STS PP") } record(bi, "$(dev):MOTR_INIT_STS") { field(DESC, "Init status") field(ZNAM, "Not Initialized") field(ONAM, "Initialized") } record(calcout, "$(dev):CALC_MOTIONACT_STS") { field(DESC, "Check motion active") field(CALC, "A=0?1:0") field(INPA, "$(dev):MOTR_BKHFMOTION_STS CP") field(OUT, "$(dev):MOTR_MOTION_ACT_STS PP") } record(bi, "$(dev):MOTR_MOTION_ACT_STS") { field(DESC, "Motion Active") field(ZNAM, "Not Active") field(ONAM, "Active") }