JPS6186801A - Analog input processing method for digital sequence controller - Google Patents

Analog input processing method for digital sequence controller

Info

Publication number
JPS6186801A
JPS6186801A JP20796284A JP20796284A JPS6186801A JP S6186801 A JPS6186801 A JP S6186801A JP 20796284 A JP20796284 A JP 20796284A JP 20796284 A JP20796284 A JP 20796284A JP S6186801 A JPS6186801 A JP S6186801A
Authority
JP
Japan
Prior art keywords
value
timer
count value
counter
electric power
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
JP20796284A
Other languages
Japanese (ja)
Inventor
Yoshio Tsukuda
筑田 芳夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP20796284A priority Critical patent/JPS6186801A/en
Publication of JPS6186801A publication Critical patent/JPS6186801A/en
Pending legal-status Critical Current

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
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To eliminate the discordance of working between two central processors by continuing the working of a timer without resetting the timer immediately after the timer is once started even though the electric power is temporarily reduced less than a reference level. CONSTITUTION:The electric power sent from a power generator 12 is supplied to the analog input device 4 of a sequencer 1 containing two central processors 7 and 8 via a current transformer 11, a transformer 10 and a power converter 9. The electric power which changes with the lapse of time is compared with a reference level at both processors 7 and 8 respectively. The value of a counter is increased in case said electric power is larger than the reference level and the count value of an internal counter is smaller than a prescribed level and then set at the upper limit level when the count value of the internal counter is larger than the prescribed level. While the value of the counter is reduced in case the electric power is less than the reference level and the count value is not set at zero. Finally a timer is started if the final count value of the counter is larger than another prescribed level. Otherwise the above-mentioned comparison is repeated after the timer is reset.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ディジタルシーケンス制御装置のアナログ
入力処理方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an analog input processing method for a digital sequence control device.

〔従来の技術〕[Conventional technology]

従来、この種のアナログ入力処理方法として、例えばカ
タログ「三菱電力用プラントコントローラ、DCN−7
0の@2重化単位システム”」に示されたものがある。
Conventionally, as this type of analog input processing method, for example, the catalog ``Mitsubishi Electric Power Plant Controller, DCN-7
0@double unit system”.

