#
# motor calibration support for WIRE:DMP1:696
#

#
# Causes Zero calibration point to be set manually.
#
record( bo, "WIRE:DMP1:696:ZEROSET")
	{
	field( DESC, "WSDUMP Manual Zero Reset")
        field( ASG,  "WIREADMIN")
	field( VAL, "0")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Causes automatic limit finding and subsequent zero midpoint to be found
#
record( bo, "WIRE:DMP1:696:FINDZERO")
	{
	field( DESC, "WSDUMP Auto Find Zero")
        field( ASG,  "WIREADMIN")
	field( VAL, "0")
        field( SCAN, "Passive")
        field( PINI, "YES")
        field( ONAM, "Find Zero")
        field( ZNAM, "Cancel")
	}

#
# Start sweep, in direction indicated by
# CALDIRECTION, to measure motor step vs. LVDT
#
record( bo, "WIRE:DMP1:696:STARTCALPROF")
	{
	field( DESC, "WSDUMP Start Dist. Cal.")
        field( ASG,  "WIREADMIN")
	field( VAL, "0")
        field( SCAN, "Passive")
        field( PINI, "YES")
        field( ONAM, "Start")
        field( ZNAM, "Cancel")
	}

#
# Direction of calibration; 0 means move from inner to outer limit.
#
record( bo, "WIRE:DMP1:696:CALDIRECTION")
	{
	field( DESC, "WSDUMP Cal. Direction")
        field( ASG,  "WIREADMIN")
	field( VAL, "0")
        field( SCAN, "Passive")
        field( PINI, "YES")
        field( ONAM, "towards Beam")
        field( ZNAM, "from Beam")
	}

#
# Distance in microns to step with each calibration measurement
#
record( ao, "WIRE:DMP1:696:CALSTEPSIZE")
	{
	field( DESC, "WSDUMP Calib Increment")
        field( ASG,  "WIREADMIN")
	field( VAL, "630")
	field( EGU, "microns")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Distance to back away from limit switches before
# defining the soft limits to use for motion
#
record( ao, "WIRE:DMP1:696:CALSOFTLIM")
	{
	field( DESC, "WSDUMP Back-off distance")
        field( ASG,  "WIREADMIN")
	field( VAL, "1500")
	field( EGU, "microns")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Speed at which limit switches are found.  Moving at
# normal speeds may cause step loss when switches are met.
#
record( ao, "WIRE:DMP1:696:CALSLOWVEL")
	{
	field( DESC, "WSDUMP Switch finder Speed")
        field( ASG,  "WIREADMIN")
	field( VAL, "1500")
	field( EGU, "microns")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Distance required to move from the midpoint between
# limit switches until the physical measured zeropoint
# is reached.  Typically based on mechanical design
# diagrams and physical measurements from fiducial marks.
# This value is added to the midpoint, so the definition
# of upper and lower limit is important.
#
record( ao, "WIRE:DMP1:696:CALMIDOFFSET")
	{
	field( DESC, "WSDUMP Midpoint Offset")
        field( ASG,  "WIREADMIN")
	field( VAL, "1994")
	field( EGU, "microns")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Theoretical total travel distance, over
# which the associated device could move.
# Used for sanity checks at calibration time.
#
record( ao, "WIRE:DMP1:696:CALTOTTRAV")
	{
	field( DESC, "WSDUMP Max Total Travel")
        field( ASG,  "WIREADMIN")
	field( VAL, "63500")
	field( EGU, "microns")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Delay time between motion stop and LVDT readout during calibration
#
record( ao, "WIRE:DMP1:696:CALDELAYTIME")
	{
	field( DESC, "WSDUMP Calib Delay Time")
        field( ASG,  "WIREADMIN")
	field( VAL, "1.2")
	field( EGU, "seconds")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Calibration Percent complete for display to user
#
record( ao, "WIRE:DMP1:696:CALPROGRESS")
	{
	field( DESC, "WSDUMP Calib Progress")
        field( ASG,  "WIREADMIN")
	field( VAL, "0")
	field( EGU, "percent")
        field( HOPR, "100")
        field( LOPR, "0")
        field( PREC, "0")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Message indicating current state of calibration
#
record( stringout, "WIRE:DMP1:696:CALTEXT")
	{
	field( DESC, "WSDUMP Calib Status")
        field( ASG,  "WIREADMIN")
	field( VAL, "NOT Calibrating")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}

#
# Serial Number of WSDUMP Controlled Motion Assembly
#
record( stringout, "WIRE:DMP1:696:SERIALNUM")
	{
	field( DESC, "WSDUMP Serial Number")
        field( ASG,  "WIREADMIN")
	field( VAL, "1075")
        field( SCAN, "Passive")
        field( PINI, "YES")
	}
