Processing time analysis system, processing time analysis method and program

The processing time analysis system measures and displays task processing times using a histogram with color-coded thresholds, enabling users to identify and address tasks with prolonged processing times in servo amplifier systems.

JP7595256B2Active Publication Date: 2024-12-06PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020111410
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-12-06
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

Existing processing time analysis systems for servo amplifiers in industrial machinery struggle to determine the upper limit of processing time and identify which tasks are heavy, as processing times vary based on task combinations and environmental factors.

Method used

A processing time analysis system that includes a measurement unit to measure task processing times, an output unit to aggregate and display these times as a histogram, and a display unit to color-code processing times based on predefined thresholds, allowing users to identify tasks with longer processing times.

Benefits of technology

Enables users to accurately determine which tasks are causing longer processing times, helping to identify the cause of delays and optimize system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007595256000001
    Figure 0007595256000001
  • Figure 0007595256000002
    Figure 0007595256000002
  • Figure 0007595256000003
    Figure 0007595256000003
Patent Text Reader

Abstract

To provide a processing time analysis system, a processing time analysis method, and a program which allow confirmation of contents of a processed task.SOLUTION: A processing time analysis system according to the present invention has a measuring unit 22 for measuring processing time required for each of a plurality of tasks executed by a motor control apparatus 20, an output unit 23 for outputting time information indicating the processing time required for each of the plurality of tasks and measured by the measuring unit 22, a processing unit 11 for collecting the processing time indicated in a plurality of time information output by the output unit 23 to generate a histogram indicating the plurality of collected processing time, and a display unit 40 for displaying the generated histogram.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a processing time analysis system, a processing time analysis method, and a program using the processing time analysis method. [Background technology]

[0002] Conventionally, there have been proposed techniques for controlling the positioning of controlled devices such as industrial machines. For example, Patent Document 1 discloses a motion control device that includes a timer that measures the task switching time and a monitor device that displays the time of a traced task. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2001-273171 A Summary of the Invention [Problem to be solved by the invention]

[0004] For example, a servo amplifier as a controlled device is required to have high-precision tracking capability, so real-time task processing is important. In addition, a servo amplifier can combine various tasks by changing parameters for controlling the drive of a servo motor, for example. However, when executing a control process in which multiple tasks are combined, the servo amplifier executes a predetermined operation, but the processing time corresponding to this operation also changes depending on the combination of tasks, so it is difficult to determine the upper limit of the processing time in the servo amplifier with the above-mentioned conventional processing time analysis system as a motion control device. In addition, depending on the environment of the servo amplifier incorporated in an industrial machine, etc., the processing time may vary for each task. However, it is difficult to identify which task is heavy among multiple task processes.

[0005] Therefore, an object of the present disclosure is to provide a processing time analysis system, a processing time analysis method, and a program that can check the contents of a processed task. [Means for solving the problem]

[0006] In order to achieve the above object, a processing time analysis system according to one aspect of the present disclosure includes a measurement unit that measures a processing time for each of a plurality of tasks executed by a motor control device, an output unit that outputs time information indicating the processing time for each of the plurality of tasks measured by the measurement unit, a processing unit that aggregates the processing times indicated in the plurality of pieces of time information output by the output unit and generates a histogram of the aggregated plurality of processing times, and a display unit that displays the generated histogram. the processing unit, if a predetermined processing time among the processing times indicated in the collected pieces of time information is less than a first value, determines a first color as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the first value and less than a second value greater than the first value, determines a second color different from the first color as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the second value, determines a third color different from the first color and the second color as a result of the collected pieces of time information; meter the processing time using the determined color; and the display unit displays the metered processing time. do.

[0007] A processing time analysis method according to one aspect of the present disclosure includes measuring a processing time for each of a plurality of tasks executed by a motor control device, outputting time information indicating the measured processing time for each of the plurality of tasks, aggregating the processing times indicating the outputted plurality of pieces of time information, generating a histogram of the aggregated plurality of processing times, and displaying the generated histogram. if a predetermined processing time among the processing times indicated in the collected pieces of time information is less than a first value, a first color is determined as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the first value and less than a second value greater than the first value, a second color different from the first color is determined as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the second value, a third color different from the first color and the second color is determined as a result of the collected pieces of time information; the processing time is metered using the determined color; and the metered processing time is displayed. This includes:

[0008] Moreover, a program according to an aspect of the present disclosure is a program for causing a computer to execute a processing time analysis method.

[0009] It should be noted that these general or specific aspects may be realized as any combination of systems, methods, or integrated circuits. Effect of the Invention

[0010] In the processing time analysis system and the like disclosed herein, the contents of the processed task can be confirmed. [Brief description of the drawings]

