Numerical control device, control method for numerical control device, and machine tool
The numerical control device addresses inefficiencies in machine tool communication by using a dual communication system with synchronized start times, enabling efficient and precise control of devices with varying cycles.
Patent Information
- Application Number
- JP2020113256
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-30
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2040-06-30
AI Technical Summary
Existing machine tools face inefficiencies in communication with multiple devices due to the need for longer communication cycles when devices with large data amounts are connected in series, leading to reduced precision in control.
A numerical control device that employs a dual communication system, where devices with shorter communication cycles are connected in series and devices with longer cycles are connected in parallel, using Ethernet for synchronization and adjusting start times to ensure high-precision communication.
Enables efficient and precise control of multiple devices with different communication cycles by synchronizing start times, allowing for high-speed communication and precise control of machining processes.
Smart Images

Figure 0007559381000001 
Figure 0007559381000002 
Figure 0007559381000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a numerical control device, a control method for a numerical control device, and a machine tool. [Background technology]
[0002] The machine tool described in Patent Document 1 is connected in a daisy chain system that connects a CNC device, multiple servo amplifiers, etc. in series. The CNC device transmits a synchronous signal of a position read command to each of the multiple servo amplifiers to read the position of each servo motor connected to each of the multiple servo amplifiers. When the synchronous signal propagates along the transmission line from the CNC device to each servo amplifier, a propagation delay occurs. The CNC device compensates for the propagation delay. The CNC device detects the position of each servo motor at the same time. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 10-13394 Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned synchronization method for a machine tool, when a device that has a long communication cycle with a CNC device and performs communication with a large amount of data is further connected in series to a servo amplifier, it is necessary to set the communication cycle long in order to secure time for data communication of the serially connected device. In this case, since the machine tool needs to wait for the lapse of the communication cycle set long for the serially connected device, there is a problem that the communication cycle with the servo amplifier cannot be set shorter. Since the machine tool cannot communicate with the device at a shorter communication cycle, there is a problem that it cannot communicate with multiple devices efficiently and control the devices with high precision.
[0005] An object of the present invention is to provide a numerical control device that can communicate efficiently with a plurality of devices and perform control with high precision, a control method for the numerical control device, and a machine tool.
[0006] The numerical control device according to claim 1 is characterized in that the numerical control device includes a control unit that communicates with a plurality of devices that communicate with each other through serial communication and can operate in synchronization with each other, the control unit being connected in parallel to a first system in which a plurality of first devices among the plurality of devices that operate in synchronization with each other in a first communication cycle are connected in series, and a second system in which a plurality of second devices among the plurality of devices that operate in synchronization with each other in a second communication cycle that is longer than the first communication cycle are connected in series, and the control unit controls the first system in the first communication cycle and the second system in the second communication cycle. In the numerical control device, the first system and the second system are connected in parallel to the control unit. The numerical control device is capable of controlling the first system in the first communication cycle and the second system in the second communication cycle. Therefore, the numerical control device can efficiently communicate with a plurality of devices of the first system and the second system that have different communication cycles. Since the numerical control device communicates with a plurality of first devices that have a short communication cycle, the numerical control device can control the plurality of first devices with high accuracy.
[0007] In the numerical control device of claim 2, the serial communication may be communication by EtherCat. In the numerical control device, the first system of devices can communicate serially in synchronization with each other by EtherCat, and the second system of devices can communicate serially in synchronization with each other by EtherCat.
[0008] In the numerical control device of claim 3, the communication control unit may include an adjustment control unit that adjusts a synchronous control start time with the first system and a synchronous control start time with the second system. When it is necessary to synchronize the first system and the second system, the numerical control device can communicate with high accuracy by adjusting the synchronous control start time.
[0009] In the numerical control device of claim 4, the adjustment control unit may include a first acquisition unit that acquires a first signal which is a signal generated by any one of the plurality of first devices and indicates a synchronous control start time between the control unit and the first system, a second acquisition unit that acquires a second signal which is a signal generated by any one of the plurality of second devices and indicates a synchronous control start time between the control unit and the second system, a difference value acquisition unit that acquires a difference value between the synchronous control start times based on the first signal acquired by the first acquisition unit and the second signal acquired by the second acquisition unit, and a timing setting unit that sets the synchronous control start time with the second system based on the difference value acquired by the difference value acquisition unit so that the synchronous control start time with the second system is synchronized with the synchronous control start time with the first system. The numerical control device can synchronize the synchronous control start times between the first system and the second system by setting the synchronous control start time with the second system based on the acquired difference value.
[0010] The numerical control device of claim 5 controls the operation of a machine tool that processes a workpiece by relatively moving a spindle on which a tool is attached and the workpiece, and the multiple first devices may be devices controlled in association with the processing of the workpiece, and the multiple second devices may be devices not involved in the processing of the workpiece. The numerical control device can efficiently communicate with the multiple first devices controlled in association with the processing of the workpiece.
[0011] In the numerical control device of claim 6, the plurality of first devices may include a spindle amplifier that controls a spindle motor that rotates and drives the spindle to which the tool is attached, and a positioning amplifier that controls a positioning motor for relatively positioning the spindle and the workpiece, and the plurality of second devices may include a first board that outputs first information including contact information from a probe that detects contact or non-contact with the workpiece, a second board that outputs second information for monitoring the safety of the machine tool, and a third board that outputs third information showing the result of operation of an operation panel of the machine tool. The numerical control device can efficiently communicate with the spindle amplifier and the positioning amplifier.
[0012] A control method for a numerical control device according to claim 7 includes a control unit that controls communication between a plurality of devices that communicate by serial communication and can operate in synchronization with one another, and the control unit connects in parallel to a first system in which a plurality of first devices that operate in synchronization with one another in a first communication cycle among the plurality of devices are connected in series, and a second system in which a plurality of second devices that operate in synchronization with one another in a second communication cycle longer than the first communication cycle among the plurality of devices are connected in series, and controls the first system in the first communication cycle and controls the second system in the second communication cycle. By executing the above steps, the numerical control device can obtain the same effects as the numerical control device according to claim 1.
[0013] The machine tool of claim 8 is a machine tool that processes a workpiece by relatively moving a spindle, on which a tool is attached, and the workpiece, and is characterized in that it is equipped with the numerical control device of any one of claims 1 to 6. The machine tool can obtain the same effects as the above-mentioned numerical control device. [Brief description of the drawings]
[0014] [Figure 1] FIG. 2 is a block diagram showing the electrical configuration of the machine tool 1. [Diagram 2] 1 is a flowchart of a synchronization control process. [Diagram 3] 7 is a diagram showing the relationship between a first signal SYNC01 and a second signal SYNC02 processed by the FPGA 77. [Figure 4] FIG. 13 is a diagram showing the load on the CPU 31 when the synchronous control start time is reset by the first method. [Diagram 5] FIG. 13 is a diagram showing the load on the CPU 31 when the synchronous control start time is reset by the second method. [Figure 6] FIG. 11 is a block diagram of a machine tool 1A according to a modified example. [Figure 7] FIG. 11 is a block diagram of a machine tool 1B according to a modified example. [Figure 8] FIG. 11 is a block diagram of a machine tool 1C according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] An embodiment of the present invention will be described. The system configuration, processing, etc. described below are merely illustrative examples and are not intended to be limiting unless otherwise specified. The drawings are used to explain technical features that can be adopted by the present invention. The X-axis, Y-axis, and Z-axis directions of the machine tool 1 are mutually orthogonal.
[0016] Machine tool 1 will be described with reference to Figures 1 and 2. Machine tool 1 is a vertical machine tool that performs machining (e.g. drilling, tapping, side machining, etc.) on a workpiece held on, for example, the top surface of a table by moving a tool attached to a spindle extending in the Z-axis direction in the X-axis, Y-axis, and Z-axis directions. Machine tool 1 is equipped with a spindle mechanism, a spindle moving mechanism, etc. (not shown). Machine tool 1 machines the workpiece by relatively moving the spindle, on which the tool is attached, and the workpiece using the spindle moving mechanism.
[0017] The electrical configuration of the machine tool 1 will be described with reference to Fig. 1. As shown in Fig. 1, the machine tool 1 includes a numerical control device 29, a first system SYS1, a second system SYS2, a spindle motor 51, an X-axis motor 52, a Y-axis motor 53, a Z-axis motor 54, etc. The numerical control device 29 includes a controller 21. The controller 21 includes a CPU 31, a ROM 32, a RAM 33, a storage device 39, etc. The CPU 31 executes a synchronous control process, which will be described later. The ROM 32 stores a program for performing the synchronous control process. The RAM 33 temporarily stores various data, etc. The storage device 39 stores a machining program for machining a workpiece, etc.
[0018] The CPU 31 is connected to the FPGA 77. The FPGA 77 is connected to the spindle amplifier 201 via a path L1, and is connected to the IO board 301 via a path L2. The FPGA 77 performs signal processing of a first signal SYNC01 and a second signal SYNC02 (described later) outputted from the spindle amplifier 201 and the IO board 301.
[0019] The CPU 31 is connected to the first system SYS1 via a path L3. The first system SYS1 includes a spindle amplifier 201, an X-axis amplifier 202, a Y-axis amplifier 203, and a Z-axis amplifier 204. In the first system SYS1, the spindle amplifier 201, the X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204 are connected in series.
[0020] The spindle amplifier 201, X-axis amplifier 202, Y-axis amplifier 203, and Z-axis amplifier 204 are devices that are controlled in association with the machining of a workpiece. The spindle amplifier 201, X-axis amplifier 202, Y-axis amplifier 203, and Z-axis amplifier 204 are connected to the spindle motor 51, X-axis motor 52, Y-axis motor 53, and Z-axis motor 54, which are the objects of control, respectively. The spindle amplifier 201 controls the spindle motor 51 that rotates the spindle to which a tool is attached. The X-axis amplifier 202, Y-axis amplifier 203, and Z-axis amplifier 204 control the X-axis motor 52, Y-axis motor 53, and Z-axis motor 54 (hereinafter collectively referred to as "positioning motors") that are used to position the spindle and the workpiece relative to each other.
[0021] The spindle motor 51, the X-axis motor 52, the Y-axis motor 53, and the Z-axis motor 54 are equipped with encoders 51A-54A. The encoders 51A-54A detect the rotational positions of the drive shafts of the spindle motor 51, the X-axis motor 52, the Y-axis motor 53, the Z-axis motor 54, etc., and output the detection results to the amplifiers 201-204, respectively. The CPU 31 can detect the coordinate values of the X-, Y-, and Z-axes of the positioning motor based on the detection results of the rotational positions of the encoders 52A-54A by the amplifiers 202-204. The coordinate values of the X-, Y-, and Z-axes are, for example, position information of the spindle. The CPU 31 can detect the rotational position of the spindle motor 51 based on the detection results of the rotational position of the encoder 51A by the spindle amplifier 201 through serial communication. The CPU 31 controls the amplifiers 201-204 based on the position information, etc., to process the workpiece.
[0022] The CPU31 is connected to the second system SYS2 via a path L4. In the second system SYS2, an IO board 301, an IL board 302, a KEY board 303, etc. are connected in series. The first system SYS1 and the second system SYS2 are connected to the CPU31 in parallel.
[0023] The second system SYS2 is composed of devices that are not involved in machining of the workpiece. The IO board 301 receives first information including contact information from a probe (not shown) that detects contact or non-contact with the workpiece, for example, when measuring the shape of the workpiece. The IO board 301 outputs the first information including the contact information from the probe to the CPU 31 in response to a communication command. The IL board 302 receives second information for monitoring the safety of the machine tool 1, and outputs it to the CPU 31 in response to a communication command. The second information is, for example, opening / closing information output by a sensor (not shown) that detects opening / closing of a door. The second information also includes, for example, information on the locked or unlocked state of an interlock mechanism. The KEY board 303 receives third information indicating the result of operation of an operation panel (not shown) of the machine tool 1, and outputs the third information to the CPU 31 in response to a communication command.
[0024] The CPU 31 communicates with the first system SYS1 and the second system SYS2 via serial communication using EtherCAT (Ether for Control Automation Technology) (registered trademark). The CPU 31 functions as a host and controls communication between the devices of the first system SYS1 and the second system SYS2 as slave groups.
[0025] The synchronous control process will be described with reference to Fig. 2. When the machine tool 1 is powered on, the CPU 31 reads out a program stored in the ROM 32 and executes the synchronous control process. When the synchronous control process is executed, the CPU 31 initializes the time of the slave group of the first system SYS1 (S1). The CPU 31 initializes the time of the slave group of the second system SYS2 (S3).
[0026] The CPU 31 uses the DC function of EtherCat to synchronize the time of the slaves of the first system SYS1 (S5). The DC function refers to a process in which the master transmits a dedicated command to each slave, obtains communication delay information between the devices from the response results of each slave to the transmitted command, and corrects the clock of each slave based on the obtained communication delay information, thereby synchronizing the clocks of each slave. The devices of the first system SYS1 can operate in a first communication cycle and in synchronization with each other by the DC function. For example, the first communication cycle is every 1 msec. The CPU 31 synchronizes the spindle amplifier 201, the X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204, so that the first system SYS1 can communicate in synchronization with the machining of the workpiece.
[0027] CPU31 uses the DC function of EtherCat to perform time synchronization of the slave group of the second system SYS2 (S7). The DC function allows the devices of the second system SYS2 to operate in a second communication cycle that is longer than the first communication cycle and in synchronization with each other. For example, the second communication cycle is every 4 msec, and the amount of communication data is greater than that of the first system SYS1. CPU31 synchronizes the IO board 301, IL board 302, and KEY board 303, so that the second system SYS2 that is not involved in machining the workpiece can communicate in synchronization.
[0028] The CPU 31 starts synchronous control of the slave group of the first system SYS1 (S9). The CPU 31 starts synchronous control of the slave group of the second system SYS2 (S11). In the processes of S9 and S11, the CPU 31 outputs a synchronous control start command to the first system SYS1 and the second system SYS2.
[0029] The CPU 31 acquires a first signal SYNC01 (see FIG. 3) indicating the start time of synchronous control with the first system SYS1 (S13). The first signal SYNC01 is a signal generated by the spindle amplifier 201, which is the first slave of the first system SYS1, when the CPU 31 outputs a synchronous control start command to the first system SYS1. Edge time t1 is the time when the first signal SYNC01 rises, and indicates the start time of synchronous control with the first system SYS1. At this time, the spindle amplifier 201 outputs the first signal SYNC01 to the FPGA 77.
[0030] The CPU 31 acquires a second signal SYNC02 (see FIG. 3) indicating the start time of synchronous control with the second system SYS2 (S15). The second signal SYNC02 is a signal generated by the IO board 301, which is the first slave of the second system SYS2, when the CPU 31 outputs a synchronous control start command to the second system SYS2. Edge time t2 is the time when the second signal SYNC02 rises, and indicates the start time of synchronous control with the second system SYS2. The IO board 301 also outputs the second signal SYNC02 to the FPGA 77.
[0031] Based on the acquired first signal SYNC01 and second signal SYNC02, the CPU 31 acquires a difference value SB1 (see FIG. 3) between the start times of synchronization control of the first signal SYNC01 and the second signal SYNC02 (S17). The difference value SB1 is a value calculated by the FPGA 77, and is the difference between the edge time t1 of the first signal SYNC01 and the edge time t2 of the second signal SYNC02. The CPU 31 acquires the difference value SB1 output by the FPGA 77.
[0032] Since the synchronization control is out of sync by the difference value SB1, the CPU 31 stops the synchronization control of the slave group of the second system SYS2 (S19). The CPU 31 resets the generation time of the second signal SYNC02 of the slave group of the second system SYS2 to synchronize the first system SYS1 and the second system SYS2 (S21).
[0033] A method for resetting the synchronous control start time will be described. In this embodiment, two methods will be described. The first method is a method for matching the synchronous control start times. CPU31 resets the rising time of the second signal SYNC02 for each of the synchronous control start times of the first system SYS1 and the second system SYS2 so that the difference value SB1 becomes 0. CPU31 resets the time obtained by subtracting the difference value SB1 from the rising time of the second signal SYNC02. CPU31 starts synchronous control of the slave group of the second system SYS2 based on the reset synchronous control start time (S23). CPU31 ends the processing.
[0034] As shown in Fig. 4, the CPU 31 executes serial communication at a cycle of 1 msec, that is, at times t1, t2, t3, t4, and t5, to control the first system SYS1. The CPU 31 controls the second system SYS2 at times t1 and t5. The CPU 31 simultaneously generates data for the first system SYS1 and the second system SYS2 at every 4 msec, at times t1 and t5. At that time, the second signal SYNC02 is set so that the difference value SB1 becomes 0, so that the data can be generated easily without the need to correct the time difference between the systems.
[0035] The second method will be described. The second method is a method of adjusting the difference value SB1 to a specified value. The CPU 31 resets the start time of the synchronous control with the second system SYS2 so that the rising time of the second signal SYNC02 is shifted by a predetermined specified value. The specified value is, for example, 500 μsec. The CPU 31 starts the synchronous control of the slave group of the second system SYS2 based on the reset synchronous control start time (S23).
[0036] 5, the CPU 31 sets the difference value SB1 to a specified value of 500 μsec. That is, the start time of the synchronous control of the second system SYS2 is delayed by 500 μsec from the start time of the synchronous control of the first system SYS1.
[0037] The CPU 31 executes serial communication at a cycle of, for example, 1 msec, i.e., at times t1, t2, t3, t4, and t5, to control the first system SYS1. The CPU 31 executes serial communication at a cycle of 4 msec, i.e., at times t1' and t4', to control the second system SYS2. Therefore, in the second method, data for the first system SYS1 and the second system SYS2 are not generated at the same time, and the load on the CPU 31 can be reduced.
[0038] The CPU 31 can control the first system SYS1 and the second system SYS2 in a synchronous manner. For example, the CPU 31 can perform highly accurate synchronous control of the first system SYS1 and the second system SYS2 even when performing shape measurement of a workpiece using a probe. In this case, the CPU 31 can synchronously acquire position information from each of the amplifiers 201 to 204 and first information, which is contact information from the probe, so that the shape measurement of the workpiece can be performed with high accuracy.
[0039] As described above, the first system SYS1 connects in series the spindle amplifier 201, the X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204, which operate in a first communication cycle and in synchronization with one another. The second system SYS2 connects in series devices such as the IO board 301, the IL board 302, and the KEY board 303, which operate in a second communication cycle longer than the first communication cycle and in synchronization with one another. The CPU 31 connects in parallel to the first system SYS1 and the second system SYS2, respectively. The CPU 31 controls the first system SYS1 in the first communication cycle and controls the second system SYS2 in the second communication cycle. Therefore, the CPU 31 can efficiently communicate with the devices of the first system SYS1 and the second system SYS2, which have different communication cycles, and can control them with high accuracy. The CPU 31 can communicate with the first system SYS1 separately from the second system SYS2, which has a slow communication cycle, and can control the first system SYS1 with high accuracy. The CPU 31 can set a shorter communication cycle with the first system SYS1 compared to a case where a device with a slow communication cycle, such as a device of the second system SYS2, is connected in series to the first system SYS1. Therefore, the CPU 31 can communicate with the first system SYS1 at high speed, and can control the first system SYS1 with high accuracy.
[0040] The serial communication is performed by EtherCAT. The CPU 31 allows the devices of the first system SYS1 to communicate with each other in synchronization with each other via EtherCAT, and allows the devices of the second system SYS2 to communicate with each other in synchronization with each other via EtherCAT.
[0041] The CPU 31 adjusts the timing of starting synchronous control with the first system SYS1 and the timing of starting synchronous control with the second system SYS2. The CPU 31 can communicate with high accuracy when it is necessary to synchronize the first system SYS1 and the second system SYS2.
[0042] The CPU 31 acquires a first signal SYNC01 indicating the start time of synchronous control with the first system SYS1. The first signal SYNC01 is a signal generated by the spindle amplifier 201 of the first system SYS1. The CPU 31 acquires a first signal SYNC01 indicating the start time of synchronous control with the second system SYS2. The CPU 31 acquires a signal generated by the IO board 301 of the second system SYS2. The CPU 31 acquires a difference value SB1 between the start times of synchronous control of each of the first and second signals SYNC01 and SYNC02 based on the acquired first signal SYNC01 and the acquired second signal SYNC02. The CPU 31 sets the start time of synchronous control with the second system SYS2 based on the acquired difference value SB1 so that the start time of synchronous control with the second system SYS2 is synchronized with the start time of synchronous control with the first system SYS1. The CPU 31 can synchronize the start times of synchronous control between the first system SYS1 and the second system SYS2 by setting the start time of synchronous control with the second system SYS2 based on the acquired difference value SB1.
[0043] The CPU 31 controls the operation of the machine that processes the workpiece by relatively moving the workpiece and the spindle on which the tool is attached. The equipment of the first system SYS1 is equipment that is controlled in association with the machining of the workpiece. The equipment of the second system SYS2 is equipment that is not involved in the machining of the workpiece. The CPU 31 can efficiently execute communication with the first system SYS1 that is controlled in association with the machining of the workpiece.
[0044] The spindle amplifier 201 of the first system SYS1 controls the spindle motor 51 that rotates and drives the spindle to which a tool is attached. The X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204 of the first system SYS1 control the positioning motor for positioning the spindle and the workpiece relative to each other. The IO board 301 of the second system SYS2 outputs first information including contact information from a probe that detects contact or non-contact with the workpiece. The IL board 302 outputs second information for monitoring the safety of the machine tool 1. The KEY board 303 outputs third information indicating the operation result of the operation panel of the machine tool 1. Therefore, the CPU 31 can efficiently execute communication between the spindle amplifier 201 and the X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204, and can control each amplifier with high accuracy.
[0045] The present invention is not limited to the above embodiment, and various modifications are possible. The machine tool 1 in the above embodiment is a vertical machine tool with a spindle extending in the Z-axis direction, but the present invention can also be applied to a horizontal machine tool with a spindle extending horizontally. In the machine tool 1 in the above embodiment, the spindle moves relative to the workpiece, but this is not limited to this. The machine tool 1 may be one in which, for example, a table to which the workpiece is fixed moves.
[0046] As shown in Fig. 6, a machine tool 1A of a modified example may be equipped with an ASIC 78 instead of the FPGA 77. The ASIC 78 executes the processing executed by the FPGA 77 and calculates the difference value SB1 in the same manner as the FPGA 77. A machine tool 1B of a modified example shown in Fig. 7 may be equipped with a CPU 31A inside the FPGA 77. The CPU 31A executes the processing executed by the CPU 31. In this case, a calculation unit 77A inside the FPGA 77 calculates the difference value SB1.
[0047] As shown in FIG. 8, the machine tool 1C of the modified example may have virtual slaves SL1 and SL2 implemented inside the FPGA 77. The virtual slave SL1 is connected to the CPU 31 and the spindle amplifier 201, and functions as the first slave of the first system SYS1. When the virtual slave SL1 receives a synchronous control start command from the CPU 31, it generates a first signal SYNC01. The virtual slave SL2 is connected to the CPU 31 and the IO board 301, and functions as the first slave of the second system SYS2. When the virtual slave SL2 receives a synchronous control start command from the CPU 31, it generates a second signal SYNC02. The calculation unit 77A of the FPGA 77 calculates a difference value SB1 based on the generated first signal SYNC01 and second signal SYNC02. The numerical control device 29 can set a communication path shorter than that of the above embodiment by providing the virtual slaves SL1 and SL2 inside the FPGA 77. Therefore, the numerical control device 29 reduces signal propagation errors and the like caused by the communication path length. Therefore, the numerical control device 29 can calculate the difference value SB1 calculated by the calculation unit 77A with high accuracy.
[0048] Although the CPU 31 executes the synchronous control with the first system SYS1 and the second system SYS2, the synchronous control may be executed with three or more systems. The configuration of the first system SYS1 is not limited to the above embodiment, and may further include a device associated with machining the workpiece. The configuration of the second system SYS2 is not limited to the above embodiment, and may further include a device not associated with machining the workpiece.
[0049] In the above explanation, the numerical control device 29 is an example of a control unit of the present invention. The spindle amplifier 201, the X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204 are an example of a plurality of first devices. The IO board 301, the IL board 302, and the KEY board 303 are an example of a plurality of second devices. The X-axis amplifier 202, the Y-axis amplifier 203, and the Z-axis amplifier 204 are an example of a positioning amplifier. The IO board 301 is an example of a first board. The IL board 302 is an example of a second board. The KEY board 303 is an example of a third board.
[0050] The CPU 31 which executes the processes of S9, S11, and S23 is an example of a communication control unit of the present invention. The CPU 31 which executes the process of S13 is an example of a first acquisition unit of the present invention. The CPU 31 which executes the process of S15 is an example of a second acquisition unit of the present invention. The CPU 31 which executes the process of S21 is an example of an adjustment control unit of the present invention. The CPU 31 which executes the process of S17 is an example of a difference value acquisition unit of the present invention. The CPU 31 which executes the process of S21 is an example of a timing setting unit of the present invention. [Explanation of symbols]
[0051] 1, 1A, 1B, 1C machine tools 29 Numerical Control Device 31, 31A CPU 32 ROM 33 RAM 77 FPGA 78 ASIC 201 Spindle amplifier 202 X-axis amplifier 203 Y-axis amplifier 204 Z-axis amplifier 301 IO board 302 IL board 303 KEY board
Claims
1. A numerical control device having a control unit that controls communication between a plurality of devices that communicate with each other through serial communication and can operate in synchronization with each other, The control unit is a first system in which a plurality of first devices among the plurality of devices are connected in series, the first devices operating in a first communication cycle and in synchronization with one another; a second system in which a plurality of second devices among the plurality of devices are connected in series and operate in a second communication cycle that is longer than the first communication cycle and in synchronization with one another; are connected in parallel to a communication control unit that controls the first system in the first communication cycle and controls the second system in the second communication cycle; Equipped with the serial communication is EtherCat communication, The communication control unit executes an adjustment control process to adjust a synchronous control start time with the first system and a synchronous control start time with the second system, The communication control unit, in the adjustment control process, A first acquisition process for acquiring a first signal which is a signal generated by any one of the plurality of first devices and indicates a timing for starting synchronous control between the control unit and the first system; A second acquisition process for acquiring a second signal which is a signal generated by any one of the plurality of second devices and indicates a timing for starting synchronous control between the control unit and the second system; a difference value acquisition process for acquiring a difference value between the respective synchronous control start times based on the first signal acquired in the first acquisition process and the second signal acquired in the second acquisition process; and executing a timing setting process to set the start time of synchronous control with the second system so that the start time of synchronous control with the second system is synchronized with the start time of synchronous control with the first system, based on the difference value acquired in the difference value acquisition process.
2. The numerical control device controls the operation of a machine tool that processes a workpiece by relatively moving a spindle on which a tool is attached and the workpiece, The plurality of first devices are devices that are controlled in association with the machining of the workpiece, The plurality of second devices are devices that are not involved in the processing of the workpiece.
2. The numerical control device according to claim 1,
3. The plurality of first devices include a spindle amplifier that controls a spindle motor that rotates the spindle to which the tool is attached, and a positioning amplifier that controls a positioning motor for positioning the spindle and the workpiece relative to each other, The plurality of second devices include a first board that outputs first information including contact information from a probe that detects contact or non-contact with the workpiece, a second board that outputs second information for monitoring the safety of the machine tool, and a third board that outputs third information that indicates the operation result of an operation panel of the machine tool.
3. The numerical control device according to claim 2, wherein
4. A method for controlling a numerical control device having a control unit that controls communication between a plurality of devices that communicate with each other via serial communication and are operable in synchronization with each other, comprising the steps of: The control unit: a first system in which a plurality of first devices among the plurality of devices are connected in series, the first devices operating in a first communication cycle and in synchronization with one another; a second system in which a plurality of second devices among the plurality of devices are connected in series and operate in a second communication cycle that is longer than the first communication cycle and in synchronization with one another; are connected in parallel to a communication control step of controlling the first system in the first communication cycle and controlling the second system in the second communication cycle; the serial communication is EtherCat communication, The communication control step further includes an adjustment control step of adjusting a synchronous control start time with the first system and a synchronous control start time with the second system, The adjustment control step includes: A first acquisition step of acquiring a first signal which is a signal generated by any one of the plurality of first devices and indicates a timing for starting synchronous control between the control unit and the first system; A second acquisition step of acquiring a second signal which is a signal generated by any one of the plurality of second devices and indicates a timing for starting synchronous control between the control unit and the second system; a difference value acquisition step of acquiring a difference value between the respective synchronous control start times based on the first signal acquired in the first acquisition step and the second signal acquired in the second acquisition step; and a timing setting step of setting a start time of synchronous control with the second system based on the difference value acquired in the difference value acquisition step so that the start time of synchronous control with the second system is synchronized with the start time of synchronous control with the first system.
5. A machine tool that processes a workpiece by moving a spindle on which a tool is attached and the workpiece relatively, A machine tool comprising the numerical control device according to any one of claims 1 to 3.
Citation Information
Patent Citations
Synchronization method in communication
JP1998013394A
Control / Monitor signal transmission system
JP2003152748A
Numerical control system
JP2004227261A
