JP4338811B2 - Processing time measuring apparatus and processing time measuring method - Google Patents
Processing time measuring apparatus and processing time measuring method Download PDFInfo
- Publication number
- JP4338811B2 JP4338811B2 JP7487899A JP7487899A JP4338811B2 JP 4338811 B2 JP4338811 B2 JP 4338811B2 JP 7487899 A JP7487899 A JP 7487899A JP 7487899 A JP7487899 A JP 7487899A JP 4338811 B2 JP4338811 B2 JP 4338811B2
- Authority
- JP
- Japan
- Prior art keywords
- measurement
- unit
- signal
- command
- processing 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Debugging And Monitoring (AREA)
- Programmable Controllers (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、計測対象の装置が有する機能ごとの処理時間を計測する処理時間計測装置および処理時間計測方法に関する。計測対象の装置としては、例えば、新聞紙面システムを構成する端末機器、特に、機構部の制御を行なうスキャナ,プロッタ,新聞紙画信号圧縮伸張機能を有する通信制御装置等を挙げることができる。
【0002】
【従来の技術】
この種の従来技術が、特開平3−14041号公報に、「プログラマブルコントローラのプログラム実行時間計測方法」として開示されている。
【0003】
図25は、その一実施例のブロック図を示し、プログラマブルコントローラ100におけるプログラムの実行の際のプログラムの開始および終了を共通バス104経由でプログラム検出器101で検出し、プログラム種別とその発生時刻とを順次トレースメモリ102に格納し、必要時に、トレースメモリ102に格納されているプログラム種別とその発生時刻とを対応させてCRTディスプレイ103に表示するようにしたものである。
【0004】
これにより、プログラム全体の実行速度はもとより、各プログラム個別の実行速度も容易に視認することができる。また、各プログラムの実行時間の違いを容易に確認できることにより、プログラムの負荷配分の適正を判断することができ、プログラマブルコントローラとしての品質の向上を図ることができる。さらに、各プログラムの実行順番も把握することができるため、割込プログラムによる、予測のつかないプログラム動作の適正も判断できるので、プログラム品質を短時間で容易に向上させることができる。
【0005】
【発明が解決しようとする課題】
しかしながら、上述した従来技術では、共通バス104にデータとして出力されるプログラムの実行開始を表すプログラム開始命令およびプログラムの実行終了を表すプログラム終了命令を、監視するプログラム検出器が、正しく認識できるかが実動作上疑問であるという問題点がある。その理由は、上記各命令の各フォーマット詳細が不明確であり、そして、プログラマブルコントローラ100が、共通バス104に出力するニーモニックデータ、メモリおよび外部I/Oリード・ライト、内部I/Oリード・ライト、バス・ホールド、割り込みアクノリッジ、リフレッシュ、DMA等の各サイクル時に、共通バスに出力されるデータが、プログラムの実行開始を表すプログラム開始命令およびプログラムの実行終了を表すプログラム終了命令と判別が困難だからである。
【0006】
また、プログラムが、ハードウェアを制御した結果、出力されるアクティブなレベル区間のハードウェア信号を計測することと、プログラムの実行時間を計測することを、同時に実行することが出来ないという第2の問題点がある。その理由は、プログラムの実行を計測する処理が、共通バス104に出力されるプログラム開始命令とプログラム終了命令を使用して実行しているため、計測対象をプログラムに限定していることにあるからである。
【0007】
さらに、上記第2の問題点の理由と同じ理由により、装置機能を実現するプログラムの実行時間と、ハードウェア信号の実行時間の全体を一括して計測することが出来ないという第3の問題点もある。
【0008】
本発明の目的は、計測対象装置が有する機能ごとの処理時間が正しく計測できる処理時間計測装置および処理時間計測方法を提供することにある。
【0009】
また、本発明の他の目的は、プログラムの処理時間ならびにプログラムがハードウェアを制御して出力されるハードウェア信号のアクティブな時間を計測できる処理時間計測装置および処理時間計測方法を提供することにある。
【0010】
さらに、本発明の他の目的は、処理時間を計測する対象を、外部から指定および解除することができる処理時間計測装置および処理時間計測方法を提供することにある。
【0012】
【課題を解決するための手段】
本発明の処理時間計測装置は、計測対象の装置が有する機能ごとの処理時間を計測する処理時間計測装置において、計測対象装置からコマンドフレームを受信するコマンド受信部と、コマンド受信部が受信したコマンドおよびパラメータを入力して、分析し、該当する指示を行う制御部と、計測対象装置から出力される測定対象の計測信号を受信する測定信号受信部と、測定信号受信部からの測定信号の状態を監視する信号監視部と、制御部からの測定条件を受け、また信号監視部からの測定信号監視情報を参照して、測定条件に合致した信号区間の時間を計測する測定処理部と、測定処理部が計測した情報を計測状態管理テーブルとして編集し記憶する記憶処理部およびメモリと、メモリが記憶している計測状態管理テーブルの情報を、外部接続される出力機器へ出力する外部機器処理部と、記計測対象装置へ本装置のステータスを送信するステータス送信部とを有し、プログラムの実行時間、ハードウェア出力信号およびプログラムが実現する機能毎の各処理時間を、同時に計測することを特徴とする。
【0013】
また、本発明の処理時間計測方法は、計測対象の装置が有する機能ごとの処理時間を計測する処理時間計測方法において、計測対象装置からコマンドフレームを受信する手順と、コマンド受信部が受信したコマンドおよびパラメータを入力して、分析し、該当する指示を行う手順と、計測対象装置から出力される測定対象の計測信号を受信する手順と、測定信号受信部からの測定信号の状態を監視する手順と、制御部からの測定条件を受け、また信号監視部からの測定信号監視情報を参照して、測定条件に合致した信号区間の時間を計測する手順と、測定処理部が計測した情報を計測状態管理テーブルとして編集し記憶する手順と、記憶している計測状態管理テーブルの情報を、外部接続される出力機器へ出力する手順と、計測対象装置へ本装置のステータスを送信する手順とを有し、プログラムの実行時間、ハードウェア出力信号およびプログラムが実現する機能毎の各処理時間を、同時に計測することを特徴とする。
【0015】
本発明では、制御部は、コマンドとパラメータで指定された測定信号受信部に入力される測定信号を計測するよう測定処理部へ指令する。測定処理部は、信号監視部からの情報を得て、時計およびタイマ処理部から時間情報を得ることにより、測定対象となる信号の時間計測を実行する。記憶処理部は、測定処理部が計測した計測データを制御部から受信して、計測状態管理テーブルとして記憶する。 外部機器処理部は、制御部からの指令によって、記憶処理部が記憶している計測状態管理テーブルの情報を受け、プリンタあるいはパーソナルコンピュータ(以下、PCと記す。)またはフロッピーディスク(以下、FDと記す。)へ内容を出力する。
【0016】
【発明の実施の形態】
次に、本発明の実施の形態について図面を参照して説明する。
【0017】
図1を参照すると、本発明の処理時間計測装置の実施の形態は、処理時間計測装置全体を制御する制御部5と、計測対象装置の一例である新聞紙面システム端末機器装置からコマンドを受信するコマンド受信部1と、新聞紙面システム端末機器装置へステータスを送信するステータス送信部2と、新聞紙面システム端末機器装置から出力される計測信号を受信する測定信号受信部3と、測定信号受信部3からの測定信号の状態を監視する信号監視部4と、制御部5からの指令を受けて、信号監視部4からの測定信号監視情報を参照し、時計17およびタイマ処理部10から時計データと時間データを取得し計測する測定処理部6と、制御部5からの指令を受けて、測定処理部6が計測した情報を計測状態管理テーブルとして編集しメモリ13に記憶する記憶処理部8と、制御部5からの指令を受けて、記憶処理部8がメモリ13に記憶している計測状態管理テーブルの情報を、プリンタインタフェース部14,PCインタフェース部15あるいはFDDインタフェース部16を介して、外部接続されるプリンタ,PCあるいはFDへ出力する外部機器処理部9と、キー部11の入力および表示部12の出力を行う操作・表示処理部7とを備えている。タイマ処理部10はタイマ・カウンタ18から時間データを得る。
【0018】
次に、本実施の形態の動作について詳細に説明する。
【0019】
新聞紙面システムを構成する端末機器の一例である通信制御装置(図示省略)には、各通信手順機能、圧縮伸張機能を実現する動作単位に、本処理時間計測装置が処理時間を計測する開始信号となるハードウェア信号のオンおよびハードウェア信号のオフの各処理、ならびに計測処理を指示するコマンドフレーム送信処理を予めプログラミングしておく。
【0020】
図2は、通信制御装置と本処理時間計測装置との間のコマンドおよびステータスのインタフェースを示す。処理時間計測装置は、このように、コマンドを受け、ステータスを送出しながら処理を進める。また、図3はコマンドのフォーマット(A),機能概要(B)およびコマンド内のパラメータ機能概要(C)を示し、図4はステータスのフォーマット(A),機能概要(B)およびステータス内のパラメータ(C)を示す。
【0021】
図5〜図8は、本処理時間計測装置のフローチャート、図9〜図18は、その詳細フローチャートを示す。
【0022】
制御部5は、電源投入後(図5のステップ1)、装置内の初期設定処理(ステップ2,図9)、モード設定処理(ステップ3,図10)を実行し、通信制御装置から受信する計測コマンドの受信を待つ。
【0023】
通信制御装置が出力したコマンドフレームは、コマンド受信部1で受信し(ステップ5)、コマンド受信部1は、コマンドおよびパラメータの情報を取り出し、制御部5へ出力する(ステップ6)。
【0024】
制御部5は、コマンドおよびパラメータの情報を分析し、各コマンドに該当する処理を、測定処理部6,操作・表示処理部7,記憶処理部8および外部機器処理部9へ指示する(ステップ6,図12)。記憶処理部8は、制御部5が出力する各計測信号毎に、計測情報を編集して、メモリ113へ更新、格納、記憶する。
【0025】
制御部5は、初期化コマンドを認識すると(図2のステップ203,図5のステップ6)、測定処理部6,操作・表示部処理部7,記憶処理部8および外部機器処理部9へ初期化指示を通知する。本通知によって、測定処理部6は、信号監視部4およびタイマ処理部10のイニシャライズを行う。また、操作・表示処理部7は、キー部11および表示部12のイニシャライズを行い、装置状態が初期化したことを表示する。また、記憶処理部8は、計測管理情報のクリアと情報記憶エリアの初期化を行い、メモリ13をイニシャライズする。さらに、外部機器処理部9は、プリンタ・インタフェース部14,PC・インタフェース部15およびFDD・インタフェース部16の各インタフェース部をイニシャライズする(図6のステップA1,図13)。
【0026】
制御部5は、各処理部の初期化が完了すると、初期化応答ステータスフレームを編集し、ステータス送信部2へステータスの送信指示を通知する。ステータス送信部2は、初期化ステータスを通信制御装置に送信して(図2の204,図6のステップA2)初期化コマンドに該当する処理を完了する。
【0027】
また、制御部5は、測定登録コマンドを認識すると(図2の207,図5のステップ6)、記憶処理部8にコマンドパラメータの格納指示を通知する。記憶処理部8は、測定登録コマンドの第1パラメータ、第2パラメータ、第3パラメータおよび第4パラメータを計測管理情報として、メモリ13に編集、更新および記憶する。(図7のステップB1〜B3,図16)さらに、制御部5は、測定処理部6へ測定開始指示を通知する(図7のステップB4)。測定処理部6は、第2パラメータで指定された信号指定から、測定対象となる信号名称と、第3パラメータで指定された測定種類を記憶し、信号監視部4が通知する測定信号受信部3の信号状況監視を開始する。
【0028】
制御部5は、各処理部の測定準備が完了すると、測定登録ステータスフレームを編集し、ステータス送信部2へステータスの送信指示を通知する。ステータス送信部2は、測定登録ステータスを通信制御装置に送信する(図2の208,図7のステップB5)。なお、測定登録コマンドは、測定される信号ごとに、発行され、処理される。図2では、n個の測定登録コマンドが発行されている。
【0029】
その後、信号計測処理(図5のステップ4,図11)が行われる。図11において、測定処理部6は、信号監視部4から通知される測定信号受信部3の信号状態を監視し(ステップ41)、先に記憶した該当信号が計測対象となるアクティブな信号状態になると(ステップ42,43)、タイマ処理部10およびタイマ・カウンタ18から、測定開始時刻となるミリ秒およびマイクロ秒を読み出すとともに(ステップ45)、同じく測定開始時刻となる年月日時分秒を時計17から読み、先のミリ秒およびマイクロ秒とともに、開始時刻として制御部5へ通知する(ステップ44)。制御部5は、本通知を受けて、記憶処理部8へ計測開始時刻を通知する。記憶処理部8は、本通知を、メモリ13に計測管理情報として編集、格納および記憶する(ステップ46,47)。
【0030】
さらに、測定処理部6は、信号監視部4から通知される測定信号受信部3の信号状態を監視し、先に記憶した該当信号が計測対象となるアクティブな信号状態から逸脱すると(ステップ43)、タイマ処理部10およびタイマ・カウンタ18から、測定終了時刻となるミリ秒およびマイクロ秒を読み出すとともに、同じく測定終了時刻となる年月日時分秒を時計17から読み、先のミリ秒およびマイクロ秒とともに、終了時刻として、制御部5へ通知する。制御部5は、本通知を受けて、記憶処理部8へ計測終了時刻を通知する。記憶処理部8は、本通知を、メモリ13に計測管理情報として編集,格納および記憶する(ステップ48)。
【0031】
また、制御部5は、測定登録コマンドの番号指定を伴った測定解除コマンドを認識すると(図2の213,図5のステップ6)、記憶処理部8にコマンドパラメータの解除指示を通知する。図2では、測定登録コマンドの番号#2が指定されている。記憶処理部8は、測定解除コマンドの第1パラメータを検索キーとして解除するエリアを決定し、メモリ13に記憶している計測管理情報から削除,更新および記憶する(図7のステップC1,C2)。さらに、制御部5は、測定処理部6へ測定解除指示を通知する。測定処理部6は、第2パラメータで指定された信号指定から、測定解除対象となる測定信号受信部3の信号名称を決定し、信号監視部4が通知する測定信号受信部3の信号状況監視を解除する。
【0032】
制御部5は、各処理部の測定解除が完了すると、測定解除ステータスフレームを編集し(図7のステップC3,図17)、ステータス送信部2へステータスの送信指示を通知する(図7のステップC4)。ステータス送信部2は、測定解除ステータスを通信制御装置に送信する(図2の214,図7のステップC5)。
【0033】
また、制御部5は、機能中止コマンドを認識すると(図2の217,図5のステップ6)、記憶処理部8および測定処理部6に測定中止指示を通知する。記憶処理部8は、メモリ13に記憶している計測管理情報を測定中止状態にする(図7のステップD1,図18)。さらに、制御部5は、測定処理部6へ測定中止指示を通知する(図7のステップD2)。測定処理部6は、信号監視部4が通知する測定信号受信部3のすべての信号状況監視を中止する。制御部5は、各処理部の測定中止が完了すると、機能中止ステータスフレームを編集し、ステータス送信部2へステータスの送信指示を通知する。ステータス送信部2は、機能中止ステータスを通信制御装置に送信する(図2の218,図7のステップD3)。
【0034】
また、制御部5は、印刷コマンドを認識すると(図2の219,図5のステップ6)、記憶処理部8から、メモリ13に記憶している計測管理情報を読み出し、外部機器処理部9に印刷指示を通知する(図8のステップG1〜G4)。外部機器処理部9は、プリンタ・インタフェース部14を起動して、計測管理情報を印刷する。制御部5は、印刷ステータスフレームを編集し、ステータス送信部2へステータスの送信指示を通知する。ステータス送信部2は、印刷ステータスを通信制御装置に送信する(図2の220,図8のステップG5)。
【0035】
なお、図5におけるステップ6でのコマンド解析の結果として出力されるVer要求(処理時間計測装置のバージョン通知要求)コマンド,時計データ送信要求コマンド,PC(パソコン)出力コマンド,FDコマンドのついての説明は省略するが、上述の各コマンド処理と同様に、それぞれのフローチャートによって処理される。
【0036】
上記各動作において、制御部5は、動作状況を示す状態表示指示を操作・表示処理部7へ通知して、表示部12への表示を実施する。
【0037】
また、記憶処理部8がメモリ13へ記憶する計測管理情報は、測定信号受信部3で定義される信号名称,通信制御装置から指定される測定名称コード,信号指定,測定種類,信号論理,計測した結果である計測開始時刻,計測終了時刻,計測所要時間および状態の各項目毎に、図19に表示する内容のものである。図20は、図19の信号ごとの信号論理値の時系列的な変化を示したタイムチャートである。
【0038】
次に、本発明の第2の実施の形態について図面を参照して説明する。
【0039】
図21を参照すると、本発明の処理時間計測装置の第2の実施の形態は、図1に示した実施の形態に比べて、通信制御装置との間でコマンドおよびステータスの送受信を実施しない点と、測定信号受信部21が、図1に示された信号監視部4の構成および機能を有する点と、制御部22が、測定信号処理部6およびタイマ処理部10の構成および機能を有する点と、記憶処理部25が、外部機器処理部26に制御指示および出力データを与える機能を有する点とが異なる。
【0040】
測定信号受信部21は、通信制御装置から入力する全信号の状態を監視して信号状態情報を制御部22へ通知する。
【0041】
制御部22は、測定信号受信部21から通知される全信号状態を記憶し、信号状態の変化が判明すると、時計33から、年月日時分データを取得するとともに、タイマ・カウンタ23から、ミリ秒マイクロ秒データを取得して、記憶処理部25へ記憶指示を通知する。
【0042】
操作・表示処理部24は、キー部27の入力が、外部機器出力指定であることを検出すると、制御部22へ指示を通知する。制御部22は、記憶処理部25へ出力指示を通知する。記憶処理部25は、本指示を受けると、記憶している計測情報を、外部機器処理部26に直接、出力する。
【0043】
次に、具体的な実施例についてフローチャートを参照して説明する。図22は本処理時間計測装置の流れ図であり、処理時間計測装置は、電源投入されると初期設定処理(ステップ71)およびモード設定処理(ステップ72)を実行し、信号計測処理(ステップ73)とキー指定の入力監視とを開始する(ステップ74)。
【0044】
信号計測処理では、電源投入時における全入力信号の初期信号レベルを入力および記憶し、その後の信号レベルを監視して、各信号状態の継続時間を時計およびタイマ・カウンタを用いて信号レベルが変化した時刻情報を計測し、メモリ29に記憶する。
【0045】
さらに、キー指定によって、測定登録指定を受けた場合には、該当する信号の測定を解除して、キー指定による計測を優先させる。測定名称コード,信号指定,測定種類および信号論理の各指定は、キー指定から行う。計測し記憶した情報は、キー指定によって、メモリ29から指定された外部機器に出力する。同様に、初期化,測定解除,機能中止等の各機能選択もキー指定によって選択、実行することが可能であり、その詳細フローは図23および図24に示すとおりである。
【0046】
以上、第1の実施の形態および第2の実施の形態では、通信制御装置と処理時間計測装置とでコマンドおよびステータスの送受信する場合と、送受信しない場合とについて説明したが、処理時間計測装置が、通信制御装置から、コマンドのみを受信せずに処理時間の計測を実施するような実施の形態も考えられる。
【0047】
【発明の効果】
本発明の第1の効果は、外部装置と処理時間計測装置とのコマンドおよびステータスを定義し、外部装置からの指示内容で、測定対象となるハードウェア信号を測定できることにある。その理由は、処理時間計測装置がハードウェア信号のアクティブな区間の時間を計測するため、各信号を外部装置と処理時間計測装置との間で、固定する必要がないためである。
【0048】
また、第2の効果は、プログラムの処理時間と、ハードウェア信号あるいは装置機能の各組み合わせで、処理時間を測定できることにある。その理由は、外部装置が、各測定対象となる各ハードウェア信号毎に、ソフトウェアの処理内容,装置機能あるいはハードウェア出力信号とを、予め割り付けておくことによって、プログラム自体の処理時間のみならず、プログラム実行時間と、プログラムが制御した結果としてハードウェアから出力される信号との処理時間、タイミング関連が測定できるためである。
【0049】
また、第3の効果は、計測する方法を信号毎に指定できることにある。その理由は、コマンドに付随するパラメータに、測定種類および信号論理を定義して、ハードウェア信号の波形パターンに対応しているためである。
【0050】
さらに、第4の効果は、計測した結果が、各信号変化時の時刻として、記憶しており、指定された外部機器への出力が実施できることにある。その理由は、時計とタイマ・カウンタとメモリおよび外部機器処理部を有するためである。
【図面の簡単な説明】
【図1】本発明の処理時間計測装置の第1の実施の形態のブロック図
【図2】本発明の処理時間計測装置の第1の実施の形態と通信制御装置との間におけるコマンド・ステータスのインタフェースの具体例を示す図
【図3】本発明の第1の実施の形態のコマンドの構成を表示する図
【図4】本発明の第1の実施の形態のステータスの構成を表示する図
【図5】本発明の第1の実施の形態の全体動作を表す流れ図
【図6】本発明の第1の実施の形態におけるコマンド処理の前段の流れ図
【図7】本発明の第1の実施の形態におけるコマンド処理の中段の流れ図
【図8】本発明の第1の実施の形態におけるコマンド処理の後段の流れ図
【図9】本発明の第1の実施の形態における初期設定処理の流れ図
【図10】本発明の第1の実施の形態におけるモード設定処理の詳細流れ図
【図11】本発明の第1の実施の形態における信号計測処理の詳細流れ図
【図12】本発明の第1の実施の形態におけるコマンド解析の詳細流れ図
【図13】本発明の第1の実施の形態における初期処理A1の詳細流れ図
【図14】本発明の第1の実施の形態におけるVer編集E1の詳細流れ図
【図15】本発明の第1の実施の形態における時計データ編集F1の詳細流れ図
【図16】本発明の第1の実施の形態における測定処理部測定起動編集B3の詳細流れ図
【図17】本発明の第1の実施の形態における測定処理部測定解除編集C3の詳細流れ図
【図18】本発明の第1の実施の形態における測定処理部機能中止編集D1の詳細流れ図
【図19】本発明の第1の実施の形態における計測状態管理テーブルの構成例を表示する図
【図20】図19の信号論理値の時系列的な変化を示す図
【図21】本発明の処理時間計測装置の第2の実施の形態のブロック図
【図22】本発明の第2の実施の形態の全体動作を示す流れ図
【図23】本発明の第2の実施の形態におけるコマンド処理の前段の流れ図
【図24】本発明の第2の実施の形態におけるコマンド処理の後段の流れ図
【図25】従来技術の例を示すブロック図
【符号の説明】
1 コマンド受信部
2 ステータス送信部
3 測定信号受信部
4 信号監視部
5 制御部
6 測定処理部
7 操作・表示処理部
8 記憶処理部
9 外部機器処理部
10 タイマ処理部
11 キー部
12 表示部
13 メモリ
14 プリンタ・インタフェース部
15 PC・インタフェース部
16 FDD・インタフェース部
17 時計
18 タイマ・カウンタ
21 測定信号受信部
22 制御部
23 タイマ・カウンタ
24 操作・表示処理部
25 記憶処理部
26 外部機器処理部
27 キー部
28 表示部
29 メモリ
30 プリンタ・インタフェース部
31 PC・インタフェース部
32 FDD・インタフェース部
33 時計
201 通信制御装置
202 処理時間の計測装置
203 初期化コマンド
204 初期化ステータス
205 Ver要求コマンド
206 Ver応答ステータス
207 測定登録コマンド(#1)
208 測定登録ステータス(#1)
209 測定登録コマンド(#2)
210 測定登録ステータス(#2)
211 測定登録コマンド(#n)
212 測定登録ステータス(#n)
213 測定解除コマンド(#2)
214 測定解除ステータス(#2)
215 測定登録コマンド(#2)
216 測定登録ステータス(#2)
217 機能中止コマンド
218 機能中止ステータス
219 印刷コマンド
220 印刷ステータス[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a processing time measuring apparatus and a processing time measuring method for measuring a processing time for each function of an apparatus to be measured. Examples of the measurement target device include a terminal device that constitutes a newspaper page system, in particular, a scanner, plotter, and a communication control device having a newspaper image signal compression / decompression function for controlling a mechanism unit.
[0002]
[Prior art]
This type of prior art is disclosed in Japanese Patent Application Laid-Open No. 3-14041 as “program execution time measuring method of programmable controller”.
[0003]
FIG. 25 is a block diagram showing an embodiment of the present invention. The program detector 101 detects the start and end of a program when the program is executed in the
[0004]
Thereby, not only the execution speed of the whole program but also the execution speed of each program can be easily visually confirmed. Moreover, since the difference in the execution time of each program can be easily confirmed, the appropriateness of the program load distribution can be determined, and the quality of the programmable controller can be improved. Furthermore, since the execution order of each program can be grasped, it is possible to determine the appropriateness of an unpredictable program operation by the interrupt program, so that the program quality can be easily improved in a short time.
[0005]
[Problems to be solved by the invention]
However, in the above-described prior art, whether the program detector that monitors the program start instruction indicating the execution start of the program output as data to the common bus 104 and the program end instruction indicating the execution end of the program can be correctly recognized. There is a problem that it is doubtful in actual operation. The reason is that the format details of each instruction are unclear, and the mnemonic data, the memory and external I / O read / write, and the internal I / O read / write that the
[0006]
Further, as a result of the control of the hardware, the program cannot measure the hardware signal in the output active level section and measure the execution time of the program at the same time. There is a problem. The reason is that the process for measuring the execution of the program is executed using the program start instruction and the program end instruction output to the common bus 104, and therefore the measurement target is limited to the program. It is.
[0007]
Furthermore, for the same reason as the second problem, the third problem is that the execution time of the program for realizing the device function and the entire execution time of the hardware signal cannot be measured collectively. There is also.
[0008]
An object of the present invention is to provide a processing time measuring device and a processing time measuring method capable of correctly measuring a processing time for each function of a measurement target device.
[0009]
Another object of the present invention is to provide a processing time measuring apparatus and a processing time measuring method capable of measuring a processing time of a program and an active time of a hardware signal output by the program controlling the hardware. is there.
[0010]
Furthermore, another object of the present invention is to provide a processing time measuring apparatus and a processing time measuring method capable of specifying and canceling a target for measuring a processing time from the outside.
[0012]
[Means for Solving the Problems]
The processing time measuring device of the present invention is a processing time measuring device that measures a processing time for each function of a measurement target device, a command receiving unit that receives a command frame from the measurement target device, and a command received by the command receiving unit. And a control unit for inputting and analyzing parameters and giving corresponding instructions, a measurement signal receiving unit for receiving a measurement signal of a measurement target output from the measurement target device, and a state of the measurement signal from the measurement signal receiving unit A signal monitoring unit that monitors the measurement conditions, a measurement processing unit that receives the measurement conditions from the control unit and refers to the measurement signal monitoring information from the signal monitoring unit, and measures the time of the signal section that matches the measurement conditions, and the measurement Storage processing unit and memory that edit and store information measured by the processing unit as a measurement state management table, and information on the measurement state management table stored in the memory And an external device processing unit to output to a connected the output device, and a status transmission unit for transmitting the status of the device to the serial measurement target device, the execution time of a program, each function of the hardware output signal and a program to realize Each processing time is measured simultaneously .
[0013]
The processing time measuring method of the present invention is a processing time measuring method for measuring a processing time for each function of a measurement target device, a procedure for receiving a command frame from the measurement target device, and a command received by the command receiving unit. And a procedure for inputting and analyzing the parameters and giving the corresponding instructions, a procedure for receiving the measurement signal of the measurement target output from the measurement target device, and a procedure for monitoring the state of the measurement signal from the measurement signal receiving unit And the measurement condition from the control unit, and the measurement signal monitoring information from the signal monitoring unit is referenced to measure the time of the signal section that matches the measurement condition, and the measurement processing unit measures the information Procedure for editing and storing as a state management table, procedure for outputting stored measurement state management table information to an externally connected output device, And a step of transmitting the status of the location, execution time of the program, a hardware output signal and program the processing time of each function realizing, characterized by measuring at the same time.
[0015]
In the present invention, the control unit instructs the measurement processing unit to measure the measurement signal input to the measurement signal receiving unit specified by the command and the parameter. The measurement processing unit obtains information from the signal monitoring unit, and obtains time information from the clock and timer processing unit, thereby performing time measurement of the signal to be measured. The storage processing unit receives the measurement data measured by the measurement processing unit from the control unit and stores it as a measurement state management table. The external device processing unit receives information of the measurement state management table stored in the storage processing unit in response to a command from the control unit, and receives a printer, a personal computer (hereinafter referred to as PC), or a floppy disk (hereinafter referred to as FD). The contents are output to.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Next, embodiments of the present invention will be described with reference to the drawings.
[0017]
Referring to FIG. 1, an embodiment of a processing time measuring device of the present invention receives commands from a
[0018]
Next, the operation of the present embodiment will be described in detail.
[0019]
A communication control device (not shown), which is an example of a terminal device constituting the newspaper page system, has a start signal for the processing time measuring device to measure the processing time for each operation unit that realizes each communication procedure function and compression / decompression function. Each process of turning on the hardware signal and turning off the hardware signal and the command frame transmission process instructing the measurement process are programmed in advance.
[0020]
FIG. 2 shows a command and status interface between the communication control device and the processing time measuring device. In this way, the processing time measuring device receives the command and advances the process while sending the status. FIG. 3 shows a command format (A), a function overview (B), and a parameter function overview (C) in the command. FIG. 4 shows a status format (A), a function overview (B), and parameters in the status. (C) is shown.
[0021]
5 to 8 are flowcharts of the processing time measuring apparatus, and FIGS. 9 to 18 are detailed flowcharts thereof.
[0022]
After the power is turned on (
[0023]
The command frame output by the communication control device is received by the command receiving unit 1 (step 5), and the
[0024]
The
[0025]
When recognizing the initialization command (step 203 in FIG. 2 and
[0026]
When the initialization of each processing unit is completed, the
[0027]
Further, when recognizing the measurement registration command (207 in FIG. 2,
[0028]
When the measurement preparation of each processing unit is completed, the
[0029]
Thereafter, signal measurement processing (
[0030]
Further, the
[0031]
When the
[0032]
When the measurement cancellation of each processing unit is completed, the
[0033]
When the
[0034]
When the
[0035]
Note that the Ver request (processing time measuring device version notification request) command, clock data transmission request command, PC (personal computer) output command, and FD command output as a result of command analysis in
[0036]
In each of the above operations, the
[0037]
The measurement management information stored in the
[0038]
Next, a second embodiment of the present invention will be described with reference to the drawings.
[0039]
Referring to FIG. 21, the second embodiment of the processing time measuring device of the present invention does not perform transmission / reception of commands and status with the communication control device as compared with the embodiment shown in FIG. 1. The measurement signal receiving unit 21 has the configuration and functions of the
[0040]
The measurement signal receiving unit 21 monitors the states of all signals input from the communication control device and notifies the control unit 22 of signal state information.
[0041]
The control unit 22 stores all signal states notified from the measurement signal receiving unit 21. When a change in the signal state is found, the control unit 22 acquires year / month / day / hour / minute data from the clock 33, and from the timer /
[0042]
When the operation /
[0043]
Next, specific examples will be described with reference to flowcharts. FIG. 22 is a flowchart of the processing time measuring apparatus. When the processing time measuring apparatus is turned on, the processing time measuring apparatus executes an initial setting process (step 71) and a mode setting process (step 72), and a signal measuring process (step 73). And input monitoring with key designation are started (step 74).
[0044]
In signal measurement processing, the initial signal levels of all input signals at power-on are input and stored, the subsequent signal levels are monitored, and the signal level changes using a clock and timer counter for the duration of each signal state. The measured time information is measured and stored in the
[0045]
Further, when the measurement registration designation is received by the key designation, the measurement of the corresponding signal is canceled to give priority to the measurement by the key designation. Each designation of measurement name code, signal designation, measurement type and signal logic is performed from the key designation. The measured and stored information is output from the
[0046]
As described above, in the first embodiment and the second embodiment, the case where the communication control device and the processing time measurement device transmit and receive commands and statuses and the case where they are not transmitted and received have been described. An embodiment in which the processing time is measured without receiving only a command from the communication control device is also conceivable.
[0047]
【The invention's effect】
A first effect of the present invention is that commands and statuses of an external device and a processing time measuring device are defined, and a hardware signal to be measured can be measured with instructions from the external device. The reason is that since the processing time measuring device measures the time of the active section of the hardware signal, it is not necessary to fix each signal between the external device and the processing time measuring device.
[0048]
The second effect is that the processing time can be measured by each combination of the processing time of the program and the hardware signal or device function. The reason is that not only the processing time of the program itself, but also the external device assigns the software processing contents, device functions or hardware output signals in advance for each hardware signal to be measured. This is because the processing time and timing relation between the program execution time and the signal output from the hardware as a result of the program control can be measured.
[0049]
The third effect is that a measurement method can be designated for each signal. The reason is that the measurement type and signal logic are defined in the parameters associated with the command and correspond to the waveform pattern of the hardware signal.
[0050]
Furthermore, the fourth effect is that the measured result is stored as the time when each signal changes, and can be output to a designated external device. The reason is that it has a clock, a timer / counter, a memory, and an external device processing unit.
[Brief description of the drawings]
FIG. 1 is a block diagram of a first embodiment of a processing time measuring apparatus according to the present invention. FIG. 2 is a command status between the first embodiment of a processing time measuring apparatus according to the present invention and a communication control apparatus. FIG. 3 is a diagram showing a command configuration according to the first embodiment of the present invention. FIG. 4 is a diagram displaying a status configuration according to the first embodiment of the present invention. FIG. 5 is a flowchart showing the overall operation of the first exemplary embodiment of the present invention. FIG. 6 is a flowchart of the first stage of command processing in the first exemplary embodiment of the present invention. FIG. 8 is a flowchart of the second stage of command processing in the first embodiment of the present invention. FIG. 9 is a flowchart of initial setting processing in the first embodiment of the present invention. 10 In the first embodiment of the present invention Detailed flow chart of mode setting process FIG. 11 Detailed flow chart of signal measurement process in the first embodiment of the present invention. FIG. 12 Detailed flow chart of command analysis in the first embodiment of the present invention. FIG. 14 is a detailed flowchart of the initial processing A1 in the first embodiment of the invention. FIG. 14 is a detailed flowchart of Ver editing E1 in the first embodiment of the invention. FIG. 15 is a timepiece in the first embodiment of the invention. Detailed flowchart of data editing F1 FIG. 16 is a detailed flowchart of measurement processing unit measurement activation editing B3 in the first embodiment of the present invention. FIG. 17 is a measurement processing unit measurement cancellation editing in the first embodiment of the present invention. Detailed flow chart of C3 FIG. 18 is a detailed flow chart of measurement processing unit function stop editing D1 in the first embodiment of the present invention. FIG. 19 is a measurement state management table in the first embodiment of the present invention. FIG. 20 is a diagram showing a time-series change in the signal logic value of FIG. 19. FIG. 21 is a block diagram of the second embodiment of the processing time measuring apparatus of the present invention. FIG. 23 is a flowchart showing the overall operation of the second embodiment of the present invention. FIG. 23 is a flowchart of the previous stage of command processing in the second embodiment of the present invention. FIG. 24 is a flowchart of the second embodiment of the present invention. Flow chart of the latter stage of command processing [FIG. 25] Block diagram showing an example of the prior art
1
208 Measurement registration status (# 1)
209 Measurement registration command (# 2)
210 Measurement registration status (# 2)
211 Measurement registration command (#n)
212 Measurement registration status (#n)
213 Measurement release command (# 2)
214 Measurement release status (# 2)
215 Measurement registration command (# 2)
216 Measurement registration status (# 2)
217 Function stop command 218 Function stop status 219 Print command 220 Print status
Claims (2)
計測対象装置からコマンドフレームを受信するコマンド受信部と、
前記コマンド受信部が受信したコマンドおよびパラメータを入力して、分析し、該当する指示を行う制御部と、
前記計測対象装置から出力される測定対象の計測信号を受信する測定信号受信部と、
前記測定信号受信部からの測定信号の状態を監視する信号監視部と、
前記制御部からの測定条件を受け、また前記信号監視部からの測定信号監視情報を参照して、前記測定条件に合致した信号区間の時間を計測する測定処理部と、
前記測定処理部が計測した情報を計測状態管理テーブルとして編集し記憶する記憶処理部およびメモリと、
該メモリが記憶している計測状態管理テーブルの情報を、外部接続される出力機器へ出力する外部機器処理部と、
前記計測対象装置へ本装置のステータスを送信するステータス送信部とを有し、
プログラムの実行時間、ハードウェア出力信号およびプログラムが実現する機能毎の各処理時間を、同時に計測することを特徴とする処理時間計測装置。In the processing time measuring device that measures the processing time for each function of the device to be measured,
A command receiver for receiving a command frame from the measurement target device;
A command unit that receives and analyzes the command and parameters received by the command receiving unit, and performs a corresponding instruction;
A measurement signal receiving unit that receives a measurement signal of a measurement target output from the measurement target device;
A signal monitoring unit for monitoring the state of the measurement signal from the measurement signal receiving unit;
A measurement processing unit that receives measurement conditions from the control unit and refers to measurement signal monitoring information from the signal monitoring unit, and measures a time of a signal section that matches the measurement conditions;
A storage processing unit and a memory for editing and storing information measured by the measurement processing unit as a measurement state management table;
An external device processing unit that outputs information of a measurement state management table stored in the memory to an externally connected output device;
A status transmission unit that transmits the status of the apparatus to the measurement target apparatus;
A processing time measuring apparatus for simultaneously measuring a program execution time, a hardware output signal, and each processing time for each function realized by the program .
計測対象装置からコマンドフレームを受信する手順と、
前記コマンド受信部が受信したコマンドおよびパラメータを入力して、分析し、該当する指示を行う手順と、
前記計測対象装置から出力される測定対象の計測信号を受信する手順と、
前記測定信号受信部からの測定信号の状態を監視する手順と、
前記制御部からの測定条件を受け、また前記信号監視部からの測定信号監視情報を参照して、前記測定条件に合致した信号区間の時間を計測する手順と、
前記測定処理部が計測した情報を計測状態管理テーブルとして編集し記憶する手順と、
前記記憶している計測状態管理テーブルの情報を、外部接続される出力機器へ出力する手順と、
前記計測対象装置へ本装置のステータスを送信する手順とを有し、
プログラムの実行時間、ハードウェア出力信号およびプログラムが実現する機能毎の各処理時間を、同時に計測することを特徴とする処理時間計測方法。 In the processing time measurement method for measuring the processing time for each function of the measurement target device,
A procedure for receiving a command frame from the measurement target device;
A procedure for inputting and analyzing the command and parameters received by the command receiving unit, and performing a corresponding instruction;
A procedure of receiving a measurement signal of a measurement target output from the measurement target device;
A procedure for monitoring the state of the measurement signal from the measurement signal receiver;
A procedure for measuring the time of a signal section that meets the measurement condition, receiving the measurement condition from the control unit and referring to the measurement signal monitoring information from the signal monitoring unit;
A procedure for editing and storing information measured by the measurement processing unit as a measurement state management table;
A procedure for outputting the stored measurement state management table information to an externally connected output device;
A procedure for transmitting the status of the apparatus to the measurement target apparatus,
A processing time measuring method characterized by simultaneously measuring a program execution time, a hardware output signal, and each processing time for each function realized by the program .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7487899A JP4338811B2 (en) | 1999-03-19 | 1999-03-19 | Processing time measuring apparatus and processing time measuring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7487899A JP4338811B2 (en) | 1999-03-19 | 1999-03-19 | Processing time measuring apparatus and processing time measuring method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000267709A JP2000267709A (en) | 2000-09-29 |
JP4338811B2 true JP4338811B2 (en) | 2009-10-07 |
Family
ID=13560056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7487899A Expired - Fee Related JP4338811B2 (en) | 1999-03-19 | 1999-03-19 | Processing time measuring apparatus and processing time measuring method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4338811B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5310819B2 (en) | 2010-11-29 | 2013-10-09 | 株式会社デンソー | Microcomputer |
-
1999
- 1999-03-19 JP JP7487899A patent/JP4338811B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2000267709A (en) | 2000-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1703348B1 (en) | Programmable controller system | |
JP6488830B2 (en) | Control device | |
EP2787442A1 (en) | Controller, information processing apparatus, and program | |
JP4338811B2 (en) | Processing time measuring apparatus and processing time measuring method | |
US20020161944A1 (en) | Programmable controller | |
JP2000035864A (en) | Printing controller | |
KR20200101682A (en) | Electronic device and control method thereof | |
JP2005141532A (en) | System debugging device | |
JP2002259162A (en) | Support system for development of equipment control software | |
JPH05257852A (en) | Process data processing system and processing method | |
JP4341387B2 (en) | Printer simulator and printer simulation method | |
JP2738173B2 (en) | Diagnostic system for stand-alone equipment | |
JPH0752384B2 (en) | Printer device | |
JP2004280305A (en) | Device for programmable controller, programmable controller, and method for transferring data | |
JP2908337B2 (en) | VHDL simulation execution system for multi-process | |
JP2639927B2 (en) | Test method for control device in data processing system | |
JP3977694B2 (en) | Reset device | |
JP2005084820A (en) | Controller comprising simulating functions of input/output unit | |
JPH08324035A (en) | Information processing device, printing device, printing system and method of selecting printer driver of printing system | |
JP2001216018A (en) | Image inspection system and schedule adjusting device | |
JP2679661B2 (en) | SCSI system | |
JPWO2020079720A1 (en) | Programmable logic controllers, external devices, methods, and programs | |
JP2007141138A (en) | Information processing apparatus | |
JP2000148227A (en) | Display device | |
JP2002258910A (en) | Programmable controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060106 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081119 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081121 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090119 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090622 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090701 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120710 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |