Nothing Special   »   [go: up one dir, main page]

CN109884978A - A kind of remote system and its method for PLC device debugging - Google Patents

A kind of remote system and its method for PLC device debugging Download PDF

Info

Publication number
CN109884978A
CN109884978A CN201910261724.4A CN201910261724A CN109884978A CN 109884978 A CN109884978 A CN 109884978A CN 201910261724 A CN201910261724 A CN 201910261724A CN 109884978 A CN109884978 A CN 109884978A
Authority
CN
China
Prior art keywords
plc
serial port
virtual serial
software
plc device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910261724.4A
Other languages
Chinese (zh)
Inventor
孙永贵
舒云平
郑小锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG JIENUO ELECTRICAL APPLIANCE CO Ltd
Original Assignee
ZHEJIANG JIENUO ELECTRICAL APPLIANCE CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG JIENUO ELECTRICAL APPLIANCE CO Ltd filed Critical ZHEJIANG JIENUO ELECTRICAL APPLIANCE CO Ltd
Priority to CN201910261724.4A priority Critical patent/CN109884978A/en
Publication of CN109884978A publication Critical patent/CN109884978A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The remote system and its method that the invention discloses a kind of to be debugged for PLC are made of virtual serial port bridging software, background server and industrial gateway concentrator devices.Industrial gateway concentrator devices are connected by RS232/RS485 with traditional PLC device in physics wiring.Virtual serial port bridging software is connected with the IDE software of corresponding PLC by virtual serial port.Transport layer protocol central server is connected with virtual serial port bridging software by http protocol, is connected with industrial gateway concentrator devices by MQTT agreement.Industrial gateway concentrator devices connect PLC device by physics wiring, are mutually sent information in a manner of transparent transmission.Virtual serial port bridging software is equally mutually to be sent information in a manner of transparent transmission.User is not necessarily to change original program, can remotely debug to PLC device, without geographical restrictions, convenience and high-efficiency.

Description

