		~RSX-11M CAMAC TEST PROGRAM~

	DESIGNED TO WORK WITH CA: DRIVERS COMPATIBLE WITH P. CANNON'S
	3912/3992 DRIVER.

	A LIST OF CAMAC AND DRIVER COMMANDS MAY BE INPUT, EDITED, AND
	EXECUTED.  DATA READ IN MAY BE LISTED.  MULTIPLE PASSES MAY BE
	PERFORMED.

	TO RUN THIS PROGRAM, TYPE THE COMMAND:   TST   TO THE SYSTEM.

	COMMANDS:

	~I~	INSERT COMMANDS INTO THE LIST
	~D~	DELETE COMMANDS FROM THE LIST
	~R~	REPLACE COMMANDS IN THE LIST (SAME AS D FOLLOWED BY I)
	~P~	PRINT THE CURRENT COMMAND LIST
	~S~	SAVE THE CURRENT COMMAND LIST
	~G~	GET A SAVED COMMAND LIST
	~X~	EXECUTE THE COMMAND LIST AND PRINT DATA THAT IS READ
	~Q~	EXECUTE THE COMMAND LIST AND DO NOT PRINT DATA THAT IS READ
	~L~	LIST INPUT AND OUTPUT ON THE HARDCOPY TERMINAL
	~O~	OVERWRITE CURRENT COMMAND LIST WITH SAVED COMMAND LIST

	COMMAND FORMATS:

	(mm AND nn REPRESENT DECIMAL COMMAND NUMBERS IN THE RANGE 1 TO 99
	 name  IS A STANDARD RSX-11M FILENAME
	 crate IS A DECIMAL CRATE NUMBER:  0 FOR MASTER, 1 TO 62 FOR SERIAL
	 count IS A DECIMAL ITERATION COUNT IN THE RANGE 1 TO 32767 INCLUSIVE
	 F  IS THE FUNCTION CODE TO BE EXECUTED
	 N  IS THE MODULE (STATION) NUMBER
	 A  IS THE SUBADDRESS
	 DATA IS THE DATA TO BE WRITTEN:  IF IN OCTAL, A RANGE OF -40000000
		TO +37777777, OR 00000000 TO 77777777, IS ALLOWED.  IF IN
		DECIMAL, THE NUMBER MUST BE FOLLOWED BY A DECIMAL POINT, AND
		A RANGE OF -8388608 TO +8388607, OR 0 TO 16777215, IS ALLOWED.)

	I	INSERT COMMANDS AT THE END OF THE LIST

	Inn	INSERT COMMANDS BEFORE COMMAND #nn
		THE PROGRAM WILL PROMPT YOU FOR CAMAC COMMANDS OF THE FORM:
			F,N,A
			F,N,A,DATA
			-F
		   OR	-F,,,DATA  (THREE COMMAS REQUIRED IF DATA PRESENT)
		NEGATIVE F VALUES INDICATE FUNCTIONS THAT ARE PERFORMED BY THE
		CAMAC DRIVER SOFTWARE; THE FOLLOWING FUNCTIONS ARE DEFINED:

			F=-1	START OF DRIVER DO-LOOP FOR 'DATA' ITERATIONS
			F=-2	END OF DRIVER DO-LOOP
			F=-3	SET UP MODULE NUMBER 'DATA' FOR LAM WAIT
			F=-4	WAIT FOR A LAM
			F=-5	SET NEW SERIAL HIGHWAY CRATE NUMBER 'DATA'

		THE DATA FIELD MUST BE SPECIFIED IF F IS -1, -3, -5, OR BETWEEN
		16 AND 23 INCLUSIVE (I.E. IT IS A WRITE COMMAND); DATA SPECIFIED
		WITH OTHER F VALUES WILL BE IGNORED.

	Dmm	DELETE COMMAND #mm FROM THE LIST

	Dmm,nn	DELETE COMMANDS #mm THROUGH #nn INCLUSIVE

	Rmm	REPLACE COMMAND #mm (SAME AS  Dmm  FOLLOWED BY  Imm )

	Rmm,nn	REPLACE COMMANDS #mm THROUGH #nn INCLUSIVE (SAME AS Dmm,nn
		FOLLOWED BY Imm )

	P	PRINT THE ENTIRE CURRENT COMMAND LIST ON THE TERMINAL

	Pmm	PRINT COMMAND STEP #mm ON THE TERMINAL

	Pmm,nn	PRINT COMMAND STEPS #mm THROUGH #nn INCLUSIVE

	Sname	SAVE CURRENT COMMAND LIST AS A FILE CALLED  name

	Gname	GET COMMANDS FROM FILE  name  AND APPEND THEM TO THE LIST

	Xcrate,count
		EXECUTE THE CURRENT COMMAND LIST FOR  COUNT  ITERATIONS, AND
		PRINT ANY DATA READ BY THE COMMANDS IN THE LIST

	Qcrate,count
		"QUIETLY" EXECUTE THE CURRENT COMMAND LIST FOR  COUNT
		ITERATIONS (DO NOT PRINT DATA READ BY COMMANDS IN THE LIST)

	Lflag
		LIST INPUT AND OUTPUT ON HARDCOPY TERMINAL (flag=1) OR ONLY ON
		SCREEN (flag=0)

	Oname	OVERWRITE CURRENT COMMAND LIST WITH LIST STORED IN FILE  name
		(EQUIVALENT TO  D1,99  FOLLOWED BY  Gname  )
