This paper introduces a method of simulating PLC control with Atmel89S51 single-chip microcomputer, designs a controller suitable for rigid clutch punch press, introduces the basic structure and working principle of input and output circuits with photoelectric isolation, focuses on the design idea of the internal keyboard display circuit, and gives the electrical schematic diagram of the punch press control.
The system hardware configuration is based on the AT89S51 microcontroller. The AT89S51 is a low-power, high-performance CMOS 8-bit microcontroller, which contains a 4Kb ISP (In-system programmable) Flash read-only program memory that can be repeatedly erased and written 1,000 times. The device is manufactured using ATMEL's high-density, non-volatile storage technology, is compatible with the standard MCS-51 instruction system and 80C51 pin structure, and has a built-in watchdog (WDT) circuit.
The powerful AT89S51 can provide cost-effective solutions for many embedded control application systems. The punch press controller designed with this single-chip microcomputer has the following features:
● The controller adopts the PLC design concept, with high reliability and strong anti-interference ability.
● The 6-digit seven-segment LED display on the panel can be used to adjust parameters and display count values during operation.
● Modular design, compact size, easy to install.
● Taking advantage of the ISP function of AT89S51, programs can be downloaded on-site to realize the functions of a programmable controller.
hardware design
The hardware structure of the controller is shown in Figure 1. It mainly consists of keyboard display circuit, EEPROM circuit, power-off detection, program download interface, photoelectric isolation input and output modules. The power module is a switching power supply designed with TOP220Y with +24V and +5V output. When the system is powered off, the power-off detection circuit sends a signal to AT89S51, and the system immediately stores the parameters and count values in the EEPROM circuit.
The keyboard display circuit is shown in Figure 2. In order to save I/O port lines, the lower 3 bits of P0 port are reused here. The working principle of the circuit is introduced below: When displaying, first set P3.3 and P0.0~P0.5 to high level, and then output the code corresponding to the display content to the common cathode digital tube through the serial input and parallel output shift register 74HC164 in turn, and then set the bit selection to be displayed to low, delay 1ms, and then set the bit selection to be displayed to high. As long as the frequency of this dynamic scanning is high enough, this controller uses 80Hz, due to the visual persistence characteristics of the human eye, the display function can be realized without flickering. When scanning the keyboard, set P3.3 to low level, then the output of 74HC164 is all low level, which prevents interference with the display when scanning the keyboard. When no key is pressed, the read P0.0~P0.2 are all low level. When the keyboard is pressed, the corresponding input will be read as high level. Then, the delay de-jitter method can be used to determine which key is pressed, and then go to the function program of the corresponding key. The display scanning, keyboard scanning and key debounce of this controller are all completed in the timer interrupt.
The photoelectric isolation input circuit is shown in Figure 3. The input terminal and the COM terminal are connected with a voltage-free contact or an NPN open collector transistor. For reliability, the input current is 7mA, then the input is ON. When the input current is lower than 1.5mA, the input is OFF. The output circuit uses a photoelectrically isolated relay output to electrically isolate the internal circuit of the controller from the external circuit to prevent external interference.
application
The punch press control wiring is shown in Figure 4. When working, the 6-digit digital tube on the panel displays the count value. When you need to set parameters, press the function key for 5 seconds to set the single action duration, the number of times lubrication is required, the lubrication duration and other parameters in turn.
Turn the selector switch to the single stroke position. When the slider is within the upper dead center range, press the left and right buttons at the same time, then the double valve is energized and the slider reciprocates once. When the cam turns to the braking position, the controller de-energizes the double valve and stops the slider at the upper dead center.
When the selector switch is in the inching position, press the left and right buttons at the same time, the controller will energize the double valve and move the slider. Release the buttons and the controller will de-energize the double valve and the slider will stop immediately.
Summarize
The punch press controller designed with AT89S51 microcontroller described in this paper has been tested and run reliably and has strong anti-interference ability. It can effectively prevent the punch press from continuous punching and ensure the safety of the operator by coordinating with software algorithm design and photoelectric protection. In addition, AT89S51 microcontroller has unique advantages such as rich instruction system, compactness, low price, flexibility and easy expansion, which greatly improves the cost performance of the whole system in the designed punch press controller.
Previous article:Low-cost temperature control experimental system based on AT89C51 single-chip microcomputer
Next article:The composition and circuit design of control system based on single chip microcomputer
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- May I ask if Mr. Yi Zhongtian mentioned in a certain program that he talked about "have you learned it?", "have you learned it thoroughly?", "have you learned it thoroughly?", in which program did he say this?
- PCB file conversion
- 5G indoor base stations will be released soon, and it is expected that each household will have a small base station, which will subvert the existing home Internet access methods.
- How to consider the impact of audio analog signals after being transmitted through a 100m long cable?
- Angle sensor
- Transistor Selection
- Fancy PCB Exhibition (1)
- Why is it said that 90% of EMC is designed? (Long article)
- Chinese mobile phones continue to sell well in India, Vivo surpasses Samsung to become the second largest brand
- Share CC2541 Bluetooth learning about ADC