An EMS testing method and system for PLC

By using cloud database and target environment electromagnetic interference data to generate customized test cases in the EMS test of PLC, the problems of large differences in the test environment, long cycles and lack of real-time feedback in the existing technology are solved, and efficient and accurate electromagnetic immunity assessment is achieved to ensure the stability of PLC in complex environments.

CN120066002BActive Publication Date: 2025-07-11SHENZHEN HUALONG XUNDA INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510535912.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-07-11
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

The EMS testing methods of existing PLCs cannot effectively simulate complex electromagnetic interference in actual industrial environments. The test results are very different from those of actual applications. The test cycle is long and there is a lack of real-time feedback mechanism, so it is unable to dynamically adapt to environmental changes.

Method used

By obtaining basic test cases in the cloud database for self-calibration of equipment, combining the electromagnetic interference data of the target environment to generate customized test cases, which are divided into experimental and environmental test groups, and monitor and update the test cases in real time until the electromagnetic immunity is consistent, and dynamic testing is performed using an EMS test system.

Benefits of technology

It improves the accuracy and efficiency of EMS testing, can reflect the electromagnetic immunity performance of PLC in the target environment in real time, and ensures the stable operation of PLC in actual applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066002B_ABST
    Figure CN120066002B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of automation, and discloses an EMS test method and system for a PLC, including obtaining the basic EMS data and data fluctuation characteristics of the PLC to be tested according to the device parameters of the PLC to be tested; collecting the electromagnetic interference data of the target environment, obtaining the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, generating target environment test cases according to the electromagnetic interference characteristics of the target environment and basic test cases, and dividing the PLC to be tested that has completed the basic test into an experimental test group and an environmental test group; if the electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, the electromagnetic immunity of the PLC to be tested and the updated target environment test cases are obtained. By combining the cloud database and real-time electromagnetic interference data, the present invention generates customized test cases for the target environment, significantly improving the accuracy and practicality of EMS tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial automation, and specifically to an EMS testing method and system for PLCs. Background Art

[0002] With the continuous improvement of industrial automation, as the core component of industrial control systems, the stability and reliability of PLCs are crucial for the operation of the entire production line. However, in the actual industrial environment, PLCs are often subject to various electromagnetic interferences, such as electrostatic discharge, electrical fast transient burst, lightning surge, etc. These interferences may cause abnormal operation of PLCs or even system crashes, seriously affecting production efficiency and safety.

[0003] Traditional PLC EMS testing methods mainly rely on standard laboratory testing environments to evaluate the anti-interference ability of PLCs by simulating specific electromagnetic interference scenarios. However, this method has the following limitations:

[0004] Large difference between the testing environment and the actual environment: It is difficult for the laboratory testing environment to fully reproduce the complex electromagnetic interference conditions in the actual industrial environment, resulting in a large difference between the test results and the performance in actual applications.

[0005] Single test cases: Traditional test cases often rely on standard test specifications and lack customized tests for specific application environments, making it difficult to comprehensively reflect the anti-interference performance of PLCs in different environments.

[0006] Long testing cycle: Due to the need to manually adjust test parameters and repeat tests, the testing cycle of traditional methods is long and the efficiency is low.

[0007] Lack of real-time feedback mechanism: Traditional testing methods usually analyze after the test is completed, lacking real-time monitoring and feedback mechanisms, making it difficult to detect and solve problems in a timely manner.

[0008] Unable to dynamically adapt to environmental changes: The electromagnetic interference in the actual industrial environment is dynamically changing, and traditional methods cannot automatically adjust test cases according to environmental changes, resulting in limited timeliness of test results.

[0009] Therefore, there is an urgent need for a PLC EMS testing method and system that can be closer to the actual industrial environment, efficient, flexible, and have a real-time feedback mechanism to improve the accuracy and efficiency of PLC electromagnetic immunity testing and ensure the stable operation of PLCs in actual applications. Summary of the Invention

[0010] The purpose of the present invention is to overcome the deficiencies of the prior art and provide an EMS testing method for PLCs, including the following steps:

