CONTROL SYSTEM, COMMUNICATION DEVICE, AND CONTROL METHOD
The control system addresses synchronization challenges by adjusting clock signal cycles based on synchronization signal deviations, enhancing control accuracy and precision in systems with diverse transmission methods.
Patent Information
- Application Number
- JP2021015784
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-03
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-02-03
AI Technical Summary
Existing control systems face challenges in synchronizing the control of multiple mechanisms due to fluctuations and differences in transmission methods, leading to inaccuracies in control signals.
A control system with an arithmetic unit, signal output units, and a communication unit that adjusts clock signal cycles based on synchronization signal deviations, using measurement and adjustment mechanisms to ensure synchronization between different control signals.
Improves control accuracy by maintaining synchronization between control signals using different transmission methods, correcting fluctuations in synchronization signals, and ensuring precise operation of multiple control devices.
Smart Images

Figure 0007552397000008 
Figure 0007552397000007 
Figure 0007552397000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a control system, a communication device, and a control method. [Background technology]
[0002] When controlling various devices, various fluctuations (jitters) can become error factors. For example, Japanese Patent Laid-Open Publication No. 2000-078875 (Patent Document 1) discloses a technique for reducing jitter caused by accuracy errors of a phase detector in servo control using a phase-locked loop.
[0003] Jitter can occur not only in detection devices such as phase detectors, but also in communication between devices. For example, Japanese Patent Application Laid-Open No. 2006-127514 (Patent Document 2) discloses a modular numerical control device capable of transmitting synchronization information with low jitter. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2000-078875 A [Patent Document 2] JP 2006-127514 A Summary of the Invention [Problem to be solved by the invention]
[0005] In a system in which a plurality of mechanisms are controlled by a common control device, it is necessary to synchronize the controls for the respective mechanisms. The above-mentioned prior art documents do not take such a problem into consideration at all.
[0006] An object of the present invention is to provide a technique for improving control accuracy in a system that outputs a plurality of control signals using different transmission methods. [Means for solving the problem]
[0007] A control system according to one example of the present invention includes a calculation unit that executes an application program, a signal output unit that outputs a first control signal in accordance with a result of execution of the application program, a communication unit that communicates a second control signal using any communication method that directly or indirectly uses a clock signal based on a synchronization signal that is a reference for outputting the first control signal in accordance with the result of execution of the application program, a measurement unit that measures a deviation in the length of the period of the synchronization signal, and an adjustment unit that adjusts the length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included within one period of the synchronization signal.
[0008] With this configuration, it is possible to more accurately synchronize the operation of a device to which the first control signal is output and a device to which the second control signal is output using any communication method that directly or indirectly uses a clock signal.
[0009] The measurement section may include a detection section that detects a pulse edge included in the synchronization signal, and a counter that is reset upon detection of a pulse edge of the synchronization signal. With this configuration, it is possible to detect the start or end timing of the cycle of the synchronization signal.
[0010] When a new cycle of the synchronization signal starts, the adjustment unit may determine the length of the cycle of the clock signal in the new cycle based on the deviation in the length of the cycle immediately before the new cycle. With this configuration, the fluctuation in the cycle length of the synchronization signal can be corrected in the next cycle.
[0011] The measurement section may measure the deviation in the length of the period based on a previously measured length of one period of the synchronization signal. With this configuration, it is possible to relatively calculate the fluctuation in the length of the period of the synchronization signal.
[0012] The measurement section may measure the deviation in the length of the period by comparing it with a reference value corresponding to the frequency of the synchronization signal. With this configuration, it is possible to absolutely calculate the fluctuation in the length of the period of the synchronization signal.
[0013] The communication unit may transmit the second control signal using a frame corresponding to a predetermined number of cycles of the clock signal. With this configuration, it is possible to maintain synchronization with the first control signal on a frame-by-frame basis of the second control signal.
[0014] The length of the cycle of the synchronization signal may be set to be an integer multiple of the length of the cycle of the clock signal. With this configuration, it is possible to more easily maintain synchronization between the first control signal and the second control signal.
[0015] The signal output unit may generate the first control signal by modulating the information to be transmitted by PWM (Pulse Width Modulation). With this configuration, it is possible to more easily maintain synchronization with the second control signal based on the carrier frequency of the first control signal.
[0016] According to another example of the present invention, there is provided a communication device connected to a calculation unit that executes an application program and a signal output unit that outputs a first control signal according to an execution result of the application program. The communication device includes a communication unit that communicates a second control signal by any communication method that directly or indirectly uses a clock signal based on a synchronization signal that is a reference for outputting the first control signal according to the execution result of the application program, a measurement unit that measures a deviation in the length of the period of the synchronization signal, and an adjustment unit that adjusts the length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included in one period of the synchronization signal.
[0017] A control method according to yet another example of the present invention includes the steps of executing an application program, outputting a first control signal in accordance with a result of the execution of the application program, communicating a second control signal using any communication method that directly or indirectly uses a clock signal based on a synchronization signal that is a reference for outputting the first control signal in accordance with the result of the execution of the application program, measuring a deviation in the length of the period of the synchronization signal, and adjusting the length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included within one period of the synchronization signal. Effect of the Invention
[0018] According to an aspect of the present invention, it is possible to improve control accuracy in a system that outputs a plurality of control signals using different transmission methods. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 is a schematic diagram showing a configuration example of a control system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a schematic diagram illustrating an example of a main hardware configuration of a control system according to the present embodiment. [Diagram 3] 2 is a schematic diagram showing an example of a hardware configuration related to transmission of a mirror control signal in the control system according to the present embodiment; FIG. [Figure 4] 5 is a time chart showing a specific example of a mirror control signal of the control system according to the present embodiment. [Diagram 5] FIG. 11 is a schematic diagram for explaining a problem that may arise in a technique related to the control system according to the present embodiment. [Figure 6] 2 is a schematic diagram showing a functional configuration of a laser control unit of the control system according to the present embodiment. FIG. [Figure 7] FIG. 2 is a diagram for explaining a method for maintaining synchronization of the control system according to the present embodiment. [Figure 8]This is a diagram for explaining a method for maintaining synchronization of a control system according to the present embodiment. [Figure 9] This is a flowchart showing a processing procedure for maintaining synchronization of a control system according to the present embodiment. [Figure 10] This is a schematic diagram showing an example of a hardware configuration related to another transmission of a mirror control signal of a control system according to the present embodiment. [Figure 11] This is a diagram for explaining a method for generating a mirror control signal shown in FIG. 10.
Embodiments for Carrying Out the Invention
[0020] Embodiments of the present invention will be described in detail with reference to the drawings. Note that the same or corresponding parts in the drawings are denoted by the same reference numerals and their descriptions will not be repeated.
[0021] <A. Application Example> First, an example of a scenario to which the present invention is applied will be described.
[0022] FIG. 1 is a schematic diagram showing a configuration example of a control system 1 according to the present embodiment. In FIG. 1, as a typical example, an example of a laser processing system is shown, but the applications to which the present invention is applied are not limited in any way.
[0023] The control system 1 performs laser processing such as drilling, cutting, and marking on a workpiece 4 disposed on an XY stage 20. More specifically, the control system 1 includes a control device 10, an XY stage 20, a laser 30, and a galvanometer mirror 40.
[0024] The laser processing on the workpiece 4 combines the adjustment of the workpiece position by the XY stage 20 and the adjustment of the irradiation position of the laser beam generated by the laser 30 by the galvanometer mirror 40. The adjustment of the position of the workpiece 4 by the XY stage 20 has a relatively large displacement amount and a relatively long response time. In contrast, the adjustment of the irradiation position by the galvanometer mirror 40 has a relatively small displacement amount and a relatively short response time.
[0025] The control system 10 includes a main control unit 100 , an axis interface unit 200 , and a laser control unit 300 .
[0026] The main control unit 100 corresponds to a calculation unit that executes an application program 110 (see FIG. 2). The application program 110 is created arbitrarily according to the mechanism to be controlled and the workpiece 4. The execution result obtained by the main control unit 100 executing the application program 110 is used to generate control signals in the axis interface unit 200 and the laser control unit 300.
[0027] The axis interface unit 200 is connected to the XY stage 20 via a control line 52, and outputs a stage control signal 520 for driving the XY stage 20. The XY stage 20 includes a plate 22 on which a workpiece 4 is placed, and a servo motor 24 and a servo motor 26 for driving the plate 22. In the example shown in FIG. 1, the servo motor 24 displaces the plate 22 in the X-axis direction, and the servo motor 26 displaces the plate 22 in the Y-axis direction. The stage control signal 520 from the axis interface unit 200 is provided to a servo driver 23 and a servo driver 25 (see FIG. 2) for driving the servo motor 24 and the servo motor 26.
[0028] The laser control unit 300 is a type of communication device, and is connected to the laser 30 via a control line 53, and outputs a laser control signal 530 that instructs the laser 30 to turn on / off. The laser control unit 300 is also connected to the galvanometer mirror 40 via a communication line 54, and outputs a mirror control signal 540 that instructs the galvanometer mirror 40 to select an optical path. The galvanometer mirror 40 includes an X-axis scanning mirror 43, a Y-axis scanning mirror 45, and a lens 47. The light emitted from the laser 30 propagates through the lens 47, the Y-axis scanning mirror 45, and the X-axis scanning mirror 43 in this order, and is projected onto the XY stage 20.
[0029] The X-axis scanning mirror 43 has its reflecting surface angle adjusted by the X-axis scanning motor 42, and the Y-axis scanning mirror 45 has its reflecting surface angle adjusted by the Y-axis scanning motor 44. The lens 47 has its relative distance from the laser 30 adjusted by the Z-axis scanning motor 46.
[0030] Here, the entities of the stage control signal 520 and the laser control signal 530 are electrical signals such as pulse signals, and the XY stage 20 and the laser 30 that receive the signals operate according to the level (potential or voltage) of the pulse signal or the level change. In contrast, the mirror control signal 540 is a communication signal, and the entity of the mirror control signal 540 is a signal modulated with arbitrary data.
[0031] In the control system 1 according to the present embodiment, it is necessary to synchronize the adjustment of the work position by the XY stage 20 and the adjustment of the irradiation position by the galvanometer mirror 40. On the other hand, between the stage control signal 520 and the laser control signal 530, and the mirror control signal 540, the control signal transmission methods are different.
[0032] The present embodiment provides a solution for achieving more accurate synchronization even with such differences in the control signal transmission methods.
[0033] <B. Hardware Configuration Example of Control System 1> Next, a hardware configuration example of the control system 1 according to the present embodiment will be described.
[0034] FIG. 2 is a schematic diagram showing a main hardware configuration example of the control system 1 according to the present embodiment. As described above, the control device 10 includes a main control unit 100, an axis interface unit 200, and a laser control unit 300.
[0035] The main control unit 100 mainly includes a processor 102, a main memory 104, a storage 106, and a bus controller 112.
[0036] The storage 106 is composed of an SSD (Solid State Disk) or flash memory, and stores, for example, a system program 108 for providing a basic program execution environment, and an application program 110 that is arbitrarily created according to the work 4.
[0037] The processor 102 is typically composed of a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), and realizes overall control of the control system 1 by reading out a system program 108 and an application program 110 stored in the storage 106, expanding them into the main memory 104, and executing them.
[0038] The main control unit 100 is electrically connected to the axis interface unit 200 and the laser control unit 300 via an internal bus 114. The bus controller 112 mediates data communication via the internal bus 114.
[0039] Although a configuration example has been shown in which the necessary processing is provided by the processor 102 executing a program, some or all of the provided processing may be implemented using a dedicated hardware circuit (e.g., an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array)).
[0040] The axis interface unit 200 generates and outputs a stage control signal 520 that is provided to the servo driver 23 and the servo driver 25. More specifically, the axis interface unit 200 includes an axis control calculation section 210 and an output interface circuit 220.
[0041] The axis control calculation unit 210 generates commands to be given to the servo drivers 23 and 25 according to calculation values (command values) calculated by the main control unit 100 executing the application program 110. The axis control calculation unit 210 is realized by a calculation circuit configured using, for example, a processor, an ASIC, an FPGA, etc.
[0042] The axis control calculation unit 210 has a clock generator 212. The clock generator 212 generates a clock signal that serves as a system synchronization reference in the axis interface unit 200. The clock signal generated by the clock generator 212 is also supplied to the output interface circuit 220.
[0043] The output interface circuit 220 corresponds to a signal output unit that outputs a stage control signal 520 (first control signal) according to the execution result of the application program 110. More specifically, the output interface circuit 220 generates the stage control signal 520 to be given to the servo driver 23 and the servo driver 25 according to the command generated by the axis control calculation unit 210. As the stage control signal 520, a signal obtained by modulating information such as a displacement amount, a speed, and an angular velocity in each control period by PWM (Pulse Width Modulation) may be used. That is, the output interface circuit 220 may generate the stage control signal 520 by modulating information to be transmitted by PWM. Alternatively, a signal obtained by modulating information such as a displacement amount, a speed, and an angular velocity as a pulse number may be used.
[0044] The output interface circuit 220 generates a stage control signal 520 in synchronization with the clock signal from the clock generator 212, and also generates a servo control synchronization signal 510 and outputs it to the laser control unit 300. The servo control synchronization signal 510 is a synchronization signal that serves as a reference for the output of the stage control signal 520, and is a signal for synchronizing the control timing of the laser control unit 300 with the stage control signal 520. Typically, the servo control synchronization signal 510 may include a pulse edge (rising edge or falling edge) as a synchronization reference for the generation or output timing of the control signal.
[0045] The axis control calculation unit 210 and the output interface circuit 220 may be realized by a single ASIC or FPGA.
[0046] The laser control unit 300 generates and outputs a laser control signal 530 to be provided to the laser 30 and a laser control signal 530 to be provided to the galvanometer mirror 40. More specifically, the laser control unit 300 includes a laser control calculation section 310, an output interface circuit 314, and a communication interface circuit 316.
[0047] The laser control calculation unit 310 generates commands to be given to the laser 30 and the galvano mirror 40 according to calculation values (command values) calculated by the main control unit 100 executing the application program 110. The laser control calculation unit 310 is realized by a calculation circuit configured using, for example, a processor, an ASIC, an FPGA, etc. The laser control calculation unit 310 has a clock generator 312 that generates a clock signal 541 (see FIG. 3) used for communication with the galvano mirror 40.
[0048] The laser control arithmetic unit 310 generates a laser control signal 530 and a mirror control signal 540 in synchronization with the servo control synchronization signal 510 from the axis interface unit 200. As will be described later, the laser control arithmetic unit 310 has a function of monitoring the servo control synchronization signal 510 output by the axis interface unit 200.
[0049] The output interface circuit 314 generates a laser control signal 530 to be applied to the laser 30 according to a command generated by the laser control arithmetic unit 310. As the laser control signal 530, a signal having two levels of on / off may be used.
[0050] The communication interface circuit 316 corresponds to a communication unit that communicates the laser control signal 530 (second control signal) by any communication method that directly or indirectly uses a clock signal according to the execution result of the application program 110. Specifically, the communication interface circuit 316 communicates with the galvanometer mirror 40 and transmits a command generated by the laser control arithmetic unit 310 to the galvanometer mirror 40. For the communication between the communication interface circuit 316 and the galvanometer mirror 40, for example, the XY2-100 protocol (a method of specifying the scanning angle range with 16-bit accuracy) or the SL2-100 protocol (a method of specifying the scanning angle range with 20-bit accuracy) can be used. Note that the present invention is applicable not only to such communication protocols peculiar to galvanometer mirrors or galvanometer scanners but also to any communication method that directly or indirectly uses a clock signal.
[0051] Note that the laser control arithmetic unit 310, the output interface circuit 314, and the communication interface circuit 316 may be realized by a single ASIC or FPGA.
[0052] <C. Mirror control signal 540> Next, a configuration related to the transmission of the mirror control signal 540 via the communication line 54 will be described.
[0053] Fig. 3 is a schematic diagram showing an example of a hardware configuration related to the transmission of the mirror control signal 540 of the control system 1 according to the present embodiment. Fig. 3 shows an example in which the XY2-100 protocol is adopted as the protocol for transmitting the mirror control signal 540. The XY2-100 protocol is classified as clock synchronous serial communication that directly uses a clock signal.
[0054] 3, when the XY2-100 protocol is adopted, the mirror control signal 540 includes an X-axis scanning command angle 543 (X DATA), a Y-axis scanning command angle 544 (Y DATA), and a Z-axis scanning command angle 545 (Z DATA) as information transmitted from the laser control unit 300 to the galvanometer mirror 40. The mirror control signal 540 also includes an XY-axis current value 546 (XY STATUS) and a Z-axis current value 547 (Z STATUS) as information transmitted from the galvanometer mirror 40 to the laser control unit 300.
[0055] Additionally, the mirror control signal 540 includes a clock signal 541 (CLOCK) and a synchronous reference signal 542 (SYNC).
[0056] The communication interface circuit 316 includes driver circuits for transmitting and receiving each signal.
[0057] Fig. 4 is a time chart showing a specific example of mirror control signal 540 of control system 1 according to this embodiment. Referring to Fig. 4, as each of the scanning command angles (X-axis scanning command angle 543, Y-axis scanning command angle 544, and Z-axis scanning command angle 545), each bit constituting frame 548 synchronized with clock signal 541 is sequentially sent out. Similarly, as each of the current values (XY-axis current value 546 and Z-axis current value 547), each bit constituting frame 549 synchronized with clock signal 541 is sequentially sent out.
[0058] The synchronous reference signal 542 indicates the timing for sending the scanning command angle and the current value. In the example shown in FIG. 4, each of the scanning command angle and the current value constitutes one frame with 20 bits. That is, one piece of information is transmitted in 20 cycles of the clock signal 541. Since the clock signal 541 is, for example, a pulse signal of 2 MHz (one cycle is 500 ns), a frame is transmitted every 10 μs.
[0059] Thus, the communication interface circuit 316 of the laser control unit 300 transmits the mirror control signal 540 using a frame corresponding to a predetermined number of cycles of the clock signal 541.
[0060] <D. Problems related to synchronization> Next, problems that may occur in the related art of the control system 1 according to the present embodiment will be described.
[0061] FIG. 5 is a schematic diagram for explaining problems that may occur in the related art of the control system 1 according to the present embodiment. Referring to FIG. 5(A), an ideal state is that the servo control synchronization signal 510 having a predetermined period is synchronized with the frame included in the mirror control signal 540. That is, in the control system 1, it is preferable that the start and end timings of the servo control synchronization signal 510 coincide with the start and end timings (frame boundaries) of the frame included in the mirror control signal 540.
[0062] However, as shown in FIG. 2 described above, the clock generator 212 of the axis interface unit 200 and the clock generator 312 of the laser control unit 300 are not related to each other and generate clock signals independently. That is, in the basic configuration alone, there is no mechanism for synchronizing the period of the servo control synchronization signal 510 and the period of the mirror control signal 540.
[0063] Further, as shown in FIG. 5(B), jitter can occur in the period itself of the servo control synchronization signal 510, and jitter can also occur in the clock signal 541 included in the mirror control signal 540. Note that the jitter occurring in the servo control synchronization signal 510 is several 100 ppm (Part Par Million) of the clock frequency (100 kHz to 4 Hz). Further, the circuit jitter occurring in the transmission / reception circuit of the servo control synchronization signal 510 is about several 10 ns. On the other hand, the jitter occurring in the mirror control signal 540 is about several 100 ns to several μs.
[0064] The control system 1 according to the present embodiment employs a mechanism for maintaining the synchronization between the servo control synchronization signal 510 and the mirror control signal 540. Hereinafter, as an example of the mechanism for maintaining the synchronization between the servo control synchronization signal 510 and the mirror control signal 540, a method for adjusting the length of the period of the clock signal 541 of the mirror control signal 540 will be described, but the length of the period of the servo control synchronization signal 510 may be adjusted instead.
[0065] <E. Solution means> Next, typical examples of solution means for solving the above-described problems will be described.
[0066] FIG. 6 is a schematic diagram showing the functional configuration in the laser control unit 300 of the control system 1 according to the present embodiment. Referring to FIG. 6, the laser control unit 300 includes a measurement unit 320 and a period adjustment unit 330 in addition to a clock generator 312.
[0067] The measurement unit 320 measures the deviation in the length of the period of the servo control synchronization signal 510. More specifically, the measurement unit 320 includes a pulse edge detection unit 322, a counter 324, and a differential measurement unit 326.
[0068] The pulse edge detection unit 322 detects a pulse edge (in the example shown below, a rising edge) included in the servo control synchronization signal 510. The detection result (trigger) of the pulse edge detection unit 322 is output to the counter 324 and the differential measurement unit 326.
[0069] The counter 324 is a timing means that counts up (or down) at a predetermined cycle. For example, the count value is updated at a cycle of 10 ns. The counter 324 resets the count value when triggered by the pulse edge detection unit 322. That is, the counter 324 is reset when a pulse edge of the servo control synchronization signal 510 is detected.
[0070] The difference measurement section 326 reads out the count value from the counter 324 in response to a trigger from the pulse edge detection section 322, and calculates the difference by comparing the read out count value with a reference value (for example, a count value read out in the past or a preset fixed value). The difference measurement section 326 outputs the calculated difference to the period adjustment section 330.
[0071] The cycle adjustment unit 330 sets or changes the cycle length of the clock signal (clock signal 541 included in the mirror control signal 540) generated by the clock generator 312, according to the difference (deviation in the cycle length of the servo control synchronization signal 510) measured by the measurement unit 320. At this time, the cycle adjustment unit 330 adjusts the cycle length of the clock signal 541 based on the deviation in the cycle length of the servo control synchronization signal 510 so that a predetermined number of cycles of the clock signal 541 are included in one cycle of the servo control synchronization signal 510. The method of adjusting the cycle length will be described later in detail.
[0072] The control system 1 according to this embodiment maintains synchronization between the servo control synchronization signal 510 and the mirror control signal 540 using a functional configuration as shown in Fig. 6. A method for maintaining synchronization in the control system 1 according to this embodiment will be described below.
[0073] 7 and 8 are diagrams for explaining a method for maintaining synchronization of the control system 1 according to the present embodiment. In Fig. 7 and Fig. 8, an example is shown in which the frequency of the servo control synchronization signal 510 is 10 kHz (period 100 μs=100,000 ns).
[0074] In the example shown in Fig. 7, the servo control synchronization signal 510 is assumed to be 20 ns shorter than the original period due to jitter in the period from time t2 to time t3. On the other hand, in the example shown in Fig. 8, the servo control synchronization signal 510 is assumed to be 20 ns longer than the original period due to jitter in the period from time t2 to time t3.
[0075] Also, the length of the reference period of the clock signal 541 included in the mirror control signal 540 is 500 ns (oscillation frequency 2 MHz). As described above, the mirror control signal 540 is synchronized with the clock signal 541 and each bit constituting a frame is sequentially sent out, so that the number of clock signals 541 included in each period of the servo control synchronization signal 510 (i.e., the number of frames) needs to be kept constant.
[0076] The number of frames included in each period of the servo control synchronization signal 510 is kept constant by appropriately changing the period length of the clock signal 541 according to the period length of the servo control synchronization signal 510. Note that it is assumed that the period length of the servo control synchronization signal 510 and the period length of the clock signal 541 of the mirror control signal 540 maintain an integer multiple relationship. In other words, the period length of the servo control synchronization signal 510 is set to be an integer multiple of the period length of the clock signal 541 included in the mirror control signal 540.
[0077] The length of the cycle of the servo control synchronization signal 510 is measured by the counter 324 (see FIG. 6) of the laser control unit 300. For example, if the length of the cycle in which the counter 324 counts up is 10 ns, the counter 324 counts up to "10000" in one original cycle (100,000 ns) of the servo control synchronization signal 510.
[0078] On the other hand, if the length of the period of the servo control synchronization signal 510 changes to 98,000 ns in the period from time t2 to time t3, the count value of the counter 324 becomes "9998".
[0079] In this way, the length of the cycle of the clock signal 541 is adjusted based on the count value measured by the counter 324.
[0080] 7, the operation will be described. When the rising edge of the servo control synchronization signal 510 is detected at time t1, the counter 324 is reset and starts counting. After that, when the rising edge of the servo control synchronization signal 510 is detected again at time t2, the counter 324 acquires a count value ("10000") at that timing, and then the counter 324 is reset and starts counting again. After that, when the rising edge of the servo control synchronization signal 510 is detected again at time t3, the counter 324 acquires a count value ("9998") at that timing, and then the counter 324 is reset and starts counting again.
[0081] Since the count value ("9998") measured in the period from time t2 to time t3 is "2" (=20 ns) less than the original count value ("10000"), it can be determined that the length of the period from time t2 to time t3 was shorter by 20 ns. In other words, it can be determined that clock signal 541 is ahead of servo control synchronization signal 510 by 20 ns. In order to correct this 20 ns advance, the length of the period is changed for two periods of clock signal 541 from the original 500 ns to 490 ns, which is 10 ns shorter. After two periods of clock signal 541 having a period of 490 ns are output, the length of the period is returned to the original 500 ns.
[0082] That is, the advance of the clock signal 541 that occurs in the period from time t2 to time t3 is corrected in the next period from time t3 to time t4.
[0083] On the other hand, in the example of FIG. 8, when the rising edge of the servo control synchronization signal 510 is detected again at time t3, the count value of the counter 324 at that timing ("10002") is acquired, and then the counter 324 is reset and starts counting again.
[0084] Since the count value ("10002") measured in the period from time t2 to time t3 is "2" (=20 ns) more than the original count value ("10000"), it can be determined that the length of the period from time t2 to time t3 was longer by 20 ns. In other words, it can be determined that clock signal 541 is delayed by 20 ns relative to servo control synchronization signal 510. In order to correct this delay of 20 ns, the length of the period is changed for two periods of clock signal 541 from the original 500 ns to 510 ns, which is 10 ns longer. After outputting clock signal 541 having a period length of 510 ns for two periods, the length of the period is returned to the original 500 ns.
[0085] That is, the delay of clock signal 541 that occurs in the period from time t2 to time t3 is corrected in the next period from time t3 to time t4.
[0086] Although FIGS. 7 and 8 show an example in which the length of the cycle of clock signal 541 is changed in units of 10 ns, the unit for changing the length of the cycle can be set appropriately depending on the specifications of clock generator 312, etc.
[0087] As described above, when a new cycle of the servo control synchronization signal 510 starts, the cycle adjustment unit 330 determines the cycle length of the clock signal 541 in the new cycle based on the deviation in the length of the cycle immediately before the new cycle. Although Fig. 7 and Fig. 8 show an example in which the cycle length of the clock signal 541 is changed immediately after the new cycle of the servo control synchronization signal 510 starts, the timing for changing the cycle length of the clock signal 541 may be any position (phase) within the target cycle.
[0088] 9 is a flowchart showing a process for maintaining synchronization of the control system 1 according to the present embodiment. Each step shown in FIG. 9 is typically executed by the laser control calculation section 310 of the laser control unit 300.
[0089] 9, laser control unit 300 determines whether or not a pulse edge included in servo control synchronization signal 510 is detected (step S100). If a pulse edge included in servo control synchronization signal 510 is not detected (NO in step S100), the process of step S100 is repeated.
[0090] When a pulse edge included in the servo control synchronization signal 510 is detected (YES in step S100), the laser control unit 300 reads the count value stored in the counter 324 (step S102) and calculates the difference between the read count value and a previously stored reference value (step S104). Then, the laser control unit 300 resets the counter 324 (step S106). The laser control unit 300 also stores the read count value as a reference value (step S108). That is, the count value measured in the immediately preceding cycle is used as the reference value in the next cycle.
[0091] The laser control unit 300 determines the cycle setting of the clock signal 541 based on the calculated difference (step S110). Then, the laser control unit 300 changes the length of the cycle of the clock signal 541 according to the determined cycle setting (step S112). When the cycle to be changed according to the determined cycle setting ends, the laser control unit 300 returns the cycle length of the clock signal 541 to the original length (step S114).
[0092] Then, the processes from step S100 onwards are repeated. In the above-mentioned process, the measurement unit 320 measures the deviation in the length of the period of the servo control synchronization signal 510 based on the previously measured length of one period of the servo control synchronization signal 510. In other words, the count value measured in the previous period is used as the reference value.
[0093] However, not limited thereto, a fixed value (e.g., 10,000 counts) corresponding to the clock frequency of the servo control synchronization signal 510 (e.g., 10 kHz) may be set as a reference value. That is, the measurement unit 320 may measure the deviation in the length of the period of the servo control synchronization signal 510 by comparing it with the reference value corresponding to the clock frequency of the servo control synchronization signal 510. In this case, the process of step S108 becomes unnecessary, and instead, a process of acquiring the clock frequency of the servo control synchronization signal 510 and determining the reference value is adopted.
[0094] Alternatively, by observing the servo control synchronization signal 510 over a predetermined number of periods immediately after the start of operation, a reference value corresponding to the length of the period of the servo control synchronization signal 510 may be determined. In this case, the process of step S108 becomes unnecessary, and instead, a process of observing the length of the period of the servo control synchronization signal 510 and determining the reference value corresponding to the length of the period of the servo control synchronization signal 510 is adopted.
[0095] <F. Other Embodiments> In the above description, mainly an example adopting the XY2-100 protocol has been described, but this solution means is applicable to a communication method that indirectly uses a clock signal.
[0096] FIG. 10 is a schematic diagram showing an example of a hardware configuration related to another transmission of the mirror control signal 540 of the control system 1 according to the present embodiment. FIG. 10 shows an example in which the SL2-100 protocol is adopted as the protocol for transmitting the mirror control signal 540. The SL2-100 protocol is classified as a clock asynchronous serial communication that indirectly uses a clock signal.
[0097] Referring to FIG. 10, when the SL2-100 protocol is adopted, the mirror control signal 540 includes, as information transmitted from the laser control unit 300 to the galvanometer mirror 40, input data 551 (XY-IN) for the X-axis and Y-axis, output data 552 (XY-OUT) for the X-axis and Y-axis, input data 553 (Z-IN) for the Z-axis, and output data 554 (Z-OUT) for the Z-axis.
[0098] Note that the mirror control signal 540 does not include a clock signal (CLOCK) and a synchronization reference signal (SYNC).
[0099] FIG. 11 is a diagram for explaining the method of generating the mirror control signal 540 shown in FIG. 10. As shown in FIG. 11(A), the mirror control signal 540 is composed of temporally continuous frames. A predetermined number (for example, 192) of frames constitute one channel status block. Each frame includes two sub-frames. Each sub-frame includes a preamble at the beginning.
[0100] As shown in FIG. 11(B), the mirror control signal is composed of biphase mask data generated by modulating binary data with a clock signal. The length of the period of the clock signal for generating the biphase mask data is adjusted by the method as described above. That is, by adjusting the length of the period of the clock signal, the length of each frame or each sub-frame is extended, and it can be synchronized with the period of the servo control synchronization signal 510.
[0101] In this way, even in a communication method that indirectly uses a clock signal, the synchronization between the servo control synchronization signal 510 and the mirror control signal 540 can be maintained.
[0102] <G. Advantages> According to the present embodiment, it is possible to more accurately synchronize the operations of a device to which a first control signal is output in synchronization with a synchronization signal having a periodic time waveform and a device to which a second control signal is output by any communication method that directly or indirectly uses a clock signal.
[0103] <H. Supplementary Note> The present embodiment as described above includes the following technical ideas.
[0104] [Configuration 1] An arithmetic unit (100) that executes an application program (110), A signal output unit (220) that outputs a first control signal (520) according to the execution result of the application program, A communication unit (316) that communicates a second control signal (540) by any communication method that directly or indirectly uses a clock signal (541) based on a synchronization signal (510) that serves as a reference for output of the first control signal according to the execution result of the application program, A measurement unit (320) that measures a deviation in the length of the period of the synchronization signal, A control system including an adjustment unit (330) that adjusts the length of the period of the clock signal so that a predetermined number of periods of the clock signal are included within one period of the synchronization signal based on the deviation in the length of the period.
[0105] [Configuration 2] The measurement unit includes a detection unit (322) that detects a pulse edge included in the synchronization signal, and a counter (324) that is reset by detection of the pulse edge of the synchronization signal, and is the control system according to Configuration 1.
[0106] [Configuration 3] The adjustment unit determines the length of the period of the clock signal in the new period based on the deviation in the length of the period of the previous period of the new period when a new period of the synchronization signal starts, and is the control system according to Configuration 1 or 2.
[0107] [Configuration 4] 4. The control system according to any one of configurations 1 to 3, wherein the measurement unit measures the deviation in the length of the period based on a length of one period of the synchronization signal that is measured in advance.
[0108] [Configuration 5] 4. The control system according to any one of configurations 1 to 3, wherein the measurement unit measures a deviation in length of the period by comparing it with a reference value corresponding to the frequency of the synchronization signal.
[0109] [Configuration 6] 6. The control system according to any one of configurations 1 to 5, wherein the communication unit transmits the second control signal using a frame (548) corresponding to a predetermined number of cycles of the clock signal.
[0110] [Configuration 7] 7. The control system according to any one of configurations 1 to 6, wherein the length of the cycle of the synchronization signal is set to be an integer multiple of the length of the cycle of the clock signal.
[0111] [Configuration 8] 8. The control system according to any one of configurations 1 to 7, wherein the signal output unit generates the first control signal by modulating information to be transmitted by PWM (Pulse Width Modulation).
[0112] [Configuration 9] A communication device (300) connected to a calculation unit (100) that executes an application program (110) and a signal output unit that outputs a first control signal according to a result of execution of the application program, a communication unit (316) that communicates a second control signal in accordance with a result of execution of the application program, based on a synchronization signal (510) that is a reference for outputting the first control signal, by any communication method that directly or indirectly uses a clock signal; A measurement unit (320) that measures the deviation in the length of the period of the synchronization signal; and an adjustment unit (330) that adjusts the length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included in one period of the synchronization signal.
[0113] [Configuration 10] A step (100) of executing an application program; outputting (220) a first control signal (520) according to a result of execution of the application program; A step (S100, S102) of communicating a second control signal by any communication method that directly or indirectly uses a clock signal based on a synchronization signal (510) that is a reference for outputting the first control signal according to the execution result of the application program; A step (S104) of measuring a deviation in the length of the period of the synchronization signal; and adjusting (S110, S112, 114) a length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included in one period of the synchronization signal.
[0114] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0115] 1 Control system, 4 Work, 10 Control device, 20 XY stage, 22 Plate, 23, 25 Servo driver, 24, 26 Servo motor, 30 Laser, 40 Galvanometer mirror, 42 X-axis scanning motor, 43 X-axis scanning mirror, 44 Y-axis scanning motor, 45 Y-axis scanning mirror, 46 Z-axis scanning motor, 47 Lens, 52, 53 Control line, 54 Communication line, 100 Main control unit, 102 Processor, 104 Main memory, 106 Storage, 108 System program, 110 Application program, 112 Bus controller, 114 Internal bus, 212, 312 Clock generator, 200 Axis interface unit, 210 Axis control calculation unit, 220, 314 Output interface circuit, 300 Laser control unit, 310 Laser control calculation unit, 316 Communication interface circuit, 320 Measurement unit, 322 Pulse edge detection unit, 324 counter, 326 differential measurement unit, 330 period adjustment unit, 510 servo control synchronization signal, 520 stage control signal, 530 laser control signal, 540 mirror control signal, 541 clock signal, 542 synchronization reference signal, 543 X-axis scanning command angle, 544 Y-axis scanning command angle, 545 Z-axis scanning command angle, 546 XY-axis current value, 547 Z-axis current value, 548, 549 frames, 551, 553 input data, 552, 554 output data.
Claims
1. A computing unit for executing application programs; a signal output unit that outputs a first control signal in accordance with an execution result of the application program; a communication unit that communicates a second control signal in accordance with an execution result of the application program, based on a synchronization signal that is a reference for outputting the first control signal, by any communication method that directly or indirectly uses a clock signal; A measurement unit that measures a deviation in the length of the period of the synchronization signal; and an adjustment unit that adjusts the length of the period of the clock signal based on a deviation in the length of the period so that a predetermined number of periods of the clock signal are included within one period of the synchronization signal.
2. The measurement unit is A detection unit that detects a pulse edge included in the synchronization signal; a counter that is reset upon detection of a pulse edge of the synchronization signal.
3. 3. The control system according to claim 1, wherein when a new cycle of the synchronization signal starts, the adjustment unit determines a length of the cycle of the clock signal in the new cycle based on a deviation in length of a cycle immediately preceding the new cycle.
4. 4. The control system according to claim 1, wherein the measurement unit measures the deviation in the length of the period based on a length of one period of the synchronization signal that is measured in advance.
5. 4. The control system according to claim 1, wherein the measurement unit measures the deviation in the length of the period by comparing it with a reference value corresponding to the frequency of the synchronization signal.
6. 6. The control system according to claim 1, wherein the communication unit transmits the second control signal using a frame corresponding to a predetermined number of periods of the clock signal.
7. 7. The control system according to claim 1, wherein the length of the cycle of the synchronization signal is set to be an integer multiple of the length of the cycle of the clock signal.
8. 8. The control system according to claim 1, wherein the signal output unit generates the first control signal by modulating information to be transmitted by PWM (Pulse Width Modulation).
9. A communication device connected to a calculation unit that executes an application program and a signal output unit that outputs a first control signal in accordance with a result of execution of the application program, a communication unit that communicates a second control signal in accordance with an execution result of the application program, based on a synchronization signal that is a reference for outputting the first control signal, by any communication method that directly or indirectly uses a clock signal; A measurement unit that measures a deviation in the length of the period of the synchronization signal; and an adjustment unit that adjusts the length of a period of the clock signal based on a deviation in the length of the period so that a predetermined number of periods of the clock signal are included within one period of the synchronization signal.
10. executing an application program; outputting a first control signal according to an execution result of the application program; communicating a second control signal in accordance with an execution result of the application program, based on a synchronization signal that is a reference for outputting the first control signal, by any communication method that directly or indirectly uses a clock signal; measuring a deviation in the length of the period of the synchronization signal; and adjusting a length of the period of the clock signal based on the deviation in the length of the period so that a predetermined number of periods of the clock signal are included in one period of the synchronization signal.
Citation Information
Patent Citations
Phase synchronizing circuit
JP1987272623A
Equipment and method for servo control using phase synchronization loop, measuring method of jitter, and control method for orbit designation
JP2000078875A
Machining method and its device
JP2000210782A
Signal control unit and image forming apparatus
JP2004007169A
Modular system numerical control device having low-jitter synchronization
JP2006127514A