[0011] [Figure 1]FIG. 1 is a block diagram showing a processing time analysis system according to an embodiment. [Diagram 2] FIG. 2 is a sequence diagram showing the processing of the processing time analysis system in the embodiment. [Diagram 3] FIG. 3 is a diagram showing the processing times measured for each of a plurality of tasks constituting one operation cycle of the processing time analysis system in the embodiment. [Figure 4] FIG. 4 is a diagram showing a display form in which all of a plurality of control periods that are repeatedly executed are plotted as a histogram. [Diagram 5] FIG. 5 shows another display format in which all of a plurality of control periods that are repeatedly executed are plotted as a histogram, and also shows the processing times of a plurality of tasks in a given control period that are displayed when a plurality of extreme values ​​are selected from the histogram. [Figure 6] FIG. 6 is a diagram showing, in a different display format, the processing time for each of a plurality of tasks included in a predetermined control cycle among a plurality of control cycles that are repeatedly executed. [Figure 7] FIG. 7 is a diagram showing another display format in which all of a plurality of control periods that are repeatedly executed are shown as histograms for each task. [Figure 8] FIG. 8 is a diagram showing a display form in which a histogram is formed for each task in all of a plurality of control periods that are repeatedly executed. [Figure 9] FIG. 9 is a diagram showing a case in which a pattern combining the maximum processing times of a plurality of tasks in all of a plurality of control periods that are repeatedly executed is metered, and the color of the status is changed according to the length of the metered processing time. [Figure 10] FIG. 10 is a flowchart showing the processing of the information processing device of the processing time analysis system in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] A processing time analysis system according to one embodiment of the present disclosure includes a measurement unit that measures the processing time of each of a plurality of tasks executed by a motor control device, an output unit that outputs time information indicating the processing time of each of the plurality of tasks measured by the measurement unit, a processing unit that aggregates the processing times indicated in the plurality of pieces of time information output by the output unit and generates a histogram of the aggregated plurality of processing times, and a display unit that displays the generated histogram.

[0013] According to this, the processing unit can tally up the processing times of each of the multiple tasks and generate a histogram based on the totaled processing times. The display unit displays the generated histogram, allowing the user to recognize the processing times of each of the multiple tasks from the histogram.

[0014] Therefore, in this processing time analysis system, the contents of the task that has been processed can be confirmed.

[0015] In particular, when there is a task in which the processing time of a specific task among multiple tasks is longer than the processing time of the other tasks, the user can check the contents of the task and determine, for example, whether it is dependent on the embedded environment or on the operating parameters of the task.

[0016] In addition, the processing time analysis method may include measuring the processing time of each of a plurality of tasks executed by the motor control device, outputting time information indicating the measured processing time of each of the plurality of tasks, aggregating the processing times indicating the outputted plurality of pieces of time information, generating a histogram of the aggregated plurality of processing times, and displaying the generated histogram.

[0017] This processing time analysis method also provides the same effects as those described above.

[0018] The program may be a program for causing a computer to execute a processing time analysis method.

[0019] This program also provides the same effects as those described above.

[0020] In the processing time analysis system, the display unit may display the processing time of each of the plurality of tasks corresponding to the frequency of the histogram.

[0021] This allows the user to recognize the processing time for each of a plurality of tasks from the histogram.

[0022] In addition, in the processing time analysis system, the measurement unit may measure the processing time of each of the plurality of tasks for each control period including the plurality of tasks, and the output unit may output the plurality of pieces of time information measured for each of the plurality of control periods.

[0023] This makes it possible to display the processing time of each of a plurality of tasks for each of a plurality of control periods. The display unit can, for example, arrange only the tasks on the display unit in units of control periods, or display the tasks together with a histogram. This allows the user to compare a plurality of control periods and view them together with a histogram.

[0024] In the processing time analysis system, the display unit may display the contents of a task.

[0025] According to this, the display unit can display the contents of the task that the user wants to view. The display unit can also display the contents of the task for each of the multiple control periods. The display unit can also display the task with the highest impact among the multiple tasks. This allows the user to understand the contents of the task, and therefore to find the cause of the long processing time.

[0026] In addition, in the processing time analysis system, when a histogram having a plurality of extreme values ​​is present among the generated plurality of histograms, the display unit may preferentially display the histogram having the plurality of extreme values.

[0027] According to this, a histogram having multiple extreme values ​​may indicate that a large processing load is being applied to the motor control device. The display unit can preferentially display the processing times of multiple tasks for histograms that are likely to indicate that a large processing load is being applied to the motor control device. This allows the user to easily find the cause of the task with the large processing load.

[0028] Furthermore, in the processing time analysis system, the processing unit may, if a predetermined processing time among the processing times indicated in the aggregated plurality of pieces of time information is less than a first value, determine a first color as a result of the aggregated plurality of pieces of time information, if a predetermined processing time among the processing times indicated in the aggregated plurality of pieces of time information is equal to or greater than the first value and less than a second value greater than the first value, determine a second color different from the first color as a result of the aggregated plurality of pieces of time information, if a predetermined processing time among the processing times indicated in the aggregated plurality of pieces of time information is equal to or greater than the second value, determine a third color different from the first and second colors as a result of the aggregated plurality of pieces of time information, meter the processing time using the determined color, and the display unit may display the metered processing time.

[0029] According to this, since the processing time can be metered, the metered status can be emphasized by coloring. In addition, the display unit can also display a margin, which is a ratio of the remaining processing time to a preset second value.

[0030] Hereinafter, the embodiments of the present disclosure will be described with reference to the drawings. Note that each of the embodiments described below shows a specific example of the present disclosure. Therefore, the numerical values, shapes, materials, components, the arrangement and connection of the components, steps, the order of steps, and the like shown in the following embodiments are merely examples and are not intended to limit the present disclosure. Therefore, among the components in the following embodiments, components that are not described in the independent claims will be described as optional components.

[0031] Each figure is a schematic diagram and is not necessarily precisely illustrated. Therefore, for example, the scales and the like do not necessarily match in each figure. Furthermore, in each figure, the same reference numerals are given to substantially the same configurations, and duplicated explanations are omitted or simplified.

[0032] A processing time analysis system, a processing time analysis method, and a program according to the following embodiments will be described.

[0033] (Embodiment) <Configuration: Processing time analysis system> First, the configuration of the processing time analysis system according to the present embodiment will be described.

[0034] FIG. 1 is a block diagram showing a processing time analysis system according to an embodiment.

[0035] As shown in FIG. 1, the processing time analysis system is a processing time analysis system for a motor amplifier mounted in a control system 1 having a function of controlling the operations of a plurality of industrial machines installed on a production line.