A kind of remote system and its method for PLC device debugging
Technical field
The present invention relates to network communications and serial communication, more particularly to a kind of PLC device based on network communication technology The remote system and its method of debugging.
Background technique
About PLC remote debugging technology, the method generallyd use in the prior art is the PLC tune carried out by telephone wire Examination, rate is slow and debugging cost is high.Or debugged by the PLC that router builds Virtual Private Network progress, module it is complicated and It is subject to conditions.There are following drawbacks for conventional method:
First, environmental area limitation.Portioned product difficult wiring, and traditional method needs to introduce telephone wire or ether Cable carries out network communication, is not suitable for the portioned product;
Second, data stability is poor.Portioned product can only carry out the transmission of data, can not be according to reality to data Packet drop such as is safeguarded and is retransmitted at the related mechanisms;
Third, host computer configuration software are complicated.Possess troublesome parameter configuration, Yong Hucao on general upper computer software Work gets up to need to carry out a series of parameter configuration, is easy error.
Summary of the invention
Present invention solves the technical problem that being, for above-mentioned existing technological deficiency, to provide a kind of based on network communication The remote system and its method of the PLC device debugging of technology solve equipment difficult wiring for substituting traditional debugging technique And the problem of data stability difference, improve the development efficiency of user.
In order to solve the above technical problems, the technical solution adopted by the present invention are as follows: a kind of long-range system for PLC device debugging System, system is by PLC device, industrial gateway concentrator devices AP, central server, virtual serial port bridge joint upper computer software and PLC IDE software composition, physics wiring industrial gateway concentrator devices AP is connected by RS232/RS485 with traditional PLC device, void Quasi- serial port bridging software is connected with the IDE software of corresponding PLC by virtual serial port, transport layer protocol central server and virtual string Mouth bridging software is connected by http protocol, is connected with industrial gateway concentrator devices AP by MQTT agreement, industrial gateway collection Middle device equipment AP connects PLC device by physics wiring, is mutually sent information in a manner of transparent transmission, virtual serial port bridge joint Software is mutually sent information in a manner of transparent transmission.
Using before total system, need to the port of AP connection PLC and RS485/RS232 interface baud rate etc. into Row configuration.AP is connect by RS485/RS232 bus with PLC device.After system electrification, AP sends online life to central server Enable frame, request establishes connection with central server, after central server confirmation message is errorless, sends acknowledgement frame, allow AP with Central server establishes connection.AP and central server keep long by heartbeat frame and connect.Virtual serial port bridges upper computer software After carrying out user's authorization, serial ports connection is carried out by virtual serial port technology and the IDE software of PLC, on the other hand, host computer is soft Part establishes connection by http protocol and central server, carries out data and sends and receives.So far, entire PLC debugging is completed Remote system link build, the IDE software of PLC and the application protocol of PLC are without change, directly in a manner of transparent transmission Carry out the interaction of tune-up data.In network transmission, the problem of due to network stabilization, it is possible that frame losing, leaks showing for frame As being monitored in upper computer end by data frame, leaking the mechanism such as frame re-transmission to guarantee the data stability of entire debugging system.
As an improvement: the industrial gateway concentrator devices (industrial gateway concentrator devices (AP)) include micro-control Unit processed, DC power supply (DC) interface, MiniUSB interface, RS485 interface.
As an improvement: the central server as data medium and retransmission center, compatible http protocol and MQTT agreement.
As an improvement: the virtual serial port bridge joint upper computer software includes device configuration, and virtual serial port bridge joint is matched It sets, network communication module and serial communication modular.
As an improvement: the virtual serial port bridging functionality is used to simulative serial port environment, transmits the IDE software of PLC Data information.
As an improvement: a kind of remote method for PLC device debugging, the transparent transmission mechanism, including following step It is rapid: step 1, equipment selection, driving installation, relevant parameter configuration, connection link;Step 2, the IDE software of PLC is by tune-up data Information is sent to virtual serial port bridge joint upper computer software;Step 3, virtual serial port bridge joint upper computer software is sent by http protocol To central server;Step 4, central server forwards the data to specified industrial network by MQTT agreement as terminal Close equipment;Step 5, data are transferred data to PLC device by RS232/RS485 interface by industrial gateway equipment;Step 6, After PLC receives data information, the IDE software of PLC is sent the data to by former link.
The beneficial effects of the present invention are: the present invention solves the problems, such as traditional scheme equipment difficult wiring.The present invention is also logical Data frame monitoring is crossed, leaks frame re-transmission mechanism to improve the data stability of debugging system.The present invention only needs simple parameter to match It sets, a whole set of debugging system can be operated in user, is replaceable traditional debugging plan without secondary development, improves opening for user Send out efficiency.
Present invention will be further explained below with reference to the attached drawings and examples.
Detailed description of the invention
Fig. 1 is the hardware interface figure of the AP of an embodiment of the present invention.
Fig. 2 is upper computer software functional schematic of the invention.
Fig. 3 is the data communication process figure after networking of the invention.
Fig. 4 is the structure chart of system connection relationship of the invention.
Specific embodiment
To keep the purpose of the present invention, technical scheme and beneficial effects clearer, below in conjunction with attached drawing and specific implementation The present invention is described in further detail for example.
Fig. 1 shows the hardware interface schematic diagram facilitated using AP equipment 100 of the invention.The interface of AP includes: micro- Control unit (MCU) 101, GPRS mould group 102, DC power supply interface 103, RS485/RS232 interface 104, MiniUSB interface 105. Wherein MCU is the control centre of equipment, and GPRS mould group is network data transceiver part, and MiniUSB interface is parameter/configuration interface, RS485/RS232 interface is connect by conducting wire with PLC device.
Fig. 2 shows the functional schematics facilitated using upper computer software 200 of the invention.The main function of upper computer software It can include: http network communication module 201, user equipment authorization setting 202, virtual serial port configuration and communication module 203.It is upper Machine software establishes connection by http network module and central server.Virtual serial port configuration is virtual by establishing with communication module The connection of the IDE software of serial ports and PLC.
Fig. 3 shows the data communication process 300 facilitated using after networking of the invention, comprising the following steps:
IDE software 301 executes 306 after running, send tune-up data;
Upper computer software 302 executes 307, receives tune-up data and forwards tune-up data by HTTP request;
After central server 303 receives tune-up data, confirmation forwarding object executes 308, is debugged by MQTT protocol forward Data give specified AP;
AP equipment 304 receives the tune-up data of central server transmission, confirms PLC device code, executes 309, passes through RS485/RS232 bus is sent to PLC device;
After PLC device 305 receives tune-up data, 310 are executed, reply data is sent to by RS485/RS232 bus AP;
AP executes 311 after receiving connection reply, and reply data is sent to central server;
After central server receives reply data, user object is confirmed, execute 312, reply data is sent to Position machine;
Upper computer software executes 313, judges whether the secondary tune-up data transmission is correct, if incorrect, executes 314, starting Retransmission mechanism guarantees that data are correctly transmitted, if correctly, sending data to IDE software;
IDE software executes 314,315, continues tune-up data next time and transmits.
Fig. 4 shows the structure chart 400 facilitated using present system connection relationship.Total includes the IDE of PLC Software 401, upper computer software 402, central server 403, AP404, PLC device 405.PLC debugs the IDE by original PLC With the serial ports of PLC device is direct-connected becomes through host computer, central server, the telecommunication network debugging system of AP.Basis is carried out to match It sets, sets up remote debugging system, the data communication such as Fig. 3 300 can be carried out.

Claims (6)

