Function test method for electrical circuit detection module

By designing the functional testing method of the electrical line detection module, the problems of single functions and huge volume of existing training equipment are solved, students are independently trained and assessed, the training quality is improved, and the cultivation of electrical talents is supported.

CN119723976APending Publication Date: 2025-03-28NAVAL UNIV OF ENG PLA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411791024.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing marine electrical equipment training equipment has a single function, and cannot realize the wiring and fault removal functions at the same time. It is also huge in size, which is inconvenient for mobile teaching, which affects the development of teaching and training.

Method used

Design an electrical line detection module for functional testing methods, and realize students' independent training and assessment through interface design and PLC programming, and support teachers to set fault points and score.

Benefits of technology

It improves the quality of training and assessment, supports students to conduct repeated practice and tests anytime and anywhere, and provides strong support for the cultivation of electrical talents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119723976A_ABST
    Figure CN119723976A_ABST
Patent Text Reader

Abstract

The invention discloses a function test method for an electrical circuit detection module, and the method comprises the following steps: 1, entering a training module examination interface in a home page, setting a fault point at a teacher end by a teacher, and after completing the setting of a fault setting interface, entering a next interface which is a student login interface, the student inputs the name, the examination number and the student number of the student on the login interface and clicks for confirmation; 2, an examination interface is entered, a countdown clock is additionally arranged in the examination interface besides an answer box so as to remind students of remaining examination time, after submission is clicked and confirmed, a scoring interface is entered, and the background calculates scores according to the answer condition and publicizes the scores on the interface; according to the invention, problems existing in a traditional teaching mode are effectively solved, students are supported to carry out repeated practice and testing anytime and anywhere, and powerful support is provided for electrical talent training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of electrical fault detection, and in particular relates to a method for performing functional testing on an electrical circuit detection module. Background Art

[0002] With the increasing electrification and automation of ships, the power of ship power stations is getting larger and larger, and the electrical control system is more complex. There is a lack of maintenance training equipment for corresponding electrical faults. Existing ship electrical equipment is mainly composed of programmable controllers (PLCs), contactors, relays and other control components. Existing training equipment has a single function and does not have the function of realizing wiring and troubleshooting at the same time or only conducts troubleshooting training for designated devices. It is also bulky and not convenient for mobile teaching, which affects the development of teaching and training.

[0003] The diagnosis and repair of electrical faults have always been an important part of marine electrician training, among which mastering the composition and working principle of low-voltage control devices is the most basic skill. In the current training process of colleges and universities, considering the safety of electricity use, the electrical circuit connections of beginners need to be checked and corrected by instructors, which is inefficient, time-consuming and labor-intensive, affecting the progress of teaching and training. Summary of the invention

[0004] The present invention provides a method for functional testing of an electrical circuit detection module, wherein suitable hardware is selected according to the functions to be realized, and then interface design and PLC programming are performed, and existing problems and deficiencies are discovered during the practice process, and improvements and perfections are made through continuous testing, thereby improving the quality of training and assessment, and assisting students in autonomous training.

[0005] To solve the above problems, the technical solution provided by the present invention is as follows:

[0006] An embodiment of the present invention provides a method for performing a functional test on an electrical circuit detection module, comprising the following steps:

[0007] Step 1: Enter the training module assessment interface on the homepage. The teacher sets the fault point on the teacher side. After completing the fault setting interface, enter the next interface. The next interface is the student login interface. To prevent students from returning to the previous interface, the student login interface is designed with permissions so that students cannot return to the previous interface. Students enter their name, test number, and student number on the login interface and click Confirm. A pop-up window appears with two options, Yes and No, for students to choose whether to start the exam at this time.

[0008] Step 2. Next, enter the examination interface. In addition to the answer box, there is also a countdown clock to remind students of the remaining examination time. After clicking Submit, another pop-up window will appear to remind candidates whether to submit the answer sheet. After confirmation, enter the scoring interface. The background will calculate the score based on the answer situation and display it on the interface. Finally, set an exit interface. After clicking Confirm, exit the assessment and reset all assessment settings such as fault settings, answering questions, timing, and scoring, and return to the home page.

