JPH01161505A - Device for managing real time of process controller - Google Patents

Device for managing real time of process controller

Info

Publication number
JPH01161505A
JPH01161505A JP62319058A JP31905887A JPH01161505A JP H01161505 A JPH01161505 A JP H01161505A JP 62319058 A JP62319058 A JP 62319058A JP 31905887 A JP31905887 A JP 31905887A JP H01161505 A JPH01161505 A JP H01161505A
Authority
JP
Japan
Prior art keywords
time
timing signal
controller
clock
real time
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP62319058A
Other languages
Japanese (ja)
Inventor
Yoshimi Goto
後藤 好美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62319058A priority Critical patent/JPH01161505A/en
Publication of JPH01161505A publication Critical patent/JPH01161505A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To drastically reduce time errors among numerous controllers by giving timing signals supplied from one set of time managing controller to be used as a reference to the numerous controllers as interruption signals at every fixed time. CONSTITUTION:Numerous controllers 2 (21-2n) reset fixed times in their own clocks upon receiving timing signals from a time managing controller 1 as interruption signals. The timing signals are generated at every, for example, 1hr T. Each controller 2 resets the absolute time which is the sum of the time of the previous interrupting time and the time T. Therefore, time error among the numerous controllers 2 can be reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は独立してプロセス制御を行う複数台のプロセス
コントローラの実時間を精度よく合せるのに好適なプロ
セスコントローラの実時間管理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a real time management device for a process controller suitable for accurately matching the real time of a plurality of process controllers that independently perform process control.

〔従来の技術〕[Conventional technology]

原子カプラントなどにおいては独立した複数個のプロセ
スコントローラによって制御するように構成している。
Atomic couplants and the like are configured to be controlled by a plurality of independent process controllers.

各プロセスコントローラは各々持っている時計によって
実時間を管理し、プロセスデータに時刻データを付は表
示したり記憶している。しかし、各コントローラの時計
は必ずしも一致せずに誤差を有する0時計の時刻に誤差
があるとプロセス量の時間的変化を正確に把握できなく
なる。
Each process controller manages real time using its own clock, and displays or stores time data along with process data. However, the clocks of each controller do not necessarily match and have an error.If there is an error in the time of the clock, it becomes impossible to accurately grasp temporal changes in the process amount.

従来、各コントローラの時計の時刻を一致させるために
は上位計算機から定期的に時刻データを各コントローラ
に送り時刻を一致させるようにしている。このようなこ
とは特開昭59−81733号公報に記載されている。
Conventionally, in order to match the clock times of each controller, a host computer periodically sends time data to each controller so that the times match. This is described in Japanese Patent Application Laid-Open No. 59-81733.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、上位計算機の処理能力よりして多数のコ
ントローラに同時に時刻データを伝送することは困難で
あり、また各コントローラまでの伝送に要する伝送時間
の差によって、誤差を生じる。したがって、多数のコン
トローラ間において現在時刻の誤差が大きくなるという
問題がある。
However, it is difficult to simultaneously transmit time data to a large number of controllers due to the processing capacity of the host computer, and errors occur due to differences in the transmission time required for transmission to each controller. Therefore, there is a problem in that the error in the current time becomes large among a large number of controllers.

