WO2004072745A1 - 外部同期可能な制御装置および制御方法 - Google Patents
外部同期可能な制御装置および制御方法 Download PDFInfo
- Publication number
- WO2004072745A1 WO2004072745A1 PCT/JP2004/001280 JP2004001280W WO2004072745A1 WO 2004072745 A1 WO2004072745 A1 WO 2004072745A1 JP 2004001280 W JP2004001280 W JP 2004001280W WO 2004072745 A1 WO2004072745 A1 WO 2004072745A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- control
- signal
- interrupt
- synchronous
- processing
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
Definitions
- the present invention relates to a control device having a function of performing control processing in synchronization with an external synchronization signal, such as a higher-level control device, and a control method therefor.
- FIG. 8 is a block diagram showing the configuration of a conventional control device
- FIG. 9 is a time chart illustrating the operation thereof.
- reference numeral 1 denotes a higher-level device, which has a function of outputting a synchronization signal to the outside, a function of outputting data to the outside, and a function of inputting data from the outside.
- 10 is a crystal oscillator, which generates a crystal.
- Reference numeral 1 denotes a synchronizing signal generation circuit that generates a “ ⁇ ” symbol at regular intervals based on the clock from the crystal oscillator 10 and outputs it to the outside.
- Reference numeral 1 2 denotes an input / output circuit which outputs data to the control device and inputs data from the control device.
- S 10 is a synchronization signal, which is generated by the synchronization signal generation circuit 11 at a fixed period.
- S 11 is input / output data, which is exchanged with the control device via the input / output circuit 12.
- Reference numeral 2 denotes a control device, which includes a CPU, an interrupt circuit, an input / output circuit, and a control cycle generation circuit with synchronization adjustment.
- Reference numeral 20 denotes a CPU, which operates with a clock signal from a crystal oscillator. When a synchronous interrupt signal is input from the interrupt circuit, the synchronous interrupt processing section is executed, and when a control interrupt signal is input from the interrupt circuit, the control interrupt processing section is executed.
- Reference numeral 21 denotes an interrupt circuit, which generates a synchronous interrupt signal and outputs it to the CPU 20 when a synchronous signal S10 from a higher-level device is input.
- a control interrupt signal is generated and output to the CPU 20.
- 22 is a crystal oscillator, which generates a clock.
- 23 is an input / output circuit that outputs data to a higher-level device and inputs data from the higher-level device.
- 2 4 is a synchronous interrupt processing unit.
- the output data S 11 is processed.
- Reference numeral 25 denotes a control interrupt processing unit which performs processing such as position control, speed control, and torque control.
- 27 is a control cycle generation circuit with synchronization adjustment, which generates and outputs a signal at a fixed cycle based on the clock from the crystal oscillator 22 from the time when the synchronization signal S10 from the host device is input. .
- the control cycle generation circuit with synchronization adjustment when the synchronization signal S10 generated at a fixed cycle in the host device is input, the control cycle generation circuit with synchronization adjustment outputs the control cycle signal and starts measuring the clock from the crystal oscillator 22 at the same time. Then, when a preset cycle is reached, a control cycle signal is output, and measurement of the clock from the crystal oscillator 22 is started. By repeating this operation, a signal is generated at a constant period.
- S20 is a synchronous interrupt signal, and is generated by the interrupt circuit 21 when the synchronous signal S10 from the upper level is input.
- S 21 is a control interrupt signal, which is generated by the interrupt circuit 21 when the control cycle signal from the control cycle generation circuit 27 with synchronization adjustment is input.
- S 22 is a control cycle signal, which is generated by the control cycle generation circuit 27 with synchronization adjustment.
- a synchronous interrupt signal is generated in the interrupt circuit 21 and the synchronous interrupt processing unit is executed in the CPU 20. Is done.
- the control cycle generation circuit with synchronization adjustment is started, a control interrupt signal is generated by the interrupt circuit 21 from the control cycle signal S22, and the control interrupt processing unit is executed by the CPU 20.
- the synchronization signal S10 and the synchronization interrupt signal S20 from the upper level are generated every 400 MS, and the control interrupt signal S21 is generated every 100 ⁇ s. I do.
- the synchronous interrupt processing is executed every 400 s, which is the synchronous signal cycle
- the control interrupt processing is executed four times in total during the 400 s by the control interrupt signal of ⁇ ⁇ ⁇ ⁇ cycle Is done.
- the accuracy of the crystal oscillator used for the clock is about 100 ppm, so the error between the crystal oscillator 10 used in the host device 1 and the crystal oscillator 22 used in the controller 2 is The maximum is 200 ppm. Therefore, an error of 1/50000 is obtained. In the case of 400 ⁇ s, it is 400 ⁇ s ⁇ 0.08 ⁇ s.
- the IOOS control period signal is only four times during 400 / is. Control interrupt processing is normally executed four times in total, because it is not generated and no more is generated.
- the clock generating the synchronization signal of the higher-level device is later than the clock generating the control period signal of the controller, the time will be as shown at time D. Before the synchronization signal is input, the fifth control cycle signal is generated, and the control interrupt processing, which should be executed four times, is executed five times within 400 ⁇ s.
- a synchronous interrupt signal and a control interrupt signal are generated. Since the interrupt priority is higher than the processing, the synchronous interrupt processing is executed first, and the control interrupt processing waits until the synchronous interrupt processing is completed. In this example, the execution time of the synchronous interrupt processing is 20 ⁇ s.
- the start interval of the control interrupt processing is 100 ⁇ s, which is the control cycle, but the synchronization signal S 10 generated at a fixed cycle in the higher-level device, such as time C, was input.
- the activation interval between the first control interrupt processing and the second control interrupt processing is 80 ⁇ s, which is the control cycle 100 ⁇ s minus the synchronous interrupt processing execution time 20 ⁇ s. .
- the start interval between the fourth control interrupt processing and the first control interrupt processing in which the next synchronous signal S10 is input is delayed until the synchronous interrupt processing is completed. It becomes. Therefore, the start interval between the second and fourth control interrupt processing is 100 s, but the start interval between the first and second control interrupt processing is 80 ⁇ s, Since the start interval of the next first control interrupt processing is 120 ⁇ s, the control processing cycle in which the control interrupt processing is executed changes, and control accuracy generally deteriorates.
- the maximum processing time allowed for the control interrupt processing is originally 100 / iS, which is the control cycle, but, as at time C, the synchronization signal generated at a regular cycle by the host device.
- the maximum processing time allowed is 80 s, which is obtained by subtracting the synchronous interrupt processing execution time 20 / is from the control cycle 100 / is.
- the maximum processing time allowed for the second to fourth control interrupt processing is 100 S
- the maximum processing time allowed for the first control interrupt processing is 80 ⁇ s. Therefore, it is necessary to suppress the processing to complete in the maximum processing time of 80 ⁇ s allowed for the first control interrupt processing.
- the conventional control device is aware of the difference between the clock that generates the synchronization signal of the higher-level device and the clock that generates the control period signal of the control device, and calculates the synchronization signal of the higher-level device.
- the generated clock is faster than the clock that generates the control cycle signal of the control device.
- the processing is completed within a time obtained by subtracting the processing time required for the processing (for example, refer to Japanese Patent Application Laid-Open No. H11-125105 as Patent Document 1).
- Patent Document 1 as a programmable controller device that can reliably transfer data between a controller and a control device, for example,
- Japanese Patent Application Laid-Open No. 2002-333905 is known as No. 2.
- the conventional controller considers that the clock that generates the synchronization signal of the higher-level device is combined with the higher-level device that is faster than the clock that generates the control period signal of the controller. It had to be troublesome to replace in case of failure. If a higher-level device is combined with a controller in which the clock that generates the synchronization signal of the higher-level device is slower than the clock that generates the control period signal of the controller, the synchronization signal will be synchronized with the synchronization signal from the higher-level device. Control processing could not be performed.
- the start of the control interruption processing is waited until the synchronization interruption processing is completed, so that the control cycle is not constant and the control accuracy is deteriorated.
- the maximum processing time allowed for the control processing is the control cycle minus the processing time required for the synchronous interrupt processing executed when the synchronization signal is input from the host device, despite the control cycle.
- the present invention has been made in view of such a problem, and considers a difference between a clock generating a synchronization signal of a higher-level device and a clock generating a control period signal of a control device. It is possible to execute control processing in synchronization with a synchronization signal from a higher-level device without using it, and to improve control accuracy performance by keeping the start interval of the control interrupt processing, that is, the control cycle constant. Provide a control device that can
- the present invention 1 provides a means for generating a synchronous interrupt signal when a synchronous signal output from an external device such as a higher-level device at a fixed period is input, and a control for performing a control process at a fixed period.
- a control device comprising: a synchronous interrupt processing unit that executes a synchronous interrupt process when input; and a control interrupt processing unit that executes a control interrupt process when the control interrupt signal is input.
- a synchronous interrupt processing unit configured to generate the control period signal with a delay of at least an accuracy error of the crystal oscillator for generating the synchronous interrupt signal and the crystal oscillator for generating the control period signal, Generate periodic signal Adjust the stage, by generating the control interrupt signals, and is characterized in that so as to perform the synchronization with the control interrupt processing synchronization signal from the outside.
- control cycle generation circuit in the synchronous interrupt processing, is adjusted so that the control cycle signal is generated with a delay of at least the accuracy error of the two crystal oscillators, thereby synchronizing the host apparatus.
- Control processing can be performed in synchronization with a synchronization signal from an external device such as a higher-level device without being aware of the difference between the clock that is generating the signal and the control cycle of the control device.
- the present invention 2 also provides the synchronous interrupt processing unit, wherein the synchronous interrupt processing unit generates the control periodic signal such that the control periodic signal is generated with a delay of at least a maximum value during the execution time of the synchronous interrupt processing unit.
- the cycle of the control interrupt processing is made constant irrespective of the execution time and the variation of the execution time of the synchronous interrupt processing unit.
- control device of the second aspect of the present invention in the synchronous interrupt processing, by adjusting the control cycle generation circuit so that the control cycle signal is generated after the elapse of the maximum time of the synchronous interrupt processing, when the synchronization signal is input from the upper apparatus,
- the start interval of the control interrupt processing, that is, the control cycle can be made constant without being affected by the processing time executed in the executed synchronous interrupt processing, and as a result, control accuracy performance can be improved. Can be.
- a synchronization signal output at a fixed period from an external device such as a host
- the control interrupt processing is executed in synchronization with an external synchronization signal.
- a synchronization signal from an external device such as a host device can be used without being aware of the difference between the clock generating the synchronization signal of the host device and the clock generating the control period signal of the control device.
- Control processing can be performed in synchronism with.
- the maximum processing time allowed for the control processing becomes the control cycle, and the performance of the CPU can be maximized.
- the present invention 4 is characterized in that the processing time required for the synchronous interrupt processing is made constant by executing the processing time adjustment processing in the synchronous interrupt processing section.
- the processing time required for the synchronous interrupt processing can be reduced even if the content of the executed processing changes depending on whether the condition is satisfied. It can be kept constant, and the control processing cycle can be kept constant.
- the present invention 5 also provides a means for generating a synchronous interrupt signal when a synchronous signal output from an external device such as a higher-level device at a fixed cycle is input, and a control cycle signal for performing control processing at a fixed cycle.
- a control method of a control device comprising: a synchronous interrupt processing unit that executes a synchronous interrupt process; and a control interrupt processing unit that executes a control interrupt process when the control interrupt signal is input.
- Control cycle signal (S 2 2) is output to the interrupt circuit (2 1), and the interrupt circuit (2 1) generates the control interrupt signal (S 21) and the synchronous interrupt signal (S 20) and sends the signal to the CPU (20). It is characterized in that a control cycle generation circuit that outputs a signal and starts a control interrupt process in a synchronous interrupt processing unit is started by software.
- the present invention 6 is a step (step 1) in which the synchronous interrupt processing executed by the synchronous interrupt processing unit performs the processing of the input / output data (S 11), and determines whether the condition is satisfied.
- Step (Step 2) if the condition is satisfied, the step of performing processing when the condition is satisfied (Step 3), and the step of setting the processing time adjustment value to 0 (Step 30) and the condition If the condition is not satisfied, the step of performing the process when the condition is not satisfied (Step 4) and the step of setting the processing time adjustment value to the value obtained by subtracting the processing time when the condition is not satisfied from the processing time when the condition is satisfied (Step 4) If the processing time adjustment value is 0, proceed to the next step. If the processing time adjustment value is not 0, execute the dummy instruction corresponding to the processing time adjustment value (Step 5). Steps to start the circuit Step 6).
- the processing time adjustment value is set to 0 in the step of setting the processing time adjustment value (Step 40), and In the step of setting the time adjustment value to 0 (step 30), a value obtained by subtracting the processing time when the condition is satisfied from the processing time when the condition is not satisfied is set.
- control methods of the present inventions 5 to 7 it is possible to maximize the performance of the CPU by increasing the maximum processing time allowed for the control processing, and by adjusting the processing time, it is possible to increase the processing time from the host device. This has the effect that the control processing cycle can be kept constant even if the content of the processing executed in the synchronous interrupt processing executed when the synchronous signal is input changes.
- FIG. 1 is a block diagram showing the configuration of the first embodiment of the control device of the present invention.
- FIG. 2 is an explanatory diagram showing the software operation of the first embodiment.
- FIG. 3 is a time chart showing the operation of the second embodiment of the control device of the present invention.
- FIG. 4 is a block diagram showing a configuration of a third embodiment of the control device of the present invention.
- FIG. 5 is an explanatory diagram showing the software operation of the third embodiment.
- FIG. 6 is a time chart showing the operation of the fourth embodiment of the control device of the present invention.
- FIG. 7 is a flowchart showing the operation procedure of the fourth embodiment.
- FIG. 8 is a block diagram showing a configuration of a conventional control device.
- FIG. 9 is a time chart illustrating the operation of the conventional control device.
- 1 is a host device
- 2 is a control device
- 10 is a crystal oscillator
- 11 is a synchronization signal generation circuit
- 12 is an input / output circuit
- 22 is a crystal oscillator
- 23 is an input / output circuit
- 24 is a synchronous interrupt processor
- 25 is a control interrupt processor
- 26 is a control cycle generator
- 27 is a control cycle generator with synchronous adjustment.
- 100 is the host device
- 110 is the crystal oscillator
- 111 is the synchronization signal generator
- 111 is the input / output circuit
- 200 is a control device
- 220 is a CPU
- 222 is an interrupt circuit
- 222 is a crystal oscillator
- 222 is an input / output circuit
- 224 is a synchronous interrupt processing unit
- 225 is Control interrupt processing block
- 2 26 is control cycle generation circuit
- 2 27 is control cycle generation circuit with synchronization adjustment
- S 10 and SI 10 are synchronization signals
- S ll, SI 11 are I / O data
- S 20 and S22 0 are synchronous interrupt signals
- S21 and S221 are control interrupt signals
- S22 and S2 222 is a control cycle signal.
- FIG. 1 is a block diagram showing a configuration of a first embodiment of the control device of the present invention.
- reference numeral 1 denotes a higher-level device, which has a function of outputting a synchronization signal to the outside, a function of outputting data to the outside, and a function of inputting data from the outside.
- 10 is a crystal oscillator, which generates a clock.
- Reference numeral 1 denotes a synchronization signal generator, which generates a signal at a fixed period based on the clock from the crystal oscillator 10 and outputs the signal to the outside.
- Reference numeral 1 2 denotes an input / output circuit which outputs data to the control device and inputs data from the control device.
- S 10 is a synchronization signal, which is generated by the synchronization signal generation circuit 11 at a fixed period.
- Reference numeral 2 denotes a control device, which includes a CPU, an interrupt circuit, an input / output circuit, and a control cycle generation circuit.
- Reference numeral 20 denotes a CPU, which operates with a clock signal from the crystal oscillator 22. Further, when the synchronous interrupt signal S 20 is input from the interrupt circuit 21, the CPU 20 causes the synchronous interrupt processing section 24 to execute the synchronous interrupt processing. When the control interrupt signal S 21 is input from the interrupt circuit 21, the CPU 20 causes the control interrupt processing unit 25 to execute the control interrupt processing.
- Reference numeral 21 denotes an interrupt circuit which generates a synchronous interrupt signal S 20 and outputs it to the CPU 20 when a synchronous signal S 10 from the host device 1 is input. Further, when the control cycle signal S 22 is input from the control cycle generation circuit 26, a control interrupt signal S 21 is generated and output to the CPU 20. 22 is a crystal oscillator, which generates a clock.
- Reference numeral 23 denotes an input / output circuit that outputs data to the host device 1 and inputs data from the host device 1.
- Reference numeral 24 denotes a synchronous interrupt processing unit which processes the input / output data SI1, calculates a control cycle correction value 27, and adjusts the control cycle set value 28.
- Reference numeral 25 denotes a control interrupt processing unit which performs control processing such as position control, speed control, and torque control.
- Reference numeral 26 denotes a control cycle generation circuit, which is started with the control cycle set value 28 adjusted by the synchronous interrupt processing unit, and has a fixed cycle based on the clock from the crystal oscillator 22 from the time of the start. Generate and output signals. That is, when activated by the synchronous interrupt processing section 24, the control cycle generation circuit 26 outputs the control cycle signal S22, and at the same time, starts measuring the clock from the crystal oscillator 22 and sets it in advance. When the specified period is reached, the control period signal S 22 is output, and measurement of the clock from the crystal oscillator 22 is started.
- S20 is a synchronous interrupt signal, and is generated by the interrupt circuit 21 when the synchronous signal S10 from the host device 1 is input.
- S 21 is a control interrupt signal, and is generated by the interrupt circuit 21 when the control cycle signal S 22 from the control cycle generation circuit 26 is input.
- S 22 is a control cycle signal, which is generated by the control cycle generation circuit 26.
- FIG. 2 is a diagram for explaining the operation of the software when the synchronization signal S 10 generated at a fixed period in the higher-level device 1 is input.
- the synchronization signal S 10 generated at a fixed period by the higher-level device 1 is input. Then, the synchronous interrupt signal S 20 is generated by the interrupt circuit 21 in FIG. 1, and the synchronous interrupt processing unit 24 executes the synchronous interrupt processing in the CPU 20.
- Synchronous interrupt processing executed by the synchronous interrupt processing unit 24 is based on the clock measurement value of the control cycle generation circuit 26 and the control cycle after the elapse of the accuracy error between the crystal oscillator 10 and the crystal oscillator 22.
- the control cycle correction value 27 is calculated so that the signal S22 is generated, and the control cycle set value 28 is adjusted (state 10 in FIG. 2).
- the input / output data includes command data input by the control device 2 and feedback data output by the control device 2.
- the command data includes a position command, a speed command, a torque command, and the like.
- the feed pack data includes the current position and current speed.
- the synchronous interrupt processing section 24 which is executed when the synchronous signal S10 generated at a fixed cycle in the upper device 1, is input, the control cycle generating circuit 26 that activates the control interrupt processing. Is adjusted by software so that the control period signal is generated after the accuracy error of the two crystal oscillators has passed, so that the clock that generates the synchronization signal S10 of the host device 1 is controlled by the control device 2. Even when the clock is slower than the clock generating the periodic signal S22, the control process can be executed in synchronization with the synchronization signal S10 from the host device 1.
- FIG. 3 is a time chart showing the operation of the second embodiment of the control device of the present invention.
- a synchronization signal S 10 generated at a fixed period in the higher-level device 1 (FIG. 1) is input, a synchronization interrupt signal S 20 is generated in the interrupt circuit 21 and the CPU 20 , The synchronous interrupt processing section 24 is started, and the synchronous interrupt processing is executed.
- the control cycle correction value 27 is generated at the start of the synchronous interrupt processing, and the control cycle signal S 22 is generated after the accuracy error of the two crystal oscillators has elapsed.
- the control cycle correction value 27 is calculated as described above, the control cycle setting value 28 of the control cycle generation circuit 26 is adjusted, and the control cycle generation circuit 26 is started at the timing of the adjusted control cycle setting value, and the control is performed.
- a control interrupt signal is generated by the interrupt circuit 21 from the periodic signal S22.Since synchronous interrupt processing has higher priority than control interrupt processing, the CPU interrupts the synchronous interrupt processing.
- the control interrupt processing section 25 is executed.
- the synchronization signal S10 and the synchronization interrupt signal S20 from the high order are generated every 400 ⁇ s, and the control interrupt signal S21 is generated every 100 ⁇ s.
- the control cycle before and after the synchronous interrupt signal is generated is two times the synchronous interrupt processing time even if the control interrupt signal is generated.
- control interrupt processing Since the control interrupt processing is executed after 0, "s, it becomes about 120 ⁇ s and about 80 ⁇ s, and if the synchronous interrupt processing executed by the synchronous interrupt processing unit is constant, Assuming that the condition is 20 ⁇ s when the condition is satisfied and 10 s when the condition is not satisfied, the control cycle before and after the generation of the synchronous interrupt signal is about 110 ⁇ s and about 90 ⁇ s, and furthermore, the control cycle varies, and the control processing cycle in which the control interrupt processing is executed changes, generally deteriorating the control accuracy. In this case, the control cycle generation circuit 26 is used for the synchronous interrupt processing in the synchronous interrupt processing.
- a control interrupt signal is generated via the control cycle generation circuit after 10 ⁇ s elapses after the synchronous interrupt processing ends.
- An interrupt process is executed.
- the control period signal is generated after a lapse of a fixed time of 20 ⁇ s from the start of the synchronous interrupt processing, and as a result, the control interrupt processing is executed
- the control cycle is constant at 100 ⁇ s.
- FIG. 4 is a block diagram illustrating a configuration of a control device according to a third embodiment of the present invention.
- reference numeral 100 denotes a higher-level device, which has a function of outputting a synchronization signal to the outside, a function of outputting data to the outside, and a function of inputting data from the outside.
- Reference numeral 11 denotes a synchronization signal generation circuit that generates a signal at a fixed period based on the clock from the crystal oscillator 110 and outputs the signal to the outside.
- 1 1 and 2 are input / output circuits that output data to the control device and input data from the control device.
- S 110 is a synchronizing signal, and is generated by the synchronizing signal generation circuit 111 at a constant period.
- S111 is input / output data, which is exchanged with the control device via the input / output circuit 112.
- Reference numeral 200 denotes a control device, which includes a CPU, an interrupt circuit, an input / output circuit, and a control cycle generation circuit. It is composed of roads.
- 220 is a CPU, which operates with a clock signal from a crystal oscillator. Also, when the synchronous interrupt signal S 2 0 is input from the interrupt circuit 2 2 1, the synchronous interrupt processing is executed, and when the control interrupt signal S 2 2 1 is input from the interrupt circuit 2 2 1. Executes control interrupt processing.
- Reference numeral 221 denotes an interrupt circuit, which generates a synchronous interrupt signal and outputs it to the CPU 220 when the synchronous signal S110 from the host device is input.
- a control interrupt signal S221 is generated and output to the CPU 220.
- 2 2 2 is a crystal oscillator, which generates a clock.
- An input / output circuit 2 23 outputs data to the host device 100 and inputs data from the host device 100.
- Reference numeral 2224 denotes a synchronous interrupt processing unit which processes input / output data S111 and activates the control cycle generation circuit 222.
- Reference numeral 2 25 denotes a control interrupt processing unit which performs processing such as position control, speed control, and torque control.
- Reference numeral 226 denotes a control cycle generation circuit, which is started from the synchronous interrupt processing unit, and generates and outputs a signal at a fixed cycle based on the clock from the crystal oscillator 222 from the time of the start. .
- the control cycle generation circuit when started from the synchronous interrupt processing unit, the control cycle generation circuit outputs a control cycle signal and starts measuring the clock from the crystal oscillator 222 at the same time, and when the cycle reaches a preset cycle, it is controlled. Outputs the periodic signal and starts measuring the clock from the crystal oscillator. By repeating this operation, a signal is generated at regular intervals.
- S220 is a synchronous interrupt signal, and is generated by the interrupt circuit 221 when the synchronous signal S210 from the host is input.
- S221 is a control interrupt signal, which is generated by the interrupt circuit 221 when the control cycle signal from the control cycle generation circuit 226 is input.
- S 222 is a control cycle signal, which is generated by the control cycle generation circuit 222.
- FIG. 5 is a diagram for explaining the operation of the software when the synchronization signal S 110 generated at a fixed period in the host device 100 (FIG. 4) is input. In FIG. 5, when a synchronous signal S 110 generated at a fixed period by the host device 100 is input, a synchronous interrupt signal S 220 is generated by the interrupt circuit 221, and the CPU 22 By 0, the synchronous interrupt processing section 2 2 4 executes synchronous interrupt processing.
- the input / output data includes command data input by the control device 200 and feed data output by the control device 200. It is composed of debug data.
- the command data includes a position command, a speed command, a torque command, and the like.
- the feed pack data includes the current position and current speed.
- control cycle generation circuit 2 26 (FIG. 4) is started (state 111).
- control cycle generation circuit 2 26 When the control cycle generation circuit 2 26 is started, the control cycle generation circuit 2 2 6 outputs the control cycle signal S 2 2 2 and the interrupt circuit 2 2 1 generates the control interrupt signal S 2 2 1 Then, the CPU 220 causes the control interrupt processing section 225 to execute the control interrupt processing.
- the control interrupt processing section 225 performs control processing such as position control, speed control, and torque control (state 1202).
- control cycle generation circuit that activates the control interrupt processing in the synchronous interrupt processing that is executed when the synchronization signal S110 generated at a regular cycle by the host device 100 is input is soft.
- the control is performed in synchronization with the synchronization signal from the higher-level device. The processing can be executed.
- a block diagram showing the configuration of the fourth embodiment is the same as FIG.
- the difference between the third embodiment and the fourth embodiment is the operation of the software.
- FIG. 6 is a time chart showing the operation of the fourth embodiment of the control device of the present invention.
- the synchronization circuit S 211 when the synchronization signal S 110 generated at a fixed period by the host device 100 (FIG. 4) is input, the synchronization circuit S 211 generates the synchronization interrupt signal S 220.
- the synchronous interrupt processing unit is started by the CPU 220 to execute the synchronous interrupt processing.
- the synchronous interrupt processing has a fixed processing time when there is no condition judgment, but the processing time required for the synchronous interrupt processing depends on whether the condition is satisfied if the condition judgment is made. Time changes.
- the control cycle generation circuit is started by this synchronous interrupt processing, a control interrupt signal is generated by the interrupt circuit 221, from the control cycle signal S22, and the control interrupt processing unit is controlled by the CPU 22. Be executed.
- the synchronizing signal S110 from the host and the synchronous interrupt signal S220 are generated every 400 ⁇ s, and the control interrupt signal S221 is generated every 100 / zs. Is generated.
- the synchronous interrupt processing section The period interrupt processing is not constant, and is set to 20 ⁇ s when the condition is satisfied and 10 / Xs when the condition is not satisfied.
- the cycle of the control interrupt signal generated through the control cycle generating circuit is 90 s. It becomes.
- the cycle of the control interrupt signal generated via the control cycle generation circuit is 110 ⁇ s. .
- FIG. 7 is a flowchart illustrating an operation procedure when a condition is determined in the synchronous interrupt processing.
- FIG. 7 differs from the third embodiment in that steps 2 to 5 are provided.
- step 1 processing of input / output data S111 is performed (step 1).
- processing is performed to determine whether the condition is satisfied (step 2).
- step 3 If the condition is satisfied, perform processing when the condition is satisfied (step 3).
- 0 is set to the processing time adjustment value (step 30).
- step 4 If the condition is not satisfied, perform the processing when the condition is not satisfied (step 4). Then, a value obtained by subtracting the processing time when the condition is not satisfied from the processing time when the condition is satisfied is set as the processing time adjustment value (step 40).
- processing time adjustment processing is executed (step 5). Specifically, when the processing time adjustment value is 0, the process proceeds to the next step. When the processing time adjustment value is not 0, a dummy instruction corresponding to the processing time adjustment value is executed.
- Step 6 the control cycle generation circuit is activated (Step 6).
- the processing time adjustment value is set to 0 in step 40, and A value obtained by subtracting the processing time when the condition is satisfied from the processing time when the condition is not satisfied with 0 may be set.
- the processing time adjustment processing is performed before the control cycle generation circuit is started, so that the synchronous interrupt processing condition determination is established regardless of whether the condition determination is made.
- the processing time required for the synchronous interrupt processing can be made constant, and as a result, the control processing cycle in which the control interrupt processing is executed can be kept constant.
- the control cycle generation circuit is adjusted such that the control cycle signal is generated with a delay of at least the accuracy error of the two crystal oscillators.
- the control cycle generation circuit is adjusted so that the control cycle signal is generated after the maximum time of the synchronous processing has elapsed, so that it is executed when a synchronous signal is input from a higher-level device.
- the start interval of the control interrupt processing that is, the control cycle can be made constant without being affected by the processing time executed in the synchronous interrupt processing performed, thereby improving the control precision performance. Can be up.
- control is performed in synchronization with the synchronization signal from an external device such as a higher-level device. Processing can be performed.
- the maximum processing time allowed for the control processing becomes the control cycle, so that the performance of the CPU can be maximized. If there is a condition judgment in the synchronous interrupt processing, it depends on whether the condition is satisfied or not. Even if the content of the executed processing changes, the processing time required for the synchronous interrupt processing can be kept constant, and the control processing cycle can be kept constant. Further, according to the control method of the present invention, the maximum processing time allowed for the control processing is reduced.
- the CPU performance can be maximized and by adjusting the processing time, the content of the processing executed in the synchronous interrupt processing executed when a synchronous signal is input from a higher-level device changes.
- the control processing cycle can be kept constant.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
Description
Claims
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/545,271 US20060153008A1 (en) | 2003-02-12 | 2004-02-06 | Control device and control method capable of external synchronization |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003-33596 | 2003-02-12 | ||
JP2003033596A JP2004264899A (ja) | 2003-02-12 | 2003-02-12 | 外部同期可能な制御装置 |
JP2003065436A JP2004272794A (ja) | 2003-03-11 | 2003-03-11 | 外部同期可能な制御装置および制御方法 |
JP2003-65436 | 2003-03-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2004072745A1 true WO2004072745A1 (ja) | 2004-08-26 |
Family
ID=32871165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2004/001280 WO2004072745A1 (ja) | 2003-02-12 | 2004-02-06 | 外部同期可能な制御装置および制御方法 |
Country Status (2)
Country | Link |
---|---|
US (1) | US20060153008A1 (ja) |
WO (1) | WO2004072745A1 (ja) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007139703A (ja) * | 2005-11-22 | 2007-06-07 | Casio Comput Co Ltd | 時刻受信装置及び電波時計 |
EP2548125A4 (en) * | 2010-03-17 | 2013-12-25 | Thailand Res Fund | COMMUNICATION AND PROCESS SEQUENCING ARCHITECTURE, SYSTEM AND METHOD FOR SIMULATION WITH HARDWARE IN THE LOOP |
KR102079499B1 (ko) * | 2015-10-20 | 2020-02-21 | 엘에스산전 주식회사 | Plc 위치 결정 시스템의 축별 제어주기 독립 할당 방법 |
US10128783B2 (en) * | 2016-05-31 | 2018-11-13 | Infineon Technologies Ag | Synchronization of internal oscillators of components sharing a communications bus |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1091222A (ja) * | 1996-09-11 | 1998-04-10 | Okuma Mach Works Ltd | 同期制御装置 |
JPH11305812A (ja) * | 1998-04-22 | 1999-11-05 | Yaskawa Electric Corp | 分散型cpuシステムの同期方法 |
JP2001100804A (ja) * | 1999-09-28 | 2001-04-13 | Yaskawa Electric Corp | サーボ制御装置 |
JP2002108414A (ja) * | 2000-10-04 | 2002-04-10 | Yaskawa Electric Corp | 複数サーボドライブ装置の同期確立方法とその装置 |
JP2003202907A (ja) * | 2002-01-08 | 2003-07-18 | Yaskawa Electric Corp | Plcモジュールとオプションモジュールとの同期方法 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5121498A (en) * | 1988-05-11 | 1992-06-09 | Massachusetts Institute Of Technology | Translator for translating source code for selective unrolling of loops in the source code |
US6442694B1 (en) * | 1998-02-27 | 2002-08-27 | Massachusetts Institute Of Technology | Fault isolation for communication networks for isolating the source of faults comprising attacks, failures, and other network propagating errors |
GB2384409B (en) * | 2002-01-16 | 2005-05-11 | Thomson Licensing Sa | Method and arrangement for correcting data |
-
2004
- 2004-02-06 US US10/545,271 patent/US20060153008A1/en not_active Abandoned
- 2004-02-06 WO PCT/JP2004/001280 patent/WO2004072745A1/ja active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1091222A (ja) * | 1996-09-11 | 1998-04-10 | Okuma Mach Works Ltd | 同期制御装置 |
JPH11305812A (ja) * | 1998-04-22 | 1999-11-05 | Yaskawa Electric Corp | 分散型cpuシステムの同期方法 |
JP2001100804A (ja) * | 1999-09-28 | 2001-04-13 | Yaskawa Electric Corp | サーボ制御装置 |
JP2002108414A (ja) * | 2000-10-04 | 2002-04-10 | Yaskawa Electric Corp | 複数サーボドライブ装置の同期確立方法とその装置 |
JP2003202907A (ja) * | 2002-01-08 | 2003-07-18 | Yaskawa Electric Corp | Plcモジュールとオプションモジュールとの同期方法 |
Also Published As
Publication number | Publication date |
---|---|
US20060153008A1 (en) | 2006-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9134752B2 (en) | Time measurement device, micro-controller and method of measuring time | |
WO2002098023A1 (fr) | Dispositif et procede de commande de synchronisation | |
JP2003108258A (ja) | 割り込み処理可能な情報処理装置 | |
JP2002368670A (ja) | 無線通信装置及びその受信タイミング推定方法 | |
WO2004072745A1 (ja) | 外部同期可能な制御装置および制御方法 | |
JP2011083841A (ja) | ロボット制御装置、ロボット制御システム及びロボット制御方法 | |
JP2005094933A (ja) | モータ駆動装置 | |
JP2000253689A (ja) | モータ制御装置およびその同期方法 | |
CN112703705A (zh) | 通信装置、通信系统、通信方法及通信程序 | |
JP2004272794A (ja) | 外部同期可能な制御装置および制御方法 | |
JP2004264899A (ja) | 外部同期可能な制御装置 | |
JP2004185378A (ja) | クロック同期式シリアル通信装置および半導体集積回路装置 | |
JP2006292579A (ja) | 測定システム | |
JPH11305812A (ja) | 分散型cpuシステムの同期方法 | |
JP2003202907A (ja) | Plcモジュールとオプションモジュールとの同期方法 | |
JP2004078642A (ja) | 割込み制御回路 | |
JP2015114884A (ja) | 物理量センサ | |
US20240097687A1 (en) | Semiconductor integrated circuit, method of controlling semiconductor integrated circuit, and circuit system | |
JP2002216280A (ja) | テレメータ監視装置 | |
JPH0784666A (ja) | Cpuの間欠動作制御装置 | |
JPH08305664A (ja) | Cpu監視方法及びcpu監視装置 | |
JP2007226423A (ja) | 外部同期可能な制御装置および制御方法 | |
JPH0926806A (ja) | プログラマブルコントローラ | |
JP2000101347A (ja) | 発振制御回路 | |
JPS62147558A (ja) | シ−ケンサ |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
ENP | Entry into the national phase |
Ref document number: 2006153008 Country of ref document: US Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 10545271 Country of ref document: US |
|
122 | Ep: pct application non-entry in european phase | ||
WWP | Wipo information: published in national office |
Ref document number: 10545271 Country of ref document: US |