	The following subroutines are available in the ONLINE library:
 
	Data acquisition routines
 
C2SET	C1SET	C2SETB	C2I	POUTCS	BUTSET
 
	General CAMAC routines
 
CAMAC	FCNA	CRATT	CAMATT
 
 
	NOTE:	All command lists must be located in the ROOT of an
overlaid program.  If data acquisition routines are used then C2I must
also be in the ROOT.  All of these routines require that the TASK which
uses them must be built for partition MBPAR.
	For more information type: HELP ONLINE subroutine
2	C2SET
 
CALL	C2SET(LUN,CLIST,NBUFF,ISIZE,LUNOUT,IOPOUT,LUNANL,IOPANL,IER)
	LUN	= Logical unit to use in taking data
	CLIST	= Command list to execute (must be an EXTERNAL)
	NBUF	= Number of buffers to use
	ISIZE	= Size of buffer data area
	LUNOUT	= Logical unit number for output (MT:)
	IOPOUT	= Output option
		= 0	No output
		  1	Total - all data goes to tape
		  2	Partial - only unanalyzed data goes to tape
	LUNANL	= (parameter is ignored for now)
	IOPANL	= Analysis option
		  0	No analysis
		  1	Total - all data is anayzed
		  2	Partial - data is analyzed if time permits
	IER	= 1	if no errors
2	C1SET
 
CALL	C1SET(LUN,CLIST,IBUFF,ISIZE,LUNOUT,IOPOUT)
 
	LUN	= Logical unit to use in taking data
	CLIST	= Command list to execute (must be an EXTERNAL)
	IBUFF	= Buffer to use in taking data.  The first 5 words will
			be used as a header and the rest is data.
	ISIZE	= Size of buffer
	LUNOUT	= Logical unit number for output (MT:)
	IOPOUT	= Output option
		= 0	No output
		  1	Total - all data goes to tape
		  2	Partial - only unanalyzed data goes to tape
 
2	C2SETB
 
CALL	C2SETB(LUN,BEGCLIST,ENDCLIST,IFBEG,IFEND)
 
	This subroutine may only be called after C1 or C2 data are set up
via C1SET/C2SET.  This modifies the data acquisition by setting extra flags
and Setting command lists to be executed at BEGIN or END times.
 
	LUN	= Logical unit to use (same as in prior C2 or C1 setup)
	BEGCLIST	= Command list to execute at BEGIN time
	ENDCLIST	= Command list to execute at END time
	IFBEG		= Begin Flag (extra things to do at begin time)
			= 1 Clear buffer
	IFEND		= End Flag (extra things to do data comes in)
			= 2 Use Max buffer size for output rather than the
				input byte count.
 
 
2	CAMAC
 
CALL	CAMAC(LUN,CLIST,IBUF,ISIZE,ITMO,ISTAT)
 
	LUN	= Logical unit number to use
	CLIST	= Comman list to execute (must be an EXTERNAL)
	IBUF	= Data buffer to use (array)
	ISIZE	= Size of the data buffer (number of bytes)
	ITMO	= Maximum time allowed for execution (secs)
	ISTAT	= 2 word integer array
		ISTAT(1)	= Error return code when done
		ISTAT(2)	= Number of bytes used in the buffer
 
2	FCNA
 
CALL	FCNA(LUN,IF,IC,IN,IA,IDATA,IQ,IX)
 
	LUN	= Logical unit number to use
	IF	= Function to execute (0-31)
	IC	= Crate number (1-7)
	IN	= Slot Number (1-31)
	IA	= Sub Address (0-15)
	IDATA	= Double word integer data to read/write
	IQ	= Q status
		  0 No Q
		  1 Q response was OK
	IX	= X status
		  0 Module no present
		  1 Module is present
 
2	CRATT
 
CALL	CRATT(LUN,CRATEA,CRATEB,........)
 
	LUN	= Logical unit number corresponding to an MB: channel
	CRATEA	= Crate number to attach (1 to 7)
 
	This routine attaches an MB: channel and attaches several crates to it.
If a crate is attached to a channel then no other MB: channels may use it
unless they also have attached the same crate.
 
 
2	CAMATT
 
 
CALL	CAMATT(LUN,CLIST)
 
 
	LUN	= Logical unit number corresponding to an MB: channel
	CLIST	= The command list to be run on that LUN
 
	This routine attaches the LUN and also the crates used in the CLIST.
This insures that these crates can not be used by other unauthorized users.
 
2	BUTSET
 
CALL	BUTSET
 
	This subroutine must be called in the main program only once.
It sets up the buttons for use by the program for control.
	LUN number 12 must be assigned to MB1: for this routine to work.
		ex.	ASG=MB1:12
 
 
 
2	POUTCS
 
	This subroutine allows the parameter display to be on the color scope.
To use it merely task build this routine into the ROOT of your program.
If omitted all params will be displayed on the terminal.
	ex. LB:[1,1]ONLINE/LB:POUTCS
 
 
	In addition LUN number 11 must be assigned to MB3:
		ex.	ASG=MB3:11
 
 
#
	@ONLINE
