Control system, robot system and control method
The control system addresses the challenge of robot system stoppages by simulating interrupted states in a virtual environment, facilitating quick responses and minimizing downtime through controlled restarts and environmental simulations.
Patent Information
- Application Number
- JP2021097363
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-07-01
- Filing Date
- 2021-06-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-10-16
AI Technical Summary
Existing production systems with robots face challenges in quickly responding to stoppages, as they often encounter unexpected changes in the surrounding environment upon interruption, leading to prolonged downtime.
A control system that operates robots in real and virtual spaces, allowing for the simulation of interrupted states and controlled restarts in a virtual environment, enabling quick response and minimizing downtime by simulating potential collisions and environmental changes before actual restarts.
Enables rapid assessment of restart scenarios, allowing for informed decision-making and minimizing downtime by simulating robot operations in a virtual space, thus facilitating quick responses to system stoppages.
Smart Images

Figure 0007569753000001 
Figure 0007569753000002 
Figure 0007569753000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a control system, a robot system, and a control method. [Background technology]
[0002] Patent Document 1 discloses a machining system including a machining device that machines a workpiece and a robot that transports the workpiece. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-209454 A Summary of the Invention [Problem to be solved by the invention]
[0004] The present disclosure provides a control system that is effective for quickly dealing with the shutdown of a production system including a robot. [Means for solving the problem]
[0005] A control system according to one aspect of the present disclosure includes a controller that operates one or more robots in a real space based on an operating program, a virtual controller that operates one or more virtual robots corresponding to the one or more robots respectively based on an operating program in a virtual space, an operation interruption unit that interrupts the operation of the one or more robots by the controller, an interruption state reproduction unit that reproduces in the virtual space the state of real space in which the operation of the one or more robots was interrupted, and a resume simulator that resumes the operation of the one or more virtual robots based on the operating program by the virtual controller in the virtual space in which the interruption state reproduction unit reproduces the state of the real space.
[0006] A robot system according to another aspect of the present disclosure includes the above-described control system and one or more robots.
[0007] A control method according to yet another aspect of the present disclosure includes operating one or more robots in a real space based on an operating program, interrupting the operation of the one or more robots, reproducing in a virtual space the state of the real space in which the operation of the one or more robots was interrupted, and resuming the operation of the one or more virtual robots based on the operating program by a virtual controller in the virtual space which reproduces the state of the real space. Effect of the Invention
[0008] According to the present disclosure, it is possible to provide a control system that is effective in quickly dealing with the stoppage of a production system including a robot. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic diagram illustrating a configuration of a production system. [Diagram 2] FIG. 2 is a schematic diagram illustrating a configuration of a robot. [Diagram 3] FIG. 1 is a diagram illustrating the operation and interruption of operation of two robots. [Figure 4] FIG. 13 is a diagram illustrating a simulation of resuming an interrupted operation. [Diagram 5] FIG. 13 is a diagram illustrating a simulation of resuming an interrupted operation. [Figure 6] FIG. 13 is a diagram illustrating a simulation of resuming an interrupted operation. [Figure 7] FIG. 13 is a diagram illustrating a simulation of resuming an interrupted operation. [Figure 8] FIG. 2 is a block diagram illustrating a configuration of a controller. [Figure 9] 11 is a table illustrating an example of a result of allocation of processes to work. [Figure 10] 11 is a table illustrating device information. [Figure 11] 11 is a table illustrating example work information. [Figure 12] FIG. 2 is a block diagram illustrating a configuration of a data management device. [Figure 13] FIG. 2 is a block diagram illustrating a configuration of a data management device. [Figure 14] FIG. 13 is a schematic diagram illustrating a restart command acquisition screen. [Figure 15] FIG. 13 is a schematic diagram illustrating a simulation condition designation screen. [Figure 16] FIG. 13 is a block diagram showing a modified example of the data management device. [Figure 17] FIG. 13 is a schematic diagram showing a modified example of the production system. [Figure 18] FIG. 2 is a diagram illustrating an example of a hardware configuration of the control system. [Figure 19] 1 is a flowchart illustrating a program generation procedure. [Figure 20] 4 is a flowchart illustrating a control procedure by a host controller. [Figure 21] 11 is a flowchart illustrating an abnormality confirmation procedure by a higher-level controller. [Figure 22] 11 is a flowchart illustrating a control procedure by a local controller. [Figure 23] 1 is a flowchart illustrating a virtual environment information collection procedure. [Figure 24] 11 is a flowchart illustrating a procedure for collecting real environment information. [Diagram 25] 13 is a flow chart illustrating a restart simulation procedure. [Figure 26] 10 is a flowchart illustrating a control procedure by a higher-level controller after operation is resumed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the drawings. In the description, the same elements or elements having the same functions are denoted by the same reference numerals, and duplicated description will be omitted.
[0011] [Production System] A production system 1 (robot system) shown in Fig. 1 is a system that produces workpieces. Hereinafter, all objects that are the subject of work in the production process of the workpieces will be referred to as "workpieces". For example, the "work" includes the final product in the production system 1, parts of the final product, and units combining multiple parts.
[0012] The production system 1 includes one or more local devices 2 and a control system 3. For example, the production system 1 includes a plurality of local devices 2, and produces a workpiece through cooperative operation of the plurality of local devices 2. The cooperative operation means that the plurality of local devices operate to share a plurality of processes for obtaining at least one of the above-mentioned final products. The plurality of local devices may operate to share a plurality of processes for obtaining one final product on a process-by-process basis, or may operate to share a plurality of processes for obtaining a plurality of final products on a final product-by-final product basis.
[0013] Each of the multiple local devices 2 is a device that directly performs an operation on the workpiece 9 at the production site of the workpiece 9. The direct operation is an operation of imparting some kind of energy, such as thermal energy, kinetic energy, or potential energy, to the workpiece 9.
[0014] Each of the local devices 2 is, for example, an industrial machine. The local devices 2 include at least a robot (at least one of the local devices 2 is a robot). The local devices 2 also include an industrial machine that cooperates with a robot. Specific examples of the industrial machine that cooperates with a robot include other robots and NC machine tools.
[0015] 1 includes a transport device 2A, robots 2B and 2C, and a mobile robot 2D, but is not limited to this. The number and types of local devices 2 can be changed as appropriate as long as they include at least one robot.
[0016] The transport device 2A transports the workpiece 9 using, for example, an electric motor or the like as a power source. Specific examples of the transport device 2A include a belt conveyor and a roller conveyor. The robots 2B, 2C, and the mobile robot 2D perform work on the workpiece 9 transported by the transport device 2A. Specific examples of the work on the workpiece 9 include assembling another workpiece 9 (for example, a subpart) to a workpiece 9 (for example, a base part) transported by the transport device 2A, fastening (for example, bolt fastening) and joining (for example, welding) parts of the workpiece 9 transported by the transport device 2A, carrying the workpiece 9 into an NC machine tool installed around the transport device 2A, carrying the workpiece 9 out of the NC machine tool, etc.
[0017] For example, the robots 2B and 2C are six-axis vertical articulated robots, and as shown in Fig. 2, have a base 11, a rotating part 12, a first arm 13, a second arm 14, a third arm 17, a tip 18, and actuators 41, 42, 43, 44, 45, and 46. The base 11 is installed around the transport device 2A. The rotating part 12 is provided on the base 11 so as to rotate around a vertical axis 21.
[0018] The first arm 13 is connected to the rotating part 12 so as to rotate around an axis 22 that intersects (for example, perpendicular to) the axis 21. The intersection also includes a case where the two are in a twisted relationship, such as a so-called three-dimensional intersection. The second arm 14 is connected to the tip of the first arm 13 so as to rotate around an axis 23 that is substantially parallel to the axis 22. The second arm 14 includes an arm base 15 and an arm end 16. The arm base 15 is connected to the tip of the first arm 13 and extends along an axis 24 that intersects (for example, perpendicular to) the axis 23. The arm end 16 is connected to the tip of the arm base 15 so as to rotate around the axis 24. The third arm 17 is connected to the tip of the arm end 16 so as to rotate around an axis 25 that intersects (for example, perpendicular to) the axis 24. The tip 18 is connected to the tip of the third arm 17 so as to rotate around an axis 26 that intersects (for example, perpendicular to) the axis 25. A work tool such as a hand, a suction nozzle, a welding torch, or the like is attached to the tip portion 18.
[0019] Thus, robots 2B and 2C have a joint 31 connecting the base 11 and the swivel 12, a joint 32 connecting the swivel 12 and the first arm 13, a joint 33 connecting the first arm 13 and the second arm 14, a joint 34 connecting the arm base 15 and the arm end 16 in the second arm 14, a joint 35 connecting the arm end 16 and the third arm 17, and a joint 36 connecting the third arm 17 and the tip 18.
[0020] The actuators 41, 42, 43, 44, 45, and 46 include, for example, electric motors and reducers, and drive the joints 31, 32, 33, 34, 35, and 36, respectively. For example, the actuator 41 rotates the rotating part 12 about the axis 21, the actuator 42 rotates the first arm 13 about the axis 22, the actuator 43 rotates the second arm 14 about the axis 23, the actuator 44 rotates the arm end 16 about the axis 24, the actuator 45 rotates the third arm 17 about the axis 25, and the actuator 46 rotates the tip part 18 about the axis 26.
[0021] The specific configuration of the robots 2B and 2C can be changed as appropriate. For example, the robots 2B and 2C may be a seven-axis redundant robot in which one more joint is added to the six-axis vertical articulated robot, or may be a so-called SCARA type articulated robot.
[0022] Returning to FIG. 1, the mobile robot 2D is a robot capable of autonomous travel. The mobile robot 2D has a robot 10 configured similarly to the robots 2B and 2C, and an automated guided vehicle 50. The automated guided vehicle 50 autonomously travels to transport the robot 10. A specific example of the automated guided vehicle 50 is an electric so-called AGV (Automated Guided Vehicle).
[0023] The production system 1 may further include an environmental sensor 5. The environmental sensor 5 detects the state of the work environment of the multiple local devices 2 (hereinafter referred to as the "environmental state"). A specific example of the environmental sensor 5 is a camera that captures the work environment of the multiple local devices 2. The environmental sensor 5 may be a sensor that detects the presence or absence of a workpiece 9 at a predetermined position by laser light or the like, or may be a sensor that detects the size of the workpiece 9 or the like. The production system 1 may be provided with multiple environmental sensors 5.
[0024] The control system 3 controls a plurality of local devices 2. An example of the configuration of the control system 3 will be described in detail below.
[0025] [Control System] The control system 3 operates the multiple local devices 2 based on an operation program, and suspends the operation of the multiple local devices 2 when an abnormality occurs, etc. If at least one of the multiple local devices 2 is still in an operable state after the operation of the multiple local devices 2 is suspended, it is desirable to immediately resume the operation of the operable local devices 2 when the need to suspend operation is no longer necessary, thereby minimizing system downtime. However, when the operation of the multiple local devices 2 is suspended, an unexpected change may have occurred in the surrounding environment of the multiple local devices 2.
[0026] In response to this, the control system 3 is configured to operate a plurality of local devices 2 in real space based on an operating program, interrupt the operation of the plurality of local devices 2, reproduce in virtual space the state of the real space in which the operation of the plurality of local devices 2 was interrupted, and resume the operation of the plurality of virtual local devices based on the operating program by a virtual controller in the virtual space which reproduces the state of the real space.
[0027] By reproducing in a virtual space the state of the real space in which the operations of the multiple local devices 2 are interrupted, and then resuming the operations of the multiple virtual local devices in the virtual space, it is possible to easily perform a simulation of the case where the operations of the multiple local devices 2 are resumed in the real space. This makes it possible to quickly grasp events that occur when the operations of one or more robots are resumed before the actual operations are resumed. This is therefore effective for quickly dealing with the stoppage of the production system 1.
[0028] A specific example of the simulation will be described below with reference to the drawings. Fig. 3 is a diagram illustrating the operation and interruption of operation of two robots. Fig. 3 illustrates a case where the control system 3 causes the robots 2B and 2C to transport a workpiece. Specifically, the control system 3 causes the robot 2B to transport the workpiece 9A on the workpiece support portion 92 to the workpiece support portion 93 as shown in Fig. 3(a) and (b), and then causes the robot 2C to transport the workpiece 9B on the workpiece support portion 91 to the workpiece support portion 92 as shown in Fig. 3(b) and (c).
[0029] The control system 3 suspends the operation of the robots 2B, 2C in response to the occurrence of an abnormality or the like. As an example of the occurrence of an abnormality, FIG. 3(d) shows a state in which the robots 2B, 2C have stopped due to the robot 2B failing to grasp the workpiece 9A. The tip 18 of the robot 2B has reached the workpiece support portion 93, but the workpiece 9A remains on the workpiece support portion 92. In such a case, the control system 3 suspends the operation of the production system 1 including the robots 2B, 2C.
[0030] The control system 3 reproduces in the virtual space a state in real space in which the workpiece 9A remains on the workpiece support part 92 even after the tip part 18 of the robot 2B has moved to the workpiece support part 93. For example, the control system 3 reproduces in the virtual space a state in which the tip part 18v of the virtual robot 2Bv is located on the virtual workpiece support part 93v, the virtual workpiece 9Av is left on the virtual workpiece support part 92v, the virtual workpiece 9Bv is located on the virtual workpiece support part 91v, and the tip part 18v of the virtual robot 2Cv is located on the virtual workpiece support part 91v, as shown in (a) of FIG.
[0031] The virtual robot 2Bv corresponds to the robot 2B, the virtual robot 2Cv corresponds to the robot 2C, the virtual workpiece 9Av corresponds to the workpiece 9A, the virtual workpiece 9Bv corresponds to the workpiece 9B, the virtual workpiece support portion 91v corresponds to the workpiece support portion 91, the virtual workpiece support portion 92v corresponds to the workpiece support portion 92, and the virtual workpiece support portion 93v corresponds to the workpiece support portion 93.
[0032] Thereafter, the control system 3 resumes the operation of the virtual robots 2Bv and 2Cv in the virtual space based on the operation program. For example, the control system 3 resumes the operation of the virtual robot 2Cv to transport the virtual workpiece 9Bv from the virtual workpiece support portion 91v to the virtual workpiece support portion 92v (see FIG. 4(b)). This simulation detects a collision between the virtual workpiece 9Av left on the virtual workpiece support portion 92v and the virtual workpiece 9Bv transported by the virtual robot 2Cv onto the virtual workpiece support portion 92v. From such a simulation result, it can be easily understood that it is inappropriate to resume the operation from the transport of the workpiece 9B by the robot 2C. This allows an appropriate response to be quickly taken, such as resuming the operation from the gripping of the workpiece 9A by the robot 2B (see FIG. 4(c)).
[0033] The control system 3 may also suspend the operation of the robots 2B and 2C due to an abnormality in the robots 2B and 2C themselves. FIG. 5(a) shows a state in which an abnormality such as an overcurrent occurs in the robot 2B when the workpiece 9A reaches the workpiece support portion 93, and the operation of the robots 2B and 2C is suspended. In such a case, the control system 3 resumes the operation of the virtual robot 2Cv while stopping the virtual robot 2Bv. For example, the control system 3 resumes the operation of the virtual robot 2Cv to transport the virtual workpiece 9Bv from the virtual workpiece support portion 91v to the virtual workpiece support portion 92v while stopping the virtual robot 2Bv (see FIG. 5(b)). This simulation confirms that the workpiece 9B can be transported from the workpiece support portion 91 to the workpiece support portion 92 without any particular collision.
[0034] Fig. 6(a) shows a state in which an abnormality such as an overcurrent occurs in the robot 2B when the workpiece 9A is grasped, and the operations of the robots 2B and 2C are interrupted. In such a case, the control system 3 resumes the operation of the virtual robot 2Cv while stopping the virtual robot 2Bv. For example, while stopping the virtual robot 2Bv, the control system 3 causes the virtual robot 2Cv to resume the operation of transporting the virtual workpiece 9Bv from the virtual workpiece support part 91v to the virtual workpiece support part 92v (see Fig. 6(b)).
[0035] This simulation detects a collision between the virtual robot 2Bv and the virtual robot 2Cv, a collision between the virtual workpiece 9Bv and the virtual robot 2Bv, or a collision between the virtual workpiece 9Bv and the virtual workpiece 9Av on the virtual workpiece support portion 92v. From such simulation results, it can be easily understood that it is inappropriate to leave the robot 2B stopped on the workpiece support portion 92 and resume the operation of the robot 2C by transporting the workpiece 9B. This makes it possible to quickly take an appropriate measure, such as resuming the operation of the robot 2C after retracting the robot 2B and the workpiece 9A onto the workpiece support portion 93.
[0036] The control system 3 may reproduce in the virtual space the state of the real space in which the robot 2B and the workpiece 9A are retracted onto the workpiece support portion 93, and execute the simulation again. For example, the control system 3 reproduces in the virtual space a state in which, after the robot 2B and the workpiece 9A are retracted onto the workpiece support portion 93, the tip 18v of the virtual robot 2Bv and the virtual workpiece 9Av are positioned on the virtual workpiece support portion 93v, and the tip 18v of the virtual robot 2Cv and the virtual workpiece 9Bv are positioned on the virtual workpiece support portion 91v (see (a) of FIG. 7).
[0037] Thereafter, the control system 3 resumes the operation of the virtual robot 2Cv while stopping the virtual robot 2Bv. For example, while stopping the virtual robot 2Bv, the control system 3 resumes the operation of the virtual robot 2Cv to transport the virtual workpiece 9Bv from the virtual workpiece support portion 91v to the virtual workpiece support portion 92v (see FIG. 7(b)). This simulation confirms that the workpiece 9B can be transported from the workpiece support portion 91 to the workpiece support portion 92 without any collision.
[0038] The configuration of the control system 3 will be described in more detail below. As shown in Fig. 1, the control system 3 includes a controller 6 and a data management device 300. The controller 6 operates a plurality of local devices 2 in real space based on an operation program. The real space is a space in which the plurality of local devices 2 actually exist.
[0039] The controller 6 includes a plurality of local controllers 100 and a higher-level controller 200 (cell controller). Each of the plurality of local controllers 100 controls one of the plurality of local devices 2 under its jurisdiction based on an operation program.
[0040] The upper controller 200 outputs an execution command of an operation program to each of the local controllers 100 based on the process for the work 9, progress information of the process, and environmental information. For example, the operation program includes a plurality of task programs subdivided into a plurality of tasks.
[0041] The host controller 200 outputs an execution command for the next task to each of the local controllers 100 based on the process for the work 9, progress information of the process, and environmental information. The host controller 200 updates the progress information and environmental information in response to the operations of the local devices 2.
[0042] For example, the upper controller 200 communicates synchronously with a plurality of local controllers 100. Synchronous communication means repeatedly communicating with a plurality of local controllers 100 in a synchronous communication cycle synchronized with a synchronous frame of a fixed period. The upper controller 200 repeatedly outputs an execution command and updates progress information and environmental information in synchronization with the synchronous communication cycle.
[0043] Each of the multiple local controllers 100 operates the local device 2 under its jurisdiction based on the task program of the next task. In the figure, the control system 3 has four local controllers 100A, 100B, 100C, and 100D. The local controller 100A is an equipment controller that controls the transport device 2A, the local controller 100B is a robot controller that controls the robot 2B, the local controller 100C is a robot controller that controls the robot 2C, and the local controller 100D is a robot controller that controls the mobile robot 2D. The number of local controllers 100 and the configuration of each local controller 100 can be changed as appropriate depending on the number and type of the local devices 2.
[0044] The data management device 300 includes the virtual controller and performs synchronous or asynchronous communication with the host controller 200. The data management device 300 includes the virtual controller and is configured to execute the following operations: reproducing in a virtual space a state of the real space in which the operations of the multiple local devices 2 have been interrupted; and resuming the operations of the multiple virtual local devices by the virtual controller based on an operation program in the virtual space that reproduces the state of the real space.
[0045] As shown in FIG. 8, the upper controller 200 has, as its functional configuration (hereinafter referred to as "functional blocks"), a process database 211, an order acquisition unit 212, a process allocation unit 213, a process storage unit 214, an environmental information storage unit 215, a command output unit 216, a progress update unit 217, an environmental update unit 218, and an operation interruption unit 219.
[0046] The process database 211 stores a plurality of processes for each of a plurality of types of workpieces 9 that are the targets of work by the production system 1. Each process includes identification information for each of a plurality of tasks for the workpiece 9, an execution order of the plurality of tasks, and identification information for the local devices 2 that execute each of the plurality of tasks.
[0047] The multiple tasks may include tasks executed by different local devices 2. For example, the multiple tasks may include multiple tasks executed by the robots 2B, 2C or the mobile robot 2D, and one or more tasks executed by other local devices 2. A task is a unit of work executed by one local device 2.
[0048] The order acquisition unit 212 acquires a production order for the workpiece 9 from the production management controller 4. The production order includes the type of workpiece 9 to be produced and the production quantity for each type. The production management controller 4 is a controller that allocates the production order for the workpiece 9 according to a production plan to multiple factory cells in, for example, a manufacturing execution system (MES) of a factory, and performs synchronous or asynchronous communication with the upper controller 200.
[0049] The process allocation unit 213 allocates a process to a work 9 specified by a production order. For example, the process allocation unit 213 allocates a process to a work 9 specified by a production order based on the process database 211. When a production order specifies multiple work pieces 9, the process allocation unit 213 allocates a process to each of the multiple work pieces 9 based on the process database 211. The multiple work pieces 9 may include work pieces 9 of different types.
[0050] The process storage unit 214 stores the process allocation result by the process allocation unit 213 and progress information for each process (progress information in real space). FIG. 9 is a table illustrating the process allocation result for multiple works 9. In this table, the order of execution of multiple tasks in each process is indicated by the order from left to right. In FIG. 9, a process including three-step tasks a1, a2, and a3 is assigned to the work A. A process including five-step tasks b1, b2, b3, b4, and b5 is assigned to the work B. A process including two-step tasks c1 and c2 is assigned to the work C. A process including three-step tasks d1, d2, and d3 is assigned to the work D. A process including four-step tasks e1, e2, e3, and e4 is assigned to the work E.
[0051] The progress information for each process is, for example, information indicating whether each task of the process is not started, is running, or is completed. The progress information may be a flag indicating not started, is running, or is completed, or may be a start time and a completion time. When the progress information is a start time and a completion time, if neither the start time nor the completion time is stamped, it is not started, if the start time is stamped but the completion time is not, it is running, and if the completion time is stamped, it is completed.
[0052] The environment information storage unit 215 stores real environment information that represents the state of the real space. The real environment information includes, for example, information about the local device 2 (hereinafter referred to as "device information") and information about the workpiece 9 (hereinafter referred to as "workpiece information"). A specific example of the device information is position and orientation information about the local device 2. A specific example of the position and orientation information about the local device 2 is orientation information about the robots 2B and 2C and the position and orientation information about the mobile robot 2D. The orientation information about the robots 2B and 2C may be operation angle information about the joints 31, 32, 33, 34, 35, and 36, or may be position and orientation information about the tip 18. The position and orientation information about the mobile robot 2D includes, for example, position and orientation information about the automatic guided vehicle 50 and orientation information about the robot 10. The orientation information about the robot 10 may be operation angle information about the joints 31, 32, 33, 34, 35, and 36, or may be position and orientation information about the tip 18 (position and orientation based on the automatic guided vehicle 50).
[0053] The device information includes information on a control signal (hereinafter referred to as a "real control signal") generated between the local controller 100 and the local device 2 under its jurisdiction. The real control signal may be an internal signal generated by the local controller 100 for controlling the local device 2 under its jurisdiction, an output signal output from the local controller 100 to the local device 2 under its jurisdiction, or a feedback signal output from the local device 2 under its jurisdiction to the local controller 100. A specific example of the internal signal is a command value for the position and orientation of the local device 2 under its jurisdiction. A specific example of the output signal is an output current value to an actuator of the local device 2 under its jurisdiction. A specific example of the feedback signal is a detection value of the position, orientation, speed, etc. of the local device 2.
[0054] 10 is a table illustrating an example of device information, in which identification information of the local device 2 is associated with at least one status parameter indicating information about the local device 2.
[0055] A specific example of the work information is the position information of each work 9. Fig. 11 is a table illustrating an example of the work information. In Fig. 11, the identification information of the work 9 (e.g., type and serial number) and the position information of the work 9 are associated with each other.
[0056] Returning to Fig. 8, command output unit 216 outputs an execution command for the next task based on the process stored in process storage unit 214, progress information of the process, and real environment information stored in environment information storage unit 215. A next task among a plurality of tasks is a task that has not been started, and either there is no previous task or the previous task has been completed. For example, command output unit 216 extracts the next task based on the progress information of the process, and when the real environment information satisfies the execution condition for the next task, outputs an execution command for the next task to one of the plurality of local controllers 100.
[0057] Specific examples of execution conditions include the following: Example 1-1) Workpiece 9, which is the target of the next task, has reached a position where the next task can be executed. Example 1-2) There are no obstacles within the operating range of local device 2 that will execute the next task.
[0058] Specific examples of the obstacle include another local device 2, a workpiece 9 held by the other local device 2, a person, and the like.
[0059] When multiple processes are assigned to multiple works 9 in the process storage unit 214, the command output unit 216 extracts multiple next tasks for each of the multiple processes based on multiple pieces of progress information for each of the multiple processes, and sequentially outputs the extracted next tasks starting from the task whose real environment information satisfies the execution condition. Note that the command output unit 216 may output an execution command for the next task in response to a request from the local controller 100 in the above-mentioned synchronous communication, or may output an execution command regardless of the presence or absence of a request from the local controller 100.
[0060] The progress update unit 217 updates the progress information in the process storage unit 214 in accordance with the execution status of the next task by the multiple local devices 2. For example, the progress update unit 217 updates the progress information in the process storage unit 214 based on status information (to be described later) output by the local controller 100.
[0061] The environment update unit 218 updates the real environment information in the environment information storage unit 215 in response to operations of the multiple local devices 2. For example, the environment update unit 218 acquires status information of the local devices 2 from each of the multiple local controllers 100, and updates the device information based on the status information.
[0062] The environment update unit 218 may acquire status information of the multiple local devices 2 from the multiple local controllers 100 in each cycle of the synchronous communication, and update the device information based on the status information. This allows the status information of the multiple local devices 2 to be reflected in the real environment information in a state where they are synchronized with each other.
[0063] The environment updating unit 218 may further update the workpiece information based on the status information of the local device 2. For example, the environment updating unit 218 may update the position information of each workpiece 9 based on the status information of the transport device 2A acquired from the local controller 100A. In addition, in the example of Fig. 3, the environment updating unit 218 may update the position of the workpiece 9A from on the workpiece support part 92 to on the workpiece support part 93 as the robot 2B completes the task of transporting the workpiece 9A from the workpiece support part 92 to the workpiece support part 93.
[0064] The environment update unit 218 may update the real environment information further based on the detection result of the environment sensor 5. By aggregating the detection result of the environment sensor 5 into the environment information of the upper controller 200, the detection result of the environment sensor 5 and the status information of the multiple local devices 2 can be reflected in the environment information along the same time axis. For example, the environment update unit 218 may update the work information based on image information etc. detected by the environment sensor 5, or may update the device information based on image information etc. detected by the environment sensor 5. As an example, the environment update unit 218 may update the position of the work based on image information etc. detected by the environment sensor 5.
[0065] The operation interruption unit 219 interrupts the operation of the multiple local devices 2 by the controller 6. For example, the operation interruption unit 219 interrupts the operation of the multiple local devices 2 when it detects an abnormality in any of the multiple local devices 2 based on the environmental information stored in the environmental information storage unit 215. For example, when it detects an abnormality in any of the multiple local devices 2, the operation interruption unit 219 interrupts the output of an execution command by the command output unit 216, and further causes each of the multiple local controllers 100 to interrupt a task being executed.
[0066] An abnormality in any of the multiple local devices 2 includes an abnormality in the local device 2 itself and an abnormality in the surrounding environment caused by the operation of the local device 2 (for example, an abnormality in the position of the workpiece 9). In the example of Fig. 3, when the device information indicates that the tip portion 18 of the robot 2B has reached the workpiece support portion 93, but the workpiece information indicates that the workpiece 9A remains on the workpiece support portion 92, the operation interruption unit 219 detects the abnormality. Such a discrepancy between the device information and the workpiece information can be detected when the device information is updated based on the status information of the local device 2 and the workpiece information is updated based on the detection result of the environmental sensor 5.
[0067] 5, when any of the equipment information of the robot 2B (e.g., position information, speed information, torque information, current information, etc.) indicates an abnormal value, the operation interruption unit 219 detects the abnormality. A specific example of a case in which the equipment information indicates an abnormal value is when the torque information or current information becomes an excessively large value due to a failure of a reducer or the like. Another example of a case in which the equipment information indicates an abnormal value is when the drive current of the tip portion 18 becomes an excessively small value due to a failure of the tip portion 18 to grip the workpiece 9.
[0068] As shown in Fig. 8, the local controller 100 has, as functional blocks, a program storage unit 111, a control unit 112, and a status output unit 113. The program storage unit 111 stores an operation program of the local device 2 under its jurisdiction. As described above, the operation program may include a plurality of task programs that are divided into a plurality of tasks. Each of the plurality of task programs includes a plurality of operation commands in a time series. When the local device 2 under its jurisdiction is a robot 2B, 2C or a mobile robot 2D, the operation command includes a target position and a target posture of the tip part 18, and a moving speed to the target position and the target posture, etc.
[0069] When the control unit 112 acquires an execution command output by the command output unit 216, the control unit 112 extracts a task program corresponding to the next task indicated by the execution command from the program storage unit 111, and operates the local device 2 based on the extracted task program.
[0070] The status output unit 113 outputs the above-mentioned status information of the jurisdiction local device 2 to the upper controller 200. The status information includes at least position and attitude information of the jurisdiction local device 2. The status information includes information of a control signal (the above-mentioned real control signal) generated between the local controller 100 and the jurisdiction local device 2. The real control signal may be an internal signal generated in the local controller 100 for controlling the jurisdiction local device 2, an output signal output from the local controller 100 to the jurisdiction local device 2, or a feedback signal output from the jurisdiction local device 2 to the local controller 100.
[0071] A specific example of the internal signal is a command value for the position and orientation of the local device 2 having jurisdiction. A specific example of the output signal is an output current value to an actuator of the local device 2 having jurisdiction. A specific example of the feedback signal is a detection value of the position, orientation, speed, etc. of the local device 2. The feedback signal may further include the position, speed, driving force (e.g. torque), driving current, etc. of the actuator of the local device 2 having jurisdiction.
[0072] The status information may also include the occurrence status of an alarm (e.g., an overcurrent alarm) in the control of the jurisdiction local device 2. The status output unit 113 may output a task completion notification in the status information in response to completion of the execution of the task program.
[0073] The status output unit 113 may output the status information in response to a request from the upper controller 200 in the above-mentioned synchronous communication, or may output the status information regardless of the presence or absence of a request from the upper controller 200.
[0074] As shown in FIG. 12, the data management device 300 has a model storage unit 311 and a virtual controller 7. The model storage unit 311 stores models of a plurality of virtual local devices 2v corresponding to a plurality of local devices 2. The models of the virtual local devices 2v include parameters such as the arrangement, structure, dimensions of each part, and mass of each part of the corresponding local device 2 in real space. The model storage unit 311 also stores models of the surrounding environment of the plurality of virtual local devices 2v in virtual space. The models of the surrounding environment include parameters such as the arrangement, three-dimensional shape, dimensions, etc. of peripheral objects of the plurality of local devices 2 in real space.
[0075] The virtual controller 7 operates the multiple virtual local devices 2v in the virtual space based on an operation program. The virtual space is a simulated virtual space in which the multiple local devices 2 do not exist. Operating the multiple virtual local devices 2v in the virtual space means simulating the operation of the multiple local devices 2 in the real space based on models of the multiple virtual local devices 2v stored in the model storage unit 311 and a model of the surrounding environment of the multiple virtual local devices 2v.
[0076] For example, the virtual controller 7 includes a plurality of virtual local controllers 400 and a virtual upper controller 500 corresponding to the upper controller 200. Each of the plurality of virtual local controllers 400 controls one of the plurality of virtual local devices 2v under its jurisdiction based on an operation program.
[0077] The virtual superior controller 500 outputs an execution command of an operation program to each of the virtual local controllers 400 based on the process for the virtual work 9v, progress information of the process, and environmental information. For example, the virtual superior controller 500 outputs an execution command of a next task to each of the virtual local controllers 400 based on the process for the virtual work 9v, progress information of the process, and environmental information. The virtual superior controller 500 updates the progress information and environmental information according to the operations of the multiple virtual local devices 2v.
[0078] The multiple virtual local controllers 400 respectively correspond to the multiple local controllers 100. For example, the virtual controller 7 has a virtual local controller 400A corresponding to the local controller 100A, a virtual local controller 400B corresponding to the local controller 100B, a virtual local controller 400C corresponding to the local controller 100C, and a virtual local controller 400D corresponding to the local controller 100D.
[0079] The virtual local controllers 400B, 400C, and 400D corresponding to the local controllers 100B, 100C, and 100D, which are robot controllers, are virtual robot controllers. The virtual local devices controlled by the virtual local controllers 400B and 400C are virtual robots (for example, the above-mentioned virtual robots 2Bv and 2Cv), and the virtual local devices controlled by the virtual local controller 400D are virtual mobile robots.
[0080] Each of the multiple virtual local controllers 400 operates the virtual local device 2v under its jurisdiction in the virtual space based on the task program of the next task and the model of the virtual local device 2v and the model of the surrounding environment stored in the model storage unit 311.
[0081] The virtual upper controller 500 has, as more detailed functional blocks, a process database 511, an order acquisition unit 512, a process allocation unit 513, a process storage unit 514, an environmental information storage unit 515, a command output unit 516, a progress update unit 217, and an environment update unit 518 which correspond respectively to the process database 211, the order acquisition unit 212, the process allocation unit 213, the process storage unit 214, the environmental information storage unit 215, the command output unit 216, the progress update unit 217, and the environment update unit 218.
[0082] Similar to the process database 211, the process database 511 stores a plurality of processes for each of a plurality of types of virtual workpieces 9v targeted by the production system 1. The order acquisition unit 512 acquires a production order for simulation, for example, from an input device 396 described later.
[0083] The process allocation unit 513 allocates a process to a virtual work 9v specified by a production order, similar to the process allocation unit 213. For example, the process allocation unit 513 allocates a process to a virtual work 9v specified by a production order based on the process database 511. Similar to the process storage unit 214, the process storage unit 514 stores the process allocation results by the process allocation unit 513 and progress information for each process (progress information in the virtual space).
[0084] The environment information storage unit 515 stores virtual environment information. The configuration of the virtual environment information is the same as the configuration of the environment information. The virtual environment information includes device information in the virtual space and work information in the virtual space. A specific example of the device information in the virtual space is position and orientation information of the virtual local device 2v in the virtual space.
[0085] The device information in the virtual space includes information on a control signal (hereinafter referred to as a "virtual control signal") generated between the virtual local controller 400 and the virtual local device 2v under its jurisdiction. The virtual control signal may be an internal signal generated by the virtual local controller 400 for controlling the virtual local device 2v under its jurisdiction, an output signal output from the virtual local controller 400 to the virtual local device 2v under its jurisdiction, or a feedback signal output from the virtual local device 2v to the virtual local controller 400. A specific example of the internal signal is a command value for the position and orientation of the virtual local device 2v under its jurisdiction. A specific example of the output signal is an output current value to an actuator of the virtual local device 2v under its jurisdiction. A specific example of the feedback signal is a simulation result of the operation of the virtual local device 2v under its jurisdiction based on the output signal and the model information stored in the model storage unit 311. A specific example of the workpiece information in the virtual space is position information of each virtual workpiece 9v in the virtual space.
[0086] Similar to the command output unit 216, the command output unit 516 outputs a command to execute the next task based on the process stored in the process storage unit 514, progress information of the process in the virtual space, and virtual environment information stored in the environment information storage unit 515.
[0087] The command output unit 516 outputs an execution command for the next task to any one of the plurality of virtual local controllers 400 based on the process database 511. For example, the command output unit 516 extracts the next task based on the progress information of the process, and when the virtual environment information satisfies the execution condition for the next task, outputs an execution command for the next task to any one of the plurality of virtual local controllers 400. For example, the command output unit 516 outputs an execution command for the next task to the virtual local controller 400 of the virtual local device 2v of the local device 2 associated with the next task in the process database 511.
[0088] The progress update unit 517, like the progress update unit 217, updates the progress information in the process storage unit 514 in accordance with the execution status of the next task by the multiple virtual local devices. For example, the progress update unit 517 updates the progress information in the process storage unit 514 based on status information (to be described later) output by the virtual local controller 400. The environment update unit 518 updates the virtual environment information in the environment information storage unit 515 in accordance with the operations of the multiple virtual local devices 2v.
[0089] The virtual local controller 400 has, as more detailed functional blocks, a program storage unit 411, a control unit 412, and a status output unit 413, which respectively correspond to the program storage unit 111, the control unit 112, and the status output unit 113. The program storage unit 411, like the program storage unit 111, stores the operation program of the virtual local device 2v under its jurisdiction.
[0090] When the control unit 412 acquires an execution command output by the command output unit 516, it extracts a task program corresponding to the next task indicated by the execution command from the program storage unit 411, and operates the virtual local device 2v based on the extracted task program. Specifically, the control unit 412 simulates the operation of the local device 2 corresponding to the virtual local device 2v under its jurisdiction in the real space based on models of the virtual local devices 2v stored in the model storage unit 311 and models of the surrounding environments of the virtual local devices 2v. The status output unit 413 outputs the above-mentioned status information of the virtual local device 2v under its jurisdiction to the virtual upper controller 500, similar to the status output unit 113.
[0091] As shown in FIG. 13, the data management device 300 further includes a real information collection unit 312 , a real information database 313 , a virtual information collection unit 314 , a virtual information database 315 , an interrupted state reproduction unit 321 , and a resume simulator 322 .
[0092] The real information collecting unit 312 collects real environmental information from the environmental information storage unit 215, and collects real progress information, which is progress information for each process in real space, from the process storage unit 214. The real information database 313 accumulates a real data set in which the real environmental information and real progress information collected by the real information collecting unit 312 are associated with each other in chronological order.
[0093] The virtual information collecting unit 314 collects virtual environment information, and collects virtual progress information, which is progress information for each process in the virtual space. As described with reference to Fig. 12, the virtual environment information is stored in the environment information storage unit 515, and the virtual progress information is stored in the process storage unit 514. Thus, the virtual information collecting unit 314 may collect the virtual environment information from the environment information storage unit 515, and collect the virtual progress information from the process storage unit 514. The virtual information database 315 accumulates a virtual data set in which the virtual environment information and the virtual progress information collected by the virtual information collecting unit 314 are associated with each other in chronological order.
[0094] The interrupted state reproducing unit 321 reproduces in the virtual space the state of the real space in which the operations of the multiple local devices 2 have been interrupted. For example, the interrupted state reproducing unit 321 reproduces in the virtual space the state of the real space based on the real environment information stored in the environment information storage unit 215. For example, the interrupted state reproducing unit 321 stores in the environment information storage unit 515 a copy of the latest real environment information collected by the real information collecting unit 312 from the environment information storage unit 215 and accumulated in the real information database 313 as the latest virtual environment information. In addition, the interrupted state reproducing unit 321 stores in the process storage unit 514 a copy of the latest real progress information collected by the real information collecting unit 312 from the process storage unit 214 and accumulated in the real information database 313 as the latest virtual progress information.
[0095] As described above, the real environment information may include device information. The device information is an example of state information of the multiple local devices 2 held by the controller 6. Therefore, when the real environment information includes device information, the interrupted state reproducing unit 321 reproduces the state of the real space in the virtual space based at least in part on the state information of the multiple local devices 2 held by the controller 6.
[0096] The real environment information may include information that is updated at least partially based on the detection result by the environmental sensor 5. In this case, the interrupted state reproducing unit 321 reproduces the state of the real space in the virtual space based on the detection result by the environmental sensor 5.
[0097] The resume simulator 322 resumes the operations of one or more virtual local devices 2v based on an operation program using the virtual controller 7 in the virtual space in which the interrupted state reproducing unit 321 reproduces the state of the real space. The one or more virtual local devices 2v that are targets for resuming the operation include one or more virtual robots. For example, the resume simulator 322 resumes the operations of the multiple local devices 2 using the virtual controller 7 based on operation commands after the interruption of the operation.
[0098] For example, the resume simulator 322 causes the command output unit 516 to start outputting a command to execute the next task in a state in which a copy of the latest real environment information is stored in the environment information storage unit 515 as the latest virtual environment information and a copy of the latest real progress information is stored in the process storage unit 514 as the latest virtual progress information. Thereafter, the virtual environment information stored in the environment information storage unit 515 and the virtual progress information stored in the process storage unit 514 are updated according to the operations of one or more virtual local devices 2v in the virtual space.
[0099] The resume simulator 322 may acquire operation capability information of the multiple local devices 2 whose operation has been suspended from the controller 6 for each of the multiple local devices 2, and resume the operation of one or more virtual local devices 2v corresponding to one or more local devices 2 that are operable while stopping one or more virtual local devices 2v corresponding to one or more local devices 2 that are inoperable (see (b) of FIG. 6). For example, the resume simulator 322 acquires the operation capability information of each of the multiple local devices 2 based on device information included in the latest real environment information.
[0100] The data management device 300 may further include a restart evaluation unit 323 and a restart video playback unit 324. The restart evaluation unit 323 evaluates the operation of one or more virtual local devices 2v restarted by the restart simulator 322 based on a predetermined evaluation condition. For example, after one or more virtual local devices 2v restart their operation, the restart evaluation unit 323 evaluates the operation of the virtual local devices 2v based on the virtual data set collected by the virtual information collection unit 314 and accumulated in the virtual information database 315.
[0101] Specific examples of evaluation conditions are shown below. Example 2-1) None of the virtual local devices 2v collide with other virtual local devices 2v: OK / One or more virtual local devices 2v collide with other virtual local devices 2v: NG Example 2-2) None of the virtual local devices 2v collide with surrounding objects: OK / One or more virtual local devices 2v collide with surrounding objects: NG Example 2-3) None of the virtual local devices 2v collide with the virtual work 9v: OK / One or more virtual local devices 2v collide with the virtual work 9v: NG
[0102] For example, when the restart simulator 322 restarts the operation of one or more virtual local devices 2v corresponding to one or more local devices 2 that are operable while stopping one or more virtual local devices 2v corresponding to one or more local devices 2 that are inoperable, the restart evaluation unit 323 may evaluate whether or not there is a collision between the one or more virtual local devices 2v corresponding to the one or more local devices 2 that are inoperable and the one or more virtual local devices 2v corresponding to the one or more local devices 2 that are operable.
[0103] The restart evaluation unit 323 may calculate, for each of the one or more virtual local devices 2 v, an operable period after restarting the operation of the one or more virtual local devices 2 v based on the operating program, based on the operation of the one or more virtual local devices 2 v. For example, the restart evaluation unit 323 calculates, as the operable period, a period during which the evaluation result based on the above-mentioned evaluation conditions is OK in the operation of the one or more virtual local devices 2 v.
[0104] The resumed video playback unit 324 displays a video of the operation of one or more virtual local devices 2v resumed by the resume simulator. For example, after the operation of one or more virtual local devices 2v is resumed, the resumed video playback unit 324 generates an animation of CG images of the multiple virtual local devices 2v in the virtual space based on the virtual environment information collected by the virtual information collection unit 314 and accumulated in the virtual information database 315, the models of the multiple virtual local devices 2v stored in the model storage unit 311, and the models of the surrounding environments of the multiple virtual local devices 2v, and displays the generated animation on a display device 395 described later or the like.
[0105] The data management device 300 may further include a restart instruction acquisition unit 325 and an operation resuming unit 326. The restart instruction acquisition unit 325 displays a restart instruction screen including the evaluation result by the resumption evaluation unit 323 and a restart instruction input unit on a display device 395 described later or the like. The restart instruction acquisition unit 325 may display the restart instruction screen further including a display window of the video played by the resumed video playback unit 324.
[0106] The operation resuming unit 326 causes the controller 6 to resume at least a part of the operation of the one or more local devices 2 based on the operation program, based on the evaluation result by the resumption evaluation unit 323. The one or more local devices 2 as the object of resumption of the operation include one or more robots (e.g., robots 2B, 2C, or mobile robot 2D). For example, the operation resuming unit 326 outputs a resume command to the command output unit 216 to resume at least a part of the operation of the one or more local devices 2 evaluated as OK by the resumption evaluation unit 323. In response to this, the command output unit 216 causes the local controller 100 of the one or more local devices 2 as the object of resumption to resume the interrupted task, and resumes output of an execution command according to the progress of the task.
[0107] The operation resuming unit 326 may cause the controller 6 to resume the operations of one or more local devices 2 based on the operation program, based on an operation (operation by the user) to a resume instruction input unit on the resume instruction screen. As described above, the resume instruction screen includes a display of the evaluation result by the resume evaluation unit 323 and a display of the resume instruction input unit. Therefore, the user operates the resume instruction input unit based on the display of the evaluation result by the resume evaluation unit 323. Therefore, causing the controller 6 to resume the operations of one or more local devices 2 based on the operation program, based on an operation to the resume instruction input unit on the resume instruction screen, is included in resuming the operations of one or more local devices 2 based on the operation program, based on the evaluation result by the resume evaluation unit 323.
[0108] Resuming at least a part of the operation of the one or more local devices 2 based on the operation program may include resuming a first mode in which at least a part of the one or more local devices 2 is operated based on an operation command after the interruption of the operation, and resuming a second mode in which at least a part of the one or more local devices 2 is operated based on an operation command before the interruption of the operation. The first mode includes operating at least a part of the one or more local devices 2 based on an operation command before the interruption of the operation and an operation command after the interruption of the operation.
[0109] The second mode includes operating at least a part of one or more local devices 2 so as to return to a start position of an operation command issued before the interruption of the operation, based on the operation command issued before the interruption of the operation. The restart simulator 322 may restart the operation of one or more virtual local devices 2v based on an operation program by the virtual controller 7 for each of a plurality of restart modes including the first mode and the second mode. In this case, the restart evaluation unit 323 may evaluate the operation of one or more virtual local devices 2v for each of a plurality of restart modes.
[0110] The restart instruction acquisition unit 325 may display a restart instruction screen including an evaluation result for each of a plurality of restart modes by the restart evaluation unit 323 and a restart instruction input unit capable of selecting one of the plurality of restart modes. The restart instruction acquisition unit 325 may display a restart instruction screen including an operable period for each of one or more local devices 2 and a restart instruction input unit capable of specifying a restart point. The restart instruction acquisition unit 325 may display a restart instruction screen including an operable period for each of one or more local devices 2 and a restart instruction input unit capable of specifying an end point of the resumed operation.
[0111] 14 is a schematic diagram illustrating a restart instruction screen. A restart instruction screen 350 shown in FIG.
[0112] The video window 351 is a window that displays the video played by the resumed video playback unit 324. The resumed video playback unit 324 plays the video in the video window 351. The evaluation result window 352 is a window that displays the evaluation result by the resume evaluation unit 323. The resume instruction acquisition unit 325 displays the evaluation result by the resume evaluation unit 323 in the evaluation result window 352 as text or the like. The evaluation result window 353 is a window that displays the operable period for each of the one or more local devices 2 after the operation is resumed. The resume instruction acquisition unit 325 derives the operable period based on the evaluation result by the resume evaluation unit 323, and displays the derived result in the evaluation result window 353 as text or the like.
[0113] The resume instruction input unit 360 is an operation input unit for instructing the restart of operations of one or more local devices 2. For example, the resume instruction input unit 360 has a mode selection unit 361, a resume time point designation unit 362, an end time point designation unit 363, a play instruction button 364, and an operation resume instruction button 365.
[0114] The mode selection unit 361 is an operation input unit for selecting a restart mode, for example, by using a radio button. In the illustrated example, a "continue mode" corresponding to the first mode and a "return to origin mode" corresponding to the second mode can be selected. The return to origin mode is a mode for returning to the start position of the first operation command in the operation program.
[0115] The restart time designation unit 362 is an operation input unit for inputting the restart time of the operation in the continuation mode. For example, the restart time designation unit 362 is an operation input unit for inputting the number of steps after the interrupted step at which the operation is to be restarted. Here, a "step" means one operation corresponding to one operation command.
[0116] The end time point designation unit 363 is an operation input unit for inputting the end time point of the operation in the continuation mode. In the illustrated example, any of "until the interrupted task is completed," "until the designated task is completed," and "until all tasks are completed" can be selected by using a radio button or the like. The end time point designation unit 363 further includes an input unit for inputting the "designated task" when "until the designated task is completed" is selected.
[0117] The playback instruction button 364 is an operation input unit for instructing playback of a video of the operation of one or more virtual local devices 2v. When the playback instruction button 364 is operated, the resumed video playback unit 324 displays a video of the operation of one or more virtual local devices 2v in the video window 351 based on inputs to the mode selection unit 361, the resume time point designation unit 362, and the end time point designation unit 363. For example, the resumed video playback unit 324 plays, in the playback mode selected by the mode selection unit 361, a video of the operation of one or more virtual local devices 2v from the resume time point designated by the resume time point designation unit 362 to the end time point designated by the end time point designation unit 363 in the video window 351.
[0118] The operation restart instruction button 365 is an operation input unit that instructs restart of the operation of one or more local devices 2. The operation restart unit 326 causes the controller 6 to restart the operation of one or more local devices 2 based on the operation program in response to an operation input to the operation restart instruction button 365. For example, the operation restart unit 326 causes the controller 6 to restart at least a part of the operation of the one or more local devices 2 in the playback mode selected by the mode selection unit 361, based on an operation command from after the restart time point specified by the restart time point designation unit 362 to before the end time point specified by the end time point designation unit 363.
[0119] The re-simulation instruction button 366 is an operation input unit for instructing re-execution of the resumed simulation. In response to the operation input to the re-simulation instruction button 366, the interrupted state reproducing unit 321 stores again a copy of the latest real environment information in the real information database 313 in the environment information storage unit 515 as the latest virtual environment information. In addition, the interrupted state reproducing unit 321 stores again a copy of the latest real progress information in the real information database 313 in the process storage unit 514 as the latest virtual progress information. After that, the resume simulator 322 causes the virtual controller 7 to resume the operation of one or more virtual local devices 2v based on the operating program.
[0120] The data management device 300 may further include a simulation condition acquisition unit 327. The simulation condition acquisition unit 327 displays a simulation condition designation screen in which one of a plurality of restart modes including a first mode and a second mode can be selected. In this case, the restart simulator 322 restarts the operation of one or more local devices 2 by the virtual controller 7 in the restart mode selected on the simulation condition designation screen. The simulation condition acquisition unit 327 may display a simulation condition designation screen in which a simulation start time point in the operation program can be designated. The simulation condition acquisition unit 327 may display a simulation condition designation screen in which a simulation end time point in the operation program can be designated.
[0121] 15 is a schematic diagram illustrating a simulation condition designation screen 370. The simulation condition designation screen 370 shown in FIG.
[0122] The mode selection unit 371 is an operation input unit for selecting a restart mode, for example, by using a radio button, etc. In the illustrated example, the "continuation mode" corresponding to the first mode and the "return to origin mode" corresponding to the second mode can be selected.
[0123] The start time point designation unit 372 is an operation input unit for inputting the time point at which the operation in the continuation mode is to be resumed. For example, the start time point designation unit 372 is an operation input unit for inputting the number of steps after the interrupted step at which the operation is to be resumed.
[0124] The end time point designation unit 373 is an operation input unit for inputting the end time point of the operation in the continuation mode. In the illustrated example, any of "until the interrupted task is completed," "until the designated task is completed," and "until all tasks are completed" can be selected by using a radio button or the like. The end time point designation unit 373 further includes an input unit for inputting the "designated task" when "until the designated task is completed" is selected.
[0125] The simulation instruction button 374 is an operation input unit for instructing the restart of the operation of one or more virtual local devices 2 v. The restart simulator 322 causes the virtual controller 7 to restart the operation of one or more virtual local devices 2 v based on the operation program in response to an operation input to the simulation instruction button 374. For example, the restart simulator 322 causes the virtual controller 7 to restart the operation of one or more virtual local devices 2 v based on an operation command from the start time designated in the start time designation unit 372 to the end time designated in the end time designation unit 373 in the playback mode selected in the mode selection unit 371.
[0126] The simulation condition acquisition unit 327 may display the simulation condition specification screen 370 again when the re-simulation instruction button 366 described above is operated after the simulation.
[0127] The real environment data stored in the real information database 313 and the virtual environment data stored in the virtual information database 315 can be used to determine whether or not to interrupt the operations of the multiple local devices 2. For example, the operation interruption unit 219 may interrupt the operations of the multiple local devices 2 by the controller 6 when a difference occurs between the state of the real space while the multiple local devices 2 are operating based on an operation program and the state of the virtual space while the multiple virtual local devices 2v are operating based on an operation program.
[0128] For example, the data management device 300 further includes a task comparison unit 316. The task comparison unit 316 compares the real environment information accumulated in the real information database 313 with the virtual environment information accumulated in the virtual information database 315 for each progress of each process. Comparing for each progress of a process means comparing the real environment information and the virtual environment information in a real data set and a virtual data set in which the real progress information and the virtual progress information match each other.
[0129] When a difference between the state of the real space and the state of the virtual space is detected based on the comparison result of the task comparison unit 316, the operation interruption unit 219 interrupts the operation of the multiple local devices 2 by the controller 6.
[0130] 16, the environment information storage unit 215 may include a peripheral information storage unit 328. The peripheral information storage unit 328 stores peripheral behavior information indicating how a second controller that controls other machines of the multiple local devices 2 operates the other machines after the operation of the multiple local devices 2 is interrupted. In this case, the resumption evaluation unit 323 may evaluate the operation of one or more virtual local devices 2v further based on the peripheral behavior information.
[0131] 16 shows a processing device 94 such as an NC processing device as an example of another machine, and a device controller 95 that controls the processing device 94 as an example of a second controller. The processing device 94 has a door 96 for loading and unloading the workpiece 9. For example, when the virtual local device 2v resumes the operation of loading or unloading the workpiece 9 into or from the processing device 94, if it is unknown whether the door 96 is open, it is not possible to evaluate whether the virtual local device 2v will collide with the door 96.
[0132] A specific example of the peripheral behavior of the processing device 94 is shown below. Example 3-1) When the operations of multiple local devices 2 are interrupted, the currently executing processing is completed and the door 96 is put on standby with the door 96 open. Example 3-2) When the operation of multiple local devices 2 is interrupted, the currently executing processing is completed, and the door 96 is kept closed while on standby, and the door 96 is opened immediately after the operation of one or more local devices 2 is resumed. Example 3-3) If the operation of multiple local devices 2 is interrupted, processing is immediately interrupted and resumed when the operation of one or more local devices 2 resumes.
[0133] Based on the peripheral behavior information, it is possible to identify whether the door 96 is open or not at the time when the virtual local device 2v resumes the operation of carrying the workpiece 9 into or out of the processing device 94, and to evaluate the operation of the virtual local device 2v based on the identification result. The peripheral behavior information is acquired by the environment update unit 218 from the equipment controller 95 by synchronous communication or asynchronous communication, and is stored in the environment information storage unit 215.
[0134] As shown in FIG. 17, the data management device 300 may further include a program acquisition unit 331, a program generation unit 332, and a program distribution unit 333 as functional blocks.
[0135] The program acquisition unit 331 acquires the operation program registered by teaching in each local controller 100 , and stores it in the program storage unit 411 of the virtual local controller 400 .
[0136] The program generation unit 332 repeats the steps of operating the multiple virtual local devices 2v using the virtual controller 7 based on the operation program acquired by the program acquisition unit 331 and correcting the operation program in the program storage unit 411 based on the virtual environment information during operation of the multiple virtual local devices 2v until the operation of one or more virtual local devices 2v satisfies a predetermined condition. Hereinafter, this predetermined condition is referred to as a "program establishment condition."
[0137] Specific examples of program establishment conditions include that none of the virtual local devices 2v collide with other virtual local devices 2v, none of the virtual local devices 2v collide with surrounding objects, none of the virtual local devices 2v has an operation trajectory (path) that does not collide with (or interfere with) the virtual workpiece 9v, etc. Hereinafter, a program corrected by the program generation unit 332 based on the operation trajectory (path) generated by such interference avoidance path planning in the program storage unit 411 is referred to as a "generated program."
[0138] The program distribution unit 333 outputs the generated program in the program storage unit 411 to the corresponding local controller 100, and stores it in the program storage unit 111 of the local controller 100. For example, the program distribution unit 333 outputs the generated program to the corresponding local controller 100 via the upper controller 200. The local controller 100 operates the local device 2 under its jurisdiction based on the generated program.
[0139] FIG. 18 is a block diagram illustrating a hardware configuration of the control system 3. As shown in FIG. 18, the upper controller 200 has a circuit 290. The circuit 290 includes one or more processors 291, a memory 292, a storage 293, communication ports 294 and 295, and an input / output port 296. The storage 293 has a computer-readable storage medium such as a non-volatile semiconductor memory. The storage 293 stores a program for causing the upper controller 200 to operate the multiple local devices 2 based on an operation program in real space and to interrupt the operation of the multiple local devices 2. For example, the storage 293 stores a program for causing the upper controller 200 to configure each of the above-mentioned functional blocks.
[0140] The memory 292 temporarily stores the programs loaded from the storage medium of the storage 293 and the results of calculations by the processor 291. The processor 291 configures each functional block of the upper controller 200 by executing the above programs in cooperation with the memory 292. The communication port 294 communicates with the local controller 100 via the first network line NW1 in accordance with instructions from the processor 291. The communication port 295 communicates with the data management device 300 via the second network line NW2 in accordance with instructions from the processor 291. The input / output port 296 inputs and outputs information to and from the environmental sensor 5 in accordance with instructions from the processor 291.
[0141] The local controller 100 has a circuit 190. The circuit 190 includes one or more processors 191, a memory 192, a storage 193, a communication port 194, and a driver circuit 195. The storage 193 has a computer-readable storage medium such as a non-volatile semiconductor memory. The storage 193 stores a program for configuring the local controller 100 to configure each of the above-mentioned functional blocks.
[0142] The memory 192 temporarily stores the programs loaded from the storage medium of the storage 193 and the results of calculations by the processor 191. The processor 191 configures each functional block of the local controller 100 by executing the programs in cooperation with the memory 192. The communication port 194 communicates with the upper controller 200 via the first network line NW1 in accordance with a command from the processor 191. The driver circuit 195 outputs driving power to the local device 2 in accordance with a command from the processor 191.
[0143] The data management device 300 has a circuit 390. The circuit 390 includes one or more processors 391, a memory 392, a storage 393, a communication port 394, a display device 395, and an input device 396. The storage 393 has a computer-readable storage medium, such as a non-volatile semiconductor memory. The storage 393 stores a program for causing the data management device 300 to reproduce in a virtual space a state in which the operations of the multiple local devices 2 have been interrupted, and to resume the operations of the multiple virtual local devices based on an operation program by a virtual controller in the virtual space in which the state of the real space is reproduced. For example, the storage 393 stores a program for causing the data management device 300 to configure each of the above-mentioned functional blocks.
[0144] The memory 392 temporarily stores the program loaded from the storage medium of the storage 393 and the calculation result by the processor 391. The processor 391 configures each functional block of the data management device 300 by executing the above program in cooperation with the memory 392. The communication port 394 communicates with the upper controller 200 via the second network line NW2 according to a command from the processor 391. The display device 395 and the input device 396 function as a user interface of the data management device 300. The display device 395 includes, for example, a liquid crystal monitor, and is used to display information to the user. The input device 396 is, for example, a keypad, and acquires information input by the user. The display device 395 and the input device 396 may be integrated like a so-called touch panel. The display device 395 and the input device 396 may be provided in an external device connected to the data management device 300, or may be incorporated in the data management device 300.
[0145] In addition, the circuits 190, 290, and 390 are not necessarily limited to those that configure each function by a program. For example, the circuits 190, 290, and 390 may configure at least some of the functions by a dedicated logic circuit or an ASIC (Application Specific Integrated Circuit) that integrates the dedicated logic circuit. Each of the local controller 100, the upper controller 200, and the data management device 300 may be configured by multiple computers that can communicate with each other, and each computer may have a circuit. For example, the data management device 300 may be configured by multiple computers including a data collection device and a simulation device. In this case, each functional block of the data management device 300 described above may be distributed and configured on multiple computers. As an example, the virtual local controller 400, the virtual upper controller 500, the model storage unit 311, the program acquisition unit 331, the program generation unit 332, the program distribution unit 333, the interrupted state reproduction unit 321, the restart simulator 322, the restart evaluation unit 323, the restart video playback unit 324, the restart instruction acquisition unit 325, the operation restart unit 326, and the simulation condition acquisition unit 327 may be configured in the simulation device, and the real information collection unit 312, the real information database 313, the virtual information collection unit 314, the virtual information database 315, and the task comparison unit 316 may be configured in the data collection device. The data collection device may further collect and store the task program 130 and the control parameters of each local controller 100, and distribute the task program 130 to each local controller 100. In this case, the program acquisition unit 331 may acquire the task program 130 from the local controller 100 via the data collection device. The program distribution unit 333 may output the generated program to the local controller 100 via the data collection device. In addition, a simulation device may be configured in one computer by a program that consolidates the functions of the simulation device, and a data collection device may be configured in the same computer by a program that consolidates the functions of the data collection device.
[0146] [Control Procedure] As an example of a control method, a control procedure performed by the control system 3 is shown below. This procedure includes operating one or more robots in a real space based on an operation program, interrupting the operation of the one or more robots, reproducing in a virtual space the state of the real space in which the operation of the one or more robots was interrupted, and resuming the operation of the one or more virtual robots based on the operation program by a virtual controller in the virtual space that reproduces the state of the real space.
[0147] A specific example of the control procedure is shown below. The control procedure according to this specific example includes a program generation procedure by the data management device 300, a control procedure by the upper controller 200, a control procedure by the local controller 100, a data management procedure by the data management device 300, and an operation restart procedure by the upper controller 200. Each procedure is illustrated in detail below.
[0148] (Program Generation Procedure) 19, the data management device 300 first executes steps S01, S02, and S03. In step S01, the program acquisition unit 331 acquires an operation program registered by teaching in each local controller 100, and stores it in the program storage unit 411 of the virtual local controller 400.
[0149] In step S02, the program generation unit 332 operates the multiple virtual local devices 2v using the virtual controller 7 based on the operation program acquired by the program acquisition unit 331. During the operation period of the virtual local devices 2v, the virtual information collection unit 314 accumulates the above-mentioned virtual data set in the virtual information database 315.
[0150] In step S03, the program generation unit 332 checks, based on the virtual data set stored in the virtual information database 315, whether or not the operations of the multiple virtual local devices 2v satisfy the above-mentioned program establishment conditions.
[0151] If it is determined in step S03 that the operations of the multiple virtual local devices 2v do not satisfy the above program establishment conditions, the data management device 300 executes step S04. In step S04, the program generation unit 332 corrects the operation program in the program storage unit 411 based on the virtual data set (virtual environment information during operation of the multiple virtual local devices 2v) stored in the virtual information database 315. After that, the data management device 300 returns the process to step S01. Thereafter, until the operations of the multiple virtual local devices 2v satisfy the above program establishment conditions, the virtual controller 7 operates the multiple virtual local devices 2v, and it is confirmed whether the operations of the multiple virtual local devices 2v satisfy the program establishment conditions, and the operation program in the program storage unit 411 is corrected based on the virtual environment information during operation of the multiple virtual local devices 2v are repeated.
[0152] If it is determined in step S03 that the operations of the multiple virtual local devices 2v satisfy the program establishment condition, the data management device 300 executes step S05. In step S05, the program distribution unit 333 outputs the generated program in the program storage unit 411 to the corresponding local controller 100, and stores the program in the program storage unit 111 of the local controller 100. This completes the program generation procedure.
[0153] (Control procedure by the host controller) 20, the upper controller 200 first executes steps S11, S12, S13, S14, S15, and S16. In step S11, the order acquisition unit 212 waits for acquisition of a production order from the production management controller 4. In step S12, the process allocation unit 213 allocates a process to a work 9 specified by the production order and stores it in the process storage unit 214. In step S13, the command output unit 216 outputs an execution command for the next task based on the process stored in the process storage unit 214, progress information of the process, and real environment information stored in the environment information storage unit 215.
[0154] In step S14, the environment update unit 218 acquires status information of the local devices 2 from each of the multiple local controllers 100, acquires the detection result of the environmental sensor 5, and updates the environment information based on the status information and the detection result. In step S15, the progress update unit 217 updates the progress information in the process storage unit 214 in response to the task completion notification included in the status information acquired in step S14. If the status information does not include the task completion notification, the progress information is not changed. In step S16, the operation interruption unit 219 checks whether any of the multiple local devices 2 is abnormal. An example of the procedure for checking the abnormality will be described separately.
[0155] If it is determined in step S16 that there is no abnormality in any of the multiple local devices 2, the upper controller 200 executes step S17. In step S17, the command output unit 216 checks whether the process assigned to the work 9 in the process storage unit 214 has been completed. For example, the command output unit 216 checks whether all tasks in the process storage unit 214 have been completed.
[0156] If it is determined in step S17 that an uncompleted task remains, the upper controller 200 returns the process to step S13. After that, the upper controller 200 repeats steps S13 to S17, for example, in a synchronous communication cycle with a predetermined period, until all tasks in the process storage unit 214 are completed.
[0157] If it is determined in step S17 that all tasks have been completed, the upper controller 200 returns the process to step S11. Thereafter, unless an abnormality occurs in any of the multiple local devices 2, the upper controller 200 repeatedly executes the above process.
[0158] If it is determined in step S16 that an abnormality exists in any of the multiple local devices 2, the upper controller 200 executes steps S21, S22, and S23. In step S21, the operation interruption unit 219 interrupts the operation of the multiple local devices 2. For example, the operation interruption unit 219 interrupts the output of an execution command by the command output unit 216, and causes each of the multiple local controllers 100 to interrupt the task being executed.
[0159] In step S22, the environment update unit 218 acquires status information of the local devices 2 from each of the multiple local controllers 100, acquires the detection result of the environmental sensor 5, and updates the environment information based on the status information and the detection result. In step S23, the command output unit 216 checks whether an operation restart command has been output from the operation restart unit 326.
[0160] If it is determined in step S23 that the action restart command has not been output from the action restart unit 326, the local controller 100 returns the process to step S22. Thereafter, the environmental information in the environmental information storage unit 215 is repeatedly updated until the action restart command is output from the action restart unit 326. This allows the state change of the real space according to the user's operation during the interruption of the action to be continuously reflected in the environmental information. If it is determined in step S23 that the action restart command has been output from the action restart unit 326, the progress management procedure before the action restart is completed.
[0161] Fig. 21 is a flowchart illustrating an abnormality confirmation procedure in step S16. As shown in Fig. 21, the upper controller 200 first executes step S31. In step S31, the operation interruption unit 219 confirms whether or not any of the multiple local devices 2 has an abnormality, based on the environmental information stored in the environmental information storage unit 215.
[0162] If it is determined in step S31 that there is no abnormality in any of the multiple local devices 2, the upper controller 200 executes step S32. In step S32, the operation interruption unit 219 checks whether or not there is a difference between the state of the real space and the state of the virtual space, based on the comparison result by the task comparison unit 316.
[0163] If it is determined in step S31 that there is an abnormality in any of the multiple local devices 2, and if it is determined in step S32 that there is a difference between the state of the real space and the state of the virtual space, the upper controller 200 executes step S33. In step S33, the operation interruption unit 219 detects the abnormality in any of the multiple local devices 2.
[0164] If it is determined in step S32 that there is no difference between the state of the real space and the state of the virtual space, the operation interruption unit 219 completes the abnormality check without detecting any abnormality.
[0165] (Control procedure by local controller 100) As shown in Fig. 22, the local controller 100 first executes steps S41, S42, S43, and S44. In step S41, the control unit 112 waits for an execution command for the next task. In step S42, the control unit 112 causes the local device 2 under its jurisdiction to execute one control cycle of the next task. In step S43, the status output unit 113 outputs status information of the local device 2 under its jurisdiction to the upper controller 200. In step S44, the control unit 112 checks whether the execution of the next task has been completed.
[0166] If it is determined in step S44 that the execution of the next task is not completed, the local controller 100 returns the process to step S42. Thereafter, the local controller 100 repeats steps S42 to S44 in a control cycle of a predetermined period until the execution of the next task is completed. The control cycle may be synchronized with the synchronous communication cycle.
[0167] If it is determined in step S44 that the execution of the next task is completed, the local controller 100 executes step S45. In step S45, the status output unit 113 outputs a completion notification of the next task to the upper controller 200 by including it in the status information. After that, the local controller 100 returns the process to step S41. The local controller 100 repeats the above process.
[0168] (Data Management Procedures) The data management procedure executed by the data management device 300 includes a procedure for collecting virtual environment information, a procedure for collecting real environment information, and a procedure for resuming simulation. Each procedure will be described in detail below.
[0169] (Procedure for collecting virtual environment information) 23, the data management device 300 executes S51, S52, and S53 in this order. In step S51, the virtual information collection unit 314 waits for the virtual upper controller 500 to start executing a process according to a production order.
[0170] In step S52, the virtual information collecting unit 314 acquires virtual environment information from the environment information storing unit 515, acquires virtual progress information, which is progress information for each process in the virtual space, from the process storing unit 514, and accumulates a virtual data set associating these in the virtual information database 315. In step S53, the virtual information collecting unit 314 checks whether the execution of the process by the virtual upper controller 500 has been completed.
[0171] If it is determined in step S53 that the process execution by the virtual host controller 500 is not complete, the data management device 300 returns the process to step S52. Thereafter, the data management device 300 repeats acquisition and accumulation of the virtual data set until the process execution by the virtual host controller 500 is complete. If it is determined in step S53 that the process execution by the virtual host controller 500 is complete, the procedure for collecting virtual environment information is completed.
[0172] (Procedure for collecting real-world environmental information) 24, the data management device 300 first executes steps S61, S62, and S63. In step S61, the real information collecting unit 312 waits for the upper controller 200 to start executing a process according to a production order. In step S62, the real information collecting unit 312 acquires real environmental information from the environmental information storage unit 215 and real progress information from the process storage unit 214, and accumulates a real data set associating these in the real information database 313. In step S63, the real information collecting unit 312 checks whether the operation interruption unit 219 has interrupted the operations of multiple local devices 2.
[0173] If it is determined in step S63 that the operation interruption unit 219 has not interrupted the operations of the multiple local devices 2, the data management device 300 executes step S64. In step S64, the real information collection unit 312 checks whether the execution of the process by the upper controller 200 has been completed.
[0174] If it is determined in step S64 that the process execution by the host controller 200 has not been completed, the data management device 300 returns the process to step S62. Thereafter, the data management device 300 repeats acquisition and accumulation of the real data set until the process execution by the host controller 200 is completed. If it is determined in step S64 that the process execution by the host controller 200 has been completed, the procedure for collecting real environmental information is completed.
[0175] When it is determined in step S63 that the operation interruption unit 219 has interrupted the operations of a plurality of local devices 2, the data management device 300 executes a restart simulation procedure (step S65) which will be described later.
[0176] (Restart simulation procedure) 25, the data management device 300 first executes steps S71, S72, and S73. In step S71, the simulation condition acquisition unit 327 displays the simulation condition designation screen 370 described above.
[0177] In step S72, the interrupted state reproducing unit 321 stores a copy of the latest real environment information collected by the real information collecting unit 312 from the environment information storage unit 215 and accumulated in the real information database 313 as the latest virtual environment information in the environment information storage unit 515. The interrupted state reproducing unit 321 also stores a copy of the latest real progress information collected by the real information collecting unit 312 from the process storage unit 214 and accumulated in the real information database 313 in the process storage unit 514 as the latest virtual progress information.
[0178] In step S73, the restart simulator 322 checks whether or not a simulation command has been input by operating the simulation command button 374.
[0179] If it is determined in step S73 that a simulation command has not been input, the data management device 300 returns the process to step S72. Thereafter, the state of the real space is repeatedly reproduced in the virtual space until a simulation command is input. This allows the state of the virtual space to be continuously synchronized with the latest state of the real space.
[0180] When it is determined in step S73 that a simulation command has been input, the data management device 300 executes steps S74, S75, S76, S77, and S78. In step S74, the restart simulator 322 causes the virtual controller 7 to restart the operation of one or more virtual local devices 2v based on the operation program in response to an operation input to the simulation instruction button 374. In step S75, the restart evaluation unit 323 waits for the completion of the operation of one or more virtual local devices 2v.
[0181] In step S76, after one or more virtual local devices 2v resume their operations, the resume evaluation unit 323 evaluates the operations of the virtual local devices 2v based on the virtual data set collected by the virtual information collection unit 314 and stored in the virtual information database 315. In step S77, the resume instruction acquisition unit 325 displays the resume instruction screen 350 based on the evaluation result by the resume evaluation unit 323. In step S78, the operation resuming unit 326 checks whether the operation resume instruction button 365 has been operated.
[0182] If it is determined in step S78 that the operation restart instruction button 365 has not been operated, the data management device 300 executes step S81. In step S81, the restart simulator 322 checks whether the re-simulation instruction button 366 has been operated.
[0183] If it is determined in step S81 that the re-simulation instruction button 366 has not been operated, the data management device 300 executes step S82. In step S82, the resume video playback unit 324 checks whether the playback instruction button 364 has been operated.
[0184] If it is determined in step S82 that the playback instruction button 364 has not been operated, the data management device 300 returns the process to step S78. After that, the data management device 300 waits for any one of the operation resume instruction button 365, the re-simulation instruction button 366, and the playback instruction button 364 to be operated.
[0185] When it is determined in step S82 that the playback instruction button 364 has been operated, the data management device 300 executes step S83. In step S83, the resume video playback unit 324 displays videos of the operations of one or more virtual local devices 2v in the video window 351 based on inputs to the mode selection unit 361, the resume time point designation unit 362, and the end time point designation unit 363.
[0186] If it is determined in step S81 that the re-simulation instruction button 366 has been operated, the data management device 300 returns the process to step S71, whereby the simulation condition designation screen 370 is displayed again.
[0187] If it is determined in step S78 that the operation resume instruction button 365 has been operated, the data management device 300 executes step S84. In step S84, the operation resume unit 326 outputs a resume command for at least some of the operations of one or more local devices 2 in the playback mode selected by the mode selection unit 361, based on the operation command from the resume time point specified by the resume time point specification unit 362 to the end time point specified by the end time point specification unit 363. This completes the resume simulation procedure.
[0188] (Procedure for restarting operation by the host controller) 26, the upper controller 200 executes steps S91, S92, S93, S94, S95, and S96 in order. In step S91, the command output unit 216 waits for a command to resume the operation. In step S92, the command output unit 216 outputs a command to resume the suspended task to the local controller 100 of one or more local devices 2 to be resumed. The local controller 100 that has acquired the command to resume the suspended task causes the local device 2 under its jurisdiction to resume the suspended task.
[0189] In step S93, the command output unit 216 outputs an execution command for the next task based on the process stored in the process storage unit 214, progress information of the process, and real environment information stored in the environment information storage unit 215. In step S94, the environment update unit 218 acquires status information of the local devices 2 from each of the multiple local controllers 100, acquires the detection result of the environment sensor 5, and updates the environment information based on the status information and the detection result.
[0190] In step S95, the progress update unit 217 updates the progress information in the process storage unit 214 in response to the task completion notification included in the status information acquired in step S14. If the status information does not include the task completion notification, the progress information is not changed. In step S96, the command output unit 216 checks whether the operation up to the end point specified by the resume command has been completed.
[0191] If it is determined in step S96 that the operation up to the end point has not been completed, the upper controller 200 returns the process to step S93. Thereafter, the operation of one or more local devices 2 that have resumed their operation continues until the end point is reached. If it is determined in step S96 that the operation up to the end point has been completed, the operation resumption procedure is completed.
[0192] [Effects of this embodiment] As described above, the control system 3 comprises a controller 6 which operates one or more robots 2B, 2C in real space based on an operation program, a virtual controller 7 which operates one or more virtual robots corresponding to the one or more robots respectively based on an operation program in virtual space, an operation interruption unit 219 which interrupts the operation of the one or more robots 2B, 2C by the controller 6, an interruption state reproduction unit 321 which reproduces in the virtual space the state of real space in which the operation of the one or more robots 2B, 2C was interrupted, and a resume simulator 322 which resumes the operation of the one or more virtual robots 2Bv, 2Cv based on the operation program by the virtual controller 7 in the virtual space in which the state of real space has been reproduced by the interruption state reproduction unit 321.
[0193] If the one or more robots are still in a state where they can operate after the operation of the one or more robots is interrupted, it is desirable to immediately resume the operation of the one or more robots when the need to interrupt the operation is no longer necessary, thereby minimizing the downtime of the system. However, when the operation of the one or more robots is interrupted, an unexpected change may have occurred in the surrounding environment of the one or more robots.
[0194] In contrast, according to the present control system 3, the state of the real space in which the operation of one or more robots 2B, 2C is interrupted is reproduced in a virtual space, and then the operation of one or more virtual robots 2Bv, 2Cv is resumed in the virtual space, so that a simulation of the case where the operation of one or more robots 2B, 2C is resumed in the real space can be easily performed. This makes it possible to quickly grasp events that occur when the operation of one or more robots 2B, 2C is resumed before the actual operation is resumed. Therefore, it is effective for a quick response when the system is stopped.
[0195] The control system 3 further includes an environment information storage unit 215 that stores real environment information representing a state of the real space, and an environment update unit 218 that updates the real environment information stored in the environment information storage unit 215 in accordance with the operation of the one or more robots 2B, 2C, and the interrupted state reproduction unit 321 may reproduce the state of the real space in the virtual space based on the real environment information stored in the environment information storage unit 215. In this case, by updating the real environment information in the environment information storage unit 215 in real time during the operation of the one or more robots 2B, 2C, the state of the real space where the operation of the one or more robots 2B, 2C is interrupted can be quickly reproduced in the virtual space.
[0196] The control system 3 may further include a restart evaluation unit 323 that evaluates the actions of one or more virtual robots 2Bv, 2Cv restarted by the restart simulator 322 based on a predetermined evaluation condition. In this case, the user can more accurately understand the events that occur when the actions of one or more robots 2B, 2C are restarted based on the evaluation result. Therefore, it is more effective for quick response when the system is stopped.
[0197] The control system 3 may further include a resumed motion picture replay unit 324 that displays a motion picture of the one or more virtual robots 2Bv, 2Cv resumed by the resume simulator 322. In this case, the display of the motion picture of the one or more virtual robots 2Bv, 2Cv allows the user to more accurately understand events that occur when the motion of one or more robots 2B, 2C is resumed. This is therefore even more effective in quickly dealing with the situation when the system is stopped.
[0198] The one or more robots 2B, 2C include a plurality of robots 2B, 2C, and the one or more virtual robots 2Bv, 2Cv include a plurality of virtual robots 2Bv, 2Cv corresponding to the plurality of robots 2B, 2C, respectively. The operation interruption unit 219 interrupts the operation of the plurality of robots 2B, 2C when an abnormality is detected in any of the plurality of robots 2B, 2C. The restart simulator 322 acquires operation capability information of the plurality of robots 2B, 2C whose operation has been interrupted from the controller 6 for each of the plurality of robots 2B, 2C, and resumes the operation of the one or more virtual robots 2Bv, 2Cv corresponding to the one or more robots 2B, 2C that are operable while stopping the one or more virtual robots 2Bv, 2Cv corresponding to the one or more robots 2B, 2C that are inoperable. The restart evaluation unit 323 may evaluate the presence or absence of a collision between the one or more virtual robots 2Bv, 2Cv corresponding to the one or more robots 2B, 2C that are inoperable and the one or more virtual robots 2Bv, 2Cv corresponding to the one or more robots 2B, 2C that are operable. In this case, a flexible simulation can be performed that takes into account the possibility that some of the robots 2B and 2C cannot be restarted, which is even more effective in quickly dealing with the situation when the system is stopped.
[0199] The control system 3 may further include an operation resumption unit 326 that causes the controller 6 to resume at least a part of the operation of the one or more robots 2B, 2C based on the operation program, based on the evaluation result by the resumption evaluation unit 323. In this case, based on the evaluation result by the resumption evaluation unit 323, the operation of the one or more robots 2B, 2C can be appropriately resumed.
[0200] The control system 3 further includes a resume instruction acquisition unit 325 that displays a resume instruction screen 350 including the evaluation result by the resume evaluation unit 323 and a resume instruction input unit 360, and the operation resuming unit 326 may cause the controller 6 to resume the operations of one or more robots 2B, 2C based on the operation program based on an operation of the resume instruction input unit 360 on the resume instruction screen 350. In this case, the operations of one or more robots 2B, 2C can be more appropriately resumed based on the evaluation result by the resume evaluation unit 323 and a user's judgment based on the evaluation result.
[0201] The operation program includes a plurality of operation commands in a time series, and resuming at least a part of the operation of one or more robots 2B, 2C based on the operation program includes resuming a first mode in which at least a part of one or more robots 2B, 2C is operated based on an operation command after the interruption of the operation, and resuming a second mode in which at least a part of one or more robots 2B, 2C is operated based on an operation command before the interruption of the operation, and the restart simulator 322 restarts the operation program by the virtual controller 7 for each of a plurality of restart modes including the first mode and the second mode. The restart evaluation unit 323 may evaluate the operations of the one or more virtual robots 2Bv, 2Cv for each of the multiple restart modes, the restart instruction acquisition unit 325 may display a restart instruction screen 350 including the evaluation results for each of the multiple restart modes by the restart evaluation unit 323 and a restart instruction input unit 360 that allows one of the multiple restart modes to be selected, and the operation restart unit 326 may cause the controller 6 to restart the operations of the one or more robots 2B, 2C based on the operation program in the restart mode selected by the restart instruction input unit 360. In this case, it is possible to prompt the user to select an appropriate one of the multiple restart modes based on the simulation results for each of the multiple restart modes. Therefore, it is possible to more appropriately restart the operations of the one or more robots 2B, 2C.
[0202] The operation program includes a plurality of operation commands in a time series, and resuming at least a part of the operation of one or more robots 2B, 2C based on the operation program includes resuming a first mode in which at least a part of one or more robots 2B, 2C is operated based on an operation command after the interruption of the operation, and resuming a second mode in which at least a part of one or more robots 2B, 2C is operated based on an operation command before the interruption of the operation, and the control system 3 further includes a simulation condition acquisition unit 327 that displays a simulation condition specification screen 370 in which one of a plurality of restart modes including the first mode and the second mode can be selected, and the restart simulator 322 may restart the operation of one or more virtual robots 2Bv, 2Cv by the virtual controller 7 in the restart mode selected on the simulation condition specification screen 370. In this case, too, it is possible to prompt the user to select an appropriate one of the plurality of restart modes based on the simulation results for each restart mode. Moreover, by performing a simulation of the selected restart mode after the mode selection by the user, the simulation result can be presented more quickly.
[0203] The operation program may include a plurality of operation commands in a time series, and the restart simulator 322 may restart the operation of one or more virtual robots 2Bv, 2Cv by the virtual controller 7 based on the operation commands after the interruption of the operation. In this case, the simulation can be easily executed.
[0204] The control system 3 further includes a simulation condition acquisition unit 327 that displays a simulation condition specification screen 370 that allows the user to specify a simulation start point in the operation program, and the restart simulator 322 may cause the virtual controller 7 to restart the operation of one or more virtual robots 2Bv, 2Cv based on an operation command after the specified simulation start point. In this case, a flexible simulation can be performed that also accommodates cases where the user wishes to adjust the operation restart point.
[0205] The control system 3 further includes a simulation condition acquisition unit 327 that displays a simulation condition specification screen 370 that allows the user to specify a simulation end point in the operation program, and the restart simulator 322 may restart the operation of one or more virtual robots 2Bv, 2Cv using the virtual controller 7 based on an operation command issued before the specified simulation end point. In this case, a flexible simulation can be performed that also accommodates cases where the user wishes to adjust the end point of the operation after restart.
[0206] The restart evaluation unit 323 may calculate, based on the movements of the one or more virtual robots 2Bv, 2Cv, an operable period for each of the one or more robots 2B, 2C after the movements of the one or more robots 2B, 2C based on the movement program are resumed, the restart instruction acquisition unit 325 displays a restart instruction screen including the operable period for each of the one or more robots 2B, 2C and a restart instruction input unit 360 capable of specifying the restart time point, and the operation restart unit 326 may restart at least a part of the movements of the one or more robots 2B, 2C by the controller 6 based on the operation command after the specified restart time point. In this case, by presenting the operable period and the restart instruction input unit capable of specifying the restart time point, it is possible to prompt the user to input an appropriate restart time point.
[0207] The restart evaluation unit 323 may calculate, based on the movements of the one or more virtual robots 2Bv, 2Cv, an operable period for each of the one or more robots 2B, 2C after the movements of the one or more robots 2B, 2C based on the movement program are resumed, the restart instruction acquisition unit 325 displays a restart instruction screen 350 including the operable period for each of the one or more robots 2B, 2C and a restart instruction input unit 360 capable of specifying an end point, and the operation restart unit 326 may restart at least a part of the movements of the one or more robots 2B, 2C by the controller 6 based on the movement command before the specified end point. In this case, by presenting the operable period and the restart instruction input unit 360 capable of specifying an end point, it is possible to prompt the user to input an appropriate end point.
[0208] The control system 3 may further include a peripheral information storage unit 328 that stores peripheral behavior information indicating how a second controller that controls other machines of the one or more robots 2B, 2C operates the other machines after the operation of the one or more robots 2B, 2C is interrupted, and the restart evaluation unit 323 may evaluate the operation of the one or more virtual robots 2Bv, 2Cv further based on the peripheral behavior information. In this case, a more appropriate simulation that takes into account the operation of the other machines is possible.
[0209] The control system 3 may further include an environmental sensor 5 that detects the state of the real space, and the interrupted state reproducing unit 321 may reproduce in the virtual space the state of the real space in which the operation of one or more robots 2B, 2C is interrupted, based on the detection result by the environmental sensor 5. In this case, a more appropriate simulation can be performed by reproducing the real space in the virtual space with higher accuracy.
[0210] The interrupted state reproducing unit 321 may reproduce in the virtual space the state of the real space in which the operation of one or more robots 2B, 2C is interrupted, further based on the state information of the one or more robots 2B, 2C held by the controller 6. In this case, a more appropriate simulation can be performed by reproducing the real space in the virtual space with higher accuracy.
[0211] The operation interruption unit 219 may interrupt the operation of one or more robots 2B, 2C by the controller 6 when a difference occurs between the state of the real space while one or more robots 2B, 2C are operating based on the operation program and the state of the virtual space while one or more virtual robots 2Bv, 2Cv are operating based on the operation program. In this case, by comparing real environment information of the real space with virtual environment information of the virtual space, the operation of one or more robots 2B, 2C can be quickly interrupted in response to the occurrence of an abnormality in the real space.
[0212] The control system 3 may further include a program generation unit 332 that repeats the steps of operating one or more virtual robots 2Bv, 2Cv based on an operation program using the virtual controller 7 and correcting the operation program based on the state of the virtual space while the one or more virtual robots 2Bv, 2Cv are operating, and the controller 6 may operate one or more robots 2B, 2C based on the operation program corrected by the program generation unit 332. In this case, the simulation by the virtual robots 2Bv, 2Cv and the virtual controller 7 can also be effectively used for correcting the operation program.
[0213] Although the embodiments have been described above, the present disclosure is not necessarily limited to the above-described embodiments, and various modifications are possible without departing from the gist of the present disclosure. [Explanation of symbols]
[0214] 1...production system (robot system), 2B, 2C, 10...robot, 2Bv, 2Cv...virtual robot, 3...control system, 5...environmental sensor, 6...controller, 7...virtual controller, 215...environmental information storage unit, 218...environmental update unit, 219...operation interruption unit, 321...interrupted state reproduction unit, 322...resume simulator, 323...resume evaluation unit, 324...resume video playback unit, 325...resume instruction acquisition unit, 326...operation restart unit, 327...simulation condition acquisition unit, 328...peripheral information memory unit, 332...program generation unit, 350...resume instruction screen, 360...resume instruction input unit, 370...simulation condition designation screen.
Claims
1. A virtual controller that operates one or more virtual robots corresponding to one or more robots in a virtual space based on an operation program; an interruption state reproducing unit that reproduces, when a controller that operates the one or more robots in a real space based on the operation program interrupts the operation of the one or more robots, an interruption state in the real space where the operation of the one or more robots is interrupted, in the virtual space; a restart simulator that restarts the operation of the one or more virtual robots based on the operation program by the virtual controller in the virtual space in which the interrupted state reproduction unit reproduces the state of the real space.
2. an environment information storage unit for storing real environment information representing a state of the real space; an environment update unit that updates the real environment information stored in the environment information storage unit in response to an action of the one or more robots, 2. The simulation device according to claim 1, wherein the interrupted state reproducing unit reproduces the interrupted state in the virtual space based on the real environment information stored in the environment information storage unit.
3. 3. The simulation device according to claim 1, further comprising a restart evaluation unit that evaluates actions of the one or more virtual robots in the virtual space in which the interrupted state is reproduced, based on a predetermined evaluation condition.
4. 4. The simulation device according to claim 3, further comprising a resumed animation playback unit that displays animation of the actions of said one or more virtual robots in said virtual space in which the interrupted state is reproduced.
5. the one or more robots include a plurality of robots; the one or more virtual robots include a plurality of virtual robots respectively corresponding to the plurality of robots; The simulation device according to claim 3 or 4, wherein the restart evaluation unit evaluates whether or not there is a collision between one or more incapable virtual robots corresponding to one or more incapable robots and one or more operable virtual robots when the one or more incapable virtual robots corresponding to the one or more operable robots are stopped in the virtual space and one or more operable virtual robots corresponding to the one or more operable robots are operating in the virtual space.
6. The simulation device according to any one of claims 3 to 5, further comprising an operation resumption unit that causes the controller to resume at least a portion of the operation of the one or more robots based on the operation program based on an evaluation result by the resumption evaluation unit.
7. A restart instruction acquisition unit that displays a restart instruction screen including a display unit of an evaluation result by the restart evaluation unit and a restart instruction input unit, The simulation device according to claim 6 , wherein the operation restarting unit causes the controller to restart the operation of the one or more robots based on the operation program, based on an operation on the restart instruction input unit on the restart instruction screen.
8. The operation program includes a plurality of operation commands in a time series, Resuming at least a part of the operation of the one or more robots based on the operation program includes: Resuming the first mode in which at least a part of the one or more robots is operated based on an operation command after the interruption of the operation; and and resuming a second mode in which at least a part of the one or more robots is operated based on a motion command before the interruption of the motion; the restart evaluation unit evaluates the motion of the one or more virtual robots for each of the plurality of restart modes; the restart instruction acquisition unit displays the restart instruction screen including a display unit for displaying an evaluation result for each of the plurality of restart modes by the restart evaluation unit and the restart instruction input unit capable of selecting one of the plurality of restart modes; The simulation device according to claim 7 , wherein the operation restarting unit causes the controller to restart the operation of the one or more robots based on the operation program in the restart mode selected by the restart instruction input unit.
9. The operation program includes a plurality of operation commands in a time series, Resuming at least a part of the operation of the one or more robots based on the operation program includes: Resuming the first mode in which at least a part of the one or more robots is operated based on an operation command after the interruption of the operation; and and resuming a second mode in which at least a part of the one or more robots is operated based on a motion command before the interruption of the motion; the simulation device further includes a simulation condition acquisition unit that displays a simulation condition designation screen on which one of a plurality of restart modes including the first mode and the second mode can be selected; 8. The simulation device according to claim 3, wherein the restart evaluation unit evaluates the actions of the one or more virtual robots in a restart mode selected on the simulation condition designation screen.
10. The operation program includes a plurality of operation commands in a time series, The simulation device according to claim 7 , wherein the restart evaluation unit evaluates the motions of the one or more virtual robots based on motion commands after the interruption of the motions.
11. a simulation condition acquisition unit that displays a simulation condition specification screen that allows a simulation start time point in the operation program to be specified, The simulation device according to claim 10 , wherein the restart evaluation unit evaluates the motions of the one or more virtual robots based on motion commands after a designated start point of the simulation.
12. a simulation condition acquisition unit that displays a simulation condition specification screen that allows a user to specify a simulation end point in the operation program; The simulation device according to claim 10 , wherein the restart evaluation unit evaluates the motions of the one or more virtual robots based on motion commands before the designated end point of the simulation.
13. the restart evaluation unit calculates, based on the movements of the one or more virtual robots, an operation possible period after restarting the movements of the one or more robots based on the operation program, for each of the one or more robots; the restart instruction acquisition unit displays the restart instruction screen including a display unit for displaying an operable period for each of the one or more robots and the restart instruction input unit capable of designating a time point for restarting, The simulation device according to any one of claims 10 to 12, wherein the operation restarting unit restarts at least a part of the operation of the one or more robots using the controller based on an operation command after the designated restart time point.
14. the restart evaluation unit calculates, based on the movements of the one or more virtual robots, an operation possible period after restarting the movements of the one or more robots based on the operation program, for each of the one or more robots; the restart instruction acquisition unit displays the restart instruction screen including a display unit for displaying an operable period for each of the one or more robots and the restart instruction input unit capable of specifying an end point; The simulation device according to any one of claims 10 to 13, wherein the operation restarting unit restarts at least a part of the operation of the one or more robots by the controller based on an operation command issued before the specified end time point.
15. A second controller that controls another machine of the one or more robots further includes a peripheral information storage unit that stores peripheral behavior information indicating how to operate the other machine after an operation of the one or more robots is interrupted; The simulation device according to any one of claims 3 to 14, wherein the resumption evaluation unit evaluates the actions of the one or more virtual robots further based on the peripheral behavior information.
16. Further comprising an environmental sensor for detecting a state of the real space, 16. The simulation device according to claim 1, wherein the interrupted state reproducing unit reproduces the interrupted state in the virtual space based on a detection result by the environment sensor.
17. The simulation device according to claim 16 , wherein the interrupted state reproducing unit reproduces the interrupted state in the virtual space further based on state information of the one or more robots held by the controller.
18. A simulation device as described in any one of claims 1 to 17, further comprising an operation interruption unit that interrupts the operation of the one or more robots by the controller when a difference occurs between a state of the real space while the one or more robots are operating based on the operation program and a state of the virtual space while the one or more virtual robots are operating based on the operation program.
19. a program generating unit that repeatedly operates the one or more virtual robots based on the operation program by the virtual controller and modifies the operation program based on a state of the virtual space during the operation of the one or more virtual robots; The simulation device according to any one of claims 1 to 18, wherein the controller operates the one or more robots based on the operation program corrected by the program generation unit.
20. In a virtual space, operating one or more virtual robots corresponding to one or more robots based on an operation program; a controller that operates the one or more robots in a real space based on the operation program, when the controller interrupts the operation of the one or more robots, reproducing in a virtual space an interrupted state in the real space in which the operation of the one or more robots is interrupted; and restarting the operation of the one or more virtual robots based on the operation program in the virtual space which reproduces the state of the real space.
21. A controller that operates one or more robots in real space based on an operation program; a virtual controller that operates one or more virtual robots corresponding to the one or more robots in a virtual space based on the operation program; an operation interruption unit that interrupts the operation of the one or more robots by the controller, The operation interruption unit interrupts the operation of the one or more robots by the controller when a difference occurs between a state of the real space while the one or more robots are operating based on the operation program and a state of the virtual space while the one or more virtual robots are operating based on the operation program.
22. A control system as described in claim 21, further comprising an interruption state reproduction unit that reproduces an interruption state in the real space in which the operation of the one or more robots is interrupted in the virtual space.
Citation Information
Patent Citations
Robot system
JP2005103681A
Interference checking device and program
JP2012181574A
Robot system, production management computer and control method for the same
JP2015024477A
Machining system and control method
JP2019209454A
JPP6658985B
