An oStepper Object is a Hardware Object that controls the direction, speed, braking and distance traveled of a stepper motor. It is capable of driving a stepper Motor at multiple speeds, in forward or reverse plus free spinning, and with active brakes.The primary function of the oStepper Object is to allow a program to instruct a stepper motor to turn a specified distance in a specified direction at a specified rate. Several different variations to the primary function can also be accomplished, including having the stepper motor turn indefinitely. The oStepper Object uses four digital I/O lines to communicate with drivers which handles the voltage and current requirements of the stepper motor it is connected to. How far the motor turns is controlled by the Distance property which that specifies how many steps to take at the speed specified. A mode can also be selected where the motor turns continuously. When the Distance property is 0, the motor is locked (with brakes on) at one position How fast the motor turns is controlled by a single value with a range of 0 to 127. The motor turns at the speed indicated by the value. The higher the value, the faster the motor turns. Which direction the motor turns is controlled by the polarity of the Distance property. A free-spinning mode (brakes off) can also be selected. |