In the actual production process, control components with automatic reversing functions are often used, such as round-trip operation (displacement) in machining, forward and reverse output of DC power supply, forward and reverse operation of motors, etc. When the forward (or reverse) operation reaches a certain time or a certain position, it automatically switches to reverse (or forward) operation, and the process starts over and over again. To automate this process is to design a control circuit coupled with a displacement sensor or time relay. Although the current time relays currently on the market can be used in multiple combinations to meet the requirements of some use occasions, they still have problems such as large repeated timing errors, low stability and reliability, and inconvenient and flexible use. To this end, the author has developed a time/displacement commutation controller SWHX-1 with a single-chip microcomputer as the core. This system has the characteristics of low cost and can completely overcome the above shortcomings.
Circuit composition and working principle
The internal circuit of SWHX-1 is shown in Figure 1. The system is divided into three parts: input and output electrical signal conversion, CPU software programming control and timing delay setting. The entire circuit has a total of 14 leads, of which pins 2, 3 and 4 are the DC ground common terminal VGND. The device can operate in both AC and DC power supply modes. When AC power supply is used, AC 12 V is input through pins 13 and 14. After bridge rectification and voltage stabilization, it is supplied to the constant voltage reference power supply of the internal circuit, and the rectified DC 12 V is passed through pins 1, 2, 3, 4 is sent out for use by other external circuits; when using DC power supply, pins 1, 2, 3, and 4 become input terminals, and the input 12V DC voltage is stabilized and then supplied to the internal circuit. This method can be omitted AC power supply, but be sure to leave pins 14 and 13 floating.
Figure 1 Schematic diagram of time/displacement commutator circuit |
---|
The internal circuit of SWHX-1 is designed with 1 channel of reversing delay and 2 channels of timing output. The reversing delay time refers to the delay for a period of time after the forward (or reverse) output group is turned off before the reverse (or forward) output group is turned on. ) group working time, the user can set it arbitrarily between 0.5 and 2s; the 2-way timing time refers to the working time of the forward and reverse group output respectively, and the user can set it arbitrarily between 1m and 7h31m. If the timing time of 1m~7h31m cannot meet the usage requirements, there are 4 ports P1~P4 left, which can be connected with 4 external time relays or 4 travel switches to make up for it. Pl and P3 are forward groups, and P2 and P4 are reverse groups.
◇ Setting of delay time
(1) Delay time setting method
In Figure 1, t0~t4 are the short-circuit switches for setting the reversing delay time, t0 is the common terminal to ground, t1~t4 are respectively with 0.5 s , 1 s, 1.5 s, and 2 s correspond to each other. When the two are short-circuited, the corresponding commutation delay can be realized through CPU software programming. For example, when t0 and t1 are short-circuited, the delay is 0.5 s; when t0 and t3 are short-circuited, the delay is 1.5 s.
(2) Timing time setting method
S1 and S2 in Figure 1 are 8-digit timing time setting dial switches. The first three digits of each switch are the hour digits, and the last 5 digits are the minute digits. They adopt binary coding. When 8 After the bit dial code is selected, it is sent through the P1 and P2 ports of the CPU and controlled by software programming to realize the corresponding timing function. Therefore, the timing time of each channel can be set arbitrarily between 1m and 7h31m.
◇ Working principle of timing commutator
When SWHX-1 is used for timing commutation control, the CPU first reads the timing setting value of the dial switch S, which is recognized by software programming and implemented through the CPU internal timer and software delay. When the timing time is up, the timing setting value will be passed The P0 port sends a timing pulse through pins 12 and 11. When pins 12 and 11 are shorted to pins 5 and 7 respectively, the timing pulse will generate an interrupt request signal to the CPU, and the CPU receives this interrupt request. Then a blocking potential signal will be output through the pin Vs1 port to stop the currently working group, and after a delay of 0.5 to 2 s, a start signal will be output through the pin Vs2 port to start another group. work to complete a commutation work cycle. Vice versa, the cycle begins over and over again.
◇ Working principle of displacement commutator
When SWHX-1 is used for displacement commutation control, the above timing function will not work. Instead, the "displacement to" signal sent by the displacement detection sensor (usually a travel switch) will pass through Pins 5 and 7 send interrupt requests to the CPU. When the CPU receives the interrupt request signal, the above-mentioned commutation process is completed. In addition, pins 6 and 8 are used for displacement limitation. Because the displacement in most actual production processes is limited, the signal from the limit sensor is sent through ports 6 and 8, and the CPU receives the After the request signal, the limit blocking signal is immediately sent through pins 9 and 10 to stop the displacement work.
Software design
The software program of SWHX-1 is divided into three parts: initialization, timing identification and delay processing, and interrupt commutation processing. The program flow is shown in Figure 2.
Periodically commutated power supply applications
Periodically commutated power supply devices are used in many production processes. Here we only take one of the common electroplating power supplies as an example to illustrate its use. Figure 3 shows the circuit schematic diagram of a three-phase double reverse star bidirectional 6-pulse cycle commutation power supply. The power supply uses two sets of thyristor silicon controlled rectifier circuits, but under the control of SWHX-1, only one set can work at the same time, and the other set is blocked. The working time of the two sets of rectifier circuits can be set separately through S1 and S2 in Figure 1. The CF97088B in Figure 3 is a special device for dual reverse star 6-pulse thyristor triggering. In addition to generating 6 synchronous trigger pulses, it also has an internal current and voltage double P1 negative feedback adjustment function, and can also automatically identify the input three-phase power. Phase loss, over-voltage protection, over-current limiting and other functions in the system. When these phenomena occur, the system can automatically block the output of the trigger pulse for the purpose of protection and limitation. W1 and W3 are the forward and reverse output voltage setting value adjustment knobs respectively, while W2 and W4 are the forward and reverse output voltage feedback amount adjustment knobs respectively.
The advantage of this power circuit is that it has a simple structure and is easy to assemble, debug and maintain on site. Since CF97088 and SWHX-1 are fully sealed devices, they can be used in electroplating, electrolysis and chemical industries.
Application in Displacement Electrical Transmission In
the process of mechanical processing and production, there is often a round-trip displacement operation process. The working phenomenon reflected in the electrical transmission part is the forward and reverse rotation of the motor. Here we only take common gantry planers and milling machines as examples to illustrate. Application of SWHX-1. Figure 4 is a diagram of a planing and milling machine with a direct current flow switch. S1 and S2 are forward and reverse travel switches, and S3 and S4 are limit travel switches. When the forward displacement touches switch S1, under the control of SWHX-1, it will automatically switch to reverse operation after a delay of 0.5~2 s. When the displacement touches S2, it will automatically switch to forward operation, and the cycle repeats. . The displacement touch switch S3 or S4 can be used to indicate that the displacement is out of bounds and is under the control of SWHX-1 to immediately turn off the output and stop the displacement operation.
Conclusion:
Replacing the current timers and time relays with microcontroller-based control is the future development direction. The SWHX-1 device introduced in this article can be used as an attempt. The application results of this device in periodic commutation power supply show that the timing controller has accurate timing, reliable operation and good effect.
Previous article:The principle and application of dsPIC30F6010 microcontroller
Next article:Design plan using 8-bit microcontroller to drive PCI bus network card
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Zero-knowledge module new product SPI interface CAN bus module expansion board with usage examples
- TI - Detecting occupancy in moving vehicles using mmWave sensors
- MT8816 clear address method
- 1206 package chip capacitor working voltage 2000V
- 【GD32L233C-START Review】6. Hardware I2C drive 0.96-inch OLED
- Output waveform distortion problem of improved differential circuit
- New MicroPython Pi calculation performance comparison
- Please, administrator, please restore the ability to invite 8 people. I will no longer suggest pressing the Enter key to automatically query.
- Develop the Internet of Things in 10 minutes: Remote formaldehyde monitoring (4G module)
- MSP430 Clock Basics