For a long time, the dyeing process has been completed by general temperature controllers in combination with manual operation. This manual control dyeing method based on general temperature controllers is difficult to ensure the strict temperature increase and decrease rate required by the process, and different workers will also have differences when operating the same process requirements, thus affecting the quality and output of the product. At the same time, the temperature and humidity in the dyeing workshop are high, and the working conditions of the operators are very bad, which also affects the quality of the product to a certain extent. In order to improve the quality of the product and reduce the labor intensity of the workers, a set of dyeing automation controllers is designed, which is mainly used to realize the single-machine control of the dyeing process, complete the setting and display of the step-up temperature dyeing process, automatic control and other functions, and reserve an interface for access to the fieldbus control system.
1 Scheme Design
During the dyeing process, the temperature detection of the inner and outer cylinders of the dyeing tank uses a PT100 temperature sensor; the step-up temperature process uses a PID algorithm to control the solenoid valve to control the temperature of the dye liquid; in the insulation stage, a solid-state relay is used to control the forward and reverse rotation of the reel DC motor to achieve uniform dyeing of the fabric.
The dyeing automation controller uses the MC9S12XDP512 microcontroller as the control core, and its system block diagram is shown in Figure 2. The system is divided into three parts: human-machine interaction unit, field control unit and CAN bus unit. Among them, the human-machine interaction unit consists of digital display, LED display and keyboard input, which is used for setting and displaying the dyeing process and displaying and alarming the operating status. The field control unit adopts a parallel bus, expands a 12-bit high-precision A/D converter, samples the temperature signal detected by PT100 and conditioned, and uses PID algorithm to control the temperature of the dye solution; at the same time, it completes the forward and reverse rotation of the fabric to realize the automatic control of the dyeing process. The CAN bus unit adopts the MC9S12XDP512 built-in CAN module to realize the architecture of the field bus control system.
2 Hardware Design
2.1 MC9S12XDP512
MC9S12XDP512 is a new generation 16-bit microcontroller produced by Freescale. It is based on the enhanced HCS12 core and integrates the peripheral coprocessor XGATE[2].
XGATE is a programmable RISC core independent of the HCS12X main CPU. It can be used as an efficient DMA controller to autonomously perform high-speed data transfer between peripherals and RAM and perform flexible data processing during data transfer.
The XGATE reduced instruction set core has 8 16-bit general registers R0~R7, 1 program counter PC, and 1 4-bit condition code register CCR. XGATE has a total of 72 independent instructions, and the instruction clock can reach up to 100 MHz, which is twice the bus speed of the HCS12X main CPU; it can access 64 KB of on-chip space, including 2 KB of on-chip peripheral registers, 30 KB of on-chip FLASH and a maximum of 32 KB of on-chip RAM.
2.2 XGATE Programming
XGATE code execution is driven by events (interrupts). Figure 3 shows a typical interrupt processing process of the S12X system microcontroller. The interrupt configuration register INT_CFGDATAx determines the interrupt processing core and interrupt priority. If the RQST position is 1, the XGTE coprocessor is selected to handle the current interrupt; otherwise, the HCS12X main processor is selected. When the XGATE interrupt service routine is processed, it notifies HCS12X and submits the processing results to HCS12X. In this way, HCS12X only needs to focus on the upper-level control algorithm, while the hardware operations closely related to the bottom layer are processed by XGATE, which greatly improves system performance [3].
In the textile industry, dyeing is an important production link for textile coloring. Fabric dyeing requires that a certain heating rate or cooling rate must be followed during different heating and cooling processes. In addition, different dyes and textiles require different temperature change curves for dye liquor [1]. Figure 1 shows a typical step-by-step heating process in actual production. The process is divided into three sections: the first section has a holding temperature of 80 °C and the number of forward and reverse rotations (passes) required during the holding period is 1; the second section has a holding temperature of 90 °C and 1 pass; the third section has a holding temperature of 135 °C and 2 passes.
For a long time, the dyeing process has been completed by general temperature controllers in combination with manual operation. This manual control dyeing method based on general temperature controllers is difficult to ensure the strict temperature increase and decrease rate required by the process, and different workers will also have differences when operating the same process requirements, thus affecting the quality and output of the product. At the same time, the temperature and humidity in the dyeing workshop are high, and the working conditions of the operators are very bad, which also affects the quality of the product to a certain extent. In order to improve the quality of the product and reduce the labor intensity of the workers, a set of dyeing automation controllers is designed, which is mainly used to realize the single-machine control of the dyeing process, complete the setting and display of the step-up temperature dyeing process, automatic control and other functions, and reserve an interface for access to the fieldbus control system.
1 Scheme Design
During the dyeing process, the temperature detection of the inner and outer cylinders of the dyeing tank uses a PT100 temperature sensor; the step-up temperature process uses a PID algorithm to control the solenoid valve to control the temperature of the dye liquid; in the insulation stage, a solid-state relay is used to control the forward and reverse rotation of the reel DC motor to achieve uniform dyeing of the fabric.
The dyeing automation controller uses the MC9S12XDP512 microcontroller as the control core, and its system block diagram is shown in Figure 2. The system is divided into three parts: human-machine interaction unit, field control unit and CAN bus unit. Among them, the human-machine interaction unit consists of digital display, LED display and keyboard input, which is used for setting and displaying the dyeing process and displaying and alarming the operating status. The field control unit adopts a parallel bus, expands a 12-bit high-precision A/D converter, samples the temperature signal detected by PT100 and conditioned, and uses PID algorithm to control the temperature of the dye solution; at the same time, it completes the forward and reverse rotation of the fabric to realize the automatic control of the dyeing process. The CAN bus unit adopts the MC9S12XDP512 built-in CAN module to realize the architecture of the field bus control system.
2 Hardware Design
2.1 MC9S12XDP512
MC9S12XDP512 is a new generation 16-bit microcontroller produced by Freescale. It is based on the enhanced HCS12 core and integrates the peripheral coprocessor XGATE[2].
XGATE is a programmable RISC core independent of the HCS12X main CPU. It can be used as an efficient DMA controller to autonomously perform high-speed data transfer between peripherals and RAM and perform flexible data processing during data transfer.
The XGATE reduced instruction set core has 8 16-bit general registers R0~R7, 1 program counter PC, and 1 4-bit condition code register CCR. XGATE has a total of 72 independent instructions, and the instruction clock can reach up to 100 MHz, which is twice the bus speed of the HCS12X main CPU; it can access 64 KB of on-chip space, including 2 KB of on-chip peripheral registers, 30 KB of on-chip FLASH and a maximum of 32 KB of on-chip RAM.
2.2 XGATE Programming
XGATE code execution is driven by events (interrupts). Figure 3 shows a typical interrupt processing process of the S12X system microcontroller. The interrupt configuration register INT_CFGDATAx determines the interrupt processing core and interrupt priority. If the RQST position is 1, the XGTE coprocessor is selected to handle the current interrupt; otherwise, the HCS12X main processor is selected. When the XGATE interrupt service routine is processed, it notifies HCS12X and submits the processing results to HCS12X. In this way, HCS12X only needs to focus on the upper-level control algorithm, while the hardware operations closely related to the bottom layer are processed by XGATE, which greatly improves system performance [3].
Previous article:A 3G streaming media rate control algorithm based on RTCP feedback
Next article:Design and implementation of a new type of PID controlled all-digital phase-locked loop
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- 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
- Comparison of the advantages of digital cameras and analog cameras in machine vision system design
- 1Hardware Development Process.doc
- Read "Functions and Applications of RF Sources" in 5 minutes
- The relationship between LoraWAN, LPWAN and Lora
- About the external interrupt of HAL library
- Playing with circuits (4) - UC3843 floating buck, 60W efficiency 93%
- Crazy Shell AI open source drone remote control machine code reading, compiling and burning
- Sinlinx A33 Development Board Linux Interrupt Programming 1--- Principle Description
- This week's highlights
- Xiaomi has eliminated China's copycat mobile phones in just 9 years since its founding. Do you agree?