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 120.0 # sets 120 samples per sec (RTMC16/48) sampspersec 107.0 # sets 107 samples per sec (A800) DESCRIPTION Sets the number of velocity samples per second the motion control card uses for its velocity values. There are really only two valid values for this: > All Kuper cards use 120.0 (RTMC16, RTMC48, Kuper Industrial) > The OPCS "A800" board uses 107.0. "Samples" are the term used for the sample rate of the velocity clock 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 : 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 steps per revolution. To compute revs per second (RPS): (sampspersec * velocity) / 2000 = RPS To compute revs per minute (RPM): (sampspersec * velocity) / 2000 / 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 uses a different sample rate (107) than Kuper's (120). ORIGIN Version K2.00 Gregory Ercolano, Alhambra California 06/01/20