Robot control device and robot control system
Patent Information
- Application Number
- JP2023543023
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-03
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Existing systems face challenges in synchronizing communication between robots and CNC industrial machines, leading to inefficient data communication cycles due to large variable sizes and the need for multiple signals, which limits timely monitoring and control.
A robot control device with an acquisition unit, IO conversion section, storage section, and allocation storage section that repeatedly acquires and converts CNC variables into IO data for efficient storage and monitoring, allowing periodic reading and writing of variables.
Enables efficient and timely monitoring and control of CNC industrial machines by reducing communication data volume and cycle times, facilitating seamless integration and operation of robots and CNC machines.
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a robot control device and a robot control system. [Background technology]
[0002] There are systems that allow a robot to be controlled from an industrial machine such as a machine tool. Such systems allow communication between the robot and the industrial machine, and enable monitoring of the status of each other and requests from each other. In addition, the robot program commands have the function of communicating with CNC (computerized numerical control) industrial machines and accessing CNC setting variables. By obtaining or writing setting variables with these commands, the robot or robot control device and the CNC industrial machines can check each other's status and make requests to each other. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] International Publication No. 2020 / 194752 Summary of the Invention [Problem to be solved by the invention]
[0004] To access variables for CNC settings, an access command must be executed in the robot program. For this reason, the CNC industrial machine cannot make a request to the robot or robot control device at any time, and must wait until the access command is executed in the robot or robot control device. For the same reason, it is difficult for the robot or robot control device and the industrial machine to monitor the status of the other party. To make a request at any time and to monitor the status of the other party, it is possible to synchronize the robot and the CNC industrial machine. To synchronize the robot and the CNC industrial machine, multiple signals must be prepared. However, CNC variables are usually 8-byte or 16-byte variables. For this reason, if the robot or robot control device obtains one variable to monitor one status of the CNC industrial machine, the amount of communication data becomes enormous and the communication cycle becomes slow.
[0005] The problem that the embodiments of the present disclosure aim to solve is to provide a robot control device and a robot control system that can periodically read (acquire) or write variables for setting industrial machines and use them as variable data for the robot. [Means for solving the problem]
[0006] The robot control device according to the embodiment includes an acquisition unit, IO conversion section, The system includes a storage unit and an allocation memory unit. The acquisition unit repeatedly acquires the value of the variable from the industrial machine. The IO conversion unit converts the value of the variable acquired by the acquisition unit into IO data. The storage unit is IO Conversion By department conversion The allocation memory unit writes the value of the variable to a storage area for storing the value of the variable. The allocation memory unit stores allocation data indicating a location or address of the storage area to which the variable is to be written. The storage area is in the IO memory area. Effect of the Invention
[0007] The present disclosure enables a robot control device to read (acquire) or write variables of an industrial machine and use them in the same way as variable data of a robot. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram showing an example of a main configuration of a control system according to an embodiment and components included in the control system. [Diagram 2] 1 is a block diagram showing an example of main functions and main configurations of a control system according to an embodiment; [Diagram 3] 4 is a flowchart showing an example of processing according to the first embodiment performed by a processor of the control device in FIG. [Figure 4] 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of the industrial machine in FIG. 1. [Diagram 5] 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of the control device in FIG. 1; [Figure 6] 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of the teaching device in FIG. 1; [Figure 7] 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of the control device in FIG. 1; [Figure 8] 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of the industrial machine in FIG. 1. [Figure 9] 2 is a diagram showing an example of a variable screen displayed on a display device of the teaching device in FIG. 1; [Figure 10] FIG. 2 is a block diagram for explaining an example of the operation of the control device 100 and the industrial machine 200. [Figure 11] 10 is a flowchart showing an example of processing according to the second embodiment by a processor of the control device in FIG. [Figure 12] 2 is a diagram showing an example of a variable screen displayed on a display device of the teaching device in FIG. 1; [Figure 13] 10 is a flowchart showing an example of processing according to the second embodiment by a processor of the teaching device in FIG. [Figure 14]2 is a diagram showing an example of an editing screen displayed on a display device of the teaching device in FIG. 1; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, a control system according to some embodiments will be described with reference to the drawings. Note that, for the sake of explanation, the drawings used in the following description of the embodiments may omit configurations. In addition, in each drawing and in this specification, the same reference numerals denote similar elements. [First embodiment] A control system 1 according to an embodiment will be described with reference to FIGS. Fig. 1 is a block diagram showing an example of a main configuration of a control system 1 according to an embodiment and components included in the control system 1. Fig. 2 is a block diagram showing an example of a main function and main configuration of the control system 1 according to an embodiment. The control system 1 is a system that controls a robot 300. The control system 1 includes, as an example, a control device 100, an industrial machine 200, a robot 300, and a teaching device 400. The control system 1 is an example of a robot control system.
[0010] The control device 100 is a device that controls the robot 300. The control device 100 includes, as an example, a processor 110, a read-only memory (ROM) 120, a random-access memory (RAM) 130, an auxiliary storage device 140, a control interface 150, and a communication interface 160. A bus 170 and the like connect these components together. The control device 100 is an example of a robot control device.
[0011] The processor 110 is a central part of a computer that performs processing such as calculations and control necessary for the operation of the control device 100, and performs various calculations and processing. The processor 110 is, for example, a central processing unit (CPU), a micro processing unit (MPU), a system on a chip (SoC), a digital signal processor (DSP), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a programmable logic device (PLD), or a field-programmable gate array (FPGA). Alternatively, the processor 110 is a combination of a plurality of these. The processor 110 may also be a combination of these with a hardware accelerator or the like. The processor 110 controls each part to realize various functions of the control device 100 based on programs such as firmware, system software, and application software stored in the ROM 120 or the auxiliary storage device 140. The processor 110 also executes processing described later based on the programs. Note that a part or all of the programs may be incorporated in the circuit of the processor 110.
[0012] By executing the above programs, the processor 110 functions as, for example, an allocation unit 111, a data conversion unit 112, a startup unit 113, a stop unit 114, and a target unit 115.
[0013] The allocation unit 111 specifies where each setting variable 241 is to be stored. The data conversion unit 112 converts the setting variables 241 into IO data. The setting variables 241 will be described later.
[0014] The starting unit 113 starts the robot 300. The stopping unit 114 stops the robot 300.
[0015] The target unit 115 identifies which configuration variable 241 is the target for which a value is to be stored.
[0016] The ROM 120 and the RAM 130 are main memory devices of the computer with the processor 110 at its core. The ROM 120 is a non-volatile memory used exclusively for reading data. The ROM 120 stores, for example, firmware among the above programs. The ROM 120 also stores data used by the processor 110 when performing various processes. The ROM 120 may be composed of multiple memories.
[0017] The RAM 130 is a memory used for reading and writing data. The RAM 130 is used as a work area for storing data that is temporarily used when the processor 110 performs various processes. The RAM 130 is typically a volatile memory. The RAM 130 may be composed of multiple memories.
[0018] The RAM 130 includes, for example, two types of memory areas: a memory area 131 and an IO memory area 132. The memory area 131 is a memory area for storing data other than IO data. The IO memory area 132 is a memory area for storing IO data, and is a memory area capable of storing IO data. The IO data will be described later. Note that the memory area 131 and the IO memory area 132 may be physically present on the same memory, or may be physically present on different memories. However, in the first embodiment, the RAM 130 does not need to include the IO memory area 132. Instead of the RAM 130, a storage device other than the RAM 130, such as the ROM 120 or the auxiliary storage device 140, may include the IO memory area 132.
[0019] The RAM 130 is also allocated with a startup area 133 and an alarm area 134. The startup area 133 and the alarm area 134 will be described later.
[0020] The auxiliary storage device 140 is an auxiliary storage device of a computer with the processor 110 at its core. The auxiliary storage device 140 is, for example, an EEPROM (electric erasable programmable read-only memory), a HDD (hard disk drive), or a flash memory. The auxiliary storage device 140 stores, for example, system software and application software among the above programs. The auxiliary storage device 140 also stores data used by the processor 110 in performing various processes, data generated by the processes in the processor 110, various setting values, and the like.
[0021] The auxiliary storage device 140 and the like also store parameter information, allocation information and first execution information, which will be described later. The allocation information and the first execution information may be stored in a location other than the control device 100.
[0022] The parameter information is information that stores, for example, at least one of settings related to obtaining the setting variables 241 from the industrial machine 200 and settings related to writing the setting variables 241 to the industrial machine 200. The value of each setting in the parameter information is set, for example, by a user, an administrator, or a designer of the control system 1. A default value may be set for each setting in the parameter information. The value of each setting in the parameter information may be changeable or unchangeable. The auxiliary storage device 140 may store multiple pieces of parameter information.
[0023] The control interface is an interface through which the control device 100 communicates with the robot 300. The control device 100 controls the robot 300 by communicating with the robot 300 via the control interface 150.
[0024] The communication interface 160 is an interface through which the control device 100 communicates with the industrial machine 200, the teaching device 400, and the like. The communication interface 160 communicates, for example, via a network. Alternatively, the communication interface 160 communicates without using a network. The network is, for example, a communication network including a LAN (local area network) or the Internet. The control device 100 communicates with the industrial machine 200, the teaching device 400, and the like via the communication interface 160.
[0025] The bus 170 includes a control bus, an address bus, a data bus, etc., and transmits signals exchanged among the various parts of the control device 100 .
[0026] The industrial machine 200 is, for example, a machine tool or a peripheral device of a machine tool. Alternatively, the industrial machine 200 may be other machines. The control method of the industrial machine 200 is CNC. Alternatively, the control method of the industrial machine 200 may be NC or other methods. The industrial machine 200 includes, for example, a processor 210, a ROM 220, a RAM 230, an auxiliary storage device 240, a communication interface 250, an input device 260, and a display device 270. A bus 280 and the like connect these respective units.
[0027] The processor 210 is a central part of a computer that performs various calculations and processes such as calculations and control required for the operation of the industrial machine 200. The processor 210 is, for example, a CPU, an MPU, an SoC, a DSP, a GPU, an ASIC, a PLD, or an FPGA. Alternatively, the processor 210 is a combination of a plurality of these. The processor 210 may also be a combination of these with a hardware accelerator. The processor 210 controls each part to realize various functions of the industrial machine 200 based on programs such as firmware, system software, and application software stored in the ROM 220 or the auxiliary storage device 240. The processor 210 executes processes described below based on the programs. A part or all of the programs may be incorporated in the circuit of the processor 210.
[0028] The ROM 220 and the RAM 230 are the main memory devices of the computer with the processor 210 at its core. The ROM 220 is a non-volatile memory used exclusively for reading data. The ROM 220 stores, for example, firmware among the above programs. The ROM 220 also stores data used by the processor 210 when performing various processes. The RAM 230 is a memory used for reading and writing data. The RAM 230 is used as a work area for storing data that is temporarily used when the processor 210 performs various processes. The RAM 230 is typically a volatile memory.
[0029] The auxiliary storage device 240 is an auxiliary storage device of a computer with the processor 210 at its core. The auxiliary storage device 240 is, for example, an EEPROM, a HDD, or a flash memory. The auxiliary storage device 240 stores, for example, system software and application software among the above programs. The auxiliary storage device 240 also stores data used by the processor 210 in performing various processes, data generated by the processes in the processor 210, various setting values, and the like.
[0030] The auxiliary storage device 240 or the RAM 230 stores a setting variable 241. The value of the setting variable 241 can be changed by a user of the industrial machine 200. The setting variable 241 determines various settings of the industrial machine 200 or the control system 1. The setting variable 241 behaves, for example, like a global variable or an external variable. The auxiliary storage device 240 or the RAM 230 may store multiple setting variables 241. One setting variable 241 may include multiple values. In this case, each of the multiple values determines a setting. In FIG. 1, the setting variable 241 is described as being stored in the auxiliary storage device 240 as an example.
[0031] Moreover, the above programs include, for example, an industrial machine program 242 and a ladder program 243. Note that in Fig. 1, the industrial machine program 242 and the ladder program 243 are described as being stored in the auxiliary storage device 240 as an example. The industrial machine program 242 is, for example, a program for the industrial machine 200 to perform processing and is created by an end user. The ladder program 245 performs, for example, processing for operating the industrial machine 200 and for linking with external devices.
[0032] The communication interface 250 is an interface through which the industrial machine 200 communicates with the control device 100 and the like. The communication interface 250 communicates, for example, via the above-mentioned network. Alternatively, the communication interface 250 communicates without using a network. The control device 100 communicates with the control device 100 and the like via the communication interface 250.
[0033] The input device 260 accepts operations by an operator of the industrial machine 200. The input device 260 is, for example, a keyboard, a keypad, a touchpad, a mouse, a controller, etc. The input device 260 may also be a device for voice input.
[0034] The display device 270 displays a screen for notifying various pieces of information to an operator of the industrial machine 200 or the like. The display device 270 is, for example, a display such as a liquid crystal display or an organic EL display. A touch panel can also be used as the input device 260 and the display device 270. That is, a display panel provided in the touch panel can be used as the display device 270, and a pointing device provided in the touch panel by touch input can be used as the input device 260.
[0035] The bus 280 includes a control bus, an address bus, a data bus, etc., and transmits signals exchanged among the various parts of the industrial machine 200 .
[0036] The robot 300 is, for example, a manipulator or a robot arm, or a robot equipped with these. The robot 300 is, for example, a multi-joint robot. As an example, the robot 300 includes one or more driving units. The robot 300 may be another type of robot. The robot 300 may include the control device 100 built in.
[0037] The teaching device 400 is a device for creating a robot program. The robot program may be created by online teaching, offline teaching, direct teaching, or any other program creation method. The teaching device 400 is, for example, a teaching pendant capable of performing online teaching. The teaching device 400 is, for example, a device such as a PC (personal computer) that executes software for offline teaching. The control device 100 may have some or all of the functions of the teaching device 400. The robot 300 may have some or all of the functions of the teaching device 400. The teaching device 400 includes, for example, a processor 410, a ROM 420, a RAM 430, an auxiliary storage device 440, a communication interface 450, an input device 460, and a display device 470. A bus 480 and the like connect these parts. The teaching device 400 is an example of a display device.
[0038] The processor 410 is a central part of a computer that performs processes such as calculations and control necessary for the operation of the teaching device 400, and performs various calculations and processes. The processor 410 is, for example, a CPU, an MPU, an SoC, a DSP, a GPU, an ASIC, a PLD, or an FPGA. Alternatively, the processor 410 is a combination of a plurality of these. The processor 410 may also be a combination of these with a hardware accelerator. The processor 410 controls each part to realize various functions of the teaching device 400 based on programs such as firmware, system software, and application software stored in the ROM 420 or the auxiliary storage device 440. The processor 410 also executes processes described later based on the programs. Note that a part or all of the programs may be incorporated in the circuitry of the processor 410.
[0039] The ROM 420 and the RAM 430 are the main memory devices of the computer centered around the processor 410 . The ROM 420 is a non-volatile memory used exclusively for reading data. The ROM 420 stores, for example, firmware among the above programs. The ROM 420 also stores data used by the processor 410 when performing various processes. The RAM 430 is a memory used for reading and writing data. The RAM 430 is used as a work area for storing data that is temporarily used when the processor 410 performs various processes. The RAM 430 is typically a volatile memory.
[0040] The auxiliary storage device 440 is an auxiliary storage device of a computer with the processor 410 as its core. The auxiliary storage device 440 is, for example, an EEPROM, a HDD, or a flash memory. The auxiliary storage device 440 stores, for example, system software and application software among the above programs. The auxiliary storage device 440 also stores data used by the processor 410 in performing various processes, data generated by the processes in the processor 410, various setting values, and the like.
[0041] The communication interface 450 is an interface for the teaching device 400 to communicate with the control device 100 and the like. The communication interface 450 communicates, for example, via the above-mentioned network. Alternatively, the communication interface 450 communicates without using a network. The teaching device 400 communicates with the control device 100 and the like via the communication interface 450.
[0042] The input device 460 accepts operations by an operator of the teaching device 400. The input device 460 is, for example, a keyboard, a keypad, a touchpad, a mouse, a controller, etc. The input device 460 may also be a device for voice input.
[0043] The display device 470 displays a screen for notifying the operator of the teaching device 400 of various information. The display device 470 is, for example, a display such as a liquid crystal display or an organic EL display. A touch panel can also be used as the input device 460 and the display device 470. That is, a display panel provided in the touch panel can be used as the display device 470, and a pointing device provided in the touch panel by touch input can be used as the input device 460.
[0044] The bus 480 includes a control bus, an address bus, a data bus, etc., and transmits signals exchanged among the various parts of the teaching device 400 .
[0045] The operation of the control system 1 according to the first embodiment will be described below with reference to Figs. 3 to 8. Note that the contents of the process in the following operation description are merely examples, and various processes capable of obtaining similar results can be appropriately used. Figs. 3, 5, and 7 are flowcharts showing an example of the process by the processor 110 of the control device 100. The processor 110 executes the processes of Figs. 3, 5, and 7 based on a program stored in, for example, the ROM 120 or the auxiliary storage device 140. Figs. 4 and 8 are flowcharts showing an example of the process by the processor 210 of the industrial machine 200. The processor 210 executes the process of Fig. 4 based on a program stored in, for example, the ROM 220 or the auxiliary storage device 240. Fig. 6 is a flowchart showing an example of the process by the processor 410 of the teaching device 400. The processor 410 executes the process of Fig. 6 based on a program stored in, for example, the ROM 420 or the auxiliary storage device 440.
[0046] The processor 110 of the control device 100 executes, for example, the processes of FIG. 3, FIG. 5, and FIG. 7 in parallel or in parallel. The processor 210 of the industrial machine 200 executes, for example, the processes of FIG. 4 and FIG. 8 in parallel or in parallel.
[0047] In step ST101 of FIG. 3, the processor 110 of the control device 100 determines whether or not to acquire parameter information. For example, the processor 110 determines to acquire parameter information at every predetermined time TP. Alternatively, the processor 110 determines to acquire parameter information when the current time is after the predetermined time CT. Alternatively, the processor 110 determines to acquire parameter information when an input instructing to acquire parameter information is received. The input instructing to acquire parameter information is, for example, an input from a program executed by the control device 100. Alternatively, the input instructing to acquire parameter information may be an input from outside the control device 100.
[0048] When there are multiple pieces of parameter information, the processor 110 determines, for example, for each piece of parameter information, whether or not to acquire the parameter information. Alternatively, when the processor 110 determines to acquire the parameter information, it determines which parameter information to acquire.
[0049] When there are multiple pieces of parameter information, the processor 110 may use a different time TP for each piece of parameter information to be acquired. The processor 110 determines to acquire parameter information when the time TP corresponding to the parameter information has elapsed since the acquisition of the parameter information. Note that the time PT corresponding to the parameter information is, for example, included in the parameter information.
[0050] As an example, assume that there are two pieces of parameter information, the first parameter information and the second parameter information. The time TP corresponding to the first parameter information is time TP1. The first parameter information includes the time TP1. The time TP corresponding to the second parameter information is time TP2. The second parameter information includes the time TP2. In this case, if the time elapsed since the first parameter information was last acquired is equal to or longer than time TP1, the processor 110 determines to acquire the first parameter information. If the time elapsed since the second parameter information was last acquired is equal to or longer than time TP2, the processor 110 determines to acquire the second parameter information.
[0051] Furthermore, when there are multiple pieces of parameter information, the processor 110 may use a different time CT for each piece of parameter information to be acquired.
[0052] If processor 110 determines not to acquire parameter information, it determines No in step ST101 and repeats the process of step ST101. On the other hand, if processor 110 determines to acquire parameter information, it determines Yes in step ST101 and proceeds to step ST102.
[0053] In step ST102, the processor 110 acquires parameter information from the auxiliary storage device 140 or the like. When there are a plurality of pieces of parameter information, the processor 110 acquires, for example, the parameter information determined to be acquired in step ST101.
[0054] In step ST103, the processor 110 determines whether to acquire the setting variables 241 from the industrial machine 200. The parameter information includes, for example, information indicating whether to acquire the setting variables 241 from the industrial machine 200 or to write the setting variables 241 to the industrial machine 200 (hereinafter referred to as "setting information"). The processor 110 determines whether to acquire the setting variables 241 from the industrial machine 200 by referring to the setting information. If the processor 110 determines to acquire the setting variables 241 from the industrial machine 200, the processor 110 determines Yes in step ST103 and proceeds to step ST104.
[0055] As described above, the parameter information includes the setting information. Therefore, in step ST101, determining whether to acquire parameter information indicating that the setting variables 241 are to be acquired from the industrial machine 200 can also be said to be determining whether to acquire the setting variables 241 from the industrial machine 200. Also, in step ST101, determining whether to acquire parameter information indicating that the setting variables 241 are to be written to the industrial machine 200 can also be said to be determining whether to write the setting variables 241 to the industrial machine 200.
[0056] In step ST104, the processor 110 generates a variable request. The variable request is information that requests the industrial machine 200 to transmit the setting variables 241. The variable request may also include designation information that designates the setting variables 241 to be transmitted. The processor 110 acquires the designation information from the parameter information acquired in step ST102, for example. Then, the processor 110 generates a variable request that includes the designation information.
[0057] In step ST105, the processor 110 instructs the communication interface 160 to transmit a variable request to the industrial machine 200. Upon receiving this instruction to transmit, the communication interface 160 transmits the variable request to the industrial machine 200. The transmitted variable request is received by the communication interface 250 of the industrial machine 200.
[0058] 4, the processor 210 of the industrial machine 200 determines whether or not a variable request has been received by the communication interface 250. If a variable request has not been received, the processor 210 determines No in step ST121 and proceeds to step ST122.
[0059] In step ST122, the processor 210 determines whether or not a write request has been received by the communication interface 250. If a write request has not been received, the processor 210 determines No in step ST122 and returns to step ST121. Thus, the processor 210 goes into a standby state in which steps ST121 and ST122 are repeated until a variable request or a write request is received.
[0060] If a variable request is received while the processor 210 is in a standby state in which steps ST121 and ST122 are repeated, the processor 210 determines that the result is Yes in step ST121 and proceeds to step ST123.
[0061] In step ST123, the processor 210 acquires the setting variables 241 from the auxiliary storage device 240 or the RAM 230. For example, the processor 210 acquires the setting variables 241 targeted by the designation information included in the variable request received in step ST121. Alternatively, the processor 210 may acquire all of the setting variables 241.
[0062] In step ST124, the processor 210 generates a variable response. The variable response is information including the setting variables 241 acquired in step ST123.
[0063] In step ST125, the processor 210 instructs the communication interface 160 to transmit the variable response generated in step ST124 to the industrial machine 200 that transmitted the variable request. In response to this transmission instruction, the communication interface 160 transmits the variable response to the industrial machine 200. The transmitted variable response is received by the communication interface 250 of the industrial machine 200. After processing step ST124, the processor 210 returns to step ST121.
[0064] 3, the processor 110 of the control device 100 waits for a variable response to be received by the communication interface 250. If a variable response has been received, the processor 110 determines "Yes" in step ST106 and proceeds to step ST107.
[0065] In step ST107, the processor 110 acquires allocation information from the auxiliary storage device 140 or the like. The allocation information stores information about the monitoring variables. The monitoring variables are the setting variables 241 or variables for inputting the values of the setting variables 241. The monitoring variables are variables that may be targets for monitoring in the process shown in FIG. 5. The processor 110 allocates the monitoring variables to the RAM 130 or the like, for example, when starting the processes shown in FIGS. 3 and 5 or when the control device 100 is started. Alternatively, the auxiliary storage device 140 may store the setting variables 241. The number of monitoring variables may be one or more.
[0066] The allocation information includes information indicating which monitoring variable each setting variable 241 is to be stored in. In addition, when multiple setting variables 241 can be stored in one monitoring variable, the allocation information includes information indicating which part of which monitoring variable each setting variable 241 is to be stored in. Note that the allocation information defines which monitoring variable is to be stored in, for example, by the address of a storage area such as the RAM 130 to which the monitoring variable is assigned or the auxiliary storage device 140 in which the monitoring variable is stored. That is, the allocation information includes information indicating which address of the storage area each setting variable 241 is to be stored in. Alternatively, the allocation information defines which monitoring variable is to be stored in, for example, by the variable name. The variable name is an example indicating the location of the storage area in which the setting variable 241 is to be stored. In addition, the allocation information may define the storage area of multiple monitoring variables by one address. For example, the allocation information defines the storage area by the address of the beginning of the multiple monitoring variables and the length from the beginning to the end of the multiple monitoring variables. Note that the multiple monitoring variables are assumed to be consecutively arranged in the storage area.
[0067] The RAM 230 or the auxiliary storage device 240 is an example of a storage area that stores the value of a variable. Also, the area that stores the monitored variables is an example of a storage area that stores the value of a variable. Therefore, the allocation information is an example of assignment data that indicates the location or address of the storage area that stores the value of the variable. Also, when one monitored variable can store multiple setting variables 241, the allocation information is an example of assignment data that stores the location or address of the storage area that stores the values of the multiple variables. Also, the allocation information that defines the storage area of multiple monitored variables by one address is an example of assignment data that stores one address that indicates the storage area that stores the values of the multiple variables. Also, the auxiliary storage device 140 that stores the allocation information is an example of an assignment memory unit that stores the assignment data.
[0068] In step ST108, the processor 110 inputs (stores) (writes) the setting variable 241 received in step ST106 to the monitoring variable indicated by the allocation information. If the allocation information indicates an address at which the setting variable 241 is to be stored, the processor 110 inputs (stores) the setting variable 241 to the address indicated in the allocation information. After processing step ST108, the processor 110 returns to step ST101. As described above, the processor 110 repeats steps ST101 to ST108. As a result, the processor 110 repeatedly acquires the setting variable 241 from the industrial machine 200 periodically or irregularly, and inputs it to the monitoring variable.
[0069] As described above, by executing the process of step ST108, processor 110 functions as an example of a storage section that writes the value of the variable acquired by the acquisition section into a storage area that stores the value of the variable.
[0070] The processor 110 may not need to perform the process of step ST101. In this case, the processor 110 starts the process shown in Fig. 3 from step ST102. Then, the processor 110 returns to step ST102 after the process of step ST108. In this case, the processor 110 repeatedly acquires the setting variable 241 from the industrial machine 200 by repeating steps ST102 to ST108 without going through the determination of step ST101.
[0071] As described above, the processor 110 executes the processes of steps ST101 to ST108 in FIG. 3, thereby functioning as an example of an acquisition unit that repeatedly acquires the values of variables from the industrial machine.
[0072] 5, the processor 110 of the control device 100 checks each monitored variable. That is, the processor 110 obtains the value of each monitored variable.
[0073] In step ST132, the processor 110 determines whether the value of each monitored variable has changed since the previous acquisition. If the value of any monitored variable has changed since the previous acquisition, the processor 110 determines "Yes" in step ST132 and proceeds to step ST133. On the other hand, if the value of any monitored variable has not changed since the previous acquisition, the processor 110 determines "No" in step ST132 and proceeds to step ST134.
[0074] In step ST133, the processor 110 generates a display request. The display request includes the monitored variables or the values of the monitored variables. The display request is information requesting the teaching device 400 to display the values of the monitored variables. After generating the display request, the processor 110 instructs the communication interface 160 to transmit the display request to the industrial machine 200. Upon receiving this transmission instruction, the communication interface 160 transmits the display request to the industrial machine 200. The transmitted display request is received by the communication interface 450 of the industrial machine 200.
[0075] The processor 410 of the teaching device 400 that has received the display request causes the monitor variable screen to be displayed on the display device 470. The monitor variable screen includes, for example, an image showing the value of the monitor variable whose value has been changed.
[0076] 6, the processor 410 of the teaching device 400 determines whether or not a display request has been received by the communication interface 450. If a display request has not been received, the processor 410 determines No in step ST141 and proceeds to step ST142.
[0077] In step ST142, processor 410 determines whether or not to change the value of the variable. Processor 410 determines that the value of the variable is to be changed when, for example, an operational input is made to instruct to change the value of the variable displayed on input device 460. If processor 410 does not determine that the value of the variable is to be changed, it determines No in step ST142 and returns to step ST141. Thus, processor 410 enters a standby state in which it repeats steps ST141 and ST142 until a display request is received or it is determined that the value of the variable is to be changed.
[0078] If a display request is received while processor 410 is in a standby state in which steps ST141 and ST142 are repeated, processor 410 determines the result as Yes in step ST141 and proceeds to step ST143.
[0079] In step ST143, processor 410 generates an image corresponding to the variable screen. Then, processor 410 instructs display device 470 to display the generated image. Upon receiving the display instruction, display device 470 displays the variable screen.
[0080] An example of the variable screen will be described with reference to FIG. 9. FIG. 9 is a diagram showing an example of the variable screen SC1a displayed on the display device 470. The variable screen is a screen including the values of the monitoring variables included in the display request. The variable screen allows an operation to instruct to change the displayed variable values. The variable screen also allows an operation to instruct how to change the variable values. The operator of the teaching device 400 can give these instructions by operating the input device 460, for example. The variable screen SC1a includes an area AR1, for example.
[0081] Area AR1 shows the numerical value of each variable. Data[1] through Data
[16] show the numbers assigned to each variable. However, in the state shown in FIG. 9, only variables Data[1] and Data[2] exist. Variables Data[3] through Data
[16] are unused or do not exist.
[0082] Each of the variables displayed in area AR1 can be selected using input device 460 or the like.
[0083] Furthermore, the value of each variable displayed in area AR1 can be changed using input device 460 or the like. When such an operation is performed, processor 410 determines to change the value of the variable in step ST142 of Fig. 6. Furthermore, change information, which will be described later, includes the content of the change in value caused by the operation.
[0084] After the process of step ST143, processor 410 returns to step ST141.
[0085] As described above, in step ST143, the processor 410 cooperates with the display device 470 to function as an example of a display unit that displays the value of the variable.
[0086] If processor 410 determines to change the value of the variable when in a standby state in which steps ST141 and ST142 are repeated, it determines "Yes" in step ST142 and proceeds to step ST144.
[0087] In step ST144, the processor 410 generates a change request. The change request includes change information indicating the content of the change to the variable. The change request is information that instructs the control device 100 to change the value of the monitored variable according to the change information. After generating the change request, the processor 410 instructs the communication interface 450 to transmit the change request to the control device 100. Upon receiving this transmission instruction, the communication interface 450 transmits the change request to the control device 100. The transmitted change request is received by the communication interface 160 of the control device 100. After processing step ST144, the processor 410 returns to step ST141.
[0088] As described above, processor 410 functions as an example of a change section that changes the value of a variable by executing the process of step ST144.
[0089] 7, the processor 110 of the control device 100 waits for a change request to be received by the communication interface 160. If a change request is received, the processor 110 determines "Yes" in step ST151 and proceeds to step ST152.
[0090] In step ST152, the processor 110 changes the value of the monitored variable in accordance with the change information in the change request received in step ST151. After the process of step ST152, the processor 110 returns to step ST151.
[0091] On the other hand, in step ST134 of Fig. 5, the processor 110 acquires first execution information from the auxiliary storage device 140 or the like. The first execution information stores, for each monitored variable, what processing is executed when the monitored variable becomes what value. The first execution information stores, for example, information identifying the monitored variable, the value, and information indicating the processing to be executed in association with each other. The first execution information indicates that the associated processing is executed when the value of the monitored variable becomes the associated value. As an example, the first execution information stores that the robot 300 is started when the monitoring variable stored in the start-up area 133 becomes a predetermined value. As an example, the first execution information stores that the robot 300 is stopped when the monitoring variable stored in the alarm area 134 becomes a predetermined value. Note that the monitoring variable stored in the alarm area 134 indicates that an alarm has occurred in the industrial machine 200 when the value is the predetermined value.
[0092] In step ST135, the processor 110 determines whether or not to execute a process corresponding to the value of the setting variable 241. That is, for example, for each monitoring variable, when the value is a value associated in the first execution information, the processor 110 determines to execute a process associated with the monitoring variable and the value in the first execution information. If the processor 110 does not determine to execute the process, it determines No in step ST135 and returns to step ST131. On the other hand, if the processor 110 determines to execute the process, it determines Yes in step ST135 and proceeds to step ST136.
[0093] In step ST136, processor 110 executes the processing determined to be executed in step ST135. After processing in step ST136, processor 110 returns to step ST131. As described above, processor 110 monitors the monitored variable, and executes the predetermined processing when the value of the monitored variable becomes a predetermined value. As described above, processor 110 inputs the value of setting variable 241 to the monitored variable by the processing in FIG. 3. Therefore, processor 110 monitors the setting variable by the processing in FIG. 3 and FIG. 5, and executes the predetermined processing when the value of the setting variable becomes a predetermined value.
[0094] 1 shows an example of a combination of a monitoring variable, a predetermined value, and a predetermined process stored in the first execution information. The monitoring variable in this example is a monitoring variable that stores a setting variable 241 indicating that an alarm has occurred in the industrial machine 200 and the content of the alarm. The predetermined value in this example is a value indicating that an alarm has occurred, for example, 1. The predetermined process in this example is stopping the robot 300. For example, the stopping unit 114 stops the robot 300. When the processor 110 determines in step ST134 that the value of the monitoring variable in this example has become 1, it stops the robot 300 in step ST135. The processor 110 stops the robot 300, for example, by stopping the robot program.
[0095] Other examples of the predetermined process include starting the robot 300, causing the robot 300 to perform a predetermined operation, executing various robot programs, and the control device 100 executing a predetermined process. The processor 110 starts the robot 300 by, for example, executing a robot program including a start command. For example, the start unit 113 starts the robot 300.
[0096] The predetermined value may be a range. For example, the predetermined value may be 1 to 3. In this case, the processor 110 executes a predetermined process when the value of the monitored variable is 1 to 3.
[0097] Also, there may be a plurality of predetermined values. And there may be a plurality of predetermined processes. For example, it is assumed that there are two predetermined values, a first predetermined value and a second predetermined value. And there are two predetermined processes, a first predetermined process and a second predetermined process. And it is assumed that the process corresponding to the first predetermined value is the first predetermined process, and the process corresponding to the second predetermined value is the second predetermined process. In this case, the processor 110 executes the first predetermined process when the value of the monitored variable is the first predetermined value. And it is assumed that the processor 110 executes the second predetermined process when the value of the monitored variable is the second predetermined value.
[0098] Furthermore, the value of the monitored variable and the predetermined value are not limited to numerical values. The value of the monitored variable and the predetermined value may be, for example, a character string, a date, a Boolean type, a pointer, an object, or a structure. Furthermore, the predetermined value may be a value indicating the absence of a value, such as null or nothing.
[0099] The predetermined processing will be further described with reference to Fig. 10. For example, assume that a certain setting variable 241 (hereinafter referred to as a "target variable") changes its value when the industrial machine 200 performs a certain action or when a certain operation is performed on the industrial machine 200 (hereinafter referred to as a "value change trigger"). In this case, the control system 1 can cause the control device 100 to perform some predetermined processing in response to the value change trigger. Such an example will be described with reference to Fig. 10.
[0100] FIG. 10 is a block diagram for explaining an example of the operation of the control device 100 and the industrial machine 200. The industrial machine 200 includes, for example, a start button 261 as an input device 260. The start button 261 is a button for starting and stopping the industrial machine 200. When the start button 261 is operated while the industrial machine 200 is stopped, the industrial machine 200 starts and starts operating. When the start button 261 is operated while the industrial machine 200 is operating, the industrial machine 200 stops. When the start button 261 is operated while the industrial machine 200 is stopped, the start button 261 outputs a start request signal. When the start button 261 is operated while the industrial machine 200 is operating, the start button 261 outputs a stop request signal. For example, the processor 210 receives inputs of the start request signal and the stop request signal.
[0101] When the processor 210 receives a start request signal, it changes the value of the setting variable 241 (target variable) to a value indicating that the industrial machinery 200 is operating. On the other hand, when the processor 210 receives a stop request signal, it changes the value of the target variable to a value indicating that the industrial machinery 200 is stopped. As can be seen from the above, the operation of the start button 261 acts as a value change trigger, causing the value of this target variable to change. Alternatively, it can be said that the input of a start request signal or a stop request signal acts as a value change trigger, causing the value of this target variable to change.
[0102] Furthermore, the processor 210 functions as an industrial startup unit 211 by executing a program stored in the ROM 220 or the auxiliary storage device 240. When the industrial machinery 200 is stopped, the industrial startup unit 211 starts up an industrial machinery program 242 in order to operate the industrial machinery 200 in response to an operation of the start button 261.
[0103] The processor 110 of the control device 100 acquires the target variable via the communication interface 160, as described in the explanation of Figs. 3 and 4. The control device 100 stores the acquired target variable or the value of the target variable in the start area 133 as a monitoring variable. The processor 110 monitors the change in the value of the target variable by monitoring the start area 133. When the value of the target variable changes from a value indicating that the industrial machine 200 is stopped to a value indicating that the industrial machine 200 is operating, the processor 11 performs, for example, starting the robot 300 as a predetermined process. For example, the starting unit 113 performs the starting. Also, when the value of the target variable changes from a value indicating that the industrial machine 200 is operating to a value indicating that the industrial machine 200 is stopped, the processor 11 performs, for example, stopping the robot 300 as a predetermined process. The stopping unit 114 performs the stopping.
[0104] In this manner, in the above example shown in FIG. 10, by operating the start button 261, not only the industrial machine 200 but also the robot 300 is started or stopped.
[0105] As described above, by executing the processing of steps ST135 and ST136, processor 110 functions as an example of an execution unit that executes a specified process corresponding to the specified value when the value of the variable written to the storage area is a specified value.
[0106] Also, if the processor 110 does not determine to acquire the setting variables 241 from the industrial machine 200, that is, if it determines to write the setting variables 241 to the industrial machine 200, it determines No in step ST103 of FIG. 3 and proceeds to step ST109.
[0107] In step ST109, the processor 110 acquires an indication variable. The indication variable is a variable indicating the write content indicated by the indication information described below. The processor 110 uses the acquisition information in the parameter information acquired in step ST102 to determine which variable to acquire as the indication variable. The acquisition information is information that defines which variable to acquire as the indication variable. The processor 110 acquires the indication variable, for example, from a memory area of the robot 300. Alternatively, the processor 110 may acquire the indication variable from the RAM 130, the auxiliary storage device 140, an external device, or the like. The value of the indicator variable is an example of a value stored in the storage area. Therefore, by executing the process of step ST109, processor 110 functions as an example of a robot variable acquisition unit that acquires the value stored in the storage area.
[0108] In step ST110, the processor 110 generates target information. The target information is information indicating a write target. The write target indicates, for example, which setting variable 241 is the target to which a value is to be written (stored). The target information indicates the write target or the position of the write target, for example, by a variable name or address. The processor 110 determines the write target, for example, by using the target determination information in the parameter information acquired in step ST102. The target determination information is information that determines which setting variable 241 is the target to which a value is to be written. The target determination information determines the setting variable 241, for example, by a variable name or address. The target determination information is an example of allocation data that indicates the variable of the industrial machine 200 that stores the value acquired by the robot variable acquisition unit. In addition, the auxiliary storage device 140 that stores the target determination information is an example of an allocation storage unit that stores the allocation data.
[0109] In step ST111, the processor 110 generates instruction information. The instruction information is information indicating the contents to be written into the setting variable 241. The contents to be written indicated by the instruction information are, for example, the values of the instruction variables acquired in step ST109. Note that the target information is an example of variable designation data indicating the variables of the industrial machine to which the values are to be written.
[0110] In step ST112, the processor 110 generates a write request. The write request includes the target information generated in step ST110 and the instruction information generated in step ST111. The write request is information that instructs the industrial machine 200 to write the content indicated by the instruction information to the target indicated by the target information.
[0111] In step ST113, the processor 110 instructs the communication interface 160 to transmit the write request generated in step ST112 to the industrial machine 200. In response to this instruction to transmit, the communication interface 160 transmits the write request to the industrial machine 200. The transmitted write request is received by the communication interface 250 of the industrial machine 200.
[0112] On the other hand, if the processor 210 of the industrial machine 200 receives a write request while in a standby state in which steps ST121 and ST122 in FIG. 4 are repeated, the processor 210 judges "Yes" in step ST122 and proceeds to step ST126.
[0113] In step ST126, the processor 210 writes the value indicated by the instruction information to the setting variable 241 to be written, which is stored in the auxiliary storage device 240 or the RAM 230, in accordance with the write request received in step ST122. If the value indicated by the instruction information differs from the value of the setting variable 241 to be written, the processor 210 changes the value by overwriting the value. However, if the value indicated by the instruction information and the value of the setting variable 241 to be written are the same, the processor 210 does not need to overwrite the value.
[0114] In step ST127, the processor 210 generates a completion response. The completion response is information indicating that writing of the value based on the write request has been completed.
[0115] In step ST128, the processor 210 instructs the communication interface 250 to transmit the completion response generated in step ST127 to the control device 100 that is the sender of the write request. In response to this instruction to transmit, the communication interface 250 transmits the completion response to the control device 100. The transmitted completion response is received by the communication interface 160 of the control device 100. After processing in step ST128, the processor 210 returns to step ST121.
[0116] 3, the processor 110 of the control device 100 waits for a write request to be received by the communication interface 160. If a write request is received, the processor 110 determines "Yes" in step ST114 and returns to step ST101.
[0117] As described above, the processor 110 repeats steps ST101 to ST103 and steps ST109 to ST114. In this way, the processor 110 repeatedly transmits the write request to the industrial machine 200 periodically or irregularly.
[0118] As described above, the processor 110 functions as an example of a transmission unit that periodically and repeatedly transmits the value acquired by the robot variable acquisition unit and the variable designation data indicating the variable of the industrial machine to which the value is to be written, to the industrial machine by executing the process of step ST112 in cooperation with the communication interface 250. Alternatively, the processor 110 functions as an example of a transmission unit by executing the process of step ST112.
[0119] Furthermore, in step ST161 of FIG. 8, the processor 210 of the industrial machine 200 checks the values of the setting variables 241 by referring to the auxiliary storage device 240 or the RAM 230 or the like.
[0120] In step ST162, the processor 210 determines whether or not to execute a process according to the value of each setting variable 241. For example, when the value of the setting variable 241 is a predetermined value that is determined in advance for each setting variable 241, the processor 110 determines to execute the process. If the processor 210 does not execute the process, the processor 210 determines No in step ST162 and returns to step ST161. On the other hand, if the processor 210 executes the process, the processor 210 determines Yes in step ST162 and proceeds to step ST163.
[0121] In step ST163, processor 210 executes a predetermined process corresponding to the predetermined value. After the process of step ST163, processor 210 returns to step ST161. As described above, processor 210 monitors setting variable 241 by the process of Fig. 8, and executes the predetermined process when the value of setting variable 241 becomes a predetermined value.
[0122] According to the control system 1 of the first embodiment, the control device 100 repeatedly reads (acquires) the setting variables 241 from the industrial machine 200. This allows the control device 100 to monitor the setting variables of the industrial machine 200. Furthermore, by acquiring the setting variables 241, the control device 100 can use the setting variables 241 as variables of the robot. Furthermore, when a signal is added to a conventional CNC industrial machine, it is necessary to add processing for the added signal to the ladder program. However, end users of CNC industrial machines usually cannot change the ladder program. Therefore, the end users request the industrial machine manufacturer or the like to change the ladder program. This results in a large amount of man-hours being required to change the ladder program. On the other hand, the setting variables 241 can be referenced in the machining program without the need to change the ladder program.
[0123] According to the control system 1 of the first embodiment, the control device 100 uses allocation information that stores one location or one address indicating an allocated memory area for storing values of multiple variables. This allows the control device 100 to collectively store multiple setting variables 241.
[0124] Furthermore, according to the control system 1 of the first embodiment, the control device 100 executes a corresponding predetermined process when the setting variable 241 acquired from the industrial machine 200 is a predetermined value. This allows the industrial machine 200 to operate the control device 100 and the robot 300 using the setting variable 241.
[0125] Moreover, according to the control system 1 of the first embodiment, the predetermined process is execution or stop of a robot program. Therefore, the control system 1 of the first embodiment allows the industrial machine 200 to execute or stop the robot program.
[0126] Furthermore, according to the control system 1 of the first embodiment, the control device 100 stops the robot 300 based on the value of the setting variable 241 indicating that an alarm has occurred. Therefore, the control device 100 of the first embodiment can stop the robot 300 when an abnormality occurs in the control device 100, for example.
[0127] Furthermore, according to the control system 1 of the first embodiment, the control device 100 repeatedly acquires the instruction variable and transmits a write request to the industrial machine 200. This allows the control device 100 to rewrite the setting variable 241 of the industrial machine 200 when the value of the instruction variable changes. Therefore, the control device 100 can operate the industrial machine 200 by using the instruction variable.
[0128] Furthermore, according to the control system 1 of the first embodiment, the teaching device 400 changes the value of the setting variable 241. This allows the control system 1 of the first embodiment to manually rewrite the setting variable 241.
[0129] Second Embodiment In the control system 1 of the second embodiment, unlike the first embodiment, the control device 100 converts the setting variables 241 into IO (input / output) data and stores it in the IO memory area. Also, the control system 1 of the second embodiment differs from the first embodiment in that the instruction variables are IO data and are stored in the IO memory area. The configuration of the control system 1 of the second embodiment is similar to that of the first embodiment, and therefore a description thereof will be omitted.
[0130] In the second embodiment, the auxiliary storage device 140 and the like store IO memory information, which will be described later, instead of the allocation information. In the second embodiment, the auxiliary storage device 140 and the like store second execution information, which will be described later, instead of the first execution information.
[0131] Hereinafter, the operation of the control system 1 according to the second embodiment will be described with reference to Figs. 4 to 8, 11, 13, etc. Note that the contents of the processing in the following operation description are merely examples, and various processing that can obtain similar results can be appropriately used. Fig. 11 is a flowchart showing an example of processing by the processor 210 of the industrial machine 200. The processor 210 executes the processing of Fig. 11 based on a program stored in, for example, the ROM 220 or the auxiliary storage device 240. Fig. 13 is a flowchart showing an example of processing by the processor 410 of the teaching device 400. The processor 410 executes the processing of Fig. 13 based on a program stored in, for example, the ROM 420 or the auxiliary storage device 440.
[0132] In the second embodiment, the processor 110 of the control device 100 executes the processes shown in Figures 5, 7, and 11. The processor 110 executes, for example, the processes of Figures 5, 7, and 11 in parallel or in parallel. In the second embodiment, the processor 210 of the industrial machine 200 executes the processes shown in Figures 4 and 8 as in the first embodiment. In the second embodiment, the processor 410 of the teaching device 400 executes the processes shown in Figures 6 and 13. Descriptions of operations in the second embodiment that are similar to those in the first embodiment will be omitted.
[0133] In the second embodiment, the processor 210 of the industrial machine 200 transmits the setting variable 241 as floating-point data in ST125 of Fig. 4. For example, the processor 210 converts the setting variable 241 into floating-point data and transmits it. Alternatively, the processor 210 transmits the setting variable 241 stored in a floating-point state. Note that the industrial machine 200 uses a 32-bit floating-point type or a 64-bit double-precision floating-point type as the floating-point type. In the case of the double-precision floating-point type, a total of 64 bits are arranged from the beginning in the following order: 1 bit for the sign part, 11 bits for the exponent part, and 52 bits for the mantissa part.
[0134] Each setting variable 241 is normally 1 bit. By storing the value of each setting variable 241 in each bit of the floating-point type, 64 1-bit setting variable 241 values can be stored in the case of double-precision floating-point type data. In the case of n-bit floating-point type data, n 1-bit setting variable 241 values can be stored. Note that n is a positive number.
[0135] The industrial machine 200 can also use a setting variable 241 of 2 or more bits. In this case, if the setting variable 241 is m bits, the value of the setting variable 241 is stored using m bits of floating-point data. Here, m is an integer equal to or greater than 2. When a setting variable 241 of 2 or more bits is used, if the data is n-bit floating-point data, the values of the multiple setting variables 241 can be stored up to a total of n bits.
[0136] The auxiliary storage device 140 of the control device 100 and the auxiliary storage device 240 of the industrial machine 200 store bit information. The bit information is data that defines which bit of floating-point data stores which value of the setting variable 241.
[0137] The processor 210 of the industrial machine 200 converts the setting variable 241 into floating-point type data using the bit information. Alternatively, the processor 210 uses the bit information to store the setting variable 241 in the auxiliary storage device 240, the RAM 230, or the like in the form of floating-point type data.
[0138] In the second embodiment, if the processor 110 of the control device 100 judges "Yes" in step ST106 of FIG. 11, the process proceeds to step ST201.
[0139] In step ST201, the processor 110 converts the setting variable 241 received in step ST106 into IO data. IO data is data in which multiple binary data values, such as "0" and "1", "ON" and "OFF", or "True" and "False", are arranged in a row. Therefore, IO data is data like an array of Boolean variables. Binary data values can also be seen as 1-bit binary data. The processor 110 converts the setting variable 241 into IO data. Two methods for conversion into IO data are shown below, (i) and (ii).
[0140] (i) Conversion method 1 In conversion method 1, each bit of a binary variable is used as an IO. The received setting variable 241 is floating-point data, which is a binary variable. Therefore, the processor 110 uses the value of each bit of the floating-point data as is as IO data. For example, if the first four digits of the floating-point data are "0100", the first digit of the IO data is "0", the second digit is "1", the third digit is "0", and the fourth digit is "0".
[0141] (ii) Conversion method 2 Conversion method 2 is a method in which the absolute value of a positive number obtained by rounding off the decimal point of the value of the setting variable 241 is extracted, converted to binary, and used as IO. For example, assume that the number expressed in decimal of the floating-point type data before conversion is "-1234.567". In this case, the processor 110 rounds off the decimal point of "-1234.567" to "-1234". Then, the processor 110 obtains the absolute value of this value. Here, the absolute value is "1234". Furthermore, the processor 110 converts this absolute value into binary integer type data. Here, the value converted to binary is, for example, "0000 0100 1101 0011" if it is 16 bits. The processor 110 uses each bit of this value as IO data. With this value, the first IO data will be "0", the second will be "0", the third will be "0", the fourth will be "0", the fifth will be "0", the sixth will be "1", the seventh will be "0", etc.
[0142] Since the setting variable 241 is a floating-point type, it may not be possible to manipulate each bit. In this case, if conversion method 1 is used when only a specific IO of the control device 100 is to be operated from the processor 210, the user must calculate the floating-point type when a specific bit is manipulated, which is time-consuming. Conversion method 2 has the effect of reducing this time-consuming work, in exchange for the amount of data communicated being reduced.
[0143] As described above, by executing the process of step ST201, the processor 110 functions as an example of an IO conversion section that converts the value of the variable acquired by the acquisition section into IO data.
[0144] In step ST202, the processor 110 acquires IO memory information. The IO memory information stores information about the IO memory area 132. The IO memory information includes information indicating where in the IO memory area 132 the value of which setting variable 241 is to be stored. The IO memory information stores, for example, at which address in the IO memory area 132 the first piece of converted IO data is to be stored, thereby indicating where the value of each setting variable 241 is to be stored. For example, if the address at which the first piece of IO data is stored is X, the address at which the second piece of IO data is to be stored is X+1. The IO memory information may also include information indicating which setting variable 241 is to be stored at each address. The IO memory information is an example of allocation data.
[0145] In step ST203, the processor 110 stores the IO data converted in step ST201 at the address indicated by the IO memory information in the IO memory area 132. As a result, the IO memory area 132 stores the setting variable 241 in each bit. After the process of step ST203, the processor 110 returns to step ST201. The IO memory area 132 is an example of a storage area for storing the value of a variable. Also, the area of the IO memory area 132 for storing the value of the setting variable 241 is an example of a storage area for storing the value of a variable.
[0146] As described above, the processor 110 executes the process of FIG. 11 to function as an example of an acquisition unit that repeatedly acquires variable values from the industrial machine.
[0147] In the second embodiment, the processor 110 uses the setting variables 241 stored in the IO memory area 132 in place of the monitoring variables in the processing of FIG.
[0148] In the second embodiment, the processor 110 uses the second execution information instead of the first execution information in the process of steps ST134 to ST136. The second execution information stores, for example, for each address of the IO memory area 132, what processing is to be executed when what value is reached. The second execution information stores, for example, the address of the IO memory area 132, the value, and information indicating the processing to be executed in association with each other. The second execution information indicates that the associated predetermined processing is to be executed when the value of the address of the IO memory area 132 becomes the associated value. The second execution information may also store what processing is to be executed when each of the values of the addresses of the multiple IO memory areas 132 becomes a predetermined value determined for each address. For example, the second execution information may store that a predetermined processing is to be executed when the value of a certain address Y1 is 1 and the value of a certain address Y2 is 0.
[0149] In the second embodiment, in step ST135, for example, when the value stored in each address of the IO memory area 132 is a value associated in the second execution information, the processor 110 determines to execute a process associated with the address and the value in the second execution information. As described above, the processor 110 monitors the value stored in each address of the IO memory area 132, and executes a predetermined process when the value becomes a predetermined value. As described above, the processor 110 inputs the value of the setting variable 241 to the IO memory area 132 by the process of FIG. 11. Therefore, the processor 110 monitors the setting variable 241 by the process of FIG. 11 and FIG. 5, and executes a predetermined process when the value of the setting variable 241 becomes a predetermined value.
[0150] In the second embodiment, the change request is information instructing the control device 100 to change the value of the setting variable 241 stored in the IO memory area 132 according to the change information. The processor 110 of the control device 100 changes the value of the setting variable 241 stored in the IO memory area 132 according to the change information in the received change request.
[0151] An example of a variable screen in the second embodiment will be described with reference to Fig. 12. Fig. 12 is a diagram showing an example of a variable screen SC1b displayed on the display device 470. Note that the variable screen SC1b is a variable screen that displays the setting variables 241 converted by (ii) conversion method 2. The variable screen SC1b includes an area AR2, as an example.
[0152] Area AR2 indicates the value of each bit of the binary variable. The binary variable shown in area AR2 is a binary variable converted using (ii) conversion method 2 of data [1]. Each bit of data [1] is used as an area for setting. When data [1] is viewed as a 32-bit floating-point number, it becomes the number 21.123. Furthermore, the value converted from "21.123" using (ii) conversion method 2 is "21" in decimal and "0000 0000 0001 0101" in binary. However, only the lowest 16 digits of the binary number are shown here. The highest 16 digits are all zero.
[0153] Furthermore, the value of each bit displayed in area AR2 can be changed using input device 460 or the like. When such an operation is performed, processor 410 determines to change the value of the variable in step ST142 of Fig. 6. Furthermore, the change information includes the content of the change in value caused by the operation.
[0154] In the second embodiment, the processor 110 changes the setting variables 241 stored in the IO memory area 132 instead of the monitoring variables.
[0155] In the second embodiment, in step ST135, the processor 110 determines to execute processing according to the value of the setting variable 241 when the value of the setting variable 241 stored in the IO memory area 132 is a predetermined value.
[0156] The teaching device 400 can also display a screen for checking and editing the robot program (hereinafter referred to as the "editing screen"). The editing screen and the processing related to the editing screen will be described with reference to Fig. 13. The processor 410 of the teaching device 400 starts the processing shown in Fig. 13 in response to, for example, an instruction to display the editing screen.
[0157] 13, the processor 410 of the teaching device 400 waits for the designation of a robot program to be edited. The operator of the teaching device 400 performs an operation to designate a robot program to be edited. When the processor 410 receives the designation of a robot program to be edited, it determines Yes in step ST211 and proceeds to step ST212.
[0158] In step ST212, the processor 410 of the teaching device 400 generates an image corresponding to the editing screen SC2 as shown in Fig. 14. Then, the processor 410 instructs the teaching device 400 to display the generated image. In response to the display instruction, the processor 410 of the teaching device 400 causes the display device 470 to display the editing screen SC2.
[0159] 14 is a diagram showing an example of the editing screen SC2. The editing screen SC2 is a screen for editing a robot program. The editing screen SC2 includes, as an example, an area AR10 and an area AR20.
[0160] Area AR10 is an area that displays the program to be edited. Area AR10 displays the program using one or more images IM11. Each image IM1 indicates an instruction in the program. Image IM1 indicates the content of the instruction using, for example, a pictogram. Area AR10 may also display each instruction using text. Using area AR10, it is possible to add, change, and delete instructions.
[0161] Moreover, the area AR10 allows an operation to specify a command to be edited. For example, each image IM1 is a button. By operating an image IM1, the command corresponding to the operated image IM1 becomes the edit target. Note that, in a state where no command is specified as the edit target, for example, the first command automatically becomes the edit target.
[0162] Area AR20 is an area for editing the command to be edited. The command to be edited is displayed in area AR20. Area AR20 includes areas AR21 to AR25, for example. Note that area AR20 may include areas different from areas AR21 to AR25 depending on the command to be edited.
[0163] Area AR21 is an area for displaying the command to be edited. In FIG. 14, "DO [1]" is displayed as the command. "DO [1]" is an output command. Note that the "1" in this part is a number displayed in area AR22.
[0164] Area AR22 is an area for specifying the setting variable 241 for which a value change or the like is to be performed. The target setting variable 241 can be specified by inputting a number, address, variable name, or the like indicating the setting variable 241 into area AR22. "The setting variable 241 specified as the target for which a value change or the like is to be performed" will be referred to as the "specified variable" hereinafter. Area AR22 also displays a number, address, variable name, or the like that identifies the specified setting variable 241.
[0165] Area AR23 is an area for changing the value of the designated variable. The value of the designated variable can be changed by inputting a value into area AR23. Area AR23 also displays the current value of the designated variable.
[0166] Area AR24 displays the current value of data (hereinafter referred to as "change data") whose value will be changed when the command displayed in area AR21 is executed. The change data is, for example, an instruction variable. Therefore, for example, a memory area of the robot 300 stores the change data.
[0167] Area AR25 displays the value of the modified data after the command is executed.
[0168] In step ST213, processor 410 determines whether or not to change the instruction to be edited. For example, when an operation instructing to change the instruction to be edited is performed, processor 410 determines that the instruction to be edited is to be changed. If processor 410 does not determine that the instruction to be edited is to be changed, it determines No in step ST213 and proceeds to step ST214.
[0169] In step ST214, processor 410 determines whether or not an operation to designate a designated variable has been performed. For example, the input to area AR22 described above is an operation to designate a designated variable. If an operation to designate a designated variable has not been performed, processor 410 determines No in step ST214 and proceeds to step ST215.
[0170] In step ST215, processor 410 determines whether or not an operation has been performed to instruct a change in the value of the designated variable. For example, inputting a value into area AR23 described above is an operation to instruct a change in value. If an operation to instruct a change in the value of the designated variable has not been performed, processor 410 determines No in step ST215 and returns to step ST214. Thus, processor 410 enters a standby state in which steps ST213 to ST215 are repeated until it is determined that the instruction to be edited is to be changed, an operation to designate a designated variable is performed, or an operation to instruct a change in the value of the designated variable is performed.
[0171] If processor 410 determines to change the command to be edited while in a standby state in which steps ST213 to ST215 are repeated, the result is Yes in step ST213, and the process returns to step ST212. Then, processor 410 updates the display of editing screen SC1 in the process of step ST212 to a screen corresponding to the changed command to be edited.
[0172] If an operation for designating a designated variable is performed while in a standby state in which steps ST213 to ST215 are repeated, processor 410 determines that the result is Yes in step ST214, and proceeds to step ST216.
[0173] In step ST216, the processor 410 obtains the value of the designated variable from the RAM 130 of the control device 100 or the like.
[0174] In step ST217, the processor 410 obtains the current value of the change data.
[0175] In step ST218, the processor 410 uses the current value of the designated variable to calculate the value of the changed data after the command to be edited is executed.
[0176] In step ST219, processor 410 displays the value acquired in step ST217 in area AR24. Processor 410 also displays the value calculated in step ST218 in area AR25. After the process of step ST219, processor 410 returns to step ST212.
[0177] If an operation instructing to change the value of the designated variable is performed while in a standby state in which steps ST213 to ST215 are repeated, processor 410 determines that the result is Yes in step ST215, and proceeds to step ST220.
[0178] In step ST220, the processor 410 generates a change request. The change request includes change information indicating the content of the change to the variable. The change request is information for instructing the control device 100 to change the value of the setting variable 241 stored in the IO memory area 132 according to the change information. The change information includes a number or address that identifies a designated variable and a changed value of the designated variable. The changed value is a value specified by an operation that instructs a change to the value of the designated variable. The change request is the same as that in step ST144 of FIG. 6. After generating the change request, the processor 410 instructs the communication interface 450 to transmit the change request to the industrial machine 200. Upon receiving the transmission instruction, the communication interface 450 transmits the change request to the industrial machine 200. The transmitted change request is received by the communication interface 450 of the industrial machine 200.
[0179] As described above, the processor 410 executes the processes of steps ST215 and ST220, thereby functioning as an example of a change unit that changes the values of the variables in response to editing of the robot program.
[0180] In step ST221, the processor 410 uses the changed value of the designated variable to calculate the value of the changed data after the command to be edited is executed.
[0181] In step ST222, processor 410 displays the value calculated in step ST221 in area AR25. After the process of step ST222, processor 410 returns to step ST214.
[0182] As described above, the processor 410 functions as an example of an editing unit that edits a robot program for controlling a robot by executing the process shown in FIG.
[0183] In the second embodiment, if the processor 110 of the control device 100 determines No in step ST103, the process proceeds to step ST204.
[0184] In step ST204, the processor 110 obtains a value indicating the written content of the setting variable 241 from the IO memory area 132 of the RAM 130. The value is, for example, an indication variable in the form of binary IO data. Note that the value is converted into IO data, for example, by the same method as in step ST201. The processor 110 converts the indication variable into IO data by the same method as in step ST201 and stores it in the IO memory area 132.
[0185] In step ST205, the processor 110 converts the value acquired in step ST204 from binary IO data to a data format before conversion to IO data. The data format before conversion is the same as the data format of the setting variable 241. The data format before conversion is, for example, a decimal numeric value.
[0186] The data format of the setting variable 241 is not usually IO data. As described above, by executing the process of step ST205, the processor 110 functions as an example of a conversion unit that converts the value acquired by the robot variable acquisition unit into a data format other than IO data.
[0187] In step ST206, the processor 110 generates a write request. The write request includes target information and instruction information, as in the second embodiment. However, the write content indicated by the instruction information indicates the value converted in step ST205. After generating the write request, the processor 110 instructs the communication interface 160 to transmit the write request to the industrial machine 200. Upon receiving this transmission instruction, the communication interface 160 transmits the write request to the industrial machine 200. The transmitted write request is received by the communication interface 250 of the industrial machine 200. After processing step ST206, the processor 110 returns to step ST201.
[0188] The processor 210 rewrites the setting variable 241 in accordance with the write request, as in the second embodiment.
[0189] The control system 1 of the second embodiment provides the same effects as those of the second embodiment.
[0190] According to the control system 1 of the second embodiment, the control device 100 converts the setting variable 241 into IO data. If a signal with a purpose assigned in advance is prepared to perform a predetermined process such as executing or stopping a robot program from the outside, the operation can be performed with 1-bit data, the data size is small, and the system readability is good. Furthermore, by using 1-bit data, the amount of data communication can be reduced compared to transmitting numerical data.
[0191] Furthermore, according to the control system 1 of the second embodiment, the control device 100 uses each bit of a variable in binary representation as an IO, which allows the control device 100 to include multiple settings in one numerical value.
[0192] Moreover, according to the control system 1 of the second embodiment, the control device 100 has the IO memory area 132. Therefore, the control device 100 can store the instruction variable as IO data.
[0193] Furthermore, according to the control system 1 of the second embodiment, the teaching device 400 changes the value of the setting variable 241 in response to editing of the robot program. As a result, the control system 1 of the second embodiment is capable of editing the robot program accompanied by changing the value of the setting variable 241.
[0194] The above embodiment can be modified as follows. The control system of the embodiment may include, instead of the teaching device 400, a display device that does not have a function for creating a robot program.
[0195] In the above embodiment, a part or all of the processes executed by the teaching device 400 may be executed by the control device 100 or the robot 300. Further, the control device of the embodiment may include a part or all of the configuration of the teaching device 400.
[0196] The processor 110, the processor 210, and the processor 410 may implement part or all of the processes implemented by the programs in the above embodiments by a hardware configuration of the circuits.
[0197] The program for implementing the process of the embodiment is transferred in a state in which it is stored in, for example, a non-transitory storage medium in the device. However, the device may be transferred in a state in which the program is not stored. The program may then be transferred separately and written to the device. The program may be transferred in this case by, for example, recording it on a removable non-transitory storage medium or by downloading it via a network such as the Internet or a LAN.
[0198] Although the embodiment of the present invention has been described above, it is merely an example and does not limit the scope of the present invention. The embodiment of the present invention can be implemented in various forms without departing from the gist of the present invention. [Explanation of symbols]
[0199] 1. Control System 100 Control device 110,210,410 processors 111 Allocation section 112 Data conversion section 113 Starting part 114 Stop part 115 Target Section 120,220,420 ROM 130,230,430 RAM 131 Memory Area 132 IO memory area 133 Launch area 134 Alarm Area 140,240,440 Auxiliary storage 150 Control Interface 160,250,450 Communication Interface 170,280,480 Bus 200 Industrial Machinery 211 Industrial Start-up Department 241 Configuration Variables 242 Industrial Machinery Program 243 Ladder Program 260,460 input devices 261 Start button 270,470 display devices 300 Robots 400 Teaching device
Claims
1. an acquisition unit that repeatedly acquires values of variables from the industrial machine; an IO conversion unit that converts the value of the variable acquired by the acquisition unit into IO data; a storage unit that writes the value of the variable converted by the IO conversion unit into a storage area that stores the value of the variable; and an allocation memory unit that stores allocation data indicating a location or address of the storage area to which the variable is written.
2. The acquisition unit repeatedly acquires values of a plurality of the variables from the industrial machine, The robot control device according to claim 1 , wherein the storage unit writes the values of the multiple variables acquired by the acquisition unit to the storage area based on assignment data indicating one of the locations or one of the addresses of the storage area where the values of the multiple variables are stored.
3. 3. The robot control device according to claim 1, further comprising an execution unit that, when the value of the variable written in the storage area is a predetermined value, executes a predetermined process corresponding to the predetermined value.
4. The robot control device according to claim 3 , wherein the predetermined process is execution or stop of a robot program.
5. The variable indicates that an alarm has occurred, The robot control device according to claim 3 , wherein the predetermined process is stopping the robot.
6. a robot variable acquisition unit for acquiring a value stored in a storage area; an allocation storage unit that stores allocation data indicating variables of the industrial machine that store the values acquired by the robot variable acquisition unit; a transmitter that repeatedly transmits to the industrial machine the value acquired by the robot variable acquisition unit and variable designation data indicating a variable of the industrial machine to which the value is to be written.
7. The storage area is an IO memory area, The value stored in the storage area is IO data, The robot variable acquisition unit acquires the IO data, A conversion unit converts the value acquired by the robot variable acquisition unit into a data format other than IO data, The robot control device according to claim 6 , wherein the transmission unit transmits the value converted by the conversion unit to the industrial machine.
8. A robot control device and a display device are included, The robot control device includes: an acquisition unit that repeatedly acquires values of variables from the industrial machine; an IO conversion unit that converts the value of the variable acquired by the acquisition unit into IO data; a storage unit that writes the value of the variable converted by the IO conversion unit into a storage area that stores the value of the variable; an allocation memory unit that stores allocation data indicating a location or address of the storage area to which the variable is written; The display device comprises a display unit that displays the value of the variable.
9. The acquisition unit repeatedly acquires values of a plurality of the variables from the industrial machine, The robot control system according to claim 8, wherein the storage unit writes the values of the multiple variables acquired by the acquisition unit to the storage area based on assignment data indicating one of the locations or one of the addresses of the storage area that stores the values of the multiple variables.
10. A robot control device and a display device are included, The robot control device includes: an acquisition unit that repeatedly acquires values of variables from the industrial machine; a storage unit that writes the value of the variable acquired by the acquisition unit into a storage area that stores the value of the variable; an allocation memory unit that stores allocation data indicating a location or address of the storage area to which the variable is written; The display device includes: A display unit for displaying the value of the variable; A change unit that changes the value of the variable.
11. A robot control device and a display device are included, The robot control device includes: an acquisition unit that repeatedly acquires values of variables from the industrial machine; a storage unit that writes the value of the variable acquired by the acquisition unit into a storage area that stores the value of the variable; an allocation memory unit that stores allocation data indicating a location or address of the storage area to which the variable is written; The display device includes: A display unit for displaying the value of the variable; An editorial department that edits robot programs to control the robots; A change unit that changes the value of the variable in response to editing of the robot program.
