# US 2006/0153008 A1 · Control device and control method capable of external synchronization

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0153008 A1
- Document ID: US20060153008A1
- Status: Published application
- Kind: A1
- Application number: 10/545,271
- Filed: 2004-02-06
- Published: 2006-07-13
- Earliest claimed: 2003-02-12
- Inventors: Toshiyuki Miyamatsu; Mitsunori Kuzushima
- Web page: https://patentgrep.com/patent/US20060153008A1

## CPC

- G05B 19/05: Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)

## Abstract

The problem to be met by the present invention is to provide a controller which can execute control processing in synchronism with a synchronizing signal output from a host controller without taking into consideration a difference between a clock signal used for generating a synchronizing signal of the host controller and a clock signal used for generating a control cycle signal of a controller; and can enhance accuracy performance of control. According to the present invention, in a controller having a control interrupt processing section, a synchronization interrupt processing section adjusts means for generating a control cycle signal to thus generate a control interrupt signal such that the control cycle signal is generated while being delayed by an amount equal to or greater than the duration of an accuracy error between a quartz oscillator used for generating a synchronization interrupt signal and a quartz oscillator used for generating the control cycle signal, thereby executing control interrupt processing in synchronism with the synchronizing signal from the outside.

## Claims

### Claim 1

An externally-synchronizable controller comprising means for generating a synchronization interrupt signal when a synchronizing signal output from the outside, such as from a host controller, is input during a given cycle; means which generates a control cycle signal used for effecting control processing during a given cycle; means for generating a control interrupt signal when said control cycle signal is input; means which receives an input of data from said host controller and outputs data to said host controller; a synchronization interrupt processing section which performs synchronization interrupt processing when said synchronization interrupt signal is input; and a control interrupt processing section which performs control interrupt processing when said control interrupt signal is input, wherein
said synchronization interrupt processing section adjusts said means for generating a control cycle signal to thus generate said control interrupt signal such that said control cycle signal is generated while being delayed by an amount equal to or greater than the duration of an accuracy error between a quartz oscillator used for generating said synchronization interrupt signal and a quartz oscillator used for generating said control cycle signal, thereby executing control interrupt processing in synchronism with said synchronizing signal from the outside.

### Claim 2 (depends on 1)

The externally-synchronizable controller according to claim 1, wherein said synchronization interrupt processing section adjusts said means for generating a control cycle signal to thus generate said control interrupt signal such that said control cycle signal is generated while being delayed by an amount equal to or greater than the duration of a maximum execution time of said synchronization interrupt processing section, thereby rendering constant a control interrupt processing cycle without regard to an execution time of said synchronization interrupt processing section or variations in an execution time.

### Claim 3

An externally-synchronizable controller comprising means for generating a synchronization interrupt signal when a synchronizing signal output from the outside, such as from a host controller, is input during a given cycle; means which generates a control cycle signal used for effecting control processing during a given cycle; means for generating a control interrupt signal when said control cycle signal is input; means which receives an input of data from said host controller and outputs data to said host controller; a synchronization interrupt processing section which performs synchronization interrupt processing when said synchronization interrupt signal is input; and a control interrupt processing section which performs control interrupt processing when said control interrupt signal is input, wherein
said synchronization interrupt processing section activates said means for generating a control cycle signal to thus generate said control interrupt signal, thereby executing control interrupt processing in synchronism with a synchronizing signal from the outside.

### Claim 4 (depends on 3)

The externally-synchronizable controller according to claim 3, wherein said synchronization interrupt processing section executes process time adjustment processing, thereby rendering constant a process time required for synchronization interrupt processing.

### Claim 5

An externally-synchronizable control method for use with a controller comprising means for generating a synchronization interrupt signal when a synchronizing signal output from the outside, such as from a host controller, is input during a given cycle; means which generates a control cycle signal used for effecting control processing during a given cycle; means for generating a control interrupt signal when said control cycle signal is input; means which receives an input of data from said host controller and outputs data to said host controller; a synchronization interrupt processing section which performs synchronization interrupt processing when said synchronization interrupt signal is input; and a control interrupt processing section which performs control interrupt processing when said control interrupt signal is input, said control method comprising:
inputting to an interrupt circuit (21) a synchronizing signal (S10) generated during a given cycle by said host controller;
generating a synchronization interrupt signal (S20) by means of said interrupt circuit 21;
activating a control cycle generation circuit and causing said control cycle generation circuit to output a control cycle signal (S22) to said interrupt circuit (21);
generating a control interrupt signal (S21) and said synchronization interrupt signal (S20) by means of said interrupt circuit (21), and outputting said control interrupt signal and said synchronization interrupt signal to a CPU (20); and
activating a control cycle generation circuit, by means of software, which causes a synchronization interrupt processing section to start control interrupt processing.

### Claim 6 (depends on 5)

The externally-synchronizable control method according to claim 5, wherein said synchronization interrupt processing to be performed by said synchronization interrupt processing section comprises:
a step for processing input/output data (S11) (step 1);
a step for determining whether or not a condition stands (step 2);
a step for performing, when said condition stands, processing to be executed for a case where said condition stands (step 3);
a step of setting to 0 a process time adjustment value (step 30);
a step of performing, when said condition does not stand, processing to be executed for a case where said condition does not stand (step 4);
a step of setting, as said process time adjustment value, a value which is determined by subtracting said process time required for a case where said condition does not stand from said process time required for a case where said condition stands (step 40);
a step for causing step to proceed to the next step when said process time adjustment value assumes 0 or executing a dummy command corresponding to said process time adjustment value when said process time adjustment value assumes a value other than 0 (step 5); and
a step of activating a control cycle generation circuit (step 6).

### Claim 7 (depends on 6)

The externally-synchronizable control method according to claim 6, wherein said process time adjustment value is set to 0 in said step (step 40) for setting a process time adjustment value when said process time for a case where said condition stands is shorter than a process time for a case where said condition does not stand, or to a value determined by subtracting said process time for a case where said condition stands from said process time for a case where said condition does not stand in said step (step 30) for setting to 0 said process time adjustment value.