1. a kind of remote system for PLC device debugging, it is characterised in that: system is set by PLC device, industrial gateway concentrator The IDE software composition of standby (AP), central server, virtual serial port bridge joint upper computer software and PLC, physics wiring industrial gateway collection Middle device equipment (AP) is connected by RS232/RS485 with traditional PLC device, and virtual serial port bridging software and the IDE of corresponding PLC are soft Part is connected by virtual serial port, and transport layer protocol central server is connected with virtual serial port bridging software by http protocol, with Industrial gateway concentrator devices (AP) are connected by MQTT agreement, and industrial gateway concentrator devices (AP) are connected by physics wiring PLC device is mutually sent information in a manner of transparent transmission, and virtual serial port bridging software is in a manner of transparent transmission by information Mutually send.
2. a kind of remote system for PLC device debugging according to claim 1, it is characterised in that: the industry Gateway concentrator devices (industrial gateway concentrator devices (AP)) include micro-control unit, DC power supply (DC) interface, MiniUSB Interface, RS485 interface.
3. a kind of remote system for PLC device debugging according to claim 1, it is characterised in that: the center Server is compatible with http protocol and MQTT agreement as data medium and retransmission center.
4. a kind of remote system for PLC device debugging according to claim 1, it is characterised in that: described is virtual Serial port bridging upper computer software includes device configuration, virtual serial port bridge configuration, network communication module and serial communication modular.
5. a kind of remote system for PLC device debugging according to claim 1, it is characterised in that: described is virtual Serial port bridging function is used to simulative serial port environment, transmits the IDE software data information of PLC.
6. a kind of remote method for PLC device debugging according to claim 1, it is characterised in that: the transparent transmission Mechanism, comprising the following steps:
Step 1, equipment selects, driving installation, and link is connected in relevant parameter configuration;
Step 2, tune-up data information is sent to virtual serial port bridge joint upper computer software by the IDE software of PLC;
Step 3, virtual serial port bridges upper computer software and is sent to central server by http protocol;
Step 4, central server forwards the data to specified industrial gateway equipment by MQTT agreement as terminal;
Step 5, data are transferred data to PLC device by RS232/RS485 interface by industrial gateway equipment;
Step 6, after PLC receives data information, the IDE software of PLC is sent the data to by former link.
CN201910261724.4A 2019-04-02 2019-04-02 A kind of remote system and its method for PLC device debugging Pending CN109884978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910261724.4A CN109884978A (en) 2019-04-02 2019-04-02 A kind of remote system and its method for PLC device debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910261724.4A CN109884978A (en) 2019-04-02 2019-04-02 A kind of remote system and its method for PLC device debugging

Publications (1)

Publication Number Publication Date
CN109884978A true CN109884978A (en) 2019-06-14

Family

ID=66935790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910261724.4A Pending CN109884978A (en) 2019-04-02 2019-04-02 A kind of remote system and its method for PLC device debugging

Country Status (1)

