Control device
The control device addresses inefficiencies in parallel control systems by adjusting speed and acceleration to utilize dead time, reducing power consumption and optimizing cycle time.
Patent Information
- Application Number
- JP2024128623
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-11-05
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In systems with multiple parallel control objects, wasted time occurs when one object waits for another to reach a predetermined state, leading to inefficiencies in operation and increased cycle time.
A control device that adjusts the speed and acceleration of adjustable intervals in the control program to minimize wasted time, either by reducing power consumption or shortening the cycle time, by detecting and utilizing dead time through units like the adjustable interval detection and speed adjustment units.
The control device effectively reduces wasted time, minimizing power consumption and machine impact while optimizing cycle time in systems with parallel control objects.
Smart Images

Figure 2024153888000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device, and more particularly to a control device that adjusts a feed rate taking into account dead time. [Background technology]
[0002] In control devices that control industrial machines such as machine tools and robots, multiple control processes may be performed in parallel. These multiple control processes may include, for example, parallel control between systems that make up a multi-system system, or parallel control of control targets that make up a single-system system (such as a machine tool and its peripheral devices, or between multiple peripheral devices). Parallel control is realized by cooperative operations between multiple control programs, cooperative operations between blocks within a single control program, or cooperative operations between multiple commands within the same block.
[0003] As an example, a case where a multi-system system is controlled by a plurality of control programs will be described. In the case of multi-system control for controlling a multi-system system having a plurality of machining systems and loader systems, queuing control may be performed to coordinate the operations between the systems (for example, Patent Document 1, etc.). Commands for controlling each system are generally included in different control programs for each system. In order to perform queuing control, the commands of each control program include commands to "wait" with other systems and peripheral devices. The control programs and peripheral devices of each system work in coordination by waiting for each other. FIG. 9 shows an example of a control program that performs queuing. In the control program of FIG. 9, an M101 command is used to command queuing between systems, and a WAIT(3) command is used to temporarily suspend the operation of the control program until the other system notifies the other system of the queuing identifier 3. Then, when the other system reaches a predetermined state and notifies the other system of the queuing identifier 3, the control program resumes execution and the loader is called by the M200 command. By using this control program, the execution of the loader call command can be made to wait until the other system executes a command to notify the other system of the queuing identifier 3.
[0004] As another example, a case will be described in which controlled objects constituting a single system are controlled in parallel by a single control program. In a single system, when a control program calls a peripheral device for use, the control program continues to run after a command to call the peripheral device is executed. At this time, if there is a block among the blocks that are being executed continuously that cannot be executed until the peripheral device's operating state reaches a predetermined state (such as a state in which the driving unit of the peripheral device has moved to a predetermined position), a wait command is executed in that block to wait for a signal to be sent when the peripheral device reaches the predetermined state. Then, when the peripheral device reaches the predetermined state and a signal is sent, the wait command is released and the control program continues to run. Such a wait process may also be performed between commands in the same block. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2016-153938 A Summary of the Invention [Problem to be solved by the invention]
[0006] Consider the case where there are multiple controlled objects operating in parallel, and one controlled object arrives early at a wait command to wait for the operation of the other controlled objects. In such a case, the operation of the controlled object will be temporarily halted until the other controlled objects reach a specified state. This waiting time can be considered as wasted time if we focus only on the operation of the controlled object.
[0007] On the other hand, consider a case where a certain controlled object reaches a desired state with a delay in the execution of a wait command. In such a case, the cycle time of the operation of the entire system will decrease by the amount of time it takes for the controlled object to reach the desired state. This delay time can also be considered as wasted time from the perspective of the operation of the entire system. There is a demand for a technical method for effectively utilizing dead time that occurs in such a system in which multiple controlled objects operate in parallel. [Means for solving the problem]
[0008] The control device according to the present invention reduces dead time in a system in which multiple control objects operate in parallel by adjusting the speed and acceleration of an adjustable section (e.g., an air cut section in which the axis moves without machining, or a machining section in which adjusting the machining conditions does not cause any major problems) in a command to control at least one of the multiple control objects. Adjusting the speed and acceleration of the adjustable section of a control object in which waiting time occurs to reduce the power consumption of the control object and the impact on the machine. Adjusting the speed and acceleration of the adjustable section of a control object in which delay time occurs to increase the speed and acceleration reduces the cycle time of the entire system. Either adjustment reduces dead time.
[0009] One aspect of the present invention is a control device that performs parallel control to control a plurality of different control objects based on at least one control program to machine a workpiece, the control device comprising: an analysis unit that analyzes the control program; a control unit that controls the plurality of control objects based on an analysis result by the analysis unit; an adjustable section detection unit that detects an adjustable section in the control program; a dead time detection unit that executes and processes the control program to detect dead time that occurs in the execution of commands related to waiting between the plurality of control objects in the control program; and a speed adjustment unit that adjusts at least one of the speed and acceleration of commands related to the movement of axes of the control objects in the adjustable section in the control program so as to shorten the dead time. Effect of the Invention
[0010] One aspect of the present invention makes it possible to effectively utilize the wasted time that occurs in a system in which multiple control objects operate in parallel by converting it into a reduction in power consumption and impact on the machine, and shortening cycle time. [Brief description of the drawings]
[0011] [Figure 1] FIG. 2 is a schematic hardware configuration diagram of a control device according to the first embodiment. [Diagram 2] FIG. 2 is a schematic block diagram showing the functions of a control device according to the first embodiment. [Diagram 3] FIG. 13 is a diagram illustrating an example of the relationship between the transition of speed and time in a certain system. [Figure 4] 11A and 11B are diagrams illustrating the results of a process for reducing latency. [Diagram 5] FIG. 13 is a diagram illustrating an example of the relationship between the transition of speed and time in another system. [Figure 6] 11A and 11B are diagrams illustrating examples of results of a process for reducing a delay time. [Figure 7] FIG. 11 is a schematic block diagram showing the functions of a control device according to a second embodiment. [Figure 8]FIG. 11 is a schematic block diagram showing the functions of a control device according to a third embodiment. [Figure 9] FIG. 13 is a diagram illustrating an example of a machining program for performing inter-path synchronization. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic hardware configuration diagram showing a main part of a control device according to a first embodiment of the present invention. In this embodiment, the functions of the control device of the present invention will be described by taking as an example a case where multiple control objects are controlled in parallel by multiple control programs. The control device 1 of the present invention can be implemented as a control device that controls the control objects 3a and 3b, for example, based on a control program prepared for each control object. The functions of the control device 1 according to this embodiment can also be applied to a case where multiple control objects 3a and 3b are controlled in parallel by a single control program.
[0013] The CPU 11 provided in the control device 1 according to this embodiment is a processor that controls the entire control device 1. The CPU 11 reads out a system program stored in the ROM 12 via the bus 22, and controls the entire control device 1 in accordance with the system program. The RAM 13 temporarily stores temporary calculation data, display data, various data input from outside, and the like.
[0014] The non-volatile memory 14 is composed of, for example, a memory backed up by a battery (not shown) or an SSD (Solid State Drive), and the memory state is maintained even when the power supply of the control device 1 is turned off. The non-volatile memory 14 stores control programs and data read from the external device 72 via the interface 15, control programs and data input from the input device 71 via the interface 18, and control programs and data acquired from other devices such as the fog computer 6 and the cloud server 7 via the network 5. The data stored in the non-volatile memory 14 may include, for example, data related to the positions, speeds, accelerations, and loads of the motors in the control objects 3a and 3b, and each physical quantity detected by a sensor (not shown) attached to the other control objects 3a and 3b. The control programs and data stored in the non-volatile memory 14 may be expanded in the RAM 13 when executed / used. In addition, various system programs such as known analysis programs are written in advance in the ROM 12.
[0015] The interface 15 is an interface for connecting the CPU 11 of the control device 1 to an external device 72 such as an external storage medium. For example, control programs and setting data used to control the control targets 3a and 3b are read from the external device 72. In addition, the control programs and setting data edited in the control device 1 can be stored in an external storage medium such as a CF card or USB memory (not shown) via the external device 72. The PLC (Programmable Logic Controller) 16 executes a ladder program to output signals to the control targets 3a and 3b and peripheral devices of the control targets 3a and 3b (for example, a tool changer, an actuator such as a robot, and sensors such as a temperature sensor and a humidity sensor attached to the control targets 3a and 3b) via an I / O unit 19 to control them. In addition, the PLC 16 receives signals from various switches and peripheral devices on an operation panel provided on the main body of the control targets 3a and 3b, performs necessary signal processing on the signals, and then passes them to the CPU 11.
[0016] The interface 20 is an interface for connecting the CPU of the control device 1 to a wired or wireless network 5. The network 5 may communicate using technologies such as serial communication such as RS-485, Ethernet (registered trademark), optical communication, wireless LAN, Wi-Fi (registered trademark), Bluetooth (registered trademark), etc. The network 5 is connected to other machines and higher-level management devices such as a fog computer 6 and a cloud server 7, and exchanges data with the control device 1.
[0017] The display device 70 displays on its screen various data read into the memory, data obtained as a result of executing programs, etc., outputted via the interface 17. An input device 71 consisting of a keyboard, pointing device, etc., transmits commands, data, etc. based on operations by an operator to the CPU 11 via the interface 18.
[0018] The axis control circuits 30a and 30b for controlling the axes of the control objects 3a and 3b receive the axis movement command amount from the CPU 11 and output the axis command to the servo amplifiers 40a and 40b, respectively. The servo amplifiers 40a and 40b receive this command and drive the servo motors 50a and 50b that move the drive units of the control objects 3a and 3b along the axis. The axis servo motors 50a and 50b have built-in position and speed detectors, and feedback signals of position and speed from these position and speed detectors are fed back to the axis control circuits 30a and 30b, respectively, to perform feedback control of position and speed. Note that, although only one axis control circuit 30a and 30b, servo amplifiers 40a and 40b, and servo motors 50a and 50b are shown in the hardware configuration diagram of FIG. 1, in reality, the number of axes provided in the control objects 3a and 3b to be controlled is the same as the number of axes provided in the control objects 3a and 3b.
[0019] 2 is a schematic block diagram showing functions of the control device 1 according to the first embodiment of the present invention. Each function of the control device 1 according to this embodiment is realized by the CPU 11 of the control device 1 shown in FIG. 1 executing a system program and controlling the operation of each part of the control device 1.
[0020] The control device 1 of this embodiment includes an analysis unit 100, a control unit 110, an adjustable section detection unit 120, a dead time detection unit 130, and a speed adjustment unit 140. The RAM 13 to the non-volatile memory 14 of the control device 1 store control programs 200a, 200b for controlling the control targets 3a, 3b, respectively, and are provided with an adjustable section storage unit 210 which is an area for storing the adjustable sections of the control programs 200a, 200b, and a dead time storage unit 220 which is an area for storing a command position where dead time occurs in the control programs 200a, 200b and the time of the dead time.
[0021] The analysis unit 100 is realized by the CPU 11 included in the control device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and the non-volatile memory 14. The analysis unit 100 analyzes the control programs 200a, 200b to create command data for controlling the control targets 3a, 3b equipped with the servo motors 50a, 50b. The control programs 200a, 200b include commands that are generally used to control the control targets 3a, 3b. The generally used commands include a wait command, etc. The analysis unit 100 outputs the command data created based on the commands from the control programs 200a, 200b to the control unit 110.
[0022] The control unit 110 is realized by executing a system program read from the ROM 12 by the CPU 11 included in the control device 1 shown in FIG. 1, and mainly performing arithmetic processing by the CPU 11 using the RAM 13 and the non-volatile memory 14, control processing of each part of the control objects 3a and 3b using the axis control circuits 30a and 30b and the PLC 16, and input / output processing via the interface 18. The control unit 110 controls each part of the control objects 3a and 3b and the peripheral devices based on command data input from the analysis unit 100. For example, the control unit 110 generates data related to the movement of the axes based on a command to move the drive parts along each axis of the control objects 3a and 3b, and outputs the data to the servo motors 50a and 50b. In addition, the control unit 110 generates a predetermined signal to operate the peripheral devices of the control objects 3a and 3b based on a command to operate the peripheral devices, and outputs the signal to the PLC 16. On the other hand, the control unit 110 obtains the states of the servo motors 50a and 50b (motor current value, position, speed, acceleration, load, etc.) as feedback values and uses them in each control process.
[0023] The adjustable section detection unit 120 is realized by the CPU 11 included in the control device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and the non-volatile memory 14. The adjustable section detection unit 120 detects an adjustment section in which the speed and acceleration are adjustable within a section in which the feed control of the axes of the control objects 3a and 3b is performed by the control programs 200a and 200b. The adjustable section detection unit 120 detects a section in which air cutting is performed in the control objects 3a and 3b as an adjustable section, for example, based on the control status by the control unit 110 and feedback values fed back from the control objects 3a and 3b. The adjustable section detection unit 120 stores the detected adjustment section in the adjustable section storage unit 210 in association with the command of the control programs 200a and 200b. In this case, the adjustable section detection unit 120 may detect, for example, a section in which fast forward is commanded as an adjustable section. In addition, the adjustable section detection unit 120 may detect, for example, a section where cutting feed is commanded and where the feedback value of the load from the servo motors 50a, 50b driving the axis is smaller than a predetermined threshold value as an adjustable section.
[0024] The adjustable section detection unit 120 may detect, as an adjustable section, a cutting section in which adjustment of the machining conditions does not cause any major problems within the section in which the workpiece is being machined. In this case, the adjustable section detection unit 120 may detect, for example, a section in which a cutting feed is commanded and in which a long range is machined, as an adjustable section. When adjusting the speed or acceleration of the axis in a cutting section in which a long range is machined, a small amount of adjustment can eliminate wasted time, so such a cutting section can be set as an adjustable section. The adjustable section detection unit 120 may also detect, for example, a section in which a cutting feed is commanded and in which the same location is machined in a previous machining, a section in which the cutting feed is previously machined, as an adjustable section.
[0025] The dead time detection unit 130 is realized by the CPU 11 included in the control device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and the non-volatile memory 14. The dead time detection unit 130 detects dead time occurring in the control objects 3a and 3b based on the control status by the control unit 110, and stores the dead time in the dead time storage unit 220 in association with commands of the control programs 200a and 200b. The dead time stored in the dead time storage unit 220 may include at least the time (waiting time) that has elapsed from the execution of a wait command in the control program of a certain control object to the release of the wait command. The dead time stored in the dead time storage unit 220 may also include the time (delay time) that has elapsed from the execution of a wait command in the control program of another control object to the notification of a wait identifier.
[0026] The speed adjustment unit 140 is realized by the CPU 11 included in the control device 1 shown in FIG. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing arithmetic processing using the RAM 13 and the non-volatile memory 14. The speed adjustment unit 140 adjusts at least one of the speed and acceleration of the command related to the adjustable section in the control programs 200a, 200b so as to shorten the dead time, by referring to the adjustable section stored in the adjustable section storage unit 210 and the dead time stored in the dead time storage unit 220. The speed adjustment unit 140 may adjust the air cut section with priority among the adjustable sections. In particular, in the case of adjustment to shorten the delay time in the dead time, it is desirable to adjust the air cut section with priority and not adjust the cutting section. This is because if the speed or acceleration of the cutting section is increased, problems often occur on the machined surface. On the other hand, the speed adjustment unit 140 may adjust the cutting section when making an adjustment to shorten the waiting time in the dead time.
[0027] An example of speed adjustment by the speed adjuster 140 for reducing the waiting time will be described with reference to FIG. 3 and FIG. FIG. 3 is a graph illustrating the relationship between the axial feed speed and time in the control object 3a. In FIG. 3, the vertically shaded section indicates a cutting feed section where the cutting load is equal to or greater than a predetermined threshold, the diagonally shaded section indicates a cutting feed section where the cutting load is equal to or less than a predetermined threshold, and the open section indicates a fast-forward section. Of these, the cutting feed section where the cutting load is equal to or less than a predetermined threshold and the fast-forward section can be considered as adjustable sections. In the example of FIG. 3, it is assumed that a cutting feed command Na1 is executed from time t0 to t2, a cutting feed command Na3 is executed from time t3 to t6, a fast-forward command Na2 is executed from time t2 to t3, and a fast-forward command Na4 is executed from time t6 to t7. It is also assumed that a wait command Na5 is executed at time t7, causing the control object 3a to enter a wait state, and that a notification of a wait identifier is commanded in the control program 200b of the control object 3b at time t8, causing the wait state to be released.
[0028] According to Fig. 3, no load is detected at times t1 to t2, t3 to t4, and t5 to t6, even though the cutting feed command is executed. Therefore, the cutting feed sections at times t1 to t2, t3 to t4, and t5 to t6 are stored as adjustable sections in the adjustable section storage unit 210. Similarly, the fast forward sections at times t2 to t3 and t6 to t7 are stored as adjustable sections in the adjustable section storage unit 210. Then, the period from time t7 when the waiting command Na5 is executed to time t8 when the waiting state is released can be considered as a waiting time, so the time (t8-t7) is stored in the dead time storage unit 220 as a dead time (waiting time) in the command Na5.
[0029] In such a situation, the speed adjusting unit 140 adjusts the cutting feed speed v from time t1 to time t2, for example, so that the timing for executing the command Na5 coincides with approximately time t8. ac1 , acceleration, fast forward speed v at times t2~t3 and t6~t7 ar , acceleration, cutting feed rate v at times t3~t4 and t5~t6 ac2 or decrease the acceleration. FIG. 4 is a graph illustrating the relationship between the axial feed speed and time in the controlled object 3a after the speed in the adjustable section is adjusted. FIG. 4 shows the speed and acceleration of the adjustable section adjusted so that the time t7' when the movement by the fast-forward command Na4 ends coincides with the time t8. This speed adjustment can be realized, for example, by instructing the control unit 110 to set the override small in the adjustable section. The change in the axis position when the override is adjusted may be calculated so that the time t7' when the fast-forward command Na4 ends coincides with the time t8. At this time, at least one of the speed and acceleration is adjusted so that the integral value (movement amount) of the speed when each command is executed coincides with the integral value of the speed when each command is executed in FIG. 3. Note that, although the speed and acceleration of all adjustable sections are adjusted in FIG. 4, it is also possible to adjust only the speed and acceleration of some adjustable sections. In such a case, for example, by adjusting the speed and acceleration of the fast-forward command Na2, whose speed changes greatly in FIG. 3, it is possible to achieve a significant effect in reducing power consumption and impact on the machine by making the time t7' when the movement by the fast-forward command Na4 ends coincide with the time t8.
[0030] Next, an example of speed adjustment by the speed adjuster 140 for reducing the delay time will be described with reference to FIGS. FIG. 5 is a graph illustrating the relationship between the axial feed speed and time in the controlled object 3b. In FIG. 5, the horizontally shaded section indicates a cutting feed section where the cutting load is equal to or greater than a predetermined threshold, the diagonally shaded section indicates a cutting feed section where the cutting load is equal to or less than a predetermined threshold, and the open section indicates a fast-forward section. In the example of FIG. 5, it is assumed that a cutting feed command Nb1 is executed from time t0 to t2, a cutting feed command Nb3 is executed from time t3 to t6, a fast-forward command Nb2 is executed from time t2 to t3, and a fast-forward command Nb4 is executed from time t6 to t7. It is also assumed that a wait command Na5 is executed in the control program 200a of the controlled object 3a at time t7 to put the controlled object 3b into a waiting state, and a wait identifier notification command Nb5 is executed in the control program 200b of the controlled object 3b at time t8 to release the waiting state of the controlled object 3a.
[0031] According to Fig. 5, no load is detected at times t1 to t2, t3 to t4, and t5 to t6, even though the cutting feed command is executed. Therefore, the cutting feed sections at times t1 to t2, t3 to t4, and t5 to t6 are stored in the adjustable section storage unit 210 as adjustable sections. In addition, the fast-forward sections at times t2 to t3 and t6 to t7 are also stored in the adjustable section storage unit 210 as adjustable sections. Then, the time from time t7 when the waiting command Na5 is executed in the control program 200a of the controlled object 3a to time t8 when the waiting identifier notification command Nb5 is executed in the control program 200b of the controlled object 3b can be considered as a delay time, so the time (t8-t7) is stored in the dead time storage unit 220 as a dead time (delay time) in the command Nb5.
[0032] In such a situation, the speed adjusting unit 140 adjusts the cutting feed speed v from time t1 to time t2, for example, so that the timing for executing the command Nb5 coincides with approximately time t7. bc1 , acceleration, fast forward speed v at times t2~t3 and t6~t7 br , acceleration, cutting feed rate v at times t3~t4 and t5~t6 bc2 or increase the acceleration. FIG. 6 is a graph illustrating the relationship between the speed and time of the axial feed in the control object 3b after adjusting the speed in the adjustable section. In FIG. 6, the speed and acceleration in the adjustable section are adjusted so that the time t8' when the movement by the fast-forward command Nb4 ends coincides with the time t7. This speed adjustment can be realized, for example, by instructing the control unit 110 to set the override large in the adjustable section. The transition of the axis position when the override is adjusted may be calculated so that the time t8' when the fast-forward command Nb4 ends coincides with the time t7. At this time, at least one of the speed and acceleration is adjusted so that the integral value (movement amount) of the speed when each command is executed coincides with the integral value of the speed when each command is executed in FIG. 5. Note that, although the speed and acceleration of all adjustable sections are adjusted in FIG. 6, only the speed and acceleration of some adjustable sections may be adjusted.
[0033] In the above, the speed adjustment unit 140 has been described as shortening the waiting time or the delay time, but the speed adjustment unit 140 may be configured to shorten the waiting time of a certain controlled object and the delay time of another controlled object in combination. In this case, for example, a priority may be given to the shortening of the waiting time and the delay time, and the wasted time of the one with the higher priority may be shortened first, and the amount that cannot be adjusted may be compensated for by shortening the wasted time of the one with the lower priority. For example, the waiting time may be prioritized, and the waiting time may be shortened under a predetermined restriction (for example, the speed or acceleration must not be reduced below a predetermined threshold, the speed or acceleration must not be reduced by 10% or more from the commanded speed, etc.), and if the waiting time cannot be reduced to zero, an adjustment may be made to shorten the delay time of the other controlled object. Also, for example, the delay time may be prioritized, and the delay time may be shortened under a predetermined restriction (for example, the speed or acceleration must not be increased beyond the limited speed or the limited acceleration of the axis according to the machine specifications, etc.), and if the delay time cannot be reduced to zero, an adjustment may be made to shorten the waiting time of the other controlled object.
[0034] In addition, when the adjustable section is not stored in the adjustable section storage unit 210 or when the dead time is not stored in the dead time storage unit 220, the speed adjustment unit 140 cannot adjust at least one of the speed and acceleration in the control programs 200a, 200b. In this embodiment, the detection of the adjustable section by the adjustable section detection unit 120 and the detection of the dead time by the dead time detection unit 130 are performed during the control of the control objects 3a, 3b by the control unit 110. Therefore, the speed adjustment unit 140 does not function in the machining of the first workpiece in this embodiment. However, the machining of the workpiece by the machine is performed repeatedly in automatic operation. Therefore, it should be noted that the speed adjustment by the speed adjustment unit 140 functions favorably in the second and subsequent machining operations by utilizing the adjustable section and dead time detected in the first machining operation.
[0035] In the control device 1 having the above configuration, it is possible to convert the wasted time that occurs in a system that controls multiple control objects in parallel into a reduction in power consumption and impact on the machine, and to shorten the cycle time, and to effectively utilize it. In other words, when there is a useless waiting time, it is possible to reduce the power consumption and impact on the machine without lowering the cycle time, and on the other hand, when there is a useless delay time, it is possible to increase the cycle time without unnecessarily increasing the power consumption and impact on the machine. By applying this to a control device that controls multiple control objects in a multi-system machine or line, it is possible to reduce the power consumption and impact on the machine while increasing the cycle time.
[0036] A control device 1 according to a second embodiment of the present invention will now be described with reference to FIG. The control device 1 according to this embodiment includes an analysis unit 100, a control unit 110, an adjustable section detection unit 120, a dead time detection unit 130, and a speed adjustment unit 140, similar to the control device 1 according to the first embodiment. The RAM 13 to the non-volatile memory 14 of the control device 1 store control programs 200a, 200b for controlling the control targets 3a, 3b, respectively, and also include an adjustable section storage unit 210 which is an area for storing the adjustable sections of the control programs 200a, 200b, and a dead time storage unit 220 which is an area for storing command positions where dead time occurs in the control programs 200a, 200b and the time of the dead time.
[0037] The analysis unit 100 according to this embodiment has a function of reading ahead and analyzing the control programs 200a and 200b. The analysis unit 100 also has a function of predicting the time required to execute each command of the control programs 200a and 200b. For predicting the execution time of a command, a known technique disclosed in, for example, Japanese Patent No. 4980458 and Japanese Patent Application Laid-Open No. 2017-146859 may be used. In addition, with regard to the peripheral device, a system for managing the entire line on which the control targets 3a and 3b are arranged, or a standby state of the peripheral device based on a signal acquired via the PLC 16 may be detected, and the time when the peripheral device will be available next may be estimated from the received or previous execution time.
[0038] The adjustable section detection unit 120 according to this embodiment detects, at least in the first machining, a section in which a fast-forward command is executed among the commands included in the control programs 200a and 200b as an adjustable section, and stores the detected section in the adjustable section storage unit 210. The adjustable section detection unit 120 may also detect, as an adjustable section, a machining section in which no major problem occurs even if the machining conditions are adjusted among the commands included in the control programs 200a and 200b, and store the detected section in the adjustable section storage unit 210. The dead time detection unit 130 according to this embodiment calculates the dead time (waiting time and delay time) occurring in the waiting included in the control programs 200a and 200b based on the machining time prediction result by the analysis unit, and stores the calculated dead time in the dead time storage unit 220. The other functions of the configuration are similar to those of the first embodiment.
[0039] The control device 1 according to this embodiment can detect the adjustable section and dead time in advance by looking ahead at the control programs 200a and 200b. Therefore, it is possible to reduce the dead time from the first machining. If the look-ahead by the analysis unit 100 is insufficient, the machining is carried out as usual, but if the look-ahead is sufficient, it is possible to grasp in advance the usable section within the look-ahead range, and therefore it is possible to adjust at least one of the speed and acceleration within that range. In order to further improve accuracy, the above-mentioned machining time prediction function may be utilized only in the first machining, and in parallel with this, accurate detection of adjustable sections and dead time may be performed in the first machining, and from the second machining, adjustments may be made to at least one of the speed and acceleration based on the adjustable sections and dead time detected in the actual machining.
[0040] Fig. 8 is a schematic block diagram showing functions of the control device 1 according to the third embodiment of the present invention. Each function of the control device 1 according to this embodiment is realized by the CPU 11 of the control device 1 shown in Fig. 1 executing a system program and controlling the operation of each part of the control device 1.
[0041] The control device 1 according to this embodiment includes an analysis unit 100, a control unit 110, an adjustable section detection unit 120, a dead time detection unit 130, and a speed adjustment unit 140, similar to the control device 1 according to the first embodiment, and further includes a simulation unit 150. The RAM 13 to the non-volatile memory 14 of the control device 1 store control programs 200a, 200b for controlling the control targets 3a, 3b, respectively, and also include an adjustable section storage unit 210 which is an area for storing adjustable sections of the control programs 200a, 200b, and a dead time storage unit 220 which is an area for storing command positions where dead time occurs in the control programs 200a, 200b and the time of the dead time.
[0042] The functions of the analysis unit 100, the control unit 110, and the speed adjustment unit 140 according to this embodiment are similar to those of the first embodiment. The simulation unit 150 is realized by the CPU 11 included in the control device 1 shown in Fig. 1 executing a system program read from the ROM 12, and the CPU 11 mainly performing calculation processing using the RAM 13 and the non-volatile memory 14. The simulation unit 150 performs known simulation processing based on the control programs 200a and 200b. For the simulation processing, known methods disclosed in, for example, Japanese Patent Application Laid-Open No. 2003-291033 and Japanese Patent Application Laid-Open No. 09-073309 can be used.
[0043] The adjustable section detection unit 120 according to this embodiment detects, based on the result of the simulation process by the simulation unit 150, a section where a fast-forward section is commanded and an air-cut section where a cutting feed is commanded and where the workpiece and the tool are not in contact, as adjustable sections, and stores them in the adjustable section storage unit 210. Furthermore, the adjustable section detection unit 120 may detect, based on the result of the simulation process by the simulation unit 150, a machining section where no major problems will occur even if the machining conditions are adjusted, as an adjustable section, and store them in the adjustable section storage unit 210. In addition, the dead time detection unit 130 according to this embodiment calculates the dead time (waiting time and delay time) that occurs in the meetings included in the control programs 200a, 200b based on the results of the simulation processing by the simulation unit 150, and stores the calculated dead time in the dead time memory unit 220. The other functions of the configuration are similar to those of the first embodiment.
[0044] The control device 1 according to this embodiment can detect the adjustable section and dead time in advance by simulation processing based on the control programs 200a and 200b. Therefore, the dead time can be reduced from the first machining. In order to further increase the accuracy, the above-mentioned machining time prediction function may be utilized only in the first machining, and in parallel with this, accurate detection of the adjustable section and dead time may be performed in the first machining, and from the second machining, at least one of the speed and acceleration may be adjusted based on the adjustable section and dead time detected in the actual machining.
[0045] Although one embodiment of the present invention has been described above, the present invention is not limited to the above-described embodiment, and can be embodied in various forms by making appropriate modifications. For example, in the above embodiment, the speed adjustment unit 140 automatically determines the adjustable section in which at least one of the speed and acceleration is adjusted. However, the adjustable section in which the speed adjustment is performed may be selected by the operator's judgment. In this case, for example, when the first machining is completed, a graph such as that shown in FIG. 3, FIG. 5, etc. is displayed on the display device 70 of the control device 1. Then, the operator is made to select the adjustable section to be adjusted. In a system that controls multiple control objects in parallel, increasing the feed rate of an axis of a control object may adversely affect the machining surface of other control objects during machining. If such a section is subject to speed adjustment, mechanical interference (such as collision) may occur between the multiple control objects. By having the operator select the adjustable section to be subject to speed adjustment, such a situation can be avoided.
[0046] In addition, in the above embodiment, an example of controlling two control objects is shown, but the technology of the present invention can be suitably applied even when controlling three or more control objects. When controlling three or more control objects, each control program is divided in advance by a command for notifying a wait command and a command for notifying a wait identifier to form a segment. Then, when adjusting at least one of the speed and acceleration to shorten the dead time related to a certain wait command and a command for notifying a wait identifier, at least one of the speed and acceleration may be adjusted for an adjustable section within the range of the segment immediately before the wait command and the command for notifying the wait identifier. In addition, when two or more control objects are waiting for other control objects at the same time, or when two or more control objects are delayed relative to other control objects at the same time, at least one of the speed and acceleration may be adjusted in order from the system with the largest dead time. By performing such adjustments in order, for example, from the front of the control program, it is possible to adjust the dead time even when three or more control objects are controlled. [Explanation of symbols]
[0047] 1 Control device 3a,3b Controlled object 5. Network 6. Fog Computer 7. Cloud Server 11 CPU 12 ROM 13 RAM 14 Non-volatile memory 15,17,18,20 Interface 16 PLC 19 I / O Unit 22 Bus 30a, 30b axis control circuit 40a, 40b Servo amplifier 50a, 50b Servo motor 70 Display device 71 Input Devices 72 External equipment 100 Analysis Department 110 Control section 120 Adjustable section detector 130 Dead time detector 140 Speed adjustment section 150 Simulation Department 200a, 200b Control program 210 Adjustable section memory unit 220 Dead time memory unit
Claims
1. A control device that performs parallel control for controlling a plurality of different control objects based on a control program to machine a workpiece, an analysis unit that analyzes the control program; A control unit that controls the plurality of control targets based on an analysis result by the analysis unit; an adjustable section detection unit that detects an adjustable section in the control program; a dead time detection unit that detects dead time occurring in the execution of an instruction related to waiting among the plurality of control objects in the control program by executing and processing the control program; a speed adjusting unit that adjusts at least one of a speed and an acceleration of a command related to a movement of an axis of the control target in the adjustable section of the control program so as to reduce the dead time; A control device comprising:
2. The dead time is a waiting time of a first control object, which is a time from when a first control object among the plurality of control objects enters a waiting state until when a second control object different from the first control object enters a predetermined state in which the waiting state is released, The speed adjustment unit reduces at least one of a speed and an acceleration of a command related to the movement of the axis of the first control object in an adjustable section executed before entering the waiting state, thereby shortening the waiting time. The control device according to claim 1 .
3. The dead time is a delay time of a first control object among the plurality of control objects, which is a time from when a first control object becomes in a waiting state until when a second control object different from the first control object becomes in a predetermined state in which the waiting state is released, The speed adjustment unit shortens the delay time by increasing at least one of a speed and an acceleration of a command related to the movement of the axis of the second control object in an adjustable section executed before entering the waiting state. The control device according to claim 1 .
4. The adjustment possible section detection unit detects the adjustment possible section based on a control state of the plurality of control objects by the control unit, The dead time detection unit detects the dead time based on a control status of the plurality of control objects by the control unit. The control device according to claim 1 .
5. The analysis unit reads ahead and analyzes a plurality of instructions included in the control program, and predicts execution times of the plurality of instructions; the adjustable section detection unit detects, in at least a first machining of the workpiece, a section in which a load is not detected despite a cutting feed command included in the control program being executed, as an adjustable section; the dead time detection unit detects the dead time based on a prediction result of execution times of the plurality of commands by the analysis unit. The control device according to claim 1 .
6. A simulation unit that executes a simulation process based on the plurality of control programs, The adjustable section detection unit detects an adjustable section based on a result of the simulation process at least in a first machining of the workpiece, the waste time detection unit detects the waste time based on a result of the simulation processing. The control device according to claim 1 .
Citation Information
Patent Citations
Machine tool and method for producing program data for machine tool
JP2007122387A
Numerical control machine and method for working on work with numerical control machine
JP2007234002A
Machining time prediction device of numerical control machine tool
JP2012093975A
Drive control device of machine tool
JP2016062175A
Processing time prediction device of numerical control machine tool
JP2017146859A