[0009] In an optional embodiment of the present invention, the workbench window of step 1 is provided with the main control window, device window, user window, real-time database, operation strategy, window 1, window 2, home page, and scoring. The test login interface, test timing interface, test exit, submission confirmation, and confirmation to start the test are provided.

[0010] In an optional embodiment of the present invention, 16 setting buttons and 16 reset buttons are placed on the fault setting interface of step 1, and each setting button controls a corresponding fault point without interfering with each other; the 16 reset buttons correspond one-to-one to the 16 setting buttons. After the setting button has set the fault, pressing the corresponding reset button will cancel the fault.

[0011] An optional embodiment of the present invention, step 1 specifically includes: fault point setting: a normally open contact M0.0 is set in the program diagram, corresponding to the setting button of the fault setting interface in the touch screen, the normally open contact M0.0 is connected to the coil Q0.0, the coil Q0.0 is bound to the animation display component variable FU1 of the Kunlun pass state, and another normally open contact of the coil is connected in parallel at the normally open contact. When the setting button is pressed on the touch screen, the normally open contact M0.0 is closed, the coil Q0.0 is energized and self-locking is completed, the indicator light color of the bound variable changes, and the fault setting is completed; the normally open contact M0.0 in the program diagram is energized only when the button is pressed, and accordingly, the operation attribute of the button is set to press 1 and release 0.

[0012] In an optional embodiment of the present invention, step 1 specifically includes: the variables of the output coil and the indicator light are bound to each other, the coil can be de-energized by changing the variables, and the operation attribute of the reset button is set to clear 0; when the reset button is pressed, the output coil Q0.0 loses power, the coil normally open contact Q0.0 is disconnected, and the fault is reset.

[0013] In an optional embodiment of the present invention, step 2 specifically includes: students use instruments to detect electrical circuits to obtain the answers they think of, and input the answers in the test interface. The input answers will be compared and judged in the written program. When the judgment is correct, the relay that has been set to fail will lose power and operate, and the background program will also record the number of correct answers; students need to input four items for each set of answers, namely the starting line number, the terminal line number, the fault device, and the fault type, among which the starting line number and the terminal line number are input boxes, and the examinee needs to judge the location of the fault according to his own detection, and the location is input as a combination of numbers or letters and numbers; the fault device and the fault type are combination boxes, and static options are preset in the combination box, and the fault devices are: air switch, contactor, wire, button; the fault type is: short circuit, open circuit, grounding, option setting.

[0014] In an optional embodiment of the present invention, step 2 specifically includes: a confirmation button in the assessment interface corresponds to the normally open contact M2.3 of the rear section of the comparison instruction program; inserting the normally closed contact of the coil M1.0 at the rear end of the comparison program in the program for setting the fault; when the answer input is the same as the set fault, the data block data matches, and the four comparison instructions VB0, VB18, VB100, and VB150 are energized, then the confirmation button is pressed, the normally open contact M2.3 corresponding to the button is closed, the coil M1.0 is energized, the normally closed contact M1.0 corresponding to the coil is disconnected, the coil Q0.0 for setting the fault loses power, the relay is activated, and the fault is eliminated; if the answer does not match, the coil M1.0 is not energized, and accordingly, the fault is not eliminated.

[0015] An optional embodiment of the present invention, step 2 specifically includes: during the assessment, it is necessary to control the assessment time, use the timer module in the PLC program, the timer module is preset to 40 minutes according to the assessment needs, and can be changed on the PLC program timer module later as needed; the start of the timer module requires a trigger signal, and through repeated consideration, the variable Q2.0 of the trigger signal is bound to the pop-up window, confirming that the button to start the test is clicked, and when the button enters the assessment interface, the normally open contact Q2.0 is closed, and the timer receives the signal to start the countdown, and when the timing ends, the timer outputs a signal; according to the requirements of the assessment, at the end of the timing, the examinee should not be able to continue answering questions, and the normally closed contact corresponding to the output coil of the timer T37 is placed in the program of the comparison instruction, and when the output coil of the timer T37 is energized, the corresponding normally closed contact is disconnected, and the output coil of the comparison instruction cannot be energized.