[0036] The control system 1 has an information processing device 10, a motor control device 20, a controller 30, and a display unit 40. The control system 1 may further include a servo motor 50 as a component. Although one motor control device 20 and one servo motor 50 are illustrated in FIG. 1, the control system 1 may be provided with a plurality of motor control devices 20 and a plurality of servo motors 50.

[0037] The information processing device 10 acquires, via the motor control device 20 or directly, a feedback signal indicating motion detection values ​​such as motion position, motion speed, torque, gain, and current fed back from a detector such as an encoder built into a servo motor 50 included in an industrial machine. The information processing device 10 generates an amplifier setting value (parameter for controlling the servo motor 50) for adjusting motion detection values ​​such as the motion position, motion speed, torque, and current of the shaft of the servo motor 50 based on the acquired feedback signal. The information processing device 10 is connected to the motor control device 20 so as to be able to communicate by wire or wirelessly, and outputs the amplifier setting value for adjusting the motion detection value to the motor control device 20. In this embodiment, the information processing device 10 is connected to the motor control device 20 so as to be able to communicate by wire, for example, via a USB cable or the like.

[0038] Before describing the detailed configuration of the information processing device 10, the motor control device 20 will be described.

[0039] The motor control device 20 is a servo amplifier that controls the driving of the servo motor 50 based on an amplifier setting value set by the information processing device 10 and a driving command transmitted from the controller 30. The motor control device 20 has a drive control unit 21, a measurement unit 22, and an output unit 23.

[0040] The drive control unit 21 controls the drive of the servo motor 50 in real time by outputting a predetermined drive current to the servo motor 50 so that the actual operating position of the servo motor 50 or the actual operating speed of the servo motor 50 can follow the drive command. For example, the drive control unit 21 receives an amplifier setting value transmitted from the information processing device 10, and after receiving the amplifier setting value, receives a drive command for driving the servo motor 50 transmitted from the controller 30. The drive control unit 21 also receives an operation detection value transmitted from a detector of the servo motor 50.

[0041] The drive control unit 21 appropriately outputs a drive current for the servo motor 50 based on the amplifier setting value, drive command, and operation detection value, thereby outputting a drive current so that the operating position, operating speed, torque, etc. of the servo motor 50 set by the amplifier setting value match the operation detection value. In other words, the drive control unit 21 outputs a drive current so as to eliminate the delay time occurring between the servo motor 50 and the motor control device 20.

[0042] When controlling the servo motor 50, the drive control unit 21 outputs a measurement instruction to the measurement unit 22 to cause the measurement unit 22 to measure the processing time of the drive control unit 21. The drive control unit 21 causes the servo motor 50 to repeatedly execute a predetermined operation multiple times based on the amplifier setting value, drive command, etc., so causes the measurement unit 22 to measure the processing time of a task for controlling the servo motor 50 for each control period of the predetermined operation. In addition, since there are multiple predetermined operations, the drive control unit 21 causes the measurement unit 22 to measure the processing time of the task for each of the multiple operations.

[0043] The measurement unit 22 measures the processing time of each of the tasks for each control period including the tasks when the motor control device 20 executes the tasks based on the amplifier setting value, the drive command, and the motion detection value acquired by the drive control unit 21 of the motor control device 20. That is, while the drive control unit 21 controls the servo motor 50, the measurement unit 22 measures the processing time of each of the tasks executed based on the amplifier setting value, the drive command, and the motion detection value for each control period. In this embodiment, the motor control device 20 periodically controls the servo motor 50 so that one operation is repeated multiple times, so the measurement unit 22 measures the processing time of each of the tasks executed for each control period (one period) of the servo motor 50. Since multiple tasks are combined in one control period, the servo motor 50 executes a predetermined operation for each control period. The measurement unit 22 outputs time information indicating the measured processing time to the output unit 23. The measurement unit 22 is included in the components of the processing time analysis system.

[0044] The output unit 23 is an interface that outputs time information of each of the multiple tasks measured by the measurement unit 22. The output unit 23 outputs multiple pieces of time information for each control period of the motor control device 20 including multiple tasks. That is, the output unit 23 outputs the time information of each of the multiple tasks from the measurement unit 22 to the information processing device 10 for each control period. Specifically, the output unit 23 is connected to the information processing device 10 so as to be able to communicate with it via wire or wirelessly, and outputs the time information of each of the multiple tasks collectively for each control period. The output unit 23 is included as a component of the processing time analysis system.

[0045] Here, the explanation of the information processing device 10 will be returned to.

[0046] The information processing device 10 is a terminal device such as a personal computer, and has a processing unit 11 such as a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read Only Memory), an input unit 12 that accepts input, and a memory unit 13 that records a control program, and performs each control according to information processing.

[0047] The processing unit 11 starts a control program such as a dedicated application stored in the storage unit 13, thereby tallying up the processing times indicating the multiple pieces of time information output by the output unit 23, and generates a histogram of the multiple totaled processing times. That is, the processing unit 11 tallies up the processing times indicated by the time information of the multiple tasks acquired in one control cycle. Specifically, the processing unit 11 stores the average processing time of the multiple tasks included in one control cycle, and the processing time of each of the multiple tasks included in one control cycle, in the storage unit 13 in one control cycle, and displays the generated histogram, etc. on the display unit 40. One histogram corresponds to one operation repeatedly performed by the servo motor 50. In this embodiment, one histogram is obtained by performing the same 1000 operations by the servo motor 50. The processing unit 11 is included in the components of the processing time analysis system.