本発明の目的は多数のコントローラの時刻誤差を著しく
低減できるプロセスコントローラの実時管理装置を提供
することにある。 ・ (問題点を解決するための手段〕 上記目的は、基準とする1台の時間管理コントローラか
ら一定時間(固定時刻)毎にタイミング信号を多数のコ
ントローラに与え、多数のコントローラはタイミング信
号を割込み信号として自己の時計に固定時刻を再設定す
ることにより、達成される。ここで、固定時刻とは1時
、2時・・・のように絶対時刻のことを意味している。
An object of the present invention is to provide a real-time management device for process controllers that can significantly reduce time errors of a large number of controllers. - (Means for solving the problem) The above purpose is to provide a timing signal from one reference time management controller to many controllers at fixed times (fixed times), and the many controllers to interrupt the timing signal. This is achieved by resetting a fixed time on one's own clock as a signal. Here, fixed time means an absolute time such as 1 o'clock, 2 o'clock, etc.

(作用〕 多数のプロセスコントローラは時間管理コントローラの
発生するタイミング信号を割込み信号とした自己の時計
に固定時刻を再設定する。タイミング信号は例えば1時
間T毎に発生する。各コントローラは前回の割込み時の
時刻に時間Tを加算した時刻し絶対時刻を自己の時計に
再設定するので多数のコントローラ間の時刻誤差を小さ
くできる。
(Operation) Many process controllers reset the fixed time on their own clocks using the timing signal generated by the time management controller as an interrupt signal.The timing signal is generated, for example, every hour T.Each controller Since the absolute time is reset to the own clock by adding the time T to the current time, the time error between many controllers can be reduced.

〔実施例〕〔Example〕

以下1本発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.

第1図において、時間管理コントローラ1は中央処理袋
[3A、時計4A、時刻設定部5Aおよびデジタル出力
部6より構成される。時刻は操作員により時刻設定部5
Aより入力され、時計4Aにセットされる。中央処理装
置3Aは時計4Aの時刻を判定し、一定時間T毎に時間
To間だけデジタル出力部6の出力をオン状態とする。
In FIG. 1, the time management controller 1 is composed of a central processing bag [3A, a clock 4A, a time setting section 5A, and a digital output section 6. The time is set by the operator in the time setting section 5.
It is input from A and set in the clock 4A. The central processing unit 3A determines the time on the clock 4A, and turns on the output of the digital output section 6 for a period of time To every fixed period of time T.

n台のプロセスコントローラ21〜2nは中央処理装置
31〜3n、時計41〜4n、時刻設定部51〜5n、
プロセスの信号入力部91〜9n、割込み入力部71〜
7nおよび表示記録部81〜8nにより各々構成される
。プロセスコントローラ21〜2nは通常、プロセス入
出力部91〜9nを介してプロセス量を取込み、かつプ
ロセスの制御信号を与えプロセスの制御を実行する。プ
ロセスに異常等が発生した場合にはプロセスデータに時
計41〜4nより読み出した時刻データを付加して表示
記録部81〜8nへ表示あるいは記録する。
The n process controllers 21 to 2n include central processing units 31 to 3n, clocks 41 to 4n, time setting units 51 to 5n,
Process signal input units 91 to 9n, interrupt input units 71 to
7n and display/recording sections 81 to 8n, respectively. The process controllers 21 to 2n normally take in process quantities via process input/output units 91 to 9n, and provide process control signals to execute process control. When an abnormality or the like occurs in the process, the time data read from the clocks 41 to 4n is added to the process data and displayed or recorded in the display recording sections 81 to 8n.

各コントローラの時計41〜4nの時刻は初期状態の時
(コントローラの起動時)に操作員により時刻設定部5
1〜5nから入力される。
The time on the clocks 41 to 4n of each controller is set by the operator in the time setting section 5 in the initial state (when the controller is started).
Input from 1 to 5n.

時間管理コントローラ1より出力されるタイミング信号
は割込み入力部71〜7nに入力され、中央処理袋[3
1〜3nへ割込み信号が与えられる。
The timing signal output from the time management controller 1 is input to the interrupt input units 71 to 7n, and
An interrupt signal is given to 1 to 3n.

中央処理装置31〜3nは割込み信号を入力すると第2
図の処理を実行する。その動作を第3図に示すタイムチ
ャートを参照しながら説明する。
When the central processing units 31 to 3n receive an interrupt signal, the central processing units 31 to 3n
Execute the process shown in the diagram. The operation will be explained with reference to the time chart shown in FIG.

通常のプロセス制御の処理がステップA、B。Normal process control processing is steps A and B.

C,Dであるとする。今、ステップBからステップCに
移行するKの時に割り込みが発生した場合にはステップ
ft、fze faの処理を優先して実行する。今回の
割込み処理はt+T時点の処理とする。時間管理コント
ローラ1は第3図(b)に示すような時間幅Toのタイ
ミング信号を発生する。割込み入力部71〜7nはタイ
ミング信号の立上り時に第3図(C)に示す割込み信号
を発生する。中央処理装置31〜3nはこの割込み信号
によって割込み処理を実行する。まず、ステップf1に
おいて自己の時計41〜4nの時刻Tnの読み出し処理
を行う。ステップf2では時刻を十Tが現在時刻と判断
し修正する。この修正動作を具体例を挙げ説明する。
Suppose that they are C and D. Now, if an interrupt occurs at K when moving from step B to step C, the processes of steps ft and fze fa are executed with priority. The current interrupt processing is assumed to be processing at time t+T. The time management controller 1 generates a timing signal having a time width To as shown in FIG. 3(b). The interrupt input sections 71 to 7n generate an interrupt signal shown in FIG. 3(C) at the rising edge of the timing signal. The central processing units 31 to 3n execute interrupt processing in response to this interrupt signal. First, in step f1, the time Tn of the own clocks 41 to 4n is read out. In step f2, the time is determined to be 10T and corrected. This correction operation will be explained using a specific example.

時間管理コントローラ1が1時間間隔でタイミング信号
を発生し、t+T時点が午前9時とする。
The time management controller 1 generates a timing signal at one hour intervals, and time t+T is assumed to be 9 am.

この場合のコントローラ21,22,2nの時刻Tnが
例えば次のようであったとする。
Assume that the times Tn of the controllers 21, 22, and 2n in this case are as follows, for example.

コントローラ21:午前9時10分 コントローラ22:午前8時55分 コントローラ2n:午前9時25分 この場合には3台のコントローラ21,22゜2nの各
時刻に最も近い固定時刻は午前9時であるから時刻を午
前9時に修正する。
Controller 21: 9:10 a.m. Controller 22: 8:55 a.m. Controller 2n: 9:25 a.m. In this case, the fixed time closest to each of the three controllers 21, 22゜2n is 9:00 a.m. So I'll adjust the time to 9am.

ステップf2で修正を行った後にステップf3に移り時
計41〜4nに時刻9時を設定する。このような割込み
処理はt+1T(iは1,2,3・・・)毎に行われる
After the correction is made in step f2, the process moves to step f3, and the time 9:00 is set on the clocks 41 to 4n. Such interrupt processing is performed every t+1T (i is 1, 2, 3, . . . ).

このような割込み処理を行い時計41〜4nに絶対時刻
(固定時刻)を再設定するようにしているが、割込み処
理時間Tbは1rns以下であり、単に割込み信号を与
えるだけで正確な時刻を時計41〜4nに設定すること
ができる。したがって、プロセスデータの時間管理を正
確に行うことができる。
Although such interrupt processing is performed to reset the absolute time (fixed time) to the clocks 41 to 4n, the interrupt processing time Tb is less than 1 rns, and it is possible to set the clock accurately by simply providing an interrupt signal. It can be set to 41 to 4n. Therefore, time management of process data can be performed accurately.

次に、コントローラ21の時計41が第3図(a)に示
すように時刻T&だけ誤差を生じる場合における時刻デ
ータの用い方の一例を説明する。
Next, an example of how to use time data when the clock 41 of the controller 21 produces an error by time T& as shown in FIG. 3(a) will be described.

例えば時計41の誤差時刻T、を上述の例のように10
分さし9時30分に記録を行う場合には次式によって正
確な時刻Tgを求めるようにする。
For example, the error time T of the clock 41 is set to 10 as in the above example.
When recording at 9:30 a.m., the accurate time Tg is determined by the following equation.

この場合には時計41の時刻である9時30分から5分
だけ差し引いた9時25分を記録するようにする。この
ようにすることにより1時計41〜4bが固有に有して
いる誤差を補正することができる。
In this case, 9:25, which is 5 minutes subtracted from 9:30, which is the time on the clock 41, is recorded. By doing so, it is possible to correct errors inherent in each of the clocks 41 to 4b.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、多数のプロセスコントローラ内の時計
の時刻を精度よく補正できると共に多数のプロセスコン
トローラ間の時刻の差をなくすことができるので、多数
のコントローラから出力する時刻情報を比較して、プロ
セスの動作を正確に評価できる。
According to the present invention, it is possible to accurately correct the time of the clocks in a large number of process controllers, and also to eliminate the difference in time between the large number of process controllers. Process behavior can be accurately evaluated.

なお、時間管理コントローラの発生するタイミング信号
は複数台のコントローラに対して間隔Tの異なる数種類
の信号に分け、時差が目的とする精度内に入る様な信号
をそれぞれのコントローラ毎に入力することもできる。
Note that the timing signal generated by the time management controller can be divided into several types of signals with different intervals T for multiple controllers, and a signal such that the time difference falls within the desired accuracy can be input to each controller. can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の構成図、第2図はタイミン
グ信号入力時の処理フロー図、第3図は時刻修正のタイ
ムチャートである。 1・・・時間管理コントローラ、21〜2、n・・・プ
ロセスコントローラ、3A、31.〜3n・・・中央処
理装置、4 A 、 41〜4 n−時計、5A、51
〜5n・・・時刻設定部、6・・・デジタル出力部、7
1〜7n・・・割込み入力部、81〜8n・・・表示/
記録部、91〜9n・・・プロセス信号の入出力部。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a processing flow diagram when a timing signal is input, and FIG. 3 is a time chart for time correction. 1... Time management controller, 21-2, n... Process controller, 3A, 31. ~3n...Central processing unit, 4A, 41~4n-clock, 5A, 51
~5n...Time setting section, 6...Digital output section, 7
1 to 7n...Interrupt input section, 81 to 8n...Display/
Recording section, 91 to 9n... Process signal input/output section.

Claims (1)

【特許請求の範囲】 1、各々有する時計によつて実時刻を管理してプロセス
制御を行う複数台のプロセスコントローラと、固定時刻
毎の一定時間周期でタイミング信号を発生し前記複数台
のコントローラに与える時間管理コントローラとを有し
、各プロセスコントローラは前記タイミング信号を割込
み入力として取込み、この割込み時の自己の時計をみて
、前記タイミング信号の発生周期で定まる固定時刻の中
で最も近い固定時刻を自己の現時点での時刻として時計
に設定するようにしたことを特徴とするプロセスコント
ローラの実時間管理装置。 2、特許請求の範囲第1項において、プロセスコントロ
ーラは前記タイミング信号の発生周期T、前回タイミン
グ信号発生時の時刻誤差Taおよび今回のタイミング信
号を入力してから現在までの時間ををとするとき、自己
の時計の時刻から(T_0/T)tを減じた値を実時刻
として用いることを特徴とするプロセスコントローラの
実時間管理装置。
[Scope of Claims] 1. A plurality of process controllers that control the process by managing real time using their respective clocks, and a timing signal that generates a timing signal at a fixed time period at each fixed time and that controls the process by controlling the real time using a clock that each controller has. Each process controller receives the timing signal as an interrupt input, looks at its own clock at the time of the interrupt, and selects the closest fixed time among the fixed times determined by the generation cycle of the timing signal. A real time management device for a process controller, characterized in that the current time of the process controller is set in a clock. 2. In claim 1, when the process controller defines the generation cycle T of the timing signal, the time error Ta when the previous timing signal was generated, and the time from inputting the current timing signal to the present time to be A real time management device for a process controller, characterized in that a value obtained by subtracting (T_0/T)t from the time of its own clock is used as the real time.
JP62319058A 1987-12-18 1987-12-18 Device for managing real time of process controller Pending JPH01161505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62319058A JPH01161505A (en) 1987-12-18 1987-12-18 Device for managing real time of process controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62319058A JPH01161505A (en) 1987-12-18 1987-12-18 Device for managing real time of process controller

Publications (1)

Publication Number Publication Date
JPH01161505A true JPH01161505A (en) 1989-06-26

Family

ID=18106031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62319058A Pending JPH01161505A (en) 1987-12-18 1987-12-18 Device for managing real time of process controller

Country Status (1)

Country Link
JP (1) JPH01161505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222810A (en) * 1992-09-28 1994-08-12 Siemens Ag Central processing unit for process control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222810A (en) * 1992-09-28 1994-08-12 Siemens Ag Central processing unit for process control system

Similar Documents

Publication Publication Date Title
US4866606A (en) Loosely coupled distributed computer system with node synchronization for precision in real time applications
US10761515B2 (en) Control system for controlling control object and control device for linking control applications in control system
EP3361635B1 (en) Control system and pulse output device
JPS5985567A (en) Stored program type controller
US6098178A (en) Time synchronization algorithm for massively parallel processor systems
US4803708A (en) Time-of-day coincidence system
JPH01161505A (en) Device for managing real time of process controller
CN116490829A (en) Method for controlling an automation system with control redundancy and automation system
JPH11305812A (en) Synchronize method for distributed cpu system
JP2682300B2 (en) Wheel rotation cycle measurement circuit
JP3221109B2 (en) Multiprocessor system and TOD synchronization control method
JP2896478B2 (en) Remote control pulse receiving circuit
JPS603007A (en) Synchronization system of distributed numerical control system
SU1721625A1 (en) Device for forming coordinates of mechanical trajectory of an object
JP2870195B2 (en) Digital servo controller
JPH02212911A (en) Timing method for digital time unit
SU1707546A1 (en) Multichannel measurement and recording system
SU1259277A1 (en) Interface for linking processors in pipeline computer system
SU1003315A1 (en) Device for control of pulse repetition period
JPS6013503B2 (en) Synchronous operation method
JPS648369B2 (en)
JPH02192315A (en) Pulse generator
WO1992017832A1 (en) Local time generator for a computer
JPS6093824A (en) Pulse counter
JPH0450616B2 (en)