Realization method of logic control of VB/VC (Microsoft Visual Basic 6.0/Microsoft Visual C++) and PLC (Programmable Logic Controller) on the basis of serial communication

A logic control and serial communication technology, which is applied in the field of VB/VC and PLC logic control based on serial communication, can solve the problems of high price, limited programming freedom, and low developability

Inactive Publication Date: 2016-02-24
SHANGHAI UNIV
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the production process, monitoring the data and operating conditions inside the PLC, and selecting software such

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realization method of logic control of VB/VC (Microsoft Visual Basic 6.0/Microsoft Visual C++) and PLC (Programmable Logic Controller) on the basis of serial communication
  • Realization method of logic control of VB/VC (Microsoft Visual Basic 6.0/Microsoft Visual C++) and PLC (Programmable Logic Controller) on the basis of serial communication
  • Realization method of logic control of VB/VC (Microsoft Visual Basic 6.0/Microsoft Visual C++) and PLC (Programmable Logic Controller) on the basis of serial communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] see image 3 , VB / VC is based on the communication module and PLC communication control method that does not require PLC to write logic programs, and the communication parameters of the lower computer are set. The operation steps are as follows:

[0080] 1. There are two setting methods

[0081] 1) Use the method specified by the parameter

[0082] Use the sequence programming software to set the communication on the computer screen, register it as a parameter, and send it to the PLC. (FX2(FX), FX2C, and FX0N programmable controllers cannot communicate with parameters.)

[0083] 2) The method of specifying by writing data in a special data register

[0084] In the sequence program, set values ​​for the communication format, station number setting, and timeout judgment time, write such a program, and send it to the programmable controller.

[0085] Regardless of which of the above two methods is used, the action of the programmable controller is the same, but when se...

Embodiment 2

[0092] refer to figure 1 Figure 4 , this example is the schematic diagram of PC to PLC monitoring, the operation process is as follows:

[0093] 1) After the PLC side parameters are set, initialize the serial port parameters on the host computer, and use the serial port control MSCOMM.OCX to realize.

[0094] 2) After the serial port initialization is completed, use the TT command to perform communication detection. The PC sends a certain number of characters to the PLC, and then receives the characters sent by the PLC. After communication, if the characters received twice are the same, it indicates that the communication is successful.

[0095] 3) Perform interrupt detection, if there is no operation of X, Y, M, D and other soft components, it means that there is no interrupt and directly monitor and read the status, send the WR command to the PLC, read the status of the target register, and after the PLC receives the command Send corresponding data to PC. If there is an ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a realization method of logic control of VB/VC (Microsoft Visual Basic 6.0/Microsoft Visual C++) and PLC (Programmable Logic Controller) on the basis of serial communication. The realization method provided by the invention is free of writing a logic T-shaped program in the PLC of a lower computer, all the logic controls may be realized at an upper computer, and industrial control may be realized. According to the new method provided by the invention, the upper computer is only needed to send instruments to realize monitoring of an input port and an output port with no need for writing any logic program in the PLC, and only one instrument is sent to perform all the stable and reliable monitoring of objects to be monitored (X, Y M, D and other elements); through adoption of a 'pipeline' mode in the aspect of signal decoding, operation coincidence of a CPU is reduced, and the response time of a program is short; and programs may be managed by category, the PLC of any point may be controlled without point limitation, and wiring, free of circuit interlocking, is greatly simplified in the aspect of circuit connection with safety and convenience.

Description

technical field [0001] The invention relates to a method for realizing logic control of VB / VC (Microsoft Visual basic 6.0 / Microsoft Visual C++) and PLC (programmable logic controller) based on serial port communication. This method does not need to write complex logic ladder diagrams into the PLC, and can directly use the host computer to realize the control of the output port. Background technique [0002] Today's world is a highly automated world where all kinds of devices can be connected to computers. The industrial site has formed a modern management system of centralized management and decentralized control. In industrial production, PLC is widely used in various fields of industrial production due to its advantages of safety and reliability, fast operation speed, high cost performance, and the ability to complete complex control logic through programming. In the production process, monitoring the data and operating conditions inside the PLC, and selecting software s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G05B19/05
CPCG05B19/056G05B2219/13026
Inventor 张海光赵晓龙胡庆夕
Owner SHANGHAI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products