[0011] Step 1: According to the device parameters of the PLC to be tested, obtain the basic test cases from the reference test database. The test device performs self-calibration of the test device according to the test cases. After the self-calibration of the test device, perform EMS tests on the PLC to be tested according to the test cases, obtain the EMS test data of the PLC to be tested, and based on the test data of the PLC to be tested, obtain the basic EMS data and data fluctuation characteristics of the PLC to be tested.

[0012] Step 2: Collect the electromagnetic interference data of the target environment, obtain the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, generate the test cases for the target environment according to the electromagnetic interference characteristics of the target environment and the basic test cases, and divide the PLC to be tested that has completed the basic test into an experimental test group and an environmental test group.

[0013] Step 3: The test device performs EMS tests on the PLCs in the experimental test group according to the test cases for the target environment, obtain the EMS test data of the PLC to be tested corresponding to the target environment, and based on the EMS test data corresponding to the target environment, obtain the experimental electromagnetic immunity of the PLC to be tested in the target environment, and proceed to Step 5.

[0014] Step 4: According to the set test cycle, obtain the EMS test data of the PLCs in the environmental test group through the test cases for the target environment, and obtain the service electromagnetic immunity of the PLC to be tested in the target environment.

[0015] Step 5: If the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, proceed to Step 6; otherwise, update the test cases for the target environment according to the service electromagnetic immunity of the target environment, and return to Step 3 until the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, and then proceed to Step 6.

[0016] Step 6: Obtain the electromagnetic immunity of the PLC to be tested and the updated test cases for the target environment.

[0017] Further, the step of obtaining the basic test cases from the reference test database according to the device parameters of the PLC to be tested, and the test device performing self-calibration of the test device according to the test cases includes:

[0018] Obtain the basic test cases from the cloud data server according to the device parameters of the PLC to be tested. The test device performs self-calibration of the test device according to the test environment parameters in the basic test cases. If the output data of the test device is consistent with the output data corresponding to the test environment parameters, the self-calibration of the test device is completed; otherwise, an alarm message is issued. The basic test cases include test environment parameters and PLC operation parameters.

[0019] Further, the step of obtaining the basic EMS data and data fluctuation characteristics of the PLC to be tested according to the test data of the PLC to be tested includes:

[0020] The described basic EMS data is the output data of the PLC under test obtained under the basic test cases, as well as the range of variation in the difference between the output data of the PLC under test and the standard output data. The said range of variation in the difference is the data fluctuation characteristic.

[0021] Furthermore, collecting the electromagnetic interference data of the target environment, obtaining the electromagnetic interference characteristics of the target environment based on the electromagnetic interference data, and generating target environment test cases according to the electromagnetic interference characteristics of the target environment and the basic test cases, including:

[0022] The electromagnetic interference characteristics of the target environment include the frequency and intensity of characteristic electromagnetic interference within a set period. Adjusting the test equipment parameters in the basic test cases according to the frequency and intensity of the characteristic electromagnetic interference to generate target environment test cases; the characteristic electromagnetic interference includes electrostatic discharge and electrical fast transient pulses.

[0023] Furthermore, obtaining the experimental electromagnetic immunity of the PLC under test in the target environment according to the EMS test data corresponding to the target environment, including:

[0024] Obtaining the environmental adaptability characteristics and stability characteristics of the PLC under test according to the obtained EMS test data corresponding to the target environment. The environmental adaptability characteristic is the test failure rate of the PLC under test; the stability characteristic of the PLC under test is the range of variation in the difference between the output data of the PLC under test corresponding to the target environment and the standard output data according to the EMS test data corresponding to the target environment; according to the ratio of the range of variation in the difference between the output data of the PLC under test corresponding to the target environment and the standard output data to the range of variation in the difference between the output data of the PLC under test corresponding to the target environment and the standard output data; obtaining the experimental electromagnetic immunity of the PLC under test in the target environment according to the sum of the products of the environmental adaptability characteristics and stability characteristics of the PLC under test and their respective weights.

