Realization of Communication Between Monitor Software and PLC in High Power Solid Laser Processing System

The implementation of communication between Jura software and PLC in high-power solid-state laser processing system was introduced in two cases, and the two methods were compared. One is the implementation of serial communication between monitoring software and PLC developed with VB6.0, and gives specific examples; one is the realization of communication between monitoring software and PLC based on touch screen development.

In the high-power solid-state laser monitoring system, the PLC of the laser processing system can collect and store the real-time status data of the laser processing system, and the monitoring software realizes the monitoring function of the laser by regularly querying these data. This article uses OMRON PLC to use RS232 interface and VB6.0 development monitoring software for serial communication, and Delta PLC uses Delta's touch screen configuration software for communication as an example to study PLC and upper layer software communication in different situations.

1 VB-based host computer and PLC communication

The monitoring function is mainly reflected in the timely and accurate display and recording of real-time data of the processing system. It is mainly divided into a control management module, a data communication module, a fault processing module, a data processing module and an information processing module. The data communication module is responsible for performing data with the PLC control system. Communication task, the operator's operation instructions into a unified data format sent to the PLC control system through the serial communication port [data communication module is also responsible for reading the data from the PLC control system, and call the data processing module to deal with .

The design of the VB communication program in the monitoring software is as follows:

(1) Initialize the communication port
In the high-power solid-state laser processing system, the monitoring system uses the OMRON controllable programmer CQM1H series as the lower computer, and the ordinary PC as the upper computer. The communication port is COM1 port, communication parameter setting baud rate is 9600, even parity, 7 data bits, 2 stop bits. This parameter must match the setting on the PLC side, otherwise communication will not be possible. The specific procedure is as follows:

(2) Data transmission after the serial port is opened
The format of the data transmission shall be standard, including the initiator, node number, title code, data, FCS, and terminator. If a string of data is sent, the upper computer and the PLC must unite the data format for easy identification. After calculating the FCS, send the frame. The maximum data block sent in one frame is 131 characters. If there are more than 13, characters, it must be split into more than one frame before sending. When a group of transmitted data is to be decomposed, the end of the first frame and the middle frame is replaced by a delimiter instead of the terminator. [The following is a communication program of the upper computer monitoring software transmission power to the PLC as an example:

(3) PC receives PLC data
The data sent by the PLC and received through the monitoring software is similar to this. In this communication method, the processing during data transmission is relatively simple, and overcomes the data loss phenomenon that occurs when a custom data format is adopted, and can correctly send and receive data.

2 Touch screen software and PLC communication

Industrial-grade man-machine interface can be used as a small PLC workstation, with the function of monitoring with the PLC connection, as well as the ability to use text, numbers or graphics to simultaneously display internal contact status and data. Each touch screen manufacturer provides users with the factory touch screen products The configuration software, which provides users with a variety of common tool modules, users do not need to master too much programming language technology, they can very well complete almost all the functions needed for a project. Delta touch screen software is one of them. It edits the system interface through intuitive graphics and relatively simple macro instructions. The macro instruction is similar to the PLC instruction, the basic function that the PLC instruction can realize, the macro instruction can also be realized, and the writing method is relatively simple.

The system hardware adopts Delta PLCs and touch screens. The software includes two parts: the configuration environment and the operating environment. The configuration environment is used to design and construct its own application system; the operation environment part is configured in accordance with the configuration project configured in the configuration environment, and the operation and completion of the user configuration design goals and functions are developed on the computer to monitor the system configuration interface. Communication parameters, in the "Options" menu, select "Module Parameter Settings" option, then a window will pop up in this window to set the communication parameters (as shown in Figure 1). After the parameters are set, the prepared configuration project can be used by downloading the USB terminal from the computer to the touch screen. As can be seen from Figure 1, as long as the parameters set by the protocol and PLC communication can be simple and easy, no special programming is required. In the touch screen software, the instruction execution process is the same as that of the PLC, and the query method is used continuously. scanning. A thread in the process periodically queries the receive buffer of the serial port. If there is data in the buffer, it reads the data; if there is no data in the buffer, the thread will continue to execute. Under normal circumstances, the query method is a The most direct way to read the serial port, but because it must continue to query the serial port, it will take up a lot of CPU time.

3 Conclusion
The advantage of hand-written industrial control software is that it has high flexibility and strong pertinence. It can implement the corresponding modules according to the needs of the system. The low cost of the software has the disadvantages of relatively large workload, long time-consuming, poor reliability, and versatility. Low, the program must be redesigned for different application objects. Part of the system modifications may lead to software redesign. Delta's touch screen software is a small configuration software. It has strong functions and is easy to use. It requires very professional programming technology and saves time and human resources. However, there are also disadvantages of limited functionality, poor flexibility, and inability to meet certain special requirements. Therefore, in practical applications, different development methods should be selected for the characteristics and requirements of different systems in order to achieve the best results.

beauty apparatus

Beauty Apparatus,Beauty Product,Electric Beauty Apparatus,Blackhead Removal Instrument

GUANGDONG DEERMA TECHNOLOGY CO., LTD. , https://www.deermaglobal.com