WO2004072745A1 - 外部同期可能な制御装置および制御方法 - Google Patents

外部同期可能な制御装置および制御方法 Download PDF

Info

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
Application number
PCT/JP2004/001280
Other languages
English (en)
French (fr)
Inventor
Toshiyuki Miyamatsu
Mitsunori Kuzushima
Original Assignee
Kabushiki Kaisha Yaskawa Denki
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2003033596A external-priority patent/JP2004264899A/ja
Priority claimed from JP2003065436A external-priority patent/JP2004272794A/ja
Application filed by Kabushiki Kaisha Yaskawa Denki filed Critical Kabushiki Kaisha Yaskawa Denki
Priority to US10/545,271 priority Critical patent/US20060153008A1/en
Publication of WO2004072745A1 publication Critical patent/WO2004072745A1/ja

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable 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

明細書 外部同期可能な制御装置および制御方法
〈技術分野〉
本発明は、 上位制御装置など外部からの同期信号に同期して制御処理を行う機 能を有する制御装置とその制御方法に関するものである。
〈背景技術〉
従来の制御装置について、 図を用いて説明する。
図 8は、 従来の制御装置の構成を示すブロック図であり、 図 9は、 その動作を 説明するタイムチヤ一トである。
図 8において、 1は上位装置であり、 外部に同期信号を出力する機能と、 外部 へデータを出力する機能と、 外部からデータを入力する機能を有している。 1 0 は水晶発振子であり、 ク口ックを生成する。 1 1は同期信号発生回路であり、 水 晶発振子 1 0からのクロックを元に定周期に 'ί言号を生成し外部に出力する。 1 2 は入出力回路であり、 制御装置にデータを出力し、 制御装置からデータを入力す る。 S 1 0は同期信号であり、 同期信号発生回路 1 1で定周期に生成される。 S 1 1は入出力データで、 入出力回路 1 2を介して制御装置と授受される。
2は制御装置で、 C P Uと、 割込回路と、 入出力回路と、 同期調整付制御周期 発生回路から構成される。 2 0は C P Uであり、 水晶発振子からのクロック信号 で動作する。 また、 割込回路から同期割込信号が入力されると同期割込処理部を 実行し、 割込回路から制御割込信号が入力されると制御割込処理部を実行する。 2 1は割込回路であり、 上位装置からの同期信号 S 1 0が入力されると、 同期割 込信号を生成し C P U 2 0へ出力する。 また、 同期調整付制御周期発生回路から 信号が入力されると、 制御割込信号を生成し C P U 2 0へ出力する。 2 2は水晶 発振子であり、 クロックを生成する。 2 3は入出力回路であり、 上位装置にデー タを出力し、 上位装置からデータを入力する。 2 4は同期割込処理部であり、 入 出力データ S 1 1の処理を行う。 2 5は制御割込処理部であり、 位置制御、 速度 制御、 トルク制御などの処理を行う。 2 7は同期調整付制御周期発生回路であり、 上位装置からの同期信号 S 1 0が入力された時点から水晶発振子 2 2からのクロ ックを元に定周期に信号を生成し出力する。 すなわち、 上位装置で定周期に生成 される同期信号 S 1 0が入力されると、 同期調整付制御周期発生回路は制御周期 信号を出力すると同時に、 水晶発振子 2 2からのクロックの計測を開始し、 予め 設定された周期に達すると制御周期信号を出力し、 水晶発振子 2 2からのクロッ クの計測を開始する。 この動作を繰り返し行うことで定周期に信号を生成する。 S 2 0は同期割込信号であり、 上位からの同期信号 S 1 0が入力された時に割込 回路 2 1で生成される。 S 2 1は制御割込信号であり、 同期調整付制御周期発生 回路 2 7からの制御周期信号が入力された時に割込回路 2 1で生成される。 S 2 2は制御周期信号であり、 同期調整付制御周期発生回路 2 7で生成される。
図 9において、 上位装置で定周期に生成される同期信号 S 1 0が入力されると、 割込回路 2 1で同期割込信号が生成され、 C P U 2 0にて同期割込処理部が実行 される。 また、 同期調整付制御周期発生回路が起動され、 制御周期信号 S 2 2よ り割込回路 2 1で制御割込信号が生成され、 C P U 2 0にて制御割込処理部が実 行される。 この例では、 上位からの同期信号 S 1 0および同期割込信号 S 2 0は 4 0 0 M Sごとに生成され、 制御割込信号 S 2 1は 1 0 0 μ s ごとに生成される ものとする。 すなわち、 同期信号周期である 4 0 0 s ごとに同期割込処理が実 行され、 4 0 0 sの間に Ι Ο Ο μ β周期の制御割込信号により制御割込処理が 計 4回実行される。 一般にクロックに使用する水晶発振子の精度は 1 0 0 p p m 程度であるため、 上位装置 1で使用している水晶発振子 1 0と制御装置 2で使用 している水晶発振子 2 2の誤差は最大 2 0 0 p p mである。 よって、 1 / 5 0 0 0の誤差となる。 4 0 0 μ sでは、 4 0 0 μ s ± 0 . 0 8 μ s となる。 上位装置 の同期信号を生成しているク口ックが制御装置の制御周期信号を生成しているク ロックよりも速い場合は、 4 0 0 /i s間に I O O Sの制御周期信号は 4回しか 生成されず、 それ以上は生成されないため、 制御割込処理は正常に計 4回実行さ れる。 一方、 上位装置の同期信号を生成しているクロックが制御装置の制御周期 信号を生成しているクロックよりも遅い場合は、 時刻 Dのようになり、 上位から の同期信号が入力される前に、 5回目の制御周期信号が生成され、 4 0 0 μ s間 では本来 4回実行されるべき制御割込処理が 5回実行されることになる。
また、 上位装置で定周期に生成される同期信号 S 1 0が入力されると、 同期割 込信号と制御割込信号が生成されるが、 一般的に同期割込処理の方が制御割込処 理より割込優先順位が高いので、 同期割込処理が先に実行され、 制御割込処理は 同期割込処理が完了するまで待たされる。 この例では、 同期割込処理の実行時間 は 2 0 μ s とする。
本来は、 制御割込処理の起動間隔は、 制御周期である 1 0 0 μ sであるが、 時 刻 Cのように、 上位装置で定周期に生成される同期信号 S 1 0が入力された 1回 目の制御割込処理と 2回目の制御割込処理の起動間隔は、 制御周期 1 0 0 μ sか ら同期割込処理の実行時間 2 0 μ sを減算した 8 0 μ s となる。
また、 4回目の制御割込処理と次回の同期信号 S 1 0が入力された 1回目の制 御割込処理の起動間隔は、 同期割込処理が完了するまで待たされるため 1 2 0 Μ s となる。 従って、 2回目から 4回目の制御割込処理の起動間隔は、 1 0 0 s であるにもかかわらず、 1回目と 2回目の制御割込処理の起動間隔が 8 0 μ s、 4回目と次 1回目の制御割込処理の起動間隔が 1 2 0 μ sであるため、 制御割込 処理が実行される制御処理周期が変わり、 一般的に制御精度が劣化する。
また、 制御割込処理に許される最大処理時間についても、 本来は制御周期であ る 1 0 0 /i Sであるが、 時刻 Cのように、 上位装置で定周期に生成される同期信 号 S 1 0が入力された 1 回目の制御割込処理の場合は、 制御周期 1 0 0 /i sから 同期割込処理の実行時間 2 0 /i sを減算した 8 0 sが許される最大処理時間と なる。 従って、 2回目から 4回目の制御割込処理に許される最大処理時間は、 1 0 0 Sであるにもかかわらず、 1 回目の制御割込処理に許される最大処理時間 が 8 0 μ sであるため、 1 回目の制御割込処理に許される最大処理時間 8 0 μ s で完了するような処理に押さえる必要がある。
このように、 従来の制御装置は、 上位装置の同期信号を生成しているクロック と制御装置の制御周期信号を生成しているク口ックの差を意識し、 上位装置の同 期信号を生成しているクロックが制御装置の制御周期信号を生成しているク口ッ クよりも速くなるようにし、 また、 制御割込処理部が制御処理周期から同期割込 処理に要する処理時間を減算した時間内に完了するようにしているのである (例 えば、 特許文献 1 として特開平 1 1一 2 5 9 1 0 5号公報参照)。
また、 コントローラと制御機器間のデータの受け渡しを確実に行うことができ るプログラマブルコントローラ装置として特許文献 1の他に、 例えば、 特許文献
2として特開 2 0 0 2— 3 3 3 9 0 5号公報がある。 しかしながら、 従来の制御装置は、 上位装置の同期信号を生成しているクロッ クが制御装置の制御周期信号を生成しているクロックより も速くなるような上位 装置との組み合わせになるように意識しなければならず、 故障時の交換などが煩 わしかった。 万一、 上位装置の同期信号を生成しているクロックが制御装置の制 御周期信号を生成しているクロックよりも遅い制御装置と上位装置を組み合わせ ると、 上位装置からの同期信号に同期して制御処理を実行できないという問題が あった。
また、 同期信号が入力されたタイミングでは同期割込処理が終了するまで制御 割込処理の起動が待たされるため、 制御周期が一定ではなく、 制御精度も劣化す るという問題も抱えていた。
また、 制御処理に許される最大処理時間は、 制御周期であるにもかかわらず、 制御周期から上位装置からの同期信号入力時に実行される同期割込処理に要する 処理時間を減算したものとなるので、 C P Uの性能を最大限に生かせないという ような問題も抱えていた。 そこで、 本発明はこのような問題点に鑑みてなされたものであり、 上位装置の 同期信号を生成しているクロックと制御装置の制御周期信号を生成しているク口 ックの差を意識せずに上位装置からの同期信号に同期して制御処理を実行するこ とができるとともに、 制御割込処理の起動間隔すなわち制御周期を一定とするこ とで制御の精度性能を向上することができる制御装置を提供するこ.と、
さらに、 制御処理に許される最大処理時間を制御周期とし、 C P Uの性能を最 大限に生かすことができる制御装置と制御方法を提供することを目的としている。 く発明の開示〉
上記目的を達成するため、 本発明 1は、 上位装置など外部から定周期に出力さ れる同期信号が入力されると同期割込信号を生成する手段と、 定周期に制御処理 を行うための制御周期信号を生成する手段と、 前記制御周期信号が入力されると 制御割込信号を生成する手段と、 上位装置からデータを入力し上位装置にデータ を出力する手段と、 前記同期割込信号が入力されると同期割込処理を実行する同 期割込処理部と、 前記制御割込信号が入力されると制御割込処理を実行する制御 割込処理部とを備えた制御装置において、 前記同期割込処理部が、 前記同期割込 信号を生成するための水晶発振子と前記制御周期信号を生成するため水晶発振子 の精度誤差以上遅れて前記制御周期信号が生成されるよう、 前記制御周期信号を 生成する手段を調整し、 前記制御割込信号を生成することにより、 外部からの同 期信号に同期して制御割込処理を実行させるようになっていることを特徴とする ものである。
本発明 1の制御装置によれば、 同期割込処理において、 2つの水晶発振子の精 度誤差以上遅らせて制御周期信号が生成されるよう制御周期発生回路を調整する ことにより、 上位装置の同期信号を生成しているクロックと制御装置の制御周期 信号を生成しているクロックの差を意識することなく、 上位装置など外部からの 同期信号に同期して制御処理を行うことができる。
また、 本発明 2は、 前記同期割込処理部において、 該同期割込処理部の実行時 間の最大値以上遅れて前記制御周期信号が生成されるよう、 前記制御周期信号を 生成する手段を調整し、 前記制御割込信号を生成することにより、 前記同期割込 処理部の実行時間や実行時間のばらつきに関係なく制御割込処理の周期を一定に することを特徴とするものである。
本発明 2の制御装置によれば、 同期割込処理において、 同期割込処理最大時間 経過後に制御周期信号が生成されるよう制御周期発生回路を調整することにより、 上位装置からの同期信号入力時に実行される同期割込処理において実行される処 理時間に影響されることなく、 制御割込処理の起動間隔すなわち制御周期を一定 とすることができ、 その結果、 制御の精度性能を向上することができる。
また、 本発明 3は、 上位装置など外部から定周期に出力される同期信号が入力 されると同期割込信号を生成する手段と、 定周期に制御処理を行うための制御周 期信号を生成する手段と、 前記制御周期信号が入力されると制御割込信号を生成 する手段と、 上位装置からデータを入力し上位装置にデータを出力する手段と、 前記同期割込信号が入力されると同期割込処理を実行する同期割込処理部と、 前 記制御割込信号が入力されると制御割込処理を実行する制御割込処理部とを備え た制御装置において、 前記同期割込処理部において前記制御周期信号を生成する 手段を起動し、 前記制御割込信号を生成することにより、 外部からの同期信号に 同期して制御割込処理を実行させることを特徴とするものである。
本発明 3の制御装置によれば、 上位装置の同期信号を生成しているクロックと 制御装置の制御周期信号を生成しているクロックの差を意識することなく、 上位 装置など外部からの同期信号に同期して制御処理を行うことができる。 また、 制 御処理に許される最大処理時間が制御周期となり、 C P Uの性能を最大限に生か すことができる。
また、 本発明 4は、 前記同期割込処理部において処理時間調整処理を実行する ことにより、 同期割込処理に要する処理時間を一定にすることを特徴とするもの である。
本発明 4の制御装置によれば、 同期割込処理において条件判断がある場合、 そ の条件の成立如何によつて実行される処理の内容が変わっても、 同期割込処理に 要する処理時間を一定にすることができ、 制御処理周期を一定に保つことができ る。
また、 本発明 5は、 上位装置など外部から定周期に出力される同期信号が入力 されると同期割込信号を生成する手段と、 定周期に制御処理を行うための制御周 期信号を生成する手段と、 前記制御周期信号が入力されると制御割込信号を生成 する手段と、 上位装置からデータを入力し上位装置にデータを出力する手段と、 前記同期割込信号が入力されると同期割込処理を実行する同期割込処理部と、 前 記制御割込信号が入力されると制御割込処理を実行する制御割込処理部とを備え た制御装置の制御方法において、 上位装置で定周期に生成される同期信号 (S 1 0 ) を割込み回路 (2 1 ) 入力し、 割込回路 2 1で同期割込信号 (S 2 0 ) を 生成し、 制御周期発生回路を起動して制御周期発生回路から制御周期信号 (S 2 2 ) を割込回路 (2 1 ) へ出力し、 割込回路 (2 1 ) は制御割込信号 (S 2 1 ) と同期割込信号 (S 2 0 ) を生成し C P U ( 2 0 ) へ出力し、 同期割込処理部で 制御割込処理を起動する制御周期発生回路をソフ トウエアで起動することを特徴 とするものである。
また、 本発明 6は、 同期割込処理部で実行される同期割込処理が、 入出力デー タ (S 1 1 ) の処理を行うステップ (ステップ 1 ) と、 条件の成立如何を判断す るステップ (ステップ 2 ) と、 条件が成立している場合は、 条件成立時の処理を 行うステップ (ステップ 3 ) と、 処理時間調整値に 0を設定しておくステップ (ス テツプ 3 0 ) と条件が成立していない場合は、 条件不成立時の処理を行うステツ プ (ステップ 4 ) と、 処理時間調整値に条件成立時の処理時間から条件不成立時 の処理時間を減算したものを設定するステップ (ステップ 4 0 ) と、 処理時間調 整値が 0の場合は次のステップに進み、 0以外の場合は処理時間調整値分に相当 するダミー命令を実行するステップ (ステップ 5 ) と、 制御周期発生回路を起動 するステップ (ステップ 6 ) からなることを特徴とするものである。
また、 本発明 7は、 条件成立時の処理時間が条件不成立時の処理時間より短い 場合は、 処理時間調整値を設定するステップ (ステップ 4 0 ) で処理時間調整値 に 0を設定し、 処理時間調整値に 0を設定するステップ (ステップ 3 0 ) で条件 不成立時の処理時間から条件成立時の処理時間を減算したものを設定するもので ある。
本発明 5 〜 7の制御方法によれば、 制御処理に許される最大処理時間を増加さ せることで C P Uの性能を最大限に生かすことができると共に、 処理時間調整を 行うことにより、 上位装置からの同期信号入力時に実行される同期割込処理にお いて実行される処理の内容が変わっても、 制御処理周期を一定に保つことができ るという効果がある。 く図面の簡単な説明 >
図 1は、 本発明の制御装置の第 1実施例の構成を示すブロック図である。 図 2は、 第 1実施例のソフ トウエア動作を示す説明図である。
図 3は、 本発明の制御装置の第 2実施例の動作を示すタイムチヤ一トである。 図 4は、 本発明の制御装置の第 3実施例の構成を示すプロック図である。 図 5は、 第 3実施例のソフ トウエア動作を示す説明図である。
図 6は、本発明の制御装置の第 4実施例の動作を示すタイムチヤ一トである。 図 7は、 第 4実施例の動作手順を示すフローチヤ一トである。
図 8は、 従来の制御装置の構成を示すプロック図である。
図 9は、 従来の制御装置の動作を説明するタイムチヤ一トである。
なお、 図中の符号、 1は上位装置、 2は制御装置、 1 0は水晶発振子、 1 1 は同期信号発生回路、 1 2は入出力回路、 2 (H¾C PU、 2 1は割込回路、 2 2 は水晶発振子、 2 3は入出力回路、 2 4は同期割込処理部、 2 5は制御割込処理 部、 2 6は制御周期発生回路、 2 7は同期調整付制御周期発生回路、 2 8は制御 周期補正値、 2 9は制御周期設定値、 1 0 0は上位装置、 1 1 0は水晶発振子、 1 1 1は同期信号発生回路、 1 1 2は入出力回路、 2 00は制御装置、 2 2 0は C PU, 2 2 1は割込回路、 2 2 2は水晶発振子、 2 2 3は入出力回路、 2 24 は同期割込処理部、 2 2 5は制御割込処理部、 2 2 6は制御周期発生回路、 2 2 7は同期調整付制御周期発生回路、 S 1 0、 S I 1 0は同期信号、 S l l、 S I 1 1は入出力データ、 S 2 0、 S 2 2 0は同期割込信号、 S 2 1、 S 2 2 1は制 御割込信号、 S 2 2、 S 2 2 2は制御周期信号である。
〈発明を実施するための最良の形態〉
次に、 本発明の各実施例について図面を参照して説明する。
図 1は、 本発明の制御装置の第 1実施例の構成を示すプロック図である。
図 1において、 1は上位装置であり、 外部に同期信号を出力する機能と、 外部 へデータを出力する機能と、 外部からデータを入力する機能を有している。 1 0 は水晶発振子であり、 クロックを生成する。 1 1は同期信号癸生回路であり、 水 晶発振子 1 0からのクロックを元に定周期に信号を生成し外部に出力する。 1 2 は入出力回路であり、 制御装置にデータを出力し、 制御装置からデータを入力す る。 S 1 0は同期信号であり、 同期信号発生回路 1 1で定周期に生成される。 S 1 1は入出力データで、 入出力回路 1 2を介して制御装置と授受される。 2は制御装置で、 C P Uと、 割込回路と、 入出力回路と、 制御周期発生回路か ら構成される。 2 0は C P Uであり、 水晶発振子 2 2からのクロック信号で動作 する。 また、 割込回路 2 1から同期割込信号 S 2 0が入力されると C P U 2 0は 同期割込処理部 2 4に同期割込処理を実行させる。 割込回路 2 1から制御割込信 号 S 2 1が入力されると C P U 2 0は制御割込処理部 2 5に制御割込処理を実行 させる。 2 1は割込回路であり、 上位装置 1からの同期信号 S 1 0が入力される と、 同期割込信号 S 2 0を生成し C P U 2 0へ出力する。 また、 制御周期発生回 路 2 6から制御周期信号 S 2 2が入力されると、 制御割込信号 S 2 1を生成し C P U 2 0へ出力する。 2 2は水晶発振子であり、 クロックを生成する。 2 3は入 出力回路であり、 上位装置 1にデータを出力し、 上位装置 1からデータを入力す る。 2 4は同期割込処理部であり、 入出力データ S I 1の処理を行い、 制御周期 補正値 2 7を算出し制御周期設定値 2 8を調整する。 2 5は制御割込処理部であ り、 位置制御、 速度制御、 トルク制御などの制御処理を行う。 2 6は制御周期発 生回路であり、 同期割込処理部で調整された制御周期設定値 2 8で起動され、 起 動された時点から水晶発振子 2 2からのクロックを元に定周期に信号を生成し出 力する。 すなわち、 同期割込処理部 2 4から起動されると、 制御周期発生回路 2 6は制御周期信号 S 2 2を出力すると同時に、 水晶発振子 2 2からのクロックの 計測を開始し、 予め設定された周期に達すると制御周期信号 S 2 2を出力し、 水 晶発振子 2 2からのクロックの計測を開始する。 この動作を繰り返し行うことで 定周期に信号を生成する。 S 2 0は同期割込信号であり、 上位装置 1からの同期 信号 S 1 0が入力された時に割込回路 2 1で生成される。 S 2 1は制御割込信号 であり、 制御周期発生回路 2 6からの制御周期信号 S 2 2が入力された時に割込 回路 2 1で生成される。 S 2 2は制御周期信号であり、 制御周期発生回路 2 6で 生成される。 図 2は、 上位装置 1で定周期に生成される同期信号 S 1 0が入力された時のソ フ トウエアの動作を説明した図である。
図 2において、 上位装置 1で定周期に生成される同期信号 S 1 0が入力される と、 図 1の割込回路 2 1で同期割込信号 S 2 0が生成され、 C P U 2 0にて同期 割込処理部 2 4が同期割込処理を実行する。
同期割込処理部 2 4で実行される同期割込処理は、 まず、 制御周期発生回路 2 6のクロック計測値から、 水晶発振子 1 0と水晶発振子 2 2の精度誤差以上経過 後に制御周期信号 S 2 2が生成されるように制御周期補正値 2 7を算出し制御周 期設定値 2 8を調整する (図 2のステート 1 0 )。
次に、 入出力データ S 1 1の処理を行う (図 2のステート 1 1 )。
入出力データには、 制御装置 2が入力する指令データと、 制御装置 2が出力す るフィードバックデータから構成される。 指令データには、 位置指令、 速度指令、 トルク指令などがある。 また、 フィードパックデータには現在位置、 現在速度な どがある。 同期割込処理で調整された制御周期発生回路 2 6が起動されると、 制 御周期発生回路 2 6から制御周期信号 S 2 2が出力され、 割込回路 2 1 より制御 割込信号 S 2 1が生成され、 C P U 2 0にて制御割込処理部 2 4が制御割込処理 を実行する。 制御割込処理部 2 5は、 位置制御、 速度制御、 トルク制御などの制 御処理を行う (図 2のステー ト 2 0 )。 同期割込処理で制御周期設定値を調整し た直後の制御割込処理では制御周期設定値 2 8に固定周期の設定値を設定する(図 2のステート 2 1 )。
このように、 上位装置 1で定周期に生成される同期信号 S 1 0が入力された時 に実行される同期割込処理部 2 4で、 制御割込処理を起動する制御周期発生回路 2 6をソフ トウェアで 2つの水晶発振子の精度誤差以上経過後に制御周期信号が 生成されるように調整することにより、 上位装置 1の同期信号 S 1 0を生成して いるクロックが制御装置 2の制御周期信号 S 2 2を生成しているクロックよりも 遅い場合でも上位装置 1からの同期信号 S 1 0に同期して制御処理を実行するこ とができる。 次に、 本発明の第 2実施例について図 3を参照して説明する。
第 2実施例の構成を示すプロック図は図 1 と同じであり、 またソフ トウェア動 作を示す図は図 2と同じである。 第 1実施例との違いは制御周期発生回路の調整 時間である。 図 3は、 本発明の制御装置の第 2実施例の動作を示すタイムチヤ一卜である。 図 3において、 上位装置 1 (図 1 ) で定周期に生成される同期信号 S 1 0が入 力されると、 割込回路 2 1で同期割込信号 S 2 0が生成され、 C P U 2 0にて同 期割込処理部 2 4が起動され、 同期割込処理が実行される。 一般に、 同期割込処 理は条件判断がない場合は、 同期割込処理に要する処理時間は一定であるが、 条 件判断があるとその条件の成立如何によつて同期割込処理に要する処理時間は変 わってく る。 第 1実施例の場合は、 この同期割込処理で制御周期補正値 2 7は同 期割込処理の開始時に 2つの水晶発振子の精度誤差以上経過後に制御周期信号 S 2 2が生成されるように制御周期補正値 2 7が算出され制御周期発生回路 2 6の 制御周期設定値 2 8を調整し、 調整された制御周期設定値のタイミングで制御周 期発生回路 2 6が起動され、 制御周期信号 S 2 2より割込回路 2 1で制御割込信 号が生成されるが、 同期割込処理の方が制御割込処理より優先度が高いため、 同 期割込処理終了後に、 C P U 2 0にて制御割込処理部 2 5が実行される。 この例 では、 上位からの同期信号 S 1 0および同期割込信号 S 2 0は 4 0 0 μ s ごとに 生成され、 制御割込信号 S 2 1は 1 0 0 μ sごとに生成されるものとする。 しかし、 同期割込処理が 2 0 / s—定としても時刻 Αのように、 同期割込信号 が生成された前後の制御周期は制御割込信号が生成されても同期割込処理時間の 2 0 ," s後に制御割込処理が実行されるため、 約 1 2 0 μ s と約 8 0 μ s となつ てしまい、 また、 同期割込処理部で実行される同期割込処理が一定ではなく、 条 件成立時は 2 0 μ s、 不成立時は 1 0 s とすると、 時刻 Bのように、 同期割込 信号が生成された前後の制御周期は約 1 1 0 μ s と約 9 0 μ s となってしまい、 更に制御周期にばらつきが生じ、 制御割込処理が実行される制御処理周期が変わ り、 一般的に制御精度が劣化する。 高精度を得るためには制御処理周期の時間管 理による補正処理が必要となってしまう。 ここで、 同期割込処理において制御周期発生回路 2 6を同期割込処理の実行時 間の最大値、 この例では 2 0 s経過後に制御周期信号 S 2 2が生成されるよう に制御周期補正値 2 7を算出し制御周期設定値 2 8を調整することにより、 時刻 Aのように、 上位からの同期信号により起動される同期割込処理が条件成立の場 合を実行すると、 同期割込処理終了後、 直ぐ制御周期発生回路を介して制御割込 信号が発生され制御割込処理が実行される。
また、 時刻 Bのように、 同期割込処理が条件不成立の場合を実行すると、 同期 割込処理終了後 1 0 μ s経過した後、 制御周期発生回路を介して制御割込信号が 発生され制御割込処理が実行される。 つまり同期割込処理の条件判断の成立如何 にかかわらず、 同期割込処理開始から 2 0 μ s と一定時間過後に制御周期信号が 生成されるようにし、 結果、 制御割込処理が実行される制御周期は 1 0 0 μ s と 一定となる。 このように同期割込処理において、 同期割込処理開始から同期割込処理の最大 処理時間後に制御周期発生回路から制御周期信号が生成されるように調整を行う ことで、 同期割込処理に待たされることなく、 また同期割込処理に条件判断があ る場合は、 同期割込処理の条件判断の成立如何にかかわらず、 同期割込処理開始 から一定時間経過後かつ、 同期割込処理終了後に制御周期信号が生成されること で制御割込処理が即実行されるようになり、 制御割込処理が実行される制御処理 周期を一定に保つことができる。 図 4は、 本発明の第 3実施例に係る制御装置の構成を示すプロック図である。 図 4において、 1 0 0は上位装置であり、 外部に同期信号を出力する機能と、 外部へデータを出力する機能と、 外部からデータを入力する機能を有している。
1 1 0は水晶発振子であり、 クロックを生成する。 1 1 1は同期信号発生回路 であり、 水晶発振子 1 1 0からのクロックを元に定周期に信号を生成し外部に出 力する。 1 1 2は入出力回路であり、 制御装置にデータを出力し、 制御装置から データを入力する。 S 1 1 0は同期信号であり、 同期信号発生回路 1 1 1で定周 期に生成される。 S 1 1 1は入出力データで、 入出力回路 1 1 2を介して制御装 置と授受される。
2 0 0は制御装置で、 C P Uと、 割込回路と、 入出力回路と、 制御周期発生回 路から構成される。 2 2 0は C P Uであり、 水晶発振子からのクロック信号で動 作する。 また、 割込回路 2 2 1から同期割込信号 S 2 2 0が入力されると同期割 込処理を実行し、 割込回路 2 2 1から制御割込信号 S 2 2 1が入力されると制御 割込処理を実行する。 2 2 1は割込回路であり、 上位装置からの同期信号 S 1 1 0が入力されると、 同期割込信号を生成し C P U 2 2 0へ出力する。 また、 制御 周期発生回路 2 2 6から信号が入力されると、 制御割込信号 S 2 2 1を生成し C P U 2 2 0へ出力する。 2 2 2は水晶発振子であり、 クロックを生成する。 2 2 3は入出力回路であり、 上位装置 1 0 0にデータを出力し、 上位装置 1 0 0から データを入力する。 2 2 4は同期割込処理部であり、 入出力データ S 1 1 1の処 理を行い、 制御周期発生回路 2 2 6を起動する。 2 2 5は制御割込処理部であり、 位置制御、 速度制御、 トルク制御などの処理を行う。 2 2 6は制御周期発生回路 であり、 同期割込処理部から起動され、 起動された時点から水晶発振子 2 2 2か らのク口ックを元に定周期に信号を生成し出力する。 すなわち、 同期割込処理部 から起動されると、 制御周期発生回路は制御周期信号を出力すると同時に、 水晶 発振子 2 2 2からのクロックの計測を開始し、 予め設定された周期に達すると制 御周期信号を出力し、 水晶発振子 2 2 2からのクロックの計測を開始する。 この 動作を繰り返し行うことで定周期に信号を生成する。 S 2 2 0は同期割込信号で あり、 上位からの同期信号 S 2 1 0が入力された時に割込回路 2 2 1で生成され る。 S 2 2 1は制御割込信号であり、 制御周期発生回路 2 2 6からの制御周期信 号が入力された時に割込回路 2 2 1で生成される。 S 2 2 2は制御周期信号であ り、 制御周期発生回路 2 2 6で生成される。 図 5は、 上位装置 1 0 0 (図 4 ) で定周期に生成される同期信号 S 1 1 0が入 力された時のソフ トウェアの動作を説明した図である。 図 5において、 上位装置 1 0 0で定周期に生成される同期信号 S 1 1 0が入力されると、 割込回路 2 2 1 で同期割込信号 S 2 2 0が生成され、 C P U 2 2 0により同期割込処理部 2 2 4 が同期割込処理を実行する。 同期割込処理部 2 2 4で実行される同期割込処理は、 まず、 入出力データ S 1 1 1の処理を行う (ステー ト 1 1 0 )。 入出力データに は、 制御装置 2 0 0が入力する指令データと、 制御装置 2 0 0が出力するフィー ドバックデータから構成される。 指令データには、 位置指令、 速度指令、 トルク 指令などがある。 また、 フィードパックデータには現在位置、 現在速度などがあ る。
次に、 制御周期発生回路 2 2 6 (図 4 ) を起動する (ステ一ト 1 1 1 )。
制御周期発生回路 2 2 6が起動されると、 制御周期発生回路 2 2 6から制御周 期信号 S 2 2 2が出力され、 割込回路 2 2 1 より制御割込信号 S 2 2 1が生成さ れ、 C P U 2 2 0により制御割込処理部 2 2 5が制御割込処理を実行する。 制御 割込処理部 2 2 5では、 位置制御、 速度制御、 トルク制御などの制御処理を行う (ステ一ト 1 2 0 )。
このように、 上位装置 1 0 0で定周期に生成される同期信号 S 1 1 0が入力さ れた時に実行される同期割込処理で、 制御割込処理を起動する制御周期発生回路 をソフ トウエアで起動することにより、 上位装置の同期信号を生成しているク口 ックが制御装置の制御周期信号を生成しているクロックより も遅い場合でも上位 装置からの同期信号に同期して制御処理を実行することができるようになる。 次に、 本発明の第 4実施例について図 6を参照して説明する。
第 4実施例の構成を示すブ口ック図は図 4と同じである。 第 3実施例と第 4実 施例の違いはソフ トウェアの動作である。
図 6は、 本発明の制御装置の第 4実施例の動作を示すタイムチヤ一卜である。 図 6において、 上位装置 1 0 0 (図 4 ) で定周期に生成される同期信号 S 1 1 0が入力されると、 割込回路 2 2 1で同期割込信号 S 2 2 0が生成され、 C P U 2 2 0にて同期割込処理部が起動され、 同期割込処理が実行される。 一般に、 同 期割込処理は条件判断がない場合は、 同期割込処理に要する処理時間は一定であ るが、 条件判断があるとその条件の成立如何によつて同期割込処理に要する処理 時間は変わってくる。 この同期割込処理で制御周期発生回路が起動され、 制御周 期信号 S 2 2 2より割込回路 2 2 1で制御割込信号が生成され、 C P U 2 2 0に て制御割込処理部が実行される。 この例では、 上位からの同期信号 S 1 1 0およ ぴ同期割込信号 S 2 2 0は 4 0 0 μ s ごとに生成され、 制御割込信号 S 2 2 1は 1 0 0 /z sごとに生成されるものとする。 また、 同期割込処理部で実行される同 期割込処理は一定ではなく、 条件成立時は 2 0 μ s、 不成立時は 1 0 /X s とする。 図 6における時刻 Αのように、 上位からの同期信号により起動される同期割込 処理が条件不成立の場合を実行すると、 制御周期発生回路を介して発生する制御 割込信号の周期は 9 0 s となる。
また、 図 6における時刻 Βのように、 次の同期割込処理が条件成立の場合を実 行すると、 制御周期発生回路を介して発生する制御割込信号の周期は 1 1 0 μ s となる。
このように同期割込処理に条件判断がある場合は、 同期割込処理に要する処理 時間が条件判断の成立如何によつて変わり、 その結果、 制御割込処理が実行され る制御処理周期が変わるため、 一般的に制御精度が劣化する。 このため、 同期割 込処理において、 同期割込処理に条件判断がある場合は、 制御周期発生回路を起 動する前に処理時間調整処理を行い、 同期割込処理の条件判断の成立如何にかか わらず、 同期割込処理に要する処理時間を一定にするようにした。 図 7は、 この同期割込処理に条件判断がある場合の動作手順を説明したフロー チャートである。 図 7において、 第 3実施例と異なるのは、 ステップ 2からステ ップ 5があることである。
図 7において、 同期割込処理部で実行される同期割込処理は、 まず、 入出力デ ータ S 1 1 1の処理を行う (ステップ 1 )。
次に、 条件の成立如何を判断する処理を行う (ステップ 2 )。
条件が成立している場合は、 条件成立時の処理を行う (ステップ 3 )。
そして、 処理時間調整値に 0を設定しておく (ステップ 3 0 )。
条件が成立していない場合は、 条件不成立時の処理を行う (ステップ 4 )。 そして、 処理時間調整値に条件成立時の処理時間から条件不成立時の処理時間 を減算したものを設定する (ステップ 4 0 )。
次に、 処理時間調整処理を実行する (ステップ 5 )。 具体的には、 処理時間調 整値が 0の場合は次のステップに進み、 0以外の場合は処理時間調整値分に相当 するダミー命令を実行する。
最後に、 制御周期発生回路を起動する (ステップ 6 )。 なお、 本実施例では、 条件成立時の処理時間が条件不成立時の処理時間より長 い場合を想定したが、 逆の場合は、 ステップ 4 0で処理時間調整値に 0を設定し、 ステップ 3 0で条件不成立時の処理時間から条件成立時の処理時間を減算したも のを設定すればよい。
このように、 同期割込処理において、 条件判断がある場合は、 制御周期発生回 路を起動する前に処理時間調整処理を行うことにより、 同期割込処理の条件判断 の成立如何にかかわらず、 同期割込処理に要する処理時間を一定にすることがで き、 その結果、 制御割込処理が実行される制御処理周期を一定に保つことができ る。 以上述べたように、 本発明の制御装置によれば、 同期割込処理において、 2つ の水晶発振子の精度誤差以上遅らせて制御周期信号が生成されるよう制御周期発 生回路を調整することにより、 上位装置の同期信号を生成しているクロックと制 御装置の制御周期信号を生成しているク口ックの差を意識することなく、 上位装 置など外部からの同期信号に同期して制御処理を行うことができ、 また、 同期割 込処理において、 同期処理最大時間経過後に制御周期信号が生成されるよう制御 周期発生回路を調整することにより、 上位装置からの同期信号入力時に実行され る同期割込処理において実行される処理時間に影響されることなく、 制御割込処 理の起動間隔すなわち制御周期を一定とすることができ、 その結果、 制御の精度 性能を向上することができる。
また、 上位装置の同期信号を生成しているクロックと制御装置の制御周期信号 を生成しているク口ックの差を意識することなく、 上位装置など外部からの同期 信号に同期して制御処理を行うことができる。 また、 制御処理に許される最大処 理時間が制御周期となり、 C P Uの性能を最大限に生かすことができ、 また、 同 期割込処理において条件判断がある場合、 その条件の成立如何によつて実行され る処理の内容が変わっても、 同期割込処理に要する処理時間を一定にすることが でき、 制御処理周期を一定に保つことができる。 さらに、 本発明に係る制御方法によれば、 制御処理に許される最大処理時間を 增加させることで C P Uの性能を最大限に生かすことができると共に、 処理時間 調整を行うことにより、 上位装置からの同期信号入力時に実行される同期割込処 理において実行される処理の内容が変わっても、 制御処理周期を一定に保つこと ができるという効果がある。

Claims

請 求 の 範 囲
1 . 上位装置など外部から定周期に出力される同期信号が入力されると同期 割込信号を生成する手段と、 定周期に制御処理を行うための制御周期信号を生成 する手段と、 前記制御周期信号が入力されると制御割込信号を生成する手段と、 上位装置からデータを入力し上位装置にデータを出力する手段と、 前記同期割込 信号が入力されると同期割込処理を実行する同期割込処理部と、 前記制御割込信 号が入力されると制御割込処理を実行する制御割込処理部とを備えた制御装置に おいて、
前記同期割込処理部は、 前記同期割込信号を生成するための水晶発振子と前記 制御周期信号を生成するため水晶発振子の精度誤差以上遅れて前記制御周期信号 が生成されるよう、 前記制御周期信号を生成する手段を調整し前記制御割込信号 を生成することにより、 外部からの同期信号に同期して制御割込処理を実行させ- ることを特徴とする外部同期可能な制御装置。
2 . 前記同期割込処理部は、 該同期割込処理部の実行時間の最大値以上遅れ て前記制御周期信号が生成されるよう、 前記制御周期信号を生成する手段を調整 し、 前記制御割込信号を生成することにより、 前記同期割込処理部の実行時間や 実行時間のばらつきに関係なく制御割込処理の周期を一定にすることを特徴とす る上記 1記載の外部同期可能な制御装置。
3 . 上位装置など外部から定周期に出力される同期信号が入力されると同期 割込信号を生成する手段と、 定周期に制御処理を行うための制御周期信号を生成 する手段と、 前記制御周期信号が入力されると制御割込信号を生成する手段と、 上位装.置からデータを入力し上位装置にデータを出力する手段と、 前記同期割込 信号が入力されると同期割込処理を実行する同期割込処理部と、 前記制御割込信 号が入力されると制御割込処理を実行する制御割込処理部とを備えた制御装置に おいて、
前記同期割込処理部において前記制御周期信号を生成する手段を起動し、 前記 制御割込信号を生成することにより、 外部からの同期信号に同期して制御割込処 理を実行させることを特徴とする外部同期可能な制御装置。
4. 前記同期割込処理部は、 処理時間調整処理を実行することにより、 同期 割^処理に要する処理時間を一定にすることを特徴とする上記 3記載の外部同期 可能な制御装置。
5. 上位装置など外部から定周期に出力される同期信号が入力されると同期 割込信号を生成する手段と、 定周期に制御処理を行うための制御周期信号を生成 する手段と、 前記制御周期信号が入力されると制御割込信号を生成する手段と、 上位装置からデータを入力し上位装置にデータを出力する手段と、 前記同期割込 信号が入力されると同期割込処理を実行する同期割込処理部と、 前記制御割込信 号が入力されると制御割込処理を実行する制御割込処理部とを備えた制御装置の 制御方法において、
上位装置で定周期に生成される同期信号 (S 1 0) を割込み回路 (2 1 ) へ入 力し、 割込回路 2 1で同期割込信号 (S 2 0) を生成し、 制御周期発生回路を起 動して制御周期発生回路から制御周期信号 (S 2 2) を割込回路 (2 1 ) へ出力 し、 割込回路 (2 1 ) は制御割込信号 (S 2 1 ) と同期割込信号 (S 2 0) を生 成し C PU ( 2 0) へ出力し、 同期割込処理部で制御割込処理を起動する制御周 期発生回路をソフ トウエアで起動することを特徴とする外部同期可能な制御方法。
6. 同期割込処理部で実行される同期割込処理は、 入出力データ (S 1 1 ) の処理を行うステップ (ステップ 1 ) と、 条件の成立如何を判断するステップ (ス テツプ 2 ) と、 条件が成立している場合は、 条件成立時の処理を行うステップ (ス テツプ 3) と、 処理時間調整値に 0を設定しておくステップ (ステップ 3 0 ) と 条件が成立していない場合は、 条件不成立時の処理を行うステップ (ステップ 4) と、 処理時間調整値に条件成立時の処理時間から条件不成立時の処理時間を減算 したものを設定するステップ (ステップ 40) と、 処理時間調整値が 0の場合は 次のステップに進み、 0以外の場合は処理時間調整値分に相当するダミー命令を 実行するステップ (ステップ 5 ) と、 制御周期発生回路を起動するステップ (ス テツプ 6 ) からなることを特徴とする上記 5記載の外部同期可能な制御方法。
7 . 条件成立時の処理時間が条件不成立時の処理時間より短い場合は、 処理 時間調整値を設定するステップ (ステップ 4 0 ) で処理時間調整値に 0を設定し、 処理時間調整値に 0を設定するステップ (ステップ 3 0 ) で条件不成立時の処理 時間から条件成立時の処理時間を減算したものを設定する上記 6記載の外部同期 可能な制御方法。
PCT/JP2004/001280 2003-02-12 2004-02-06 外部同期可能な制御装置および制御方法 WO2004072745A1 (ja)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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