[0025] Furthermore, obtaining the service electromagnetic immunity of the PLC under test in the target environment by obtaining the EMS test data of the PLC in the environmental test group through the target environment test cases according to the set test period, including:

[0026] According to the PLC operation parameters in the target environment test cases, testing in the target environment according to the set test period to obtain the EMS test data of the PLC in the environmental test group, and obtaining the service electromagnetic immunity of the PLC under test in the target environment according to the EMS test data of the PLC in the environmental test group.

[0027] Furthermore, if the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, including:

[0028] If the difference between the electromagnetic immunity in use of the target environment and the experimental electromagnetic immunity of the target environment is within the set difference threshold range, they are consistent; otherwise, they are inconsistent.

[0029] Further, updating the test cases for the target environment according to the electromagnetic immunity in use of the target environment includes:

[0030] Adjust the test equipment parameters in the test cases for the target environment according to the difference between the electromagnetic immunity in use of the standard environment and the experimental electromagnetic immunity of the target environment until the experimental electromagnetic immunity of the target environment is consistent with the electromagnetic immunity in use of the target environment.

[0031] An EMS test system for PLC, applying the described EMS test method for PLC, includes a cloud data server, an electromagnetic interference data acquisition module, test equipment, a communication module, an EMS test data acquisition device, and a data processing module;

[0032] The test equipment and the communication module are respectively connected to the data processing module; the EMS test data acquisition device, the electromagnetic interference data acquisition module, and the cloud data server are respectively in communication connection with the communication module.

[0033] The beneficial effects of the present invention are:

[0034] By combining the cloud database and real-time electromagnetic interference data, customized test cases for the target environment are generated, significantly improving the accuracy and practicality of EMS testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic flow chart of an EMS test method for PLC;

[0036] Figure 2 It is a schematic flow chart of obtaining the experimental electromagnetic immunity of the target environment of the PLC to be tested. DETAILED DESCRIPTION OF THE INVENTION

[0037] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the following.

[0038] The features and performance of the present invention will be further described in detail below with reference to the embodiments.

[0039] As Figure 1 shown, an EMS test method for PLC includes the following steps:

[0040] Step 1: According to the device parameters of the PLC to be tested, obtain the basic test cases from the reference test database. The test device performs self-calibration of the test device according to the test cases. After the self-calibration of the test device, perform EMS testing on the PLC to be tested according to the test cases, obtain the EMS test data of the PLC to be tested, and based on the test data of the PLC to be tested, obtain the basic EMS data and data fluctuation characteristics of the PLC to be tested;

[0041] Step 2: Collect the electromagnetic interference data of the target environment, obtain the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, generate target environment test cases according to the electromagnetic interference characteristics of the target environment and the basic test cases, and divide the PLCs to be tested that have completed the basic test into an experimental test group and an environmental test group;

[0042] Step 3: The test device performs EMS testing on the PLCs in the experimental test group according to the target environment test cases, obtains the EMS test data of the PLC to be tested corresponding to the target environment, and based on the EMS test data corresponding to the target environment, obtains the experimental electromagnetic immunity of the PLC to be tested in the target environment, and proceeds to Step 5;

[0043] Step 4: According to the set test cycle, obtain the EMS test data of the PLCs in the environmental test group through the target environment test cases, and obtain the service electromagnetic immunity of the PLC to be tested in the target environment;

[0044] Step 5: If the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, proceed to Step 6; otherwise, update the target environment test cases according to the service electromagnetic immunity of the target environment, and return to Step 3 until the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, and then proceed to Step 6;

[0045] Step 6: Obtain the electromagnetic immunity of the PLC to be tested and the updated target environment test cases.

[0046] The process of obtaining the basic test cases from the reference test database according to the device parameters of the PLC to be tested, and the test device performing self-calibration of the test device according to the test cases includes:

[0047] Obtain the basic test cases from the cloud data server according to the device parameters of the PLC to be tested. The test device performs self-calibration of the test device according to the test environment parameters in the basic test cases. If the output data of the test device is consistent with the output data corresponding to the test environment parameters, the self-calibration of the test device is completed; otherwise, an alarm message is issued. The basic test cases include test environment parameters and PLC operation parameters.

[0048] The process of obtaining the basic EMS data and data fluctuation characteristics of the PLC to be tested based on the test data of the PLC to be tested includes:

[0049] The described basic EMS data is the output data of the PLC under test obtained under basic test cases, as well as the range of variation of the difference between the output data of the PLC under test and the standard output data. The range of variation of the difference is the data fluctuation characteristic.

[0050] Collect the electromagnetic interference data of the target environment, obtain the electromagnetic interference characteristics of the target environment based on the electromagnetic interference data, and generate target environment test cases according to the electromagnetic interference characteristics of the target environment and basic test cases, including:

[0051] The electromagnetic interference characteristics of the target environment include the frequency and intensity of characteristic electromagnetic interference within a set period. Adjust the test equipment parameters in the basic test cases according to the frequency and intensity of the characteristic electromagnetic interference to generate target environment test cases; the characteristic electromagnetic interference includes electrostatic discharge and electrical fast transient pulses.

[0052] Such as Figure 2 As shown, obtaining the experimental electromagnetic immunity of the PLC under test in the target environment according to the EMS test data corresponding to the target environment includes:

[0053] According to the obtained EMS test data corresponding to the target environment, obtain the environmental adaptability characteristics and stability characteristics of the PLC under test. The environmental adaptability characteristic is the test failure rate of the PLC under test; the stability characteristic of the PLC under test is the range of variation of the difference between the output data of the PLC under test corresponding to the target environment and the standard output data according to the EMS test data corresponding to the target environment; according to the ratio of the range of variation of the difference between the output data of the PLC under test corresponding to the target environment and the standard output data to the range of variation of the difference between the output data of the PLC under test corresponding to the target environment and the standard output data; according to the sum of the products of the environmental adaptability characteristics and stability characteristics of the PLC under test and their respective weights, obtain the experimental electromagnetic immunity of the PLC under test in the target environment.

[0054] Obtaining the service electromagnetic immunity of the PLC under test in the target environment by obtaining the EMS test data of the PLC in the environmental test group through the target environment test cases according to the set test period, including:

[0055] According to the PLC operation parameters in the target environment test cases, conduct tests in the target environment according to the set test period to obtain the EMS test data of the PLC in the environmental test group, and obtain the service electromagnetic immunity of the PLC under test in the target environment according to the EMS test data of the PLC in the environmental test group.

[0056] If the service electromagnetic immunity of the target environment is consistent with the experimental electromagnetic immunity of the target environment, including:

[0057] If the difference between the electromagnetic immunity in use of the target environment and the experimental electromagnetic immunity of the target environment is within the set difference threshold range, they are consistent; otherwise, they are inconsistent.

[0058] Updating the test cases for the target environment according to the electromagnetic immunity in use of the target environment includes:

[0059] Adjusting the test equipment parameters in the test cases for the target environment according to the difference between the electromagnetic immunity in use of the target environment and the experimental electromagnetic immunity of the target environment until the experimental electromagnetic immunity of the target environment is consistent with the electromagnetic immunity in use of the target environment.

[0060] An EMS test system for PLCs, applying the described EMS test method for PLCs, includes a cloud data server, an electromagnetic interference data acquisition module, test equipment, a communication module, an EMS test data acquisition device, and a data processing module;

[0061] The described test equipment and communication module are respectively connected to the data processing module; the EMS test data acquisition device, the electromagnetic interference data acquisition module, and the cloud data server are respectively in communication connection with the communication module.

[0062] Specifically, the present invention provides an EMS test method for PLCs, and this method includes the following steps:

[0063] Step 1: Basic test and self - calibration

[0064] Obtain basic test cases: According to the device parameters of the PLC to be tested (such as model, specification, expected working environment, etc.), retrieve and obtain the matching basic test cases in the benchmark test database of the cloud data server. These test cases contain standard test environment parameters and PLC operation parameters and are the basis for testing.

