Machine control device

The machine control device addresses the challenge of conducting diagnostic tests during automatic operations by automating their timing to prevent safety issues and defects, ensuring timely execution and reduced operator burden.

DE102020201002B4Active Publication Date: 2024-09-26FANUC LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
DE102020201002
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-01-31
Filing Date
2020-01-28
Publication Date
2024-09-26
Estimated Expiration
2040-01-28

AI Technical Summary

Technical Problem

Diagnostic tests in machine tools and industrial robots cannot be performed during automatic operation without interrupting the process, leading to safety risks, machining defects, and increased operator workload.

Method used

A machine control device that automatically performs diagnostic tests within a predetermined period by predicting program end times and adjusting test execution to avoid conflicts with ongoing operations, using units to calculate and manage diagnostic test times and program execution.

Benefits of technology

Ensures diagnostic tests are conducted within the required timeframe, preventing safety malfunctions and machining defects while reducing operator workload, without causing productivity loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Machine control device (10) which controls the operation of a machine based on a program and performs a diagnostic test of a safety function of the machine within a predetermined period, wherein the machine control device (10) comprises: a diagnostic test time calculation unit (12) that calculates a planned execution time T1 of the diagnostic test, a program execution time prediction unit (14) that predicts a predicted end time T2 of the program before the program is executed, a diagnostic test execution determination unit (18) that determines whether the diagnostic test should be executed at a predetermined time by determining whether the predicted end time T2 of the program exceeds the planned execution time T1 of the diagnostic test, and a diagnostic test execution unit (24) that performs the diagnostic test, wherein, if the predicted end time T2 of the program exceeds the planned execution time T1 of the diagnostic test, the diagnostic test execution determiner (18) instructs the diagnostic test execution unit (24) to execute the diagnostic test before the planned execution time T1 of the diagnostic test prior to executing the program.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND OF THE INVENTIONField of invention

[0001] The present invention relates to a control device that controls a machine tool or a machine such as an industrial robot. State of the art

[0002] It is known to carry out diagnostic tests at regular intervals in a machine tool or a machine such as an industrial robot in order to prevent deterioration of safety functions due to failure of mechanical components or the like (see, for example, Japanese Patent No. 5,681,224 and Japanese Unexamined Patent Application Publication No. S62-219105).

[0003] An example of such a diagnostic test is a diagnostic test of a power interrupt circuit for emergency stopping of an axis movement when a machine abnormality is detected (MCC interrupt test). In this diagnostic test, a power interrupt is actually performed and an abnormality of the power interrupt circuit is detected by checking a contact state of the power interrupt circuit at that time. Because a power interrupt is required, this diagnostic test cannot be performed during automatic machine operation. Therefore, an operator must determine the time when the machine is not operating automatically and perform the diagnostic test.

[0004] For example, a numerical control device that controls a machine tool or a machine such as an industrial robot notifies the machine operator (or a PLC device) that the set time of the diagnostic test has elapsed, and the machine operator (or the PLC device) determines the timing for executing the diagnostic test based on the state of the machine and then executes the diagnostic test. Patent Document 1: Japanese Patent No. JP 5 681 224 B2 Patent Document 2: Unexamined Japanese Patent Application Publication No. JP S62 - 21 9105 A

[0005] EP 3 104 274 B1 relates to a system for scheduling task execution. US 2018 / 0 074 927 A1 relates to a character processing device. SUMMARY OF THE INVENTION

[0006] (1) If the diagnostic test time is during the machine's automatic operation and automatic operation has priority, the diagnostic test cannot be performed at a predetermined cycle. In this case, there is an increased risk of a safety malfunction due to the failure of mechanical components or the like.

[0007] (2) If the diagnostic test time comes during automatic machine operation and the diagnostic test has priority, machining will be interrupted at an inconvenient time. In this case, machining defects may occur.

[0008] (3) In order to reliably perform diagnostic tests within a predetermined period, the machine operator must determine the elapsed time between diagnostic tests and the time of automatic machine operation. This increases the workload for the machine operator.

[0009] Therefore, in the machine control device, it is desirable to perform diagnostic tests (1) within a predetermined period, (2) while avoiding the occurrence of machining defects, and (3) automatically.

