introduction
The installation and leak detection of non-standard parts and standard equipment of the main ring vacuum system of the HIRFL-CSR (Lanzhou Heavy Ion Accelerator Cooling Storage Ring Project), a major national "Ninth Five-Year Plan" scientific project, was completed in early 2004. After baking, the vacuum degree reached an ultra-high vacuum environment of 10-11mbar. There are hundreds of high/low vacuum pumps placed on the accelerator injection line, the main ring vacuum cavity and the beam transport line, and nearly a hundred vacuum gauges and high vacuum power supplies that need to be detected and controlled. In order to realize the remote opening/closing of various vacuum gauges and high vacuum power supplies, the vacuum gauge readings and status are regularly detected, and abnormal (set point out of bounds) alarms and prompts need to be provided to the central control center. During operation, a vacuum failure in any beam line of the ultra-high vacuum system will cause serious consequences such as beam loss, instrument damage, and accelerator shutdown. Therefore, the accelerator must have a fast-response, safe and reliable vacuum protection and control system.
1 System Hardware Composition
The core of this control system is the independently designed control module VAC400 based on MSP430F149, which is compatible with various vacuum gauges, vacuum pumps and high vacuum power supply requirements. Each module is connected to one or more vacuum gauges or vacuum pumps to collect their analog/digital quantities and status codes. The data is uploaded to the central control machine via the RS-485 serial bus for online monitoring/display, and the measurement and control commands sent by the central control machine are directly applied to the vacuum gauge, power supply or solenoid valve to complete the patrol detection and control. Each VAC400 has a unique identification code (or address). Each RS-485 line can connect up to 32 VAC400 modules. In each communication cycle, only one slave computer is allowed to communicate with the host computer. The communication connection adopts handshake mode. The data collected by ADC is continuously and automatically updated and sent to the host computer for reading and display. The communication rate between VAC400 and vacuum gauge is 9600bps. INTRANET users can access the host computer to operate specific functions of specific vacuum gauges.
2 System Software Design
The key to the design of the system software is to design the control commands for different instruments and equipment, such as the vacuum gauge IM520, vacuum gauge IT23 and vacuum pump GST-03L, and to output the results consistent with the data type and unit actually displayed by the controlled instrument. At the same time, when the central control center issues other operation commands for this device or other devices, it needs to be able to generate interrupt execution and obtain the corresponding data. For different controlled devices, we change the corresponding main function part injection module, thereby realizing complex and changeable system tasks.
2.1 Vacuum gauge IM520 control part program
The system needs to obtain the vacuum value data of the vacuum gauge IM520, and the vacuum value and the voltage value have a complex functional relationship. Since MSP430 cannot calculate complex functions, only the voltage value is displayed by MSP430, and the subsequent conversion needs to be designed by other software. The ADC register of MSP430 can display hexadecimal integers. The human-computer interaction interface requires an intuitive decimal floating-point voltage value with three decimal places. The following ADC function implements this function:
void ADC(void)
{ unsigned tra[4]; int j;
TXBUF1=ADDRESS; // Output the module name and add ";" and a space after it
while ((UTCTL1&0x01)==0);
TXBUF1=58;
while ((UTCTL1&0x01)==0);
TXBUF1=' ';
while ((UTCTL1&0x01)==0);
if (Buffer[2]=='r') //Determine whether to input the command to read ADC data
{
for(i=0;i<4;i++)
{ADC12CTL0 &=~ 0x02; //First reset the ADC conversion enable when setting
ADvalue[i]=ADC12MEM[i]; //Read data
/*Convert the read hexadecimal number into a decimal floating point number with three decimal places*/
tra[i]=ADvalue[i]*10000.00/4095.00;
ADbit[0]=between[i]%10;
ADbit[1]=(between[i]/10)%10;
ADbit[2]=(between[i]/100)%10;
ADbit[3]=22;
ADbit[4]=(between[i]/1000)%10;
/*Loop output the data in ADC12MEMx*/
for(j=4;j>=0;j——)
{
TXBUF1=Hex2ASCII(ADbit[j]);
while ((UTCTL1&0x01)==0);
}
TXBUF1=' '; // Output space and the next set of ADC data are separated
while ((UTCTL1&0x01)==0);
}
TXBUF1=13; //Wrap after displaying data and execute the next cycle display
while ((UTCTL1&0x01)==0);
ADC12CTL0 |= 0x02; } // Enable ADC conversion
}
The data of the vacuum equipment monitored by the vacuum gauge needs to be automatically transmitted to the central control center in order to achieve real-time monitoring. The following program part realizes that the control module with MSP430 F149 as the core automatically transmits data to the remote control computer. [page]
void main(void)
{ int i=0,j=0;
WDTCTL=WDTPW+WDTHOLD; //Stop watchdog
_EINT(); //Open the general interrupt
Init(); //Initialize ADC
ADC12CTL0 |= 0x01; //Start conversion
while(1)
{P4OUT &=~0xC0; //Indicates that the LED is off
display: stop1=0; //goto loop structure entry
delay(0xFFFF); //delay program call
if(stop1==0)
{IE2 &= ~URXIE1; //Stop USART1 RX interrupt P3OUT |= 0x01;
ADC(); //Call ADC function
Buffer[2]='r'; //A command to read data from the vacuum gauge IM520 that is different from other tasks
Command key characters
delay(0x1FFF);
ADC();
Buffer[2]=‘r‘;
IE2 |= URXIE1; //Enable USART1 RX interrupt
P3OUT &=~0x01;
}
else goto display; }
}
2.2 Vacuum gauge IT23 control part program
The COMBIVAC IT23 vacuum gauge is a three-way vacuum gauge input, front panel or RS-232C (9-pin D-type port 9600bps) interface control and data readout. The front panel LCD displays four items: Torr, Micron, Pa and mbar. And the remote control machine needs to input the "uni w mbar or Torr or Pa or Micron" operation command to convert and read out various types of data content online.
void main(void)
{ char IT[4][15]={"uni w mbar\\0","mes 1\\0","mes 2\\0","mes 3\\0"}; // Vacuum gauge IT23 operation command
int i=0,j=0;
/…Same as the control part of vacuum gauge IM520…/
display: delay(0x1FFFF);
if(stop1==0)
{ IE2 &= ~URXIE1;
P3OUT |=0x01;
for(j=0;j<5;j++) //Loop and execute the command and display the data
{
for(i=0;IT[j][i]!=‘\\0‘;i++)
{ Buffer[2]=‘w‘;
OperateIT23();
TXBUF0 =IT[j][i];
while ((UTCTL0&0x01)==0);
}
/…Same as the control part of vacuum gauge IM520…/
else goto display; }
}
3 Conclusion
The operation shows that the data obtained by the vacuum control system based on MSP430F149 has good accuracy and stability, and it can complete the real-time monitoring and display tasks of vacuum equipment. Due to the advantages of low cost, high speed, low power consumption and high precision, the system can also be applied to safety protection detection, access control interlocking linkage and water and electricity detection systems.
Previous article:Design of wireless actuator nodes in greenhouse
Next article:Design of portable intelligent self-blood glucose monitoring instrument
- Popular Resources
- Popular amplifiers
- Chip Manufacturing: A Practical Tutorial on Semiconductor Process Technology (Sixth Edition)
- Microcontroller Principles and Applications Tutorial (2nd Edition) (Zhang Yuanliang)
- Getting Started and Improving MSP430 Microcontrollers - National Undergraduate Electronic Design Competition Training Course
- MSP430F149 examples and programs
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
- 37 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (VSCode Debugging ROS)
- How to pack .mpy files into esp8266 micro python firmware package?
- Beidou short message development board based on STM32F103RET6
- Want to know more about UWB? Just read this article.
- When downloading a program to a PCB board in SWD mode, what will happen if the PCB board's own power is not disconnected?
- I would like to ask you guys, what is the value of the bypass capacitor for the LT1763 chip?
- Many people ask whether the soft board can run at high speed...
- 82 AD conversion design experience summary!
- stm32 camera experiment
- Control high power electromagnetic valve 24V. Is there anything wrong with the use of thyristor?