mecar_ramp_current_to_time (ul_mecarlib)

	num_times.i4.v = mecar_ramp_current_to_time(max_times.i4.v,
						    start_slot.i4.v,
						    current.r4.v,
						    time.r4a.r,
						    accel_state.i4a.r,
						    slot.i4a.r, ramp_data.s.r)

	This routine calculates the time(s) in a MECAR ramp that the
	current has a given value.  It will search for a maximum of
	"max_times" points from the specified first slot to the end
	of the ramp.

	max_times	maximum number of values to return
	start_slot	starting ramp slot number
	current		desired current in amps
	time		returned time or array of times in MECAR ramp in seconds
	accel_state	returned acceleration state or array of acceleration
			states
			(MECAR_ACCELERATION -> acceleration,
			 MECAR_DECELERATION -> deceleration,
			 MECAR_CAPTURE_DEPOSIT -> capture/deposit (DC))
			(Note: In the capture/deposit case, the time returned
			 is the start of a flat top.  The user can go further
			 to find end of the flat top using the returned slot
			 number.)
	ramp_data	MECAR ramp data (structure of type MECAR_RAMP_TABLE)

	This function returns status values as follows:

	0			invalid starting slot number or current passed
	num_times		number of times found

	This function requires the following include files:

	ul_mecarlib_h:mecarlib_h, acnet_errors_h

	Related functions:

	mecar_ramp_fit_current_to_time, mecar_ramp_time_to_current,
	mecar_get_ramp, mecar_get_crate, mecar_ramp_length