[0048] Moreover, if a predetermined processing time among the processing times indicated in the collected multiple pieces of time information is less than a first value, the processing unit 11 determines a first color as a result of the collected multiple pieces of time information. If a predetermined processing time among the processing times indicated in the collected multiple pieces of time information is equal to or greater than a first value and less than a second value greater than the first value, the processing unit 11 determines a second color different from the first color as a result of the collected multiple pieces of time information. If a predetermined processing time among the processing times indicated in the collected multiple pieces of time information is equal to or greater than a second value, the processing unit 11 determines a third color different from the first color and the second color as a result of the collected multiple pieces of time information. The processing unit 11 meters the processing time using the determined color, and causes the display unit 40 to display the metered processing time. The predetermined processing time is an arbitrary time, a maximum time, an average value of the multiple pieces of time information collected in one control period, or the like, among the processing times indicated in the collected multiple pieces of time information.

[0049] Furthermore, when a histogram having multiple extreme values ​​is present in the multiple generated histograms, the display unit 40 preferentially displays the histogram having multiple extreme values. That is, the processing unit 11 extracts a histogram having multiple extreme values ​​from the multiple histograms, and causes the display unit 40 to display the extracted histogram having multiple extreme values.

[0050] Furthermore, when an arbitrary task is selected via the input unit 12, the processing unit 11 displays the contents of the selected task. When, for example, a predetermined control period is selected from among a plurality of control periods constituting a histogram displayed on the display unit 40, the processing unit 11 displays the contents of the plurality of tasks constituting the selected control period. Note that the processing unit 11 may preferentially display a task having a high impact among the plurality of tasks constituting the control period, or may display all of the plurality of tasks, and the display manner is not particularly limited. Here, a task having a high impact is a processing task having a high priority (a processing task having a high importance) in controlling the servo motor 50 by the motor control device 20.

[0051] The input unit 12 accepts input to the information processing device 10. For example, the input unit 12 is an operation unit that accepts operation input from a character information input device such as a keyboard, a pointing device such as a mouse and a touch panel, etc. The input unit 12 outputs the input instruction to the processing unit 11, so that the processing unit 11 displays, for example, the processing time of a task according to the instruction on the display unit 40.

[0052] The storage unit 13 is a storage medium such as a hard disk drive or a flash memory, and stores the generated histogram, the processing time of each of a plurality of tasks grouped together for each control cycle, a processing time analysis system, and a control program such as an application for executing the processing of the motor control device 20. The storage unit 13 is a medium that accumulates information on the control program, etc., by electrical, magnetic, optical, or mechanical action so that a computer or other device, machine, etc. can read the information on the recorded control program, etc.

[0053] The controller 30 outputs drive commands such as an operating position, an operating speed, a torque, a gain, and a current for driving the servo motor 50 to the motor control device 20. As a result, the motor control device 20 drives the servo motor 50 based on the amplifier setting value, the drive command, and the operation detection value. The controller 30 has a CPU, a memory, and the like, and is configured to be able to execute various arithmetic processes for controlling the motor control device 20. The controller 30 is connected to the motor control device 20 via a network so as to be able to communicate with the motor control device 20 in a wired or wireless manner. In this embodiment, the controller 30 is connected to the motor control device 20 in a wired or wireless manner via a network cable such as a LAN cable.

[0054] The display unit 40 displays the histogram generated by the processing unit 11, displays the histogram and time information indicating the processing time of each of a plurality of tasks corresponding to the frequency of the histogram, and displays metered time information. The display unit 40 also simply displays the time information measured for each of a plurality of control periods. The display unit 40 is a display device such as a liquid crystal display device or an organic EL device. The display unit 40 is included as a component of the processing time analysis system.

[0055] <Processing> First, the processing of the processing time analysis system will be described with reference to FIG.

[0056] FIG. 2 is a sequence diagram showing the processing of the processing time analysis system in the embodiment.

[0057] 2, in the control system 1, the information processing device 10 generates amplifier setting values ​​for adjusting motion detection values ​​such as current (S11). The information processing device 10 generates amplifier setting values ​​such as the motion position, motion speed, torque, gain, and current of the shaft of the servo motor 50, and outputs the generated amplifier setting values ​​to the motor control device 20 via a USB cable.

[0058] When the motor control device 20 acquires the amplifier setting value, it activates the acquired amplifier setting value as a setting value for driving the servo motor 50 (S21). As a result, the motor control device 20 drives the servo motor 50 with the activated setting value.

[0059] Furthermore, the controller 30 outputs drive commands such as an operating position, an operating speed, a torque, a gain, and a current to the motor control device 20 via the network cable (S31).

[0060] When the motor control device 20 acquires the drive command, the motor control device 20 executes a plurality of tasks for controlling the servo motor 50 according to the operation position, operation speed, torque, gain, current, etc. indicated in the amplifier setting values, based on the amplifier setting values, the drive command, and the operation detection values, and controls the servo motor 50. At this time, the information processing device 10 outputs a measurement instruction to the motor control device 20 to measure the processing time of the task for controlling the servo motor 50 (S12). Note that the information processing device 10 may output the measurement instruction in synchronization with the drive command of the controller 30. In this case, the information processing device 10 can be synchronized with the controller 30 by being communicably connected thereto.

[0061] When the motor control device 20 receives a measurement instruction from the information processing device 10, it measures the processing time of each of the multiple tasks (S22). How the motor control device 20 measures the processing time of each of the multiple tasks will be described with reference to Fig. 3. Fig. 3 is a diagram showing the processing time measured for each of the multiple tasks that make up one operation cycle of the processing time analysis system in the embodiment.