[0016] Beneficial effect: The embodiment of the present invention provides a method for functional testing of an electrical circuit detection module, comprising the following steps: Step 1, the homepage enters the training module assessment interface, the teacher sets the fault point on the teacher side, and after completing the fault setting interface setting, enters the next interface, the next interface is the student login interface, the student enters his name, test number, and student number in the login interface, and clicks to confirm; Step 2, then enters the examination interface, in addition to setting the answer box, the examination interface also has a countdown clock to remind students of the remaining examination time, after clicking submit, confirm and enter the scoring interface, the background calculates the score according to the answer situation, and publicizes it on the interface; the present invention effectively solves the problems existing in traditional teaching methods, and supports students to practice and test repeatedly anytime and anywhere, providing strong support for the training of electrical talents. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A physical diagram of the electrical panel connection provided in an embodiment of the present application.

[0019] Figure 2 A flowchart of a method for performing functional testing on an electrical circuit detection module provided in an embodiment of the present application.

[0020] Figure 3 A schematic diagram of a fault setting provided in an embodiment of the present application.

[0021] Figure 4 A MCGS configuration software diagram provided for an embodiment of the present application.

[0022] Figure 5 A schematic diagram of an engineering HMI configuration for touch screen communication settings provided in an embodiment of the present application.

[0023] Figure 6 A schematic diagram of binding a touch screen and a PLC variable channel provided in an embodiment of the present application.

[0024] Figure 7 A schematic diagram of a workbench window provided in an embodiment of the present application.

[0025] Figure 8 A schematic diagram of the home page provided for an embodiment of the present application.

[0026] Fig. 9 A schematic diagram of the home page settings provided for an embodiment of the present application.

[0027] Fig.10 This is a setting button attribute diagram of the fault setting interface provided in an embodiment of the present application.

[0028] Fig.11 This is a variable binding diagram for the setting button of the fault setting interface provided in an embodiment of the present application.

[0029] Fig.12 This is a variable binding diagram for the reset button of the fault setting interface provided in an embodiment of the present application.

[0030] Fig.13 A schematic diagram of the fault setting interface provided in an embodiment of the present application.

[0031] Fig.14 This is a diagram of the test login interface settings provided in an embodiment of the present application.

[0032] Fig.15 A diagram of the return button permission settings provided for an embodiment of the present application.

[0033] Fig.16 This is a diagram of the pop-up window (confirmation to start the exam) interface setting provided in an embodiment of the present application.

[0034] Fig.17 A schematic diagram of static option settings for the faulty device combo box provided in an embodiment of the present application.

[0035] Fig.18 A schematic diagram of static option settings for the fault type combo box provided in an embodiment of the present application.

[0036] Fig.19 A schematic diagram of the basic property settings of the button component of the pop-up window (confirm submission) interface provided in an embodiment of the present application.

[0037] Fig. 20 A schematic diagram of the button component operation property settings for the pop-up window (confirm submission) interface provided in an embodiment of the present application.

[0038] Fig.21 A schematic diagram of the scoring interface settings provided in an embodiment of the present application.

[0039] Fig. 22 A schematic diagram of the test exit interface settings provided in an embodiment of the present application.

[0040] Fig.23 A schematic diagram of the implementation of the fault setting program provided in an embodiment of the present application.

[0041] Fig.24 A PLC program ladder diagram provided in an embodiment of the present application.

[0042] Fig.25This is an annotated diagram of the comparison instruction data page provided in an embodiment of the present application.

[0043] Fig.26 A program ladder diagram with a timer added provided in an embodiment of the present application.

[0044] Fig. 27 A ladder diagram of a counter program provided in an embodiment of the present application.