[0065] Self - calibration of test equipment: The test equipment self - calibrates according to the test environment parameters in the obtained basic test cases to ensure that the output data of the test equipment is consistent with the expected output data, thereby ensuring the accuracy of the test. If the calibration fails, an alarm message is issued to prompt the user to check the test equipment or recalibrate.

[0066] Execute the basic EMS test: After self - calibration is completed, the test equipment performs an EMS test on the PLC to be tested according to the basic test cases and records the test data.

[0067] Data analysis: According to the test data, calculate the basic EMS data of the PLC to be tested (such as the deviation range of the output data) and the data fluctuation characteristics to provide a benchmark for subsequent analysis.

[0068] Step 2: Generation of test cases for the target environment

[0069] Collect electromagnetic interference data: Use the electromagnetic interference data acquisition module to collect electromagnetic interference data within a specific period in the target environment, including the frequency and intensity of characteristic electromagnetic interferences such as electrostatic discharge and electrical fast transient pulses.

[0070] Analyze electromagnetic interference characteristics: Based on the collected data, analyze the electromagnetic interference characteristics of the target environment and identify the interference sources that may have a significant impact on the operation of the PLC.

[0071] Generate test cases for the target environment: Combine the basic test cases with the electromagnetic interference characteristics of the target environment, adjust the parameters of the test equipment, and generate customized test cases for the target environment.

[0072] Group testing: Divide the PLCs to be tested that have completed the basic test into an experimental test group and an environmental test group for laboratory simulation testing and actual environment testing respectively.

[0073] Step 3: EMS testing for the experimental test group

[0074] Execute EMS testing for the target environment: The test equipment tests the PLCs in the experimental test group according to the test cases for the target environment and records the EMS test data corresponding to the target environment.

[0075] Calculate the experimental electromagnetic immunity: Analyze the test data to obtain the environmental adaptability characteristics (such as the test failure rate) and stability characteristics (such as the deviation change range and its ratio of the output data to the standard data) of the PLCs to be tested in the target environment, and comprehensively calculate the experimental electromagnetic immunity.

[0076] Step 4: EMS testing for the environmental test group

[0077] Periodic testing: According to the set test period, conduct EMS testing on the PLCs in the environmental test group in the target environment and record the test data. Calculate the electromagnetic immunity in use: Based on the environmental test data, evaluate the electromagnetic immunity in use of the PLCs to be tested in the actual use in the target environment.

[0078] Step 5: Consistency verification and test case update

[0079] Consistency judgment: Compare the electromagnetic immunity in use of the target environment with the experimental electromagnetic immunity. If the difference between the two is within the set threshold range, it is considered consistent; otherwise, it is considered inconsistent.

[0080] Test case update: For inconsistent situations, adjust the parameters of the test equipment in the test cases for the target environment according to the feedback of the electromagnetic immunity in use, and repeat Steps 3 to 5 until the two are consistent.

[0081] Step 6: Output results

[0082] Final electromagnetic immunity assessment: When the experimental electromagnetic immunity is consistent with the used electromagnetic immunity, output the final electromagnetic immunity assessment result of the PLC under test in the target environment. Update the test case library: Update the verified and effective test cases for the target environment to the cloud data server to provide reference for PLC tests in future similar environments.

[0083] Obtain basic test cases from the reference test database according to the device parameters of the PLC under test, and the test equipment performs self-calibration according to the test cases, specifically including:

[0084] Device parameter matching: Match the device parameters of the PLC under test with the records in the cloud database through an algorithm, and select the closest basic test case.

[0085] Self-calibration process: The test equipment automatically configures according to the environmental settings (such as temperature, humidity, electromagnetic background noise, etc.) in the selected basic test case, and verifies the device output through a preset calibration program to ensure test accuracy.

[0086] Obtain the basic EMS data and data fluctuation characteristics of the PLC under test according to the test data of the PLC under test, specifically including:

[0087] Calculation of basic EMS data: Compare the output of the PLC under test under standard test conditions with the expected standard output, and calculate the deviation value as the basic EMS data.

[0088] Analysis of data fluctuation characteristics: Statistically analyze the fluctuation conditions in the test data, such as maximum value, minimum value, standard deviation, etc., as data fluctuation characteristics for evaluating the stability of the PLC.

[0089] Collect the electromagnetic interference data of the target environment, obtain the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, and generate test cases for the target environment according to the electromagnetic interference characteristics of the target environment and the basic test cases, specifically including:

[0090] Real-time data collection: Use a high-precision electromagnetic interference data collection module to continuously monitor the electromagnetic interference situation of the target environment.

[0091] Feature extraction: Extract key parameters such as the frequency, intensity, and duration of the characteristic electromagnetic interference through signal processing technology.

[0092] Test case customization: Adjust the test parameters in the basic test case according to the extracted electromagnetic interference characteristics, such as adding interference signals of specific frequencies to simulate the target environment.

[0093] Obtain the experimental electromagnetic immunity of the target environment of the PLC under test according to the EMS test data corresponding to the target environment, specifically including:

[0094] Environmental adaptability assessment: By analyzing the failure rate of the PLC during the test process, evaluate its adaptability to electromagnetic interference in the target environment.

[0095] Stability assessment: Calculate the deviation change range and its ratio between the PLC output data and the standard data to reflect the output stability of the PLC under interference.

[0096] Comprehensive assessment: Combine the results of environmental adaptability and stability assessments, and calculate the experimental electromagnetic immunity according to their respective weights.

[0097] According to the set test cycle, obtain the EMS test data of the PLC in the environmental test group through the target environment test cases, and obtain the electromagnetic immunity in use of the target environment of the PLC to be tested, specifically including:

[0098] Periodic test plan: Develop a detailed test plan, including test time, frequency, duration, etc. On-site test execution: In the target environment, conduct EMS tests on the PLC in the environmental test group according to the plan, and record the actual operation data. Calculation of electromagnetic immunity in use: Based on the on-site test data, use the same evaluation method as the experimental test to calculate the electromagnetic immunity in use.

[0099] If the electromagnetic immunity in use of the target environment is consistent with the experimental electromagnetic immunity of the target environment, specifically including:

[0100] Consistency judgment criterion: Set an acceptable difference threshold range to determine whether the two immunity values are consistent.

[0101] Judgment process: Compare the two immunity values. If the difference is within the threshold range, it is considered consistent; otherwise, the reasons need to be further analyzed and the test cases need to be adjusted.

[0102] According to the electromagnetic immunity in use of the target environment, update the target environment test cases, specifically including:

[0103] Difference analysis: Analyze in detail the difference between the experimental and the electromagnetic immunity in use, and identify the factors that may cause the difference.

[0104] Test case adjustment: According to the analysis results, adjust the relevant parameters in the target environment test cases, such as increasing or decreasing specific types of electromagnetic interference, to be closer to the actual use environment.

[0105] Iterative verification: Retest through the adjusted test cases until the experimental and the electromagnetic immunity in use are consistent.

[0106] To implement the above test method, the present invention also provides an EMS test system for PLC, which includes:

[0107] Cloud data server: Stores a large number of basic test cases, supports quick retrieval and matching of cases according to PLC device parameters, and provides remote calibration support for test equipment.

[0108] Electromagnetic interference data acquisition module: Deployed in the target environment, responsible for real-time acquisition of electromagnetic interference data, providing a data basis for generating test cases for the target environment.

[0109] Test equipment: The core equipment for performing EMS tests, capable of automatically configuring the test environment according to test cases and precisely testing the PLC.

[0110] Communication module: Realizes data transmission between the test system, the cloud server, and the electromagnetic interference data acquisition module to ensure smooth information flow.

[0111] EMS test data acquisition device: Responsible for collecting various data during the test process, providing raw materials for subsequent analysis.

[0112] Data processing module: Processes and analyzes the collected test data, calculates key indicators such as basic EMS data, data fluctuation characteristics, experimental and operational electromagnetic immunity, etc., and supports dynamic update of test cases. Embodiment