このカタログに示されているディジタルシーケンス制御
装[(以後シーケンサという)のブロック図を第2図に
示す。図において、1はシーケンサ、2はA系のバス、
3はB系のバス、4はアナログ入力装置(AI)、5は
ディジタル入力装置(DI)、6はディジタル出力装置
(Do)、7はA系の中央処理装置(CPU)、8はB
系のCPUである。又9は電力変換器、10は変圧器(
PT)、11は変流器(CT)、12は発電機である。
A block diagram of the digital sequence control device (hereinafter referred to as sequencer) shown in this catalog is shown in FIG. In the figure, 1 is a sequencer, 2 is an A-system bus,
3 is the B system bus, 4 is the analog input device (AI), 5 is the digital input device (DI), 6 is the digital output device (Do), 7 is the A system central processing unit (CPU), 8 is the B system
This is the CPU of the system. Also, 9 is a power converter, and 10 is a transformer (
PT), 11 is a current transformer (CT), and 12 is a generator.

次に動作について説明する。発電機12の出力は第3図
に示すように時間と共に変化するもので、PTIQ、C
TI l及び電力変換器9を介してA工4にアナログ入
力信号として入力され、更にAI4により逐次ディジタ
ル信号に変換された後CPU7.8に発電機12の電力
値人として入力される。
Next, the operation will be explained. The output of the generator 12 changes with time as shown in FIG.
The signal is input as an analog input signal to the A-engine 4 via the TI l and the power converter 9, and is sequentially converted into a digital signal by the AI 4, and then input to the CPU 7.8 as the power value of the generator 12.

この電力値Aが予め設定した基準値B(第3図に点線で
示す)以上をある時間継続すれば、次のシーケンス制御
処理に移る。このような従来のアナログ入力処理方法の
フローチャートを第4図に示す。処理15では電力値A
と基準値Bとを比較し、即ちA−Bの演算をし、演算の
結果は負か、零か、正かを判別する。もし、結果が負又
は零のときはタイマ16をリセットし、結果が正のとき
はタイマ16をスタートする。これによりタイマ16が
ある時間、カウントを継続すればタイムアツプとなり、
タイマ16の出力をオンとし次のシーケンス制御処理へ
移る。このようなAI4に入力されるアナログ入力信号
(1!力値)は、第3図に示すように時々刻々変化して
いるので、CPU7とCPU8とが非同期で運転されて
いる場合は、タイミングによってはCPU7のみがタイ
マ16をりセツベレ トシ、次のサイクルでタイマ16をスタートサせるため
、CPU7,8はDO6の出力の不一致を招く結果とな
る。第3図において、1人はA系のCPU7の読み込み
の周期を示し、TBはB系のCPU8の読み込みの周期
を示す。従って、B系CPU8はm−基準値B以下とな
ったときの電力値Aを読みこみ、一方〇PU7は基準値
Bより大きいときの電力値Aを読み込むということが生
じる。
If this power value A continues to be equal to or higher than a preset reference value B (indicated by a dotted line in FIG. 3) for a certain period of time, the process moves to the next sequence control process. A flowchart of such a conventional analog input processing method is shown in FIG. In process 15, the power value A
is compared with reference value B, that is, the calculation of A-B is performed, and it is determined whether the result of the calculation is negative, zero, or positive. If the result is negative or zero, the timer 16 is reset, and if the result is positive, the timer 16 is started. As a result, if the timer 16 continues counting for a certain period of time, it will become time-up.
The output of the timer 16 is turned on and the process moves to the next sequence control process. The analog input signal (1! force value) input to AI4 changes from moment to moment as shown in Figure 3, so if CPU7 and CPU8 are operated asynchronously, it may change depending on the timing. Since only the CPU 7 resets the timer 16 and starts the timer 16 in the next cycle, the CPUs 7 and 8 result in a mismatch between the outputs of the DO6. In FIG. 3, 1 indicates the read cycle of the A-system CPU 7, and TB indicates the read cycle of the B-system CPU 8. Therefore, the B-system CPU 8 reads the power value A when m-reference value B or less, while the 〇PU7 reads the power value A when it is larger than the reference value B.

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

従来のアナログ入力処理方法は、以上のように構成され
ているので、入力した電力値の一瞬のゆらぎに応答して
タイマをリセットしてしまうので、特にタイマの設定値
が長いような場合はこのゆらぎを読み込んだ時点が、D
oの不一致を判定するタイマの設定時間より長いところ
であれば、その再カウント中にDOの不一致となり、ア
ラーム又は発電機出力のトリップへと進んでしまうとい
う問題点があった。
Conventional analog input processing methods are configured as described above, and the timer is reset in response to momentary fluctuations in the input power value, so this is especially true when the timer setting value is long. The time when the fluctuation is read is D.
If the time is longer than the set time of the timer for determining the mismatch of 0, there is a problem that a mismatch of DO will occur during the recount, resulting in an alarm or tripping of the generator output.

この発明は、上記のような従来のものの問題点を除去す
るためになされたもので、DO不一致となる確率を実用
上問題ない程度に低くしたディジタルシーケンス制御装
置のアナログ処理方法を提供することを目的とする。
The present invention was made in order to eliminate the problems of the conventional ones as described above, and it is an object of the present invention to provide an analog processing method for a digital sequence control device that reduces the probability of DO mismatch to a level that does not pose a practical problem. purpose.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るテイジタルシーケンス処理装置のアナロ
グ入力処理方法は、時間と共に変化する電力値と基準値
とを比較する処理と、この処理により上記電力値が上記
基準値より大きいと判断され、かつカウンタが所定のカ
ウント値未満のときは上記カウンタを増加させ、一方上
記電力値が上記基準値より太きいが上記カウンタが上記
カウント値以上のときは上記カウント値を上限値に設定
する処理と、上記比較する処理により上記電力値が基準
値以下と判断され、かつ上記カウント値が零でないとき
は上記カウント値を減じる処理と、上記各処理に続き、
上記カウント値が所定の他のカウント値以上のときはタ
イマをスタートさせ、そうでないときは上記タイマをリ
セットさせた後、上記比較する処理に戻る処理とを実行
するものである。
The analog input processing method for a digital sequence processing device according to the present invention includes a process of comparing a power value that changes with time with a reference value, and a process in which the power value is determined to be larger than the reference value through this process, and a counter is less than a predetermined count value, the counter is increased; on the other hand, when the power value is greater than the reference value but the counter is greater than or equal to the count value, the count value is set to an upper limit value; If the comparison process determines that the power value is less than or equal to the reference value, and the count value is not zero, the count value is subtracted, and following each of the above processes,
When the count value is greater than or equal to another predetermined count value, a timer is started; otherwise, the timer is reset, and then the process returns to the comparison process.

〔作 用〕[For production]

この発明においてはタイマが−Hスタートした後は電力
値が一時的に基準値以下となることがあってもこれによ
り直ちにタイマをリセットさせることなくタイマの動作
を進行させ、2つの中央処理装置間ておける処理の不一
致をなくす。
In this invention, even if the power value temporarily drops below the reference value after the timer starts at -H, the timer operation proceeds without immediately resetting the timer, and the timer operation is continued between the two central processing units. Eliminate inconsistencies in processing.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図はこの発明のアナログ入力処理方法を示す流れ図であ
り、既に説明した記2図のディジタルシーケンス制御装
詮により実行される。
An embodiment of the present invention will be described below with reference to the drawings. 1st
FIG. 2 is a flowchart showing the analog input processing method of the present invention, which is executed by the digital sequence control device shown in FIG. 2 described above.

第1図において、19はプログラムスタートによりカウ
ンタMをリセットする処理である。処理19の次の判断
15において電力値Aと基準値Bとを比較するべ(A−
Bを実行する。A−Bの結果が負又は零のときはM =
 Oの判M 20を実行する。M−0でらるYes と
判断されたときは判断21を、そうでないNOと判断さ
れたときはM=M−1の処理22を実行する。一方、A
−Hの結果が正かつ処理23の結果がM2Oとなったと
きはM=10の処理24をし、M2Oでないときはに1
= M +1の処理25を実行して判断21へ進む。
In FIG. 1, 19 is a process for resetting the counter M upon program start. In judgment 15 following process 19, power value A and reference value B should be compared (A-
Execute B. If the result of A-B is negative or zero, M =
Execute O's decision M20. If it is determined that M-0 is Yes, then judgment 21 is executed; otherwise, when it is determined that it is NO, processing 22 of M=M-1 is executed. On the other hand, A
- When the result of H is positive and the result of process 23 is M2O, process 24 with M=10 is performed, and when it is not M2O, it is 1
= M +1 processing 25 is executed and the process proceeds to judgment 21.

判断21によりM2SであるときはX=1の処理26t
L、 タイマ16をスタートさせる。もしM2Sでない
ときはX−00処理27をし、タイマ16をリセットす
る。タイマ16の処理後は再び判断15に戻る。
If it is M2S according to judgment 21, process 26t for X=1.
L. Start timer 16. If it is not M2S, the X-00 process 27 is performed and the timer 16 is reset. After the timer 16 has processed, the process returns to judgment 15 again.

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

以上のようにこの発明によれば、検出した電力値が基準
値を超える状態を所定期間継続したことによってタイマ
をスタートした後は、電力値が基準値以下となる状態が
一時的に生じても直ちにタイマをリセットさせることが
ないので、各中央処理装置の処理結果が不一致となるこ
とや、アナログ入力処理において好ましくない渋滞を防
止できる効果がある。
As described above, according to the present invention, after the timer is started when the detected power value continues to exceed the reference value for a predetermined period, even if the power value temporarily falls below the reference value, Since the timer is not reset immediately, it is possible to prevent the processing results of each central processing unit from being inconsistent and to prevent undesirable traffic jams in analog input processing.

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

Claims (1)

【特許請求の範囲】[Claims] 時間と共に変化する電力値と基準値とを比較する処理と
、上記比較する処理により上記電力値が上記基準値より
大きいと判断され、かつカウンタが所定のカウント値未
満のときは上記カウンタを増加させる処理と、上記比較
する処理により上記電力値が上記基準値より大きいと判
断され、かつ上記カウンタが上記所定のカウント値以上
のときは上記カウンタを上限値に設定する処理と、上記
比較する処理により上記電力値が基準値以下と判断され
、かつ上記カウント値が零でないときは上記カウント値
を減ずる処理と、上記各処理の後、上記カウント値が所
定の他のカウント値以上のときはタイマをスタートさせ
、上記カウント値が所定の他の上記カウント値未満のと
きは上記タイマをリセットさせて上記比較する処理に戻
る処理とを備えたディジタルシーケンス制御装置のアナ
ログ入力処理方法。
A process of comparing the power value that changes over time with a reference value, and incrementing the counter when the power value is determined to be greater than the reference value through the comparison process and the counter is less than a predetermined count value. and a process of setting the counter to an upper limit value when the power value is determined to be larger than the reference value by the comparison process and the counter is greater than or equal to the predetermined count value, and a process of setting the counter to an upper limit value by the comparison process. If the power value is determined to be below the reference value and the count value is not zero, the count value is decreased, and after each of the above processes, if the count value is greater than or equal to another predetermined count value, the timer is activated. An analog input processing method for a digital sequence control device, comprising: starting the count value, and resetting the timer when the count value is less than a predetermined other count value, and returning to the comparison process.
JP20796284A 1984-10-05 1984-10-05 Analog input processing method for digital sequence controller Pending JPS6186801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20796284A JPS6186801A (en) 1984-10-05 1984-10-05 Analog input processing method for digital sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20796284A JPS6186801A (en) 1984-10-05 1984-10-05 Analog input processing method for digital sequence controller

Publications (1)

Publication Number Publication Date
JPS6186801A true JPS6186801A (en) 1986-05-02

Family

ID=16548404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20796284A Pending JPS6186801A (en) 1984-10-05 1984-10-05 Analog input processing method for digital sequence controller

Country Status (1)

Country Link
JP (1) JPS6186801A (en)

Similar Documents

Publication Publication Date Title
JPH0268632A (en) Interruption controller
KR920002760B1 (en) Speed controller
JPS6186801A (en) Analog input processing method for digital sequence controller
JPH09114541A (en) Interruption generation time confirming circuit and processor
JPH0478553A (en) Line feed motor control of printer
JP2814587B2 (en) Watchdog timer
JPS6033654A (en) Inter-microprocessor data transferring system
JPS595370A (en) Processing time controlling system
JPS62113246A (en) Operation monitoring device for signal processor
JPS6329848A (en) Timing control method for computer system
JPH0683652A (en) Microcomputer system
JPH05241986A (en) Input/output instruction retrying system
JP2532072Y2 (en) Pattern generator
JP3358112B2 (en) Programmable controller
JPS6024617A (en) Timer reading-out system of electronic computer
JPH05252552A (en) Load control system
JPH04267438A (en) Double exception detector
JPH04299742A (en) Interruption controller
JPH01321811A (en) Digital protective relay
JPS63174131A (en) Interruption controller
JPH0433001A (en) Fuzzy inference device
JPS61233839A (en) Small sized arithmetic equipment
JPS63227152A (en) Signal selecting circuit
JPH05108361A (en) Fuzzy inference device
JPS592119A (en) Clock processing device