power_leads_off_c

	status.i4.v = power_leads_off_c(location.i4.v, type.i4.v
					[,check_tev.i4.v])

	This routine turns off the requested Tevatron power lead control
	valves.

	location	which valve locations are desired
			(LEAD_ALL -> all locations,
			 LEAD_RING -> all standard locations,
			 LEAD_B0_HIGH_CURR -> B0 low beta high current PS leads,
			 LEAD_B0_MED_CURR -> B0 low beta medium current PS
					     leads,
			 LEAD_B0_LOW_CURR -> B0 low beta low current PS leads,
			 LEAD_D0_HIGH_CURR -> D0 low beta high current PS leads,
			 LEAD_D0_MED_CURR -> D0 low beta medium current PS
					     leads,
			 LEAD_D0_LOW_CURR -> D0 low beta low current PS leads)
	type		type of leads
			(LEAD_BOTH -> high and low energy leads,
			 LEAD_LOW -> low energy leads,
			 LEAD_HIGH -> high energy leads)
	[check_tev]	check Tevatron ramp current before turning off
			power lead flows (If Tevatron ramp current is out
			of range to turn off any requested lead flows,
			a value of CBS_NOTENB is returned, and no lead flows
			are turned off.)
			(TRUE -> check Tevatron current (default),
			 FALSE -> ignore Tevatron current)

	This function returns ACNET status values as follows:

	OK			success
	CBS_NOTENB		invalid request for current ramp state
	DIO_xxx			failed in accessing lead flows

	This function requires the following include files:

	ul_cbsaux_h:auxlib_device_h, cnsparam_h, acnet_errors_h

	Related functions:

	check_power_leads_c, power_leads_on_c

	C/C++ usage:

	int	status;
	int	location = LEAD_ALL;
	int	type = LEAD_BOTH;
	int	check_tev = TRUE;

	status = power_leads_off_c(location,type,check_tev);