[0062] FIG. 3 shows an example in which a plurality of tasks are executed in one operation cycle. In this example, the drive control unit 21 of the motor control device 20 starts executing task B, and at the same time, the measurement unit 22 of the motor control device 20 starts measuring the processing time of task B. After executing task B, task A, which has a higher priority than task B, is interrupted, so the measurement unit 22 ends the measurement of the processing time of task B and temporarily stores time information indicating the measured processing time in a memory or the like. By measuring the processing time of task A, the measurement unit 22 also temporarily stores time information indicating the processing time of task A in a memory or the like. In this way, time information indicating the processing time of the remaining tasks is similarly stored in a memory or the like. In this way, the drive control unit 21 measures the processing time of each of the plurality of tasks in one operation cycle. That is, while controlling the servo motor 50, the drive control unit 21 measures the processing time of each of the plurality of tasks executed based on the amplifier setting value, the drive command, and the operation detection value. When the motor control device 20 has completed measuring the processing time of all of the plurality of tasks included in one operation cycle, it transmits all of the plurality of pieces of time information measured as non-interrupt tasks to the information processing device 10. In this way, all tasks are executed and all time information is transmitted, completing one operation cycle. The motor control device 20 repeats this operation cycle a predetermined number of times.

[0063] The information processing device 10 aggregates the processing times indicating the multiple pieces of time information output by the output unit 23, and generates a histogram indicating all the processing times of the multiple tasks in a control period repeatedly executed by the motor control device 20 based on the aggregated multiple processing times (S13). Specifically, the information processing device 10 generates a histogram that aggregates the average processing time of the multiple tasks included in one control period and the processing time of each of the multiple tasks included in one control period in multiple control periods in which the servo motor 50 repeatedly performs a predetermined operation.

[0064] The information processing device 10 generates histograms for the servo motors 50 in accordance with the operation of the different types of servo motors 50. The information processing device 10 outputs each of the generated histograms to the display unit 40 (S14). As a result, the display unit 40 displays each of the multiple histograms generated by the information processing device 10. In this manner, the control system 1 ends the process.

[0065] Next, an example of the display mode displayed by the display unit 40 will be shown. Note that, in the following, the description will be given using tasks A, B, C, D, and E, but the types and numbers of tasks included in the control cycle are not limited to these, and are merely examples.

[0066] First, the histogram generated by the processing unit 11 of the information processing device 10 will be described.

[0067] Fig. 4 is a diagram showing a display form in which all of a plurality of control cycles that are repeatedly executed are shown as a histogram. In Fig. 4, the vertical axis represents frequency, and the horizontal axis represents the proportion of the average processing time of a task for each control cycle in a preset time. Fig. 4 shows the processing time during normal operation as a normal distribution. Fig. 4 shows an example for 500 control cycles.

[0068] Fig. 5 shows another display form in which all of a plurality of control periods that are repeatedly executed are made into a histogram, and shows the processing times of a plurality of tasks in a given control period that are displayed when a plurality of extreme values ​​are selected from the histogram. The histogram in Fig. 5 has a plurality of extreme values, and in this example, the distribution is polarized. Comparing Fig. 4 and Fig. 5, it is clear that the extreme value in Fig. 4 is in the range 31%-32%, but in Fig. 5, the first extreme value in the range 31%-32% and the second extreme value in the range 40%-41% appear.

[0069] A user can select a desired bar graph constituting the histogram via the input unit 12. For example, when the bar graphs of Range 31%-32% and Range 40%-41% are selected, the display unit 40 displays the processing time of each of the tasks corresponding to Range 31%-32% and the processing time of each of the tasks corresponding to Range 40%-41%, as shown by a rectangular dashed line. Note that the processing time of each of the tasks shown by the rectangular dashed line may be, for example, any one frequency (one control period) of the frequency 93 of the bar graph of Range 31%-32%, or the average value of each of the tasks constituting the frequency 93 of the selected bar graph (the average value of task A, the average value of task B, etc.).

[0070] Since each frequency constituting the histogram is associated with a corresponding number of tasks, the display unit 40 can display the processing times of the tasks for each frequency of the histogram. For example, when a specific bar graph constituting the histogram is selected, the display unit 40 displays the processing times of the tasks in one control cycle unit constituting the bar graph together with the histogram.

[0071] Looking at the processing time of each of the multiple tasks indicated by the dashed rectangular lines, in the bar graph for the range 40%-41%, it can be seen that the processing time of task D is longer than that of the other tasks, and the processing load is increasing. When the user selects task D, the contents of task D are displayed on the display unit 40. The contents are processing contents such as communication processing. For example, if task D is related to communication processing, the user can recognize the causes of longer processing time, such as fluctuations in the communication environment, based on the communication processing.

[0072] Although one histogram is displayed in each of FIG. 4 and FIG. 5, a plurality of histograms may be displayed for comparison, and the display form is not particularly limited.

[0073] Next, another example of histogram display is shown in FIG.

[0074] FIG. 6 is a diagram showing, in another display form, the processing time of each of a plurality of tasks included in a predetermined control period among a plurality of control periods that are repeatedly executed. FIG. 6(a) is a histogram illustrating one frequency (one control period) among frequencies 93 in the range 31%-32%, and FIG. 6(b) is a histogram illustrating one frequency (one control period) among frequencies 172 in the range 40%-41%. In FIG. 6(a) and FIG. 6(b), the vertical axis indicates the type of task, and the horizontal axis indicates the ratio of the processing time of each of a plurality of tasks to a preset time. As shown in FIG. 6, the display unit 40 may display only the control period, and may not display the histograms as in FIG. 4 and FIG. 5. Also, the display unit 40 may simultaneously display FIG. 6(a) and FIG. 6(b) so that FIG. 6(a) and FIG. 6(b) can be compared.