[0113] A certain industrial plant plans to deploy a new PLC system. To ensure its stable operation in a complex electromagnetic environment, the technical method of this application is used for PLC testing, including:

[0114] According to the model, specifications, and expected working environment (such as temperature, humidity, electromagnetic background, etc.) of the PLC to be tested, retrieve and obtain matching basic test cases from the cloud data server. The test equipment self-calibrates according to the environmental settings in the basic test cases to ensure the accuracy of the output data. After successful calibration, a basic EMS test is performed on the PLC, and the test data is recorded.

[0115] Calculate the basic EMS data (such as deviation range) and data fluctuation characteristics of the PLC, providing a benchmark for subsequent analysis.

[0116] Deploy an electromagnetic interference data acquisition module inside the industrial plant, continuously monitor and record electromagnetic interference data within a specific period. Identify significant interference sources such as electrostatic discharge and electrical fast transient pulses. Combine the basic test cases and electromagnetic interference characteristics to adjust the parameters of the test equipment and generate customized test cases for the industrial plant.

[0117] Divide the PLC into an experimental test group and an environmental test group:

[0118] Experimental test group:

[0119] Test the PLC of the experimental test group according to the customized test cases. Analyze the test data to obtain the environmental adaptability characteristics and stability characteristics of the PLC in the industrial plant environment, and comprehensively calculate the experimental electromagnetic immunity.

[0120] Environmental test group:

[0121] Conduct EMS tests on the PLC of the environmental test group in the industrial plant according to the set test cycle. Based on the on-site test data, evaluate the electromagnetic immunity of the PLC in actual use.

[0122] Compare the experimental electromagnetic immunity with the electromagnetic immunity in use to confirm their consistency. For inconsistent situations, adjust the test cases according to the feedback of the electromagnetic immunity in use and repeat the test until they are consistent.

[0123] Output the final electromagnetic immunity evaluation result of the PLC in the industrial plant environment. Update the verified and effective target environmental test cases to the cloud data server.

Claims

1. An EMS test method for PLC, characterized in that, The steps are as follows: Step 1: According to the device parameters of the PLC to be tested, obtain basic test cases from the reference test database. The test device performs self-calibration of the test device according to the test cases. After the self-calibration of the test device, the test device performs EMS tests on the PLC to be tested according to the test cases, obtains the EMS test data of the PLC to be tested, and based on the test data of the PLC to be tested, obtains the basic EMS data and data fluctuation characteristics of the PLC to be tested. Step 2: Collect the electromagnetic interference data of the target environment, obtain the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, generate target environment test cases according to the electromagnetic interference characteristics of the target environment and the basic test cases, and divide the PLC to be tested that has completed the basic test into an experimental test group and an environmental test group. Step 3: The test device performs EMS tests on the PLCs in the experimental test group according to the target environment test cases, obtains the EMS test data of the PLC to be tested corresponding to the target environment, and based on the EMS test data corresponding to the target environment, obtains the experimental electromagnetic immunity of the PLC to be tested in the target environment, and proceeds to Step 5. Step 4: According to the set test cycle, obtain the EMS test data of the PLCs in the environmental test group through the target environment test cases, and obtain the service electromagnetic immunity of the PLC to be tested in the target environment. Step 5: If the service electromagnetic immunity in the target environment is consistent with the experimental electromagnetic immunity in the target environment, proceed to Step 6; otherwise, update the target environment test cases according to the service electromagnetic immunity in the target environment, and return to Step 3 until the service electromagnetic immunity in the target environment is consistent with the experimental electromagnetic immunity in the target environment, and then proceed to Step 6. Step 6: Obtain the electromagnetic immunity of the PLC to be tested and the updated target environment test cases. The obtaining of the experimental electromagnetic immunity of the PLC to be tested in the target environment according to the EMS test data corresponding to the target environment includes: Obtain the environmental adaptability characteristics and stability characteristics of the PLC to be tested according to the obtained EMS test data corresponding to the target environment. The environmental adaptability characteristics are the test failure rate of the PLC to be tested. The stability characteristics of the PLC to be tested are the change range of the difference between the output data of the PLC to be tested corresponding to the target environment and the standard output data according to the EMS test data corresponding to the target environment. According to the ratio of the change range of the difference between the output data of the PLC to be tested corresponding to the target environment and the standard output data to the change range of the difference between the output data of the PLC to be tested corresponding to the target environment and the standard output data. According to the sum of the products of the environmental adaptability characteristics and stability characteristics of the PLC to be tested and their respective weights, obtain the experimental electromagnetic immunity of the PLC to be tested in the target environment.

