td_query

	status.i4.v = td_query(table_di.i4.v, table_type.i4.v, num_tables.i4.r,
			       num_slots.i4.r, slot_size.i4.r, slot_type.i4.r)

	This routine returns information on a specified rampcard's table
	and composition.  This routine presently supports the following
	modules: C164, C165, C265, C365, C453, C460, C465, C466, C467,
	C468, C473, V473, and C475.  A value of NULL can be passed for
	any returned arguments that are not needed.

	table_di	device index of table
	table_type	type of table (specified by constants in 'diolib'
			include file, under "table device")
	num_tables	returned maximum number of tables allowed
	num_slots	returned maximum number of slots allowed
	slot_size	returned size (in bytes) of each slot
	slot_type	returned composition of a slot
			(SLOT_WHOLE -> independent and dependent values,
			 SLOT_DEPENDENT -> dependent value,
			 SLOT_INDEPENDENT -> independent value,
			 FALSE -> not a ramp value)

	This function returns ACNET status values as follows:

	OK			success
	DIO_BADARG		passed device is not a table device or
				is not in the list of supported table devices
				or an invalid table type was passed
	DBM_xxx			error retrieving database information

	This function requires the following include files:

	cnsparam_h, diolib_h, acnet_errors_h

	Related functions:

	td_build(_c), td_read, td_set(_c), td_read_one(_c), td_set_one(_c),
	td_cancel

	C/C++ usage:

	int	status;
	int	table_di = 7085;
	int	table_type = MDAT_GTABLE;
	int	num_tables;
	int	num_slots;
	int	slot_size;
	int	slot_type;

	status = td_query(table_di,table_type,&num_tables,
			  &num_slots,&slot_size,&slot_type);