[0075] Next, another example of histogram display is shown in FIG.

[0076] Fig. 7 is a diagram showing another display format in which all of a plurality of control cycles that are repeatedly executed are divided into a plurality of tasks in a histogram. For example, Fig. 7 shows the average processing time of all task A in a plurality of control cycles, and the same is true for tasks B, C, D, and E. Fig. 7 also does not need to display histograms like those in Figs. 4 and 5. Fig. 7 also shows that the processing time of task D is longer than the other tasks, and the processing load is increasing.

[0077] Next, another example of histogram display is shown in FIG.

[0078] Fig. 8 is a diagram showing a display form in which a plurality of tasks are each shown in a histogram for all of a plurality of control cycles that are repeatedly executed. In Fig. 8, the processing times for each of tasks A, B, C, D, and E are shown in a histogram form on display unit 40. In (a) to (e) of Fig. 8, the vertical axis indicates frequency, and the horizontal axis indicates the ratio of the processing time for tasks A, B, C, D, and E to a preset time. Display unit 40 may simultaneously display some or all of tasks A, B, C, D, and E.

[0079] Next, another example of histogram display is shown in FIG.

[0080] FIG. 9 is a diagram showing a case in which a pattern combining the maximum processing times of a plurality of tasks in all of a plurality of control periods that are repeatedly executed is metered, and the color of the status is changed according to the length of the metered processing time.

[0081] As shown in FIG. 9, the information processing device 10 can simulate the processing time of a pattern by creating a pattern (control period) in which each task is combined. Pattern A is the ratio (Range) of the total maximum processing time to a preset time when the maximum processing times of each of tasks A, B, and C are combined into one control period. Since pattern A is less than the first value, it is shown in green as the first color. Pattern B is the ratio of the total maximum processing time to a preset time when the maximum processing times of each of tasks A, B, C, and D are combined into one control period. Since pattern B is equal to or greater than the first value and less than the second value, it is shown in yellow as the second color. Pattern C is the ratio of the total maximum processing time to a preset time when the maximum processing times of each of tasks A, B, C, D, and E are combined into one control period. Since pattern C is equal to or greater than the second value, it is shown in red as the third color. From this simulation, it is found that there is no problem with the total processing time of patterns A and B, but since pattern C exceeds a preset time, it is not necessary to adopt the combination of pattern C for the processing of the motor control device 20. Patterns A and B, which have no problem with the processing time, may be output to the motor control device 20.

[0082] The information processing device 10 may automatically enter in a manual or the like the maximum parameters that do not cause the processing time to exceed a preset time.

[0083] It is possible to store the graphs of FIGS. 4 to 9 in the storage unit 13.

[0084] Next, the processing of the information processing device 10 will be described.

[0085] FIG. 10 is a flowchart showing the processing of the information processing device 10 of the processing time analysis system in the embodiment.

[0086] The information processing device 10 starts a control program such as a dedicated application stored in the storage unit 13. As a result, the following process is executed.

[0087] 10, the information processing device 10 starts a repeat (loop) of the process from measuring the processing time of each of the multiple tasks to tallying the processing time. First, when the processing unit 11 of the information processing device 10 has already acquired time information indicating the processing time of each of the multiple tasks from the motor control device 20, the processing unit 11 outputs the time information (tally-collected time information, described later) to the display unit 40 (S41).

[0088] The processing unit 11 outputs a measurement instruction to the motor control device 20 to measure the processing time of the task (S42). When the drive control unit 21 of the motor control device 20 receives the measurement instruction, it causes the measurement unit 22 to measure the processing time of each of the multiple tasks in multiple control periods executed for each operation.

[0089] The processing unit 11 judges whether or not the time information of each of the multiple tasks has been acquired. If the processing unit 11 has not acquired the time information of each of the multiple tasks (NO in S43), the process proceeds to step S48. Furthermore, the measurement unit 22 outputs time information indicating the processing time of each of the multiple tasks measured for each control period to the information processing device 10 via the output unit 23. At this time, since the processing unit 11 has acquired the time information of each of the multiple tasks (YES in S43), the processing unit 11 summarizes the acquired time information of each of the multiple tasks (S44). For example, the processing unit 11 summarizes, for each control period indicated in the acquired time information, the average processing time of the multiple tasks and the processing time of each of the multiple tasks included in one control period.

[0090] The processing unit 11 extracts the maximum processing time from among the processing times of a plurality of tasks included in one control cycle, and judges whether the maximum processing time is less than a first value (S45). If the maximum processing time is less than the first value (YES in S45), the processing unit 11 determines the result of the collected plurality of pieces of time information as a first color. The processing unit 11 determines green as the first color (S47a), and for example, meterizes the processing time and displays the meter status in green.

[0091] If the maximum processing time is equal to or greater than the first value (NO in S45), the processing unit 11 determines whether the maximum processing time is less than a second value greater than the first value (S46). If the maximum processing time is less than the second value (YES in S46), the processing unit 11 determines a second color different from the first color for the result of the collected multiple pieces of time information. The processing unit 11 determines the second color to be yellow (S47b), and for example, displays the processing time as a meter and displays the meter status in yellow.

[0092] If the maximum processing time is equal to or greater than the second value (NO in S46), the processing unit 11 determines the result of the collected multiple pieces of time information to be a third color different from the first and second colors. The processing unit 11 determines the third color to be red (S47c), and for example, displays the processing time as a meter and the meter status in red.

