Traditionally, in the use of PLC control of stepping motor, usually in the PLC plus a special piece of stepper motor control intelligent module, then connected to drive the power to control function. In the market, the price of a PLC controlled in 2000 yuan, and a control intelligent module also value 2000 yuan, plus the drive power from 1500 to 2500 yuan, in some small control capital is too high. This article introduce a kind of control drive products, using the single chip embedded control software, PLC receives the OC gate information, combined stepper motor control module and driving power, save to the stepper motor control intelligent module, thus greatly reduced capital. The drive is suitable for all kinds of two phase, less than 3 a stepper motor. It is well known that ordinary PLC programmable controller, lose into the gate of OC or relay, few high-speed pulse output, but generally have type pulse counting in the interface. We take advantage of this feature points, through the following configuration is easy to complete the process of mechanical motion and position control. Install process control used in the mechanical mechanism of long grating, and set in motion mechanism end limit switch of mechanical origin (Available photoelectric, hall element), after the limit switch is a positive direction for the operation of stepper motor. When step motor power, first run to the mechanical origin, when touching the limit switch, the PLC internal counter is reset automatically. If we want to control the mechanical movement process, through the grating and step motor driving mechanical parts are linked together, determine the stepper motor with grating pulse equivalent, programming on the PLC programmable controller to realize the process of high speed and efficient control. Stepper motor, for example, the pulse equivalent to 01001 mm, cooperate with the grating feedback pulse is also equipped with each pulse output is 01001 mm, the stepper motor with each step, a grating feedback signal to the PLC, counter (Or minus)oneBecause there are 7 kinds of the stepper motor control drive speed can be selected, select the different speed in different movement situation, when run to determine the position of the stop stepping motor. Frequency control drive at the same time, also bring elevator control, whole step/switch segment, and other functions, so the use of PLC control is very convenient. System software of the system is the core of single-chip microcomputer software part. Initialization module, needed to sign a cleaning applications, and determine whether to need to start the motor and reset. Pour into modules: CPU receives signals from INT1 to INT4 level. Whom the INT1 INT3 various groups used to select the frequency of seven kinds of commonly used to drive the motor, see table 1. INT4 determines the direction of motion,1 is turn, 0 means inversion)。 Lifting frequency module: this module includes lifting frequency according to the table and query data table and counter T0 assignment two sub modules. It guarantees the smooth when switching between two frequencies smooth transition and do not break step. Program in the process of lifting frequency, involves lifting frequency curve 'optimization' as shown in figure 4, the curve equation is determined by the motor parameters. Details refer to other documents. In handling this curve, by increasing time t each delta t f constitute a table, the corresponding frequency and the corresponding natural MCS - a page51 assembly language data sheet (The initial value) of the timer T0To query the data table to this curve fitting, do lift frequency optimization process. the main products: stepper motor, brushless motor, servo motor, stepping motor drive, brake motor, linear motor and other kinds of models of the stepper motor, welcome to inquire. Telephone: