SAMPSPERSEC(OPCSDEFS)	Optical Printer Control System    SAMPSPERSEC(OPCSDEFS)

    NAME
        sampspersec - Sets the motion control card's samples per second

    USAGE
        sampspersec <float>    # floating point number of 
                               # velocity samples per second

    EXAMPLES
        sampspersec 107.0      # A800 card (REV A) - IRQ5 is 107Hz
        sampspersec 120.0      # A800 card (REV B) - IRQ5 is 120Hz
        sampspersec 120.0      # RTMC16 and RTMC48 - IRQ is 120Hz

    DESCRIPTION
        Sets the number of velocity samples per second the motion control
	card uses for its velocity values. This is the same as the IRQ
	rate in Hertz.

	    > All Kuper cards use 120.0 (RTMC16, RTMC48, Kuper Industrial)

	    > The OPCS "A800" board uses:
	            107.0 -- for REV A firmware
		    120.0 -- for REV B firmware

	"Samples" are the term used for the velocity sample rate
	in the stepper pulse generator cards.

	A velocity value is the number of step pulses sent per sample. 
	So if the sample rate is 120 per second:

		Velocity Value		Motor Speed
		--------------		-----------------------
		      1                 120 steps per second
		      2			240 steps per second
		      :
		      255		30,600 steps per second
                      :

	Put another way:

	    > A velocity of '1' sends one step  during the sample time
	    > A velocity of '2' sends two steps during the sample time

	So basically the sample rate times the velocity gives you the
        number of steps per second. Most microstepping motors are 
        configured to run at 2000 pulses per revolution (PPR).

	To compute revs per second (RPS):

		(sampspersec * velocity) / PPR = RPS

	To compute revs per minute (RPM):

		(sampspersec * velocity) / PPR / 60 = RPM

    HISTORY
	For decades only the Kuper Controls cards were supported by
        OPCS, which are all 120 samples per second, and this value
        was configured in the old (and now obsolete) STARTUP.DEFS file.

	In K2.00, 'sampspersec' from STARTUP.DEFS was moved here to
        OPCSDEFS.OPC. This value is used to support the new A800 board,
        which can have different sample rates depending on the firmware.

    ORIGIN
	Version K2.00 Gregory Ercolano, Alhambra California 06/01/20
© Copyright 1997 Greg Ercolano. All rights reserved.