CN114545848B - Servo motor endurance test process monitoring method and device and computer equipment - Google Patents

Servo motor endurance test process monitoring method and device and computer equipment Download PDF

Info

Publication number
CN114545848B
CN114545848B CN202210434206.XA CN202210434206A CN114545848B CN 114545848 B CN114545848 B CN 114545848B CN 202210434206 A CN202210434206 A CN 202210434206A CN 114545848 B CN114545848 B CN 114545848B
Authority
CN
China
Prior art keywords
collection
controller
data
instruction
driver
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
CN202210434206.XA
Other languages
Chinese (zh)
Other versions
CN114545848A (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.)
China Electronic Product Reliability and Environmental Testing Research Institute
Original Assignee
China Electronic Product Reliability and Environmental Testing Research Institute
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 China Electronic Product Reliability and Environmental Testing Research Institute filed Critical China Electronic Product Reliability and Environmental Testing Research Institute
Priority to CN202210434206.XA priority Critical patent/CN114545848B/en
Publication of CN114545848A publication Critical patent/CN114545848A/en
Application granted granted Critical
Publication of CN114545848B publication Critical patent/CN114545848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/34Testing dynamo-electric machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Electric Motors In General (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

本申请涉及一种伺服电机耐久测试的过程监控方法、装置、计算机设备、存储介质和计算机程序产品。所述方法包括:获取上一次采集过程的结束时刻;判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;若接收到采集装置发送的确认接收指令且采集到运行状态数据和数据包,则实时获取采集到运行状态数据和数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功。

Figure 202210434206

The present application relates to a process monitoring method, device, computer equipment, storage medium and computer program product for durability testing of servo motors. The method includes: acquiring the end time of the last collection process; judging whether the time length between the current time and the end time is equal to the preset interval collection time length, and if it is equal to the preset interval collection time length, sending a collection instruction to the controller; After receiving the mode switching completion command replied by the controller, send the start collection command to the collection device, and send the query command to the controller and the driver; if the confirmation reception command sent by the collection device is received and the running status data and data packets are collected, Then, obtain the collected operation status data and the collection time corresponding to the data packet in real time, and judge whether the collection time is equal to the preset collection time. If it is equal to the preset collection time, send an end collection instruction to the collection device, controller and driver; Whether the collection is successful.

Figure 202210434206

Description

伺服电机耐久测试的过程监控方法、装置和计算机设备Process monitoring method, device and computer equipment for endurance test of servo motor

技术领域technical field

本申请涉及伺服电机耐久测试技术领域,特别是涉及一种伺服电机耐久测试的过程监控方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the technical field of durability testing of servo motors, in particular to a process monitoring method, device, computer equipment, storage medium and computer program product for durability testing of servo motors.

背景技术Background technique

伺服电机作为高端装备的驱动系统和关键部件,是实现装备机电一体化的核心纽带,应用广泛,在数控机床、机器人、工程机械和精密仪器等现代工业中起着不可替代的作用。作为动力系统,伺服电机的耐久可靠性直接关系到整个系统的耐久可靠性,故研究伺服电机的耐久可靠性十分重要,通过开展耐久寿命试验的方式评估伺服电机的耐久寿命评估是其中常用的研究手段,采集电机耐久测试过程中的全寿命周期数据是建立电机故障诊断、寿命预测模型的数据基础。相关技术中,电机耐久试验仅开展简单的电机运行直至出现异常,一般通过电机本身的故障报警、异响、异常停机判断电机故障,缺少过程监测,试验数据单一。As the drive system and key components of high-end equipment, servo motors are the core link to realize the mechanical and electrical integration of equipment. They are widely used and play an irreplaceable role in modern industries such as CNC machine tools, robots, construction machinery and precision instruments. As a power system, the durability and reliability of the servo motor is directly related to the durability and reliability of the entire system. Therefore, it is very important to study the durability and reliability of the servo motor. The evaluation of the durability life of the servo motor by carrying out the durability life test is a commonly used research. By means of this method, the data collection of the whole life cycle data in the process of motor durability test is the data basis for establishing the motor fault diagnosis and life prediction model. In the related art, the motor durability test only carries out simple motor operation until an abnormality occurs. Generally, the motor fault is judged by the fault alarm, abnormal noise and abnormal shutdown of the motor itself. There is a lack of process monitoring and the test data is single.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够对伺服电机耐久测试的过程进行监控的伺服电机耐久测试的过程监控方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to provide a process monitoring method, device, computer equipment, computer readable storage medium and computer program product for servo motor endurance test capable of monitoring the process of servo motor endurance test.

第一方面,本申请提供了一种伺服电机耐久测试的过程监控方法。所述方法包括:In a first aspect, the present application provides a process monitoring method for durability testing of a servo motor. The method includes:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

在其中一个实施例中,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after the current endurance test cycle is completed, the motor is controlled to accelerate to the maximum forward speed and keep running at a constant speed.

在其中一个实施例中,若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the mode switching completion instruction replied by the controller is not received, the collection instruction is sent to the controller; if the mode switching completion instruction replied by the controller is still not received, the collection instruction is sent again to the controller If the controller does not receive the mode switching completion command replied by the controller for the third time, it will end the program and send an alarm email to the designated mailbox.

在其中一个实施例中,若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。In one of the embodiments, if the data packet uploaded by the driver is not collected, the query instruction is sent to the driver. If the data packet uploaded by the driver has not been collected, the query instruction is sent to the driver again. If the data package uploaded by the driver is not collected, the program will end and an alarm email will be sent to the designated mailbox.

在其中一个实施例中,判断数据是否采集成功,包括:In one of the embodiments, judging whether the data is collected successfully includes:

对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。Analyze the collected operating status data uploaded by the controller and data packets uploaded by the driver. If the analysis is successful, the data collection is successful; if the analysis fails, the data collection fails.

在其中一个实施例中,若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the reading fails, the state parameters of the motor acquired by the acquisition device are read based on the query instruction, and if the reading still fails, the state parameters of the motor acquired by the acquisition device are read again based on the query instruction , if the reading fails for the third time, the program will end and an alarm email will be sent to the designated mailbox.

第二方面,本申请还提供了一种伺服电机耐久测试的过程监控装置。所述装置包括:In a second aspect, the present application also provides a process monitoring device for durability testing of a servo motor. The device includes:

获取模块,用于获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;The acquisition module is used to acquire the end time of the last acquisition process; the acquisition data of the previous acquisition process includes the state parameters of the motor, the running state data of the controller and the data packet of the driver;

第一判断模块,用于判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;a first judging module, configured to judge whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

发送模块,用于若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;The sending module is used to send a start acquisition instruction to the acquisition device and send a query instruction to the controller and the driver if the mode switching completion instruction replied by the controller is received; the start acquisition instruction is used to instruct the acquisition device to obtain the state parameters of the motor, The query instruction is used to instruct the controller to upload the running status data and instruct the driver to upload the data package;

采集模块,用于若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;The acquisition module is used to acquire the running status data uploaded by the controller and the data packets uploaded by the driver in real time if it receives the confirmation reception instruction sent by the acquisition device and collects the running status data uploaded by the controller and the data packet uploaded by the driver Corresponding collection time length, and determine whether the collection time length is equal to the preset collection time length, if it is equal to the preset collection time length, send an end collection instruction to the collection device, the controller and the driver;

第二判断模块,用于判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。The second judgment module is used for judging whether the data collection is successful. If the data collection is successful, it sends a test mode switching instruction to the controller, and reads the state parameters of the motor acquired by the collection device based on the query instruction; When the test mode switching is completed and the reading is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and data packets uploaded by the drive are saved.

第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

上述伺服电机耐久测试的过程监控方法、装置、计算机设备、存储介质和计算机程序产品,通过获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。一方面,由于在伺服电机耐久测试的过程中,通过控制指令实现对电机的状态参数、运行状态数据和数据包的定时采集,一方面,从而实现既能完成对伺服电机的耐久测试又能获取到伺服电机耐久测试过程中的全寿命周期数据。另一方面,由于试验数据不再只包括伺服电机的耐久测试结果,而是还包括定时采集的电机的状态参数、运行状态数据和数据包,从而使得试验数据更加丰富。再者,通常在耐久测试过程中只包括运行状态数据和数据包,而本申请还基于采集装置获取电机在耐久测试过程中的状态参数,从而使得试验数据更加丰富。再者,由于采集的数据种类包括采集装置所获取的电机的状态参数、控制器上传运行状态数据和驱动器上传数据包,需要与三个不同的模块进行交互,因此,存在数据难以同步的问题,通过若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器,判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器,从而实现采集装置、控制器和驱动器在同一时刻开始采集,在同一时刻结束采集,进而实现采集装置、控制器和驱动器的同步采集。The process monitoring method, device, computer equipment, storage medium and computer program product of the above-mentioned servo motor endurance test are obtained by obtaining the end time of the last collection process; the collected data of the last collection process includes the state parameters of the motor and the running state of the controller. Data and data packets of the driver; determine whether the time between the current time and the end time is equal to the preset interval collection time, if it is equal to the preset interval collection time, then send the collection command to the controller; if the mode returned by the controller is received If the switch completes the command, send the start acquisition command to the acquisition device, and send the query command to the controller and the driver; the start acquisition command is used to instruct the acquisition device to obtain the state parameters of the motor, and the query command is used to instruct the controller to upload the running status data and instructions. The driver uploads the data package; if it receives the acknowledgment reception command sent by the acquisition device and collects the operating status data uploaded by the controller and the data package uploaded by the driver, the operating status data uploaded by the controller and the data package uploaded by the driver will be acquired in real time. Corresponding collection time, and judge whether the collection time is equal to the preset collection time, if it is equal to the preset collection time, send the end collection command to the collection device, controller and driver; judge whether the data collection is successful, if the data collection is successful, send it The test mode switching command is sent to the controller, and the state parameters of the motor obtained by the acquisition device are read based on the query command; if the test mode switching completion command sent by the controller is received and the reading is successful, the read state parameters of the motor , and save the collected running status data uploaded by the controller and data packets uploaded by the driver. On the one hand, in the process of the endurance test of the servo motor, the state parameters, running state data and data packets of the motor are collected regularly through control commands. To the full life cycle data of the servo motor endurance test process. On the other hand, because the test data no longer only includes the endurance test results of the servo motor, but also includes the state parameters, running state data and data packets of the motor collected regularly, which makes the test data more abundant. Furthermore, only running state data and data packets are usually included in the endurance test process, but the present application also acquires the state parameters of the motor during the endurance test process based on the acquisition device, thereby enriching the test data. Furthermore, since the types of data collected include the state parameters of the motor obtained by the collection device, the operating state data uploaded by the controller, and the data packets uploaded by the driver, it is necessary to interact with three different modules. Therefore, there is a problem that the data is difficult to synchronize. By receiving a mode switching completion command replied by the controller, sending a start collection command to the collection device and sending a query command to the controller and the driver to determine whether the collection duration is equal to the preset collection duration, if it is equal to the preset collection duration, then Send the end acquisition command to the acquisition device, controller and driver, so that the acquisition device, controller and driver start acquisition at the same time, and end the acquisition at the same time, thereby realizing the synchronous acquisition of the acquisition device, controller and driver.

附图说明Description of drawings

图1为一个实施例中伺服电机耐久测试的过程监控方法的流程示意图;1 is a schematic flowchart of a process monitoring method for a servo motor endurance test in one embodiment;

图2为一个实施例中伺服电机耐久测试的过程监控方法中耐久测试过程的示意图;2 is a schematic diagram of an endurance test process in a process monitoring method for a servo motor endurance test in one embodiment;

图3为一个实施例中伺服电机耐久测试的过程监控系统的结构框图;3 is a structural block diagram of a process monitoring system for a servo motor endurance test in one embodiment;

图4为一个实施例中电机耐久试验台的结构框图;4 is a structural block diagram of a motor durability test bench in one embodiment;

图5为一个实施例中耐久台数据监控子系统的采样设置界面的示意图;FIG. 5 is a schematic diagram of a sampling setting interface of the durable station data monitoring subsystem in one embodiment;

图6为一个实施例中耐久台数据监控子系统的数据显示界面的示意图;6 is a schematic diagram of a data display interface of a durable platform data monitoring subsystem in one embodiment;

图7为一个实施例中耐久台数据监控子系统的数据采集的流程示意图;FIG. 7 is a schematic flowchart of data collection of the durable station data monitoring subsystem in one embodiment;

图8为一个实施例中计算机设备的内部结构图。FIG. 8 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

伺服电机作为高端装备的驱动系统和关键部件,是实现装备机电一体化的核心纽带,应用广泛,在数控机床、机器人、工程机械和精密仪器等现代工业中起着不可替代的作用。作为动力系统,伺服电机的耐久可靠性直接关系到整个系统的耐久可靠性,故研究伺服电机的耐久可靠性十分重要,通过开展耐久寿命试验的方式评估伺服电机的耐久寿命评估是其中常用的研究手段,采集电机耐久测试过程中的全寿命周期数据是建立电机故障诊断、寿命预测模型的数据基础。相关技术中,电机耐久试验仅开展简单的电机运行直至出现异常,一般通过电机本身的故障报警、异响、异常停机判断电机故障,缺少过程监测,试验数据单一。As the drive system and key components of high-end equipment, servo motors are the core link to realize the mechanical and electrical integration of equipment. They are widely used and play an irreplaceable role in modern industries such as CNC machine tools, robots, construction machinery and precision instruments. As a power system, the durability and reliability of the servo motor is directly related to the durability and reliability of the entire system. Therefore, it is very important to study the durability and reliability of the servo motor. The evaluation of the durability life of the servo motor by carrying out the durability life test is a commonly used research. By means of this method, the data collection of the whole life cycle data in the process of motor durability test is the data basis for establishing the motor fault diagnosis and life prediction model. In the related art, the motor durability test only carries out simple motor operation until an abnormality occurs. Generally, the motor fault is judged by the fault alarm, abnormal noise and abnormal shutdown of the motor itself. There is a lack of process monitoring and the test data is single.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种专业名词,但除非特别说明,这些专业名词不受这些术语限制。这些术语仅用于将一个专业名词与另一个专业名词区分。It can be understood that the terms "first", "second" and the like used in this application can be used to describe various technical terms in this document, but these technical terms are not limited by these terms unless otherwise specified. These terms are only used to distinguish one professional term from another.

针对上述相关技术中存在的问题,本发明实施例提供了一种伺服电机耐久测试的过程监控方法,该方法可以应用于服务器中,也可以应用于终端,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。其中,服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。需要说明的是,本申请各实施例中提及的“多个”等的数量均指代“至少两个”的数量,比如,“多个”指“至少两个”。In view of the problems existing in the above-mentioned related technologies, the embodiment of the present invention provides a process monitoring method for the durability test of a servo motor. The method can be applied to a server, a terminal, and a system including a terminal and a server. , and through the interaction between the terminal and the server. The server may be implemented by an independent server or a server cluster composed of multiple servers. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, and smart vehicle-mounted devices. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, or the like. It should be noted that the quantities such as "multiple" mentioned in the various embodiments of the present application all refer to the quantity of "at least two", for example, "multiple" refers to "at least two".

在一个实施例中,如图1所示,提供了一种伺服电机耐久测试的过程监控方法,本实施例以该方法应用于服务器进行举例说明,该方法包括以下步骤:In one embodiment, as shown in FIG. 1 , a process monitoring method for the endurance test of a servo motor is provided. This embodiment is illustrated by applying the method to a server. The method includes the following steps:

102、获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包。102. Acquire the end time of the last collection process; the collection data of the last collection process include the state parameters of the motor, the running state data of the controller, and the data packets of the driver.

104、判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器。104. Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller.

实际应用中,当前时刻与结束时刻之间的时长可以基于第一计时器确定。具体地,每次采集过程的结束时刻可以将第一计时器的计时值复位为0,获取第一计时器的当前计时值,第一计时器的当前计时值即为当前时刻与结束时刻之间的时长。In practical applications, the duration between the current moment and the end moment may be determined based on the first timer. Specifically, the timing value of the first timer can be reset to 0 at the end moment of each acquisition process, and the current timing value of the first timer can be obtained. The current timing value of the first timer is the time between the current moment and the end moment. length of time.

需要说明的是,为了提高伺服电机耐久测试的测试效率,通常可以对伺服电机进行正反转测试;而耐久测试过程中的一个耐久测试循环可以包括:从伺服电机开始测试,伺服电机加速到正向最大速度,保持匀速运行一段时长,然后减速至0,再加速到反向最大速度,保持匀速运行一段时长,减速至0,完成一个耐久测试循环。It should be noted that, in order to improve the test efficiency of the servo motor endurance test, the servo motor can usually be tested in the forward and reverse directions; and a endurance test cycle in the endurance test process may include: starting the test from the servo motor, and accelerating the servo motor to positive To the maximum speed, keep running at a constant speed for a period of time, then decelerate to 0, then accelerate to the reverse maximum speed, keep running at a constant speed for a period of time, decelerate to 0, and complete a durability test cycle.

需要说明的是,耐久测试循环是由控制器控制实现的。具体地,控制器具备伺服电机运行参数和速度参数的设置功能,以满足耐久测试的运行需求。控制器按照耐久测试的运行需求,设置伺服电机的运行参数和速度参数。其中运行参数包括运行方式和匀速运行时长,而运行方式包括耐久测试模式和数据采集运行模式;速度参数包括正向最大速度、反向最大速度、加速时长、减速时长和电机旋转方向。其中,速度参数的取值可根据实际需求确定。具体地,耐久测试过程可以如图2所示。如图2所示,控制器在未接收到采集指令之前,运行方式为耐久测试模式,控制器按照耐久测试循环对应参数持续控制伺服电机运行,直到收到采集指令,控制器切换运行方式为数据采集运行模式,并将伺服电机由耐久测试时的运行状态加速至正向最大速度,并保持匀速运行。如图2所示,在以正向最大速度匀速运行的工况下进行数据采集,采集完成后,控制器切换运行方式为耐久测试模式。可以理解的是,之所以是在以正向最大速度匀速运行的工况下进行数据采集,一方面,能够实现定时进行稳定工况下数据采集,保证采集到的数据在诊断预测模型建立时的利用率更高;另一方面,在固定工况下进行数据采集,从而降低数据分析的难度。It should be noted that the endurance test cycle is controlled by the controller. Specifically, the controller has the function of setting the operating parameters and speed parameters of the servo motor to meet the running requirements of the endurance test. The controller sets the operating parameters and speed parameters of the servo motor according to the running requirements of the endurance test. The operation parameters include operation mode and constant speed operation time, while the operation mode includes endurance test mode and data acquisition operation mode; speed parameters include forward maximum speed, reverse maximum speed, acceleration time, deceleration time and motor rotation direction. The value of the speed parameter can be determined according to actual requirements. Specifically, the endurance test process can be shown in FIG. 2 . As shown in Figure 2, before the controller receives the acquisition command, the operation mode is the endurance test mode, and the controller continues to control the servo motor to run according to the corresponding parameters of the endurance test cycle until the acquisition command is received, and the controller switches the operation mode to data Collect the running mode, accelerate the servo motor from the running state during the endurance test to the maximum forward speed, and keep running at a constant speed. As shown in Figure 2, data collection is carried out under the condition of running at a constant speed at the maximum forward speed. After the collection is completed, the controller switches the operation mode to the endurance test mode. It is understandable that the reason why the data collection is carried out under the condition of running at a constant speed at the maximum forward speed. On the one hand, it can realize the data collection under stable working conditions at regular intervals, so as to ensure that the collected data is accurate when the diagnosis and prediction model is established. The utilization rate is higher; on the other hand, data collection is carried out under fixed working conditions, thereby reducing the difficulty of data analysis.

106、若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包。106. If the mode switching completion command replied by the controller is received, send a start collection command to the collection device, and send a query command to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command uses It is used to instruct the controller to upload operating status data and to instruct the driver to upload data packets.

其中,电机的状态参数包括振动信号、温度、电流和电压;运行状态数据包括当前运行方式、电机运行参数和驱动器状态参数;电机运行参数包括耐久测试循环次数、循环单次运行时长、采集时长、控制器所设置的匀速运行时长、控制器所设置的速度参数和驱动器状态;数据包包括电机的实时功率、电机的指令位置、电机的反馈位置、电机的跟踪误差、电机的指令速度、电机的反馈速度、电机的反馈力矩、电机的报警码和电机的惯量比。在实际应用中,电机的状态参数可以基于传感器进行采集。Among them, the state parameters of the motor include vibration signal, temperature, current and voltage; the operation state data includes the current operation mode, motor operation parameters and drive state parameters; the motor operation parameters include the number of endurance test cycles, the duration of a single cycle operation, the collection duration, The constant speed running time set by the controller, the speed parameters set by the controller and the drive status; the data package includes the real-time power of the motor, the command position of the motor, the feedback position of the motor, the tracking error of the motor, the command speed of the motor, the Feedback speed, motor feedback torque, motor alarm code and motor inertia ratio. In practical applications, the state parameters of the motor can be collected based on sensors.

需要说明的是,可以基于驱动器自带协议发送开始采集指令至驱动器,具体地,如Modbus协议,本申请实施例对此不作具体限定。It should be noted that, the acquisition start instruction may be sent to the driver based on the driver's own protocol, specifically, such as the Modbus protocol, which is not specifically limited in this embodiment of the present application.

108、若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器。108. If the confirmation reception instruction sent by the acquisition device is received, and the operation status data uploaded by the controller and the data packets uploaded by the driver are collected, then the collection corresponding to the operation status data uploaded by the controller and the data packets uploaded by the driver is acquired in real time. and determine whether the collection time is equal to the preset collection time, and if it is equal to the preset collection time, send an end collection instruction to the collection device, the controller and the driver.

其中,采集时长可以基于第二计时器确定。具体地,第二计时器的初始计时值为0,并从采集到控制器上传的运行状态数据和驱动器上传的数据包的时刻起开始计时,第二计时器的实时计时值也即采集时长。实际应用中,若采集时长小于预设采集时长,则采集装置继续实时获取电机的状态参数,服务器继续采集控制器实时上传的运行状态数据和驱动器实时上传的数据包。The collection duration may be determined based on the second timer. Specifically, the initial timing value of the second timer is 0, and starts timing from the time when the running state data uploaded by the controller and the data packets uploaded by the driver are collected, and the real-time timing value of the second timer is also the collection duration. In practical applications, if the collection time is less than the preset collection time, the collection device continues to obtain the state parameters of the motor in real time, and the server continues to collect the running state data uploaded in real time by the controller and the data packets uploaded in real time by the driver.

110、判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。110. Determine whether the data collection is successful. If the data collection is successful, send a test mode switching instruction to the controller, and read the state parameters of the motor acquired by the collection device based on the query instruction; if the test mode switching completion instruction sent by the controller is received. And if the reading is successful, the read state parameters of the motor, and the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

其中,测试模式切换指令用于指示控制器切换运行方式为耐久测试模式。The test mode switching instruction is used to instruct the controller to switch the operation mode to the endurance test mode.

例如,采集时长是基于第二计时器确定的,若数据采集失败,则将第二计时器的实时计时值复位为0,并从采集到控制器上传的运行状态数据和驱动器上传的数据包的时刻起重新开始计时,若第二计时器的实时计时值等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功,若数据采集失败,则再次将第二计时器的实时计时值复位为0,并从采集到控制器上传的运行状态数据和驱动器上传的数据包的时刻起再次重新开始计时,若第二计时器的实时计时值等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功,若数据采集失败,则结束程序,并发送报警邮件至指定邮箱。For example, the collection duration is determined based on the second timer. If the data collection fails, the real-time timing value of the second timer is reset to 0, and the data is collected from the running status data uploaded by the controller and the data packet uploaded by the driver. Restart timing from time to time, if the real-time timing value of the second timer is equal to the preset collection duration, send an end collection instruction to the collection device, controller and driver; judge whether the data collection is successful, if the data collection fails, the first time will be collected again. The real-time timing value of the second timer is reset to 0, and restarts the timing from the moment when the running status data uploaded by the controller and the data packets uploaded by the driver are collected. If the real-time timing value of the second timer is equal to the preset collection duration , then send the end collection instruction to the collection device, controller and driver; judge whether the data collection is successful, if the data collection fails, end the program, and send an alarm email to the designated mailbox.

之所以需要确定数据采集成功后,再基于查询指令读取采集装置所获取的电机的状态参数,是因为采集装置有自己的采集存储系统,不能实时的往服务器发数据,而是需要等采集成功后打包成一份数据,服务器基于查询指令读取采集装置打包好的数据。The reason why it is necessary to confirm that the data collection is successful, and then read the state parameters of the motor obtained by the collection device based on the query command, is because the collection device has its own collection and storage system, which cannot send data to the server in real time, but needs to wait for the collection to succeed. Then, it is packaged into a piece of data, and the server reads the packaged data of the acquisition device based on the query instruction.

例如,当前时刻与结束时刻之间的时长是基于第一计时器确定的,需要说明的是,对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存之后,还包括:判断是否接收到用户发送的结束指令,若接收到结束指令,则对第一计时器的计时值复位为0,并进行计时。For example, the duration between the current moment and the end moment is determined based on the first timer. It should be noted that the read state parameters of the motor, and the collected running status data uploaded to the controller and the driver upload After saving the data packet of the first timer, the method further includes: judging whether an end command sent by the user is received, and if the end command is received, the timing value of the first timer is reset to 0, and the timing is performed.

上述伺服电机耐久测试的过程监控方法中,通过获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。一方面,由于在伺服电机耐久测试的过程中,通过控制指令实现对电机的状态参数、运行状态数据和数据包的定时采集,一方面,从而实现既能完成对伺服电机的耐久测试又能获取到伺服电机耐久测试过程中的全寿命周期数据。另一方面,由于试验数据不再只包括伺服电机的耐久测试结果,而是还包括定时采集的电机的状态参数、运行状态数据和数据包,从而使得试验数据更加丰富。再者,通常在耐久测试过程中只包括运行状态数据和数据包,而本申请还基于采集装置获取电机在耐久测试过程中的状态参数,从而使得试验数据更加丰富。再者,由于采集的数据种类包括采集装置所获取的电机的状态参数、控制器上传运行状态数据和驱动器上传数据包,需要与三个不同的模块进行交互,因此,存在数据难以同步的问题,通过若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器,判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器,从而实现采集装置、控制器和驱动器在同一时刻开始采集,在同一时刻结束采集,进而实现采集装置、控制器和驱动器的同步采集。In the process monitoring method of the above-mentioned servo motor endurance test, the end time of the last collection process is obtained; the collection data of the last collection process includes the state parameters of the motor, the running state data of the controller and the data packet of the driver; Whether the duration between the end times is equal to the preset interval collection duration, if it is equal to the preset interval collection duration, the collection command is sent to the controller; if the mode switching completion command replied by the controller is received, the start collection command is sent to the collection device, and send the query command to the controller and the driver; the start acquisition command is used to instruct the acquisition device to obtain the state parameters of the motor, and the query command is used to instruct the controller to upload the running status data and instruct the driver to upload data packets; If the confirmation reception command is received and the operating status data uploaded by the controller and the data packets uploaded by the driver are collected, the collection duration corresponding to the running status data uploaded by the controller and the data packets uploaded by the driver is acquired in real time, and it is judged whether the collection duration is equal to The preset collection time, if it is equal to the preset collection time, send the end collection instruction to the collection device, controller and driver; judge whether the data collection is successful, if the data collection is successful, send the test mode switching instruction to the controller, based on the query instruction Read the state parameters of the motor obtained by the acquisition device; if the test mode switching completion command sent by the controller is received and the reading is successful, the read state parameters of the motor and the collected operation of the controller are uploaded. Status data and data packets uploaded by the drive are saved. On the one hand, in the process of the endurance test of the servo motor, the state parameters, running state data and data packets of the motor are collected regularly through control commands. To the full life cycle data of the servo motor endurance test process. On the other hand, because the test data no longer only includes the endurance test results of the servo motor, but also includes the state parameters, running state data and data packets of the motor collected regularly, which makes the test data more abundant. Furthermore, only running state data and data packets are usually included in the endurance test process, but the present application also acquires the state parameters of the motor during the endurance test process based on the acquisition device, thereby enriching the test data. Furthermore, since the types of data collected include the state parameters of the motor obtained by the collection device, the operating state data uploaded by the controller, and the data packets uploaded by the driver, it is necessary to interact with three different modules. Therefore, there is a problem that the data is difficult to synchronize. By receiving a mode switching completion command replied by the controller, sending a start collection command to the collection device and sending a query command to the controller and the driver to determine whether the collection duration is equal to the preset collection duration, if it is equal to the preset collection duration, then Send the end acquisition command to the acquisition device, controller and driver, so that the acquisition device, controller and driver start acquisition at the same time, and end the acquisition at the same time, thereby realizing the synchronous acquisition of the acquisition device, controller and driver.

在一个实施例中,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after the current endurance test cycle is completed, the motor is controlled to accelerate to the maximum forward speed and keep running at a constant speed.

可以理解的是,控制器在未接收到测试模式切换指令之前,一直控制电机以正向最大速度匀速运行,也即数据采集过程是在以正向最大速度匀速运行的工况下进行的。It can be understood that the controller has been controlling the motor to run at a constant speed at the maximum forward speed before receiving the test mode switching command, that is, the data acquisition process is carried out under the condition of running at a constant speed at the maximum forward speed.

本实施例中,通过控制电机加速至正向最大速度,并保持匀速运行,实现在以正向最大速度匀速运行的工况下进行数据采集,一方面,从而能够实现定时进行稳定工况下数据采集,保证采集到的数据在诊断预测模型建立时的利用率更高;另一方面,在固定工况下进行数据采集,从而降低数据分析的难度。In this embodiment, by controlling the motor to accelerate to the maximum forward speed and keep running at a constant speed, data collection is realized under the working condition of running at a constant speed at the forward maximum speed. Data collection ensures that the collected data has a higher utilization rate when the diagnostic prediction model is established; on the other hand, data collection is carried out under fixed working conditions, thereby reducing the difficulty of data analysis.

在一个实施例中,若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the mode switching completion instruction replied by the controller is not received, the collection instruction is sent to the controller, and if the mode switching completion instruction replied by the controller is still not received, the collection instruction is sent to the control again. If the controller does not receive the mode switching completion command replied by the controller for the third time, it will end the program and send an alarm email to the designated mailbox.

本实施例中,通过若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。由于使用重试机制进行指令下发,从而提高数据采集的成功率,避免因网络的瞬时异常或延时导致的采集指令发送异常。由于在未接收到控制器回复的模式切换完成指令时,就不发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器,从而避免采集到不符合要求的数据。In this embodiment, if the mode switching completion instruction replied by the controller is not received, the collection instruction is sent to the controller, and if the mode switching completion instruction replied by the controller is still not received, the collection instruction is sent to the control again. If the controller does not receive the mode switching completion command replied by the controller for the third time, it will end the program and send an alarm email to the designated mailbox. Because the retry mechanism is used to issue instructions, the success rate of data collection is improved, and the abnormal transmission of collection instructions caused by instantaneous abnormality or delay of the network is avoided. When the mode switching completion command replied by the controller is not received, the start collecting command is not sent to the collecting device, and the query command is not sent to the controller and the driver, so as to avoid collecting data that does not meet the requirements.

在一个实施例中,若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the data packet uploaded by the driver is not collected, a query instruction is issued to the driver. If the data packet uploaded by the driver has not been collected, the query instruction is sent to the driver again. When the data package uploaded by the driver is collected, the program ends and an alarm email is sent to the designated mailbox.

本实施例中,由于使用重试机制进行指令下发,从而提高数据采集的成功率,避免因网络的瞬时异常或延时导致的查询指令发送异常,进而导致未采集到驱动器上传的数据包。In this embodiment, because the retry mechanism is used to issue commands, the success rate of data collection is improved, and the abnormal transmission of query commands caused by instantaneous network abnormalities or delays is avoided, which in turn leads to failure to collect data packets uploaded by the driver.

在一个实施例中,若未接收到采集装置发送的确认接收指令,则下发开始采集指令至采集装置,若未接收到采集装置发送的确认接收指令,则再次下发开始采集指令至采集装置,若仍未接收到采集装置发送的确认接收指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the acknowledgment reception instruction sent by the collection device is not received, the collection start instruction is sent to the collection device, and if the acknowledgement reception instruction sent by the collection device is not received, the collection start instruction is sent to the collection device again. , if the confirmation reception command sent by the acquisition device has not been received, the program will end, and an alarm email will be sent to the designated mailbox.

本实施例中,由于使用重试机制进行指令下发,从而提高数据采集的成功率,避免因网络的瞬时异常或延时导致的开始采集指令发送异常,进而导致未接收到采集装置发送的确认接收指令。In this embodiment, since the retry mechanism is used to issue the command, the success rate of data collection is improved, and the abnormality of sending the command to start the collection caused by the instantaneous abnormality or delay of the network is avoided, and thus the confirmation sent by the collection device is not received. receive instructions.

在一个实施例中,判断数据是否采集成功,包括:In one embodiment, judging whether the data collection is successful includes:

对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。Analyze the collected operating status data uploaded by the controller and data packets uploaded by the driver. If the analysis is successful, the data collection is successful; if the analysis fails, the data collection fails.

本实施例中,通过对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。In this embodiment, by analyzing the collected operating status data uploaded by the controller and data packets uploaded by the driver, if the analysis is successful, the data collection is successful, and if the analysis fails, the data collection fails.

在一个实施例中,若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the reading fails, the state parameters of the motor acquired by the acquisition device are read based on the query instruction, and if the reading still fails, the state parameters of the motor acquired by the acquisition device are read again based on the query instruction, If the reading fails for the third time, the program will end and an alarm email will be sent to the designated mailbox.

本实施例中,由于使用重试机制进行指令下发,从而提高数据采集的成功率,避免因网络的瞬时异常或延时导致的查询指令发送异常,进而导致读取失败。In this embodiment, since the retry mechanism is used to issue the command, the success rate of data collection is improved, and the abnormality of sending the query command caused by the instantaneous abnormality or delay of the network is avoided, thereby causing the reading failure.

在一个实施例中,若未接收到控制器发送的测试模式切换完成指令,则发送测试模式切换指令至控制器,若未接收到控制器发送的测试模式切换完成指令,则再次发送测试模式切换指令至控制器,若仍未接收到控制器发送的测试模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, if the test mode switching completion instruction sent by the controller is not received, the test mode switching instruction is sent to the controller, and if the test mode switching completion instruction sent by the controller is not received, the test mode switching completion instruction is sent again. Send the command to the controller. If the test mode switching completion command sent by the controller is still not received, the program will end and an alarm email will be sent to the designated mailbox.

本实施例中,由于使用重试机制进行指令下发,从而使得耐久测试能正常进行,避免因网络的瞬时异常或延时导致的测试模式切换指令发送异常,进而导致测试模式切换失败。In this embodiment, since the retry mechanism is used to issue the command, the endurance test can be carried out normally, and the abnormal transmission of the test mode switching command caused by the instantaneous abnormality or delay of the network is avoided, thereby causing the failure of the test mode switching.

在一个实施例中,采集指令、模式切换完成指令、查询指令、接收指令、结束采集指令、测试模式切换指令和测试模式切换完成指令均定义为帧头+帧类型+设备编号+数据块数量+实际传输数据块+帧尾。In one embodiment, the acquisition instruction, the mode switching completion instruction, the query instruction, the receiving instruction, the end acquisition instruction, the test mode switching instruction, and the test mode switching completion instruction are all defined as frame header+frame type+device number+number of data blocks+ Actual transmission data block + end of frame.

结合上述实施例,在一个实施例中,如图3所示,提供了一种伺服电机耐久测试的过程监控系统,包括:电机耐久试验台、控制器、驱动器、外置传感器、采集装置、耐久台数据监控子系统和数据库,其中:In combination with the above embodiments, in one embodiment, as shown in FIG. 3 , a process monitoring system for durability testing of a servo motor is provided, including: a motor durability test bench, a controller, a driver, an external sensor, a collection device, a durability A data monitoring subsystem and database, including:

电机耐久试验台可以如图4所示,包括底座、待测电机和负载模块,一个底座可以同时安装6台测试电机,负载模块可以为惯量块,具体地,可以为负载惯量5倍等级的惯量块,也可以为负载惯量10倍等级的惯量块,惯量块的负载惯量等级可以根据实际需求确定。如图4所示,外置传感器安装在待测电机的侧面。The motor durability test bench can be shown in Figure 4, including the base, the motor to be tested and the load module. One base can install 6 test motors at the same time, and the load module can be an inertia block, specifically, it can be an inertia of 5 times the load inertia. It can also be an inertia block with a load inertia of 10 times the level, and the load inertia level of the inertia block can be determined according to the actual demand. As shown in Figure 4, the external sensor is installed on the side of the motor to be tested.

外置传感器,用于采集待测电机的状态参数。具体地,外置传感器可以包括振动传感器、温度传感器、电压传感器和电流传感器,振动传感器用于采集待测电机的振动信号,温度传感器用于采集待测电机的温度,电压传感器用于采集待测电机的电压,电流传感器用于采集待测电机的电流。The external sensor is used to collect the state parameters of the motor to be tested. Specifically, the external sensors may include vibration sensors, temperature sensors, voltage sensors, and current sensors. The vibration sensor is used to collect vibration signals of the motor to be measured, the temperature sensor is used to collect the temperature of the motor to be measured, and the voltage sensor is used to collect the temperature of the motor to be measured. The voltage of the motor and the current sensor are used to collect the current of the motor to be tested.

控制器,用于提供待测电机运行参数和速度参数的设置功能,以满足耐久测试的运行需求。控制器按照耐久测试的运行需求,设置伺服电机的运行参数和速度参数。其中运行参数包括运行方式和匀速运行时长,而运行方式包括耐久测试模式和数据采集运行模式;速度参数包括正向最大速度、反向最大速度、加速时长、减速时长和电机旋转方向。其中,速度参数的取值可根据实际需求确定。在接收到查询指令时,上传运行状态数据至耐久台数据监控子系统。The controller is used to provide the function of setting the running parameters and speed parameters of the motor to be tested to meet the running requirements of the endurance test. The controller sets the operating parameters and speed parameters of the servo motor according to the running requirements of the endurance test. The operation parameters include operation mode and constant speed operation time, while the operation mode includes endurance test mode and data acquisition operation mode; speed parameters include forward maximum speed, reverse maximum speed, acceleration time, deceleration time and motor rotation direction. The value of the speed parameter can be determined according to actual requirements. When receiving the query command, upload the running status data to the data monitoring subsystem of the durable platform.

驱动器,用于按照控制器设置的运行参数和速度参数驱动待测电机运行,在接收到查询指令时,上传数据包至耐久台数据监控子系统。The driver is used to drive the motor to be tested to run according to the operating parameters and speed parameters set by the controller, and upload data packets to the data monitoring subsystem of the durable platform when receiving the query command.

采集装置,与外置传感器连接,用于在接收到开始采集指令时,采集外置传感器的数据。The acquisition device is connected with the external sensor, and is used for collecting the data of the external sensor when receiving the start acquisition instruction.

耐久台数据监控子系统,用于获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。The data monitoring subsystem of the durable platform is used to obtain the end time of the last collection process; the collected data of the last collection process includes the state parameters of the motor, the running state data of the controller and the data packets of the driver; judge the difference between the current time and the end time. Whether the length of time is equal to the preset interval collection time, if it is equal to the preset interval collection time, then send the collection command to the controller; if receiving the mode switching completion command replied by the controller, send the start collection command to the collection device, and Send the query command to the controller and the driver; the start acquisition command is used to instruct the acquisition device to obtain the state parameters of the motor, and the query command is used to instruct the controller to upload the running status data and instruct the driver to upload data packets; if the confirmation received from the acquisition device is received command and collect the running status data uploaded by the controller and the data package uploaded by the driver, then the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time, and it will be judged whether the acquisition duration is equal to the preset acquisition duration If the duration is equal to the preset acquisition duration, send an end acquisition instruction to the acquisition device, controller and driver; determine whether the data acquisition is successful, if the data acquisition is successful, send a test mode switching instruction to the controller, and read the acquisition based on the query instruction The state parameters of the motor obtained by the device; if the test mode switching completion command sent by the controller is received and the reading is successful, the read state parameters of the motor, as well as the collected running state data uploaded to the controller and The data package uploaded by the drive is saved.

其中,耐久台数据监控子系统的采样设置界面可以如图5所示,图5中,采样间隔即是预设间隔采集时长,采样时长即是预设采集时长。需要说明的是,用于可以手动输入设置采样间隔和采样时长。耐久台数据监控子系统的数据显示界面可以如图6所示。可以选择在数据显示界面上监测控制器的状态,也可以选择监测驱动器的状态或者采集装置的状态,可根据需求确定。图6中的设置栏是对显示的数据进行设置,默认显示最新采集的数据,也可以通过加载历史数据包,显示历史数据;支持设置显示参数的类别和通道。状态栏是当前显示对象的故障状态表示,白灯表示状态正常,黑灯表示故障。当出现故障状态,耐久台数据监控子系统自动向指定的邮箱发送报警邮件,用户也可以手动添加指定的邮箱,向指定的邮箱发送报警邮件。The sampling setting interface of the data monitoring subsystem of the durable station may be shown in FIG. 5 . In FIG. 5 , the sampling interval is the preset interval collection duration, and the sampling duration is the preset collection duration. It should be noted that it is used to set the sampling interval and sampling duration by manual input. The data display interface of the durable station data monitoring subsystem can be shown in Figure 6. You can choose to monitor the status of the controller on the data display interface, or you can choose to monitor the status of the driver or the status of the acquisition device, which can be determined according to requirements. The setting bar in Figure 6 is to set the displayed data, the latest collected data is displayed by default, and historical data can also be displayed by loading the historical data package; it supports setting the category and channel of display parameters. The status bar indicates the fault status of the currently displayed object. The white light indicates the status is normal, and the black light indicates the fault. When a fault occurs, the data monitoring subsystem of the Durable Station will automatically send an alarm email to the designated mailbox. Users can also manually add a designated mailbox and send an alarm email to the designated mailbox.

数据库,用于存储耐久台数据监控子系统读取到的电机的状态参数、以及采集到的控制器上传的运行状态数据和驱动器上传的数据包。存储方式有两种,一种是自动存储,一种是手动存储,自动存储包括耐久台数据监控子系统读取到的电机的状态参数、以及采集到的控制器上传的运行状态数据和驱动器上传的数据包自动保存至数据库中,手动存储包括可以手动选择需要存储的数据。The database is used to store the state parameters of the motor read by the data monitoring subsystem of the durable platform, as well as the collected running state data uploaded by the controller and data packets uploaded by the drive. There are two storage methods, one is automatic storage and the other is manual storage. Automatic storage includes the state parameters of the motor read by the data monitoring subsystem of the durable platform, as well as the collected operating status data uploaded by the controller and uploaded by the drive. The data package is automatically saved to the database, and manual storage includes manual selection of the data to be stored.

需要说明的是,上述系统涉及的名词和步骤的相关解释,可参考上述各实施例中对名词及步骤的解释说明,在此不再赘述。It should be noted that, for the relevant explanations of the terms and steps involved in the above system, reference may be made to the explanations of the terms and steps in the above embodiments, which will not be repeated here.

在一个实施例中,耐久台数据监控子系统的数据采集流程可以如图7所示。图7中的采样间隔Tb也即上述实施例中的预设间隔采集时长,采样时长t也即上述实施例中的预设采集时长。图7中涉及的名词和步骤的相关解释,可参考上述各实施例中对名词及步骤的解释说明,在此不再赘述。In one embodiment, the data collection process of the durable station data monitoring subsystem may be as shown in FIG. 7 . The sampling interval Tb in FIG. 7 is the preset interval collection duration in the foregoing embodiment, and the sampling duration t is also the preset collection duration in the foregoing embodiment. For the related explanations of the terms and steps involved in FIG. 7 , reference may be made to the explanations of the terms and steps in the above-mentioned embodiments, which will not be repeated here.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be performed at different times The execution order of these steps or phases is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or phases in the other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的伺服电机耐久测试的过程监控方法的伺服电机耐久测试的过程监控装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个伺服电机耐久测试的过程监控装置实施例中的具体限定可以参见上文中对于伺服电机耐久测试的过程监控方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides a process monitoring device for a servo motor endurance test for implementing the above-mentioned process monitoring method for a servo motor endurance test. The solution to the problem provided by the device is similar to the solution described in the above method, so the specific limitations in the embodiment of the process monitoring device for the endurance test of one or more servo motors provided below can refer to the above for the servo motor The limitation of the process monitoring method of the motor endurance test will not be repeated here.

在一个实施例中,提供了一种伺服电机耐久测试的过程监控装置,包括:获取模块、第一判断模块、发送模块、采集模块和第二判断模块,其中:In one embodiment, a process monitoring device for durability testing of a servo motor is provided, including: an acquisition module, a first judgment module, a transmission module, a collection module and a second judgment module, wherein:

获取模块,用于获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;The acquisition module is used to acquire the end time of the last acquisition process; the acquisition data of the previous acquisition process includes the state parameters of the motor, the running state data of the controller and the data packet of the driver;

第一判断模块,用于判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;a first judging module, configured to judge whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

发送模块,用于若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;The sending module is used to send a start acquisition instruction to the acquisition device and send a query instruction to the controller and the driver if the mode switching completion instruction replied by the controller is received; the start acquisition instruction is used to instruct the acquisition device to obtain the state parameters of the motor, The query instruction is used to instruct the controller to upload the running status data and instruct the driver to upload the data package;

采集模块,用于若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;The acquisition module is used to acquire the running status data uploaded by the controller and the data packets uploaded by the driver in real time if it receives the confirmation reception instruction sent by the acquisition device and collects the running status data uploaded by the controller and the data packet uploaded by the driver Corresponding collection time length, and determine whether the collection time length is equal to the preset collection time length, if it is equal to the preset collection time length, send an end collection instruction to the collection device, the controller and the driver;

第二判断模块,用于判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。The second judgment module is used for judging whether the data collection is successful. If the data collection is successful, it sends a test mode switching instruction to the controller, and reads the state parameters of the motor acquired by the collection device based on the query instruction; When the test mode switching is completed and the reading is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and data packets uploaded by the drive are saved.

在一个实施例中,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after the current endurance test cycle is completed, the motor is controlled to accelerate to the maximum forward speed and keep running at a constant speed.

在一个实施例中,发送模块,包括:In one embodiment, the sending module includes:

第一发送单元,用于若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。The first sending unit is used to send the collection instruction to the controller if the mode switching completion instruction replied by the controller is not received, and if the mode switching completion instruction replied by the controller has not been received, then the collection instruction is sent to the controller again. If the controller does not receive the mode switching completion command replied by the controller for the third time, it will end the program and send an alarm email to the designated mailbox.

在一个实施例中,采集模块,包括:In one embodiment, the acquisition module includes:

第二发送单元,用于若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。The second sending unit is used to issue a query instruction to the driver if the data packet uploaded by the driver has not been collected, and if the data packet uploaded by the driver has not been collected yet, issue the query instruction to the driver again. If the data package uploaded by the driver is not collected, the program will end and an alarm email will be sent to the designated mailbox.

在一个实施例中,第二判断模块,包括:In one embodiment, the second judgment module includes:

对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。Analyze the collected operating status data uploaded by the controller and data packets uploaded by the driver. If the analysis is successful, the data collection is successful; if the analysis fails, the data collection fails.

在一个实施例中,第二判断模块,包括:In one embodiment, the second judgment module includes:

第三发送单元,用于若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。The third sending unit is configured to read the state parameters of the motor acquired by the acquisition device based on the query instruction if the reading fails, and if the reading still fails, read the state parameters of the motor acquired by the acquisition device again based on the query instruction , if the reading fails for the third time, the program will end and an alarm email will be sent to the designated mailbox.

上述伺服电机耐久测试的过程监控装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned process monitoring device for the endurance test of the servo motor can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储电机的状态参数、运行状态数据和数据包数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种伺服电机耐久测试的过程监控方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 8 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store the state parameters, running state data and data packet data of the motor. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a process monitoring method for endurance testing of a servo motor.

本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

在一个实施例中,处理器在执行计算机程序时,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, when the processor executes the computer program, the processor collects instructions for instructing the controller to complete the current endurance test cycle, and after completing the current endurance test cycle, controls the motor to accelerate to the maximum forward speed and keep running at a constant speed.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。If the mode switching completion command returned by the controller is not received, the collection command will be sent to the controller. If the mode switching completion command returned by the controller has not been received, the collection command will be sent to the controller again. If the mode switching completion command replied by the controller has not been received, the program will end and an alarm email will be sent to the designated mailbox.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。If the data packet uploaded by the driver is not collected, the query command will be sent to the driver. If the data packet uploaded by the driver has not been collected, the query command will be sent to the driver again. If the data uploaded by the driver has not been collected for the third time package, the program ends, and an alarm email is sent to the designated mailbox.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。Analyze the collected operating status data uploaded by the controller and data packets uploaded by the driver. If the analysis is successful, the data collection is successful; if the analysis fails, the data collection fails.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。If the reading fails, the state parameters of the motor obtained by the acquisition device are read based on the query command. If the reading still fails, the state parameters of the motor acquired by the acquisition device are read again based on the query command. If the retrieval fails, the program ends and an alarm email is sent to the designated mailbox.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

在一个实施例中,计算机程序被处理器执行时,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, when the computer program is executed by the processor, the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after the current endurance test cycle is completed, the motor is controlled to accelerate to the maximum forward speed and keep running at a constant speed.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the mode switching completion instruction replied by the controller is not received, the acquisition instruction is sent to the controller; If the switch completes the command, the acquisition command will be sent to the controller again. If the mode switch complete command replied by the controller is not received for the third time, the program will end and an alarm email will be sent to the designated mailbox.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the data packet uploaded by the driver is not collected, send a query instruction to the driver; if the data packet uploaded by the driver has not been collected, download the data packet again Send a query command to the drive, if the data package uploaded by the drive is not collected for the third time, the program will end, and an alarm email will be sent to the designated mailbox.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: analyzing the collected operating status data uploaded by the controller and data packets uploaded by the driver; if the analysis is successful, the data collection is successful; If it fails, the data collection fails.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the reading fails, the state parameters of the motor acquired by the acquisition device are read based on the query instruction, and if the reading still fails, based on the query instruction again Read the state parameters of the motor acquired by the acquisition device. If the reading fails for the third time, the program will end and an alarm email will be sent to the designated mailbox.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:

获取上一次采集过程的结束时刻;上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Obtain the end time of the last acquisition process; the acquisition data of the last acquisition process include the state parameters of the motor, the running state data of the controller and the data packets of the driver;

判断当前时刻与结束时刻之间的时长是否等于预设间隔采集时长,若等于预设间隔采集时长,则下发采集指令至控制器;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller;

若接收到控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至控制器和驱动器;开始采集指令用于指示采集装置获取电机的状态参数,查询指令用于指示控制器上传运行状态数据和指示驱动器上传数据包;If the mode switching completion command replied by the controller is received, a start collection command is sent to the collection device, and a query command is sent to the controller and the driver; the start collection command is used to instruct the collection device to obtain the state parameters of the motor, and the query command is used to indicate The controller uploads operating status data and instructs the drive to upload data packets;

若接收到采集装置发送的确认接收指令且采集到控制器上传的运行状态数据和驱动器上传的数据包,则实时获取采集到控制器上传的运行状态数据和驱动器上传的数据包对应的采集时长,并判断采集时长是否等于预设采集时长,若等于预设采集时长,则发送结束采集指令至采集装置、控制器和驱动器;If the confirmation reception command sent by the acquisition device is received, and the running status data uploaded by the controller and the data packet uploaded by the driver are collected, the acquisition duration corresponding to the running status data uploaded by the controller and the data packet uploaded by the driver will be acquired in real time. and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an end collection instruction to the collection device, the controller and the driver;

判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至控制器,基于查询指令读取采集装置所获取的电机的状态参数;若接收到控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的控制器上传的运行状态数据和驱动器上传的数据包进行保存。Determine whether the data collection is successful, if the data collection is successful, send the test mode switching command to the controller, and read the state parameters of the motor obtained by the collection device based on the query command; if the test mode switching completion command sent by the controller is received and read If the acquisition is successful, the read state parameters of the motor, as well as the collected running state data uploaded by the controller and the data package uploaded by the drive are saved.

在一个实施例中,计算机程序被处理器执行时,采集指令用于指示控制器完成当前耐久测试循环,在完成当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。In one embodiment, when the computer program is executed by the processor, the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after the current endurance test cycle is completed, the motor is controlled to accelerate to the maximum forward speed and keep running at a constant speed.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若未接收到控制器回复的模式切换完成指令,则下发采集指令至控制器,若仍未接收到控制器回复的模式切换完成指令,则再次下发采集指令至控制器,若第三次仍未接收到控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the mode switching completion instruction replied by the controller is not received, the acquisition instruction is sent to the controller; If the switch completes the command, the acquisition command will be sent to the controller again. If the mode switch complete command replied by the controller is not received for the third time, the program will end and an alarm email will be sent to the designated mailbox.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若未采集到驱动器上传的数据包,则下发查询指令至驱动器,若仍未采集到驱动器上传的数据包,则再次下发查询指令至驱动器,若第三次仍未采集到驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the data packet uploaded by the driver is not collected, send a query instruction to the driver; if the data packet uploaded by the driver has not been collected, download the data packet again Send a query command to the drive, if the data package uploaded by the drive is not collected for the third time, the program will end, and an alarm email will be sent to the designated mailbox.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:对所采集到的控制器上传的运行状态数据和驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: analyzing the collected operating status data uploaded by the controller and data packets uploaded by the driver; if the analysis is successful, the data collection is successful; If it fails, the data collection fails.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:若读取失败,则基于查询指令读取采集装置所获取的电机的状态参数,若仍读取失败,则再次基于查询指令读取采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the reading fails, the state parameters of the motor acquired by the acquisition device are read based on the query instruction, and if the reading still fails, based on the query instruction again Read the state parameters of the motor acquired by the acquisition device. If the reading fails for the third time, the program will end and an alarm email will be sent to the designated mailbox.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1.一种伺服电机耐久测试的过程监控方法,其特征在于,所述方法包括:1. a process monitoring method of servo motor endurance test, is characterized in that, described method comprises: 获取上一次采集过程的结束时刻;所述上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;Acquiring the end time of the last collection process; the collection data of the last collection process includes the state parameters of the motor, the running state data of the controller and the data packets of the driver; 判断当前时刻与所述结束时刻之间的时长是否等于预设间隔采集时长,若等于所述预设间隔采集时长,则下发采集指令至控制器;所述采集指令用于指示所述控制器由耐久测试模式切换至数据采集运行模式;Determine whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, issue a collection instruction to the controller; the collection instruction is used to instruct the controller Switch from endurance test mode to data acquisition operation mode; 若接收到所述控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至所述控制器和驱动器;所述开始采集指令用于指示所述采集装置获取电机的状态参数,所述查询指令用于指示所述控制器上传运行状态数据和指示所述驱动器上传数据包;If receiving the mode switching completion instruction replied by the controller, send a start collection instruction to the collection device, and send a query instruction to the controller and the driver; the start collection instruction is used to instruct the collection device to obtain the motor's a state parameter, where the query instruction is used to instruct the controller to upload running state data and instruct the driver to upload a data packet; 若接收到所述采集装置发送的确认接收指令且采集到所述控制器上传的运行状态数据和所述驱动器上传的数据包,则实时获取采集到所述控制器上传的运行状态数据和所述驱动器上传的数据包对应的采集时长,并判断所述采集时长是否等于预设采集时长,若等于所述预设采集时长,则发送结束采集指令至所述采集装置、所述控制器和所述驱动器;If the confirmation reception instruction sent by the collection device is received and the operation status data uploaded by the controller and the data packet uploaded by the driver are collected, the operation status data uploaded by the controller and the data package uploaded by the controller are acquired in real time. The collection duration corresponding to the data packets uploaded by the driver, and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an instruction to end the collection to the collection device, the controller and the driver; 判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至所述控制器,基于所述查询指令读取所述采集装置所获取的电机的状态参数;若接收到所述控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的所述控制器上传的运行状态数据和所述驱动器上传的数据包进行保存;所述测试模式切换指令用于指示所述控制器由所述数据采集运行模式切换至所述耐久测试模式。Determine whether the data collection is successful, if the data collection is successful, send a test mode switching instruction to the controller, and read the state parameters of the motor acquired by the collection device based on the query instruction; The test mode switching completion command and the reading is successful, the read state parameters of the motor, as well as the collected operating state data uploaded by the controller and the data packets uploaded by the driver are saved; the test The mode switching instruction is used to instruct the controller to switch from the data acquisition operation mode to the endurance test mode. 2.根据权利要求1所述的方法,其特征在于,所述采集指令用于指示所述控制器完成当前耐久测试循环,在完成所述当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。2. The method according to claim 1, wherein the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after completing the current endurance test cycle, the control motor is accelerated to a forward maximum speed , and keep running at a constant speed. 3.根据权利要求1所述的方法,其特征在于,若未接收到所述控制器回复的模式切换完成指令,则下发所述采集指令至所述控制器,若仍未接收到所述控制器回复的模式切换完成指令,则再次下发所述采集指令至所述控制器,若第三次仍未接收到所述控制器回复的模式切换完成指令,则结束程序,并发送报警邮件至指定邮箱。3. The method according to claim 1, wherein, if the mode switching completion command replied by the controller is not received, the collection command is issued to the controller, and if the command is not received yet If the mode switching completion command replied by the controller, the collection command will be sent to the controller again. If the mode switching completion command replied by the controller is not received for the third time, the program will end and an alarm email will be sent. to the specified mailbox. 4.根据权利要求1所述的方法,其特征在于,若未采集到所述驱动器上传的数据包,则下发所述查询指令至所述驱动器,若仍未采集到所述驱动器上传的数据包,则再次下发所述查询指令至所述驱动器,若第三次仍未采集到所述驱动器上传的数据包,则结束程序,并发送报警邮件至指定邮箱。4. The method according to claim 1, wherein if the data packet uploaded by the driver is not collected, the query instruction is issued to the driver, and if the data uploaded by the driver has not been collected If the data packet uploaded by the driver is not collected for the third time, the program ends and an alarm email is sent to the designated mailbox. 5.根据权利要求1所述的方法,其特征在于,所述判断数据是否采集成功,包括:5. The method according to claim 1, wherein the judging whether the data is collected successfully comprises: 对所采集到的所述控制器上传的运行状态数据和所述驱动器上传的数据包进行解析,若解析成功,则数据采集成功,若解析失败,则数据采集失败。Analyze the collected operating status data uploaded by the controller and data packets uploaded by the driver. If the analysis is successful, the data collection is successful, and if the analysis fails, the data collection fails. 6.根据权利要求1所述的方法,其特征在于,若读取失败,则基于所述查询指令读取所述采集装置所获取的电机的状态参数,若仍读取失败,则再次基于所述查询指令读取所述采集装置所获取的电机的状态参数,若第三次仍读取失败,则结束程序,并发送报警邮件至指定邮箱。6 . The method according to claim 1 , wherein, if the reading fails, the state parameters of the motor obtained by the acquisition device are read based on the query instruction, and if the reading still fails, the state parameters of the motor obtained by the acquisition device are read again based on the query instruction. 7 . The query instruction reads the state parameters of the motor acquired by the acquisition device, and if the reading fails for the third time, the program ends, and an alarm email is sent to the designated mailbox. 7.一种伺服电机耐久测试的过程监控装置,其特征在于,所述装置包括:7. A process monitoring device for a servo motor endurance test, wherein the device comprises: 获取模块,用于获取上一次采集过程的结束时刻;所述上一次采集过程的采集数据包括电机的状态参数、控制器的运行状态数据和驱动器的数据包;an acquisition module, used for acquiring the end time of the last acquisition process; the acquisition data of the previous acquisition process includes the state parameters of the motor, the running state data of the controller and the data packet of the driver; 第一判断模块,用于判断当前时刻与所述结束时刻之间的时长是否等于预设间隔采集时长,若等于所述预设间隔采集时长,则下发采集指令至控制器;所述采集指令用于指示所述控制器由耐久测试模式切换至数据采集运行模式;a first judgment module, configured to judge whether the duration between the current moment and the end moment is equal to the preset interval collection duration, and if it is equal to the preset interval collection duration, then issue a collection instruction to the controller; the collection instruction for instructing the controller to switch from the endurance test mode to the data acquisition operation mode; 发送模块,用于若接收到所述控制器回复的模式切换完成指令,则发送开始采集指令至采集装置、以及发送查询指令至所述控制器和驱动器;所述开始采集指令用于指示所述采集装置获取电机的状态参数,所述查询指令用于指示所述控制器上传运行状态数据和指示所述驱动器上传数据包;a sending module, configured to send a start collection instruction to the collection device and send a query instruction to the controller and the driver if the mode switching completion instruction replied by the controller is received; the start collection instruction is used to instruct the The acquisition device acquires the state parameters of the motor, and the query instruction is used to instruct the controller to upload running state data and instruct the driver to upload data packets; 采集模块,用于若接收到所述采集装置发送的确认接收指令且采集到所述控制器上传的运行状态数据和所述驱动器上传的数据包,则实时获取采集到所述控制器上传的运行状态数据和所述驱动器上传的数据包对应的采集时长,并判断所述采集时长是否等于预设采集时长,若等于所述预设采集时长,则发送结束采集指令至所述采集装置、所述控制器和所述驱动器;The acquisition module is configured to acquire, in real time, the running state data uploaded by the controller and the data packets uploaded by the driver after receiving the confirmation reception instruction sent by the acquisition device and acquiring the data packets uploaded by the controller. Status data and the collection duration corresponding to the data packets uploaded by the driver, and determine whether the collection duration is equal to the preset collection duration, and if it is equal to the preset collection duration, send an instruction to end the collection to the collection device, the a controller and the driver; 第二判断模块,用于判断数据是否采集成功,若数据采集成功,则发送测试模式切换指令至所述控制器,基于所述查询指令读取所述采集装置所获取的电机的状态参数;若接收到所述控制器发送的测试模式切换完成指令且读取成功,则对读取到的电机的状态参数、以及对采集到的所述控制器上传的运行状态数据和所述驱动器上传的数据包进行保存;所述测试模式切换指令用于指示所述控制器由所述数据采集运行模式切换至所述耐久测试模式。The second judgment module is used for judging whether the data collection is successful, and if the data collection is successful, sending a test mode switching instruction to the controller, and reading the state parameters of the motor obtained by the collection device based on the query instruction; After receiving the test mode switching completion instruction sent by the controller and the reading is successful, the read state parameters of the motor, as well as the collected operating status data uploaded by the controller and data uploaded by the driver The package is saved; the test mode switching instruction is used to instruct the controller to switch from the data acquisition operation mode to the endurance test mode. 8.根据权利要求7所述的装置,其特征在于,所述采集指令用于指示所述控制器完成当前耐久测试循环,在完成所述当前耐久测试循环后,控制电机加速至正向最大速度,并保持匀速运行。8. The device according to claim 7, wherein the acquisition instruction is used to instruct the controller to complete the current endurance test cycle, and after completing the current endurance test cycle, control the motor to accelerate to a forward maximum speed , and keep running at a constant speed. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至6中任一项所述的方法的步骤。9. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 6 when the processor executes the computer program. step. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至6中任一项所述的方法的步骤。10. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
CN202210434206.XA 2022-04-24 2022-04-24 Servo motor endurance test process monitoring method and device and computer equipment Active CN114545848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210434206.XA CN114545848B (en) 2022-04-24 2022-04-24 Servo motor endurance test process monitoring method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210434206.XA CN114545848B (en) 2022-04-24 2022-04-24 Servo motor endurance test process monitoring method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN114545848A CN114545848A (en) 2022-05-27
CN114545848B true CN114545848B (en) 2022-08-16

Family

ID=81667052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210434206.XA Active CN114545848B (en) 2022-04-24 2022-04-24 Servo motor endurance test process monitoring method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN114545848B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150307B (en) * 2022-06-30 2023-12-22 珠海天融信网络安全技术有限公司 Method and device for collecting frequency safety detection, storage medium and electronic equipment
CN116455984B (en) * 2023-06-19 2023-08-29 杭州华塑科技股份有限公司 Data transmission method, device, storage medium and electronic equipment
CN117310495B (en) * 2023-11-28 2024-02-20 深圳市卓讯达科技发展有限公司 Durability comprehensive detection system of new energy motor

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072298A (en) * 2006-12-13 2007-11-14 北京交通大学 Multifunctional sequence image information automatic collecting device and method
CN101169635A (en) * 2007-11-28 2008-04-30 蔡远文 Multichannel data acquisition system and method
CN201464209U (en) * 2009-06-22 2010-05-12 东莞市横沥海德精机制造厂 test device for detecting durability life of key switch
CN103344446A (en) * 2013-06-18 2013-10-09 吉林大学 Differential type power coupling device performance test bedstand
CN103698125A (en) * 2013-12-19 2014-04-02 孝感市宝龙电子有限公司 High-temperature and high-speed torsion durability testing machine for belt pulley
CN104239646A (en) * 2014-09-23 2014-12-24 工业和信息化部电子第五研究所 Method and system for verifying forecast simulation model of vibration fatigue life of micro assembly component
CN105119640A (en) * 2015-08-03 2015-12-02 上海华为技术有限公司 Antenna mode switching method and device
CN105717283A (en) * 2016-01-28 2016-06-29 山东大学 Cement mortar drying shrinkage testing frame and testing method
CN109238741A (en) * 2018-09-03 2019-01-18 昆山睿力得软件技术有限公司 A kind of automation durability test equipment
CN109961787A (en) * 2019-02-20 2019-07-02 北京小米移动软件有限公司 Determine the method and device of acquisition end time
CN110035277A (en) * 2018-12-20 2019-07-19 云南师范大学 A kind of test macro and test method of infrared imaging auto-focusing algorithm
CN110109853A (en) * 2019-04-04 2019-08-09 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Data acquisition and processing (DAP) device and method
CN110461074A (en) * 2019-07-17 2019-11-15 深圳依炮尔科技有限公司 A kind of emergency light detects multi-mode switching system, method and emergency light automatically
CN110907823A (en) * 2019-11-04 2020-03-24 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Servo motor test data real-time acquisition system and method
CN211318636U (en) * 2019-12-24 2020-08-21 上海汇众汽车制造有限公司 Integrated automatic test equipment suitable for environmental endurance test
CN212130761U (en) * 2020-03-26 2020-12-11 合肥恒信汽车发动机部件制造有限公司 Electronic oil pump comprehensive performance test bench
CN112067276A (en) * 2020-09-21 2020-12-11 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) A test device and method for multi-axial pneumatic switch performance and durability
CN112230271A (en) * 2019-07-15 2021-01-15 中国石油天然气集团有限公司 Communication method, device and system based on wired acquisition equipment
CN212748288U (en) * 2020-09-21 2021-03-19 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Testing arrangement towards multiaxis to pneumatic switch performance and durability
WO2021053889A1 (en) * 2019-09-18 2021-03-25 パナソニックIpマネジメント株式会社 Determination system, determination method, and program
CN113325828A (en) * 2021-06-09 2021-08-31 中国第一汽车股份有限公司 Parking lock controller test method, device and system and storage medium
CN216144514U (en) * 2021-08-16 2022-03-29 三江学院 Gas proportional valve endurance test device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070068274A1 (en) * 2005-03-01 2007-03-29 Vascular Architects, Inc., A Delaware Corporation Peripheral artery medical device durability tester and method
US10185311B2 (en) * 2015-10-08 2019-01-22 King Fahd University Of Petroleum And Minerals Methods and apparatus to design collaborative automation systems based on data distribution service middleware
CN111638060B (en) * 2020-04-24 2022-05-24 北京智行者科技有限公司 Road test method for verifying reliability and durability of automatic driving automobile

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072298A (en) * 2006-12-13 2007-11-14 北京交通大学 Multifunctional sequence image information automatic collecting device and method
CN101169635A (en) * 2007-11-28 2008-04-30 蔡远文 Multichannel data acquisition system and method
CN201464209U (en) * 2009-06-22 2010-05-12 东莞市横沥海德精机制造厂 test device for detecting durability life of key switch
CN103344446A (en) * 2013-06-18 2013-10-09 吉林大学 Differential type power coupling device performance test bedstand
CN103698125A (en) * 2013-12-19 2014-04-02 孝感市宝龙电子有限公司 High-temperature and high-speed torsion durability testing machine for belt pulley
CN104239646A (en) * 2014-09-23 2014-12-24 工业和信息化部电子第五研究所 Method and system for verifying forecast simulation model of vibration fatigue life of micro assembly component
CN105119640A (en) * 2015-08-03 2015-12-02 上海华为技术有限公司 Antenna mode switching method and device
CN105717283A (en) * 2016-01-28 2016-06-29 山东大学 Cement mortar drying shrinkage testing frame and testing method
CN109238741A (en) * 2018-09-03 2019-01-18 昆山睿力得软件技术有限公司 A kind of automation durability test equipment
CN110035277A (en) * 2018-12-20 2019-07-19 云南师范大学 A kind of test macro and test method of infrared imaging auto-focusing algorithm
CN109961787A (en) * 2019-02-20 2019-07-02 北京小米移动软件有限公司 Determine the method and device of acquisition end time
CN110109853A (en) * 2019-04-04 2019-08-09 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Data acquisition and processing (DAP) device and method
CN112230271A (en) * 2019-07-15 2021-01-15 中国石油天然气集团有限公司 Communication method, device and system based on wired acquisition equipment
CN110461074A (en) * 2019-07-17 2019-11-15 深圳依炮尔科技有限公司 A kind of emergency light detects multi-mode switching system, method and emergency light automatically
WO2021053889A1 (en) * 2019-09-18 2021-03-25 パナソニックIpマネジメント株式会社 Determination system, determination method, and program
CN110907823A (en) * 2019-11-04 2020-03-24 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Servo motor test data real-time acquisition system and method
CN211318636U (en) * 2019-12-24 2020-08-21 上海汇众汽车制造有限公司 Integrated automatic test equipment suitable for environmental endurance test
CN212130761U (en) * 2020-03-26 2020-12-11 合肥恒信汽车发动机部件制造有限公司 Electronic oil pump comprehensive performance test bench
CN112067276A (en) * 2020-09-21 2020-12-11 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) A test device and method for multi-axial pneumatic switch performance and durability
CN212748288U (en) * 2020-09-21 2021-03-19 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Testing arrangement towards multiaxis to pneumatic switch performance and durability
CN113325828A (en) * 2021-06-09 2021-08-31 中国第一汽车股份有限公司 Parking lock controller test method, device and system and storage medium
CN216144514U (en) * 2021-08-16 2022-03-29 三江学院 Gas proportional valve endurance test device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IBooster总成三工位耐久测试系统设计;苏锦强;《中国测试》;20220323;第1-6页 *
Modular Test Bed for Magnetic Brakes Characterization And Durability Testing;Tommaso Addabbo;《2018 IEEE International Systems Engineering Symposium (ISSE)》;20181231;第1-4页 *

