Robot control device and robot control system
The robot control device addresses synchronization and communication challenges by periodically acquiring and writing CNC variables, enhancing communication efficiency and real-time monitoring between robots and CNC machines.
Patent Information
- Application Number
- PCT/JP2023/012943
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-03
AI Technical Summary
Current systems face challenges in synchronizing communication between robots and CNC industrial machines, leading to slow communication cycles and difficulties in monitoring states due to the need for explicit access commands and large data volumes for CNC variables.
A robot control device with an acquisition unit, storage unit, and allocation storage unit that periodically acquires and writes CNC variables, allowing for efficient data handling and synchronization without the need for explicit access commands, using an allocation storage unit to manage variable locations.
Enables efficient reading and writing of CNC variables, reducing communication latency and allowing for real-time monitoring and control of both robots and CNC machines, improving system responsiveness and efficiency.
Smart Images

Figure JP2023012943_03102024_PF_FP_ABST
Abstract
Description
Robot control device and robot control system
[0001] The present disclosure relates to a robot control device and a robot control system.
[0002] There are systems that allow robots to be controlled from industrial machines such as machine tools. Such systems allow communication between the robot and the industrial machine, allowing them to monitor and request each other's status. Furthermore, the robot program's instructions have the function of communicating with CNC (computerized numerical control) industrial machines and accessing CNC setting variables. By using these instructions to obtain or write setting variables, the robot or robot control device and the CNC industrial machine can check each other's status and request each other's status.
[0003] International Publication No. 2020 / 194752
[0004] Access to CNC setting variables requires the execution of an access command in the robot program. Therefore, the CNC industrial machine cannot make a request to the robot or robot control device at any time and must wait until the robot or robot control device executes the access command. For the same reason, it is difficult for the robot or robot control device and the industrial machine to monitor each other's status. Synchronizing the robot and CNC industrial machine is considered to enable requests at any time and to monitor the status of the other. Synchronizing the robot and CNC industrial machine requires multiple signals. However, CNC variables are typically 8-byte or 16-byte variables. Therefore, if the robot or robot control device obtains one variable to monitor the status of one CNC industrial machine, the amount of communication data becomes enormous, resulting in a slow communication cycle.
[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 machinery and use them as variable data for the robot.
[0006] A robot control device according to an embodiment includes an acquisition unit, a storage unit, and an allocation memory unit. The acquisition unit repeatedly acquires variable values from an industrial machine. The storage unit writes the variable values acquired by the acquisition unit to a storage area for storing the variable values. The allocation memory unit stores allocation data indicating a location or address in the storage area where the variable is to be written.
[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.
[0008] 1 is a block diagram showing an example of a control system according to an embodiment and a main configuration of components included in the control system. FIG. 2 is a block diagram showing an example of main functions and main configurations of a control system according to an embodiment. FIG. 3 is a flowchart showing an example of processing according to the first embodiment by a processor of a control device in FIG. 1 . FIG. 4 is a flowchart showing an example of processing according to the first and second embodiments by a processor of an industrial machine in FIG. 1 . FIG. 5 is a flowchart showing an example of processing according to the first and second embodiments by a processor of a control device in FIG. 1 . FIG. 6 is a flowchart showing an example of processing according to the first and second embodiments by a processor of a teaching device in FIG. 1 . FIG. 7 is a flowchart showing an example of processing according to the first and second embodiments by a processor of a control device in FIG. 1 . FIG. 8 is a flowchart showing an example of processing according to the first and second embodiments by a processor of a control device in FIG. 1 .
[0009] Control systems according to several embodiments will be described below with reference to the drawings. Note that, for the sake of explanation, the drawings used in the following description of the embodiments may omit the configuration. Furthermore, the same reference numerals denote similar elements in the drawings and throughout this specification. [First Embodiment] A control system 1 according to an embodiment will be described with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing an example of the main configuration of the control system 1 according to the embodiment and the components included in the control system 1. FIG. 2 is a block diagram showing an example of the main functions and main configuration of the control system 1 according to the embodiment. The control system 1 is a system that controls a robot 300, for example. 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, for 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. The control device 100 is an example of a robot control device.
[0011] The processor 110 is the central part of the computer that performs various calculations and processes, such as calculations and controls, necessary for the operation of the control device 100. The processor 110 is, for example, a central processing unit (CPU), a microprocessing 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 may be a combination of several of these. The processor 110 may also be a combination of these with a hardware accelerator or the like. The processor 110 controls each component 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 the processes described below based on the programs. Note that some or all of the programs may be incorporated into the circuitry 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 to store each setting variable 241. 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 setting variable 241 is the target for storing the value.
[0016] The ROM 120 and RAM 130 are main storage devices of the computer centered around the processor 110. 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. IO data will be described later. The memory area 131 and the IO memory area 132 may physically exist on the same memory, or may exist on physically 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, the IO memory area 132 may be provided in a storage device other than the RAM 130, such as the ROM 120 or the auxiliary storage device 140.
[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 centered around the processor 110. 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 when 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 (to be described later), and first execution information. The allocation information and 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, administrator, or 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, etc. 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 local area network (LAN) or the Internet. The control device 100 communicates with the industrial machine 200, the teaching device 400, etc. 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 some other machine. The control method of the industrial machine 200 is CNC. Alternatively, the control method of the industrial machine 200 may be NC or some other method. 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 or the like connects these components.
[0027] The processor 210 is the central part of a computer that performs calculations, control, and other processes necessary for the operation of the industrial machine 200, and performs various calculations and processes. 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 may be a combination of two or more of these. The processor 210 may also be a combination of these with a hardware accelerator or the like. The processor 210 controls each unit 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 also executes the processes described below based on the programs. Note that part or all of the programs may be incorporated into the circuitry of the processor 210.
[0028] ROM 220 and RAM 230 are main memory devices of a computer with processor 210 at its core. ROM 220 is a non-volatile memory used exclusively for reading data. ROM 220 stores, for example, firmware among the above programs. ROM 220 also stores data used by processor 210 when performing various processes. RAM 230 is a memory used for reading and writing data. RAM 230 is used as a work area for storing data temporarily used by processor 210 when performing various processes. RAM 230 is typically a volatile memory.
[0029] The auxiliary storage device 240 is an auxiliary storage device of a computer centered around the processor 210. 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 when 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 like a global variable or an external variable, for example. 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] The above programs also 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 shown as being stored in the auxiliary storage device 240 as an example. The industrial machine program 242 is, for example, a program used by the industrial machine 200 to perform machining, and is created by the 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 network described above. 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, or a controller. The input device 260 may also be a device for voice input.
[0034] The display device 270 displays a screen for notifying various types of information to the 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 that allows 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 between each part 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, an articulated robot. As an example, the robot 300 includes one or more drive units. The robot 300 may be another type of robot. Note that the robot 300 may have 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 using online teaching, offline teaching, direct teaching, or any other program creation method. The teaching device 400 is, for example, a teaching pendant capable of online teaching. The teaching device 400 is, for example, a device such as a personal computer (PC) that runs 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 also 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 or the like connects these components. The teaching device 400 is an example of a display device.
[0038] The processor 410 is the central part of a computer that performs various calculations and processes, such as calculations and controls, necessary for the operation of the teaching device 400. 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 may be a combination of several of these. The processor 410 may also be a combination of these with a hardware accelerator or the like. The processor 410 controls each component 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 the processes described below based on the programs. Note that some or all of the programs may be incorporated into the circuitry of the processor 410.
[0039] The ROM 420 and RAM 430 are 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 temporarily used by the processor 410 when performing various processes. The RAM 430 is typically a volatile memory.
[0040] The auxiliary storage device 440 is an auxiliary storage device of a computer centered around the processor 410. 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 when 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 through which the teaching device 400 communicates 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 the 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 various pieces of information to the operator of the teaching device 400 or the like. 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 included in the touch panel can be used as the display device 470, and a pointing device for touch input included in the touch panel 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 processing described below is merely an example, and various other processing may be used as appropriate to achieve similar results. FIGS. 3 , 5 , and 7 are flowcharts illustrating an example of processing by the processor 110 of the control device 100. The processor 110 executes the processing illustrated in 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 illustrating an example of processing by the processor 210 of the industrial machine 200. The processor 210 executes the processing illustrated in FIG. 4 based on a program stored in, for example, the ROM 220 or the auxiliary storage device 240. FIG. 6 is a flowchart illustrating an example of processing by the processor 410 of the teaching device 400. The processor 410 executes the processing illustrated in 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 Figures 3, 5, and 7 in parallel or in parallel. The processor 210 of the industrial machine 200 executes, for example, the processes of Figures 4 and 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 every predetermined time TP. Alternatively, the processor 110 determines to acquire parameter information when the current time is after a predetermined time CT. Alternatively, the processor 110 determines to acquire parameter information when it receives an input instructing it to acquire parameter information. The input instructing it to acquire parameter information is, for example, an input from a program executed by the control device 100. Alternatively, the input instructing it to acquire parameter information may be an input from outside the control device 100.
[0048] If 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, if 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 the 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 there are two pieces of parameter information, first parameter information and second parameter information. The time TP corresponding to the first parameter information is time TP1. The first parameter information includes time TP1. The time TP corresponding to the second parameter information is time TP2. The second parameter information includes time TP2. In this case, the processor 110 determines to acquire the first parameter information if the time elapsed since the last acquisition of the first parameter information is time TP1 or more. The processor 110 determines to acquire the second parameter information if the time elapsed since the last acquisition of the second parameter information is time TP2 or more.
[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 the processor 110 does not determine that the parameter information is to be acquired, it determines No in step ST101 and repeats the processing of step ST101. On the other hand, if the processor 110 determines that the parameter information is to be acquired, 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. If there are multiple pieces of parameter information, the processor 110 acquires, for example, the parameter information that was determined to be acquired in step ST101.
[0054] In step ST103, the processor 110 determines whether or not 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 or not 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 result of the determination in step ST103 is Yes, and the process 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 requesting 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, for example, the parameter information acquired in step ST102. 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 transmission instruction, 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 enters a standby state in which it repeats steps ST121 and ST122 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 where steps ST121 and ST122 are repeated, the processor 210 determines "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, the RAM 230, or the like. The processor 210 acquires, for example, 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 sent the variable request. Upon receiving 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 monitored in the process shown in FIG. 5. For example, the processor 110 allocates the monitoring variables to the RAM 130 or the like when starting the process 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 should be stored in. Furthermore, if multiple setting variables 241 can be stored in one monitoring variable, the allocation information also includes information indicating which part of each setting variable 241 each setting variable 241 should be stored in. The allocation information defines, for example, which monitoring variable each setting variable 241 should be stored in 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 that stores the monitoring variable. That is, the allocation information includes information indicating which address in the storage area each setting variable 241 should be stored in. Alternatively, the allocation information defines which monitoring variable each setting variable 241 should be stored in by the variable name or the like. The variable name is an example of the location in the storage area where the setting variable 241 is stored. The allocation information may also define the storage areas for multiple monitoring variables by a single address. For example, the allocation information defines the storage areas by the start addresses of the multiple monitoring variables and the length from the start to the end of the multiple monitoring variables. The multiple monitoring variables are assumed to be arranged consecutively in the storage area.
[0067] The RAM 230 or the auxiliary storage device 240 is an example of a storage area that stores the values of variables. Furthermore, an area that stores monitored variables is an example of a storage area that stores the values of variables. Therefore, the allocation information is an example of assignment data that indicates the location or address of the storage area where the values of the variables are stored. Furthermore, if 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 where the values of the multiple variables are stored. Furthermore, the allocation information that defines the storage areas for multiple monitored variables by a single address is an example of assignment data that stores a single address that indicates the storage area where the values of the multiple variables are stored. Furthermore, 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 variables 241 received in step ST106 to the monitoring variables indicated by the allocation information. If the allocation information indicates the address at which the setting variables 241 are to be stored, the processor 110 inputs (stores) the setting variables 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 variables 241 from the industrial machine 200 periodically or irregularly, and inputs them to the monitoring variables.
[0069] As described above, by executing the process of step ST108, the processor 110 functions as an example of 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.
[0070] The processor 110 does not have to perform the process of step ST101. In this case, the processor 110 starts the process shown in FIG. 3 from step ST102. Then, after the process of step ST108, the processor 110 returns to step ST102. 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 variable values from industrial machinery.
[0072] 5, the processor 110 of the control device 100 checks each monitored variable. That is, the processor 110 acquires 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 displays the monitored variable screen on the display device 470. The monitored variable screen includes, for example, an image showing the value of the monitored 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 instructing to change the value of the variable displayed on input device 460 is performed. 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 where steps ST141 and ST142 are repeated, processor 410 determines "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. In response to 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 that includes the values of the monitoring variables included in the display request. The variable screen allows an operation to instruct a change to the displayed variable value. The variable screen also allows an operation to instruct how the variable value is to be changed. 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] to
[16] each show the number assigned to each variable. However, in the state shown in Figure 9, only variables Data [1] and Data [2] exist. Variables Data [3] to Data
[16] are either 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 values of the variables displayed in area AR1 can be changed using input device 460 or the like. When such an operation is performed, processor 410 determines that the values of the variables are to be changed in step ST142 of Fig. 6. Furthermore, the change information described below includes the details of the change to the value caused by the operation.
[0084] After processing step ST143, processor 410 returns to step ST141.
[0085] As described above, in step ST143, the processor 410 functions as an example of a display unit that cooperates with the display device 470 to display the value of the variable.
[0086] If processor 410 determines to change the value of the variable while 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 in accordance with the change information. After generating the change request, the processor 410 instructs the communication interface 450 to send the change request to the control device 100. Upon receiving this instruction to send, the communication interface 450 sends the change request to the control device 100. The sent 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 unit 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 processing step ST152, the processor 110 returns to step ST151.
[0091] Meanwhile, 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 to be executed when the value of the monitored variable becomes a certain 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 to be 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 to be activated when the monitored variable stored in the activation area 133 becomes a predetermined value. As an example, the first execution information stores that the robot 300 is to be stopped when the monitored variable stored in the alarm area 134 becomes a predetermined value. Note that the monitored variable stored in the alarm area 134 indicates that an alarm has occurred in the industrial machine 200 when the value of the monitored variable becomes 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, if the value is the 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, the processor 110 determines No in step ST135 and returns to step ST131. On the other hand, if the processor 110 determines to execute the process, the processor 110 determines Yes in step ST135 and proceeds to step ST136.
[0093] In step ST136, the processor 110 executes the processing determined to be executed in step ST135. After processing in step ST136, the processor 110 returns to step ST131. As described above, the processor 110 monitors the monitoring variable, and executes the predetermined processing when the value of the monitoring variable reaches a predetermined value. As described above, the processor 110 inputs the value of the setting variable 241 into the monitoring variable through the processing in Figure 3. Therefore, the processor 110 monitors the setting variable through the processing in Figures 3 and 5, and executes the predetermined processing when the value of the setting variable reaches a predetermined value.
[0094] 13 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 that indicates 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, such as 1. The predetermined process in this example is stopping the robot 300. For example, the stopping unit 114 stops the robot 300. If the processor 110 determines in step ST134 that the value of the monitoring variable in this example has become 1, the processor 110 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-up command. For example, the start-up 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] Furthermore, there may be multiple predetermined values. And there may be multiple predetermined processes. For example, suppose 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 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 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 numeric 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. The predetermined value may also be a value indicating the absence of a value, such as null or nothing.
[0099] The predetermined processing will be further explained using Fig. 10 . For example, suppose that the value of a certain setting variable 241 (hereinafter referred to as the "target variable") changes 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 the "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 explained using 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 is provided with, 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 begins operation. 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, it outputs a start request signal. When the start button 261 is operated while the industrial machine 200 is operating, it outputs a stop request signal. For example, the processor 210 receives input 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, changing the value of this target variable. Alternatively, it can be said that the input of a start request signal or a stop request signal acts as a value change trigger, changing the value of this target variable.
[0102] The processor 210 also 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 an industrial machinery program 242 in response to operation of the start button 261 in order to operate the industrial machinery 200.
[0103] As described in the description of FIGS. 3 and 4 , the processor 110 of the control device 100 acquires a target variable via the communication interface 160. The control device 100 stores the acquired target variable or the value of the target variable in the startup area 133 as a monitored variable. The processor 110 monitors changes in the value of the target variable by monitoring the startup 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 predetermined processing, such as starting the robot 300. For example, the startup unit 113 performs this startup. Furthermore, 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 predetermined processing, such as stopping the robot 300. The stopping unit 114 performs this stop.
[0104] In this way, in the example shown in FIG. 10, the operation of the start button 261 starts or stops not only the industrial machine 200 but also the robot 300 .
[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 predetermined process corresponding to the predetermined value when the value of the variable written to the storage area is a predetermined value.
[0106] Furthermore, if the processor 110 does not determine to acquire the setting variable 241 from the industrial machine 200, that is, if it determines to write the setting variable 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 indicator variable. The indicator variable is a variable that indicates the write content indicated by the instruction 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 indicator variable. The acquisition information is information that determines which variable to acquire as the indicator variable. The processor 110 acquires the indicator variable, for example, from a memory area of the robot 300. Alternatively, the processor 110 may acquire the indicator variable from the RAM 130, the auxiliary storage device 140, or an external device. The value of the indicator variable is an example of a value stored in the storage area. Therefore, by executing the processing of step ST109, the processor 110 functions as an example of a robot variable acquisition unit that acquires a 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 location of the write target, for example, by a variable name or address. The processor 110 determines the write target, for example, by using 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 variables of the industrial machine 200 that store the value acquired by the robot variable acquisition unit. 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 content to be written into the setting variable 241. The content to be written indicated by the instruction information is, for example, the value of the instruction variable acquired in step ST109. Note that the target information is an example of variable designation data indicating the variable of the industrial machine to which the value is 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 in 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 it repeats steps ST121 and ST122 in FIG. 4, it determines 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, RAM 230, or the like, 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, which is information indicating that the 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 sent the write request. Upon receiving this transmission instruction, 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 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, thereby repeatedly transmitting write requests to the industrial machine 200 periodically or irregularly.
[0118] As described above, the processor 110 functions as an example of a transmitting unit that periodically and repeatedly transmits to the industrial machine the value acquired by the robot variable acquisition unit and variable designation data indicating the variable of the industrial machine to which the value is to be written, by executing the processing of step ST112 in cooperation with the communication interface 250. Alternatively, the processor 110 functions as an example of a transmitting unit by executing the processing of step ST112.
[0119] In addition, 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 corresponding to the value of each setting variable 241. For example, if 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 that the process is to be executed. 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, the processor 210 executes a predetermined process corresponding to the predetermined value. After the process of step ST163, the processor 210 returns to step ST161. As described above, the processor 210 monitors the setting variable 241 by the process of Fig. 8, and executes the predetermined process when the value of the 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 robot variables. Furthermore, when adding a signal to a conventional CNC industrial machine, processing of the added signal must be added to the ladder program. However, end users of CNC industrial machines typically cannot modify the ladder program. Therefore, end users must request the industrial machine manufacturer or other similar entity to modify the ladder program. This results in a significant amount of work required to modify the ladder program. On the other hand, the setting variables 241 can be referenced in the machining program without the need to modify 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 storage area for storing the values of multiple variables, thereby enabling 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] Furthermore, according to the control system 1 of the first embodiment, the predetermined process is to execute or stop a robot program. Therefore, the control system 1 of the first embodiment allows the industrial machine 200 to execute or stop a 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 indicator 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 indicator variable changes. Therefore, the control device 100 can operate the industrial machine 200 using the indicator 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. As a result, the control system 1 of the first embodiment allows the setting variable 241 to be manually rewritten.
[0129] [Second Embodiment] In a control system 1 of a second embodiment, unlike the first embodiment, the control device 100 converts the setting variables 241 into IO (input / output) data and stores the data in an IO memory area. Also, in the control system 1 of the second embodiment, unlike the first embodiment, the indicator variables are IO data. Also, the indicator variables are stored in an IO memory area. The configuration of the control system 1 of the second embodiment is the same as that of the first embodiment, so a description thereof will be omitted.
[0130] In the second embodiment, the auxiliary storage device 140 and the like store IO memory information (to be described later) instead of allocation information. In the second embodiment, the auxiliary storage device 140 and the like store second execution information (to be described later) instead of first execution information.
[0131] The operation of the control system 1 according to the second embodiment will be described below with reference to Figures 4 to 8, 11, 13, etc. Note that the content of the processing in the following operation description is an example, and various processing that can obtain similar results can be used as appropriate. Figure 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 Figure 11 based on a program stored in, for example, the ROM 220 or the auxiliary storage device 240. Figure 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 Figure 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, similarly to 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 to floating-point data before transmitting it. Alternatively, the processor 210 transmits the setting variable 241 stored in floating-point format. 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 a 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 usually 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, where 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 of 2 or more. When a setting variable 241 of 2 or more bits is used, if the data is n-bit floating-point data, the values of 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 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 data.
[0138] In the second embodiment, if the processor 110 of the control device 100 determines "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 a sequence of multiple binary data values, such as "0" and "1," "ON" and "OFF," or "True" and "False." Therefore, IO data is like an array of Boolean variables. Binary data can also be seen as 1-bit binary data. The processor 110 converts the setting variable 241 into IO data. Two methods for converting 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 IO. The received setting variable 241 is floating-point data, which is a binary variable. Therefore, the processor 110 uses the value of each floating-point bit 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 the positive number obtained by rounding the value of the setting variable 241 to the nearest whole number is extracted, converted to binary, and used as IO. Assume that the number expressed in decimal of the floating-point data before conversion is, for example, "-1234.567." In this case, the processor 110 rounds the decimal point of "-1234.567" to "-1234." The processor 110 then calculates the absolute value of this value. In this case, the absolute value is "1234." The processor 110 then converts this absolute value into binary integer data. In this case, 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 is "0", the second is "0", the third is "0", the fourth is "0", the fifth is "0", the sixth is "1", the seventh is "0", and so on.
[0142] Because the setting variable 241 is a floating-point type, it may not be possible to manipulate it bit by bit. In this case, if conversion method 1 is used to manipulate only specific IOs of the control device 100 from the processor 210, the user must calculate the floating-point type when manipulating specific bits, which is time-consuming. Conversion method 2 reduces the amount of data communicated, but has the effect of reducing this time-consuming work.
[0143] As described above, by executing the process of step ST201, the processor 110 functions as an example of an IO conversion unit that converts the value of the variable acquired by the acquisition unit 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 each setting variable 241 is to be stored. For example, the IO memory information stores the address in the IO memory area 132 at which 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. Note that 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 processing step ST203, the processor 110 returns to step ST201. Note that 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 that stores 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 industrial machines.
[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 second execution information instead of the first execution information in the processing of steps ST134 to ST136. The second execution information, for example, stores, for each address in the IO memory area 132, what processing is to be executed when a certain value is reached. The second execution information, for example, stores an address, a value, and information indicating the processing to be executed in association with each other in the IO memory area 132. The second execution information indicates that the associated predetermined processing is to be executed when the value of the address in the IO memory area 132 reaches the associated value. Note that the second execution information may also be capable of storing what processing is to be executed when each of the values of multiple addresses in the IO memory area 132 reaches a predetermined value, each of which is determined for that address. For example, the second execution information may be capable of storing information indicating 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, if the value stored at each address in the IO memory area 132 is a value associated with the address 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 values stored at each address in the IO memory area 132 and executes a predetermined process when the value reaches a predetermined value. As described above, the processor 110 inputs the value of the setting variable 241 to the IO memory area 132 through the process of FIG. 11. Therefore, the processor 110 monitors the setting variable 241 through the processes of FIGS. 11 and 5 and executes a predetermined process when the value of the setting variable 241 reaches a predetermined value.
[0150] In the second embodiment, the change request is information that instructs the control device 100 to change the value of the setting variable 241 stored in the IO memory area 132 in accordance with 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 in accordance with 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. 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 obtained by converting "21.123" using (ii) conversion method 2 is "21" in decimal and "0000 0000 0001 0101" in binary. However, only the lower 16 digits of the binary number are shown here. The upper 16 digits are all 0.
[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 that the value of the variable is to be changed in step ST142 of Fig. 6. Furthermore, the change information includes the content of the change to the 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 that if the value of the setting variable 241 stored in the IO memory area 132 is a predetermined value, it will execute processing according to the value of the setting variable 241.
[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, receiving 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. Upon receiving 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 represents a command in the program. For example, image IM1 represents the content of the command using a pictogram or the like. Note that area AR10 may also display each command using text or the like. Area AR10 can be used to add, change, or delete commands.
[0161] Furthermore, the area AR10 can be operated to specify the 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 command to be edited. Note that if no command is specified as the command to be edited, for example, the first command automatically becomes the command to be edited.
[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, as an 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 where the command to be edited is displayed. In FIG. 14, "DO [1]" is displayed as the command. "DO [1]" is an output command. The "1" in this area 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 a 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, the change data is stored in, for example, a memory area of the robot 300.
[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, if an operation instructing to change the instruction to be edited has been performed, processor 410 determines that the instruction to be edited will be changed. If processor 410 does not determine that the instruction to be edited will 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 an operation has been performed to instruct a change in the value of the designated variable. For example, inputting a value into the aforementioned area AR23 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 it repeats steps ST213 to ST215 until it determines that the instruction to be edited will be changed, an operation to specify a designated variable is performed, or an operation to instruct a change in the value of a designated variable is performed.
[0171] If processor 410 determines that the command to be edited is to be changed while in a standby state in which steps ST213 to ST215 are repeated, it makes a "Yes" determination in step ST213 and returns to step ST212. Then, in the processing of step ST212, processor 410 updates the display of editing screen SC1 to a screen corresponding to the changed command to be edited.
[0172] If an operation to designate a designated variable is performed while processor 410 is in a standby state in which steps ST213 to ST215 are repeated, processor 410 determines Yes in step ST214 and proceeds to step ST216.
[0173] In step ST216, the processor 410 acquires 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 acquires 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 processing step ST219, processor 410 returns to step ST212.
[0177] If an operation to instruct a change in the value of the designated variable is performed while processor 410 is in a standby state in which steps ST213 to ST215 are repeated, processor 410 determines 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 that instructs the control device 100 to change the value of the setting variable 241 stored in the IO memory area 132 in accordance with the change information. The change information includes a number or address that identifies the designated variable and the changed value of the designated variable. The changed value is the value specified by an operation that instructs a change to the value of the designated variable. The change request is similar to step ST144 in 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 this 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, by executing the processing of steps ST215 and ST220, the processor 410 functions 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 processing in 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 processing 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 indicator variable in the form of binary IO data. Note that the value has been converted into IO data, for example, by the same method as in step ST201. The processor 110 converts the indicator variable into IO data by the same method as in step ST201 and stores the converted data 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 normally 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 can obtain the same effects as those of the second embodiment.
[0190] Furthermore, according to the control system 1 of the second embodiment, the control device 100 converts the setting variable 241 into IO data. To perform a specific process, such as externally executing or stopping a robot program, a signal with a specific purpose is prepared in advance. This allows for operation with 1-bit data, which is small in data size and improves system readability. Furthermore, using 1-bit data reduces the amount of data communication 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 binary variable as an IO, which allows the control device 100 to include multiple settings in one numerical value.
[0192] Furthermore, according to the control system 1 of the second embodiment, the control device 100 has an IO memory area 132. Therefore, the control device 100 can store instruction variables 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 can edit the robot program in a manner that involves changing the value of the setting variable 241.
[0194] The above embodiment may 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, part or all of the processing performed by the teaching device 400 may be performed by the control device 100 or the robot 300. Furthermore, the control device of the embodiment may include 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 processing that is implemented by a program in the above embodiments by a hardware circuit configuration.
[0197] The program for implementing the processes of the embodiments is transferred, for example, in a state stored in a non-transitory storage medium within the device. However, the device may be transferred without the program stored therein. The program may then be transferred separately and written to the device. The program may be transferred, for example, by 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 embodiments of the present invention have been described above, they are merely examples and are not intended to limit the scope of the present invention. The embodiments of the present invention can be implemented in various forms without departing from the spirit of the present invention.
[0199] 1 Control system 100 Control device 110, 210, 410 Processor 111 Allocation unit 112 Data conversion unit 113 Startup unit 114 Stop unit 115 Target unit 120, 220, 420 ROM 130, 230, 430 RAM 131 Memory area 132 IO memory area 133 Startup area 134 Alarm area 140, 240, 440 Auxiliary storage device 150 Control interface 160, 250, 450 Communication interface 170, 280, 480 Bus 200 Industrial machine 211 Industrial startup unit 241 Setting variable 242 Industrial machine program 243 Ladder program 260, 460 Input device 261 Startup button 270, 470 Display device 300 Robot 400 Teaching Device
Claims
1. A robot control device comprising: an acquisition unit that repeatedly acquires variable values from industrial machinery; a storage unit that writes the variable values acquired by the acquisition unit into a storage area for storing the variable values; and an allocation memory unit that stores allocation data indicating a location or address in the storage area to which the variable is written.
2. A robot control device as described in claim 1, further comprising an IO conversion unit that converts the value of the variable acquired by the acquisition unit into IO data, wherein the storage unit writes the value of the variable converted by the IO conversion unit into the storage area, and the storage area is within an IO memory area.
3. A robot control device as described in claim 2, wherein the acquisition unit repeatedly acquires values of the multiple variables, the allocation memory unit stores the allocation data indicating one of the locations or one of the addresses of the storage area that stores the values of the multiple variables, and the storage unit writes the values of the multiple variables to the storage area based on the allocation data.
4. A robot control device according to claim 1, further comprising an execution unit which, when the value of the variable written in the storage area is a predetermined value, executes a predetermined process corresponding to the predetermined value.
5. A robot control device according to claim 4, wherein the predetermined process is execution or stopping of a robot program.
6. The robot control device according to claim 4, wherein the variable indicates that an alarm has occurred, and the predetermined process is to stop the robot.
7. A robot control device comprising: a robot variable acquisition unit that acquires a value stored in a storage area; an allocation memory unit that stores allocation data indicating variables of an industrial machine that will store the value acquired by the robot variable acquisition unit; and a transmission unit that periodically and repeatedly transmits to the industrial machine the value acquired by the robot variable acquisition unit and variable designation data indicating the variable of the industrial machine to which the value is to be written.
8. A robot control device as described in claim 7, wherein 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, and further includes a conversion unit that converts the value acquired by the robot variable acquisition unit into a data format other than IO data, and the transmission unit transmits the value converted by the conversion unit to the industrial machine.
9. A robot control system comprising a robot control device and a display device, wherein the robot control device comprises: an acquisition unit that repeatedly acquires variable values from industrial machinery; a storage unit that writes the variable values acquired by the acquisition unit into a storage area for storing the variable values; and an allocation memory unit that stores allocation data indicating a location or address of the storage area to which the variable is written; and the display device comprises a display unit that displays the variable values.
10. The robot control system according to claim 9, wherein the display device further comprises a modification unit that modifies the value of the variable.
11. The robot control system according to claim 9, wherein the display device further comprises: an editing unit that edits a robot program for controlling a robot; and a modification unit that changes values of the variables in accordance with editing of the robot program.
Citation Information
Patent Citations
Numerical control device and numerical control method
WO2020144772A1
Numerical control system, and method for controlling industrial machine
WO2022097719A1