2. The EMS test method for a PLC according to claim 1, wherein The obtaining of the basic test cases from the reference test database according to the device parameters of the PLC to be tested and the self-calibration of the test device by the test device according to the test cases includes: According to the device parameters of the PLC to be tested, obtain the basic test cases from the cloud data server. The test device performs self-calibration according to the test environment parameters in the basic test cases. If the output data of the test device is consistent with the output data corresponding to the test environment parameters, the self-calibration of the test device is completed; otherwise, an alarm message is issued. The basic test cases include test environment parameters and PLC operation parameters.

3. The EMS test method for a PLC according to claim 2, characterized in that, Obtaining the basic EMS data and data fluctuation characteristics of the PLC to be tested according to the test data of the PLC to be tested, including: The basic EMS data is the output data of the PLC to be tested obtained under the basic test cases, and the change range of the difference between the output data of the PLC to be tested and the standard output data. The change range of the difference is the data fluctuation characteristic.

4. The EMS test method for a PLC according to claim 3, wherein Collecting the electromagnetic interference data of the target environment, obtaining the electromagnetic interference characteristics of the target environment according to the electromagnetic interference data, and generating the target environment test cases according to the electromagnetic interference characteristics of the target environment and the basic test cases, including: The electromagnetic interference characteristics of the target environment include the frequency and intensity of the characteristic electromagnetic interference within a set period. According to the frequency and intensity of the characteristic electromagnetic interference, adjust the test device parameters in the basic test cases to generate the target environment test cases. The characteristic electromagnetic interference includes electrostatic discharge and electrical fast transient pulses.

5. The EMS test method for a PLC according to claim 4, wherein Obtaining the electromagnetic immunity of the target environment of the PLC to be tested through the target environment test cases according to the set test period, including: According to the PLC operation parameters in the target environment test cases, perform tests in the target environment according to the set test period to obtain the EMS test data of the PLC in the environmental test group. According to the EMS test data of the PLC in the environmental test group, obtain the electromagnetic immunity of the target environment of the PLC to be tested.

6. A method for EMS testing of a PLC according to claim 5, characterized in that, If the electromagnetic immunity of the target environment in use is consistent with the experimental electromagnetic immunity of the target environment, including: If the difference between the electromagnetic immunity of the target environment in use and the experimental electromagnetic immunity of the target environment is within the set difference threshold range, it is consistent; otherwise, it is inconsistent.

7. The EMS test method for a PLC according to claim 6, characterized in that, Updating the target environment test cases according to the electromagnetic immunity of the target environment in use, including: According to the difference between the electromagnetic immunity of the target environment in use and the experimental electromagnetic immunity of the target environment, adjust the test device parameters in the target environment test cases until the experimental electromagnetic immunity of the target environment is consistent with the electromagnetic immunity of the target environment in use.

8. An EMS test system for a PLC, characterized in that Applying an EMS test method for PLC according to any one of claims 1-7, including a cloud data server, an electromagnetic interference data acquisition module, a test device, a communication module, an EMS test data acquisition device, and a data processing module; The test device and the communication module are respectively connected to the data processing module; the EMS test data acquisition device, the electromagnetic interference data acquisition module, and the cloud data server are respectively communicatively connected to the communication module.

Citation Information

Patent Citations

  • Automatic wiring monitoring method and system for PLC

    CN116300681A