[0010] The above object is achieved by the subject matter of the independent claim. A machine control device according to the present invention is a machine control device that controls the operation of a machine based on a program and executes a diagnostic test of a safety function of the machine within a predetermined period, and includes: a diagnostic test time calculation unit that calculates a scheduled execution time T1 of the diagnostic test; a program execution time prediction unit that predicts a predicted end time T2 of the program before executing the program; a diagnostic test execution determination unit that determines whether the diagnostic test should be executed at the predetermined time by determining whether the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test; and a diagnostic test execution unit that executes the diagnostic test.wherein, if the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test, the diagnostic test execution determining unit instructs the diagnostic test execution unit to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before executing the program.;

[0011] According to one aspect of the present invention, diagnostic tests can be performed (1) within a predetermined period, (2) while avoiding the occurrence of machining defects, and (3) automatically. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing the configuration of an engine control device according to an embodiment of the present invention. Fig. Figure 2 is a timing diagram showing the execution of a diagnostic test and the execution of a program when T3 < T2. Fig. Figure 3 is a timing diagram showing the execution of the diagnostic test and the execution of the program when T3 > T2 and T4 < T3. Fig. Figure 4 is a timing diagram showing the execution of the diagnostic test and the execution of the program when T3 > T2 and T4 > T3. Fig. 5 is a flowchart showing an operation before execution of the program of the engine control device according to the embodiment. Fig. 6 is a flowchart showing the operation during execution of the program of the engine control device according to the embodiment. Fig. 7 is a diagram showing the configuration of an engine control device according to a modification example of the embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0012] An example of an embodiment of the present invention will now be described with reference to the accompanying drawings. It should be noted that like reference numerals are used throughout the drawings to designate identical or corresponding parts.

[0013] Fig. 1 is a diagram showing the configuration of a machine control device according to an embodiment of the present invention. Fig. The machine control device 10 shown in Figure 1 is, for example, a numerical control device that controls the operation of a machine tool and a machine such as an industrial robot based on a program. The machine control device 10 has a function for executing diagnostic tests or safety functions of the machine at regular cycles (intervals).

[0014] Such diagnostic tests include the diagnostic tests described below, which must not be executed while a program is running. (1) Current interruption circuit test

[0015] A diagnostic test for checking the normal condition of the power interruption circuit by actually performing a power interruption and testing the power interruption circuit at that time. (2) Brake test

[0016] A diagnostic test for verifying the normal condition of the brake. As with a gravity axle, the brake test is performed for an axle that is at risk of falling if the power supply is interrupted. The normal condition of the brake is verified by applying torque to the motor with the brake engaged and verifying that the motor does not move. (3) CPU self-diagnosis test / RAM test

[0017] A diagnostic test for verifying that the CPU and RAM of a control device are operating normally. The CPU self-diagnosis test checks the execution results of various instructions or checks the write / read operations to the register. The RAM test verifies that the RAM read / write operation is performed correctly. Both diagnostic tests must be performed in a safe state where the shaft is stationary and the power supply is interrupted to perform the diagnostic test on the CPU and RAM area during program execution.

[0018] The machine control device 10 includes a diagnostic test time calculation unit 12, a program execution time prediction unit 14, a storage unit 16, a diagnostic test execution determination unit 18, a diagnostic test execution management unit 22, a diagnostic test execution unit 24, a program analysis unit 26, and a program execution unit (a program stop processing unit) 28.

[0019] The control unit 10 (except for the storage unit 16) is configured, for example, by an arithmetic processor such as a digital signal processor (DSP) or a field-programmable gate array (FPGA). Various functions of the control device 10 are achieved by executing predetermined software (a program, an application) stored, for example, in the storage unit. The various functions of the control device 10 can be achieved through the interaction of hardware and software. The storage unit 16 is, for example, a rewritable memory such as an EEPROM or a rewritable disk such as a hard disk drive (HDD) or a solid-state drive (SSD).

[0020] Note that the diagnostic test time calculation unit 12, the program execution time prediction unit 14, the storage unit 16, and the diagnostic test execution determination unit 18 may be provided, for example, in the machine control device or may be provided in a server device connected to the machine control device via a network.