[0045] Fig.28 A schematic diagram of the PLC comparison instruction program writing provided in an embodiment of the present application.

[0046] Fig.29 A schematic diagram of a PLC comparison instruction program data block provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0048] With the development of computer network technology, touch screens and PLCs are increasingly used in electrical automation. Considering the maturity and wide application of touch screen and PLC combined application technology, the simple and clear interface design of the touch screen, the reliability of communication with PLC, and the easy mastery of PLC programming, Kunlun Tongtai TPC1031Kt touch screen and Siemens S7-200SMART PLC are selected. In order to avoid spending a lot of time on wiring technology and improve the training efficiency of students, the traditional wiring method is changed, the wiring contacts of the components are connected to the plug connector, and the connection is made through the plug connector to avoid frequent changes in wiring during training and assessment, and reduce damage to electrical appliances. Relays are arranged between the contacts and the plug connectors and the device itself, and the setting and recovery of the fault point are controlled by controlling the relay. The electrical components are set according to the training and assessment requirements, and the electrical components are reasonably selected. The electrical components include circuit breakers, contactors, contactor auxiliary contacts, thermal relays, fuses, green indicator lights, red indicator lights, green push button switches, and red push button switches.

[0049] In order to avoid spending a lot of time on wiring technology and improve the training efficiency of students, the traditional wiring method is changed. The wiring contacts of the components are connected to the plug connectors, and the connection is made through the plug connectors to avoid frequent changes in wiring during training and assessment, and reduce damage to electrical appliances. Relays are arranged between the contacts and the plug connectors, and the components themselves. The setting and recovery of the fault point are controlled by controlling the relays. The designed electrical hanging board connection is referenced Figure 1 .

[0050] like Figure 2 As shown, an embodiment of the present invention provides a method for performing a functional test on an electrical circuit detection module, comprising the following steps:

[0051] Step 1: Enter the training module assessment interface on the homepage. The teacher sets the fault point on the teacher side. After completing the fault setting interface, enter the next interface. The next interface is the student login interface. To prevent students from returning to the previous interface, the student login interface is designed with permissions so that students cannot return to the previous interface. Students enter their name, test number, and student number on the login interface and click Confirm. A pop-up window appears with two options, Yes and No, for students to choose whether to start the exam at this time.

[0052] Step 2. Next, enter the examination interface. In addition to the answer box, there is also a countdown clock to remind students of the remaining examination time. After clicking Submit, another pop-up window will appear to remind candidates whether to submit the answer sheet. After confirmation, enter the scoring interface. The background will calculate the score based on the answers and display it on the interface. Finally, set an exit interface. After clicking Confirm, exit the assessment and reset all the assessment settings for fault settings, answering questions, timing, and scoring, and return to the home page.

[0053] like Figure 3 As shown, the Kunlun touch screen is selected as the module operation screen, and the Siemens S7-200SMART PLC with mature programming software and clear structure is selected as the control core unit. The control object is the relay in the control loop. The 16 common fault points in the control loop (this point position is expandable) are connected through 16 relay normally open and normally closed contacts. The fault point is selected on the touch screen, and the corresponding contact of the PLC bound to the variable channel is energized to make the connected relay on or off, completing the fault setting.

[0054] like Figure 4 As shown in the figure, the configuration software designed by Kunlun Tongtai Company is specifically used for MCGS Tpc. Through the software, users can design the required interface, realize data collection and monitoring, and complete signal processing and control. MCGS configuration software combined with other hardware equipment can develop various configuration systems for host computer monitoring systems.

[0055] The touch screen communication setting adopts Kunlun Tongtai TPC1031kt, so the model selected in the software is also TPC1031kt, and the engineering HMI configuration is shown in Figure 5.

