t_read_control (ul_tecar)


   Synopsis:

      This function is called to read the present control value from
      the TECAR server.


   Declarations (FORTRAN):

        CHARACTER TECAR_SERVER*8 /'tecar-a2'/
        INTEGER*2 ISTAT, T_READ_CONTROL
        INTEGER*4 OUTPUT


   Declarations (ANSI C):

      #include "tecar.h"
      unsigned char TECAR_server[]="tecar-a2";
      short istat;
      unsigned int *output;
      short t_read_control ( unsigned char *const TECAR_server,
                             unsigned int * const output );


   Usage (FORTRAN):

 	ISTAT = T_READ_CONTROL ( TECAR_SERVER, OUTPUT )


   Usage (C):

      istat = t_read_control ( TECAR_server, output );


   Usage (VAX generic format):

      istat.w.w = t_read_control ( TECAR_server.ar.b, output.aw.l )


   Arguments:

      Input - readonly:

         TECAR_server	a character string which contains the Internet
                        name of the TECAR server. This name must be
                        resolvable via the Domain Name Service.
			This may be passed either as a pointer to a
		        null-terminated string, or by descriptor
			(under VMS only).


      Output - writeonly:

         output         an unsigned longword with bits set to indicate
                        the present control status
                        Bit(s)	Control Request
                        -----   -------------------
			31:16	undefined
			15	link diagnostic exception
			14:1	undefined
                        0	regulation request


      Returns:

         istat          the status return in ACNET format