[0021] Fig. Figure 2 is a timing diagram showing the execution of a diagnostic test and the execution of a program when T3 < T2. Fig. Figure 3 is a timing diagram showing the execution of the diagnostic test and the execution of the program when T3 > T2 and T4 < T3. Fig. Figure 4 is a timing diagram showing the execution of the diagnostic test and the execution of the program when T3 > T2 and T4 > T3. Fig. 2 to 4 times are indicated by symbols as follows. T1: Planned execution time of the diagnostic test T2: Predicted end time of the program T3: Planned compensation execution time of the diagnostic test T4: Actual end time of the program t1: Predicted execution time of the program t3: compensation time White triangle (upwards): Start time of the program White triangle (downwards): Scheduled end time of the program Black triangle (downwards): Actual end time of the program White square: Planned compensation execution time of the diagnostic test White (open) circle: Planned execution time of the diagnostic test Black circle: Execution time of the diagnostic test

[0022] The diagnostic test time calculation unit 12 calculates the scheduled execution time T1 of the diagnostic test

[0023] The program execution time prediction unit 14 predicts the predicted execution time T1 of the program and the predicted end time T2 of the program before the execution of the program.

[0024] The storage unit 16 stores a predetermined compensation time T3 for compensating for the scheduled execution time T1 of the diagnostic test. The actual execution time of the program may be extended relative to the predicted execution time t1. In other words, the actual end time of the program may be delayed relative to the predicted end time T2. An example of this is a tool change program. It is sufficient if the predetermined compensation time T3 can be set taking into account an extension time of the actual end time with respect to the predicted execution time t1 of the program, that is, a delay time of the actual end time with respect to the predicted end time T2 of the program.

[0025] The diagnostic test execution determination unit 18 determines whether or not to execute the diagnostic test at the next predetermined time in the regular cycle. Specifically, the diagnostic test execution determination unit 18 calculates the scheduled compensation execution time T3 of the diagnostic test by subtracting the predetermined compensation time t3 from the scheduled execution time T1 of the diagnostic test, and determines whether or not the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test.

[0026] If, as in Fig. 2, the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test, the diagnostic test execution determination unit 18 instructs the diagnostic test execution unit 24 to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before the execution of the program. On the other hand, if, as shown in Fig. 3, if the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test, the diagnostic test execution determining unit 18 requests the diagnostic test execution managing unit 22 to execute the diagnostic test at the scheduled execution time T1 of the diagnostic test after the execution of the program.

[0027] The diagnostic test execution management unit 22 manages the execution of the diagnostic test during and after the execution of the program. In particular, as in Fig. 3, the diagnostic test execution determination unit 18 determines that the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test and does not exceed the scheduled compensation execution time T3 of the diagnostic test during the execution of the program (that is, when the actual end time T4 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test), the diagnostic test execution management unit 22 instructs the diagnostic test execution unit 24 to execute the diagnostic test at the scheduled execution time T1 of the diagnostic test after the execution of the program.

[0028] If, however, as in Fig. 4, the diagnostic test execution determination unit 18 determines that the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test and exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program (that is, when the actual end time T4 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test), the diagnostic test execution management unit 22 requests the program execution unit to stop the program in a diagnostic test-capable block (for example, in a non-F containing a position operation or a stop operation in the program) of the program analyzed by the program analysis unit 26, and instructs the diagnostic test execution unit 24 to execute the diagnostic test while the program is stopped.

[0029] The diagnostic test execution unit 24 executes the diagnostic test in response to an execution command for the diagnostic test from the diagnostic test execution determining unit 18 or the diagnostic test execution managing unit 22.

[0030] The program analysis unit 26 analyzes the program.

[0031] The program execution unit 28 executes the program. The program execution unit 28 stops the program in the diagnostic test-capable block of the program analyzed by the program analysis unit 26 in response to the stop request from the diagnostic test execution management unit 22. After stopping the program, the program execution unit 28 causes the machine to move to a reference position.

[0032] In the following, with reference to Fig. 5 and Fig. 6, the operation of the machine control device according to this embodiment is described. Fig. 5 is a flowchart showing an operation before execution of the program of the engine control device according to the embodiment. Fig. 6 is a flowchart showing the operation during execution of the program of the engine control device according to the embodiment.

[0033] First, with reference to Fig. 5 describes the operation of the engine control device 10 before the execution of the program. In step S11, the diagnostic test execution determination unit 18 obtains the scheduled execution time T1 of the diagnostic test calculated by the diagnostic test time calculation unit 12. Further, in step S12, the diagnostic test execution determination unit 18 obtains the program end time T2 predicted by the program execution time prediction unit 14. Further, in step S13, the diagnostic test execution determination unit 18 obtains the compensation time t3 stored in the storage unit 16 and thereby obtains the scheduled compensation execution time T3 of the diagnostic test, which is obtained by subtracting the compensation time t3 from the scheduled execution time T1 of the diagnostic test.

