CN106444610A - A PLC remote code updating system and method - Google Patents
A PLC remote code updating system and method Download PDFInfo
- Publication number
- CN106444610A CN106444610A CN201610968753.0A CN201610968753A CN106444610A CN 106444610 A CN106444610 A CN 106444610A CN 201610968753 A CN201610968753 A CN 201610968753A CN 106444610 A CN106444610 A CN 106444610A
- Authority
- CN
- China
- Prior art keywords
- plc
- server
- module
- serial port
- code
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a PLC remote code updating system and method. According to the invention, an embedded data transmission terminal with a communication function is installed in the industrial field where a PLC is working. A connection between the embedded data transmission terminal and a server is established, and then a general client terminal is connected to the server. Network connection between the PLC module and the general client terminal is established to realize an effect that the PLC module and the general client terminal are logically in direction connection to finally realize PLC remote code updating on the general client terminal through PLC programming software. Thus PLC remote code updating can be effectively carried out, and arrangement of specially-assigned persons to the industrial field is not needed, thus saving manpower, reducing the cost of industrial control and improving production efficiency.
Description
Technical field
The present invention relates to a kind of system of PLC remote-code-update in automation control area, more particularly, to PLC is carried out
The system and method for code update.
Background technology
Programmable logic controller (PLC)(Programmable Logic Controller, PLC), it is that one kind can using a class
The memory of programming, for its internally stored program, typically by power module, central processing unit(CPU), memory, input defeated
The module compositions such as outgoing interface circuit, functional module, communication module, can with execution logic computing, sequential control, regularly, count with
Arithmetical operation etc. instructs, and by the various types of machinery of numeral or analog pattern input/output control or production process, because can
By property height, strong applicability, be easy to learn and use, easy to maintenance, small volume the features such as be widely used in industrial automation and industry
Control field.
At present, the method for general PLC code update is by RS232 Serial Port Line, twisted pair network cable or MPI connecting line etc.
Connecting line is directly connected to PLC and computer, and then execution PLC code update operation in PLC programming software, is by physical circuit
On be directly connected to update PLC code.Therefore, when PLC breaks down or code upgrade to be carried out, need to PLC code
When being updated, staff to be operated to industry spot.So time-consuming, laborious and cost is huge.
Content of the invention
For above-mentioned defect, the present invention provides a kind of system and method for PLC remote-code-update, can save manpower
Spending, time-consuming.
On the one hand provide a kind of system of PLC remote-code-update, including:
PLC module, for receiving the PLC code updating.
Embedded data transmission terminal, for receiving the data is activation being derived from server to PLC module, receives PLC module
Data is activation to server.
Connecting line, for connecting PLC module and embedded data transmission terminal.
Server, for forwarding data.
Universal Subscriber terminal, it further comprises:
PLC programming software, is used for writing PLC code, initiates PLC code update.
Virtual serial port module, for creating virtual serial port, and connects PLC programming software server as intermediary.
On the other hand provide a kind of method of PLC remote-code-update, comprise the steps:
1)Setting embedded data transmission terminal server, embedded data transmission terminal is passed through network connection to service
Device.
2)Setting virtual serial port module, creates and arranges virtual serial port, virtual serial port module is connected to server, and will
Virtual serial port module is connected to PLC programming software by virtual serial port.
3)It is remote that embedded data transmission terminal enters into PLC according to the control instruction of server or local control instruction
The pattern of Cheng Gengxin.
4)PLC programming software sends PLC code update packet, through virtual serial port module, server, embedded data
Transmission terminal is sent to PLC module.
5)PLC module gives a response after receiving PLC code update packet, and response data bag transmits through embedded data
Terminal, server, virtual serial port module are sent to PLC programming software.
6)Repeat step 4)With step 5), until PLC programming software receives the response data that PLC code update completes
Bag.
Step 4)Middle PLC programming software sends PLC code update packet, through virtual serial port module, server, embeds
The detailed step that formula data transmission terminal is sent to PLC module includes:Virtual serial port module receives what PLC programming software sent
After PLC code update packet, according to default internal agreement, PLC code update packet is sent to server;Server connects
After receiving the PLC code update packet of virtual serial port module, transfer it to corresponding embedded according to default internal agreement
Data transmission terminal;Sent out by connecting line after the legitimacy of embedded data transmission terminal confirmation PLC code update packet
Give PLC module.
Step 5)Middle PLC module gives a response after receiving PLC code update packet, and response data bag is through embedded number
Include according to the detailed step that transmission terminal, server, virtual serial port module are sent to PLC programming:PLC module receives PLC code
After updated data package, make corresponding response, and response data bag is sent to embedded data transmission terminal;Embedded data
Response data bag is sent to server according to default internal agreement by transmission terminal;Server confirms the legal of response data bag
Property, then according to default internal agreement is sent to and gives virtual serial port module;After virtual serial port module receives response data bag, lead to
Cross virtual serial port and be sent to PLC programming software;PLC programming software judges whether to complete after receiving response data bag, if PLC is long-range
Update not completing and then send next PLC code update packet.
The present invention is the embedded data transmission terminal that the industry spot working in PLC installs with communication function, sets up
Connection between embedded data transmission terminal and server, is then connected to server by client terminal.
Set up the network connection between PLC module and Universal Subscriber terminal, realize logically PLC module and Universal Subscriber
The effect that terminal is directly connected to, final realization carries out PLC remote code more by PLC programming software in Universal Subscriber terminal
Newly.Effectively PLC remote-code-update can be carried out, special messenger need not be arranged to arrive industry spot, time-consuming, saving manpower, reduces
The cost of Industry Control, improve production efficiency.
Brief description
Fig. 1 is a kind of basic framework schematic diagram of PLC remote-code-update system.
Fig. 2 is a kind of module diagram of embedded data transmission terminal in PLC remote-code-update system.
Fig. 3 is a kind of flow chart of steps of PLC remote-code-update method.
Specific embodiment
Below in conjunction with accompanying drawing, the present invention is further described.
In order that the technological means of the present invention, creation characteristic, reached purpose and effect should be readily appreciated that and understand, with reference to
It is specifically illustrating and be further elaborated on the present invention.
As shown in figure 1, a kind of system of PLC remote-code-update, including:
PLC module, for receiving the PLC code updating;
Embedded data transmission terminal, for receiving the data is activation being derived from server to PLC module, receives the number of PLC module
According to being sent to server;
Connecting line, for connecting PLC module and embedded data transmission terminal;
Server, for forwarding data;
Universal Subscriber terminal, it further comprises:
PLC programming software, is used for writing PLC code, initiates PLC code update,
Virtual serial port module, for creating virtual serial port, and connects PLC programming software server as intermediary.
Wherein connecting line is one of RS232, twisted pair network cable, MPI connecting line etc., and the species of connecting line depends on PLC
Which kind of connecting line is module carry out using during code update.
As shown in Fig. 2 embedded data transmission terminal includes:Central microprocessor, power module, GPRS module, network interface,
Communication interface, SD card memory module, JTAG debugging interface, central microprocessor respectively with power module, GPRS module, network interface,
Communication interface, SD card memory module, JTAG debugging interface connect.Central microprocessor adopts LPC1768 model chip.
Wherein, embedded data transmission terminal can be connected to Internet by netting twine, then with server communication, also may be used
So that Internet is connected to by GPRS module, then with server communication.
As shown in figure 3, a kind of method of PLC remote-code-update, comprise the steps:
1)Setting embedded data transmission terminal server, embedded data transmission terminal is passed through network connection to service
Device.
2)Setting virtual serial port module, creates and arranges virtual serial port, virtual serial port module is connected to server, and will
Virtual serial port module is connected to PLC programming software by virtual serial port.
3)It is remote that embedded data transmission terminal enters into PLC according to the control instruction of server or local control instruction
The pattern of Cheng Gengxin.
4)PLC programming software sends PLC code update packet, through virtual serial port module, server, embedded data
Transmission terminal is sent to PLC module.
5)PLC module gives a response after receiving PLC code update packet, and response data bag transmits through embedded data
Terminal, server, virtual serial port module are sent to PLC programming software.
6)Repeat step 4)With step 5), until PLC programming software receives the response data that PLC code update completes
Bag.
Step 4)Middle PLC programming software sends PLC code update packet, through virtual serial port module, server, embeds
The detailed step that formula data transmission terminal is sent to PLC module includes:Virtual serial port module receives what PLC programming software sent
After PLC code update packet, according to default internal agreement, PLC code update packet is sent to server;Server connects
After receiving the PLC code update packet of virtual serial port module, transfer it to corresponding embedded according to default internal agreement
Data transmission terminal;Sent out by connecting line after the legitimacy of embedded data transmission terminal confirmation PLC code update packet
Give PLC module.
Step 5)Middle PLC module gives a response after receiving PLC code update packet, and response data bag is through embedded number
Include according to the detailed step that transmission terminal, server, virtual serial port module are sent to PLC programming:PLC module receives PLC code
After updated data package, make corresponding response, and response data bag is sent to embedded data transmission terminal;Embedded data
Response data bag is sent to server according to default internal agreement by transmission terminal;Server confirms the legal of response data bag
Property, then according to default internal agreement is sent to and gives virtual serial port module;After virtual serial port module receives response data bag, lead to
Cross virtual serial port and be sent to PLC programming software;PLC programming software judges whether to complete after receiving response data bag, if PLC is long-range
Update not completing and then send next PLC code update packet.
If step 5)Middle PLC programming software does not receive PLC code update response data bag at the appointed time, or receives
To incorrect PLC code update response data bag, then PLC programming software will retransmit this PLC code update packet.
Wherein, virtual serial port module and embedded data transmission terminal are all that TCP connects with the connection of server foundation,
The reliability of data transfer is ensured on big degree, and the default internal agreement communicating is identical;Default internal agreement is wrapped
Contain check field, virtual serial port module, embedded data transmission terminal and server, after receiving packet, first check school
Test the correctness of field, if check field is incorrect, abandon this packet, and send retransmission data bag and ask to sender
Ask and resend.
Claims (4)
1. a kind of PLC remote-code-update system is it is characterised in that include:
PLC module, for receiving the PLC code updating;
Embedded data transmission terminal, for receiving the data is activation being derived from server to PLC module, receives the number of PLC module
According to being sent to server;
Connecting line, for connecting PLC module and embedded data transmission terminal;
Server, for forwarding data;
Universal Subscriber terminal, including:
PLC programming software, is used for writing PLC code, initiates PLC code update,
Virtual serial port module, for creating virtual serial port, and connects PLC programming software server as intermediary.
2. a kind of PLC remote-code-update method, usage right requires the system described in 1 it is characterised in that comprising the steps:
1)Setting embedded data transmission terminal server, embedded data transmission terminal is passed through network connection to service
Device;
2)Setting virtual serial port module, creates and arranges virtual serial port, virtual serial port module is connected to server, and will be virtual
Serial port module is connected to PLC programming software by virtual serial port;
3)Embedded data transmission terminal enters into PLC remotely more according to the control instruction of server or local control instruction
New pattern;
4)PLC programming software sends PLC code update packet, through virtual serial port module, server, embedded data transmission
Terminal is sent to PLC module;
5)PLC module gives a response after receiving PLC code update packet, and response data bag transmits eventually through embedded data
End, server, virtual serial port module are sent to PLC programming software;
6)Repeat step 4)With step 5), until PLC programming software receives the response data bag that PLC code update completes.
3. a kind of PLC remote-code-update method according to claim 2 it is characterised in that:Step 4)Specifically:Virtual
After serial port module receives the PLC code update packet that PLC programming software sends, according to default internal agreement by PLC code
Updated data package is sent to server;After server receives the PLC code update packet of virtual serial port module, according to default
Internal agreement transfers it to corresponding embedded data transmission terminal;Embedded data transmission terminal confirms PLC code update
After the legitimacy of packet, PLC module is sent to by connecting line.
4. a kind of PLC remote-code-update method according to claim 2 it is characterised in that:Step 4)Specifically:Step
5)Specifically:After PLC module receives PLC code update packet, make corresponding response, and response data bag is sent to
Embedded data transmission terminal;Response data bag is sent to service according to default internal agreement by embedded data transmission terminal
Device;Server confirms the legitimacy of response data bag, then according to default internal agreement is sent to and gives virtual serial port module;Empty
After plan serial port module receives response data bag, PLC programming software is sent to by virtual serial port;PLC programming software receives response
Judge whether after packet to complete, if long-range renewal of PLC does not complete, send next PLC code update packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610968753.0A CN106444610A (en) | 2016-11-06 | 2016-11-06 | A PLC remote code updating system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610968753.0A CN106444610A (en) | 2016-11-06 | 2016-11-06 | A PLC remote code updating system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106444610A true CN106444610A (en) | 2017-02-22 |
Family
ID=58179706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610968753.0A Pending CN106444610A (en) | 2016-11-06 | 2016-11-06 | A PLC remote code updating system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106444610A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600309A (en) * | 2018-03-21 | 2018-09-28 | 浙江佳乐科仪股份有限公司 | A kind of PLC device operational system based on DTU transparent transmissions |
CN109814480A (en) * | 2019-01-18 | 2019-05-28 | 广州宁基智能系统有限公司 | Virtual interactive interface method and system between PLC and line traffic control program |
CN109884971A (en) * | 2019-02-20 | 2019-06-14 | 深圳市显控科技股份有限公司 | Long-range control method, apparatus and system |
CN109884978A (en) * | 2019-04-02 | 2019-06-14 | 浙江捷诺电器股份有限公司 | A kind of remote system and its method for PLC device debugging |
CN111045379A (en) * | 2019-12-25 | 2020-04-21 | 深圳市显控科技股份有限公司 | Equipment remote monitoring method and system |
CN111756858A (en) * | 2020-07-03 | 2020-10-09 | 潍柴动力股份有限公司 | Remote development processing system, method and device of embedded equipment |
CN113448310A (en) * | 2021-06-01 | 2021-09-28 | 阳春新钢铁有限责任公司 | Direct-current transmission device debugging method based on PLC routing function |
CN116185453A (en) * | 2023-02-23 | 2023-05-30 | 广州达谙信息科技有限公司 | Method and system for remote upgrading of low-delay Codes controller |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008146550A (en) * | 2006-12-13 | 2008-06-26 | Sumitomo Electric Ind Ltd | Communication system and communication device |
CN101995556A (en) * | 2009-08-18 | 2011-03-30 | 上海新永电源有限公司 | Remote fault detection and processing system of DC power supply screen |
US20130104117A1 (en) * | 2011-10-24 | 2013-04-25 | Texas Instruments Incorporated | Data Concentrator Initiated Multicast Firmware Upgrade |
CN103414741A (en) * | 2013-07-02 | 2013-11-27 | 深圳市汇川技术股份有限公司 | Method and system for remote upgrade of PLC (Programmable Logic Controller) |
CN104391718A (en) * | 2014-11-20 | 2015-03-04 | 杭州电子科技大学 | EPLC (Embedded Programmable Logic Controller) program remote downloading method |
CN105159109A (en) * | 2015-08-20 | 2015-12-16 | 浙江中科领航汽车电子有限公司 | PLC controller remote upgrade system |
CN105467921A (en) * | 2014-09-11 | 2016-04-06 | 沈阳机床(集团)设计研究院有限公司上海分公司 | Remote online data updating system and method of soft PLC module |
-
2016
- 2016-11-06 CN CN201610968753.0A patent/CN106444610A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008146550A (en) * | 2006-12-13 | 2008-06-26 | Sumitomo Electric Ind Ltd | Communication system and communication device |
CN101995556A (en) * | 2009-08-18 | 2011-03-30 | 上海新永电源有限公司 | Remote fault detection and processing system of DC power supply screen |
US20130104117A1 (en) * | 2011-10-24 | 2013-04-25 | Texas Instruments Incorporated | Data Concentrator Initiated Multicast Firmware Upgrade |
CN103414741A (en) * | 2013-07-02 | 2013-11-27 | 深圳市汇川技术股份有限公司 | Method and system for remote upgrade of PLC (Programmable Logic Controller) |
CN105467921A (en) * | 2014-09-11 | 2016-04-06 | 沈阳机床(集团)设计研究院有限公司上海分公司 | Remote online data updating system and method of soft PLC module |
CN104391718A (en) * | 2014-11-20 | 2015-03-04 | 杭州电子科技大学 | EPLC (Embedded Programmable Logic Controller) program remote downloading method |
CN105159109A (en) * | 2015-08-20 | 2015-12-16 | 浙江中科领航汽车电子有限公司 | PLC controller remote upgrade system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600309A (en) * | 2018-03-21 | 2018-09-28 | 浙江佳乐科仪股份有限公司 | A kind of PLC device operational system based on DTU transparent transmissions |
CN109814480A (en) * | 2019-01-18 | 2019-05-28 | 广州宁基智能系统有限公司 | Virtual interactive interface method and system between PLC and line traffic control program |
CN109814480B (en) * | 2019-01-18 | 2021-10-08 | 广州宁基智能系统有限公司 | Visual interaction method and system between PLC and wire control program |
CN109884971A (en) * | 2019-02-20 | 2019-06-14 | 深圳市显控科技股份有限公司 | Long-range control method, apparatus and system |
CN109884978A (en) * | 2019-04-02 | 2019-06-14 | 浙江捷诺电器股份有限公司 | A kind of remote system and its method for PLC device debugging |
CN111045379A (en) * | 2019-12-25 | 2020-04-21 | 深圳市显控科技股份有限公司 | Equipment remote monitoring method and system |
CN111756858A (en) * | 2020-07-03 | 2020-10-09 | 潍柴动力股份有限公司 | Remote development processing system, method and device of embedded equipment |
CN113448310A (en) * | 2021-06-01 | 2021-09-28 | 阳春新钢铁有限责任公司 | Direct-current transmission device debugging method based on PLC routing function |
CN116185453A (en) * | 2023-02-23 | 2023-05-30 | 广州达谙信息科技有限公司 | Method and system for remote upgrading of low-delay Codes controller |
CN116185453B (en) * | 2023-02-23 | 2024-01-26 | 广州达谙信息科技有限公司 | Method and system for remote upgrading of low-delay Codes controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106444610A (en) | A PLC remote code updating system and method | |
CN103942080B (en) | Electronic device information transmission method | |
CN108062230B (en) | Serial port transparent transmission and program updating system and method in Internet range | |
CN103338226B (en) | The debugging of engineering machinery remote software and upgrade-system and method | |
CN102279756A (en) | CPLD (Complex Programmable Logic Device) firmware updating method | |
CN202995711U (en) | Device for remotely controlling field programmable gate array (FPGA) prototype verification system | |
CN102270168A (en) | Method for automatically detecting serial port information | |
CN104754027A (en) | Cross-network communication method and communication system | |
CN102694695A (en) | Serial communication configuration and debugging method based on Ethernet communication protocol | |
CN105335316A (en) | Motor assembling line serial port server based on cloud computation | |
CN104469501A (en) | Set top box automatic set-up method based on serial communication protocol | |
CN107479531A (en) | The access device communication protocol frame format information of Embedded PLC remotely determines method | |
CN111203869B (en) | Robot system maintenance method and device, robot and readable storage medium | |
CN102609353A (en) | Method, device and system for managing program debugging | |
CN104391718A (en) | EPLC (Embedded Programmable Logic Controller) program remote downloading method | |
CN108897558A (en) | The FPGA remote online upgrade method of safety based on Ethernet protocol | |
JPWO2015063864A1 (en) | Motor control program transfer system, host controller, motor control device, and motor control program transfer method | |
CN205656607U (en) | System is updated to chip procedure | |
CN104007724A (en) | Excavator remote fault diagnosis system and method based on LabVIEW | |
CN103838587A (en) | Control system remote upgrading method and device based on GPRS | |
CN105224453A (en) | The automatic test approach of system compatibility and device | |
CN105407003B (en) | A kind of data of 1553 bus add discharging method | |
CN111182031B (en) | PLC (programmable logic controller) equipment remote downloading method and system | |
CN101997646A (en) | USB and NAND FLASH based data packaging and transmitting method | |
CN114741293B (en) | Modbus communication automatic test method of industrial control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170222 |