[0056] The touch screen and PLC use Ethernet communication, and the sub-device establishes a variable channel and sets the device attribute values, such as device name, initial working status, minimum acquisition cycle (ms), TCP / IP communication delay, string encoding, string format, etc. In the variable setting table on the right, add the channel type, data type, channel address, connection variable, number of channels, extended attribute name, extended attribute value, etc. connected to the PLC. Batch entry is possible. After completion, click Confirm. Add and bind variable channels as appropriate during subsequent interface design. At this point, the communication settings between the touch screen and PLC are preliminarily completed. The variable channel binding between the touch screen and PLC is as follows: Figure 6 shown.

[0057] like Figure 7 As shown, the workbench window in step 1 sets the options of main control window, device window, user window, real-time database, operation strategy, window 1, window 2, home page, scoring, test login interface, test timing interface, exit test, submit confirmation, and confirm to start test. Figure 8 As shown in the figure, the homepage has simple functions and a relatively simple design. Fig. 9 As shown, the properties of the background image on the home page are set so that it has the function of a button action. When you click anywhere on the touch screen on the home page, the next window will be opened.

[0058] like Fig.10 As shown in the figure, the fault setting interface of step 1 has 16 setting buttons and 16 reset buttons. Each setting button controls the corresponding fault point and does not interfere with each other. The 16 reset buttons correspond to the 16 setting buttons one by one. After the setting button sets the fault, press the corresponding reset button and the fault will be canceled. Fig.11 As shown, the press 1 and release 0 here are associated with the programming logic of the PLC program ladder diagram, and each setting button component is bound to the corresponding variable.

[0059] like Fig.12 As shown, the settings of the setup and reset buttons have been completed, but there is a problem at this time, that is, it cannot display which fault point has set the fault and how many fault points have been set. Therefore, the next step is to set an animation display component to display the setting of the fault point to achieve better human-computer interaction. There are 16 fault points in total. When there are many fault points set, it is cumbersome to operate the reset button to cancel one by one. In order to improve the convenience of fault setting. A one-key reset button is set. Press this button to reset all fault points, and you can immediately proceed to the next fault setting. The properties of the one-key reset button are the same as those of the reset button. Fig.13 Each indicator light corresponds to a fault point. Press the setting button and the corresponding coil will be energized and closed to complete the setting of the fault point.

[0060] like Fig.14As shown in the figure, the test login interface requires the examinee to enter their name and test number (student number). A return button is set in this interface to facilitate the teacher to return to the previous page. Because the previous page is a fault setting interface, it is necessary to control permissions. Only the teacher can return to the previous page through the key. The permission setting is as follows: Fig.15 As shown. Fig.16 As shown, the pop-up window (confirmation to start the exam) is set. This interface is mainly set to make students clearly aware that they are ready to take the exam, so as to avoid entering the exam due to accidental touch and causing unnecessary trouble.

[0061] like Fig.17 and Fig.18 As shown, step 2 specifically includes: students use instruments to detect electrical circuits to get the answers they think of, and input the answers in the test interface. The input answers will be compared and judged in the written program. When the judgment is correct, the relay that has been set to fail will lose power and operate, and the background program will also record the number of correct answers; students need to enter four items for each set of answers, namely the starting line number, the terminal line number, the fault device, and the fault type. The starting line number and the terminal line number are input boxes, and the candidates need to determine the location of the fault based on their own detection. The location is input as a combination of numbers or letters and numbers; the fault device and the fault type are combination boxes, and static options are preset in the combination box. The fault devices are: air switch, contactor, wire, button; the fault types are: short circuit, open circuit, grounding, option setting.

[0062] like Fig.19 and Fig. 20 As shown, this interface has the same function as the pop-up window (confirm to start the exam) interface, which is used to remind candidates to submit their answers here to avoid accidental touches by candidates. Press the Yes button component to enter the scoring interface, and press the No button component to return to the exam interface.

[0063] like Fig.21 As shown, the scoring interface is set up. The function of the scoring interface is to display the final score of the examinee. The score is calculated by the PLC program and is obtained by dividing the number of correct answers by the set fault point and then multiplying it by the percentage.