[0034] In step S14, the diagnostic test execution determining unit 18 determines whether or not the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test, and thereby determines whether or not to execute the diagnostic test at the next predetermined time in the regular cycle (time interval).

[0035] If, as in Fig. 2, if the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test (YES in step S14), the diagnostic test execution determination unit 18 instructs the diagnostic test execution unit 24 to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before the program is executed. With this configuration, in step S15, the diagnostic test execution determination unit 24 executes the diagnostic test before starting the program. Furthermore, in step S16, the diagnostic test execution determination unit 18 turns off the diagnostic test request flag. With this configuration, the diagnostic test execution management unit 22 does not perform execution management of the diagnostic test during and after the program is executed, which will be described later.

[0036] If, however, as in Fig. 3, the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test (NO in step S14), the diagnostic test execution determination unit 18 turns on a diagnostic test request flag in step S17. With this configuration, the diagnostic test execution management unit 22 performs execution management of the diagnostic test during and after the execution of the program, which will be described below.

[0037] In the following, with reference to Fig. 6, the operation of the engine control device 10 during program execution is described. In step S21, the diagnostic test execution management unit 22 determines whether the diagnostic test request flag is ON or not (ie, whether the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test).

[0038] If in step S22 the diagnostic test request flag is ON (that is, if the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test as shown in Fig. 3 and Fig. 4) (YES in step S21), the diagnostic test execution management unit 22 determines whether or not the current time exceeds the scheduled compensation execution time T3 of the diagnostic test (that is, whether or not the current time exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program; in other words, whether or not the actual end time T4 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test).

[0039] If the current time exceeds the scheduled compensation execution time T3 of the diagnostic test (that is, if the current time exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program; in other words, if the current end time T4 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test as in Fig. 4) (YES in step S22), the diagnostic test execution management unit 22 requests the program execution unit 28 to stop the program in the diagnostic test-capable block (for example, in a non-editing block including a positioning operation or a stop operation in the program) of the program analyzed by the program analysis unit 26. With this configuration, the program execution unit 28 determines in step S23 whether the block is a diagnostic test-capable block.

[0040] If the block is a diagnostic test-capable block (YES in step S23), the program execution unit 28 stops the program in the diagnostic test-capable block. For example, in step S24, the program execution unit 28 stops the program at the position where the positioning operation is completed (suspends the program). After stopping the program, the program execution unit 28 moves the machine to the reference position (to a safe position).

[0041] The diagnostic test execution management unit 22 instructs the diagnostic test execution unit 24 to execute the diagnostic test while the program is stopped. With this configuration, in step S25, the diagnostic test execution unit 24 executes the diagnostic test while the program is stopped.

[0042] Then, the diagnostic test execution management unit 22 requests the program execution unit 28 to restart the program. With this configuration, in step S26, the program execution unit 28 returns the machine from the reference position to, for example, the position where the positioning operation is completed and restarts the program. In step S27, the diagnostic test execution management unit 22 turns off the diagnostic test request flag.

[0043] On the other hand, if the diagnostic test request flag is OFF in step S21 (NO in step S21), the processing proceeds to step S28 (described later).

[0044] And when the diagnostic test request flag is ON (that is, when the predicted end time T2 of the program does not exceed the planned compensation execution time T3 of the diagnostic test) and the current time does not exceed the planned compensation execution time T3 of the diagnostic test (that is, when the actual end time T4 of the program does not exceed the planned compensation execution time T3 of the diagnostic test during the execution of the program; in other words, when the actual end time T4 of the program exceeds the planned compensation execution time T3 of the diagnostic test as in Fig. 3) (NO in step S22), the diagnostic test execution management unit 22 instructs the diagnostic test execution unit 24 to execute the diagnostic test at the scheduled diagnostic test execution time T1 after the program is executed. Processing then proceeds to step S28 described below.

[0045] If the diagnostic test request flag is ON in step S21 (ie, if the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test), the current time exceeds the scheduled compensation execution time T3 of the diagnostic test (ie, the current time exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program; in other words, the actual program end time exceeds the scheduled compensation execution time T3 of the diagnostic test) and the block is not a diagnostic test-capable block (NO in step S23), so the processing proceeds to step S28 described below.

