Movatterモバイル変換


[0]ホーム

URL:


CN114553755B - Function test method, system, device, terminal equipment and storage medium - Google Patents

Function test method, system, device, terminal equipment and storage medium
Download PDF

Info

Publication number
CN114553755B
CN114553755BCN202210096426.6ACN202210096426ACN114553755BCN 114553755 BCN114553755 BCN 114553755BCN 202210096426 ACN202210096426 ACN 202210096426ACN 114553755 BCN114553755 BCN 114553755B
Authority
CN
China
Prior art keywords
test
motion
parameter information
motion state
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210096426.6A
Other languages
Chinese (zh)
Other versions
CN114553755A (en
Inventor
胡小洁
杨昕澎
胡红波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yankong Automation Technology Co ltd
Original Assignee
Shenzhen Yankong Automation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yankong Automation Technology Co ltdfiledCriticalShenzhen Yankong Automation Technology Co ltd
Priority to CN202210096426.6ApriorityCriticalpatent/CN114553755B/en
Publication of CN114553755ApublicationCriticalpatent/CN114553755A/en
Application grantedgrantedCritical
Publication of CN114553755BpublicationCriticalpatent/CN114553755B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a function test method, a system, a device, terminal equipment and a storage medium, wherein interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. The invention improves the function test effect of the slave station.

Description

Function test method, system, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of industrial communications technologies, and in particular, to a method, a system, an apparatus, a terminal device, and a storage medium for testing functions.
Background
With the development of EtherCAT (ethernet control automation technology), functional testing has become an indispensable link in industrial control technology. However, at present, the EtherCAT bus type driver is used as a slave station in the function test process, a set of special test program is designed aiming at the master station product, and in the test process, the test steps are complicated, and no mature and complete function test module is packaged, so that the test effect is influenced.
Therefore, there is a need to propose a solution that improves the functional testing effect of the secondary station.
Disclosure of Invention
The invention mainly aims to provide a function test method, a system, a device, terminal equipment and a storage medium, aiming at improving the function test effect of a slave station.
In order to achieve the above object, the present invention provides a function test method, including:
acquiring interface operation parameters corresponding to the functional test;
Calling test data according to the interface operation parameters, and packaging the test data into a test module;
the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station;
and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information.
Optionally, the step of calling test data according to the interface operation parameters and packaging the test data into a test module includes:
invoking test data in a motion instruction library in the master station according to the interface operation parameters, wherein the test data comprises motion parameters and motion commands;
and packaging the motion parameters and the motion commands into a test module.
Optionally, the step of receiving the motion state and parameter information sent by the secondary station and sending the motion state and parameter information to an interface, so that a user obtains a functional test result according to the motion state and parameter information includes:
receiving the motion state and parameter information sent by the slave station through interface mapping circulation;
and sending the motion state and the parameter information to an interface through a transmission control protocol and/or an Internet protocol so that the interface can display the motion state and the parameter information, and obtaining a function test result according to the motion state and the parameter information displayed by the interface by the user.
Optionally, the step of receiving the motion state and parameter information sent by the secondary station and sending the motion state and parameter information to an interface, so that the user obtains the functional test result according to the motion state and parameter information further includes:
And receiving the modification of the interface operation parameters by the user based on the function test result so as to optimize the function of the slave station.
Optionally, the functional test includes one or more of an enable status test, a resume status test, a jog status test, and a speed status test.
Optionally, the function test method is applied to a secondary station, and the function test method includes the following steps:
Receiving a test module sent by a main station;
generating motion state and parameter information according to the test module;
and sending the motion state and parameter information to the master station so that the master station can receive the motion state and parameter information, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information.
In addition, to achieve the above object, the present invention also provides a function test system including:
The main station is used for acquiring interface operation parameters corresponding to the functional test; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information;
The secondary station is used for receiving the test module sent by the primary station; generating motion state and parameter information according to the test module; the motion state and parameter information is sent to the master station so that the master station can receive the motion state and parameter information, and the motion state and parameter information is sent to an interface so that a user can obtain a function test result according to the motion state and parameter information;
the interface is used for providing interface operation parameters corresponding to the function test; displaying the motion state and the parameter information so that the user can obtain a function test result according to the motion state and the parameter information displayed on the interface
In addition, in order to achieve the above object, the present invention also provides a function test device including:
the acquisition module is used for acquiring interface operation parameters corresponding to the functional test;
The packaging module is used for calling the test data according to the interface operation parameters and packaging the test data into a test module;
The sending module is used for sending the testing module to the slave station so that the slave station can generate motion state and parameter information according to the testing module and send the motion state and the parameter information to the master station;
And the transmission module is used for receiving the motion state and the parameter information sent by the slave station and sending the motion state and the parameter information to an interface so that a user can obtain a function test result according to the motion state and the parameter information.
In addition, in order to achieve the above object, the present invention also provides a terminal device including a memory, a processor, and a function test program stored on the memory and executable on the processor, the function test program implementing the steps of the function test method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a functional test program which, when executed by a processor, implements the steps of the functional test method as described above.
The embodiment of the invention provides a function test method, a device, terminal equipment and a storage medium, wherein interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. By packaging the test data into the test module, the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a functional test apparatus of the present invention belongs;
FIG. 2 is a flow chart of an exemplary embodiment of a functional test method according to the present invention;
FIG. 3 is a detailed flow chart of a functional test result obtained by a user according to the motion state and parameter information, wherein the motion state and parameter information sent by the slave station is received and sent to an interface;
fig. 4 is a flow chart of another exemplary embodiment of the functional test method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: acquiring interface operation parameters corresponding to the functional test; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. By packaging the test data into the test module, the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
Technical terms related to the embodiment of the invention:
EtherCAT (Ethernet control Automation technology) is an open architecture, ethernet-based Fieldbus system, and its name CAT is an acronym for control Automation technology (Control Automation Technology). EtherCAT is a deterministic industrial Ethernet, which was developed to allow Ethernet to be used in automation applications;
PDO (PHP Data Objects) is a type of use interface for connecting databases in PHP;
TCP/IP (Transmission Control Protocol/Internet Protocol ) refers to a protocol cluster that enables information transfer between multiple different networks. The TCP/IP protocol refers not only to two protocols, i.e., TCP and IP, but also to a protocol cluster composed of FTP, SMTP, TCP, UDP, IP or the like, and is called a TCP/IP protocol because the TCP protocol and the IP protocol are the most representative among the TCP/IP protocols.
Because the EtherCAT bus type driver in the prior art does not design a set of special test program aiming at a main station product in the function test process, functional test is still remained in the complicated test process based on an open source main station in the research and development process, the test steps are complicated, and a mature and complete function test module is not packaged, for example, a control mode and a control word which are required to be given when the driver starts movement are not needed, in the operation process, research and development personnel need to set the control mode and the control word by referring to the CiA402 standard, error input occurs when the standard is checked in comparison with writing, the test is repeated for many times, and the test effect is not ideal. In the application process, the open source master station is only a universal platform for debugging by research personnel, and the compatibility problem between the EtherCAT bus type drive and the brand master station product can not be verified.
The invention provides a solution, which is based on the command combination of the application end of a tandem master station to complete the functional test flow of the EtherCAT bus type drive, the test flow is simplified, and the functional test steps are packaged into modules, for example, a frequently-changed control mode and a frequently-changed control word parameter combination are used for starting corresponding motion trail, firstly, the necessary motion parameters input by a user are stored into a group of motion data sets, then the control mode and the control word are set as required motion commands according to the button-triggered motion trail, the necessary motion parameters and the motion commands are packaged into a complete group of motion data sets to be issued to the EtherCAT bus type drive, so that the EtherCAT bus type drive executes the motion trail triggered by the user, in addition, the master station circularly reads the motion state and the parameters in the EtherCAT bus type drive in a PDO mapping mode, maps the data required by the test to the master station, and then the data are displayed in real time by the TCP/IP communication mode of the master station and an interface, and the user can conveniently and simply and efficiently understand BUGs existing when the EtherCAT bus type drive executes the function. The function test is packaged to achieve the effect of simply and efficiently performing the function test. Secondly, in order to ensure that the fault tolerance rate of the bus master station and the EtherCAT bus type drive is lower, the test system can also verify the compatibility problem of the EtherCAT bus type drive and the bus master station.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the functional test device of the present invention belongs. The functional test device may be a device independent of the terminal device, capable of functional test, which may be carried on the terminal device in the form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the functional test apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a function test program, and the function test device may obtain interface operation parameters corresponding to the function test; according to the test data called by the interface operation parameters, the test data is packaged into a test module; the secondary station generates motion state and parameter information according to the test module; the received information such as the motion state and parameter information sent by the slave station, and the functional test result obtained by the user according to the motion state and parameter information are stored in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the functional test program in the memory 130 when executed by the processor performs the steps of:
acquiring interface operation parameters corresponding to the functional test;
Calling test data according to the interface operation parameters, and packaging the test data into a test module;
the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station;
and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information.
Further, the functional test program in the memory 130 when executed by the processor also implements the steps of:
invoking test data in a motion instruction library in the master station according to the interface operation parameters, wherein the test data comprises motion parameters and motion commands;
and packaging the motion parameters and the motion commands into a test module.
Further, the functional test program in the memory 130 when executed by the processor also implements the steps of:
receiving the motion state and parameter information sent by the slave station through interface mapping circulation;
and sending the motion state and the parameter information to an interface through a transmission control protocol and/or an Internet protocol so that the interface can display the motion state and the parameter information, and obtaining a function test result according to the motion state and the parameter information displayed by the interface by the user.
Further, the functional test program in the memory 130 when executed by the processor also implements the steps of:
And receiving the modification of the interface operation parameters by the user based on the function test result so as to optimize the function of the slave station.
Further, the functional test program in the memory 130 when executed by the processor also implements the steps of:
Receiving a test module sent by a main station;
generating motion state and parameter information according to the test module;
and sending the motion state and parameter information to the master station so that the master station can receive the motion state and parameter information, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information.
According to the scheme, the interface operation parameters corresponding to the functional test are obtained; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. By packaging the test data into the test module, the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
The method embodiment of the invention is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
The execution subject of the method of the present embodiment may be a function test device or a terminal device, and the present embodiment uses the function test device as an example.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of a functional testing method according to the present invention. The function test method is applied to a master station and comprises the following steps:
step S10, acquiring interface operation parameters corresponding to the functional test;
In the research and development process of the EtherCAT bus type driver, the function of the EtherCAT bus type driver needs to be tested so as to find out problems and loopholes existing in the process of executing the EtherCAT bus type driver, and then optimize the EtherCAT bus type driver. In the process, firstly, a user sets corresponding operation parameters on an interface according to functions to be tested, then, a master station obtains interface operation parameters set by the user from the interface, and further, test data are called according to the interface operation parameters and packaged into a test module.
Step S20, calling test data according to the interface operation parameters, and packaging the test data into a test module;
After the interface operation parameters corresponding to the function test are obtained, corresponding test data can be called from a motion instruction library in the master station, the test data comprise a control mode, a control word parameter and the like which are required to be given when the drive starts motion, then the test data are packaged into a test module, and then the test module is issued to the slave station to test the function of the slave station. For example, the corresponding motion trail is started by combining the control mode and the control word parameters, firstly, the necessary motion parameters input by the user are stored as a group of motion data sets, then the control mode and the control word parameters are set as the required motion commands according to the motion trail triggered by the button, and then the necessary motion parameters and the motion commands are packaged into a group of complete motion data sets which are then issued to the slave station, wherein the complete motion data sets are the test modules.
In the prior art, during the function test process, a researcher needs to set a control mode and control word parameters according to a standard, and error input is easily caused when the standard is checked in a comparison manner during writing, so that the test is repeated for a plurality of times, and the test effect is not ideal. In the embodiment of the invention, the test data comprising the motion parameters and the motion commands are packaged into the test module, so that the function test process is simpler and more efficient.
Step S30, the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and the parameter information are sent to the primary station;
After the test data are packaged into the test module, the test module is sent to the secondary station, and the secondary station can execute a motion track triggered by a user according to the test module so as to generate corresponding motion state and parameter information, and simultaneously, the generated motion state and parameter information are transmitted to the primary station in real time so that the user can judge the function of the secondary station according to the motion state and the parameter information.
Step S40, the motion state and parameter information sent by the slave station is received, and the motion state and parameter information is sent to an interface so that a user can obtain a function test result according to the motion state and the parameter information.
After the secondary station executes a motion track triggered by a user according to the test module and generates corresponding motion state and parameter information, the primary station can circularly read the motion state and parameter information in the secondary station in a PDO mapping mode, then transmit the motion state and parameter information to an interface in a TCP/IP communication mode, the interface displays the motion state and the parameter information in real time, the user can simply and efficiently know problems and loopholes existing when the secondary station executes functions by observing changes of the motion state and the parameter information of the secondary station in the interface, and further relevant parameters are modified through judged problem points so as to realize the function optimization of the secondary station.
In this embodiment, the interface operation parameters corresponding to the functional test are obtained; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. By packaging the test data into the test module, the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a refinement process for receiving motion state and parameter information sent by the slave station and sending the motion state and parameter information to an interface for a user to obtain a functional test result according to the motion state and parameter information in the embodiment of the invention. In this embodiment, the step of receiving the motion state and the parameter information sent by the slave station and sending the motion state and the parameter information to an interface to obtain a function test result according to the motion state and the parameter information includes:
step S401, the motion state and parameter information sent by the slave station are received through interface mapping circulation;
after the secondary station executes the motion trail triggered by the user according to the test module and generates corresponding motion state and parameter information, the primary station can circularly read the motion state and parameter information in the secondary station in a PDO mapping mode. For example, when the user performs the inching function test on the secondary station, the inching speed parameter is modified through the interface, then the inching button is manually pressed, after the secondary station acquires the movement data set containing the inching speed parameter, the generated movement state and parameter information contain the current speed and the current position information when the movement instruction is executed, and when the user releases the inching button, the movement state and parameter information generated by the secondary station contain the information of the current deceleration and the stop movement state, and the user can judge the function of the secondary station according to the information.
Step S402, the motion state and the parameter information are sent to an interface through a transmission control protocol and/or an internet protocol, so that the interface displays the motion state and the parameter information, and the user obtains a function test result according to the motion state and the parameter information displayed by the interface.
The master station circularly reads the motion state and parameter information in the slave station through an interface mapping mode, then transmits the motion state and parameter information to the interface through a TCP/IP communication mode, the motion state and parameter information are displayed in real time through the interface, a user can simply and efficiently know problems and loopholes existing when the slave station executes functions by observing the changes of the motion state and the parameter information of the slave station in the interface, and further relevant parameters are modified through judged problem points, so that the function optimization of the slave station is realized. For example, when the user performs the inching function test on the secondary station, it may be determined whether the current speed in the motion state and the parameter information can reach the preset inching speed, and whether the current position can be accumulated or subtracted according to the inching direction, and after releasing the inching button, it may be stopped at the preset acceleration and deceleration speed, thereby determining the problem point of the secondary station, and further modifying the function thereof to optimize it.
According to the scheme, the motion state and parameter information sent by the slave station are received in a specific interface mapping cycle; and the motion state and the parameter information are sent to an interface through a transmission control protocol and/or an Internet protocol so that the interface can display the motion state and the parameter information, and the user can obtain a function test result according to the motion state and the parameter information displayed by the interface, so that the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
Referring to fig. 4, fig. 4 is a flow chart illustrating another exemplary embodiment of the functional test method of the present invention. The execution body of the present embodiment is a slave station. Based on the embodiment shown in fig. 2, the method for testing functions provided in the embodiment of the present invention includes:
A10, receiving a test module sent by a main station;
after the master station transmits the packaged test module to the slave station through the designed PLC internal logic control, the slave station receives the motion parameters and the motion commands in the test module, and further executes corresponding motions and feeds back corresponding data.
A20, generating motion state and parameter information according to the test module;
After the secondary station receives the test module issued by the main station, corresponding motion state and parameter information are generated according to the test module, the corresponding function modules of different function tests are different, and the generated motion state and parameter information are also different, such as an enabling state test, a recovery state test, a inching state test, a speed state test and the like.
A30, the motion state and the parameter information are sent to the master station so that the master station can receive the motion state and the parameter information, and the motion state and the parameter information are sent to an interface so that a user can obtain a function test result according to the motion state and the parameter information.
After the slave station sends the internally generated motion state and parameter information to the master station in an interface mapping mode, the master station transmits data to an interface in a TCP/IP communication mode, the interface displays the motion state and the parameter information in real time, a user can simply and efficiently know problems and loopholes existing when the slave station executes functions by observing the changes of the motion state and the parameter information of the slave station in the interface, and further, related parameters are modified through judged problem points, so that the function optimization of the slave station is realized.
In this embodiment, the test module sent by the master station is received; generating motion state and parameter information according to the test module; and sending the motion state and parameter information to the master station so that the master station can receive the motion state and parameter information, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. The efficiency and the accuracy of the function test are improved, and the function test effect is improved.
In addition, the embodiment of the invention also provides a function test system, which comprises:
The main station is used for acquiring interface operation parameters corresponding to the functional test; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information;
The secondary station is used for receiving the test module sent by the primary station; generating motion state and parameter information according to the test module; the motion state and parameter information is sent to the master station so that the master station can receive the motion state and parameter information, and the motion state and parameter information is sent to an interface so that a user can obtain a function test result according to the motion state and parameter information;
The interface is used for providing interface operation parameters corresponding to the function test; and displaying the motion state and the parameter information so that the user can obtain a function test result according to the motion state and the parameter information displayed on the interface.
The functional test system simplifies the test flow and packages the functional test steps into modules, for example, a frequently-changed control mode and control word parameter combination are used for starting corresponding motion trail, firstly, the motion parameters required by user input are stored into a group of motion data groups, then the control mode and the control word are set into the required motion commands according to the motion trail triggered by the button, and the required motion parameters and the motion commands are packaged into a complete set of motion data groups and issued to an EtherCAT bus type driver (slave station), so that the EtherCAT bus type driver executes the motion trail triggered by the user, in addition, the master station circularly reads the motion state and the parameters in the EtherCAT bus type driver in a PDO mapping mode, maps the data required by the test to the master station, and then the data are displayed in real time by the TCP/IP communication mode of the master station and the interface, and the user can conveniently and efficiently understand the BUG existing when the EtherCAT bus type driver executes the functions by observing the change of the EtherCAT bus type driving state and the parameters.
Specifically, in the embodiment of the invention, the EtherCAT bus type driving function executes corresponding movements by calling the existing action instructions of the master station MC library, input information of the action instructions in the MC library is input by a human-computer interface, corresponding function tests are executed through buttons, the action instructions are issued to the EtherCAT bus type driving through the designed PLC internal logic control, and through key information of an interface real-time data interaction driver, a user can judge whether the EtherCAT bus type driving is executed according to the effect in theory in the executing process according to the key information of driving feedback in an observation interface. For example, after the user modifies the click speed parameter in the first graph, and manually presses the click button, the driver drives whether the current speed can reach the preset click speed when executing the command, and whether the current position can be accumulated or subtracted according to the click direction, and after releasing the click button, the driver drives whether to stop the movement at the set acceleration and deceleration speed.
In the embodiment, all the existing instructions about EtherCAT in the master station MC library are packaged into one functional test module, so that a user can preset relevant motion parameters according to test requirements during testing, and can trigger corresponding motions by simply pressing a button, thereby saving research and development test steps and saving time; all feedback parameters in the EtherCAT bus type drive are displayed in an interface, so that a user can observe the effect of function test during test conveniently, and the function of the test can be modified to be optimized; after the function is modularized, when new test requirements are added, the test functions are mixed, matched and combined, so that research and development personnel can conveniently and intensively test the corresponding combined functions according to the problems fed back by clients on site, and the problem points are judged through the driving states displayed in the interface, so that the modifier functions are optimized; by calling all the existing instructions about EtherCAT of the MC library of the tandem master station, the research and development personnel can conveniently test the fault tolerance rate of the matching of the tandem master station and the EtherCAT bus type drive, so that after hardware is changed, the compatibility problem of the master station and the slave station can be tested;
In addition, an embodiment of the present invention further provides a function test device, where the function test device includes:
the acquisition module is used for acquiring interface operation parameters corresponding to the functional test;
The packaging module is used for calling the test data according to the interface operation parameters and packaging the test data into a test module;
The sending module is used for sending the testing module to the slave station so that the slave station can generate motion state and parameter information according to the testing module and send the motion state and the parameter information to the master station;
And the transmission module is used for receiving the motion state and the parameter information sent by the slave station and sending the motion state and the parameter information to an interface so that a user can obtain a function test result according to the motion state and the parameter information.
The principle and implementation process of the functional test in this embodiment are referred to the above embodiments, and are not repeated herein.
In addition, the embodiment of the invention also provides a terminal device, which comprises a memory, a processor and a functional test program stored on the memory and capable of running on the processor, wherein the functional test program realizes the steps of the functional test method when being executed by the processor.
Because the functional test program is executed by the processor and adopts all the technical schemes of all the embodiments, the functional test program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a function test program, and the function test program realizes the steps of the function test method when being executed by a processor.
Because the functional test program is executed by the processor and adopts all the technical schemes of all the embodiments, the functional test program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Compared with the prior art, the function test method, the device, the terminal equipment and the storage medium provided by the embodiment of the invention are characterized in that interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operation parameters, and packaging the test data into a test module; the test module is sent to a secondary station, so that the secondary station generates motion state and parameter information according to the test module, and the motion state and parameter information is sent to the primary station; and receiving the motion state and parameter information sent by the slave station, and sending the motion state and parameter information to an interface so that a user can obtain a function test result according to the motion state and parameter information. By packaging the test data into the test module, the efficiency and the accuracy of the function test are improved, and the function test effect of the secondary station is further improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

after the interface operation parameters corresponding to the function test are obtained, corresponding test data can be called from a motion instruction library in the master station, the test data comprise a control mode, a control word parameter and the like which are required to be given when the drive starts motion, then the test data are packaged into a test module, and then the test module is issued to the slave station to test the function of the slave station; the corresponding motion trail is started through the combination of the control mode and the control word parameters, firstly, the necessary motion parameters input by a user are stored as a group of motion data sets, then the control mode and the control word parameters are set as the required motion commands according to the motion trail triggered by the button, and further, the necessary motion parameters and the motion commands are packaged into a group of complete motion data sets which are then issued to the slave station, wherein the complete motion data sets are the test modules.
The method further comprises the steps of: after the interface operation parameters corresponding to the function test are obtained, corresponding test data can be called from a motion instruction library in the master station, the test data comprise a control mode, a control word parameter and the like which are required to be given when the drive starts motion, then the test data are packaged into a test module, and then the test module is issued to the slave station to test the function of the slave station; the corresponding motion trail is started through the combination of the control mode and the control word parameters, firstly, the necessary motion parameters input by a user are stored as a group of motion data sets, then the control mode and the control word parameters are set as the required motion commands according to the motion trail triggered by the button, and further, the necessary motion parameters and the motion commands are packaged into a group of complete motion data sets which are then issued to the slave station, wherein the complete motion data sets are the test modules.
after the interface operation parameters corresponding to the function test are obtained, corresponding test data can be called from a motion instruction library in the master station, the test data comprise a control mode, a control word parameter and the like which are required to be given when the drive starts motion, then the test data are packaged into a test module, and then the test module is issued to the slave station to test the function of the slave station; the corresponding motion trail is started through the combination of the control mode and the control word parameters, firstly, the necessary motion parameters input by a user are stored as a group of motion data sets, then the control mode and the control word parameters are set as the required motion commands according to the motion trail triggered by the button, and further, the necessary motion parameters and the motion commands are packaged into a group of complete motion data sets which are then issued to the slave station, wherein the complete motion data sets are the test modules.
The function test device is also used for: after the interface operation parameters corresponding to the function test are obtained, corresponding test data can be called from a motion instruction library in the master station, the test data comprise a control mode, a control word parameter and the like which are required to be given when the drive starts motion, then the test data are packaged into a test module, and then the test module is issued to the slave station to test the function of the slave station; the corresponding motion trail is started through the combination of the control mode and the control word parameters, firstly, the necessary motion parameters input by a user are stored as a group of motion data sets, then the control mode and the control word parameters are set as the required motion commands according to the motion trail triggered by the button, and further, the necessary motion parameters and the motion commands are packaged into a group of complete motion data sets which are then issued to the slave station, wherein the complete motion data sets are the test modules.
CN202210096426.6A2022-01-262022-01-26Function test method, system, device, terminal equipment and storage mediumActiveCN114553755B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210096426.6ACN114553755B (en)2022-01-262022-01-26Function test method, system, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210096426.6ACN114553755B (en)2022-01-262022-01-26Function test method, system, device, terminal equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN114553755A CN114553755A (en)2022-05-27
CN114553755Btrue CN114553755B (en)2024-04-26

Family

ID=81674595

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210096426.6AActiveCN114553755B (en)2022-01-262022-01-26Function test method, system, device, terminal equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN114553755B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4476347A (en)*1982-03-221984-10-09Siemens AktiengesellschaftMethod and circuit arrangement for transmitting communication signals between switching centers of first and second switching networks operating with different transmission procedures
KR20030027534A (en)*2001-09-292003-04-07주식회사 케이티Call Simulator for TDX-10A
EP1786151A2 (en)*2005-11-142007-05-16Broadcom CorporationNetwork nodes cooperatively routing traffic flow amongst wired and wireless networks
CN101576843A (en)*2008-05-072009-11-11阿里巴巴集团控股有限公司Method and device for testing application program interface
US9021443B1 (en)*2013-04-122015-04-28Google Inc.Test automation API for host devices
US9274935B1 (en)*2013-01-152016-03-01Google Inc.Application testing system with application programming interface
KR101675420B1 (en)*2015-05-182016-11-22주식회사 인프라웨어테크놀러지Method for automatically transforming android os based application package to tizen os based application package for appliances
CN109460011A (en)*2018-12-252019-03-12欧瑞传动电气股份有限公司For the comprehensive performance test device and method of bus type kinetic control system
CN110505116A (en)*2019-07-302019-11-26国网陕西省电力公司 Electricity consumption information collection system, penetration testing method, device, and readable storage medium
CN112631932A (en)*2020-12-302021-04-09交控科技股份有限公司Sub-function independent test method of automatic train monitoring system based on interface
CN113190388A (en)*2021-04-132021-07-30厦门路桥信息股份有限公司TCP interface test method, medium, equipment and device
CN113848749A (en)*2021-08-312021-12-28际络科技(上海)有限公司Automatic driving simulation test system, method, electronic device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TW201031937A (en)*2009-02-202010-09-01Aiconn Technology CorpBatch testing method for a SIP device and batch testing system thereof

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US4476347A (en)*1982-03-221984-10-09Siemens AktiengesellschaftMethod and circuit arrangement for transmitting communication signals between switching centers of first and second switching networks operating with different transmission procedures
KR20030027534A (en)*2001-09-292003-04-07주식회사 케이티Call Simulator for TDX-10A
EP1786151A2 (en)*2005-11-142007-05-16Broadcom CorporationNetwork nodes cooperatively routing traffic flow amongst wired and wireless networks
CN101576843A (en)*2008-05-072009-11-11阿里巴巴集团控股有限公司Method and device for testing application program interface
US9274935B1 (en)*2013-01-152016-03-01Google Inc.Application testing system with application programming interface
US9021443B1 (en)*2013-04-122015-04-28Google Inc.Test automation API for host devices
KR101675420B1 (en)*2015-05-182016-11-22주식회사 인프라웨어테크놀러지Method for automatically transforming android os based application package to tizen os based application package for appliances
CN109460011A (en)*2018-12-252019-03-12欧瑞传动电气股份有限公司For the comprehensive performance test device and method of bus type kinetic control system
CN110505116A (en)*2019-07-302019-11-26国网陕西省电力公司 Electricity consumption information collection system, penetration testing method, device, and readable storage medium
CN112631932A (en)*2020-12-302021-04-09交控科技股份有限公司Sub-function independent test method of automatic train monitoring system based on interface
CN113190388A (en)*2021-04-132021-07-30厦门路桥信息股份有限公司TCP interface test method, medium, equipment and device
CN113848749A (en)*2021-08-312021-12-28际络科技(上海)有限公司Automatic driving simulation test system, method, electronic device and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
Effects of Grape Balanced Nutrition Fertilizer on Yield and Quality of Wine Grapes;Jianhua LUO;Haisen YU;Lin SHI;Xin KE;Yu WANG;Jixian DONG;Zhigang GUO;Donglian LI;Peng-zhao GAO;;Agricultural Biotechnology;20200811(第04期);全文*
HE Wei ; ZHAO Ruilian ; ZHU Qunxiong ; .Integrating Evolutionary Testing with Reinforcement Learning for Automated Test Generation of Object-Oriented Software.Chinese Journal of Electronics.2015,(第01期),全文.*
Integrating Evolutionary Testing with Reinforcement Learning for Automated Test Generation of Object-Oriented Software;HE Wei;ZHAO Ruilian;ZHU Qunxiong;;Chinese Journal of Electronics(第01期);全文*
MISR和MODIS二向性反射数据产品的对比分析;陈永梅;王锦地;梁顺林;王东伟;马斌;;遥感学报(第05期);全文*
PROFIBUS-DP智能从站的设计;徐浩;李红利;赖淦源;;内蒙古石油化工;20131115(第21期);全文*
陈永梅 ; 王锦地 ; 梁顺林 ; 王东伟 ; 马斌 ; .MISR和MODIS二向性反射数据产品的对比分析.遥感学报.2009,(第05期),全文.*

Also Published As

Publication numberPublication date
CN114553755A (en)2022-05-27

Similar Documents

PublicationPublication DateTitle
CN108214445A (en)A kind of principal and subordinate's isomery remote operating control system based on ROS
CN110737557A (en) Debugging method, device, electronic device and storage medium of electronic control unit
CN107526681B (en)Robot test system and test method
Chakraborty et al.Forward and inverse kinematics demonstration using RoboDK and C
Theiss et al.Software agents in industry: A customized framework in theory and praxis
CN108445840A (en)A kind of robot and the simple configuration method based on robot general-purpose platform
KR20100094009A (en)Integrated robot software platform with framework module
CN114553755B (en)Function test method, system, device, terminal equipment and storage medium
CN114598729B (en) Robot remote real-time control method, system, electronic device and storage medium
CN114488846B (en)Open type motion control simulation experiment method for connection of programmable controller and virtual industrial robot
CN118544346A (en) A digital twin heavy-load robotic arm real-time control and online monitoring system
CN115509212B (en)Automated testing system and method based on VTD
CN111571583B (en)Manipulator control method
CN111107100B (en)Equipment for transmitting industrial protocol flow message
CN114520749A (en)Modbus data monitoring method and system based on cloud platform deployment object model
CN113723797A (en)Management system and method in industrial operation
KR100869587B1 (en) Robot middleware framework system
CN113050554B (en)Man-machine interactive multi-protocol communication method and medium
US20240061401A1 (en)System and method for controlling operating modes of a system
Atmojo et al.Extending SOSJ framework for large-scale dynamic manufacturing systems
CN113866535B (en)Drive return-to-zero test method, apparatus, device, medium and computer program product
PrasanthImplementation of ROS-I on industrial robot simulation environment
CN106965181A (en)Robot control method and system based on ROS and OROCOS
EP4300295A1 (en)Method and apparatus for executing workflow task across control objects
WijnholtDesign of a real-time network channel in LUNA

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp