CN114706784A - Method for realizing parallel test of multiple PLCs (programmable logic controllers) - Google Patents
Method for realizing parallel test of multiple PLCs (programmable logic controllers) Download PDFInfo
- Publication number
- CN114706784A CN114706784A CN202210418671.4A CN202210418671A CN114706784A CN 114706784 A CN114706784 A CN 114706784A CN 202210418671 A CN202210418671 A CN 202210418671A CN 114706784 A CN114706784 A CN 114706784A
- Authority
- CN
- China
- Prior art keywords
- plc
- test
- plcs
- serial port
- manager
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 127
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000004891 communication Methods 0.000 claims abstract description 20
- 238000012544 monitoring process Methods 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 229920001610 polycaprolactone Polymers 0.000 description 2
- 229910000831 Steel Inorganic materials 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004566 building material Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
- 238000009987 spinning Methods 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
The invention discloses a method for realizing parallel testing of multiple PLCs (programmable logic controllers), belonging to the field of automation; firstly, a test platform consisting of a test console, an IO manager and the like is built, an engineer compiles a test case, sets operation parameters and sends the operation parameters to a PLC remote control gateway; the test console selects n PLC numbers and m test case numbers to be started, inputs serial port communication channel parameters and then sends the serial port communication channel parameters to the IO manager and the serial port switcher; the IO manager starts a corresponding PLC and sends the m test case numbers to the corresponding n PLCs; each PLC calls a corresponding test case from the PLC remote control gateway to run and outputs a result; meanwhile, the running condition of the PLC is fed back to the IO manager and transmitted to the test console; the serial port switcher configures serial port channels for n PLCs respectively to realize the communication between each PLC and the tested case; finally, the test console monitors each PLC in real time and modifies parameters; the invention effectively improves the test efficiency and the test capability under the condition of parallel multiple PLCs.
Description
Technical Field
The invention belongs to the field of automation, and particularly relates to a method for realizing parallel testing of multiple PLCs.
Background
The programmable controller is originally generated by replacing relay contactor control, and with the development of scientific technology, the technology has been developed into network control between PLC and communication control between the PLC and a computer at present through single logic control; the PLC is widely applied to various industries such as steel, petroleum, chemical industry, electric power, building materials, mechanical manufacturing, automobiles, light spinning, transportation, aerospace, environmental protection, cultural entertainment and the like, and has the application of the PLC in the small-scale domestic equipment and the large-scale aerospace equipment. Therefore, the production test efficiency and the production cost of the PLC product are also highly valued by mass manufacturers.
Most of the present PLC testing devices are complicated, but most of them have cumbersome modules, which are not only bulky, but also have single functions, and although some testing systems can integrate more than ten PCLs, the complicated system also reduces the PCL testing efficiency; the PLC controllers are mutually independent and difficult to communicate data; in addition, these test systems are expensive, and manufacturers cannot simulate complex systems or test cases in order to reduce the cost, which affects the reliability of test data. The main reason for the above phenomenon is the lack of an effective method for implementing parallel testing of multiple PLCs.
Disclosure of Invention
Aiming at the problems, the invention provides a method for realizing parallel testing of multiple PLCs (programmable logic controllers), which is used for solving the technical problems that the existing PLC testing system is single in function and is difficult to carry out combined testing of multiple PLCs.
The method for realizing the parallel test of the multiple PLCs comprises the following specific steps:
step one, building a test platform consisting of a test console, an IO manager, a test PLC group, a PLC remote control gateway, a remote engineer station and a serial port switcher;
the IO manager is connected with the test console through a network and connected with the test PLC group through a hard wire; the test PLC group is connected with the PLC remote control gateway through the local area network and is also connected with the serial port switcher; the PLC remote control gateway is connected with a remote engineer station through the internet, and the test console is simultaneously connected with the serial port switcher;
the test PLC group comprises N PLCs; the N PLCs are arranged in a square array and are not related to each other.
Secondly, an engineer programs a PLC test case and sets operation parameters through a remote engineer station, and sends the test case and the operation parameters to a PLC remote control gateway;
selecting n PLC numbers to be started according to test requirements by the test console, correspondingly selecting m test case numbers to be operated on the n PLCs, inputting serial port communication channel parameters, and respectively sending the configuration to the IO manager and the serial port switcher;
the IO manager starts the corresponding PLC according to the PLC serial number and sends the m test case serial numbers to the corresponding n PLCs;
and fifthly, each PLC calls the corresponding test case in the PLC remote control gateway to operate according to the test case number, the test case result is output, and meanwhile, the operation condition of the PLC is fed back to the IO manager for the test control platform to call.
The fed back operation condition comprises a PLC switch state signal, a PLC abnormal state signal and a PLC analog quantity write value signal.
And step six, the serial port switcher respectively configures respective serial port channels for the n PLCs one by one according to the serial port communication channel parameters, so that communication between each PLC and the connected tested case is realized.
And seventhly, the test console monitors the state of each PLC in real time, and modifies the serial number of the PLC, the operation parameters and the serial number of the test case in real time according to the test requirement.
The real-time monitoring comprises the following steps: starting and stopping each PLC, a test case operated by the PLC and a communication channel of the PLC;
the invention has the beneficial effects that:
according to the method for realizing the parallel test of the multiple PLCs, the parallel management and control of the multiple PLCs are realized through the test console, and the operated PLCs, test cases, operation parameters and communication channels can be modified through corresponding components of the test console, so that the online modification and debugging are realized, and the test efficiency and the test capability under the parallel of the multiple PLCs are effectively improved.
Drawings
FIG. 1 is a flow chart of a method for implementing parallel testing of multiple PLCs according to the present invention;
FIG. 2 is an architecture diagram of a multi-PLC parallel test system constructed by the present invention.
Detailed Description
The following describes the embodiments of the present invention in detail with reference to the accompanying drawings.
The invention relates to a method for realizing parallel testing of multiple PLCs, which connects multiple PLCs with a remote control network, then utilizes a remote engineer station to construct a test case of the PLCs, and completes the selection of the PLCs and the test case to be operated on a test console to achieve the test control under the parallel of the multiple PLCs.
As shown in fig. 1, the specific steps are as follows:
step one, building a test platform consisting of a test console, an IO manager, a test PLC group, a PLC remote control gateway, a remote engineer station and a serial port switcher;
as shown in fig. 2, the IO manager is connected to the test console through a network and is connected to the test PLC group through a hard wire; the test PLC group is connected with a PLC remote control gateway through a local area network and is also connected with a serial port switcher; the PLC remote control gateway is connected with a remote engineer station through the internet, and the test console is simultaneously connected with the serial port switcher;
(1) the test console is used for realizing the real-time management and control of each PLC state in the test PLC group, and comprises: starting and stopping the PLC, and testing cases and communication channels of the PLC operated by the PLC.
(2) The IO manager receives the test case numbers and the test case parameters transmitted by the test console and transmits the specified test case numbers to the test PLC group, so that each PLC is triggered to generate a data source of the data change rule of the corresponding test case.
In addition, the IO manager receives data fed back by each PLC through hard wiring, wherein the data comprises PLC switch state signals, PLC abnormal state signals and PLC analog quantity write value signals, and the signals are sent to the test console for realizing real-time monitoring of the PLC state.
(3) The test PLC group consists of N PLCs, and the N PLCs are arranged in a square array and are not related to each other; the main task is to receive the test case number of the IO manager and then execute the specified test case, so as to generate a data source of the corresponding data change rule for the tested object to acquire data.
(4) The PLC remote control gateway realizes parameter modification and test case downloading and backup of the field PLC.
(5) The remote engineer station is mainly used for testing and parameter setting of the PLCs in the test PLC group, and specifically comprises programming and uploading of test cases and modification of operation parameters.
(6) The serial port switcher is used for establishing a communication channel between the established PLC and the established tested object and can be controlled through the test console.
Secondly, an engineer completes the programming of the PLC test case and the setting of the operation parameters through PLC programming software of a remote engineer station and sends the test case and the operation parameters to a PLC remote control gateway;
the PLC remote control gateway uploads the received test cases and the operation parameters to corresponding PLCs in the test PLC group;
selecting n PLC numbers to be started according to test requirements by the test console, correspondingly selecting m test case numbers to be operated on the n PLCs, inputting serial port communication channel parameters, and respectively sending the configuration to the IO manager and the serial port switcher;
n is less than or equal to N;
the IO manager starts the corresponding PLC according to the PLC serial number and sends the m test case serial numbers to the corresponding n PLCs;
and step five, after the n PLCs are activated by the IO manager to operate, each PLC calls the test case with the corresponding number in the PLC remote control gateway to operate according to the test case number of each PLC, outputs the result of the test case, and simultaneously feeds back the operation condition of the PLCs to the IO manager for the test control platform to call.
The fed back operation condition comprises a PLC switch state signal, a PLC abnormal state signal and a PLC analog quantity write value signal.
And step six, the serial port switcher respectively configures respective serial port channels for the n PLCs one by one according to the serial port communication channel parameters, so that communication between each PLC and the connected tested case is realized.
And seventhly, the test console monitors the state of each PLC in real time, and modifies the serial number of the PLC, the operation parameters and the serial number of the test case in real time according to the test requirement.
The real-time monitoring comprises the following steps: starting and stopping each PLC, a test case operated by the PLC, and a communication channel of the PLC.
Claims (5)
1. A method for realizing parallel testing of multiple PLCs is characterized by comprising the following steps:
firstly, building a test platform consisting of a test console, an IO manager, a test PLC group, a PLC remote control gateway, a remote engineer station and a serial port switcher;
then, an engineer programs a PLC test case and sets operation parameters through a remote engineer station, and sends the PLC test case and the set operation parameters to a PLC remote control gateway;
then, the test console selects n PLC numbers to be started according to test requirements, correspondingly selects m test case numbers to be operated on the n PLCs, inputs serial port communication channel parameters and then sends the serial port communication channel parameters to the IO manager and the serial port switcher;
the IO manager starts the corresponding PLC according to the serial number of the PLC and sends the serial numbers of the m test cases to the corresponding n PLCs; each PLC respectively calls test cases with corresponding numbers in the PLC remote control gateway to run according to the test case numbers of the PLC, outputs the results of the test cases, and simultaneously feeds back the running conditions of the PLCs to the IO manager for the test control platform to call;
meanwhile, the serial port switcher respectively configures respective serial port channels for the n PLCs one by one according to the serial port communication channel parameters, so as to realize the communication between each PLC and the connected tested case;
and finally, the test console monitors the state of each PLC in real time, and modifies the serial number of the PLC, the operation parameters and the serial number of the test case in real time according to the test requirements.
2. The method for implementing the parallel test of the multiple PLCs according to claim 1, wherein the IO manager is connected to the test console through a network and is connected to the test PLC group through a hard wire; the test PLC group is connected with the PLC remote control gateway through the local area network and is also connected with the serial port switcher; the PLC remote control gateway is connected with a remote engineer station through the internet, and the test console is connected with the serial port switcher simultaneously.
3. The method of claim 1, wherein the set of test PLCs comprises N PLCs; the N PLCs are arranged in a square array and are not related to each other.
4. The method as claimed in claim 1, wherein the feedback operation condition includes a PLC switch status signal, a PLC abnormal status signal and a PLC analog quantity write value signal.
5. The method of claim 1, wherein the real-time monitoring comprises monitoring: starting and stopping each PLC, a test case operated by the PLC and a communication channel of the PLC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210418671.4A CN114706784A (en) | 2022-04-20 | 2022-04-20 | Method for realizing parallel test of multiple PLCs (programmable logic controllers) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210418671.4A CN114706784A (en) | 2022-04-20 | 2022-04-20 | Method for realizing parallel test of multiple PLCs (programmable logic controllers) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114706784A true CN114706784A (en) | 2022-07-05 |
Family
ID=82173926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210418671.4A Pending CN114706784A (en) | 2022-04-20 | 2022-04-20 | Method for realizing parallel test of multiple PLCs (programmable logic controllers) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114706784A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103235593A (en) * | 2013-04-22 | 2013-08-07 | 国电南瑞科技股份有限公司 | System and method for automatically testing main control hardware of fan on basis of PLC (Programmable Logic Controller) |
US20150045932A1 (en) * | 2013-08-09 | 2015-02-12 | David Morgan Sweet | EtherMark/IP Marking System |
CN106873574A (en) * | 2017-02-28 | 2017-06-20 | 中国电子信息产业集团有限公司第六研究所 | For the automated testing method and device of Programmable Logic Controller |
CN112650189A (en) * | 2019-10-12 | 2021-04-13 | 中电智能科技有限公司 | Embedded PLC automatic test system and method |
CN112671596A (en) * | 2020-11-18 | 2021-04-16 | 武汉迈威通信股份有限公司 | Remote control automatic test system and test method |
-
2022
- 2022-04-20 CN CN202210418671.4A patent/CN114706784A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103235593A (en) * | 2013-04-22 | 2013-08-07 | 国电南瑞科技股份有限公司 | System and method for automatically testing main control hardware of fan on basis of PLC (Programmable Logic Controller) |
US20150045932A1 (en) * | 2013-08-09 | 2015-02-12 | David Morgan Sweet | EtherMark/IP Marking System |
CN106873574A (en) * | 2017-02-28 | 2017-06-20 | 中国电子信息产业集团有限公司第六研究所 | For the automated testing method and device of Programmable Logic Controller |
CN112650189A (en) * | 2019-10-12 | 2021-04-13 | 中电智能科技有限公司 | Embedded PLC automatic test system and method |
CN112671596A (en) * | 2020-11-18 | 2021-04-16 | 武汉迈威通信股份有限公司 | Remote control automatic test system and test method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112487668B (en) | Near-physical simulation integrated debugging method and system based on digital twin | |
CN106444420B (en) | A kind of locomotive semi-hardware type simulation test system and method | |
CN1244033C (en) | Process control network with redundant field devices and busses | |
CN107734042B (en) | Low-cost remote debugging system and method | |
US8943188B2 (en) | Automation network comprising network components that produce status messages | |
WO2012134101A2 (en) | Multiple plc simulation system | |
CN115333988B (en) | Test method, system and equipment for rocket interstage communication signals | |
CN104297623A (en) | Automatic test system for onboard cable integrity | |
CN102360046A (en) | General test method for motor vehicle electrical product | |
US20110153034A1 (en) | Universal human machine interface for automation installation | |
CN106292535A (en) | Digit Control Machine Tool system of processing and Digit Control Machine Tool system of processing based on cloud platform | |
CN113985829B (en) | Nuclear power station distributed industrial control system and virtual and physical switching control method thereof | |
CN114706784A (en) | Method for realizing parallel test of multiple PLCs (programmable logic controllers) | |
CN111736546B (en) | Flexible control method and system for assembly line and modular position control device | |
CN201041705Y (en) | Blast furnace slot distribution and feeding simulation device | |
CN105785942B (en) | Large-scale cement produced with the dry method scattered control system packet joining adjustment method | |
Young et al. | Agile control systems | |
CN113179201A (en) | Multi-region multi-device remote joint debugging and testing system and method | |
WO2017215732A1 (en) | A collaborative robot system and a method for configuration thereof | |
Wagner et al. | Fundamentals for the next generation of automation solutions of the fourth industrial revolution | |
CN108322516A (en) | A kind of packaging stacking long distance service system and method based on mobile Internet | |
CN221509615U (en) | Network isolation protection system applied to laminating machine accessing MES system | |
US12126690B2 (en) | Communication of a remote terminal unit based on a module type package | |
US20240048626A1 (en) | Communication of a Remote Terminal Unit Based on a Module Type Package | |
CN221351976U (en) | Gas turbine monitoring and control system |
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 |
Application publication date: 20220705 |
|
RJ01 | Rejection of invention patent application after publication |