[0046] In step S28, it is determined whether the program has ended or not. If the program has ended in step S29 (YES in step S28), the diagnostic test request flag is turned off. Conversely, if the program has not ended (NO in step S28), the processing is ended without resetting the diagnostic test request flag to OFF (for example, the operations of steps S21 to S29 are repeated).

[0047] As described above, in the engine control device 10 according to this embodiment, the predicted end time of the program is predicted before the execution of the program, and when the predicted end time of the program exceeds the scheduled execution time of the diagnostic test, the diagnostic test is executed before the execution of the program before the scheduled execution time of the diagnostic test.

[0048] In this configuration: (1) Diagnostic tests can be performed within a predetermined time period (regular cycle, time interval). As a result, deterioration of machine safety due to failure of mechanical components or similar issues can be suppressed. It should be noted that setting a short diagnostic test cycle can improve machine safety. (2) Diagnostic tests can be carried out while avoiding the occurrence of machining defects. (3) Diagnostic tests can be performed automatically. This configuration can reduce the workload for a machine operator.

[0049] Furthermore, in the engine control device 10 of this embodiment, the scheduled compensation execution time T3 of the diagnostic test is calculated by subtracting the predetermined compensation time t3 from the scheduled execution time T1 of the diagnostic test. If the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test, the diagnostic test is executed before the scheduled execution time T1 of the diagnostic test before the program is executed. With this configuration, the extension time of the actual end time with respect to the predicted execution time t1 of the program, that is, the delay time of the actual end time with respect to the predicted end time T2 of the program, can be compensated.

[0050] Furthermore, in the machine control device 10 of this embodiment, if the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test, and the scheduled compensation execution time T3 of the diagnostic test exceeds the program execution time during program execution, the program is stopped in the blocks of the program capable of a diagnostic test, and the diagnostic test is executed while the program is stopped. With this configuration, (2) Diagnostic tests can be performed even during machining, preventing the occurrence of machining defects.

[0051] As a method for avoiding the execution of the diagnostic test during automatic operation of the machine, a method of delaying the start time of automatic operation can be used. However, this method creates dead time for stopping the machine, thereby reducing productivity. In contrast, with the machine control device 10 according to this embodiment, dead time for stopping machining can be avoided, and thus, a reduction in productivity can be avoided. (Modification example)

[0052] Fig. 7 is a diagram showing the configuration of an engine control device 10 according to a modification example of the embodiment. Fig. 7 differs from the machine control device 10 of Fig.1 in that it further includes an interface (obtaining unit) 32. The interface 32 obtains a scheduled operation time (e.g., an operation start time and an operation end time) of a peripheral device from the control device of the peripheral device, such as a robot or a transporter, via a network.

[0053] The diagnostic test execution determination unit 18 can determine the execution of the diagnostic test based on the operation end time of the peripheral device in addition to the predicted end time T2 of the program. Specifically, the diagnostic test execution determination unit 18 can determine whether or not to execute the diagnostic test at a predetermined time by determining whether or not the scheduled operation time of the peripheral device exceeds the scheduled compensation execution time T3 of the diagnostic test.

[0054] In this configuration, if the scheduled operation time of the peripheral device exceeds the scheduled compensation execution time T3 of the diagnostic test, the diagnostic test execution determining unit 18 may instruct the diagnostic test execution unit 24 to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before the execution of the program.

[0055] And when the diagnostic test execution determination unit 18 determines that the scheduled operation time of the peripheral device does not exceed the scheduled compensation execution time T3 of the diagnostic test and exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program, the diagnostic test execution management unit 22 may request the program execution unit 28 to stop the program in the diagnostic test-capable block of the program analyzed by the program analysis unit 26, and may instruct the diagnostic test execution unit 24 to execute the diagnostic test while the program is stopped.

[0056] In this way, by determining the execution of the diagnostic test based on the operation end time of the peripheral device in addition to the predicted end time T2 of the program, execution of the diagnostic test during the operation of the peripheral device can be avoided. (Modification example)

[0057] In the embodiment, the scheduled compensation execution time T3 of the diagnostic test obtained by subtracting the predetermined compensation time t3 from the scheduled execution time T1 of the diagnostic test is used in determining the execution of the diagnostic test. However, the scheduled execution time T1 of the diagnostic test itself may be used instead of the scheduled compensation execution time T3 of the diagnostic test. Furthermore, in this case, the diagnostic test execution determining unit 18 can determine whether or not to execute the diagnostic test at the next predetermined time in the regular cycle (time interval) by determining whether or not the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test.And when the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test, the diagnostic test execution determining unit 18 may instruct the diagnostic test execution unit 24 to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before executing the program.

