CN114553755A - Function testing method, system, device, terminal equipment and storage medium - Google Patents

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

Info

Publication number
CN114553755A
CN114553755A CN202210096426.6A CN202210096426A CN114553755A CN 114553755 A CN114553755 A CN 114553755A CN 202210096426 A CN202210096426 A CN 202210096426A CN 114553755 A CN114553755 A CN 114553755A
Authority
CN
China
Prior art keywords
parameter information
test
motion state
interface
motion
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.)
Granted
Application number
CN202210096426.6A
Other languages
Chinese (zh)
Other versions
CN114553755B (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 ltd filed Critical Shenzhen Yankong Automation Technology Co ltd
Priority to CN202210096426.6A priority Critical patent/CN114553755B/en
Publication of CN114553755A publication Critical patent/CN114553755A/en
Application granted granted Critical
Publication of CN114553755B publication Critical patent/CN114553755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

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 operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 testing method, system, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of industrial communication 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, in the current function test process of the EtherCAT bus driver as the slave station, a set of special test program designed for the master station product is lacked, in the test process, the test steps are relatively complicated, and a mature and complete function test module is not packaged, so that the test effect is influenced.
Therefore, it is necessary to provide a solution for improving the function test effect of the slave station.
Disclosure of Invention
The invention mainly aims to provide a function testing method, a system, a device, a terminal device and a storage medium, and aims to improve the function testing effect of a slave station.
In order to achieve the above object, the present invention provides a function testing method, including:
acquiring interface operation parameters corresponding to the function test;
calling test data according to the interface operating parameters, and packaging the test data into a test module;
the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 the test data according to the interface operating parameter and packaging the test data into a test module includes:
calling 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 slave station, and sending the motion state and parameter information to an interface, so that a user obtains a function test result according to the motion state and parameter information includes:
receiving motion state and parameter information sent by the slave station through an interface mapping cycle;
and sending the motion state and parameter information to an interface through a transmission control protocol and/or an internet protocol so that the interface displays the motion state and parameter information, and obtaining a function test result by the user according to the motion state and parameter information displayed by the interface.
Optionally, 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, so that a user obtains a function test result according to the motion state and the parameter information further includes:
and receiving 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 comprises one or more of an enable state test, a restore state test, a jog state test, and a speed state test.
Optionally, the function testing method is applied to a secondary station, and the function testing method includes the following steps:
receiving a test module sent by a master station;
generating motion state and parameter information according to the test module;
and sending the motion state and the parameter information to the master station so that the master station can receive the motion state and the parameter information, 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, to achieve the above object, the present invention also provides a function testing system, including:
the master station is used for acquiring interface operation parameters corresponding to the function test; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 slave station is used for receiving the test module sent by the master station; generating motion state and parameter information according to the test module; 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 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, to achieve the above object, the present invention also provides a function testing apparatus, including:
the acquisition module is used for acquiring interface operation parameters corresponding to the function test;
the packaging module is used for calling test data according to the interface operating parameters and packaging the test data into a test module;
the sending module is used for sending the test module to the slave station so that the slave station can generate motion state and parameter information according to the test module and send the motion state and 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 further provides a terminal device, where the terminal device includes a memory, a processor, and a functional test program stored in the memory and executable on the processor, and the functional test program implements the steps of the functional test method described above when executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a functional test program stored thereon, which when executed by a processor implements the steps of the functional test method as described above.
According to the function test method, the function test device, the terminal equipment and the storage medium, interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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. Through encapsulating test data into a test module, the efficiency and accuracy of function test are improved, and further the function test effect of the slave station is improved.
Drawings
FIG. 1 is a schematic diagram of a functional module of a terminal device to which a function testing apparatus of the present invention belongs;
FIG. 2 is a flow chart illustrating an exemplary embodiment of a functional testing method of the present invention;
fig. 3 is a schematic diagram of a detailed flow of 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 function test result according to the motion state and parameter information in the embodiment of the present invention;
fig. 4 is a flowchart illustrating a functional testing method according to another exemplary embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: obtaining interface operation parameters corresponding to the function test; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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. Through encapsulating test data into a test module, the efficiency and accuracy of function test are improved, and further the function test effect of the slave station is improved.
The technical terms related to the embodiment of the invention are as follows:
EtherCAT (ethernet Control Automation Technology) is an open architecture, ethernet-based field bus system, and its name CAT is an abbreviation of the prefix of Control Automation Technology (Control Automation Technology). EtherCAT is a deterministic industrial ethernet developed to allow ethernet to be used in automation applications;
PDO (PHP Data Objects, Data interface) is a kind of interface used to connect database in PHP;
TCP/IP (Transmission Control Protocol/Internet Protocol) refers to a Protocol cluster that can realize information Transmission between a plurality of different networks. The TCP/IP protocol refers not only to two protocols of TCP and IP, but also to a protocol cluster composed of FTP, SMTP, TCP, UDP, IP, etc., and is called TCP/IP protocol only because TCP protocol and IP protocol are most representative among TCP/IP protocols.
Because the EtherCAT bus type driver in the prior art does not design a set of exclusive test program for a master station product in the function test process, the function test still stays in the tedious test process based on an open source master station in the research and development process, the test steps are tedious, and a mature and complete function test module is not packaged, for example, a control mode and a control word which must be given when the driver starts motion, research and development personnel need to set the control mode and the control word according to the CiA402 standard in the operation process, so that the error input occurs when the standard is checked in a comparison mode during writing, and finally the test is repeated for many times, and the test effect is unsatisfactory. In the application process, the open-source master station is only a universal platform for research and development personnel to debug, and the compatibility problem between the EtherCAT bus type driver and the brand master station product cannot be verified.
The invention provides a solution, which completes the function test flow of EtherCAT bus type drive based on the command combination of the application end of the sink master station, simplifies the test flow and packages the function test steps into modules, for example, the frequently changed control mode and control word parameter combination are combined to start the corresponding motion track, firstly, the necessary motion parameters input by the user are stored into a group of motion data groups, then the control mode and the control word are set into the necessary motion commands according to the motion track triggered by the button, the necessary motion parameters and the motion commands are packaged into a complete motion data group and are sent to the EtherCAT bus type drive, so that the EtherCAT type drive executes the motion track triggered by the user, in addition, the master station circularly reads the motion state and parameters inside the EtherCAT bus type drive in the PDO mapping mode, maps the data required by the test to the master station, and then the data is displayed in real time by the TCP/IP communication mode of the main station and the interface, and the BUG existing when the EtherCAT bus type driver executes the function can be conveniently and efficiently known by a user by observing the state and parameter change of the EtherCAT bus type driver in the interface. The effect of simply and efficiently performing the function test is achieved by encapsulating the function test. Secondly, in order to ensure that the fault tolerance rate of the matching of the sink master station and the EtherCAT bus type driver is lower, the test system can also verify the compatibility problem of the EtherCAT bus type driver and the sink master station.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of a functional module of a terminal device to which the function testing apparatus of the present invention belongs. The function testing device may be a device capable of performing a function test, which is independent from the terminal device, and may be carried on the terminal device in the form of hardware or software. The terminal device 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 device or a server with a data processing function.
In this embodiment, the terminal device to which the function testing 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 apparatus can obtain interface operating parameters corresponding to the function test; according to the test data called by the interface operation parameters, packaging the test data into a test module; the slave station generates motion state and parameter information according to the test module; the received motion state and parameter information sent by the slave station, and the information such as the function 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 realizes the following steps when being executed by the processor:
acquiring interface operation parameters corresponding to the function test;
calling test data according to the interface operating parameters, and packaging the test data into a test module;
the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 further implements the steps of:
calling 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 further implements the steps of:
receiving motion state and parameter information sent by the slave station through an interface mapping cycle;
and sending the motion state and parameter information to an interface through a transmission control protocol and/or an internet protocol so that the interface displays the motion state and parameter information, and obtaining a function test result by the user according to the motion state and parameter information displayed by the interface.
Further, the functional test program in the memory 130 when executed by the processor further implements the steps of:
and receiving 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 further implements the steps of:
receiving a test module sent by a master station;
generating motion state and parameter information according to the test module;
and sending the motion state and the parameter information to the master station so that the master station can receive the motion state and the parameter information, 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.
According to the scheme, the interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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. Through encapsulating test data into a test module, the efficiency and accuracy of function test are improved, and further the function test effect of the slave station is improved.
Based on the above terminal device architecture, but not limited to the above architecture, the method embodiment of the present invention is proposed.
The execution subject of the method of the present embodiment may be a function testing apparatus or a terminal device, and the present embodiment is exemplified by the function testing apparatus.
Referring to fig. 2, fig. 2 is a flowchart illustrating a functional testing method according to an exemplary embodiment of the present invention. The function test method is applied to a master station, and comprises the following steps:
step S10, obtaining interface operation parameters corresponding to the function 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 function of the EtherCAT bus type driver, and then optimize the function. In the process, firstly, a user sets corresponding operation parameters on an interface according to functions to be tested, then, a master station acquires the interface operation parameters set by the user from the interface, and then, test data is called according to the interface operation parameters and packaged into a test module.
Step S20, calling test data according to the interface operating parameters, and packaging the test data into a test module;
after the interface operation parameters corresponding to the function test are acquired, corresponding test data can be called from a motion instruction library in the master station, the test data comprise control modes, control word parameters 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 the test module is further issued to the slave station to test the functions of the slave station. For example, a corresponding motion track is started by combining a control mode and a control word parameter, necessary motion parameters input by a user are stored into a group of motion data sets, the control mode and the control word parameter are set into a required motion command according to the motion track triggered by a button, and then the necessary motion parameters and the motion command are packaged into a set of complete motion data sets and then are sent to a slave station, wherein the complete motion data sets are test modules.
In the prior art, in the process of performing function testing, research personnel need to set a control mode and control word parameters according to a standard, so that error input is easily caused when the standard is checked in a writing process, the test is repeated for many 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, sending the test module to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master station;
after the test data are packaged into the test module, the test module is sent to the slave station, the slave station can execute the motion trail triggered by the user according to the test module, then corresponding motion state and parameter information are generated, and meanwhile the generated motion state and parameter information are transmitted to the master station in real time so that the user can judge the functions of the slave station according to the motion state and parameter information.
And step S40, 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.
After the slave station executes a motion track triggered by a user according to the test module and generates corresponding motion state and parameter information, the master station can circularly read the motion state and parameter information in the slave station in a PDO mapping mode, then transmits the motion state and parameter information to the interface in a TCP/IP communication mode, and displays the motion state and parameter information in real time by the interface.
In the embodiment, the interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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. Through encapsulating test data into a test module, the efficiency and accuracy of function test are improved, and further the function test effect of the slave station is improved.
Referring to fig. 3, fig. 3 is a detailed flowchart illustrating a process of receiving the 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 function test result according to the motion state and parameter information in the embodiment of the present invention. In this embodiment, based on the embodiment shown in fig. 2, in the embodiment, the step of 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 obtains a function test result according to the motion state and parameter information includes:
step S401, receiving motion state and parameter information sent by the slave station through interface mapping circulation;
after the slave station executes the motion trail triggered by the user according to the test module and generates corresponding motion state and parameter information, the master station can circularly read the motion state and parameter information in the slave station in a PDO mapping mode. For example, when the user performs a jog function test on the slave station, the jog speed parameter is modified through the interface, then the jog button is manually pressed, after the slave station acquires the motion data set containing the jog speed parameter, and executes a motion instruction therein, the generated motion state and parameter information contains current speed and current position information, after the user releases the jog button, the motion state and parameter information generated by the slave station contains information of current deceleration and stop motion state, and the user can judge the function of the slave station according to the information.
Step S402, the motion state and parameter information is sent to an interface through a transmission control protocol and/or an internet protocol, so that the motion state and parameter information is displayed on the interface, and a function test result is obtained by the user according to the motion state and parameter information displayed on the interface.
The master station circularly reads the motion state and the parameter information in the slave station in an interface mapping mode, then transmits the motion state and the parameter information to the interface in a TCP/IP communication mode, the motion state and the parameter information are displayed in real time by the interface, a user can simply and efficiently know problems and leaks existing when the slave station executes functions by observing the change of the motion state and the parameter information of the slave station in the interface, and then relevant parameters are modified through the judged problem points so as to realize function optimization of the slave station. For example, when the user performs a jog function test on the slave station, whether the current speed in the motion state and the parameter information can reach a preset jog speed or not and whether the current position can be accumulated or subtracted according to the jog direction or not can be judged, and after the jog button is released, whether the motion can be stopped at the preset plus-minus speed or not can be judged, so that the problem point of the slave station can be judged, and the function of the slave station can be modified to be optimized.
In this embodiment, by using the above scheme, the motion state and parameter information sent by the slave station is specifically received in an interface mapping cycle; and sending the motion state and parameter information to an interface through a transmission control protocol and/or an internet protocol so that the interface displays the motion state and parameter information, and obtaining a function test result by the user according to the motion state and parameter information displayed by the interface, so that the efficiency and accuracy of function test are improved, and the function test effect of the slave station is further improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a functional testing method according to another exemplary embodiment of the present invention. The execution subject of this embodiment is a slave station. Based on the embodiment shown in fig. 2, a function testing method provided by the embodiment of the present invention includes:
a10, receiving a test module sent by a master station;
and after the master station issues 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 then executes corresponding motion and feeds back corresponding data.
A20, generating motion state and parameter information according to the test module;
after receiving the test module sent by the master station, the slave station generates corresponding motion state and parameter information according to the test module, different function modules corresponding to different function tests are different, and the generated motion state and parameter information are also different, such as an enable state test, a recovery state test, a jog state test, a speed state test and the like.
And A30, 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.
After the slave station sends the motion state and parameter information generated inside to the master station in an interface mapping mode, the master station transmits data to an interface in a TCP/IP communication mode, the motion state and parameter information are displayed in real time by the interface, a user can simply and efficiently know problems and leaks existing when the slave station executes functions by observing the changes of the motion state and parameter information of the slave station in the interface, and then relevant parameters are modified through the judged problem points, so that 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 the parameter information to the master station so that the master station can receive the motion state and the parameter information, 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 efficiency and the accuracy of functional test have been improved, functional test effect has been promoted.
In addition, an embodiment of the present invention further provides a function testing system, where the function testing system includes:
the master station is used for acquiring interface operation parameters corresponding to the function test; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 slave station is used for receiving the test module sent by the master station; generating motion state and parameter information according to the test module; 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 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 function test system simplifies the test flow and packages the function test steps into modules, for example, the frequently changed control mode and control word parameter combination is combined to start the corresponding motion track, the necessary motion parameters input by the user are firstly stored into a group of motion data groups, then the control mode and the control word are set into the necessary motion commands according to the motion track triggered by the button, the necessary motion parameters and the motion commands are packaged into a set of complete motion data groups and are sent to the EtherCAT bus type drive (slave station), so that the EtherCAT bus type drive executes the motion track triggered by the user, in addition, the master station circularly reads the motion state and parameters inside the EtherCAT type drive in a PDO mapping mode, the data required by the test is mapped to the master station, the data is displayed in real time in a TCP/IP communication mode of the master station and the interface, and the EtherCAT bus type drive state and parameter change in the interface are observed, the user can easily and efficiently know the BUG existing when the EtherCAT bus type driver executes the function.
Specifically, in the embodiment of the invention, the EtherCAT bus type driving function executes corresponding motion by calling the existing action instruction of the sink master station MC library, the input information of the action instruction in the MC library is provided for a user to input through a human-computer interface, a corresponding function test is executed through a button, the action instruction is issued to the EtherCAT bus type driving through the designed internal logic control of the PLC, and the user can judge whether the EtherCAT bus type driving is executed according to the theoretical effect in the execution process according to the key information fed back by driving in the observation interface through the key information of the interface real-time data interaction driver. For example, the user modifies the jog speed parameter in fig. one, and after manually pressing the jog button, the driver determines whether the current speed can reach the preset jog speed and the current position can be accumulated or subtracted according to the jog direction when executing the command, and after releasing the jog button, the driver determines whether the driver can stop the motion at the set acceleration or deceleration.
In the embodiment, all the existing instructions of the EtherCAT of the sink master station MC library are encapsulated into a function test module, so that a user can preset relevant motion parameters according to test requirements during testing, and can trigger corresponding motion by simply pressing a button, thereby saving research and development test steps and time; all feedback parameters in the EtherCAT bus type driver are displayed in an interface, so that a user can observe the effect of functional test conveniently during testing, and the functions of the EtherCAT bus type driver can be modified to be optimized; after the functions are modularized, when new test requirements are added, the combined test functions are matched in a mixed mode conveniently, research and development personnel can test the corresponding combined functions in an emphasized mode conveniently according to problems fed back by a client on site, and problem points are judged according to the driving state displayed in an interface, so that the functions of a modifier are optimized; by calling all the existing instructions about EtherCAT in the sink master station MC library, research personnel can test the fault tolerance rate of the sink master station matched with the EtherCAT bus type drive conveniently, so that the compatibility problem of the master station and the slave station can be tested after hardware is changed;
in addition, an embodiment of the present invention further provides a function testing apparatus, where the function testing apparatus includes:
the acquisition module is used for acquiring interface operation parameters corresponding to the function test;
the packaging module is used for calling test data according to the interface operating parameters and packaging the test data into a test module;
the sending module is used for sending the test module to the slave station so that the slave station can generate motion state and parameter information according to the test module and send the motion state and 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.
For the principle and implementation process of implementing the functional test in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a functional test program that is stored in the memory and can be run on the processor, and when the functional test program is executed by the processor, the steps of the functional test method described above are implemented.
Since the functional test program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a functional test program is stored on the computer-readable storage medium, and the functional test program, when executed by a processor, implements the steps of the functional test method described above.
Since the functional test program is executed by the processor, all technical solutions of all the foregoing embodiments are adopted, so that at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments are achieved, and details are not repeated herein.
Compared with the prior art, the function test method, the function test device, the terminal equipment and the storage medium provided by the embodiment of the invention have the advantages that the interface operation parameters corresponding to the function test are obtained; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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. Through encapsulating test data into a test module, the efficiency and accuracy of function test are improved, and further the function test effect of the slave station is 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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A function testing method is characterized in that the function testing method is applied to a main station, and comprises the following steps:
acquiring interface operation parameters corresponding to the function test;
calling test data according to the interface operating parameters, and packaging the test data into a test module;
the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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.
2. The functional testing method of claim 1, wherein the step of calling test data according to the interface operation parameters and packaging the test data into a test module comprises:
calling 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.
3. The method for functional testing as claimed in claim 1, wherein the step of receiving the motion status and parameter information sent from the station and sending the motion status and parameter information to an interface for a user to obtain a functional test result according to the motion status and parameter information comprises:
receiving motion state and parameter information sent by the slave station through an interface mapping cycle;
and sending the motion state and parameter information to an interface through a transmission control protocol and/or an internet protocol so that the interface displays the motion state and parameter information, and obtaining a function test result by the user according to the motion state and parameter information displayed by the interface.
4. The method for functional testing as claimed in claim 1, wherein the step of receiving the motion status and parameter information sent from the station and sending the motion status and parameter information to an interface for a user to obtain a functional test result according to the motion status and parameter information further comprises:
and receiving 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.
5. The functional test method of claim 1, wherein the functional test comprises one or more of an enable state test, a resume state test, a jog state test, and a speed state test.
6. A function testing method applied to a secondary station, the function testing method comprising the steps of:
receiving a test module sent by a master station;
generating motion state and parameter information according to the test module;
and sending the motion state and the parameter information to the master station so that the master station can receive the motion state and the parameter information, 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.
7. A functional test system, characterized in that the functional test system comprises:
the master station is used for acquiring interface operation parameters corresponding to the function test; calling test data according to the interface operating parameters, and packaging the test data into a test module; the test module is sent to a slave station, so that the slave station generates motion state and parameter information according to the test module and sends the motion state and parameter information to the master 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 slave station is used for receiving the test module sent by the master station; generating motion state and parameter information according to the test module; 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 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.
8. A functional test device, characterized in that the functional test device comprises:
the acquisition module is used for acquiring interface operation parameters corresponding to the function test;
the packaging module is used for calling test data according to the interface operating parameters and packaging the test data into a test module;
the sending module is used for sending the test module to the slave station so that the slave station can generate motion state and parameter information according to the test module and send the motion state and 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.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a functional test program stored on the memory and executable on the processor, which functional test program, when executed by the processor, implements the steps of the functional test method according to any one of claims 1-5 or 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a functional test program which, when executed by a processor, implements the steps of the functional test method according to any one of claims 1-5 or 6.
CN202210096426.6A 2022-01-26 2022-01-26 Function test method, system, device, terminal equipment and storage medium Active CN114553755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210096426.6A CN114553755B (en) 2022-01-26 2022-01-26 Function test method, system, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210096426.6A CN114553755B (en) 2022-01-26 2022-01-26 Function test method, system, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114553755A true CN114553755A (en) 2022-05-27
CN114553755B CN114553755B (en) 2024-04-26

Family

ID=81674595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210096426.6A Active CN114553755B (en) 2022-01-26 2022-01-26 Function test method, system, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114553755B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4476347A (en) * 1982-03-22 1984-10-09 Siemens Aktiengesellschaft Method 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-29 2003-04-07 주식회사 케이티 Call Simulator for TDX-10A
EP1786151A2 (en) * 2005-11-14 2007-05-16 Broadcom Corporation Network nodes cooperatively routing traffic flow amongst wired and wireless networks
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
US20100213950A1 (en) * 2009-02-20 2010-08-26 Aiconn Technology Corporation System in package batch test method and batch test system thereof
US9021443B1 (en) * 2013-04-12 2015-04-28 Google Inc. Test automation API for host devices
US9274935B1 (en) * 2013-01-15 2016-03-01 Google Inc. Application testing system with application programming interface
KR101675420B1 (en) * 2015-05-18 2016-11-22 주식회사 인프라웨어테크놀러지 Method for automatically transforming android os based application package to tizen os based application package for appliances
CN109460011A (en) * 2018-12-25 2019-03-12 欧瑞传动电气股份有限公司 For the comprehensive performance test device and method of bus type kinetic control system
CN110505116A (en) * 2019-07-30 2019-11-26 国网陕西省电力公司 Power information acquisition system and penetration test method, device, readable storage medium storing program for executing
CN112631932A (en) * 2020-12-30 2021-04-09 交控科技股份有限公司 Sub-function independent test method of automatic train monitoring system based on interface
CN113190388A (en) * 2021-04-13 2021-07-30 厦门路桥信息股份有限公司 TCP interface test method, medium, equipment and device
CN113848749A (en) * 2021-08-31 2021-12-28 际络科技(上海)有限公司 Automatic driving simulation test system, method, electronic device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4476347A (en) * 1982-03-22 1984-10-09 Siemens Aktiengesellschaft Method 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-29 2003-04-07 주식회사 케이티 Call Simulator for TDX-10A
EP1786151A2 (en) * 2005-11-14 2007-05-16 Broadcom Corporation Network nodes cooperatively routing traffic flow amongst wired and wireless networks
CN101576843A (en) * 2008-05-07 2009-11-11 阿里巴巴集团控股有限公司 Method and device for testing application program interface
US20100213950A1 (en) * 2009-02-20 2010-08-26 Aiconn Technology Corporation System in package batch test method and batch test system thereof
US9274935B1 (en) * 2013-01-15 2016-03-01 Google Inc. Application testing system with application programming interface
US9021443B1 (en) * 2013-04-12 2015-04-28 Google Inc. Test automation API for host devices
KR101675420B1 (en) * 2015-05-18 2016-11-22 주식회사 인프라웨어테크놀러지 Method for automatically transforming android os based application package to tizen os based application package for appliances
CN109460011A (en) * 2018-12-25 2019-03-12 欧瑞传动电气股份有限公司 For the comprehensive performance test device and method of bus type kinetic control system
CN110505116A (en) * 2019-07-30 2019-11-26 国网陕西省电力公司 Power information acquisition system and penetration test method, device, readable storage medium storing program for executing
CN112631932A (en) * 2020-12-30 2021-04-09 交控科技股份有限公司 Sub-function independent test method of automatic train monitoring system based on interface
CN113190388A (en) * 2021-04-13 2021-07-30 厦门路桥信息股份有限公司 TCP interface test method, medium, equipment and device
CN113848749A (en) * 2021-08-31 2021-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
HE WEI;ZHAO RUILIAN;ZHU QUNXIONG;: "Integrating Evolutionary Testing with Reinforcement Learning for Automated Test Generation of Object-Oriented Software", CHINESE JOURNAL OF ELECTRONICS, no. 01 *
HE WEI;ZHAO RUILIAN;ZHU QUNXIONG;: "Integrating Evolutionary Testing with Reinforcement Learning for Automated Test Generation of Object-Oriented Software", CHINESE JOURNAL OF ELECTRONICS, no. 01, 15 January 2015 (2015-01-15) *
JIANHUA LUO;HAISEN YU;LIN SHI;XIN KE;YU WANG;JIXIAN DONG;ZHIGANG GUO;DONGLIAN LI;PENG-ZHAO GAO;: "Effects of Grape Balanced Nutrition Fertilizer on Yield and Quality of Wine Grapes", AGRICULTURAL BIOTECHNOLOGY, no. 04, 11 August 2020 (2020-08-11) *
徐浩;李红利;赖淦源;: "PROFIBUS-DP智能从站的设计", 内蒙古石油化工, no. 21, 15 November 2013 (2013-11-15) *
陈永梅;王锦地;梁顺林;王东伟;马斌;: "MISR和MODIS二向性反射数据产品的对比分析", 遥感学报, no. 05 *
陈永梅;王锦地;梁顺林;王东伟;马斌;: "MISR和MODIS二向性反射数据产品的对比分析", 遥感学报, no. 05, 15 September 2009 (2009-09-15) *

Also Published As

Publication number Publication date
CN114553755B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
Zago et al. A quantitative performance study on CAN and CAN FD vehicular networks
CN107450899B (en) Method and device for generating terminal control script
WO2002056541B1 (en) Methods and systems for testing comminications network components
Theiss et al. Software agents in industry: A customized framework in theory and praxis
CN111026634A (en) Interface automation test system, method, device and storage medium
Proctor et al. The canonical robot command language (CRCL)
CN114064152A (en) Embedded multi-core debugging system based on dynamic loading and debugging method thereof
CN107977260B (en) Task submitting method and device
CN110781089A (en) Method and device for automatically testing UI of equipment, electronic equipment and medium
CN103944961A (en) Application sharing method, device and system
CN103365709A (en) Recipe management method and system and semiconductor device control system
CN114553755A (en) Function testing method, system, device, terminal equipment and storage medium
CN115509212B (en) Automated testing system and method based on VTD
CN112214392B (en) JS code debugging method, device, terminal and storage medium
CN114520749A (en) Modbus data monitoring method and system based on cloud platform deployment object model
CN111578780B (en) Qt-based liquid rocket test and launch control system time sequence monitoring method
CN110502418B (en) Method for realizing remote debugging
Lee et al. Collecting big data from automotive ECUs beyond the CAN bandwidth for fault visualization
US8046201B1 (en) Communication system for use with a block diagram environment
CN110554966A (en) Drive debugging method, behavior analysis method and drive debugging system
EP4300295A1 (en) Method and apparatus for executing workflow task across control objects
CN112448971B (en) Data analysis platform, data analysis method and storage medium
CN115086387B (en) Control method and device of domain controller, storage medium and electronic device
JP2012133775A (en) Debugging method and remote debugging method for task script
CN111571583B (en) Manipulator control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant