bpm_query

	status.i4.v = bpm_query(num_horz.i4.r [,num_vert.i4.r]
				[,ortho_plane.i4.v] [,data_view.u4.v])

	This routine returns the number of BPM position values for
	the currently selected machine.  See bpm_machine_c.

	num_horz	returned number of horizontal positions
			(A value of NULL can be passed for this argument
			 if this value is not needed.)
	[num_vert]	returned number of vertical positions
			(A value of NULL can be passed for this argument
			 if this value is not needed.) (default is NULL)
	[ortho_plane]	plane selection (only used for BPM_MAIN_INJECTOR)
			(BPM_MODE_NORMAL -> return names for the normal plane
					    (default),
			 BPM_MODE_ORTHOGONAL -> return names for the
						orthogonal plane,
			 BPM_MODE_CURRENT -> return names for the currently
					     selected plane)
	[data_view]	data view requested which may result in data being
			returned for multiple machines
			(BPM_VIEW_DEFAULT -> single machine view (default),
			 BPM_VIEW_P1_ONLY -> P1 Line only (P1 Line),
			 BPM_VIEW_P1_P2 -> P1 and P2 lines (P1 Line),
			 BPM_VIEW_P1_P2_M1 -> P1, P2, and M1 lines (P1 Line),
			 BPM_VIEW_P1_P2_M1_M3 -> P1, P2, M1, amd M3 lines
						 (P1 Line),
			 BPM_VIEW_P1_P2_P3 -> P1, P2, and P3 lines (P1 Line),
			 BPM_VIEW_M1_ONLY -> M1 Line only (M1 Line),
			 BPM_VIEW_M1_M3 -> M1 and M3 lines (M1 Line))

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid plane mode or data view passed
	SQL_xxx			error reading BPM configuration information

	This function requires the following include files:

	ul_cbsaux/bpmuti.h, acnet_errors_h

	Related functions:

	bpm_machine_c, bpm_get_names, bpm_name_to_index_c, bpm_get_data_c,
	bpm_get_intensity_c

	C/C++ usage:

	int	status;
	int	num_horz;
	int	num_vert;
	int	ortho_plane = BPM_MODE_NORMAL;
	unsigned int	data_view = BPM_VIEW_DEFAULT;

	status = bpm_query(&num_horz,&num_vert,ortho_plane,data_view);