[0058] While embodiments of the present invention have been described above, the present invention is not limited to the embodiments described herein, which may be modified and varied in various ways. For example, the described embodiment refers to an engine control device that repeatedly executes the diagnostic test at predetermined intervals, i.e., at regular time intervals. However, the invention is not limited thereto and can also be applied to an engine control device that executes the diagnostic test once at a predetermined time.

[0059] In addition, the above-described embodiment refers to a numerical control device of a machine tool for controlling the machine tool, but the invention is not limited thereto and can also be applied to a control device for various other machines such as industrial robots. LIST OF REFERENCE SYMBOLS 10 Machine control device 12 Diagnostic test time calculation unit 14 Program execution time prediction unit 16 storage units 18 Diagnostic test execution determination unit 22 Diagnostic test execution management unit 24 Diagnostic test execution unit 26 Program Analysis Unit 28 Program execution unit (program stop processing unit) 32 Interface (maintenance unit)

Claims

[1] A machine control device (10) that controls the operation of a machine based on a program and performs a diagnostic test of a safety function of the machine within a predetermined period, the machine control device (10) comprising: a diagnostic test time calculation unit (12) which calculates a planned execution time T1 of the diagnostic test, a program execution time prediction unit (14) that predicts a predicted end time T2 of the program before executing the program, a diagnostic test execution determination unit (18) which determines whether the diagnostic test should be executed at a predetermined time by determining whether the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test, and a diagnostic test execution unit (24) which executes the diagnostic test, wherein, when the predicted end time T2 of the program exceeds the scheduled execution time T1 of the diagnostic test, the diagnostic test execution determining unit (18) instructs the diagnostic test execution unit (24) to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before executing the program. [2] The machine control device (10) according to claim 1, wherein the diagnostic test execution determining unit (18): calculates a planned compensation execution part T3 of the diagnostic test by subtracting a predetermined compensation time t3 from the planned execution time T1 of the diagnostic test, determines whether the diagnostic test should be executed at the predetermined time by determining whether the predicted end time T2 of the program exceeds the planned compensation execution time T3 of the diagnostic test, and instructing the diagnostic test execution unit (24), when the predicted end time T2 of the program exceeds the scheduled compensation execution time T3 of the diagnostic test, to execute the diagnostic test before the scheduled execution time T1 of the diagnostic test before executing the program. [3] Machine control device (10) according to claim 2, further comprising: a diagnostic test execution management unit (22) which manages the execution of the diagnostic test during and after the execution of the program, a program analysis unit (26) which analyzes the program, the program comprising a diagnostic test capable block and a program stop processing unit (28) which performs stop processing of the program, wherein, when the diagnostic test execution determining unit (18) determines that the predicted end time T2 of the program does not exceed the scheduled compensation execution time T3 of the diagnostic test and exceeds the scheduled compensation execution time T3 of the diagnostic test during the execution of the program, the diagnostic test execution managing unit (22) requests the program stop processing unit (28) to stop the program in the block capable of the diagnostic test of the program analyzed by the program analyzing unit (26), and instructs the diagnostic test executing unit (24) to execute the diagnostic test while the program is stopped. [4] The machine control device (10) according to claim 3, wherein the program stop processing unit (28) stops the program and then causes the machine to be moved to a reference position. [5] The machine control device (10) according to claim 3, wherein the block capable of a diagnostic test is a non-processing block including a positioning operation or a stopping operation in the program. [6] The machine control device (10) according to claim 2, further comprising an obtaining unit (32) that obtains an operation end time of a peripheral device, wherein the diagnostic test execution determining unit (18) determines whether to execute the diagnostic test at the predetermined time by determining whether a scheduled operation time of the peripheral device exceeds the scheduled compensation execution time T3 of the diagnostic test.

Citation Information

Patent Citations

  • JP1981081224U

  • Message display method for arrival of checking time

    JP1987219105A

  • Numerical control device for a machine with a parts inspection timing notification function.

    JP5681224B2

  • Systems and methods for scheduling tasks using sliding time windows

    EP3104274B1

  • Drawing processing device, diagnostic test method and program

    US20180074927A1