[0093] After performing any one of steps S47a, S47b, and S47c, the processing unit 11 counts up the processing times indicating the multiple pieces of time information for each control cycle, and generates a histogram of the counted processing times (S48). That is, the processing unit 11 counts up the processing times of the multiple tasks included in one control cycle, and generates a histogram. Then, the process returns to step S41, and the same process is repeated. At this time, in step S41, the processing unit 11 has already acquired the time information indicating the processing time of each of the multiple tasks from the motor control device 20, and therefore outputs the time information to the display unit 40.

[0094] Furthermore, since processing unit 11 has acquired time information indicating the processing time of each of the multiple tasks from motor control device 20 in step S41, processing unit 11 outputs the generated histogram, which is the aggregated time information, to display unit 40, thereby causing the histogram to be displayed on display unit 40 (S49). Display unit 40 displays the histogram, displays the processing time of each of the multiple tasks for each frequency of the histogram (for each control cycle) (S50), and displays metered processing times.

[0095] Furthermore, the processing unit 11 stores the generated histogram and the processing times of a plurality of tasks for each control cycle in the storage unit 13 (S51). In this manner, the information processing device 10 ends the processing.

[0096] <Action and effect> Next, the effects of the processing time analysis system, the processing time analysis method, and the program according to the present embodiment will be described.

[0097] As described above, the processing time analysis system of this embodiment includes a measurement unit 22 that measures the processing time for each of a plurality of tasks executed by the motor control device 20, an output unit 23 that outputs time information indicating the processing time for each of the plurality of tasks measured by the measurement unit 22, a processing unit 11 that aggregates the processing times indicated in the plurality of time information output by the output unit 23 and generates a histogram of the aggregated plurality of processing times, and a display unit 40 that displays the generated histogram.

[0098] According to this, the processing unit 11 can tally up the processing times of each of the multiple tasks and generate a histogram based on the totaled processing times. The display unit 40 displays the generated histogram, allowing the user to recognize the processing times of each of the multiple tasks from the histogram.

[0099] Therefore, in this processing time analysis system, the contents of the task that has been processed can be confirmed.

[0100] In particular, when there is a task in which the processing time of a specific task among multiple tasks is longer than the processing time of the other tasks, the user can check the contents of the task and determine, for example, whether it is dependent on the embedded environment or on the operating parameters of the task.

[0101] In addition, the processing time analysis method may include measuring the processing time for each of a plurality of tasks executed by the motor control device 20, outputting time information indicating the measured processing time for each of the plurality of tasks, aggregating the processing times indicating the outputted plurality of pieces of time information, generating a histogram of the aggregated plurality of processing times, and displaying the generated histogram.

[0102] This processing time analysis method also provides the same effects as those described above.

[0103] The program may be a program for causing a computer to execute a processing time analysis method.

[0104] This program also provides the same effects as those described above.

[0105] In the processing time analysis system, the display unit 40 may display the processing time of each of a plurality of tasks corresponding to the frequency of the histogram.

[0106] This allows the user to recognize the processing time for each of a plurality of tasks from the histogram.

[0107] In addition, in the processing time analysis system, the measurement unit 22 may measure the processing time of each of the multiple tasks for each control period including the multiple tasks, and the output unit 23 may output multiple pieces of time information measured for each of the multiple control periods.

[0108] This makes it possible to display the processing time for each of a plurality of tasks for each of a plurality of control periods. Therefore, the display unit 40 can, for example, arrange only a plurality of tasks on the display unit 40 in units of control periods, or display a plurality of tasks together with a histogram. Therefore, the user can compare a plurality of control periods, or view them together with a histogram.

[0109] In the processing time analysis system, the display unit 40 may display the contents of the tasks.

[0110] This allows the display unit 40 to display the contents of a task that the user wishes to view. The display unit 40 can also display the contents of a task for each of a plurality of control periods. The display unit 40 can also display a task with a high degree of impact among a plurality of tasks. This allows the user to understand the contents of the task, and therefore to find the cause of the long processing time.

[0111] Furthermore, in the processing time analysis system, when a histogram having multiple extreme values ​​is present in the multiple generated histograms, the display unit 40 may preferentially display the histogram having the multiple extreme values.

[0112] According to this, a histogram having multiple extreme values ​​may indicate that a large processing load is being applied to the motor control device 20. The display unit 40 can preferentially display the processing times of multiple tasks for a histogram that is likely to indicate that a large processing load is being applied to the motor control device 20. This allows the user to easily find the cause of a task with a large processing load.

[0113] Furthermore, in the processing time analysis system, the processing unit 11 may determine a first color as a result of the aggregated plurality of time information if a predetermined processing time among the processing times indicated in the aggregated plurality of time information is less than a first value, determine a second color different from the first color as a result of the aggregated plurality of time information if a predetermined processing time among the processing times indicated in the aggregated plurality of time information is equal to or greater than the first value and less than a second value greater than the first value, and determine a third color different from the first and second colors as a result of the aggregated plurality of time information if a predetermined processing time among the processing times indicated in the aggregated plurality of time information is equal to or greater than a second value, meter the processing time using the determined color, and the display unit 40 may display the metered processing time.

[0114] According to this, since the processing time can be metered, the metered status can be emphasized by coloring. Furthermore, the display unit 40 can also display a margin, which is a ratio of the remaining processing time to a preset second value.

[0115] (Other variations) The processing time analysis system, the processing time analysis method, and the program according to the present disclosure have been described above based on the above-mentioned embodiments, but the present disclosure is not limited to these embodiments. As long as the modifications do not deviate from the spirit of the present disclosure, modifications that a person skilled in the art may make to the embodiments may also be included in the scope of the present disclosure.

