CN108563211B - Programmable logic controller detection system and method - Google Patents

Programmable logic controller detection system and method Download PDF

Info

Publication number
CN108563211B
CN108563211B CN201711407599.0A CN201711407599A CN108563211B CN 108563211 B CN108563211 B CN 108563211B CN 201711407599 A CN201711407599 A CN 201711407599A CN 108563211 B CN108563211 B CN 108563211B
Authority
CN
China
Prior art keywords
address
programmable logic
hardware
logic controller
network
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.)
Active
Application number
CN201711407599.0A
Other languages
Chinese (zh)
Other versions
CN108563211A (en
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.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology 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 Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN201711407599.0A priority Critical patent/CN108563211B/en
Publication of CN108563211A publication Critical patent/CN108563211A/en
Application granted granted Critical
Publication of CN108563211B publication Critical patent/CN108563211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a programmable logic controller detection system and a method, wherein the detection system comprises intelligent hardware, a debugging server and a programmable logic controller, the intelligent hardware is connected to the debugging server through a public network, and the programmable logic controller is connected to the intelligent hardware through a local area network; the intelligent hardware comprises an address acquisition unit and an address forwarding unit, the programmable logic controller comprises an address response unit, and the debugging server comprises an address recording unit. According to the invention, the network address and the hardware address of each programmable logic controller are acquired through the intelligent hardware and uploaded to the debugging server, so that the upper computer can directly obtain the network address of each programmable logic controller from the debugging server without confirming the network address of the target programmable logic controller on site, and the debugging efficiency is greatly improved.

Description

Programmable logic controller detection system and method
Technical Field
The present invention relates to the field of programmable logic controller operation, and more particularly, to a detection system and method for a programmable logic controller.
Background
A Programmable Logic Controller (PLC), which is an electronic device designed for industrial production and operated by digital operation, uses a Programmable memory for storing its internal instructions (including user-oriented instructions such as Logic operation, sequence control, timing, counting, and arithmetic operation), and controls various types of machinery or production processes by digital or analog input/output, and is a core part of industrial control.
At present, some network programmable logic controllers in industrial application environments generally perform program uploading, downloading and debugging in a local area network through matched host computer debugging software. The debugging is carried out through the network, and the method has the advantages of high speed and convenience and flexibility in debugging.
However, the network-based PLC debugging can be performed only when the IP (Internet Protocol) address of the target PLC is known, otherwise, the IP address of the PLC needs to be confirmed on site one by one, which greatly reduces the efficiency of PLC debugging.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a detection system and method for a programmable logic controller, aiming at the problem of low PLC debugging efficiency.
The technical solution for solving the above technical problems is to provide a detection system for a programmable logic controller, comprising an intelligent hardware, a debugging server and a programmable logic controller, wherein the intelligent hardware is connected to the debugging server through a public network, and the programmable logic controller is connected to the intelligent hardware through a local area network; the intelligent hardware comprises an address acquisition unit and an address forwarding unit, the programmable logic controller comprises an address response unit, and the debugging server comprises an address recording unit; wherein:
the address acquisition unit is used for sending an address acquisition request to the programmable logic controller through the local area network;
the address response unit is used for sending the network address and the hardware address of the address response unit to the intelligent hardware after receiving the address acquisition request;
the address forwarding unit is used for sending the network address and the hardware address from the programmable logic controller to the debugging server;
and the address recording unit is used for recording the network address and the hardware address of the programmable logic controller from the intelligent hardware.
In the programmable logic controller detection system, the intelligent hardware further comprises a login request unit and a virtual network card, and the debugging server comprises a login authentication unit; wherein:
the login request unit and the login authentication unit are used for realizing login authentication between the intelligent hardware and the debugging server; the virtual network card is created by the intelligent hardware after login authentication is passed and is used for sending the network address and the hardware address of the programmable logic controller to the debugging server.
In the detection system of the programmable logic controller, the debugging server further comprises an address pushing unit for pushing the recorded network address and hardware address of the programmable logic controller to a logged upper computer, and the upper computer is connected to the debugging server through a public network.
In the detection system of the programmable logic controller, the address acquisition request is an address resolution protocol request, and the address acquisition unit sends the address resolution protocol request to all programmable logic controllers in the local area network in a broadcasting manner; the address forwarding unit sends network addresses and hardware addresses from all programmable logic controllers to the debug server.
In the programmable logic controller detection system, the address acquisition unit sends address acquisition requests to all programmable logic controllers at preset time intervals; the address forwarding unit sends the network address and the hardware address from the programmable logic controller to the debugging server at the preset time interval; and the address recording unit updates the network address and the hardware address according to the received network address and the received hardware address of the programmable logic controller.
The invention also provides a detection method of the programmable logic controller, which comprises the following steps:
the intelligent hardware sends an address acquisition request to the programmable logic controller through the local area network;
the programmable logic controller sends the network address and the hardware address of the programmable logic controller to the intelligent hardware after receiving the address acquisition request;
the intelligent hardware sends the network address and the hardware address from the programmable logic controller to a debugging server through a public network;
the debugging server records the network address and the hardware address of the programmable logic controller from the intelligent hardware.
In the detection method of the programmable logic controller of the present invention, the detection method further includes: and the intelligent hardware and the debugging server perform login authentication, a virtual network card is created after the login authentication is passed, and the intelligent hardware sends the network address and the hardware address of the programmable logic controller to the debugging server through the virtual network card.
In the detection method of the programmable logic controller of the present invention, the detection method further includes: and the debugging server pushes the recorded network address and hardware address of the programmable logic controller to a logged upper computer, and the upper computer is connected to the debugging server through a public network.
In the method for detecting the programmable logic controller, the address acquisition request is an address resolution protocol request, and the intelligent hardware sends the address resolution protocol request to all programmable logic controllers in the local area network in a broadcasting mode; the intelligent hardware sends the network address and the hardware address from all the programmable logic controllers to the debugging server through a public network.
In the method for detecting the programmable logic controller, the intelligent hardware sends address acquisition requests to all the programmable logic controllers at preset time intervals, and sends network addresses and hardware addresses from the programmable logic controllers to the debugging server at the preset time intervals; and the debugging server updates the network address and the hardware address according to the received network address and the received hardware address of the programmable logic controller.
According to the programmable logic controller detection system and method, the network address and the hardware address of each programmable logic controller are acquired through the intelligent hardware and uploaded to the debugging server, so that the upper computer can directly obtain the network address of each programmable logic controller from the debugging server without confirming the network address of the target programmable logic controller on site, and the debugging efficiency is greatly improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a programmable logic controller detection system according to the present invention;
FIG. 2 is a diagram of an embodiment of an intelligent hardware, a debug server, and a programmable logic controller in a PLC detection system according to the present invention;
FIG. 3 is a diagram of another embodiment of the PLC detection system for intelligent hardware, debugging server and PLC of the present invention;
fig. 4 is a flowchart illustrating a method for detecting a plc according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of an embodiment of a detection system for a programmable logic controller according to the present invention, where the detection system is used to obtain a network address of the programmable logic controller, so that an upper computer 1 can conveniently perform operations, such as debugging, on a programmable logic controller 2 through a public network 5. The plc detection system in this embodiment includes the intelligent hardware 3 and the debugging server 4 in addition to the public network 5 and the local area network 6. Wherein the intelligent hardware 3 is connected to the debugging server 4 through a public network 5, and the programmable logic controller 2 is connected to the intelligent hardware 3 through a local area network 6. The public network 5 may be the internet, an operator network (e.g., a 3G network, a 4G network, etc.); the intelligent hardware 3 may be a device installed with an operating system (e.g., an embedded operating system); the debugging server 4 is provided with corresponding interfaces for the upper computer 1 and the intelligent hardware 3 to access; the local area network 6 may then be a field PLC network.
As shown in fig. 2, the intelligent hardware 3 includes an address acquisition unit 31 and an address forwarding unit 32, and the address acquisition unit 31 and the address forwarding unit 32 may be implemented by combining software running on the intelligent hardware 3; the programmable logic controller 2 comprises an address response unit 21, and the address response unit 21 can be implemented in combination with software running on the programmable logic controller 2; the debug server 4 includes an address recording unit 41, and this address recording unit 41 may be implemented by software running on the debug server 4.
The address acquisition unit 31 of the intelligent hardware 3 is configured to send an address acquisition request to all the programmable logic controllers 2 through the local area network 6. The Address acquisition request may be an Address Resolution Protocol (ARP) request, and the Address acquisition unit 31 may send the ARP request to all the programmable logic controllers 2 in the local area network 6 in a broadcast manner.
The address response unit 21 of the programmable logic controller 2 is configured to send the network address and the hardware address of the programmable logic controller to the intelligent hardware 3 after receiving the address acquisition request. For example, when the address acquisition request from the intelligent hardware 3 is an ARP request, the address response unit 21 returns the network address and the hardware address of itself to the intelligent hardware 3 by an ARP response. Specifically, the network address is an ip (internet protocol) address, and the hardware address may be a Media Access Control (MAC) address. Of course, in practical applications, the hardware address may also adopt other identifiers.
The address forwarding unit 32 of the intelligent hardware 3 is used to send the network address and the hardware address from the programmable logic controller 2 to the debug server 4. The address forwarding unit 32 may send the network addresses and the corresponding hardware addresses of all programmable logic controllers 2 within the local area network 6 to the debug server 4.
The address recording unit 41 of the debug server 4 is used for recording the network address and the hardware address of the programmable logic controller from the intelligent hardware 3. Specifically, the address recording unit 41 may store the network address and the hardware address of each programmable logic controller correspondingly, so that the corresponding network address may be obtained by querying the hardware address of the programmable logic controller. In this way, when the upper computer 1 remotely debugs the programmable logic controller 2, the network address of the programmable logic controller 2 can be directly acquired from the debugging server 4 without field confirmation.
In order to improve the security of the communication between the intelligent hardware 3 and the debugging server 4, as shown in fig. 3, the intelligent hardware 3 may further include a login request unit 33 and a virtual network card 34, and the debugging server 4 may further include a login authentication unit 43. The login request unit 33 and the login authentication unit 43 can perform login authentication between the intelligent hardware 3 and the debugging server 4 to confirm the validity, access authority, and the like of the intelligent hardware 3 (and also confirm the validity of the debugging server 4). The virtual network card 34 is created by the intelligent hardware 3 after the login authentication is passed, and is used to implement data transmission between the intelligent hardware 3 and the debugging server 4 (the data transmission process does not need to be authenticated again), that is, the address forwarding unit 32 sends the network address and the hardware address of the programmable logic controller 2 to the debugging server 4 through the virtual network card 34.
Specifically, the above-mentioned intelligent hardware 3 may have a built-in security chip (the security chip may be connected to the processor of the intelligent hardware 3 by using a USB interface or an SPI interface, etc.), and the security chip mainly includes a built-in security storage unit and an encryption/decryption operation unit, where the built-in security storage unit includes a trusted root certificate (including a certificate of the legal debugging server 4) and a self certificate, and the trusted root certificate and the self certificate are written in when the security chip leaves the factory. The login requesting unit 33 performs login authentication with the login authenticating unit 43 by using the root certificate and the self certificate (the debug server 4 stores the self certificates of all valid security chips). The login authentication process may use, for example, a TLS (Transport Layer Security)/SSL (Secure Socket Layer) protocol, so as to ensure identity authentication, key agreement, content encryption, and the like between the smart hardware 3 and the debug server 4.
The debugging server 4 may further include an address pushing unit 42 configured to push a network address of the programmable logic controller recorded by the debugging server 4 to the upper computer 1 logged in the debugging server 4, where the upper computer 1 is connected to the debugging server 4 through the public network 5. By this means, the upper computer 1 can obtain the network address of the target programmable logic controller 2 in real time, thereby realizing remote debugging.
Particularly, the plc detection system may also automatically refresh the network address of the plc recorded in the debug server 4, at this time, the address acquisition unit 31 of the intelligent hardware 3 sends an address acquisition request to all the plcs 2 in the lan 6 at a preset time interval, and the address forwarding unit 32 sends the network address and the hardware address from the plcs 2 to the debug server 4 at the preset time interval (when the plcs 2 are offline, the intelligent hardware 3 does not receive the corresponding network address and the corresponding hardware address); correspondingly, the address recording unit 41 of the debugging server 4 performs the updating operation of the network address and the hardware address according to the received network address and the hardware address of the programmable logic controller 2. In this way, the state of the programmable logic controller 2 stored in the debug server 4 can be kept up to date (the network address and the hardware address of the offline programmable logic controller can be deleted).
As shown in fig. 4, the present invention further provides a detection method for a programmable logic controller, which includes the following steps:
step S51: and the intelligent hardware sends address acquisition requests to all the programmable logic controllers through the local area network. The Address acquisition request may be an Address Resolution Protocol (ARP) request, and the ARP request may be sent to all the programmable logic controllers 2 in the local area network 6 in a broadcast manner.
Step S52: and after receiving an address acquisition request from the intelligent hardware, the programmable logic controller sends the network address and the hardware address of the programmable logic controller to the intelligent hardware. For example, when the address acquisition request from the intelligent hardware is an ARP request, the programmable logic controller returns the network address and the hardware address of the programmable logic controller to the intelligent hardware through an ARP response. Specifically, the network address is an ip (internet protocol) address, and the hardware address may be a Media Access Control (MAC) address. Of course, in practical applications, the hardware address may also adopt other identifiers.
Step S53: the intelligent hardware sends the network address and the hardware address from each programmable logic controller to the debugging server through the public network. In order to improve the safety, the steps can be executed after the intelligent hardware and the debugging server pass the login authentication, the intelligent hardware creates a virtual network card after the login authentication passes, and the network address and the hardware address of the programmable logic controller are sent to the debugging server through the virtual network card.
Step S54: and the debugging server records the network address and the hardware address of the programmable logic controller from the intelligent hardware. Specifically, the debugging server may store the network address and the hardware address of each programmable logic controller correspondingly, so that the corresponding network address may be obtained by querying the hardware address of the programmable logic controller.
The debugging server pushes the recorded network address and hardware address of the programmable logic controller to a logged upper computer (the upper computer is connected to the debugging server through a public network), so that the upper computer can directly acquire the network address of the programmable logic controller from the debugging server when remotely debugging the programmable logic controller without field confirmation.
Particularly, the method for detecting the programmable logic controller can also automatically refresh the network address of the programmable logic controller recorded in the debugging server, specifically, the intelligent hardware sends an address acquisition request to all the programmable logic controllers at a preset time interval, and sends the network address and the hardware address from the programmable logic controller to the debugging server at the preset time interval; and the debugging server updates the network address and the hardware address according to the received network address and the received hardware address of the programmable logic controller.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A programmable logic controller detection system is characterized by comprising intelligent hardware, a debugging server and a programmable logic controller, wherein the intelligent hardware is connected to the debugging server through a public network, and the programmable logic controller is connected to the intelligent hardware through a local area network; the intelligent hardware comprises an address acquisition unit and an address forwarding unit, the programmable logic controller comprises an address response unit, and the debugging server comprises an address recording unit; wherein:
the address acquisition unit is used for sending an address acquisition request to the programmable logic controller through the local area network;
the address response unit is used for sending the network address and the hardware address of the address response unit to the intelligent hardware after receiving the address acquisition request;
the address forwarding unit is used for sending the network address and the hardware address from the programmable logic controller to the debugging server;
and the address recording unit is used for recording the network address and the hardware address of the programmable logic controller from the intelligent hardware.
2. The plc detection system according to claim 1, wherein the intelligent hardware further includes a login request unit and a virtual network card, and the debugging server includes a login authentication unit; wherein:
the login request unit and the login authentication unit are used for realizing login authentication between the intelligent hardware and the debugging server; the virtual network card is created by the intelligent hardware after login authentication is passed and is used for sending the network address and the hardware address of the programmable logic controller to the debugging server.
3. The plc detection system according to claim 1, wherein the debugging server further includes an address pushing unit configured to push the recorded network address and hardware address of the plc to a logged upper computer, and the upper computer is connected to the debugging server through a public network.
4. The plc detection system of claim 1, wherein the address acquisition request is an arp request, and the address acquisition unit sends the arp request to all plcs in the lan in a broadcast manner; the address forwarding unit sends network addresses and hardware addresses from all programmable logic controllers to the debug server.
5. The plc detection system of claim 1, wherein the address acquisition unit sends address acquisition requests to all plcs at preset time intervals; the address forwarding unit sends the network address and the hardware address from the programmable logic controller to the debugging server at the preset time interval; and the address recording unit updates the network address and the hardware address according to the received network address and the received hardware address of the programmable logic controller.
6. A detection method of a programmable logic controller is characterized by comprising the following steps:
the intelligent hardware sends an address acquisition request to the programmable logic controller through the local area network;
the programmable logic controller sends the network address and the hardware address of the programmable logic controller to the intelligent hardware after receiving the address acquisition request;
the intelligent hardware sends the network address and the hardware address from the programmable logic controller to a debugging server through a public network;
the debugging server records the network address and the hardware address of the programmable logic controller from the intelligent hardware.
7. The plc detection method according to claim 6, further comprising: and the intelligent hardware and the debugging server perform login authentication, a virtual network card is created after the login authentication is passed, and the intelligent hardware sends the network address and the hardware address of the programmable logic controller to the debugging server through the virtual network card.
8. The plc detection method according to claim 6, further comprising: and the debugging server pushes the recorded network address and hardware address of the programmable logic controller to a logged upper computer, and the upper computer is connected to the debugging server through a public network.
9. The method of claim 6, wherein the address acquisition request is an ARP request, and the intelligent hardware sends the ARP request to all PLC in the LAN in a broadcast manner; the intelligent hardware sends the network address and the hardware address from all the programmable logic controllers to the debugging server through a public network.
10. The plc detection method according to claim 6, wherein the intelligent hardware sends address acquisition requests to all plcs at preset time intervals, and sends network addresses and hardware addresses from the plcs to the debug server at the preset time intervals; and the debugging server updates the network address and the hardware address according to the received network address and the received hardware address of the programmable logic controller.
CN201711407599.0A 2017-12-22 2017-12-22 Programmable logic controller detection system and method Active CN108563211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711407599.0A CN108563211B (en) 2017-12-22 2017-12-22 Programmable logic controller detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711407599.0A CN108563211B (en) 2017-12-22 2017-12-22 Programmable logic controller detection system and method

Publications (2)

Publication Number Publication Date
CN108563211A CN108563211A (en) 2018-09-21
CN108563211B true CN108563211B (en) 2021-04-30

Family

ID=63529474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711407599.0A Active CN108563211B (en) 2017-12-22 2017-12-22 Programmable logic controller detection system and method

Country Status (1)

Country Link
CN (1) CN108563211B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917742A (en) * 2019-03-25 2019-06-21 北京龙鼎源科技股份有限公司 Programmable logic controller (PLC) PLC system, data uploading method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102593733B (en) * 2011-12-31 2015-01-21 长园深瑞继保自动化有限公司 Debugging method for transformer substation equipment
CN102694695B (en) * 2012-04-27 2014-09-03 南大傲拓科技江苏有限公司 Serial communication configuration and debugging method based on Ethernet communication protocol
CN102664973B (en) * 2012-05-14 2015-03-18 浙江宇视科技有限公司 Method and device for updating IP (Internet Protocol) address
CN104378222A (en) * 2013-08-15 2015-02-25 海尔集团公司 Communication parameter configuration method, server and intelligent network system
CN106685722A (en) * 2016-12-30 2017-05-17 广州市兴世电子有限公司 Novel remote debugging configuration tool of hot melt adhesive machine flowmeter to PLC (programmable logic controller) control system

Also Published As

Publication number Publication date
CN108563211A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US20240007478A1 (en) Operator action authentication in an industrial control system
TWI714669B (en) Secure access control to an embedded device through a networked computer
US11665004B2 (en) Systems and methods for enabling trusted communications between controllers
US8707032B2 (en) System and method for securing controllers
US10375058B2 (en) Secure efficient registration of industrial intelligent electronic devices
US9485245B2 (en) Industrial protocol system authentication and firewall
US20170060779A1 (en) Method and memory module for security-protected write processes and/or read processes on the memory module
US10404472B2 (en) Systems and methods for enabling trusted communications between entities
US11373762B2 (en) Information communication device, authentication program for information communication device, and authentication method
US20200106612A1 (en) System and method for providing cloud service
CN108243186B (en) System and method for remotely operating a programmable logic controller
US20210352051A1 (en) Method of Enabling a Secure Communication to a Target Device over a Network
CN108563211B (en) Programmable logic controller detection system and method
US20170026236A1 (en) A method and a system for the deterministic autoconfiguration of a device
CN113839958A (en) Communication encryption method and device for smart home, control system and storage medium
JP2011086240A (en) Verification device and software updating system for field equipment using the same
JP6542722B2 (en) Device list creating system and device list creating method
JP2008252353A (en) Remote monitor system and center device
EP4261718A1 (en) Communication control method and communiation device
US11768940B2 (en) Controller system
WO2018169807A1 (en) Systems and methods for enabling trusted communications between controllers
CN105337880A (en) Smart home router

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
GR01 Patent grant
GR01 Patent grant