[0064] like Fig. 22 As shown, the exit test interface is set up. The core function of this interface is to clear all data. To meet this function, the function of exiting the running environment is set in the operation properties of the button component.

[0065] like Fig.23As shown, step 1 specifically includes: fault point setting: a normally open contact M0.0 is set in the program diagram, corresponding to the setting button of the fault setting interface in the touch screen, the normally open contact M0.0 is connected to the coil Q0.0, and the coil Q0.0 is bound to the animation display component variable FU1 of Kunlun Tong state, and another normally open contact of the coil is connected in parallel at the normally open contact. When the setting button is pressed on the touch screen, the normally open contact M0.0 is closed, the coil Q0.0 is energized and self-locking is completed, the indicator light color of the bound variable changes, and the fault setting is completed; the normally open contact M0.0 in the program diagram is energized only when the button is pressed, and accordingly, the operation attribute of the button is set to press 1 and release 0.

[0066] Step 1 specifically includes: the variables of the output coil and the indicator light are bound to each other. Changing the variables can de-energize the coil. The operation attribute of the reset button is set to clear 0. Press the reset button to de-energize the output coil Q0.0, disconnect the coil normally open contact Q0.0, and reset the fault. Since 16 faults are preset and 16 setting button components are set, there are 16 output relay channels and 16 internal relay channels corresponding to them. The PLC program diagram, configuration variables and PLC variable channels are bound, such as Fig.23 shown.

[0067] The next step is to implement the function of the reset button. In this project, the variables of the output coil and the indicator light are bound, so the coil can be de-energized by simply changing the variables, so the operational properties of the reset button are set to clear 0. Taking the first fault as an example, press the reset button, the output coil Q0.0 loses power, the coil's normally open contact Q0.0 disconnects, and the fault is reset. In the above, this project also designed a one-key reset function. From the program logic of the PLC, it can be seen that the button corresponds to the normally closed contact M2.0. When the one-key reset button is pressed, the normally closed contact M2.0 disconnects, and the coil Q0.0 loses power and recovers. Since the one-key reset button restores all faults, the normally closed contact is included in the program of the 16 output coils, such as Fig.24 shown.

[0068] The second is the assessment function. In the assessment function, the examinee enters the answer, and the program needs to judge the examinee's answer. Here, this topic uses the comparison instruction in PLC programming. To set the comparison instruction, you need to enter the answer in the input box first, and then compare it with the answer to determine whether it is correct.

[0069] Since the data of the starting line number and the terminal line number are quite long, they will not be shown here. The obtained data is input into the data block according to the composition of the preset answer, such as Fig.25 shown.

[0070] Step 2 specifically includes: the confirmation button in the assessment interface corresponds to the normally open contact M2.3 of the latter part of the comparison instruction program; inserting the normally closed contact of the coil M1.0 at the rear end of the comparison program in the program for setting the fault; when the input answer is the same as the set fault, the data block data matches, and the four comparison instructions VB0, VB18, VB100, and VB150 are energized, then press the confirmation button, the normally open contact M2.3 corresponding to the button is closed, the coil M1.0 is energized, the normally closed contact M1.0 corresponding to the coil is disconnected, the coil Q0.0 for setting the fault loses power, the relay is activated, and the fault is eliminated; if the answer does not match, the coil M1.0 is not energized, and accordingly, the fault is not eliminated.

[0071] Step 2 specifically includes: during the assessment, the assessment time needs to be controlled, and the timer module in the PLC program is used. The timer module is preset to 40 minutes according to the assessment needs, and can be changed on the PLC program timer module later as needed; the start of the timer module requires a trigger signal. After repeated consideration, the variable Q2.0 of the trigger signal is bound to the pop-up window, confirming that the button to start the test is clicked, and when the button enters the assessment interface, the normally open contact Q2.0 is closed, and the timer receives the signal to start the countdown. When the timing ends, the timer outputs a signal; according to the requirements of the assessment, at the end of the timing, the examinee should not be able to continue answering questions. The normally closed contact corresponding to the output coil of timer T37 is placed in the program of the comparison instruction. When the output coil of timer T37 is energized, the corresponding normally closed contact is disconnected, and the output coil of the comparison instruction cannot be energized. The modified PLC program ladder diagram is as follows Fig.26 shown.