Also Published As

Publication number Publication date
CN114545848A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN114545848B (en) Servo motor endurance test process monitoring method and device and computer equipment
JP5348489B2 (en) controller
WO2012111653A1 (en) Data transfer device
CN104753415B (en) Start-up and shut-down control method, system and the stepper motor of stepper motor
CN107247650A (en) A kind of servo drive system long-range monitoring method
CN111866020B (en) Communication card and communication method
CN115514590B (en) Electric vehicle component, electric vehicle data collection system and electric vehicle data collection method
CN115302506B (en) Joint module testing method, device, equipment and storage medium
CN114328003B (en) Method for realizing data reverse order processing through CRC hardware module
CN113285821B (en) Production system, communication method, and program
CN113162478B (en) Motor starting parameter testing method and system, terminal equipment and storage medium
JP6729967B2 (en) Facility management device
CN113910268B (en) Method, device, equipment and medium for detecting loss of parts of industrial robot
JPH11326470A (en) Motor testing device and recording medium
CN110871458A (en) Test method, device, equipment and medium for robot transmission mechanism
US20240319887A1 (en) Control device, system program, and method
CN118171414B (en) Virtual debugging method, device, equipment, medium and product of battery production equipment
CN116827820A (en) Response time testing method and device, electronic equipment and storage medium
CN114328002B (en) Data sampling method in encoder, single chip microcomputer and storage medium
WO2024124446A1 (en) Measurement method, apparatus, system and electronic device for a motion control system
CN221225380U (en) Permanent magnet synchronous motor monitoring device for vehicle
CN119355353A (en) A DMA-based AC current sampling method and its application
JP5490267B2 (en) Data transfer device
CN114328321A (en) Data sampling and communication method in encoder, single chip microcomputer and storage medium
CN116560314A (en) Station time sequence processing method, operation control device, numerical control system and storage medium

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