Numerical control system and robot control method
The numerical control system integrates with robot control devices to utilize both automatically generated and existing robot programs, addressing the issue of unsupported robot programs and enhancing control capabilities.
Patent Information
- Application Number
- JP2022542827
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-11
- Filing Date
- 2021-08-05
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-08-05
AI Technical Summary
Users familiar with robot programs may own robot control devices that do not support numerical control programs, leading to potential waste of existing robot programs.
A numerical control system and method that generates higher-level command signals including robot command signals, enabling communication between a numerical control device and a robot control device to control robots using either automatically generated or existing robot programs.
Enables effective utilization of both automatically generated and existing robot programs, allowing seamless integration and control of robots within the numerical control system.
Smart Images

Figure 0007564217000001 
Figure 0007564217000002 
Figure 0007564217000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a numerical control system and a robot control method. [Background technology]
[0002] Generally, the programming languages used for the numerical control programs for controlling machine tools and the robot programs for controlling robots are different, so that in order to operate the machine tools and the robots in parallel, the operators need to be familiar with both the numerical control programs and the robot programs.
[0003] Patent Document 1 shows a numerical control device that controls both a machine tool and a robot by a numerical control program. More specifically, in the numerical control system shown in Patent Document 1, a numerical control device generates a robot command signal according to the numerical control program, a robot control device generates a robot program based on the robot command signal, and generates a robot control signal for controlling the operation of the robot according to the robot program. According to the numerical control system shown in Patent Document 1, a user familiar with numerical control programs can control a robot without mastering the robot program. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 6647472 Summary of the Invention [Problem to be solved by the invention]
[0005] Meanwhile, users who are familiar with robot programs often own robot programs that operate on existing robot control devices that do not have a robot control function based on a numerical control program.
[0006] However, the technology described in Patent Document 1 does not fully consider using a robot program generated based on a numerical control program in combination with a robot program that operates on an existing robot control device. Therefore, the technology described in Patent Document 1 may result in the use of an existing robot program going to waste.
[0007] The present disclosure has been made in consideration of the above-mentioned problems, and provides a numerical control system and a robot control method that can effectively utilize not only robot programs that are automatically generated based on a numerical control program, but also robot programs that operate on existing robot control devices. [Means for solving the problem]
[0008] One aspect of the present disclosure provides a numerical control system comprising: a numerical control device that generates an upper-level command signal including a robot command signal for a robot in accordance with a numerical control program; and a robot control device capable of communicating with the numerical control device and that generates a robot control signal for controlling an operation of the robot based on the upper-level command signal and inputs the robot control signal to the robot, wherein the robot control device comprises a control unit that generates the robot control signal by selectively executing either a first executable file generated based on the upper-level command signal or a second executable file selected based on the upper-level command signal.
[0009] One aspect of the present disclosure provides a robot control method for controlling a robot by a numerical control device that generates a higher-level command signal including a robot command signal for a robot in accordance with a numerical control program, and a robot control device that is capable of communicating with the numerical control device and generates a robot control signal for controlling an operation of the robot based on the higher-level command signal, and inputs the robot control signal to the robot, the method comprising the steps of: inputting the higher-level command signal generated in the numerical control device to the robot control device; generating a first executable file in the robot control device based on the higher-level command signal; selecting a second executable file in the robot control device based on the higher-level command signal; and generating a robot control signal for controlling an operation of the robot by selectively executing either the first executable file or the second executable file in the robot control device, and inputting the robot control signal to the robot. Effect of the Invention
[0010] In one aspect of the present disclosure, the numerical control device generates a higher-level command signal including a robot command signal for the robot according to a numerical control program, and the robot control device generates a robot control signal for controlling the operation of the robot based on the higher-level command signal generated by the numerical control device, and inputs the signal to the robot. Here, the robot control device includes a control unit that generates the robot control signal by selectively executing either a first executable file generated based on the higher-level command signal or a second executable file selected based on the higher-level command signal. Thus, according to one aspect of the present disclosure, if a user owns a second executable file that was operating in an existing robot control device, the user can effectively use not only the first executable file automatically generated based on the numerical control program, but also the existing second executable file to control the operation of the robot. [Brief description of the drawings]
[0011] [Figure 1]FIG. 1 is a schematic diagram of a numerical control system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a functional block diagram of a numerical control device and a robot control device. [Figure 3A] 11 is a flowchart showing a procedure for a coordinate form information management process (part 1). [Figure 3B] 13 is a flowchart showing the procedure of the coordinate form information management process (part 2). [Figure 4] This is an example of a numerical control program for a robot. [Figure 5A] FIG. 5 is a sequence diagram (part 1) showing the flow of various information when a numerical control device is operated based on the numerical control program for a robot illustrated in FIG. 4. [Figure 5B] FIG. 5 is a sequence diagram (part 2) showing the flow of various information when a numerical control device is operated based on the numerical control program for a robot illustrated in FIG. 4. [Figure 6] 1A and 1B are diagrams illustrating an example of a numerical control program for a machine tool and a numerical control program for a robot. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, a numerical control system 1 according to an embodiment of the present disclosure will be described with reference to the drawings.
[0013] FIG. 1 is a schematic diagram of a numerical control system 1 according to the present embodiment.
[0014] The numerical control system 1 includes a machine tool 2, a numerical control device (CNC) 5 that controls the machine tool 2, a robot 3 provided near the machine tool 2, and a robot control device 6 communicatively connected to the numerical control device 5. The numerical control device 5 generates upper command signals including machine tool command signals that are commands for the machine tool 2 and robot command signals that are commands for the robot 3 in accordance with a predetermined numerical control program, and transmits these machine tool command signals and upper command signals to the machine tool 2 and the robot control device 6, respectively. The robot control device 6 controls the operation of the robot 3 in response to the upper command signals transmitted from the numerical control device 5.
[0015] Machine tool 2 machines a workpiece (not shown) in response to a machine tool command signal transmitted from a numerical control device 5. Here, machine tool 2 is, for example, a lathe, a drill press, a milling machine, a grinding machine, a laser processing machine, an injection molding machine, or the like, but is not limited to these.
[0016] The robot 3 operates under the control of the robot control device 6, and performs a predetermined task on a workpiece that has been machined by the machine tool 2, for example. The robot 3 is, for example, an articulated robot, and a tool 32 for gripping, machining, and inspecting the workpiece is attached to an arm tip 31 of the robot 3. In the following, the robot 3 grips the workpiece that has been machined by the machine tool 2 at a predetermined position, transports the gripped workpiece to a predetermined position, machines the gripped workpiece, and inspects the gripped workpiece, but this is not limited thereto. In the following, the robot 3 is described as being a six-axis articulated robot, but this is not limited thereto. In the following, the robot 3 is described as being a six-axis articulated robot, but the number of axes is not limited thereto.
[0017] The numerical control device 5 and the robot control device 6 are computers each composed of hardware such as a calculation processing means such as a CPU (Central Processing Unit), auxiliary storage means such as an HDD (Hard Disk Drive) or SSD (Solid State Drive) storing various programs, main storage means such as a RAM (Random Access Memory) for storing data temporarily required for the calculation processing means to execute the programs, operation means such as a keyboard for an operator to perform various operations, and display means such as a display for displaying various information to the operator. The robot control device 6 and the numerical control device 5 are capable of transmitting and receiving various signals to each other, for example, via Ethernet (registered trademark).
[0018] FIG. 2 is a functional block diagram of the numerical control device 5 and the robot control device 6.
[0019] The numerical control device 5 generates a higher-level command signal including a robot command signal that is a command for the robot 3 according to a procedure described below, and transmits the generated higher-level command signal to the robot control device 6. The robot control device 6 generates a robot control signal for controlling the operation of the robot 3 according to a procedure described below based on the higher-level command signal transmitted from the numerical control device 5, and controls the operation of the robot 3 by inputting the generated robot control signal to the robot 3. As described in detail below, the robot control device 6 generates the robot control signal by selectively executing either a dynamic executable file as a first executable file generated based on the higher-level command signal, or a static executable file selected based on the higher-level command signal from among a plurality of static executable files as a plurality of second executable files created in advance by an operator.
[0020] First, a detailed configuration of the numerical control device 5 will be described. As shown in Fig. 2, the numerical control device 5 has the above-mentioned hardware configuration to realize various functions such as a machine tool control module 51 as a control system for the machine tool 2, a robot control module 52 as a control system for the robot 3, and a storage unit 53.
[0021] The storage unit 53 stores a plurality of numerical control programs created, for example, based on operations by an operator. More specifically, the storage unit 53 stores a numerical control program for a machine tool as a first numerical control program for mainly controlling the operation of the machine tool 2, a numerical control program for a robot as a second numerical control program for controlling the operation of the robot 3, and the like. These numerical control programs for the machine tool and the numerical control programs for the robot are written in a common programming language (for example, G-code, M-code, etc.).
[0022] The numerical control program for the machine tool is written based on the machine tool coordinate system as a first coordinate system whose origin is a reference point determined on or near the machine tool 2. That is, in the numerical control program for the machine tool, the position and orientation of the control point of the machine tool 2 are described by coordinate values in the machine tool coordinate system.
[0023] A numerical control program for a robot is written based on a robot coordinate system as a second coordinate system different from the machine tool coordinate system. That is, in the numerical control program for a robot, the position and posture of a control point of the robot 3 (for example, the arm tip 31 of the robot 3) are described by coordinate values in the robot coordinate system different from the machine tool coordinate system. This robot coordinate system is a coordinate system whose origin is a reference point determined on the robot 3 or in the vicinity of the robot 3. Note that, although the following describes a case where the robot coordinate system is different from the machine tool coordinate system, the present disclosure is not limited to this. The robot coordinate system may be made to coincide with the machine tool coordinate system. In other words, the origin and coordinate axis directions of the robot coordinate system may be made to coincide with the origin and coordinate axis directions of the machine tool coordinate system.
[0024] In addition, in this robot numerical control program, the robot coordinate system can be switched between two or more coordinate formats with different control axes. More specifically, in the robot numerical control program, the position and orientation of the control point of the robot 3 can be specified in Cartesian coordinate format or each axis coordinate format.
[0025] In each axis coordinate format, the position and posture of the control point of the robot 3 is specified by a total of six real coordinate values whose components are the rotation angle values (J1, J2, J3, J4, J5, J6) of the six joints of the robot 3.
[0026] In the Cartesian coordinate format, the position and orientation of the control point of the robot 3 is specified by a total of six real coordinate values consisting of three coordinate values (X, Y, Z) along three Cartesian coordinate axes and three rotation angle values (A, B, C) around each Cartesian coordinate axis.
[0027] Here, in the case of each axis coordinate system, the rotation angle of each joint of the robot 3 is directly specified, so that the axial arrangement of each arm and wrist of the robot 3 and the number of rotations of the joints that can rotate 360 degrees or more (hereinafter, these are collectively referred to as the "configuration of the robot 3") are uniquely determined. In contrast, in the case of the Cartesian coordinate system, the position and posture of the control point of the robot 3 are specified by six coordinate values (X, Y, Z, A, B, C), so that the configuration of the robot 3 cannot be uniquely determined. Therefore, in the numerical control program for the robot, it is possible to specify the configuration of the robot 3 by a configuration value P, which is an integer value of a predetermined number of digits. Therefore, the position and posture of the control point of the robot 3 and the configuration of the robot 3 are represented by six coordinate values (J1, J2, J3, J4, J5, J6) in the case of each axis coordinate system, and by six coordinate values and one configuration value (X, Y, Z, A, B, C, P) in the case of the Cartesian coordinate system.
[0028] In the numerical control program for a robot, the coordinate format can be set by the G-codes "G68.8" and "G68.9". More specifically, by inputting the G-code "G68.8", the coordinate format is set to each axis coordinate format, and by inputting the G-code "G68.9", the coordinate format is set to the Cartesian coordinate format. The G-codes "G68.8" and "G68.9" for setting these coordinate formats are modal. Therefore, after the coordinate format is set to each axis coordinate format or Cartesian coordinate format by these G-codes, the coordinate format is maintained until the coordinate format is changed again by these G-codes. In this embodiment, if the G-code for setting these coordinate formats is not described in the numerical control program for a robot, the coordinate format is automatically set to the Cartesian coordinate format, but this is not limited to this.
[0029] The machine tool control module 51 generates a machine tool command signal, which is a command for the machine tool 2, according to a numerical control program for the machine tool, and inputs the generated signal to an actuator (not shown) of the machine tool 2. More specifically, the machine tool control module 51 reads out a numerical control program for the machine tool stored in the storage unit 53, and generates a machine tool command signal by analyzing a command type based on the numerical control program. The machine tool 2 operates according to the machine tool command signal transmitted from the machine tool control module 51, and processes a workpiece (not shown). As will be described later with reference to FIG. 6, when the machine tool control module 51 executes a numerical control program for the machine tool in synchronization with a numerical control program for a robot, the machine tool control module 51 may generate a higher-level command signal for the robot control device 6 according to the numerical control program for the machine tool. The higher-level command signal generated in the machine tool control module 51 is transmitted to the robot control device 6 by a data transmission / reception unit 528 (described later).
[0030] The robot control module 52 generates higher-level command signals including robot command signals, which are commands for the robot 3, and various signals for the robot control device 6, in accordance with a numerical control program for the robot, and transmits these higher-level command signals to the robot control device 6. More specifically, the robot control module 52 includes a program input unit 521, an input analysis unit 522, a coordinate form information control unit 523, a static executable file selection and start unit 524, a dynamic executable file start and stop unit 525, a robot command signal generation unit 526, a coordinate display unit 527, and a data transmission and reception unit 528, which generate higher-level command signals. As described below, the higher-level command signals generated in the numerical control device 5 and transmitted to the robot control device 6 include a robot command signal, a reference coordinate value request signal, a reference form value request signal, a static executable file start command signal, a dynamic executable file creation command signal, and a dynamic executable file stop command signal.
[0031] The program input unit 521 reads out a numerical control program for the robot from the storage unit 53 and inputs it to the input analysis unit 522 sequentially.
[0032] The input analysis unit 522 sequentially analyzes the command type based on the numerical control program input from the program input unit 521 for each block, and transmits the analysis results to the coordinate form information control unit 523, the static executable file selection and startup unit 524, the dynamic executable file startup and shutdown unit 525, and the robot command signal generation unit 526.
[0033] The coordinate form information control unit 523 identifies the designated coordinate format, which is the coordinate format set based on the numerical control program for the robot, based on the analysis result input from the input analysis unit 522. As described above, in the numerical control program for the robot, the coordinate format can be set or changed to each axis coordinate format or Cartesian coordinate format by a predetermined G-code. The coordinate form information control unit 523 identifies the designated coordinate format based on the analysis result input from the input analysis unit 522, and transmits information regarding the current designated coordinate format to the robot command signal generation unit 526.
[0034] The coordinate form information control unit 523 writes a reference coordinate value request signal for newly acquiring from the robot control device 6 reference coordinate values equivalent to the current coordinate values of each control axis in the identified specified coordinate format, and a reference form value request signal for newly acquiring from the robot control device 6 reference form values equivalent to the current form values of the robot 3, to the data transmission / reception unit 528 at a predetermined timing during execution of the numerical control program for the robot, and transmits these reference coordinate value request signals and reference form value request signals to the robot control device 6.
[0035] The coordinate form information control unit 523 determines whether or not it is necessary to acquire reference coordinate values and reference form values while the robot control module 52 is executing a numerical control program for the robot, and if it determines that it is necessary to acquire reference coordinate values, it sends a reference coordinate request signal to the robot control device 6, and if it determines that it is necessary to acquire reference form values, it sends a reference form value request signal to the robot control device 6.
[0036] More specifically, the coordinate form information control unit 523 determines that it is necessary to obtain the reference coordinate values when starting execution of the robot numerical control program, when resuming execution of the robot numerical control program that has been interrupted for some reason, when setting a new designated coordinate format based on the robot numerical control program, or when changing the designated coordinate format based on the robot numerical control program, and writes a reference coordinate value request signal to the data transmission / reception unit 528. As a result, the reference coordinate value request signal is transmitted from the data transmission / reception unit 528 to the robot control device 6.
[0037] Furthermore, the coordinate form information control unit 523 determines that it is necessary to acquire the reference form values at least when the designated coordinate format is the Cartesian coordinate format, and writes a reference form value request signal to the data transmission / reception unit 528. As a result, the reference form value request signal is transmitted from the data transmission / reception unit 528 to the robot control device 6. More specifically, the coordinate form information control unit 523 determines that it is necessary to acquire the reference form values and transmits a reference form value request signal to the robot control device 6 when the execution of a numerical control program for a robot is started with the designated coordinate format being the Cartesian coordinate format, and when the designated coordinate format is the Cartesian coordinate format and a form value is not specified in the numerical control program. Furthermore, the coordinate form information control unit 523 determines that it is not necessary to acquire the reference form values and does not transmit a reference form value request signal to the robot control device 6 when the designated coordinate format is the Cartesian coordinate format and a form value is specified in the numerical control program. That is, when a form value is specified in the numerical control program, the coordinate form information control unit 523 generates a robot command signal by prioritizing the form value specified in the numerical control program over the reference form value acquired in the robot control device 6.
[0038] In addition, the coordinate configuration information control unit 523 manages, using a memory not shown, coordinate information whose components are the coordinate values of each control axis in the specified coordinate format identified as described above, and configuration information whose components are the configuration values of the robot 3.
[0039] 3A and 3B are flowcharts showing the procedure of a process (hereinafter referred to as a "coordinate morphological information management process") for managing coordinate information and morphological information under a specified coordinate format by the coordinate morphological information control unit 523. The coordinate morphological information management process shown in Fig. 3A and 3B is repeatedly executed at a predetermined cycle by the coordinate morphological information control unit 523 while the robot control module 52 is executing a numerical control program for the robot.
[0040] First, in S1, the coordinate form information control unit 523 determines whether the designated coordinate format is the each-axis coordinate format. If the determination result of S1 is YES, the coordinate form information control unit 523 proceeds to S2, and if the determination result of S1 is NO, the coordinate form information control unit 523 proceeds to S4.
[0041] In S2, the coordinate form information control unit 523 judges whether or not it has just received reference coordinate value information including the latest reference coordinate value from the robot control device 6. As described above, the reference coordinate value is the current coordinate value of each control axis in the specified coordinate format. As will be described later, the robot control device 6 acquires the reference coordinate value in response to a reference coordinate value request signal transmitted at a predetermined timing from the coordinate form information control unit 523, and sends back reference coordinate value information including this reference coordinate value to the numerical control device 5. If the judgment result of S2 is YES, the coordinate form information control unit 523 proceeds to S3, and if the judgment result of S is NO, the process shown in FIG. 3A and FIG. 3B is terminated.
[0042] In S3, the coordinate form information control unit 523 updates the coordinate information stored in a memory (not shown) with the reference coordinate values transmitted from the robot control device 6, and then ends the processing shown in FIGS. 3A and 3B.
[0043] In S4, the coordinate form information control unit 523 judges whether or not it is immediately after receiving reference coordinate value information including the latest reference coordinate value from the robot control device 6. If the judgment result of S4 is YES, the coordinate form information control unit 523 proceeds to S5, and if the judgment result of S4 is NO, the coordinate form information control unit 523 proceeds to S6.
[0044] In S6, the coordinate configuration information control unit 523 judges whether or not it has received reference configuration value information including the latest reference configuration from the robot control device 6. As described above, the reference configuration value is the current configuration value of the robot 3. As will be described later, the robot control device 6 acquires the reference configuration value in response to a reference configuration value request signal transmitted at a predetermined timing from the coordinate configuration information control unit 523, and transmits reference configuration value information including this reference configuration value back to the numerical control device 5. If the determination result of S6 is YES, the coordinate configuration information control unit 523 proceeds to S7, and if the determination result of S6 is NO, the coordinate configuration information control unit 523 proceeds to S8.
[0045] In S7, the coordinate form information control unit 523 updates the form information stored in the memory with the reference form values transmitted from the robot control device 6, and then ends the processing shown in Figures 3A and 3B. More specifically, the coordinate form information control unit 523 replaces the form values stored in the memory with the reference form values transmitted from the robot control device 6.
[0046] In S8, the coordinate form information control unit 523 updates the form information stored in the memory with the form values specified in the numerical control program input from the input analysis unit 522, and then terminates the processing shown in Figures 3A and 3B.
[0047] As described above, the coordinate form information control unit 523 updates the reference coordinate values stored in the memory at the timing when the reference coordinate values transmitted from the robot control device 6 are received.
[0048] Furthermore, when the designated coordinate format is the Cartesian coordinate format, the coordinate configuration information control unit 523 updates the configuration information stored in the memory with the reference configuration value transmitted from the robot control device 6 or the configuration value designated in the numerical control program. More specifically, when the coordinate configuration information control unit 523 receives the reference configuration value transmitted from the robot control device 6, it updates the configuration information stored in the memory with this reference configuration value, and in other cases it updates the configuration information stored in the memory with the configuration value designated in the numerical control program.
[0049] 2, the static executable file selection and launch unit 524 generates a static executable file launch command signal for causing the robot control device 6 to execute one of a plurality of static executable files (described below) created in advance, based on the analysis result input from the input analysis unit 522, and writes the signal to the data transmission and reception unit 528. As a result, the static executable file launch command signal is transmitted from the data transmission and reception unit 528 to the robot control device 6.
[0050] In the numerical control program in the numerical control device 5, it is possible to select any one of a plurality of static executable files stored in the robot control device 6 by, for example, an M code, and execute it in the robot control device 6. When the static executable file selection and start-up unit 524 extracts an M code (for example, "M90", "M91", "M92", "M93", and "M60", as described later with reference to Figs. 4 and 6) assigned to specify a static executable file in the numerical control program for the robot, it generates a static executable file start-up command signal for selecting and starting the static executable file specified by this M code in the robot control device 6, and transmits the generated static executable file start-up command signal to the robot control device 6 via the data transmission / reception unit 528.
[0051] The dynamic executable file start / stop unit 525 generates a dynamic executable file creation command signal or a dynamic executable file stop command signal based on the analysis result input from the input analysis unit 522, and writes these command signals to the data transmission / reception unit 528. As a result, the dynamic executable file creation command signal or the dynamic executable file stop command signal is transmitted from the data transmission / reception unit 528 to the robot control device 6. Here, the dynamic executable file creation command signal is a command signal for causing the robot control device 6 to newly create a dynamic executable file, and the dynamic executable file stop command signal is a command signal for causing the robot control device 6 to stop execution of the dynamic executable file.
[0052] As will be described later, the robot command signal generation unit 526 generates a robot command signal for controlling the operation of the robot 3 based on a G-code in a numerical control program, and transmits this robot command signal to the robot control device 6. The robot control device 6 also sequentially adds commands corresponding to the robot command signal transmitted from the numerical control device 5 to a dynamic executable file, and executes them to generate a robot control signal for the robot 3.
[0053] Therefore, when starting to control the operation of the robot 3 based on the G-code described in the numerical control program, the dynamic executable file start / stop unit 525 generates a dynamic executable file creation command signal to have the robot control device 6 create a new dynamic executable file, and transmits the generated dynamic executable file creation command signal to the robot control device 6 via the data transmission / reception unit 528. More specifically, the dynamic executable file start / stop unit 525 generates a dynamic executable file creation command signal when a G-code is extracted for the first time in the numerical control program, when a G-code is extracted for the first time in the numerical control program after the execution of the static executable file is completed in the robot control device 6, or when a G-code (e.g., "G200.1") defined for commanding the creation of a dynamic executable file is extracted in the numerical control program, and transmits the generated dynamic executable file creation command signal to the robot control device 6 via the data transmission / reception unit 528.
[0054] The robot controller 6 generates a robot control signal by selectively executing either a dynamic executable file or a static executable file. In other words, the robot controller 6 does not execute both a dynamic executable file and a static executable file at the same time.
[0055] Therefore, when the dynamic executable file start / stop unit 525 extracts an M code (e.g., “M90”, “M91”, “M92”, “M93”, and “M60”, etc., as described later with reference to FIG. 4 and FIG. 6) assigned for specifying a static executable file in the numerical control program for the robot (i.e., when a static executable file start command signal is sent from the static executable file selection / start unit 524), when it extracts a command declaring an end program in the numerical control program (e.g., “M30”), or when it extracts a G code (e.g., “G200.0”) defined for commanding the stop of the dynamic executable file in the numerical control program, it generates a dynamic executable file stop command signal and transmits the generated dynamic executable file stop command signal to the robot control device 6 via the data transmission / reception unit 528.
[0056] The robot command signal generation unit 526 generates a robot command signal according to the numerical control program based on the latest coordinate information and morphological information stored in the memory of the coordinate and morphological information control unit 523 and the analysis results of the numerical control program input from the input analysis unit 522, writes the generated robot command signal to the data transmission / reception unit 528, and transmits this robot command signal to the robot control device 6.
[0057] Here, a case will be described in which the command type based on the numerical control program involves a change in the position and posture of the control point of the robot 3 or a change in the form of the robot 3 (specifically, for example, a case in which the G-code is "G00" corresponding to positioning (fast forward) or "G01" corresponding to linear interpolation). In this case, the robot command signal generation unit 526 calculates the end point and speed of the control point of the robot 3 under a specified coordinate format when the coordinate value stored in the memory of the coordinate form information control unit 523 is set as the start point of the control point of the robot 3, and writes a robot command signal including information on the specified coordinate format, the end point, and the speed to the data transmission / reception unit 528. After calculating the coordinate value of the end point of the control point of the robot 3 as described above, the robot command signal generation unit 526 updates the start point coordinate value stored in the memory of the coordinate form information control unit 523 with the calculated end point coordinate value.
[0058] When a robot command signal is written by the robot command signal generation unit 526, the data transmission / reception unit 528 transmits this robot command signal to the data transmission / reception unit 61 of the robot control device 6. When a reference coordinate value request signal or a reference form value request signal is written by the coordinate form information control unit 523, the data transmission / reception unit 528 transmits these reference coordinate value request signals and reference form value request signals to the data transmission / reception unit 61 of the robot control device 6. When a static executable file start command signal is written by the static executable file selection start unit 524, the data transmission / reception unit 528 transmits this static executable file start command signal to the data transmission / reception unit 61 of the robot control device 6. Also, when a dynamic executable file creation command signal or a dynamic executable file stop command signal is written by the dynamic executable file start / stop unit 525, the data transmission / reception unit 528 transmits these dynamic executable file creation command signal and dynamic executable file stop command signal to the data transmission / reception unit 61 of the robot control device 6.
[0059] When the data transmitter / receiver 528 receives the reference coordinate value information and the reference form value information transmitted from the data transmitter / receiver 61 of the robot control device 6, it transmits the reference coordinate value information and the reference form value information to the coordinate form information control unit 523.
[0060] Next, a detailed description will be given of the configuration of the robot control device 6. As shown in Fig. 2, the robot control device 6 has the above hardware configuration to realize various functions such as a data transmission / reception unit 61, an input analysis unit 62, a robot position management unit 63, a robot command generation unit 64, a control unit 60, a static executable file selection and startup unit 68, a dynamic executable file startup and shutdown unit 69, and a storage unit 70.
[0061] When the data transmitter / receiver 61 receives a robot command signal, a static executable file start command signal, a dynamic executable file creation command signal, or a dynamic executable file stop command signal transmitted from the data transmitter / receiver 528 of the numerical control device 5, it transmits these signals to the input analysis unit 62. Furthermore, when the data transmitter / receiver 61 receives a reference coordinate value request signal and a reference form value request signal transmitted from the data transmitter / receiver 528, it transmits these signals to the robot position management unit 63.
[0062] When the robot position management unit 63 writes the reference coordinate value information and the reference form value information in a procedure described later, the data transmission / reception unit 61 transmits the reference coordinate value information and the reference form value information to the data transmission / reception unit 528 of the numerical control device 5.
[0063] When the robot position management unit 63 receives the reference coordinate value request signal transmitted from the data transmission / reception unit 61, it acquires detection values of various position sensors (not shown) provided on the robot 3, and calculates the coordinate values of each control axis in the robot coordinate system in a specified coordinate format based on these detection values. The robot position management unit 63 sets the calculated coordinate values as reference coordinate values, and writes reference coordinate value information including these reference coordinate values to the data transmission / reception unit 61. As a result, the reference coordinate value information is transmitted from the data transmission / reception unit 61 to the numerical control device 5.
[0064] Furthermore, when the robot position management unit 63 receives a reference configuration value request signal transmitted from the data transmission / reception unit 61, it acquires detection values of various position sensors provided on the robot 3 and calculates a configuration value of the robot 3 based on these detection values. The robot position management unit 63 sets the calculated configuration value as the reference configuration value and writes reference configuration value information including this reference configuration value to the data transmission / reception unit 61. As a result, the reference configuration value information is transmitted from the data transmission / reception unit 61 to the numerical control device 5.
[0065] When the input analysis unit 62 receives a robot command signal transmitted from the data transmission / reception unit 61, it transmits this robot command signal to the robot command generation unit 64. When the input analysis unit 62 receives a static executable file launch command signal transmitted from the data transmission / reception unit 61, it transmits this static executable file launch command signal to the static executable file selection and launch unit 68. When the input analysis unit 62 receives a dynamic executable file creation command signal and a dynamic executable file stop command signal transmitted from the data transmission / reception unit 61, it transmits these dynamic executable file creation command signal and dynamic executable file stop command signal to the dynamic executable file launch and stop unit 69.
[0066] The control unit 60 generates robot control signals based on a dynamic executable file creation command signal and a robot command signal transmitted from the numerical control device 5, and selectively executes either the dynamic executable files that are successively added or the static executable files that are selected based on a static executable file launch command signal transmitted from the numerical control device 5, thereby generating robot control signals and inputting them to each servo motor of the robot 3. More specifically, the control unit 60 includes a program management unit 65, a trajectory control unit 66, and a servo control unit 67.
[0067] When a static executable file is selected by a static executable file selection and start-up unit 68 in a procedure described below, the program management unit 65 generates an operation plan for the robot 3 by executing the selected static executable file, and transmits it to the trajectory control unit 66. When a dynamic executable file is generated by a dynamic executable file start-up and stop unit 69 in a procedure described below, the program management unit 65 generates an operation plan for the robot 3 by executing the generated dynamic executable file, and transmits it to the trajectory control unit 66.
[0068] The trajectory control unit 66 calculates the trajectory of the control points of the robot 3 based on the motion plan generated by the program management unit 65, calculates the angles of each joint of the robot 3 according to the calculated trajectory as target angles, and transmits these target angles to the servo control unit 67.
[0069] The servo control unit 67 generates robot control signals for the robot 3 by feedback controlling each servo motor of the robot 3 so that the target angles of each joint transmitted from the trajectory control unit 66 are realized, and inputs the signals to the servo motors of the robot 3.
[0070] The storage unit 70 stores a plurality of static executable files that can be executed by the program management unit 65. The static executable files are binary files created based on a robot program that defines a procedure for realizing a predetermined operation of the robot 3 (for example, a workpiece machining operation by the robot 3, a workpiece deburring operation by the robot 3, a workpiece inspection operation by the robot 3, a workpiece delivery operation by the robot 3, and a workpiece replacement operation by the robot 3, etc.), and those created in advance by an operator are used. Each static executable file stored in the storage unit 70 is associated with an M code in the numerical control program in the numerical control device 5. For example, as will be described later with reference to Figs. 4 and 6, a static executable file for performing a workpiece machining operation is associated with "M90", a static executable file for performing a workpiece deburring operation is associated with "M91", a static executable file for performing a workpiece inspection operation is associated with "M92", a static executable file for performing a workpiece delivery operation is associated with "M93", and a static executable file for performing a workpiece replacement operation is associated with "M60".
[0071] When the static executable file selection and launch unit 68 receives a static executable file launch command signal transmitted from the input analysis unit 62, it selects a static executable file associated with the received static executable file launch command signal from among the multiple static executable files stored in the memory unit 70, and causes the program management unit 65 to execute the selected static executable file.
[0072] When the dynamic executable file start / stop unit 69 receives a dynamic executable file creation command signal transmitted from the input analysis unit 62, it generates a dynamic executable file to which commands are sequentially added by the robot command generation unit 64 in a procedure described below, and causes the program management unit 65 to execute the generated dynamic executable file. Furthermore, when the dynamic executable file start / stop unit 69 receives a dynamic executable file stop command signal transmitted from the input analysis unit 62, it stops the dynamic executable file being executed in the program management unit 65, and then deletes the dynamic executable file.
[0073] When the robot command generation unit 64 receives a robot command signal transmitted from the input analysis unit 62, it sequentially adds commands corresponding to the received robot command signal to the dynamic executable file being executed by the program management unit 65. The program management unit 65 executes the dynamic executable file to which commands are sequentially added by the robot command generation unit 64 as described above, thereby making it possible for the robot 3 to realize operations defined based on the numerical control program of the numerical control device 5.
[0074] Next, a specific procedure of a robot control method for controlling the robot 3 in the numerical control system 1 configured as above will be described.
[0075] Based on the numerical control program stored in the memory unit 53, the numerical control device 5 generates higher-level command signals for the robot control device 6, such as a robot command signal, a reference coordinate value request signal, a reference form value request signal, a static executable file start command signal, a dynamic executable file create command signal, and a dynamic executable file stop command signal, and inputs these higher-level command signals to the robot control device 6.
[0076] When the dynamic executable file start / stop unit 69 of the robot control device 6 receives a dynamic executable file creation command signal from the numerical control device 5, it generates a dynamic executable file based on this dynamic executable file creation command signal. When the robot command generation unit 64 of the robot control device 6 receives a robot command signal from the numerical control device 5, it sequentially adds commands corresponding to this robot command signal to the dynamic executable file generated by the dynamic executable file start / stop unit 69. When the control unit 60 of the robot control device 6 executes the dynamic executable file generated by the dynamic executable file start / stop unit 69 and to which commands are sequentially added by the robot command generation unit 64 as described above, it generates a robot control signal and inputs it to the robot 3. After that, when the dynamic executable file start / stop unit 69 receives a dynamic executable file stop command signal from the numerical control device 5, it stops and deletes the dynamic executable file being executed in the control unit 60. When the dynamic executable file being executed is stopped by the dynamic executable file start / stop unit 69, the control unit 60 generates a robot control signal to decelerate and stop the robot 3, and inputs it to the robot 3.
[0077] Furthermore, when the static executable file selection and launch unit 68 of the robot control device 6 receives a static executable file launch command signal from the numerical control device 5, it selects a static executable file specified by the received static executable file launch command signal from among the multiple static executable files stored in the memory unit 70. When a static executable file is selected by the static executable file selection and launch unit 68 in the above manner, the control unit 60 executes the selected static executable file to generate a robot control signal and inputs it to the robot 3.
[0078] As described above, the robot control device 6 selectively executes either the dynamic executable file or the static executable file based on the robot command signal, the static executable file launch command signal, the dynamic executable file creation command signal, and the dynamic executable file stop command signal transmitted from the numerical control device 5, thereby generating a robot control signal and inputting it to the robot 3.
[0079] Next, the flow of various signals and information in the numerical control system 1 configured as above will be described with reference to FIGS. 4, 5A, and 5B.
[0080] Figure 4 is an example of a numerical control program for a robot. 5A and 5B are sequence diagrams showing the flow of signals and information between the numerical control device 5 and the robot control device 6 when the numerical control device 5 is operated based on the numerical control program for a robot illustrated in FIG. 4, and the processing executed in the robot control device 6.
[0081] First, in a block indicated by sequence number "N10", a G-code command "G68.8" is input to the coordinate form information control unit 523 and the dynamic executable file start / stop unit 525 of the numerical control device 5. In response to the first extraction of a G-code in the numerical control program, the dynamic executable file start / stop unit 525 transmits a dynamic executable file creation command signal to the dynamic executable file start / stop unit 69 of the robot control device 6. In response to receiving the dynamic executable file creation command signal, the dynamic executable file start / stop unit 69 creates a new dynamic executable file and causes the control unit 60 to execute the created dynamic executable file.
[0082] Furthermore, in the block indicated by sequence number "N10", the coordinate form information control unit 523 sets each axis coordinate format as a specified coordinate format, and transmits a reference coordinate value request signal to the robot position management unit 63 of the robot control device 6. In response to receiving the reference coordinate value request signal, the robot position management unit 63 acquires reference coordinate values (J1, J2, J3, J4, J5, J6) under the currently specified coordinate format, and transmits reference coordinate value information including these reference coordinate values to the coordinate form information control unit 523. The coordinate form information control unit 523 also updates the coordinate information stored in the memory with the received reference coordinate values.
[0083] Next, in the block indicated by sequence number "N11", a command "G0 J1=_J2=_J3=_J4=_J5=_J6=_" based on each axis coordinate format is input to the robot command signal generating unit 526 of the numerical control device 5. The underscore in the command indicates the coordinate value of the end point. The robot command signal generating unit 526 generates a robot command signal based on the coordinate information stored in the memory of the coordinate form information control unit 523 and the input command, and transmits it to the robot command generating unit 64 of the robot control device 6. The robot command generating unit 64 adds a command corresponding to the received robot command signal to the dynamic executable file being executed in the control unit 60. The control unit 60 generates a robot control signal corresponding to the command added to the dynamic executable file, and inputs it to the robot 3.
[0084] Next, in the block indicated by sequence number "N20", a G-code command "G68.9" is input to the coordinate form information control unit 523 of the numerical control device 5. In response to this, the coordinate form information control unit 523 changes the designated coordinate format from the previous each-axis coordinate format to the Cartesian coordinate format. In addition, the coordinate form information control unit 523 transmits a reference coordinate value request signal to the robot position management unit 63 of the robot control device 6 in response to changing the designated coordinate format in this block. In response to receiving the reference coordinate value request signal, the robot position management unit 63 acquires the reference coordinate values (X, Y, Z, A, B, C) under the current designated coordinate format, and transmits reference coordinate value information including the reference coordinate values to the coordinate form information control unit 523 of the numerical control device 5. In addition, the coordinate form information control unit 523 updates the coordinate information stored in the memory with the received reference coordinate values.
[0085] Next, in the block indicated by sequence number "N21", a command "G1 X_Y_Z_A_B_C_P_" based on the Cartesian coordinate format is input to the coordinate configuration information control unit 523 and the robot command signal generation unit 526 of the numerical control device 5. Note that the command input in this block specifies the configuration value of the robot 3. When the configuration value is specified in the command in this manner, the coordinate configuration information control unit 523 does not transmit a reference configuration value request signal. Also in this case, the coordinate configuration information control unit 523 updates the configuration information stored in the memory with the configuration value specified in the input command.
[0086] After updating the form information as described above, the robot command signal generator 526 of the numerical control device 5 generates a robot command signal based on the coordinate information and form information stored in the memory of the coordinate form information control unit 523 and the input command, and transmits it to the robot command generator 64 of the robot control device 6. The robot command generator 64 adds a command corresponding to the received robot command signal to the dynamically executable file being executed in the control unit 60. The control unit 60 generates a robot control signal corresponding to the command added to the dynamically executable file, and inputs it to the robot 3.
[0087] Next, in a block indicated by sequence number "N30", an M-code command "M90" is input to the dynamic executable file start / stop unit 525 and the static executable file selection / start unit 524 of the numerical control device 5. In response to the extraction of the M-code assigned to specify the static executable file in the numerical control program, the dynamic executable file start / stop unit 525 transmits a dynamic executable file stop command signal to the dynamic executable file start / stop unit 69 of the robot control device 6. In response to receiving the dynamic executable file stop command signal, the dynamic executable file start / stop unit 69 stops and erases the dynamic executable file being executed in the control unit 60. In response to the stopping of the executing dynamic executable file, the control unit 60 generates a robot control signal to decelerate and stop the robot 3, and inputs it to the robot 3.
[0088] In addition, in the block indicated by sequence number "N30", the static executable file selection and launch unit 524 transmits a static executable file launch command signal corresponding to the extracted M code to the static executable file selection and launch unit 68 of the robot control device 6 in response to the extraction of the M code assigned to specify the static executable file in the numerical control program. In addition, in response to receiving the static executable file launch command signal, the static executable file selection and launch unit 68 selects a static executable file associated with the received static executable file launch command signal from among the multiple static executable files stored in the storage unit 70. The control unit 60 executes the static executable file selected by the static executable file selection and launch unit 68. In addition, in the block indicated by sequence number "N30", the control unit 60 executes the operation associated with the M code "M90", that is, the static executable file for performing the machining operation of the workpiece. In addition, when the execution of the static executable file is completed in the control unit 60, the static executable file selection and launch unit 68 notifies the numerical control device 5 that the operation associated with the M code has been completed.
[0089] In the blocks indicated by sequence numbers "N31", "N32", and "N33", commands "M91", "M92", and "M93" using M codes assigned for designating static executable files are input in order to the static executable file selection start-up unit 524 of the numerical control device 5. Therefore, in the robot control device 6, the static executable file for performing the workpiece deburring operation, the static executable file for performing the workpiece inspection operation, and the static executable file for performing the workpiece ejection operation are executed in order in the same procedure as in the block indicated by sequence number "N30".
[0090] Next, in the block indicated by sequence number "N40", a G-code command "G68.8" is input to the coordinate form information control unit 523 and the dynamic executable file start / stop unit 525 of the numerical control device 5. After the execution of the static executable file is completed in the robot control device 6, the dynamic executable file start / stop unit 525 transmits a dynamic executable file creation command signal to the dynamic executable file start / stop unit 69 of the robot control device 6 in response to the first extraction of the G-code in the numerical control program. Furthermore, in response to receiving the dynamic executable file creation command signal, the dynamic executable file start / stop unit 69 again generates a dynamic executable file and causes the control unit 60 to execute the generated dynamic executable file.
[0091] Furthermore, in the block indicated by sequence number "N40", the coordinate form information control unit 523 updates the coordinate information stored in the memory by the same procedure as that of the above-mentioned sequence number "N10".
[0092] Next, in the block indicated by sequence number "N41", a command "G0 J1=_J2=_J3=_J4=_J5=_J6=_" based on each axis coordinate format is input to the robot command signal generating unit 526 of the numerical control device 5. The robot command signal generating unit 526 generates a robot command signal by the same procedure as that of sequence number "N11" described above, and transmits it to the robot command generating unit 64 of the robot control device 6. The robot command generating unit 64 adds a command corresponding to the received robot command signal to the dynamic executable file being executed by the control unit 60. The control unit 60 generates a robot control signal corresponding to the command added to the dynamic executable file, and inputs it to the robot 3.
[0093] After that, in the block indicated by sequence number "N50", a command "M30" declaring the end program of the numerical control program is input to the dynamic executable file start / stop unit 525 of the numerical control device 5. In response to this, the dynamic executable file start / stop unit 525 generates a dynamic executable file stop command signal and transmits it to the dynamic executable file start / stop unit 69 of the robot control device 6. In addition, in response to receiving the dynamic executable file stop command signal, the dynamic executable file start / stop unit 69 stops and erases the dynamic executable file being executed in the control unit 60. In response to the stopping of the dynamic executable file being executed, the control unit 60 generates a robot control signal to decelerate and stop the robot 3, and inputs it to the robot 3.
[0094] Fig. 6 shows an example of a numerical control program for a machine tool and a numerical control program for a robot. In Fig. 6, the left side shows a numerical control program for a machine tool read into a machine tool control module 51, and the right side shows a numerical control program for a robot read into a robot control module 52.
[0095] In the example shown in Fig. 6, the machine tool control module 51 and the robot control module 52 execute their respective numerical control programs in synchronization with each other in the block between the rendezvous M codes "M100P12" and "M101P12". In the example shown in Fig. 6, the block between the rendezvous M codes "M100P12" and "M101P12" in the numerical control program for the machine tool contains the G code "G200.0" defined to command the stop of the dynamic executable file, the M code "M60" assigned to specify the static executable file, and the G code "G200.1" defined to command the creation of the dynamic executable file. On the other hand, no command is written in the block between the rendezvous M codes "M100P12" and "M101P12" in the numerical control program for the robot.
[0096] For this reason, during the synchronization period, the robot control module 52 does not transmit a higher-level command signal to the robot control device 6. On the other hand, in response to extracting the G-code "G200.0" from the numerical control program for the machine tool, the machine tool control module 51 transmits a dynamic executable file stop command signal to the dynamic executable file start / stop unit 69 of the robot control device 6. In response to this, the dynamic executable file start / stop unit 69 stops and deletes the dynamic executable file being executed in the control unit 60.
[0097] Thereafter, in response to extracting the M-code "M60" from the numerical control program for the machine tool, the machine tool control module 51 transmits a static executable file launch command signal corresponding to the extracted M-code to the static executable file selection and launch unit 68 of the robot control device 6. In response to receiving the static executable file launch command signal, the static executable file selection and launch unit 68 selects a static executable file associated with the received static executable file launch command signal from among the multiple static executable files stored in the memory unit 70. The control unit 60 executes the static executable file selected by the static executable file selection and launch unit 68.
[0098] Thereafter, in response to extracting the G-code "G200.1" from the numerical control program for the machine tool, the machine tool control module 51 transmits a dynamic executable file creation command signal to the dynamic executable file start / stop unit 69 of the robot control device 6. In response to receiving the dynamic executable file creation command signal, the dynamic executable file start / stop unit 69 generates a new dynamic executable file and causes the control unit 60 to execute the generated dynamic executable file.
[0099] According to this embodiment, the following effects are achieved. The numerical control device 5 generates a higher-level command signal including a robot command signal for the robot 3 according to the numerical control program, and the robot control device 6 generates a robot control signal for controlling the operation of the robot 3 based on the higher-level command signal generated by the numerical control device 5, and inputs it to the robot 3. Here, the robot control device 6 includes a control unit 60 that generates a robot control signal by selectively executing either a dynamic executable file that is generated based on a dynamic executable file creation command signal and a robot command signal and that is sequentially added, or a static executable file that is selected based on a static executable file start command signal. Therefore, according to this embodiment, if a user has a static executable file that has been operating in an existing robot control device, the user can effectively use not only the dynamic executable file that is automatically generated based on the numerical control program, but also the existing static executable file to control the operation of the robot 3.
[0100] The numerical control device 5 comprises a machine tool control module 51 which generates a machine tool command signal for the machine tool 2 in accordance with a numerical control program for the machine tool, and a robot control module 52 which generates a higher-level command signal for the robot 3 in accordance with a numerical control program for the robot. Both the machine tool 2 and the robot 3 can be controlled by a numerical control program written in a common language.
[0101] The robot controller 6 includes a dynamic executable file start / stop unit 69 that generates a dynamic executable file based on a dynamic executable file creation command signal transmitted from the numerical controller 5, causes the control unit 60 to execute the generated dynamic executable file, and stops the dynamic executable file being executed in the control unit 60 based on a dynamic executable file stop command signal transmitted from the numerical controller 5. According to this embodiment, it is convenient because the dynamic executable file can be executed and stopped in the robot controller 6 at timings determined based on the numerical control program in the numerical controller 5.
[0102] The robot control device 6 includes a static executable file selection and startup unit 68 that selects one of a plurality of static executable files stored in the storage unit 70 based on a static executable file startup command signal and causes the control unit 60 to execute the selected static executable file. According to this embodiment, it is convenient because the robot control device 6 can execute a static executable file determined based on a numerical control program in the numerical control device 5 at a timing determined based on this numerical control program.
[0103] The dynamic executable file start / stop unit 69 of the robot control device 6 deletes the dynamic executable file being executed in the control unit 60 based on the dynamic executable file stop command signal transmitted from the numerical control device 5. According to this embodiment, by deleting the dynamic executable file being executed in the control unit 60, the state in which the control unit 60 continues to exclusively occupy the dynamic executable file can be reliably eliminated, so that the control unit 60 can continue to execute the static executable file.
[0104] The present disclosure is not limited to the above-described embodiment, and various modifications and variations are possible. [Explanation of symbols]
[0105] 1. Numerical control system 2…Machine tools 3. Robot 5...Numerical control device 51...machine tool control module 52…Robot control module 521...Program input section 522…Input analysis unit 523... Coordinate form information control unit 524...Static executable file selection launcher 525...Dynamic executable file start / stop section 526...Robot command signal generation unit 528...Data transmission and reception unit 53...Storage section 6...Robot control device 60...Control unit 61...Data transmission / reception unit 62...Input analysis unit 63…Robot position management unit 64...Robot command generation unit 65…Program Management Division 66...Trajectory control section 67...Servo control unit 68...Static executable file selection launcher 69...Dynamic executable file start / stop section 70...Storage section
Claims
1. a numerical control device that generates a machine tool command signal for a machine tool in accordance with a machine tool numerical control program and generates a higher-level command signal including a robot command signal for a robot in accordance with a robot numerical control program; a robot control device capable of communicating with the numerical control device, generating a robot control signal for controlling an operation of the robot based on the upper command signal, and inputting the robot control signal to the robot, the numerical control device comprises an input analysis unit which analyzes the numerical control program for the robot; a first static executable file selection and startup unit which generates a static executable file startup command signal based on a result of the analysis by the input analysis unit and transmits the signal to the robot control device; a first dynamic executable file startup and stop unit which generates a dynamic executable file creation command signal or a dynamic executable file stop command signal based on a result of the analysis by the input analysis unit and transmits the signal to the robot control device; and a robot command signal generation unit which generates the robot command signal based on a result of the analysis by the input analysis unit and transmits the signal to the robot control device; a control unit that generates the robot control signal by selectively executing a dynamic executable file generated by sequentially adding commands corresponding to the robot command signal and one selected from the plurality of static executable files stored in the storage unit; a second dynamic executable file start / stop unit that generates the dynamic executable file in response to receiving the dynamic executable file creation command signal, causes the control unit to execute the generated dynamic executable file, and stops the dynamic executable file being executed in the control unit in response to receiving the dynamic executable file stop command signal; and a second static executable file selection / startup unit that selects one of the plurality of static executable files stored in the storage unit in response to receiving the static executable file start command signal, and causes the control unit to execute the selected static executable file.
2. 2. The numerical control system according to claim 1, wherein the second dynamic executable file start / stop unit deletes the dynamic executable file being executed in the control unit in response to receiving the dynamic executable file stop command signal.
3. A robot control method for controlling a robot by a numerical control device which generates a machine tool command signal for a machine tool in accordance with a machine tool numerical control program and generates a higher-level command signal including a robot command signal for a robot in accordance with a robot numerical control program, and a robot control device which is capable of communicating with the numerical control device, generates a robot control signal for controlling an operation of the robot based on the higher-level command signal, and has a control unit which inputs the robot control signal to the robot and a memory unit in which a plurality of static executable files are stored, analyzing the robot numerical control program in the numerical control device; generating a static executable file start command signal based on the result of the analysis in the numerical control device and transmitting the static executable file start command signal to the robot control device; generating a dynamic executable file creation command signal or a dynamic executable file stop command signal based on the result of the analysis in the numerical control device and transmitting the signal to the robot control device; generating the robot command signal based on the result of the analysis in the numerical control device and transmitting the robot command signal to the robot control device; a step of selectively executing one of a dynamic executable file generated by sequentially adding commands corresponding to the robot command signal in the control unit of the robot control device and a plurality of the static executable files stored in the storage unit, thereby generating a robot control signal for controlling an operation of the robot, and inputting the robot control signal to the robot; generating the dynamic executable file in response to receiving the dynamic executable file generation command signal in the robot control device, and causing the control unit to execute the generated dynamic executable file; terminating the dynamic executable file being executed by the control unit in response to receiving the dynamic executable file termination command signal in the robot control device; In response to receiving the static executable file launch command signal in the robot control device, selecting one of the plurality of static executable files stored in the memory unit, and causing the control unit to execute the selected static executable file.
Citation Information
Patent Citations
Numerical control system
JP1981011510A
robot
JP1993216524A
Robot controller
JP1997305213A
Execution of numerical control program by robot
JP2013134786A
Numerical control device and numerical control method
JP6647472B1
