Drive detection method, system, device, terminal equipment and storage medium
Drive detection is automatically completed through the Ethernet fieldbus protocol connection between the control device and the main station device, solving the problem of complex and inefficient detection in the prior art, and achieving efficient drive detection.
Patent Information
- Application Number
- CN202211037276.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2042-08-26
AI Technical Summary
The existing driver detection methods are complex and inefficient, and technicians need to manually operate the host computer software or oscilloscope for multi-project detection.
The control device receives the start detection command and sends detection task information to the main station device. The main station device connects to the target driver based on the Ethernet fieldbus protocol for detection, and returns the result to the control device, and displays the visual detection information.
Drive detection is completed without too much manual operation, which improves detection efficiency and simplifies the detection process.
Smart Images

Figure CN115550209B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of drive detection technology, and in particular to a drive detection method, system, device, terminal equipment and storage medium. Background Art
[0002] The driver is mainly used to send drive signals to the motor. It is an important part of industrial motion control and is widely used in automation equipment such as industrial robots and CNC machining centers. For the driver manufacturer, it is necessary to perform multiple tests on the driver before leaving the factory, especially the test of the peripheral interface, to ensure the factory quality. In the past, the driver testing was done by technicians operating the host computer software, oscilloscope or other testing equipment to complete the multi-item test of the driver one by one. This testing method has many steps and is complicated, and the testing efficiency is low. Summary of the invention
[0003] The main purpose of the present application is to provide a drive detection method, system, device, terminal equipment and storage medium to solve the problem.
[0004] To achieve the above object, the present application provides a driver detection method, the driver detection method comprising:
[0005] Receiving a start detection instruction through a control device, and sending detection task information to a master station device based on the start detection instruction;
[0006] The target drive is detected by the master station device according to the detection task information, and the detection result is returned to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol;
[0007] The control device displays visual detection information according to the detection result.
[0008] Optionally, the step of detecting the target drive according to the detection task information by the master station device and returning the detection result to the control device includes:
[0009] The master station device analyzes the detection task information to determine that the items to be detected are one or more of a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item;
[0010] The target drive is detected based on the item to be detected, and the detection result is obtained and returned to the control device.
[0011] Optionally, the step of displaying visual detection information according to the detection result by the control device includes:
[0012] If there is an item that has passed the test among the items to be tested, the control device displays the item that has passed the test with a first status indicator light;
[0013] If there are items that fail the test among the items to be tested, the control device displays the items that pass the test with a second status indicator light.
[0014] Optionally, after the step of detecting the target drive based on the item to be detected, obtaining the detection result and returning it to the control device, the step further includes:
[0015] If all the items to be tested are tested to be passed, the target drive is determined to be a qualified product;
[0016] If at least one of the items to be tested fails to pass the test, the target drive is determined to be a defective product.
[0017] Optionally, the driver detection method further includes:
[0018] Counting the number of qualified products and defective products to obtain statistical results;
[0019] The statistical results are displayed by the control device.
[0020] Optionally, before the step of receiving the start detection instruction through the control device and sending the detection task information to the master station device based on the start detection instruction, the step further includes:
[0021] Acquiring the model information of the target drive through the control device;
[0022] Determine the number of input and output interfaces corresponding to the target driver according to the model information;
[0023] The detection parameters of the control device are configured according to the input and output interface quantity information.
[0024] The embodiment of the present application also provides a driver detection system, the driver detection system includes a control device and a master station device, the master station device is connected to the target driver based on the Ethernet field bus protocol;
[0025] The control device is used to receive a start detection instruction, and send detection task information to the master station device based on the start detection instruction; receive the detection result returned by the master station device after detecting the target drive according to the detection task information; and display visual detection information according to the detection result;
[0026] The master station device is used to receive the detection task information sent by the control device; detect the target drive according to the detection task information, and return the detection result to the control device.
[0027] The present application also provides a driver detection device, the driver detection device comprising:
[0028] A receiving module, used for receiving a start detection instruction through a control device, and sending detection task information to a master station device based on the start detection instruction;
[0029] A detection module detects the target drive according to the detection task information through the master station device and returns the detection result to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol;
[0030] The display module is used to display visual detection information according to the detection result through the control device.
[0031] An embodiment of the present application also proposes a terminal device, which includes a memory, a processor, and a driver detection program stored in the memory and executable on the processor, wherein the driver detection program implements the steps of the driver detection method described above when executed by the processor.
[0032] The embodiment of the present application further provides a computer-readable storage medium, on which a drive detection program is stored. When the drive detection program is executed by a processor, the steps of the drive detection method described above are implemented.
[0033] The driver detection method, system, device, terminal device and storage medium proposed in the embodiments of the present application specifically receive a start detection instruction through a control device, and send detection task information to a master device based on the start detection instruction; the master device detects the target driver according to the detection task information, and returns the detection result to the control device, wherein the master device and the target driver are connected based on an Ethernet fieldbus protocol; the control device displays visual detection information according to the detection result. Based on the scheme of the present application, the control device receives a start detection instruction and sends detection task information to the master device, and then the master device detects the target driver according to the detection task information, and returns the detection result to the control device for display, so that the detection of the target driver can be completed without too much manual operation, solving the problem of low efficiency of traditional detection methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a schematic diagram of the functional modules of the terminal device to which the driver detection device of this application belongs;
[0035] Figure 2 This is a flowchart of a first exemplary embodiment of a driver detection method of the present application;
[0036] Figure 3 This is a flow chart of a second exemplary embodiment of a driver detection method of the present application;
[0037] Figure 4 This is a schematic flow chart of a third exemplary embodiment of a driver detection method of the present application;
[0038] Figure 5 This is a flowchart of a fourth exemplary embodiment of a driver detection method of the present application;
[0039] Figure 6 This is a flowchart of a fifth exemplary embodiment of a driver detection method of the present application;
[0040] Figure 7 This is a flowchart of a sixth exemplary embodiment of a driver detection method of the present application;
[0041] Figure 8 A system topology diagram of the driver detection system embodiment of the present application;
[0042] Fig. 9 This is a schematic diagram of the human-computer interaction interface of the control device involved in the driver detection method of this application.
[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The main solution of the embodiment of the present application is: receiving the start detection instruction through the control device, and sending the detection task information to the master device based on the start detection instruction; the master device detects the target drive according to the detection task information, and returns the detection result to the control device, wherein the master device and the target drive are connected based on the Ethernet fieldbus protocol; the control device displays the visual detection information according to the detection result. Based on the scheme of the present application, the control device receives the start detection instruction and sends the detection task information to the master device, and then the master device detects the target drive according to the detection task information, and returns the detection result to the control device for display, so that the detection of the target drive can be completed without too much manual operation, solving the problem of low efficiency of traditional detection methods.
[0046] Specifically, refer to Figure 1, Figure 1 This is a functional module diagram of the terminal device to which the driver detection device of the present application belongs. The driver detection device can be a device that is independent of the terminal device and can perform driver detection, and it can be carried on the terminal device in the form of hardware or software. The terminal device can be a smart mobile terminal with data processing functions such as a mobile phone or a tablet computer, or a fixed terminal device or server with data processing functions.
[0047] In this embodiment, the terminal device to which the driver detection apparatus belongs includes at least an output module 110 , a processor 120 , a memory 130 and a communication module 140 .
[0048] The memory 130 stores an operating system and a driver detection program. The driver detection device can store information such as the startup detection instruction received by the control device; the detection task information sent to the main station device based on the startup detection instruction; the detection result obtained by the main station device detecting the target driver according to the detection task information; and the visual detection information displayed by the control device according to the detection result in the memory 130; the output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, a Bluetooth module, etc., and communicates with an external device or server through the communication module 140.
[0049] When the driver detection program in the memory 130 is executed by the processor, the following steps are implemented:
[0050] Receiving a start detection instruction through a control device, and sending detection task information to a master station device based on the start detection instruction;
[0051] The target drive is detected by the master station device according to the detection task information, and the detection result is returned to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol;
[0052] The control device displays visual detection information according to the detection result.
[0053] Furthermore, when the driver detection program in the memory 130 is executed by the processor, the following steps are also implemented:
[0054] The master station device analyzes the detection task information to determine that the items to be detected are one or more of a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item;
[0055] The target drive is detected based on the item to be detected, and the detection result is obtained and returned to the control device.
[0056] Furthermore, when the driver detection program in the memory 130 is executed by the processor, the following steps are also implemented:
[0057] If there is an item that has passed the test among the items to be tested, the control device displays the item that has passed the test with a first status indicator light;
[0058] If there are items that fail the test among the items to be tested, the control device displays the items that pass the test with a second status indicator light.
[0059] Furthermore, when the driver detection program in the memory 130 is executed by the processor, the following steps are also implemented:
[0060] If all the items to be tested are tested to be passed, the target drive is determined to be a qualified product;
[0061] If at least one of the items to be tested fails to pass the test, the target drive is determined to be a defective product.
[0062] Furthermore, when the driver detection program in the memory 130 is executed by the processor, the following steps are also implemented:
[0063] Counting the number of qualified products and defective products to obtain statistical results;
[0064] The statistical results are displayed by the control device.
[0065] Furthermore, when the driver detection program in the memory 130 is executed by the processor, the following steps are also implemented:
[0066] Acquiring the model information of the target drive through the control device;
[0067] Determine the number of input and output interfaces corresponding to the target driver according to the model information;
[0068] The detection parameters of the control device are configured according to the input and output interface quantity information.
[0069] This embodiment adopts the above scheme, specifically, receives the start detection instruction through the control device, and sends the detection task information to the master device based on the start detection instruction; the master device detects the target drive according to the detection task information, and returns the detection result to the control device, wherein the master device and the target drive are connected based on the Ethernet fieldbus protocol; the control device displays the visual detection information according to the detection result. In this embodiment, the control device receives the start detection instruction and sends the detection task information to the master device, and then the master device detects the target drive according to the detection task information, and returns the detection result to the control device for display, so that the detection of the target drive can be completed without too much manual operation, solving the problem of low efficiency of traditional detection methods.
[0070] Reference Figure 2 The first embodiment of the driver detection method of the present application provides a flow chart. The control device involved in this embodiment can be an industrial tablet computer, an industrial computer with a display function, or other devices that can send and receive control signals; the master station device can be a device that supports the EtherCAT (Ethernet Control Automation Technology) protocol and acts as a master station in the EtherCAT network topology system; the driver can be an EtherCAT bus driver that supports the EtherCAT protocol. Among them, the control device and the master station device are connected through a serial port, and the master station device and the driver are connected based on the EtherCAT protocol. The driver detection method includes:
[0071] Step S10, receiving a start detection instruction through a control device, and sending detection task information to a master station device based on the start detection instruction;
[0072] Specifically, the control device is provided with a virtual key, a physical key or a software interface for starting the detection. The technician presses the virtual key or physical key for starting the detection (equivalent to giving the control device a start detection instruction), or the host computer sends a start detection instruction to the software interface for starting the detection. Accordingly, the control device receives the start detection instruction, further parses and processes the start detection instruction, and generates corresponding detection task information according to the model of the connected target drive. The detection task information covers all items to be detected before the target drive leaves the factory. Further, the control device sends the detection task information to the master station device.
[0073] Step S20, detecting the target drive according to the detection task information through the master station device, and returning the detection result to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol;
[0074] Specifically, the master station device is connected with the target driver based on the Ethernet field bus protocol (referring to the EtherCAT protocol). After receiving the detection task information sent by the control device, the master station device parses the detection task information to determine the specific items to be detected. Then, based on the EtherCAT protocol specification, a detection signal covering all items to be detected is generated for detection, and the detection signal is sent to the target driver. The target driver will respond after receiving the detection signal, and the response result will be fed back to the master station device based on the EtherCAT protocol specification. In this way, the master station device has completed the detection of the target driver. The detection result received by the master station device belongs to the information of the EtherCAT protocol specification, and it is necessary to parse and process the detection result so that it meets the serial communication specification between the master station device and the control device. Then, the master station device returns the processed detection result to the control device.
[0075] Step S30: displaying visual detection information according to the detection result by the control device.
[0076] Specifically, the control device analyzes the received detection results to obtain visual detection information, and displays it in the human-computer interaction interface of its display component, such as Fig. 9 As shown, Fig. 9 The human-machine interface diagram of the control device is shown in the figure. The human-machine interface at least displays information on whether all the items to be tested of the target drive have passed, or displays one or more of the following: the model of the target drive, detailed information of the items to be tested, a virtual key to start the test, and statistical data of qualified and defective products.
[0077] This embodiment adopts the above scheme, specifically, receives the start detection instruction through the control device, and sends the detection task information to the master device based on the start detection instruction; the master device detects the target drive according to the detection task information, and returns the detection result to the control device, wherein the master device and the target drive are connected based on the Ethernet fieldbus protocol; the control device displays the visual detection information according to the detection result. In this embodiment, the control device receives the start detection instruction and sends the detection task information to the master device, and then the master device detects the target drive according to the detection task information, and returns the detection result to the control device for display, so that the detection of the target drive can be completed without too much manual operation, solving the problem of low efficiency of traditional detection methods.
[0078] Further, refer to Figure 3 The second embodiment of the driver detection method of the present application provides a flow chart based on the above Figure 2In the embodiment shown, step S20, the master station device detects the target drive according to the detection task information and returns the detection result to the control device for further refinement, including:
[0079] Step S201, parsing the detection task information through the master station device to determine whether the item to be detected is one or more of a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item;
[0080] Specifically, different drive models require different test items. The master station device needs to parse the received test task information to determine the specific test items. The test items can be divided into five items: burning file items, network port communication items, signal input items, signal output items, and motor control items. According to the requirements of the test task information, the master station device determines that the test items for the target drive are one or more of the above five test items.
[0081] Step S202: Detect the target drive based on the item to be detected, obtain the detection result and return it to the control device.
[0082] Specifically, after determining the items to be detected, the master station device generates a detection signal based on the EtherCAT protocol specification, and detects the target drive one by one according to the items to be detected.
[0083] For the burning file item, the target drive has a file pre-burned into its internal chip, and the master device stores a configuration file corresponding to the burning file, which is generally in the extensible markup language format (XML). The master device can send a corresponding detection signal to the target drive according to the configuration file to detect whether the burning file of the target drive is correct;
[0084] For network port communication items, the main purpose is to detect whether the target drive supports the EtherCAT protocol. Fig. 9 As shown, "ECATOUT" corresponds to a communication interface on the target drive that supports the EtherCAT protocol, and the target drive is connected to the next drive through this communication interface. The master device sends a detection signal generated based on the EtherCAT protocol specification to the target drive. If the target drive enters the operational mode based on the detection signal, and the next drive connected through the communication interface can also enter the operational mode. This shows that the target drive can not only receive the detection signal normally, but also transmit the detection signal to the next drive through the communication interface. The target drive can receive and send information about the EtherCAT communication protocol, and the network port communication item detection passes.
[0085] For the signal input items and signal output items, it is assumed that the master device has a signal input interface A and a signal output interface B, and the target drive has a signal input interface C and a signal output interface D. In the EtherCAT bus networking, the signal input interface A is connected to the signal output interface D, and the signal output interface B is connected to the signal input interface C. The master device sends a signal E to the target drive through the signal output interface B, and determines whether the signal input interface C of the target drive is normal according to whether the target drive receives the signal E through the signal input interface C; in addition, the master device sends a signal F based on the EtherCAT protocol specification to the target drive, and the target drive feeds back a signal G to the master device through the signal output interface D according to the received signal F, and determines whether the signal output interface D of the target drive is normal according to whether the master device receives the signal G through the signal input interface A. In this way, the detection of the signal input interface C and the signal output interface D of the target drive is completed, and this method can be used to detect multiple signal input and output interfaces of the target drive.
[0086] For motor control items, the target drive is connected to a stepper motor or a servo motor. The master device sends a detection signal based on the EtherCAT protocol specification to the target drive to control the target drive to drive the motor. The target drive feeds back the actual movement position of the motor to the master device. In this way, the master device can determine whether the motor control function of the target drive is normal based on the actual movement position of the motor.
[0087] The test results of the above items to be tested will eventually be displayed on the human-computer interaction interface of the control device, such as Fig. 9 As shown, "XML file burning" corresponds to the burning file item, "ECAT OUT" corresponds to the network port communication item, "Input" and "Output" correspond to the signal input item and signal output item, and "Forward and reverse" corresponds to the motor control item.
[0088] The detection result obtained by the master device after completing the detection belongs to the information of the EtherCAT protocol specification, and the detection result needs to be parsed and processed to make it conform to the serial port communication specification between the master device and the control device. Then, the master device returns the processed detection result to the control device.
[0089] In this embodiment, the master station device parses the detection task information through the above scheme, and determines that the items to be detected are one or more of the burning file items, network port communication items, signal input items, signal output items, and motor control items; based on the items to be detected, the target driver is detected, and the detection result is obtained and returned to the control device. In this embodiment, the master station device parses the detection task information, determines the items to be detected, and further detects the target driver. The detection items cover the main detection requirements of the factory inspection, and can be automatically performed by the master station device, which effectively saves manual operation time and improves detection efficiency.
[0090] Further, refer to Figure 4 The third embodiment of the driver detection method of the present application provides a flow chart based on the above Figure 3 In the embodiment shown, step S30, further refining the display of the visual detection information according to the detection result by the control device includes:
[0091] Step S301, if there is an item that has passed the test among the items to be tested, the control device displays the item that has passed the test with a first status indicator light;
[0092] Specifically, an indicator light is provided on the human-computer interaction interface of the control device, and a specific indicator light state indicates whether a certain item to be detected has passed the detection. For example, the indicator light turns on or off or has different colors to indicate whether a certain item to be detected has passed the detection.
[0093] If there is an item that has passed the test among the items to be tested, accordingly, the indicator light on the human-computer interaction interface regarding the item to be tested is set to be on, or the indicator light is set to green to indicate that the item to be tested has passed.
[0094] Step S302: If there are items that fail the test among the items to be tested, the control device displays the items that pass the test with a second status indicator light.
[0095] If there is an item that fails the test among the items to be tested, accordingly, the indicator light on the human-computer interaction interface for the item to be tested is set to off, or the indicator light is set to red to indicate that the item to be tested has failed.
[0096] like Fig. 9 As shown, the "pass" item may correspond to the first status indicator light, and the "error" item may correspond to the second status indicator light.
[0097] This embodiment adopts the above scheme, specifically, if there are items that have passed the test among the items to be tested, the control device displays the items that have passed the test with a first status indicator light; if there are items that have not passed the test among the items to be tested, the control device displays the items that have passed the test with a second status indicator light. In this embodiment, different states of the indicator light indicate whether the item to be tested has passed, and the technician can intuitively know the test result through the indicator light, making the test work more convenient and quick.
[0098] Further, refer to Figure 5 The fourth embodiment of the driver detection method of the present application provides a flow chart based on the above Figure 3 In the embodiment shown, step S20, after the step of detecting the target drive based on the item to be detected, obtaining the detection result and returning it to the control device, further includes:
[0099] Step S001, if all the items to be tested are tested and passed, then the target drive is determined to be a qualified product;
[0100] Specifically, the factory qualified condition of the driver is preset as that all the items to be tested are tested and passed. If all the items to be tested of the target driver are tested and passed, the target driver is determined to be a qualified product, and the product number of the target driver is recorded.
[0101] Step S002: If at least one of the items to be tested fails, the target drive is determined to be a defective product.
[0102] Specifically, if at least one of the items to be tested of the target drive fails, it indicates that the target drive does not meet the factory conditions, is determined to be a defective product, and the product number of the target drive is recorded.
[0103] In this embodiment, the target drive is determined to be a qualified product if all the items to be detected are detected and the target drive is determined to be a defective product if at least one of the items to be detected is detected and failed. In this embodiment, the target drive is distinguished as a qualified product or a defective product based on whether all the items to be detected are detected and passed, so that a final reference result is obtained in the detection process.
[0104] Further, refer to Figure 6 The fifth embodiment of the driver detection method of the present application provides a flow chart based on the above Figure 5 In the embodiment shown, the driver detection method further includes:
[0105] Step S003, counting the number of qualified products and defective products to obtain statistical results;
[0106] Specifically, in an actual production environment, multiple drivers may be tested continuously within a period of time. After a driver is determined to be a qualified product or a defective product, the control device will adjust the statistical number of qualified products or defective products accordingly.
[0107] Step S004: displaying the statistical results through the control device.
[0108] After obtaining the statistical quantity information of qualified products and defective products, the control device further displays it in the human-computer interaction interface. It can display the words "qualified products" and "defective products" and the corresponding quantities, or on this basis display the ratio of qualified products to defective products to the total number of inspected drives, that is, display the qualified rate and the defective rate.
[0109] like Fig. 9 As shown, the statistical data of qualified products and defective products are displayed in the human-computer interaction interface.
[0110] In this embodiment, the number of qualified products and defective products is counted and displayed by the control device, so that the technicians can know the statistical data more intuitively.
[0111] Further, refer to Figure 7 The sixth embodiment of the driver detection method of the present application provides a flow chart based on the above Figure 2 In the embodiment shown, before the step of receiving the start detection instruction by the control device and sending the detection task information to the master station device based on the start detection instruction, it also includes:
[0112] Step S005, obtaining the model information of the target drive through the control device;
[0113] In the driver detection process, the control device and the master station device are often fixed, while the driver to be detected may change due to actual production needs, that is, different models of drivers are tested. Therefore, it is necessary to first obtain the model information of the target driver by manual entry or automatic reading, so as to detect the target driver in a targeted manner later.
[0114] Step S003, determining the number of input and output interfaces corresponding to the target drive according to the model information;
[0115] After obtaining the model information of the target drive, the number of input interfaces and the number of output interfaces of the target drive can be further determined according to the model information. Specifically, the model information is used as a query condition to query a pre-stored detection configuration table or detection configuration database file to obtain the input and output interface number information corresponding to the target drive.
[0116] Step S007: configuring the detection parameters of the control device according to the input and output interface quantity information.
[0117] After determining the number of input and output interfaces corresponding to the target drive, the detection parameters of the control device are further configured according to the number of input and output interfaces. In the subsequent detection process, the input interface and output interface corresponding to the target drive can be detected in a targeted manner based on the detection parameters, that is, the detection instructions are adjusted according to the number of output interfaces.
[0118] In this embodiment, the control device obtains the model information of the target drive through the above scheme; determines the number of input and output interfaces corresponding to the target drive according to the model information; and configures the detection parameters of the control device according to the number of input and output interfaces. In this embodiment, the control device obtains the model information of the target drive, further determines the number of input and output interfaces corresponding to the target drive, and configures the detection parameters of the control device, so that the drive detection method of this embodiment can be compatible with drives of different models.
[0119] Reference Figure 8 , the system topology diagram involved in the embodiment of the driver detection system of the present application, wherein the control device and the master station device are connected through a serial port, and the master station device and the driver are connected based on the EtherCAT protocol.
[0120] The control device is provided with a virtual key, a physical key or a software interface for starting the detection. The technician presses the virtual key or physical key for starting the detection (equivalent to giving the control device a start detection instruction), or the host computer sends a start detection instruction to the software interface for starting the detection. Accordingly, the control device receives the start detection instruction, further parses and processes the start detection instruction, and generates corresponding detection task information according to the model of the connected target drive. The detection task information covers all items to be detected before the target drive leaves the factory. Furthermore, the control device sends the detection task information to the master station device.
[0121] After receiving the detection task information sent by the control device, the master device parses the detection task information and determines the specific items to be detected. Then, based on the EtherCAT protocol specification, it generates a detection signal covering all items to be detected and sends the detection signal to the target drive. After receiving the detection signal, the target drive will respond and feed back the response result to the master device based on the EtherCAT protocol specification. In this way, the master device completes the detection of the target drive.
[0122] When the master device receives the detection result that is in accordance with the EtherCAT protocol specification, it needs to parse and process the detection result to make it conform to the serial port communication specification between the master device and the control device. Then, the master device returns the processed detection result to the control device.
[0123] The control device analyzes the received test results, obtains visual test information, and displays it in the human-computer interaction interface of its display component. The human-computer interaction interface at least displays information on whether all items to be tested of the target drive have passed, or on this basis displays one or more of the model of the target drive, detailed information of the items to be tested, a virtual button to start the test, and statistical data of qualified and defective products.
[0124] In this embodiment, the control device receives a start detection instruction and sends detection task information to the master station device. Then, the master station device detects the target drive according to the detection task information and returns the detection result to the control device for display. In this way, the detection of the target drive can be completed without excessive manual operation, solving the problem of low efficiency of traditional detection methods.
[0125] In addition, an embodiment of the present application further provides a driver detection device, the driver detection device comprising:
[0126] A receiving module, used for receiving a start detection instruction through a control device, and sending detection task information to a master station device based on the start detection instruction;
[0127] A detection module detects the target drive according to the detection task information through the master station device and returns the detection result to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol;
[0128] The display module is used to display visual detection information according to the detection result through the control device.
[0129] For the principle and implementation process of realizing the driver detection in this embodiment, please refer to the above embodiments and will not be described in detail here.
[0130] In addition, an embodiment of the present application also proposes a terminal device, which includes a memory, a processor, and a driver detection program stored in the memory and executable on the processor, and the driver detection program implements the steps of the driver detection method described above when executed by the processor.
[0131] Since all the technical solutions of all the aforementioned embodiments are adopted when the driver detection program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0132] In addition, an embodiment of the present application further proposes a computer-readable storage medium, on which a drive detection program is stored. When the drive detection program is executed by a processor, the steps of the drive detection method described above are implemented.
[0133] Since all the technical solutions of all the aforementioned embodiments are adopted when the driver detection program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0134] Compared with the prior art, the driver detection method, system, device, terminal device and storage medium proposed in the embodiment of the present application receive the start detection instruction through the control device, and send the detection task information to the master device based on the start detection instruction; the master device detects the target driver according to the detection task information, and returns the detection result to the control device, wherein the master device and the target driver are connected based on the Ethernet fieldbus protocol; the control device displays the visual detection information according to the detection result. In this embodiment, the control device receives the start detection instruction and sends the detection task information to the master device, then the master device detects the target driver according to the detection task information, and returns the detection result to the control device for display, so that the detection of the target driver can be completed without too much manual operation, solving the problem of low efficiency of traditional detection methods.
[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0136] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0138] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A drive detection method, characterized in that: The driver detection method comprises: Receive a start-up detection instruction through a control device, and send detection task information to a master station device based on the start-up detection instruction, wherein the detection task information is generated according to the start-up detection instruction and target drive model information, and includes multiple items to be detected in a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item; The target drive is detected by the master station device according to the detection task information, and the detection result is returned to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol; Displaying visual detection information according to the detection result by the control device; Before the step of receiving the start detection instruction through the control device and sending the detection task information to the master station device based on the start detection instruction, the step further includes: Acquiring the model information of the target drive through the control device; Determine the number of input and output interfaces corresponding to the target drive according to the model information and a pre-stored detection configuration table or detection configuration database file; Configuring detection parameters of the control device according to the input and output interface quantity information; The step of detecting the target drive according to the detection task information by the master station device and returning the detection result to the control device includes: The master station device analyzes the detection task information to determine that the items to be detected are multiple items of a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item; Detecting the target drive based on the item to be detected, obtaining the detection result and returning it to the control device; The step of displaying visual detection information according to the detection result by the control device includes: If there is an item that has passed the test among the items to be tested, the control device displays the item that has passed the test with a first status indicator light; If there are items that fail the test among the items to be tested, the control device will display the items that fail the test with a second status indicator light.
2. The drive detection method according to claim 1, characterized in that: After the step of detecting the target drive based on the item to be detected, obtaining the detection result and returning it to the control device, the following step further includes: If all the items to be tested are tested to be passed, the target drive is determined to be a qualified product; If at least one of the items to be tested fails to pass the test, the target drive is determined to be a defective product.
3. The drive detection method according to claim 2, characterized in that: The driver detection method further comprises: Counting the number of qualified products and defective products to obtain statistical results; The statistical results are displayed by the control device.
4. A driver detection system, characterized in that: The driver detection system includes a control device and a master station device, and the master station device is connected to the target driver based on the Ethernet field bus protocol; The control device is used to receive a start-up detection instruction, and send detection task information to a master station device based on the start-up detection instruction, wherein the detection task information is generated according to the start-up detection instruction and target drive model information, and includes multiple items to be detected in a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item; receive the detection result returned by the master station device after detecting the target drive according to the detection task information; display visual detection information according to the detection result; if there is an item that passes the detection among the items to be detected, the item that passes the detection is displayed with a first status indicator light; if there is an item that fails the detection among the items to be detected, the item that fails the detection is displayed with a second status indicator light; The control device is further used to obtain the model information of the target drive; Determine the number of input and output interfaces corresponding to the target drive according to the model information and a pre-stored detection configuration table or detection configuration database file; Configuring detection parameters of the control device according to the input and output interface quantity information; The master station device is used to receive the detection task information sent by the control device; detect the target drive according to the detection task information, and return the detection result to the control device; parse the detection task information, and determine that the items to be detected are multiple items among the burning file item, the network port communication item, the signal input item, the signal output item and the motor control item; detect the target drive based on the items to be detected, obtain the detection result and return it to the control device.
5. A driver detection device, characterized in that: The driver detection device comprises: A receiving module, used for receiving a start-up detection instruction through a control device, and sending detection task information to a master station device based on the start-up detection instruction, wherein the detection task information is generated according to the start-up detection instruction and target drive model information, and includes a plurality of items to be detected in a burning file item, a network port communication item, a signal input item, a signal output item, and a motor control item; A detection module detects the target drive according to the detection task information through the master station device and returns the detection result to the control device, wherein the master station device and the target drive are connected based on the Ethernet field bus protocol; A display module, used to display visual detection information according to the detection result through the control device; The receiving module is further used to obtain the model information of the target driver through the control device; Determine the number of input and output interfaces corresponding to the target drive according to the model information and a pre-stored detection configuration table or detection configuration database file; Configuring detection parameters of the control device according to the input and output interface quantity information; The detection module is further used to parse the detection task information through the master station device, determine that the items to be detected are multiple items of the burning file item, the network port communication item, the signal input item, the signal output item and the motor control item; detect the target drive based on the items to be detected, obtain the detection result and return it to the control device; The display module is also used for displaying the items that have passed the inspection with a first status indicator light through the control device if there are items that have passed the inspection among the items to be inspected; and for displaying the items that have failed the inspection with a second status indicator light through the control device if there are items that have failed the inspection among the items to be inspected.
6. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a driver detection program stored in the memory and executable on the processor. When the driver detection program is executed by the processor, the steps of the driver detection method according to any one of claims 1 to 3 are implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a drive detection program, and when the drive detection program is executed by a processor, the steps of the drive detection method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Industrial robot function testing system and testing method
CN109483601A
Modular servo drive unit comprehensive test platform based on bus control
CN111157893A