LocationTianjin, China (Mainland)
EmailEmail: sales@likevalves.com
PhonePhone: +86 13920186592

Design and implementation of real-time communication for Electric gate Valve performance monitoring system

Design and implementation of real-time communication for Electric gate Valve performance monitoring system

/

The circuit schematic number of the control board and the electric device is the same. The control module and the electric device are connected with each other by cable according to the same terminal number. If the user does not use on-site control, the wiring terminals of 12, 13 and 14 are not connected. Electric valve controller is used for automatic control system, 12, 13, 14 terminals for “remote switch”, “automatic off” matching signal power input terminals.
Installation and adjustment of electric valve controller:
1. Assemble and fix it according to the selected product specifications, and the terminal block on the back board must be grounded.
2. The circuit schematic number of the control board and the electric device is the same. The control module and the electric device are connected with each other by cable according to the same wiring terminal number. Electric valve controller is used for automatic control system, 12, 13, 14 terminals for “remote switch”, “automatic off” matching signal power input terminals.
3. Press and hold the lock screen key, the indicator will light up, the remote controller will be biased to remote control on the spot, and the remote control display will light up.
4, use the spindle to open the gate valve to 50% open degree, hold down the open valve or close the valve key, check whether the rotation of the valve and the function key is consistent, if not consistent immediately press the stop key, disconnect the three-phase power supply, replace the three-phase power supply in the random two phase.
5. Press and hold the open valve key. When the gate valve opens in time, the open valve display in the front plate will light up; Press and hold the close valve key. When the gate valve is closed in time, the close valve display in the front plate will light up; When the valve body in the open or close when the need to terminate, press the stop key, gate valve termination. Connect terminals No. 4 or 7. Accident light in front panel.
6. When the gate valve is in the fully open position, adjust the adjusting resistor in the front plate so that the opening meter indicates 100%.
7, the spot remote controller deviation to the spot, the spot display light, short circuit fault No. 12 or 13 wiring terminals, gate valve and open direction operation, for startup; Short circuit fault Wiring terminal No. 12 or No. 14, gate valve to close to operate, for startup condition.
8. Fuse tube on rear plate 5 x 20 A.
Design and implementation of real-time communication for electric gate Valve performance monitoring system
Introduction: According to 485 system bus, the real-time communication system software in the electric equipment performance test system composed of monitoring center PC and several single-chip control systems is proposed. The method of using VB to complete the instant communication program design of PC and several single-chip control system software is emphatically introduced. The PC has completed the synchronous control and management of several remote units.
Key words: Visual Basic serial communication communication electric equipment performance monitoring system remote control
1 Introduction
In many real-time monitoring systems, often have to accept far distance measurement and control technical point data, how to achieve reliable remote data transmission is these detection systems must solve the problem. In the detection field, in order to reduce the cost of system software, SCM system is usually used as the data collection and recording module. In ** monitoring center, PC is often used to complete adult opportunity and communication with the test site.
This paper introduces a Master/Slave remote instant messaging system software which can be used to monitor the performance of electric equipment in factory. The lower machine of the monitoring system is designed with 32-bit ARM microcontroller (L PC2214) as the CPU. Two CPLDS (XC95108) extend the I/O port to control the microcontroller system such as loading motor, unloading motor, photoelectric encoder and AD converter, and there is a computer keyboard to carry out data transmission and LCD display Show each function of the jack, and its printer print test qualified product performance of the main parameter record. The management system of upper computer software is based on Visual Basic 610. This system through the product performance of the main parameters of the inspection, strictly prevent unqualified products in the factory, improve product quality, enhance the market competitiveness of the product.
The software of the communication system uses five types of twisted pair wires in the work site as the communication media. The upper computer software uses the communication control MSComm of VB 610 to complete the remote instant communication with the lower computer. The lower computer is used in the production line, and the actual effect is satisfactory.
2. Structure and principle of the system
2.1 Structural composition
The application system consists of a monitoring center and several Remote Terminal Unite modules (Rtus) (Figure 1). The monitoring center is composed of upper computer software and RS232/485 converter, and each remote module should be designed as the best electric equipment performance monitoring system based on ARM single chip microcomputer (Figure 2).
2.2 Principles
As a comprehensive data acquisition Terminal Equipment DTE(Da2ta Terminal Equipment), the monitoring center undertakes to complete the detection data identification and storage of the remote electric equipment performance monitoring system. PC according to 485 communication cable and remote electric equipment performance monitoring system connected, its transmission speed is 9 600 bps, port data transmission rate can be set to 1 200 bps ~ 19 200 bps (1) according to the system software.
Based on the photoelectric encoder and AD converter, the remote electric equipment performance monitoring system collects the data of the main performance parameters of the key equipment. The MAX1480 processing chip is selected to transmit the data with the PC device, and the data input and output switching signals are realized by two CPLDS, so as to realize the control of the key equipment and the accurate measurement of the basic parameters. Electric equipment performance monitoring system also has calibration, fault warning and processing chip normal operation check system software. BRnbsp; nbsp; nbsp; nbsp; Communication system software to monitor the central PC and remote single-chip microcomputer control system through 485 communication cable in the form of the same screen multithreading parallel transmission of data information data communication,PC according to the serial port to send tokens to the remote module, the remote module received their own token after the transmission of data to the PC, the PC received the data back to the appropriate information content. In this way, the monitoring center can control the remote machine and collect data.
3. Programming design of instant serial communication
3.1 Communication Agreement
(1) Data information of a frame is composed of 1 starting bit,8 data bits, 1 check bit and 1 stop bit.
(2) The serial port baud rate is 9 600 bps. Serial communication of 51 microcontroller of electric equipment test system uses UART0 to push and receive data. In order to obtain accurate serial baud rate,ARM microcontroller adopts crystal oscillator circuit with oscillation frequency of 111059 2MHz. The baud rate of the PC is set according to the Setting feature of the VB communication control MSComm. To ensure the accuracy of data transmission, the baud rate of the PC serial port must be the same.
(3) Multi-thread communication is adopted in the system. The upper computer software communicates with remote modules according to token-passing bus [2]. The information transmitted on a PC is a fixed 4-byte number. The first and second bytes are the start identifier and the remote unit detail address number, respectively. The third byte indicates that the push is an instruction card or instruction, and the fourth byte is the end identifier.
(4) After receiving the token, the remote module makes a judgment by comparing the address number of the token and the detailed address of the module, knowing that the token is the unit, and then the system bus is in the situation of obtaining data. This module gradually sends a short message, the uploaded information content is 158 bytes. The first and second bytes indicate the start identifier and command character respectively, the third byte indicates the amount of data information, the fourth byte indicates the 157th test report collected, and the 158th byte indicates the end identifier. If the detailed address does not match, the token is shared to the next unit [3]. The communication method is shown in Figure 3 below.
3.2 Remote MCU control comprehensive serial communication programming design
Remote ARM single-chip microcomputer design uses interrupt mode to carry out data reception, according to the mobile phone software ADS112 program to carry out communication with the upper computer software, the upper computer software communication sub-flow chart and the lower computer terminal disconnection sub-flow chart respectively as shown in Figure 4 and Figure 5 below.
When the remote module receives the token with the same detailed address as the device, it puts a sign of accepting data information. After receiving our token, the remote module gradually uploades the data to the PC on the stage. In addition, the PC stops pushing the token and continues to acquire data until the data is acquired and the data message is detected After acceptance, push confirmation instruction to the remote module here. If no data information is received or the data is not qualified, push incorrect mark to the remote module here. If the received token does not match the detailed address of the device, the program flow goes back to the terminal entry and performs other actual operations. This ensures that the remote module sends the data clearly to the software PC on the upper computer.
3.3 Serial communication program design method of PC
The upper computer software uses VB 610 to develop programs. There are two ways to develop and design serial communication programs with VB 610: one is to use the API function formula of Windows; The other is to choose VB communication control MSComm. The use of API function formula to write serial communication program process is more complex, must enable a lot of complicated API function formula, and VB610 MSComm communication control brings standardized event handling function, event and way, the customer does not need to master the communication process of the lowest level of operation control API function formula (4), and then very easy , efficient completion of serial communication.
The control brings two functions of serial data receiving and uploading: one is polling, which can be done by using timer and DO.Loop program flow to round events and communications according to Com2mEvent values; The other is Event-driven approach, which uses MSComm to control OnComm events to capture serial communication errors or events, and writes programs in OnComm accidents to solve them to a certain extent [5]. This system software uses a timer to push the token and accept the receipt information content designed by the remote microcontroller, so that the PC can make a faster response.
The mobile app uses timer Timer1 control to achieve the cyclic push of tokens. Set the timer to respond once in 10ms(Timer11Internal=10).
3.4 SCM design of ARM2210 series products serial communication program design method
The next computer uses the mobile phone software ADS112 to carry out the program writing, this mobile phone software is specially developed for ARM single chip microcomputer a mobile phone software, its language expression is similar to C language expression, has very good practicability.
4 Closing Remarks
The application manages the online monitoring of the remote machine, and the part of the communication Internet runs smoothly, the transmission rate meets the regulations, the work efficiency is high, the use is convenient, the networking scheme is convenient, and the data detection and control regulations of the work site can be achieved. This system can be widely used in high precision industrial production measurement and control technology and data collection and other industries.
Paper reference
(1) JanAxelson. Complete Collection of Serial Communication Port Numbers [M]. Beijing: State Electric Power Publishing House,2001
(2) Yang Xianhui. Fieldbus Technology and its Application [M]. Beijing: Tsinghua University Press,
(3) Li Zhaoqing.PC and single-chip Microcomputer design Data communication Technology [M]. Beijing: University of Aeronautics and Astronautics Press,2000.
(4) Xiang Juwei et al. Using Windows API function formula structure C6 class to complete serial communication [J]. Detection Technology,2000
(5) Fan Yizhi.Visual Basic and RS232 Serial Communication control [M]. Beijing: China Youth Publishing House,2000.


Post time: Feb-24-2023

Send your message to us:

Write your message here and send it to us
WhatsApp Online Chat !