tlg_max_cycle_length_c

	status.i4.v = tlg_max_cycle_length_c(machine.e.v, event.i4.v,
					     max_cycle_len.r4.r
					     [,source.e.v])

	This routine calculates the maximum cycle length from a specified
	event to the next event for the specified machine.

	machine		desired machine
			(TlgUti::TLG_BOOSTER	-> Booster,
			 TlgUti::TLG_MI		-> Main Injector,
			 TlgUti::TLG_TEVATRON	-> Tevatron,
			 TlgUti::TLG_ACCUMULATOR-> Accumulator,
			 TlgUti::TLG_DEBUNCHER	-> Debuncher,
			 TlgUti::TLG_RECYCLER	-> Recycler,
			 TlgUti::TLG_SWITCHYARD	-> Switchyard,
			 TlgUti::TLG_NUMI	-> NuMI,
			 TlgUti::TLG_MTA	-> MTA)
	event		event for maximum cycle length calculation
			(If the value TlgUti::TLG_EVENT_ALL is specified, the
			maximum cycle length for this machine will be
			returned.) (constants are in tclk_events)
	max_cycle_len	returned maximum cycle length
	source		optional. Desired source for the timeline data
			(TlgUti::Oper	 -> Active timeline front end (Default),
			 TlgUti::Test -> Test timeline front end)

	This function returns ACNET status values as follows:

	OK			success
	DIO_NO_SUCH		requested event not found in the TLG table
	CLIB_TIMEOUT		DPM returned DPM_PEND status.
	DIO_xxx			failure reading TLG module

	This function requires the following include files:

	tlguti_h, tclk_events_h, cbslib_h, acnet_errors_h

	Related functions:

	tlg_min_cycle_length_c, tlg_cycle_length, tlg_supercycle_length,
	tlg_event_times_c, tlg_get_reset_info_c

	C/C++ usage:

	TlgUti::machine_t	machine = TlgUti::TLG_MR;
	int			event = EVENT_MR_RESET_PBAR_PROD;
	float			max_cycle_len;

	int status = tlg_max_cycle_length_c(machine,event,&max_cycle_len);