[0072] In addition, the number of answers needs to be set during the assessment to prevent candidates from guessing the correct answer through trial and error. To meet this function, this subject adds a counter to the PLC program ladder diagram, and the input end of the counter is inserted into the normally open contact bound to the confirm fault button variable channel. In this design, when the candidate clicks to confirm the fault more than the preset number of times, the counter outputs a signal, the normally closed contact in the comparison instruction program is disconnected, and the comparison instruction becomes invalid. The PLC program ladder diagram with the counter is as follows Fig. 27 shown.

[0073] Write a PLC ladder diagram, compare and judge the fault start line number, end line number, fault device, and fault type. If the data block is satisfied, an electrical signal is output. This part is the core part of the electrical circuit troubleshooting training module. The program ladder diagram and comparison instruction data block are as follows Fig.28 and Fig.29 The state variable table is organized as shown in Table 1.

[0074] Table 1 Fault device and fault type variable data table

[0075]

[0076] Taking the typical experiment 1 as an example, the use function of the electrical circuit troubleshooting device is explained. When entering the assessment interface, the timer program starts timing. Students troubleshoot the fault point by measuring the on-off state of the electrical circuit, and enter the answers into the two input boxes and two combo boxes and confirm. The comparison instruction compares the input answers. When the answer is correct, the PLC acts and the fault is eliminated. When the number of input answers exceeds the preset number, the normally closed contact of the counter instruction is disconnected, and the comparison instruction program fails. When the test time reaches the set time, the normally closed contact of the timer instruction is disconnected, and the comparison instruction program also fails. Therefore, the condition for answering the questions is that it is within the specified test time and does not exceed the set number of answers.

[0077] In summary, although the present invention has been disclosed as above in terms of preferred embodiments, the above preferred embodiments are not intended to limit the present invention. A person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined in the claims.

Claims

1. A method for performing functional testing of an electrical circuit detection module, characterized in that: The following steps are involved: Step 1: Enter the training module assessment interface on the homepage. The teacher sets the fault point on the teacher side. After completing the fault setting interface, enter the next interface. The next interface is the student login interface. To prevent students from returning to the previous interface, the student login interface is designed with permissions so that students cannot return to the previous interface. Students enter their name, test number, and student number on the login interface and click Confirm. A pop-up window appears with two options, Yes and No, for students to choose whether to start the exam at this time. Step 2. Next, enter the examination interface. In addition to the answer box, there is also a countdown clock to remind students of the remaining examination time. After clicking Submit, another pop-up window will appear to remind candidates whether to submit the answer sheet. After confirmation, enter the scoring interface. The background will calculate the score based on the answer situation and display it on the interface. Finally, set an exit interface. After clicking Confirm, exit the assessment and reset all assessment settings such as fault settings, answering questions, timing, and scoring, and return to the home page.

2. The method for performing functional testing of an electrical circuit detection module according to claim 1, characterized in that: The workbench window of step 1 sets the options of main control window, device window, user window, real-time database, operation strategy, window 1, window 2, home page, scoring, test login interface, test timing interface, exit test, submission confirmation, and confirmation to start test.

3. The method for performing functional testing of an electrical circuit detection module according to claim 1, characterized in that: The fault setting interface of step 1 places 16 setting buttons and 16 reset buttons. Each setting button controls the corresponding fault point and does not interfere with each other. The 16 reset buttons correspond to the 16 setting buttons one by one. When the setting button has set the fault, press the corresponding reset button and the fault will be canceled.

