This application claims the benefit of and claims priority to Japanese Patent Application No. 2016-182521, filed on Sep. 20, 2016, the entire content of which is incorporated herein by reference.
The present invention relates to a robot simulation device.
There has been known a robot simulation device that performs a simulation of the operation of a robot offline (see, for example, Japanese Unexamined Patent Application Publication No. 2001-105359).
According to an aspect of the present invention, there is provided a robot simulation device including: a robot-information acquiring unit that performs communication with control units of a plurality of robots included in a robot system and acquires hardware information and software information on the plurality of robots; a change determining unit that determines, on the basis of the software information acquired by the robot-information acquiring unit, whether an operation program is changed; and an evaluating unit that, when the change determining unit determines that the operation program is changed, performs a simulation of operations of the plurality of robots using the hardware information and the software information acquired by the robot-information acquiring unit and evaluates the operation program.
A robot simulation device 1 according to an embodiment of the present invention is explained below with reference to the drawings.
The robot simulation device 1 according to this embodiment is realized by a personal computer or the like. The robot simulation device 1 includes, as shown in
The communication unit 2 acquires hardware information and software information on the robots 110 from the control devices 120 of the robots 110.
The calculating unit 3 includes, as shown in
The calculating unit 3 includes a change determining unit 33 that determines, on the basis of software information acquired by communication, whether an operation program is changed and a program recording unit 34 that records the operation program.
The change determining unit 33 compares, every time software information is sent to the change determining unit 33, an operation program included in new software information and the latest operation program recorded in the program recording unit 34 and determines whether the operation program is changed.
When determining that the operation program is changed, the change determining unit 33 adds, as the latest operation program, the operation program after the change to operation programs recorded in the program recording unit 34.
When determining that the operation program is changed, the change determining unit 33 sends an operation program included in the latest software information to the program executing unit 32.
The program executing unit 32 performs a simulation by executing, with a virtual robot sent from the virtual-robot generating unit 31, the operation program sent from the change determining unit 33. An evaluating unit 35 is connected to the program executing unit 32. The program executing unit 32 outputs a simulation result to the evaluating unit 35.
The evaluating unit 35 evaluates the simulation result concerning predetermined evaluation indicators.
Examples of the evaluation indicators include a cycle time, power consumption, and presence or absence of interference between the robots 110.
The evaluating unit 35 determines whether the cycle time achieves a predetermined cycle time, determines the power consumption is equal to or smaller than a predetermined threshold, or determines, using an interference detecting unit (not shown in the figure) included in the evaluating unit 35, whether interference between the robots 110 occurs. When a problem occurs, the evaluating unit 35 notifies to that effect in the display unit 4 and outputs an evaluation result to the display unit 4. The display unit 4 is, for example, a monitor.
Action of the robot simulation device 1 according to this embodiment configured as explained above is explained below.
To carry out, using the robot simulation device 1 according to this embodiment, a simulation of the robot system 100 including the plurality of robots 110, as shown in
When the hardware information and the software information are input, the virtual-robot generating unit 31 generates virtual robots of the robots 110 and sends the virtual robots to the program executing unit 32 (step S2). When the software information is input, the change determining unit 33 extracts an operation program included in the software information (step S3).
The change determining unit 33 compares the extracted operation program with an operation program recorded in the program recording unit 34 (step S4). The change determining unit 33 determines, as a result of the comparison, whether the extracted operation program and the latest operation program recorded in the program recording unit 34 are different (step S5). When the extracted operation program and the latest operation program are different, the extracted operation program is sent to the program executing unit 32. The change determining unit 33 determines that an operation program extracted first in a state in which the latest operation program is not recorded in the program recording unit 34 is also different from the recorded latest operation program.
The program executing unit 32 executes the operation program sent from the change determining unit 33 using the virtual robots sent from the virtual-robot generating unit 31 to thereby perform a simulation (step S6) and outputs a simulation result to the evaluating unit 35.
When the simulation is started (step S60), as shown in
The evaluating unit 35 evaluates a simulation result concerning evaluation indicators and outputs an evaluation result to the display unit 4 (step S7).
The evaluating unit 35 determines in which of the evaluation indicators a problem is present as a result of the evaluation (step S8). When a problem is present, that is, when the cycle time does not achieve the predetermined cycle time, when the power consumption exceeds the predetermined threshold, or when interference occurs, the evaluating unit 35 notifies to that effect (step S9) and displays the evaluation result (step S11).
As a result of the comparison in step S5, when the operation program extracted anew is not changed from the latest operation program recorded in the program recording unit 34, the change determining unit 33 determines whether an end instruction for the simulation is input (step S12).
As a result of step S8, when a problem is absent in the evaluation result, the change determining unit 33 adds the operation program after the change to the program recording unit 34 as the latest operation program (step S10), and the process from step S11 is carried out.
When the end instruction for the simulation is not input in step S12, the process from step S1 is repeated.
In this way, with the robot simulation device 1 according to this embodiment, when the control device 120 of any one of the plurality of robots 110 changes an operation program, the change determining unit 33 determines presence or absence of a change. Only when a problem is absent in a simulation result obtained by using the operation program after the change, the operation program after the change is recorded as a new operation program. Therefore, there is an advantage that, even when an operation program is, for example, changed by the operator in the actual system, it is possible to evaluate the operation of the robots 110 in the system through the simulation.
Note that, in this embodiment, as a result of performing the simulation using the operation program after the change, when no problem occurs in all the evaluation indicators, the operation program is recorded in the program recording unit 34. Therefore, the simulation may be carried out by switching all recorded operation programs to make it possible to compare power consumptions and cycle times in a plurality of operation programs.
From the above-described embodiment, the following invention is derived.
According to an aspect of the present invention, there is provided a robot simulation device including: a robot-information acquiring unit that performs communication with control units of a plurality of robots included in a robot system and acquires hardware information and software information on the robots; a change determining unit that determines, on the basis of the software information acquired by the robot-information acquiring unit, whether an operation program is changed; and an evaluating unit that, when the change determining unit determines that the operation program is changed, performs a simulation of operations of the plurality of robots using the hardware information and the software information acquired by the robot-information acquiring unit and evaluates the operation program.
According to the aspect, the robot-information acquiring unit acquires the hardware information and the software information on the plurality of robots included in the robot system from the control units of the robots. The change determining unit determines whether the operation program is changed. When it is determined that the operation program is changed, the evaluating unit executes the simulation of the operation of the robot and evaluates the operation program.
That is, according to the aspect, a change of the operation program by the operator is monitored. When the operation program is changed, the simulation is performed to evaluate the operation program. Therefore, it is possible to evaluate the influence of the change of the operation program on the entire robot system and perform improvement and the like. For example, as a result of the change of the operation program, when a cycle time and power consumption of the entire robot system greatly increase or when it is found that interference between the robots occurs, it is possible to urge re-correction of the operation program.
In the aspect, the robot simulation device may further include a notifying unit that notifies a result of the evaluation by the evaluating unit.
Consequently, it is possible to carry out the re-correction of the operation program on the basis of the evaluation result notified by the notifying unit.
In the aspect, the evaluating unit may evaluate the operation program according to at least one of a cycle time and power consumption of the entire robot system.
Consequently, it is possible to re-correct the operation program such that the cycle time or the power consumption of the entire robot system decreases.
In the aspect, the evaluating unit may include an interference detecting unit that detects interference between the robots and, when the interference detecting unit detects interference, execution of the operation program may be recorded.
Consequently, by correcting the recorded execution of the operation program, it is possible to change the operation program to avoid the interference.
In the aspect, positions, velocities, and torques of the robots at the time when the interference is detected by the interference detecting unit may be recorded.
Consequently, it is possible to confirm a state of the robots at the time when the robots interfere with each other.
In the aspect, the robot simulation device may further include a program recording unit that records an operation program included in the software information acquired by the robot-information acquiring unit, and, when the change determining unit detects a change of the operation program, the changed operation program may be recorded in the program recording unit, and the evaluating unit may switch and evaluate a plurality of the operation programs recorded in the program recording unit.
Consequently, by switching the plurality of operation programs recorded in the program recording unit, it is possible to compare and evaluate the operation programs.
Number | Date | Country | Kind |
---|---|---|---|
2016-182521 | Sep 2016 | JP | national |