[0116] For example, in the processing time analysis system, processing time analysis method, and program according to the above-mentioned embodiments, the controller is communicatively connected to the motor control device, but may be communicatively connected to the motor control device via an information processing device. Furthermore, when a plurality of motor control devices are provided, the information processing device may be provided in a one-to-one correspondence with the plurality of motor control devices, and the plurality of information processing devices may be managed by one controller. Furthermore, a plurality of servo motors may be controllably connected to the motor control device, and the plurality of servo motors may be controlled simultaneously.

[0117] In the processing time analysis system, processing time analysis method, and program according to the above-described embodiments, the processing time analysis system may be provided with a filter unit such as a notch filter that cuts off a specific frequency to remove noise. In this case, the processing time analysis system may adjust the number of notch filters to be used based on the number of notch filters and the processing time of each of a plurality of tasks. For example, if the processing time of pattern 1 when A notch filters are used is less than a second value, and the processing time of pattern 2 when B notch filters, which is more than A, are used is equal to or greater than the second value, the processing time analysis system may output pattern 1 to the motor control device.

[0118] Furthermore, each unit included in the processing time analysis system, the processing time analysis method, and the program according to the above-described embodiments is typically realized as an LSI, which is an integrated circuit. These units may be individually implemented as single chips, or some or all of them may be included in a single chip.

[0119] The integrated circuit is not limited to an LSI, but may be realized by a dedicated circuit or a general-purpose processor. A field programmable gate array (FPGA) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of the circuit cells inside the LSI may also be used.

[0120] In each of the above embodiments, each component may be implemented by dedicated hardware or by executing a software program suitable for each component. Each component may be implemented by a program execution unit such as a CPU or processor reading and executing a software program recorded on a storage medium such as a hard disk or semiconductor memory.

[0121] Furthermore, all the numbers used above are merely examples for the purpose of specifically explaining the present disclosure, and the embodiments of the present disclosure are not limited to the exemplified numbers.

[0122] In addition, the division of functional blocks in the block diagram is an example, and multiple functional blocks may be realized as one functional block, one functional block may be divided into multiple blocks, or some functions may be transferred to another functional block. Furthermore, the functions of multiple functional blocks having similar functions may be processed in parallel or in a time-sharing manner by a single piece of hardware or software.

[0123] In addition, the order in which each step is performed in the flowchart is merely for illustrative purposes and may be other than the above. In addition, some of the steps may be performed simultaneously (in parallel) with other steps.

[0124] In addition, the present disclosure also includes forms obtained by applying various modifications to the above-described embodiments that a person skilled in the art may conceive, and forms realized by arbitrarily combining the components and functions of each embodiment within the scope that does not deviate from the spirit of the present disclosure. [Industrial Applicability]

[0125] The present disclosure is widely applicable to machines and the like that are operated by servo systems. [Explanation of symbols]

[0126] 1 Control system (processing time analysis system) 11 Processing section 20 Motor control device 22 Measurement section 23 Output section 40 Display section

Claims

1. a measurement unit that measures a processing time for each of a plurality of tasks executed by the motor control device; an output unit that outputs time information indicating a processing time of each of the plurality of tasks measured by the measurement unit; a processing unit that aggregates processing times indicated in the plurality of pieces of time information output by the output unit and generates a histogram of the aggregated plurality of processing times; a display unit that displays the generated histogram, The processing unit includes: if a predetermined processing time among the processing times indicated by the collected pieces of time information is less than a first value, a first color is determined as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated by the collected pieces of time information is equal to or greater than the first value and is less than a second value that is greater than the first value, determining a second color different from the first color as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the second value, determining a third color different from the first color and the second color as a result of the collected pieces of time information; Metering the processing time using the determined color; The display unit displays the metered processing time. Processing time analysis system.

2. The display unit displays the processing time of each of the plurality of tasks corresponding to the frequency of the histogram. The processing time analysis system according to claim 1 .

3. the measurement unit measures a processing time for each of the plurality of tasks for each control period including the plurality of tasks; The display unit displays the plurality of pieces of time information measured in each of the plurality of control periods.

3. The processing time analysis system according to claim 1 or 2.

4. The display unit displays the contents of the task.

3. The processing time analysis system according to claim 1 or 2.

5. When a histogram having a plurality of extreme values ​​is present among the generated plurality of histograms, the display unit preferentially displays the histogram having the plurality of extreme values. The processing time analysis system according to any one of claims 1 to 4.

6. Measure the processing time for each of a plurality of tasks executed by the motor control device; outputting time information indicating the measured processing time of each of the plurality of tasks; tallying up the processing times indicated by the plurality of pieces of time information outputted; generating a histogram of the aggregated processing times; Displaying the generated histogram; if a predetermined processing time among the processing times indicated by the collected pieces of time information is less than a first value, a first color is determined as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated by the collected pieces of time information is equal to or greater than the first value and is less than a second value greater than the first value, determining a second color different from the first color as a result of the collected pieces of time information; if a predetermined processing time among the processing times indicated in the collected pieces of time information is equal to or greater than the second value, determining a third color different from the first color and the second color as a result of the collected pieces of time information; Metering the processing time using the determined color; displaying the metered processing time. Processing time analysis method.

7. A method for causing a computer to execute the processing time analysis method according to claim 6. program.

Citation Information

Patent Citations

  • Task monitor device for motion controller and its monitor method

    JP2001273171A

  • Device and method for supporting program design and program for performing program design support method by computer

    JP2002268879A

  • Support program, device and method for computer-assisted name sorting

    JP2006236280A

  • Analysis program, analyzing method and analyzing apparatus

    JP2010152899A

  • Visualization method of manufacturing result, image processing device and program

    JP2018124799A