PLC Control Method of Stepper Motor

Publisher:sdlg668Latest update time:2011-08-18 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

PLC Control Method of Stepper Motor

1. Introduction
With the development of microelectronics and computer technology, programmable controllers have made rapid progress. Their functions have far exceeded the scope of logic control and sequential control. They can be effectively combined with computers to perform analog control and have remote communication functions. Some people call it one of the three pillars of modern industrial control (i.e. PLC, robot, CAD/CAM). At present, programmable controllers (PLC) have been widely used in metallurgy, mining, machinery, light industry and other fields, providing a powerful tool for industrial automation.
2. Basic structure of PLC
PLC adopts a typical computer structure, mainly including CPU, RAM, ROM and input/output interface circuits. If PLC is regarded as a system, the system consists of input variables-PLC-output variables. Various external switch signals, analog signals, and sensor detection signals are all used as PLC input variables. They are input into the internal registers through the external terminals of PLC, and sent to the output terminals after the internal logic operation or other various operations and processing of PLC. They are the output variables of PLC, and these output variables are used to control various peripheral devices.
III. Control Method and Research
1. Introduction to the Special Functions of FP1
(1) Pulse Output
FP1's output terminal Y7 can output pulses. The pulse frequency can be adjusted through software programming. Its output frequency range is 360Hz~5kHz.
(2) High-speed Counter (HSC)
FP1 has a high-speed counter inside, which can input two pulses at the same time. The maximum counting frequency is 10kHz and the counting range is -8388608~+8388607.

(3) Input Delay Filter
FP1's input terminal uses input delay filtering to prevent the unreliability caused by mechanical jitter of the switch. Its delay time can be adjusted as needed. The adjustment range is 1ms~128ms.
(4) Interrupt Function
FP1 has two types of interrupts, one is external hard interrupt and the other is internal timing interrupt.
2. Speed ​​Control of Stepper Motor
FP1 has an SPD0 instruction. This instruction can realize speed and position control in conjunction with the pulse output function of HSC and Y7. The speed control ladder diagram is shown in Figure 1, the control mode parameters are shown in Figure 2, and the pulse output frequency setting curve is shown in Figure 3.



3. Control the program operation of the system


Figure 4 is the principle wiring diagram of the control system. In Figure 4, the pulse output by Y7 is used as the clock pulse of the stepper motor, and the pulse is generated by the driver to control the operation of the stepper motor. At the same time, Y7 is connected to the input contact X0 of the PLC, and is sent to the HSC inside the PLC through X0. The HSC counts the number of pulses of Y7, and when it reaches the predetermined value, an interrupt occurs, so that the pulse frequency of Y7 is switched to the next parameter, thereby achieving more accurate position control. The ladder diagram for realizing this control is shown in Figure 5.


The operating program of the control system: The first sentence is to clear DT9044 and DT9045, that is, to prepare for HSC counting; the second to fifth sentences are to establish a parameter table, and the parameters are stored in the data register area with DT20 as the first address; the last sentence is to start the SPD0 instruction. When this sentence is executed, the set parameters are taken out from DT20 and the corresponding control requirements are completed.
From the first sentence, it can be seen that the first parameter is K0, which is the characteristic value of the PULSE mode, thereby specifying the output mode. The second parameter is K70, corresponding to a pulse frequency of 500Hz, so Y7 sends a pulse with a frequency of 500Hz. The third parameter is K1000, that is, after sending 1000 pulses at this frequency, it switches to the next frequency. The next frequency, that is, the last parameter, is K0, so when this step is executed, the pulse stops, so the motor stops. Therefore, when this program is run, the stepper motor can drive the control object at the specified speed and the predetermined number of revolutions, so that it stops automatically after reaching the predetermined position.
3. Conclusion
The programmable controller can easily realize the control of motor speed and position, conveniently and reliably operate various stepper motors, and complete various complex tasks. It represents the advanced industrial automation revolution and accelerates the realization of mechatronics.
Reference address:PLC Control Method of Stepper Motor

Previous article:What is ECD
Next article:Frequency Converter Principle

Recommended ReadingLatest update time:2024-11-17 03:03

Mitsubishi PLC and inverter communication case
Modbus is a serial communication protocol invented by Modicon for communication between its PLC and host. Its physical layer adopts asynchronous serial standards such as RS232 and 485. Due to its openness, it is adopted by a large number of PLC and RTU manufacturers. The Modbus communication method adopts a master-s
[Embedded]
Mitsubishi PLC and inverter communication case
A comprehensive analysis of the PLC ladder diagram programming process
1. The number of times the PLC internal software contacts can be used is unlimited. 2. Each branch of the ladder diagram should be drawn from left to right with the left busbar as the starting point. The front of each line is the working condition composed of the contact group, and the rightmost is the working
[Embedded]
A comprehensive analysis of the PLC ladder diagram programming process
Working principle of PLC counter
1) When the PLC is in RUN mode, K20 is sent to the preset value register SV100. If the reset behavior is OFF at this time, K20 in SV100 is sent to the elapsed value register EV100. 2) Every time a rising edge (OFF→ON state change) of counter logic line X0 is detected, the value in EV100 is counted down by
[Embedded]
Application of PLC and UPS in the Dual Power Supply Switching of False Twist Machine
1. Introduction The false twisting machine is the main equipment for producing polyester low-elastic yarn in the chemical fiber industry. Each device consists of 240 spindles. The equipment has a high degree of automation and a complex production process. It has the characteristics of continuous production,
[Power Management]
Application of PLC and UPS in the Dual Power Supply Switching of False Twist Machine
28 PLC programming standards and suggestions
1. Design requirements that a perfect PLC program must meet A complete PLC program is not as simple as just making the system run. It also requires complete annotations, sophisticated architecture, good scalability, a complete alarm protection system, and a pre-operation simulation system. 1. Simplicity
[Embedded]
28 PLC programming standards and suggestions
PLC and touch screen connection methods in three different situations
In the actual project application process, PLC+HMI (touch screen) is often used in combination. In this section, we will introduce the connection methods of PLC and touch screen in three different situations. Whether there is hardware or not, I believe this section can provide help to readers. 1 No P
[Embedded]
PLC and touch screen connection methods in three different situations
PLC Control Application of RO System
1. Control of high pressure pump The inlet and outlet pressure limits are set to control the operation status of the high-pressure pump. The variable frequency high-pressure pump controls the operation status of the pump through frequency regulation. Seawater desalination should be equipped with energy recovery
[Embedded]
Application of Neza PLC in Lithographic Offset Printing Machine
Working principle: The lithographic offset printing machine uses various specifications of paper for indirect printing. First, the graphic materials to be printed are made into a film base, and then transferred to the photosensitive PS metal plate. The graphic materials to be printed are easy to stick to the ink
[Industrial Control]
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号