Country Link
CN (1) CN109884978A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365521A (en) * 2019-06-18 2019-10-22 上海电器科学研究所(集团)有限公司 Equipment remote debugging method based on cloud gateway in a kind of novel maintenance system
CN110879564A (en) * 2019-10-31 2020-03-13 军创(厦门)自动化科技有限公司 Remote debugging and monitoring method and system for PLC (programmable logic controller)
CN111381553A (en) * 2020-02-19 2020-07-07 北京航天智造科技发展有限公司 VPN technology-based equipment and method and system for remotely maintaining PLC
CN111565221A (en) * 2020-04-24 2020-08-21 株洲嘉成科技发展有限公司 CODEPYS remote debugging module and method
CN112083723A (en) * 2020-08-29 2020-12-15 苏州优智达机器人有限公司 Self-walking equipment, control system and control method
CN113448310A (en) * 2021-06-01 2021-09-28 阳春新钢铁有限责任公司 Direct-current transmission device debugging method based on PLC routing function
CN116032712A (en) * 2022-12-28 2023-04-28 北京力控元通科技有限公司 Industrial equipment remote maintenance system and method based on N2N technology
CN118642426A (en) * 2024-08-16 2024-09-13 烟台欧能电子科技有限公司 Remote monitoring and debugging method, system and terminal based on PLC
CN118642426B (en) * 2024-08-16 2024-11-12 烟台欧能电子科技有限公司 Remote monitoring and debugging method, system and terminal based on PLC

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202406145U (en) * 2011-12-10 2012-08-29 中铁隧道装备制造有限公司 Shield programmable logic controller (PLC) remote debugging system based on virtual private network
CN103312600A (en) * 2013-05-15 2013-09-18 杜繁荣 Industrial bus gateway device for realizing I/O (Input/Output) level control based on application of wide area network
CN104820395A (en) * 2015-04-15 2015-08-05 江苏大学 Wireless remote water quality multiparameter measurement and control system based on king view and PLC, and method thereof
CN106444610A (en) * 2016-11-06 2017-02-22 杭州电子科技大学 A PLC remote code updating system and method
CN107734042A (en) * 2017-10-24 2018-02-23 上海电器科学研究所(集团)有限公司 A kind of inexpensive remote debugging system and method
CN107894744A (en) * 2017-11-20 2018-04-10 上海兰宝传感科技股份有限公司 A kind of intelligent environment protection remote supervision system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202406145U (en) * 2011-12-10 2012-08-29 中铁隧道装备制造有限公司 Shield programmable logic controller (PLC) remote debugging system based on virtual private network
CN103312600A (en) * 2013-05-15 2013-09-18 杜繁荣 Industrial bus gateway device for realizing I/O (Input/Output) level control based on application of wide area network
CN104820395A (en) * 2015-04-15 2015-08-05 江苏大学 Wireless remote water quality multiparameter measurement and control system based on king view and PLC, and method thereof
CN106444610A (en) * 2016-11-06 2017-02-22 杭州电子科技大学 A PLC remote code updating system and method
CN107734042A (en) * 2017-10-24 2018-02-23 上海电器科学研究所(集团)有限公司 A kind of inexpensive remote debugging system and method
CN107894744A (en) * 2017-11-20 2018-04-10 上海兰宝传感科技股份有限公司 A kind of intelligent environment protection remote supervision system and method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365521A (en) * 2019-06-18 2019-10-22 上海电器科学研究所(集团)有限公司 Equipment remote debugging method based on cloud gateway in a kind of novel maintenance system
CN110879564A (en) * 2019-10-31 2020-03-13 军创(厦门)自动化科技有限公司 Remote debugging and monitoring method and system for PLC (programmable logic controller)
CN110879564B (en) * 2019-10-31 2020-12-18 军创(厦门)自动化科技有限公司 Remote debugging and monitoring method and system for PLC (programmable logic controller)
CN111381553A (en) * 2020-02-19 2020-07-07 北京航天智造科技发展有限公司 VPN technology-based equipment and method and system for remotely maintaining PLC
CN111565221A (en) * 2020-04-24 2020-08-21 株洲嘉成科技发展有限公司 CODEPYS remote debugging module and method
CN112083723A (en) * 2020-08-29 2020-12-15 苏州优智达机器人有限公司 Self-walking equipment, control system and control method
CN113448310A (en) * 2021-06-01 2021-09-28 阳春新钢铁有限责任公司 Direct-current transmission device debugging method based on PLC routing function
CN116032712A (en) * 2022-12-28 2023-04-28 北京力控元通科技有限公司 Industrial equipment remote maintenance system and method based on N2N technology
CN116032712B (en) * 2022-12-28 2023-08-11 北京力控元通科技有限公司 Industrial equipment remote maintenance system and method based on N2N technology
CN118642426A (en) * 2024-08-16 2024-09-13 烟台欧能电子科技有限公司 Remote monitoring and debugging method, system and terminal based on PLC
CN118642426B (en) * 2024-08-16 2024-11-12 烟台欧能电子科技有限公司 Remote monitoring and debugging method, system and terminal based on PLC

Similar Documents

Publication Publication Date Title
CN109884978A (en) A kind of remote system and its method for PLC device debugging
CN102143458A (en) Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network
CN101964737A (en) Protocol conversion device based on PROFIBUS-DP master station field bus
CN111145523A (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN201732467U (en) Multi-point and multi-type data acquisition system based on wireless sensor network
CN103701843A (en) Information synchronization data transmission method and system
CN102332971B (en) Field-bus full duplex reliable communication method for numerical control system
CN103561032B (en) The method of Modbus device network communication under ICP/IP protocol
CN103841587B (en) A kind of implementation method, the apparatus and system of Internet of Things Convergence gateway
CN107918375A (en) A kind of equipment high in the clouds monitoring management system
CN113543185B (en) Automatic-opening-assistance-based 5G high-density base station rapid operation method and system
CN104468703A (en) Communication method and system for distributed small power source and upper computer
CN1780334B (en) Remote testing device and method for telephone connection service of mobile communication terminals
CN104022901B (en) Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller)
CN106549840A (en) Data interaction system, method and device
CN208076997U (en) A kind of equipment high in the clouds monitoring management system
CN101860410B (en) Communication system of cross station spread cable interface
CN111190357B (en) Method for realizing real-time simulation platform of electric power information physical system based on original socket
CN205247603U (en) Solve communication extension terminal of power consumption information collection system up channel blind area
CN105702007A (en) WiFi technology based wireless remote meter reading module for intelligent electric meters
CN111756734A (en) Internal interconnection communication interface and protocol of frequency converter
CN109327832B (en) Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof
CN102970701A (en) Base station, base station control system and method
CN110944299A (en) Multicast method and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614