JPS63247805A - Measurement system for program processing time of digital controller - Google Patents
Measurement system for program processing time of digital controllerInfo
- Publication number
- JPS63247805A JPS63247805A JP62079666A JP7966687A JPS63247805A JP S63247805 A JPS63247805 A JP S63247805A JP 62079666 A JP62079666 A JP 62079666A JP 7966687 A JP7966687 A JP 7966687A JP S63247805 A JPS63247805 A JP S63247805A
- Authority
- JP
- Japan
- Prior art keywords
- processing time
- program
- data
- control
- changed
- 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
Links
- 238000005259 measurement Methods 0.000 title abstract description 4
- 238000004364 calculation method Methods 0.000 claims description 19
- 238000000034 method Methods 0.000 claims description 8
- 238000000691 measurement method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、ディジタル制御装置において、制御プログ
ラムの処理時間を経過時間測定用タイマのカウント値に
もとづいて算出するディジタル制御装置のプログラム処
理時間測定方式に関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a program processing time measurement method for a digital control device in which the processing time of a control program is calculated based on the count value of a timer for measuring elapsed time. Regarding the method.
第3図は例えば特開昭59−221710号公報に示さ
れた従来のプログラム処理時間測定方式実施のためのデ
ィジタル制御装置を示すブロック接続図でl)、図にお
いて、1は入力部で、外部接点2の状態を読み込む。3
はディジタル制御装置で、演算部4.制御内容記憶部と
してのプログラムメモリ5.演算データ記憶部としての
データメモリ6および制御プログラムの処理時間である
経過時間を測定する経過時間測定用タイマTを、それぞ
れ有する。8は出力部、9は制御対象である。FIG. 3 is a block connection diagram showing a digital control device for implementing the conventional program processing time measurement method disclosed in, for example, Japanese Patent Laid-Open No. 59-221710. In the figure, 1 is an input section, and external Read the state of contact 2. 3
is a digital control device, and has a calculation section 4. Program memory as a control content storage unit5. Each of them includes a data memory 6 as a calculation data storage section and an elapsed time measuring timer T that measures elapsed time which is the processing time of the control program. 8 is an output section, and 9 is a controlled object.
次に動作を、第4図に示すディジタル制御装置3の処理
動作を示すフローチャートに従って説明する。Next, the operation will be explained according to a flowchart showing the processing operation of the digital control device 3 shown in FIG.
まず、演算部4よシタイマスタートコマンドを出力する
処理を実行し、続いて入力部1よシ必要な外部データ、
つまシ外部接点2の作動データを読み込んで、これをデ
ータメモリ6に記憶し、さらにプログラムメモリ5のア
ドレスを初期化する(ステップ5T13)。次に、制御
プログラムの内容に対応した制御演算を演算部4で実行
処理する(ステップ8T14)。そして、この演算処理
の実行処理終了後、経過時間測定用タイマ7のカウント
の値を読み出し、その経過時間データTをデータメモリ
6に格納する。次に、この格納内容をデータメモリ6か
ら読み出すことによシ、プログラム処理の時間を測定す
ることができる(ステップ8’l’15)。なお、上記
制御演算はシーケンスプログラムを実行するものであり
、このシーケンスプログラムの殆んどが論理演算を行な
い、分岐命令が殆んどないため、入力部1にとシ込まれ
る入力信号の状態が制御プログラム処理時間に影響を及
ぼすことは殆んどない。First, the arithmetic unit 4 executes the process of outputting the start command, and then the input unit 1 outputs the necessary external data.
The operating data of the external tab contact 2 is read and stored in the data memory 6, and the address of the program memory 5 is initialized (step 5T13). Next, the calculation unit 4 executes control calculations corresponding to the contents of the control program (step 8T14). After the execution of this arithmetic processing is completed, the count value of the elapsed time measuring timer 7 is read out, and the elapsed time data T is stored in the data memory 6. Next, by reading this stored content from the data memory 6, the program processing time can be measured (step 8'l'15). Note that the above control operation is to execute a sequence program, and most of this sequence program performs logical operations and there are almost no branch instructions, so the state of the input signal input to input section 1 is There is almost no effect on control program processing time.
従来のディジタル制御装置のプログラム処理時間測定方
式は以上のようになされるので、シーケンス制御プログ
ラムのような処理時間が変動しないようなプログラムに
対して適用可能であるものの、一般のディジタル制御プ
ログラムでは、入力信号としてディジタルデータおよび
アナログデータが混在するので、これらの入力信号の状
態により制御演算の内容も変化し、その結果プログラム
処理時間も変化してしまい、ディジタル制御装置のプロ
グラム処理時間を測定するためには、制御演算の処理時
間が最大となるように入力信号を設定する必要があるな
どの問題点があった。The conventional program processing time measurement method for digital control devices is performed as described above, so it can be applied to programs where the processing time does not fluctuate, such as sequence control programs. However, in general digital control programs, Since digital data and analog data are mixed as input signals, the contents of the control calculation will change depending on the state of these input signals, and as a result, the program processing time will also change. However, there were problems such as the need to set input signals so that the processing time for control calculations was maximized.
この発明は上記のような問題点を解消するためになされ
たもので、入力信号などの演算データから、設定した処
理条件内で制御プログラムの最大処理時間を容易に求め
ることができるディジタル制御装置のプログラム処理時
間測定方式を得ることを目的とする。This invention was made to solve the above problems, and is a digital control device that can easily determine the maximum processing time of a control program within set processing conditions from calculation data such as input signals. The purpose of this study is to obtain a method for measuring program processing time.
この発明に係るディジタル制御装置のプログラム処理時
間測定方式は、経過時間測定用タイマのカウントの値か
ら制御プログラムの処理時間を算出するものにおいて、
上記制御プログラムの実行中に、上記制御演算に使われ
る入力データを変更するととによシ入力部および出力部
に応じた処理条件の変更を行ない、かつ設定された処理
条件の中で、最大処理時間を求めるようにしたものであ
る。The program processing time measurement method for a digital control device according to the present invention calculates the processing time of a control program from the count value of a timer for measuring elapsed time.
During the execution of the above control program, if the input data used for the above control calculations is changed, the processing conditions will be changed according to the input section and output section, and the maximum processing It was designed to ask for time.
この発明における制御プログラムの処理条件の変更は、
プログラミングパネルなどのツールを用いて、オンライ
ンで演算データの変更をすることにより行ない、経過時
間測定用タイマのカウント値を繰り返し読み出して、最
大処理時間を求めていくように動作する。Changing the processing conditions of the control program in this invention is as follows:
This is done by changing calculation data online using a tool such as a programming panel, and the maximum processing time is determined by repeatedly reading the count value of a timer for measuring elapsed time.
以下、この発明の一実施例を図について説明する。第1
図において、10は入力信号の1つである電圧などのア
ナログ信号、12はデータ変更を行うためのプログラミ
ングパネル、1)は演算制御部3とプログラミングパネ
ル12とのインp −フェース部である。なお、1〜9
は第3図に示すものと全く園−のものである。An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, 10 is an analog signal such as voltage, which is one of the input signals, 12 is a programming panel for changing data, and 1) is an interface between the arithmetic control section 3 and the programming panel 12. In addition, 1 to 9
is exactly the same as that shown in Figure 3.
ま友、第2図はこの発明によるプログラム処理時間測定
方式を適用したディジタル制i#装置の実行処理動作フ
ローチャートで、ステップs ’i’ 13〜15は第
4図に示すものと全く同じ処理である。Friend, FIG. 2 is a flowchart of the execution processing operation of the digital i# device to which the program processing time measuring method according to the present invention is applied, and steps s 'i' 13 to 15 are exactly the same processing as shown in FIG. 4. be.
また、ステップ8T16,17はプログラム処理時間の
最大値を求める処理、ステップ5T18はプログラミン
グパネル12からの指示に従って演算データの変更を行
う処理である。Further, steps 8T16 and 17 are processes for determining the maximum value of the program processing time, and step 5T18 is a process for changing calculation data according to instructions from the programming panel 12.
次に動作について説明する。例えば、演算データX1
、X2 、XBについて、tl>tB>tBである時の
プログラム処理内容が他の状態の時の処理内容よりも複
雑で、処理時間が長いものとする。通常の制御状態にお
いて、 tl>tB>tBなる状態を得ることが困難
な場合は、プログラミングパネル12によりtl>tB
>ts ’x満たすようなデータt1+t2+t8を、
ステップ5T19に示すようにデータメモリ6にセット
してやる。次に、タイマスタートコマンドを実行して、
経過時間測定用タイマ70カウントをスタートしくステ
ップ5T13)、この状態で制御演算を実行しくステッ
プ5T14)、この実行直後に、経過時間測定用タイマ
7から読み込まれた経過時間データTを、その演算デー
タ変更前にデータメモリ6に格納した最大処理時間Tm
axより大きいか否かを判定しくステップ5T16)、
大きいと判定された場合には、その経過時間データTを
最大処理時間T、maxとして更新し、これをデータメ
モリ6に格納する(ステップ8T17)。以下、同じ要
領で、他の演算データt41 t5 、・・・tnにつ
いても、プログラミングパネル12によシある値にセッ
トして、プログラム処理時間Tを求めることができる。Next, the operation will be explained. For example, calculation data X1
For , If it is difficult to obtain the condition tl>tB>tB in the normal control state, use the programming panel 12 to set tl>tB.
>ts 'x Data t1+t2+t8 that satisfies
It is set in the data memory 6 as shown in step 5T19. Then run the timer start command,
The elapsed time measurement timer 70 counts are started in step 5T13). In this state, the control calculation is executed in step 5T14). Immediately after this execution, the elapsed time data T read from the elapsed time measurement timer 7 is converted into the calculated data. Maximum processing time Tm stored in data memory 6 before change
Step 5T16) to determine whether it is larger than ax.
If it is determined that the elapsed time data T is large, the elapsed time data T is updated as the maximum processing time T, max, and this is stored in the data memory 6 (step 8T17). Thereafter, in the same manner, other calculation data t41 t5, . . . tn can be set to a certain value on the programming panel 12 to determine the program processing time T.
このようにして、設定されたさまざまな条件の中でのプ
ログラムの最大処理時間Tmaxを求めることができる
。In this way, the maximum processing time Tmax of the program under various set conditions can be determined.
なお、上記実施例ではプログラミングパネル12で演算
データの変更を行うことによシ、処理条件の変更を行っ
ているが、入力部1.出力部8にプラントシミュレータ
を接続し、このプラントシミュレータの状態を変化させ
ることによシ、制御演算のステップ5T14の処理条件
を変更していくことも可能でるる。In the above embodiment, the processing conditions are changed by changing the calculation data on the programming panel 12, but the input section 1. By connecting a plant simulator to the output unit 8 and changing the state of the plant simulator, it is also possible to change the processing conditions of step 5T14 of the control calculation.
以上のように、この発明によれば、制御演算の処理条件
の変更と同時に、設定した条理条件中での制御プログラ
ムの最大処理時間を求められるようにしたので、制御演
算起動タイミングの定周期性を乱さないような起動周期
(サンプリングタイム)を容易に求めることができ、デ
ィジタルデータおよびアナログデータが混在する入力信
号による制御プログラム処理時間の変化にも対応できる
ものが得られる効果がある。As described above, according to the present invention, the maximum processing time of the control program under the set conditions can be determined at the same time as the processing conditions of the control calculation are changed. It is possible to easily determine the activation period (sampling time) that does not disturb the data, and it has the advantage of being able to respond to changes in control program processing time due to input signals containing a mixture of digital data and analog data.
第1図はこの発明の一実施例によるプログラム処理時間
測定方式を実施するディジタル制御装置のブロック接続
図、第2図はそのディジタル制御装置におけるプログラ
ム処理動作を示す70−チャート、第3図は従来のディ
ジタル制御装置のブロック接続図、第4図はとのディジ
タル制御装置におけるプログラム処理動作を示すフロー
チャートである。
3はディジタル制御装置、7は経過時間測定用タイマ、
12はプログラミングパネル。
なお、図中、同一符号は同一、又°は相当部分を示す。
特許出願人 三菱電機株式会社
第 1ryJ
第 3 閃
第2図
笥 4 図FIG. 1 is a block connection diagram of a digital control device implementing a program processing time measurement method according to an embodiment of the present invention, FIG. 2 is a 70-chart showing program processing operations in the digital control device, and FIG. 3 is a conventional one. FIG. 4 is a block connection diagram of the digital control device of FIG. 4, and a flowchart showing program processing operations in the digital control device of FIG. 3 is a digital control device, 7 is a timer for measuring elapsed time,
12 is the programming panel. In addition, in the drawings, the same reference numerals indicate the same parts, or ° indicates corresponding parts. Patent Applicant Mitsubishi Electric Corporation No. 1ryJ No. 3 Sen No. 2 Figure 4
Claims (2)
測定用タイマのカウンタをスタートし、演算部における
制御演算の実行終了後、上記カウントの値を読み出して
制御プログラムの処理時間を算出するディジタル制御装
置のプログラム処理時間測定方式において、上記制御プ
ログラムの実行中に、上記制御演算に使われる入力デー
タを変更することにより処理条件の変更を行ない、設定
された処理条件の中で、最大処理時間を求めるようにし
たことを特徴とするディジタル制御装置のプログラム処
理時間測定方式。(1) By executing the timer start command, the counter of the timer for measuring elapsed time is started, and after the execution of control calculations in the calculation section is completed, the value of the above count is read out and the processing time of the control program is calculated. In the program processing time measurement method, the processing conditions are changed by changing the input data used for the control calculations while the control program is running, and the maximum processing time is determined under the set processing conditions. A method for measuring program processing time of a digital control device, characterized by:
の指示によって任意に実施するようにしたことを特徴と
する特許請求の範囲第1項記載のディジタル制御装置の
プログラム処理時間測定方式。(2) A method for measuring program processing time of a digital control device according to claim 1, wherein input data is arbitrarily changed by instructions from a programming panel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62079666A JPS63247805A (en) | 1987-04-02 | 1987-04-02 | Measurement system for program processing time of digital controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62079666A JPS63247805A (en) | 1987-04-02 | 1987-04-02 | Measurement system for program processing time of digital controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63247805A true JPS63247805A (en) | 1988-10-14 |
Family
ID=13696492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62079666A Pending JPS63247805A (en) | 1987-04-02 | 1987-04-02 | Measurement system for program processing time of digital controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63247805A (en) |
-
1987
- 1987-04-02 JP JP62079666A patent/JPS63247805A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS54114687A (en) | Sequence controller | |
US5392444A (en) | Programmable controller for completing the execution of a block of user programs within a set time period | |
US4771223A (en) | Motor speed control system | |
JPS63247805A (en) | Measurement system for program processing time of digital controller | |
JP2752514B2 (en) | Program execution method of CNC device | |
JPS5848162A (en) | System for measurement terminal response time | |
JPS59208661A (en) | Method for measuring load of computer | |
JPS62245338A (en) | Software delaying system for data processor | |
JPS62239247A (en) | Electronic computer | |
JP2656303B2 (en) | Digital protection relay | |
JPS60237503A (en) | High-speed processing system of sequence controller | |
JPS59221710A (en) | Measuring system for arithmetic processing time of sequence program | |
JPH0138692Y2 (en) | ||
JPS61183705A (en) | Operating trace processing method of programmable controller | |
SU1760396A1 (en) | Method of determination of load torque of d c electric drive | |
JPS647391Y2 (en) | ||
JPS6389251A (en) | Sequence program scanning method for sequence controller | |
JPS63195781A (en) | Digital input device | |
JPH0782370B2 (en) | Sequencer timer processor | |
JPS584453A (en) | Simplified job controlling system | |
JPS60237550A (en) | Measuring device for cpu load factor | |
JPS5819905A (en) | Counting device for sequence controller | |
JPS6388609A (en) | Sequence program monitoring method for sequence controller | |
JPS61240341A (en) | Microprogram controller | |
GB2189912A (en) | Data processing system; A.C. motor control |