Design of Punch Press Controller Using AT89S51 Single Chip Microcomputer

Publisher:平和的心态Latest update time:2018-04-01 Source: eefocusKeywords:AT89S51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    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.


Keywords:AT89S51 Reference address:Design of Punch Press Controller Using AT89S51 Single Chip Microcomputer

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

Latest Microcontroller 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号