4. The method for performing functional testing of an electrical circuit detection module according to claim 1, characterized in that: Step 1 specifically includes: fault point setting: a normally open contact M0.0 is set in the program diagram, corresponding to the setting button of the fault setting interface in the touch screen, the normally open contact M0.0 is connected to the coil Q0.0, and the coil Q0.0 is bound to the animation display component variable FU1 of Kunlun Tong state, and another normally open contact of the coil is connected in parallel at the normally open contact. When the setting button is pressed on the touch screen, the normally open contact M0.0 is closed, the coil Q0.0 is energized and self-locking is completed, the indicator light color of the bound variable changes, and the fault setting is completed; the normally open contact M0.0 in the program diagram is energized only when the button is pressed, and accordingly, the operation attribute of the button is set to press 1 and release 0.

5. The method for performing functional testing of an electrical circuit detection module according to claim 4, characterized in that: Step 1 specifically includes: the variables of the output coil and the indicator light are bound to each other, the coil can be de-energized by changing the variables, and the operation attribute of the reset button is set to clear 0; when the reset button is pressed, the output coil Q0.0 loses power, the coil normally open contact Q0.0 is disconnected, and the fault is reset.

6. The method for performing functional testing of an electrical circuit detection module according to claim 1, characterized in that: Step 2 specifically includes: students use instruments to detect electrical circuits, get the answers they think of, and input the answers on the test interface. The input answers will be compared and judged in the written program. When the judgment is correct, the relay that has been set to fail will lose power and operate, and the background program will also record the number of correct answers; students need to enter four items for each set of answers, namely the starting line number, the terminal line number, the fault device, and the fault type. The starting line number and the terminal line number are input boxes, and the candidates need to determine the location of the fault based on their own detection. The location is input as a combination of numbers or letters and numbers; the fault device and the fault type are combination boxes, and static options are preset in the combination box. The fault devices are: air switch, contactor, wire, button; the fault types are: short circuit, open circuit, grounding, and option settings.

7. A method for performing functional testing of an electrical circuit detection module according to claim 6, characterized in that: Step 2 specifically includes: the confirmation button in the assessment interface corresponds to the normally open contact M2.3 of the latter part of the comparison instruction program; inserting the normally closed contact of the coil M1.0 at the rear end of the comparison program in the program for setting the fault; when the input answer is the same as the set fault, the data block data matches, and the four comparison instructions VB0, VB18, VB100, and VB150 are energized, then press the confirmation button, the normally open contact M2.3 corresponding to the button is closed, the coil M1.0 is energized, the normally closed contact M1.0 corresponding to the coil is disconnected, the coil Q0.0 for setting the fault loses power, the relay is activated, and the fault is eliminated; if the answer does not match, the coil M1.0 is not energized, and accordingly, the fault is not eliminated.

8. A method for performing functional testing of an electrical circuit detection module according to claim 7, characterized in that: Step 2 specifically includes: during the assessment, the assessment time needs to be controlled, and the timer module in the PLC program is used. The timer module is preset to 40 minutes according to the assessment needs, and can be changed on the PLC program timer module later as needed; the start of the timer module requires a trigger signal. After repeated consideration, the variable Q2.0 of the trigger signal is bound to the pop-up window, confirming that the button to start the test is clicked, and when the button is clicked and the assessment interface is entered, the normally open contact Q2.0 is closed, and the timer receives the signal to start the countdown. When the timing ends, the timer outputs a signal; according to the requirements of the assessment, when the timing ends, the examinee should not be able to continue answering questions. The normally closed contact corresponding to the output coil of the timer T37 is placed in the program of the comparison instruction. When the output coil of the timer T37 is energized, the corresponding normally closed contact is disconnected, and the output coil of the comparison instruction cannot be energized.

Citation Information

Patent Citations

  • PROFIBUS based fault setting system

    CN104966456A

  • MCGS interface based maintenance electrician intelligent training and examination system

    CN104966457A

  • Intelligent troubleshooting practical training system and method and intelligent troubleshooting practical training device

    CN108399843A

  • PLC (programmable logic controller)-based electrical control loop fault point assessment system and assessment method

    CN110543165A

  • Automobile troubleshooting examination device and method

    CN114078348A