Control cabinet automatic detection method
Through automated detection methods and devices, the problems of complex and inefficient manual operations in PLC testing are solved, and fast and accurate signal channel detection of PLC modules are realized. It is suitable for large industrial automation systems and improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202411435841.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-01-14
Smart Images

Figure CN119310971A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of PLC testing, and in particular to a PLC cabinet testing method. Background Art
[0002] In modern industrial automation systems, PLC (Programmable Logic Controller) is widely used in various automation control and monitoring tasks, and is the core component to ensure system stability and efficiency. Therefore, PLC testing is crucial to the normal operation of the entire industrial automation system. The accuracy and efficiency of the test directly affect the reliability, safety and operating cost of the system. However, the existing PLC testing process still has many limitations and technical difficulties, which urgently need to be improved.
[0003] At present, PLC testing mainly relies on manual operation, which is complex and error-prone. First, technicians need to manually set the test program according to the specific configuration of the PLC cabinet to be tested. This process usually requires an in-depth understanding of the specifications, functions and interfaces of each PLC module to ensure that the test program can cover all possible working scenarios. However, due to the wide variety and complex configuration of PLC modules, technicians not only need to spend a lot of time setting up the test program, but also easily lead to incomplete coverage or setting errors due to negligence of details.
[0004] After the test program is set up, the tester needs to manually connect the test program with each PLC module according to the program requirements. This process is extremely challenging. Due to its complexity, it has a low fault tolerance rate. A slight mistake may lead to connection errors or missed connections, thus affecting the accuracy of the test results. This manual connection process is particularly time-consuming in actual operation, and usually requires at least two technicians to work together, which increases labor costs and operation time. At the same time, due to the large number of manual operations during the test process, any irregular operation may cause system failures, further reducing the reliability of the test.
[0005] Specifically, testing usually requires:
[0006] Personnel: 2 testers operate at the same time
[0007] Time: It takes 1.5 to 2 hours to complete the test of all modules, which is time-consuming.
[0008] The test time for a DI or DO single channel is 3 seconds, the test time for a 16-channel module is about 48 seconds, and the test time for a 32-channel module is about 96 seconds
[0009] The test time for AI or AO single channel is 5 seconds, and the test time for 8-channel module is about 40 seconds
[0010] Process: The tester needs to manually plug in and power each module and channel one by one to test them.
[0011] The test results need to be recorded manually during the test process.
[0012] The test requires the use of many tools such as multimeter, signal generator, walkie-talkie, etc.
[0013] Accuracy: Due to human factors, such as fatigue, negligence, etc., the test accuracy may decrease.
[0014] Efficiency: The testing process is cumbersome, inefficient, and difficult to cope with large or urgent testing needs.
[0015] In addition, as the scale and complexity of industrial automation systems continue to increase, traditional manual PLC testing methods can no longer meet the growing demand. During large-scale PLC system testing, problems such as low efficiency and high error rate of manual operation become more prominent, resulting in increased testing costs, longer testing cycles, and even affecting the overall progress of the project.
[0016] In summary, in the prior art, testing the signal module of a PLC cabinet is a complex and time-consuming process. This is mainly because it is necessary to manually plug in and power each module and channel in order to test it, which is not only inefficient but also prone to human errors. In addition, since the test process needs to be manually recorded by personnel, it is not convenient to save.
[0017] Although there are some solutions in the prior art, such as using automated test equipment to test some modules, these solutions still have some obvious shortcomings. First, these automated test equipment can usually only test specific modules or channels, and cannot comprehensively test the correctness of the entire circuit of the cabinet from module to line. Secondly, due to the different structures and connection methods of PLC cabinets, these automated test equipment often require a lot of customization and debugging work to adapt to different test environments. This not only increases the cost of testing, but also reduces the flexibility and versatility of testing. Therefore, we need a new test tool that can comprehensively and accurately test all signal module channels and lines of the PLC cabinet, while improving the efficiency and accuracy of the test and reducing the risk of human error. Summary of the invention
[0018] In order to solve the technical problems existing in the prior art, the existing PLC testing work mainly relies on manual operation, which is inefficient and has a high error rate, resulting in increased testing costs, extended testing cycles, and even affecting the overall progress of the project, the technical solution provided by the present invention is:
[0019] A control cabinet automatic detection method, the method comprising:
[0020] According to the type of control cabinet module to be tested, select the corresponding preset test package and perform the test;
[0021] Pre-set test packages include:
[0022] DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0023] DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0024] AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, and if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0025] AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0026] Steps to output test results.
[0027] Furthermore, a preferred embodiment is provided. In the DI32 module loop detection package, if the return signal does not meet the preset number of times, the test system will delay and retry. If the correct signal still cannot be received, it will be marked as a channel error.
[0028] Furthermore, a preferred embodiment is provided, in which the AI8 module loop detection package includes a two-wire system and a four-wire system. In the process of sending different current signals to each channel of the AI module in sequence, an active current signal is sent to the four-wire system, and a passive current signal is sent to the two-wire system.
[0029] Furthermore, a preferred embodiment is provided, in which different current signals including 8 mA, 12 mA, 16 mA and 20 mA are sequentially sent to each channel of the AI module and the AO module.
[0030] Furthermore, a preferred embodiment is provided, in which, in the DO32 module loop detection package, if the number of times each channel of the DO32 module returns a signal does not match the count value or the delay exceeds a specified time, a channel error is determined.
[0031] Further, a preferred embodiment is provided, in which, in the AI8 module loop detection package, channel errors include insufficient signal accuracy and channel damage.
[0032] Based on the same inventive concept, the present invention also provides an automatic detection device for a control cabinet, the device comprising:
[0033] According to the type of control cabinet module to be tested, select the corresponding preset test package to test the module;
[0034] Pre-set test packages include:
[0035] DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0036] DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0037] AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, and if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0038] AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0039] Module that outputs test results.
[0040] Based on the same inventive concept, the present invention also provides a computer storage medium for storing a computer program, and when the computer reads the computer program, the computer executes the described method.
[0041] Based on the same inventive concept, the present invention also provides a computer, including a processor and a storage medium. When the processor reads a computer program stored in the storage medium, the computer executes the method described.
[0042] Based on the same inventive concept, the present invention also provides a computer program product, which is a computer program. When the computer program is executed, the method described above is implemented.
[0043] Compared with the prior art, the technical solution provided by the present invention is beneficial in that:
[0044] The control cabinet automatic detection method provided by the present invention significantly improves the test efficiency by using automated test package selection and execution. Compared with the existing manual operation that relies on technicians to set up and check one by one, the automated system can quickly and accurately send and detect signals, reducing the time required for manual operation. The test process not only saves 1-2 operators, but also shortens the overall test time from several hours to 20-25 minutes. Especially when dealing with complex PLC cabinets with multiple modules and multiple channels, the efficiency advantage of the automated method is more obvious.
[0045] The automatic detection method for the control cabinet provided by the present invention greatly reduces the human error rate through the preset test logic and modular processing method. In the traditional manual testing process, the operator needs to repeatedly plug, check and record signals, which is very easy to cause errors due to fatigue or improper operation. This automated solution effectively avoids human negligence and improves the accuracy of test results by precisely controlling each test step, including signal issuance, return signal check and data comparison. The automatic detection system can also automatically save data after the test is completed, further reducing the chance of human intervention.
[0046] The control cabinet automatic detection method provided by the present invention has a systematic test logic that also enhances the coverage and consistency of the test. Compared with the limitations of traditional manual test equipment that can only cover some modules or require a lot of customized debugging, the system can perform comprehensive detection on different types of PLC modules, including digital input (DI), digital output (DO), analog input (AI) and analog output (AO) modules. Through a unified automated process, it is ensured that all modules and lines can be detected according to preset standards, which improves the integrity and consistency of the test, especially in large-scale industrial automation systems. It has higher applicability.
[0047] The automatic detection method for the control cabinet provided by the present invention also shows obvious advantages in signal comparison accuracy. For analog input (AI) and output (AO) modules, the system can accurately control the signal issuance and comparison process. Compared with manual recording and comparison methods, the system can provide higher accuracy and sensitivity. Especially for industrial applications with high precision requirements, the system's ±0.5% comparison error range is far better than the deviation caused by manual operation, ensuring the reliability of the test results. This accuracy plays an important role in ensuring the safety and stability of the system.
[0048] The automatic detection method for a control cabinet provided by the present invention is suitable for use in control cabinet detection work. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 Schematic diagram of the test logic for the DI32 module loop detection package;
[0050] Figure 2 Test logic diagram for DO32 module loop detection package;
[0051] Figure 3 Test logic diagram for AI8 module loop detection package;
[0052] Figure 4 Test logic diagram for the AO8 module loop detection package. DETAILED DESCRIPTION
[0053] In order to make the advantages and benefits of the technical solution provided by the present invention more clearly reflected, the technical solution provided by the present invention is now further described in detail with reference to the accompanying drawings, specifically:
[0054] Implementation Method 1: Combination Figure 1-4 This embodiment describes a control cabinet automatic detection method, which includes:
[0055] According to the type of control cabinet module to be tested, select the corresponding preset test package and perform the test;
[0056] Pre-set test packages include:
[0057] DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0058] DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0059] AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, and if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0060] AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0061] Steps to output test results.
[0062] Specifically, in this embodiment, multiple preset test packages are provided, including different types of PLC module test logic, all of which are automatically executed by the software system. The following is the test logic and process of the preset test package, focusing on the analysis from the software perspective.
[0063] Test logic of preset test package:
[0064] DI32 module loop detection package
[0065] Test logic: After receiving the start command, the system sends a DO signal to each channel of the DI32 module in turn. The signal received by each channel will be returned to the system, and the system will compare the number of returned signals with the expected value. If the returned signal meets the preset number of times, the channel is considered normal; otherwise, the system will delay and retry. If the correct signal is still not received, it will be marked as a channel error.
[0066] Software processing: The system automatically generates and sends DO signals and receives data fed back by the DI module. The software logic automatically performs signal comparison and records errors and retries when an abnormality is detected until the final result is determined.
[0067] DO32 module loop detection package
[0068] Test logic: The system sends a signal to each channel of the DO32 module and records the returned response signal through the DI module. The system compares the number of times each channel of the DO32 module returns a signal according to the pre-designed value. If the count value matches, the channel is judged to be normal; if it does not match or the delay exceeds the specified time, it is judged to be a channel error.
[0069] Software processing: The software automatically sends out DO signals and records the return signals of the DI module for automatic comparison. If an error is detected, the system will immediately generate an error report without manual intervention.
[0070] AI8 (four-wire) module loop detection package
[0071] Test logic: The system sends different current signals (8mA, 12mA, 16mA, 20mA) to each channel of the AI module in turn, and receives the digital signal fed back by the AI module. The system compares the received signal with the standard signal. If the deviation is within the preset range, the channel is judged to be normal; if the deviation exceeds the range, it is judged that the signal accuracy is insufficient or the channel is damaged.
[0072] Software processing: The system automatically sends out current signals and records the analog-to-digital conversion results returned by the AI module. The software automatically calculates the accuracy and determines whether it meets the standard value. In case of abnormality, the system automatically marks the problem channel.
[0073] AI8 (two-wire) module loop detection package
[0074] Test logic: Similar to the four-wire test, the difference is that the current signal sent by the system is a passive signal, and the other steps are the same as the four-wire test. The system also compares the returned digital signal with the standard value and automatically generates an accuracy determination report.
[0075] Software processing process: The software system sends out a passive current signal and receives feedback signals from the AI module to automatically complete signal comparison and accuracy analysis.
[0076] AO8 module loop detection package
[0077] Test logic: The system sends different current signals (8mA, 12mA, 16mA, 20mA) to each channel of the AO module in turn, and returns them to the AI module through the test fixture for analog-to-digital conversion, and finally compares the signal returned by the AI module with the standard signal. If the deviation is within the standard range, the channel is judged to be normal; otherwise, it is recorded as abnormal.
[0078] Software processing: The system sends out current signals and receives feedback analog-to-digital conversion data. The software automatically performs comparison and outputs the results.
[0079] How to select a test package:
[0080] Based on PLC function module type selection
[0081] The operator can select the corresponding test package through the software interface according to the module type of the PLC cabinet to be tested. The optional test packages include DI32 module, DO32 module, AI8 (four-wire system), AI8 (two-wire system) and AO8 module, etc. The system loads the corresponding test logic according to the module type selected by the user.
[0082] Module type selection via automatic detection
[0083] The system supports automatic identification of the module type of the PLC cabinet and recommends the corresponding test package. The software automatically matches the most appropriate test logic by reading the PLC configuration, reducing the possibility of manual intervention and selection errors.
[0084] Loading of predefined test scenarios
[0085] The software also supports predefined test plans. Operators can directly select a set of test plans suitable for a specific type of PLC cabinet without having to select test packages one by one. The system will automatically perform tests on all modules in the plan to ensure completeness and efficiency.
[0086] Through these options, the software ensures automation and flexibility of the test, which can adapt to different types of module testing requirements and reduce the workload of operators.
[0087] Implementation method 2. This implementation method further limits the control cabinet automatic detection method provided in implementation method 1. In the DI32 module loop detection package, if the return signal does not meet the preset number of times, the test system will delay and retry. If the correct signal still cannot be received, it will be marked as a channel error.
[0088] Implementation method three: This implementation method further limits the control cabinet automatic detection method provided in implementation method one. The AI8 module loop detection package includes a two-wire system and a four-wire system. In the process of sending different current signals to each channel of the AI module in turn, an active current signal is sent to the four-wire system, and a passive current signal is sent to the two-wire system.
[0089] Implementation method 4: This implementation method further limits the control cabinet automatic detection method provided in implementation method 1, and sends different current signals including 8mA, 12mA, 16mA and 20mA to each channel of the AI module and the AO module in sequence.
[0090] Implementation method five: This implementation method further limits the control cabinet automatic detection method provided in implementation method one. In the DO32 module loop detection package, if the number of return signals of each channel of the DO32 module does not match the count value or the delay exceeds the specified time, the channel is determined to be wrong.
[0091] Implementation method six: This implementation method further limits the control cabinet automatic detection method provided in implementation method one. In the AI8 module loop detection package, channel errors include insufficient signal accuracy and channel damage.
[0092] Embodiment 7: This embodiment provides an automatic detection device for a control cabinet, the device comprising:
[0093] According to the type of control cabinet module to be tested, select the corresponding preset test package to test the module;
[0094] Pre-set test packages include:
[0095] DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0096] DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0097] AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0098] AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong;
[0099] Module that outputs test results.
[0100] Embodiment 8: This embodiment provides a computer storage medium for storing a computer program. When the computer reads the computer program, the computer executes the method provided in embodiment 1.
[0101] Embodiment 9: This embodiment provides a computer, including a processor and a storage medium. When the processor reads a computer program stored in the storage medium, the computer executes the method provided in embodiment 1.
[0102] Embodiment 10: This embodiment provides a computer program product, which is a computer program. When the computer program is executed, the method provided in embodiment 1 is implemented.
[0103] Implementation eleven: This implementation further describes the above technical solution in detail through specific examples, specifically:
[0104] This technical solution provides an automated testing method for PLC cabinets, aiming to solve the problems of low efficiency and high error rate in the existing manual testing process. By selecting a preset test package, the system automatically performs a test on the PLC cabinet signal module and determines the functional status of the line and module based on the returned signal.
[0105] Detailed steps:
[0106] Connect the test equipment:
[0107] The operator connects the PLC controller to the test bench via an Ethernet cable to check the communication status. At the same time, the test fixture is connected to the terminal to be tested to ensure that subsequent signals can be sent and received smoothly.
[0108] Output: Communication between the PLC cabinet and the test bench is established.
[0109] Select the test module type:
[0110] The operator selects the type of signal module to be tested on the test bench, such as DI32 channel, DO32 channel, AI8 channel, etc. The test can be targeted at a single module or multiple module types can be tested simultaneously.
[0111] Output: Selected module type and its corresponding test parameters.
[0112] Start the test program:
[0113] The test system automatically executes the corresponding test logic according to the selected module type. For example:
[0114] For the DI32 module, the system sends a DO signal and checks the module's response;
[0115] For the AI8 module, the system will send out different current signals to detect the module's analog-to-digital conversion accuracy.
[0116] Output: The test system automatically completes signal detection of the selected module.
[0117] Data preservation and analysis:
[0118] After the test is completed, the operator stores the test data in the database, and the system automatically generates a test report with the results displayed in a table for subsequent analysis and viewing.
[0119] Output: Completed test data table and test report.
[0120] The automated testing method for PLC cabinets aims to solve the problems of low efficiency and high error rate in the existing manual testing process. By selecting the preset test package, the system automatically performs the test on the PLC cabinet signal module and determines the functional status of the line and module based on the returned signal. In the specific operation process, there are:
[0121] Connecting the test equipment
[0122] The operator first connects the PLC controller in the PLC cabinet to be tested to the test bench via an Ethernet cable to ensure normal communication. Then, the test fixture is connected to the terminal to be tested to ensure that the signal sending and receiving paths are unobstructed.
[0123] Select the test module type
[0124] The operator selects the corresponding module type in the test system according to the functional requirements of the PLC cabinet to be tested, such as DI32 channel, DO32 channel, AI8 channel, etc. The system allows testing of a single module, and can also select multiple module types for parallel testing.
[0125] Start the test program
[0126] After startup, the test system automatically sends, receives and compares signals according to the preset test logic of the selected module.
[0127] For example:
[0128] DI32 module: The test system sends out DO signals and receives responses from the DI module.
[0129] AI8 module: The system sends different current signals to detect the module's analog-to-digital conversion accuracy.
[0130] Data storage and analysis
[0131] After the test is completed, the operator saves the test results, and the system automatically generates a detailed test report and displays the test results in a table for subsequent analysis and viewing. All data will be stored in the database for subsequent retrieval and comparison.
[0132] Test result output and judgment
[0133] The system automatically analyzes the test results according to the preset judgment criteria. If the deviation is within ±0.5%, it is judged as normal; if the deviation is between ±0.5% and ±2%, it is judged as insufficient signal accuracy; if the deviation exceeds ±2%, it is judged as channel damage. The status of each module and channel is clear at a glance, and the operator can perform necessary maintenance and adjustments based on the test results.
[0134] Example
[0135] Example 1: DI32 module test
[0136] Preparation: The operator connects the PLC cabinet to the test bench and selects the DI32 module for testing.
[0137] Execute the test: The system sends DO signals to each channel three times in sequence according to the preset test logic. Each signal is sent to the DI module of the PLC cabinet to be tested through the test fixture, and the system records its response signal.
[0138] Result analysis: The system compares the number of return signals to confirm whether the response of each channel meets expectations. If the number of signal returns is normal, the system determines that the channel is normal; otherwise, after a delay of 2 seconds, the system will try again. If there is still no return, the channel is considered to be wrong.
[0139] Data preservation: The operator saves the test results after the test is completed, and the system generates a complete DI32 module test report.
[0140] Example 2: AI8 (four-wire) module test
[0141] Preparation: The operator connects the PLC cabinet to the test bench and selects the AI8 four-wire module for testing.
[0142] Execute the test: The system sends 8mA, 12mA, 16mA and 20mA current signals to each channel of the AI module through the test fixture. The AI module detects the signal and converts it into a digital signal and returns it to the test bench.
[0143] Result analysis: The system compares the received digital signal with the standard value. If the deviation is within ±0.5%, it is judged as normal; if the deviation is within ±2%, it is judged as insufficient signal accuracy; if it exceeds ±2%, it is judged as channel damage.
[0144] Data preservation: The operator saves the test results, and the system automatically generates a test report for the AI8 four-wire module and marks the accuracy and status of all channels.
[0145] Example 3: DO32 module test
[0146] Preparation: The operator connects the PLC cabinet to the test bench and selects the DO32 module for testing.
[0147] Execute the test: The system sends 3 DO signals to each channel of the DO32 module in turn, and the signal returns to the DI module of the test bench through the test fixture. The system records the response signal of the DI module to determine whether it is correct.
[0148] Result analysis: The system checks the number of times the signal is returned. If it detects that the signal is returned normally, it continues to detect the next channel in sequence; if the signal returns incorrectly or with delay, the system determines that the channel is wrong.
[0149] Data preservation: After the test is completed, the operator saves the test data, and the system automatically generates a test report for the DO32 module, recording the test results of each channel in detail.
[0150] Advantages:
[0151] Improve test efficiency: The automated test system significantly reduces manual operation time, shortening the test time from 1-2 hours to 20-25 minutes.
[0152] Reduce human errors: By automating the test process through the system, errors caused by improper manual operation are avoided, ensuring the accuracy of the test.
[0153] Enhanced test accuracy: For analog input and output modules, the system provides higher signal comparison accuracy, ensuring the reliability of test results in high-precision industrial applications.
[0154] In practical applications, this implementation can greatly improve the testing efficiency and accuracy of the PLC cabinet, while reducing the complexity and error rate of manual operations, and is an effective solution in the field of automated testing.
[0155] The technical solution provided by the present invention is further described in detail above through several specific implementation modes in order to highlight the advantages and benefits of the technical solution provided by the present invention. However, the several specific implementation modes described above are not intended to be used as limitations on the present invention. Any reasonable modification and improvement of the present invention, combination of implementation modes and equivalent substitution within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. The control cabinet automatic detection method is characterized in that: The method comprises: According to the type of control cabinet module to be tested, select the corresponding preset test package and perform the test; Preset test packages include: DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong; DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong; AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, and if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong; AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong; Steps to output test results.
2. The automatic detection method for a control cabinet according to claim 1, characterized in that: In the DI32 module loop detection package, if the return signal does not meet the preset number of times, the test system will delay and retry. If the correct signal still cannot be received, it will be marked as a channel error.
3. The automatic detection method for a control cabinet according to claim 1, characterized in that: The AI8 module loop detection package includes two-wire and four-wire systems. In the process of sending different current signals to each channel of the AI module in turn, an active current signal is sent to the four-wire system and a passive current signal is sent to the two-wire system.
4. The automatic detection method for a control cabinet according to claim 1, characterized in that: Different current signals including 8mA, 12mA, 16mA and 20mA are sent to each channel of the AI module and the AO module in sequence.
5. The automatic detection method for a control cabinet according to claim 1, characterized in that: In the DO32 module loop detection package, if the number of times each channel of the DO32 module returns a signal does not match the count value or the delay exceeds the specified time, the channel is judged to be wrong.
6. The automatic detection method for a control cabinet according to claim 1, characterized in that: In the AI8 module loop detection package, channel errors include insufficient signal accuracy and channel damage.
7. Automatic detection device for control cabinet, characterized in that: The device comprises: According to the type of control cabinet module to be tested, select the corresponding preset test package to test the module; Preset test packages include: DI32 module loop detection package, the test system sends DO signals to each channel of the DI32 module in turn, and compares the number of signals returned by each channel of the DI32 module; if it meets the preset number, the channel is judged to be normal; otherwise, the channel is judged to be wrong; DO32 module loop detection package, the test system sends a signal to each channel of the DO32 module, and compares the number of times each channel of the DO32 module returns the signal according to the pre-designed value; if the count value matches, the channel is judged to be normal; otherwise, the channel is judged to be wrong; AI8 module loop detection package, the test system sends different current signals to each channel of the AI module in turn, compares the signal returned by the AI module with the standard signal, and if the deviation is within the preset range, the channel is judged to be normal; otherwise, the channel is judged to be wrong; AO8 module loop detection package, the test system sends different current signals to each channel of the AO module in turn, and compares the signal returned by the AI module with the standard signal; if the deviation is within the standard range, the channel is judged to be normal; otherwise, the channel is judged to be wrong; Module that outputs test results.
8. A computer storage medium for storing a computing program, characterized in that: When the computer reads the computer program, the computer executes the method of claim 1.
9. A computer, comprising a processor and a storage medium, characterized in that: When the processor reads the computer program stored in the storage medium, the computer executes the method of claim 1 .
10. A computer program product, being a computer program, characterized in that When the computer program is executed, the method of claim 1 is implemented.
Citation Information
Cited By
Automatic test method, system and equipment of programmable logic controller and medium
CN120742846A