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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com