JP4338811B2 - Processing time measuring apparatus and processing time measuring method - Google Patents

Processing time measuring apparatus and processing time measuring method Download PDF

Info

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
Application number
JP7487899A
Other languages
Japanese (ja)
Other versions
JP2000267709A (en
Inventor
博明 佐藤
康典 上沼
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP7487899A priority Critical patent/JP4338811B2/en
Publication of JP2000267709A publication Critical patent/JP2000267709A/en
Application granted granted Critical
Publication of JP4338811B2 publication Critical patent/JP4338811B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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 programmable controller 100 via the common bus 104, and the program type, its generation time, Are sequentially stored in the trace memory 102, and when necessary, the program type stored in the trace memory 102 and the generation time thereof are associated with each other and displayed on the CRT display 103.
[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 programmable controller 100 outputs to the common bus 104. The data output to the common bus during each cycle such as bus hold, interrupt acknowledge, refresh, and DMA is difficult to distinguish from a program start instruction that indicates the start of program execution and a program end instruction that indicates the end of program execution It is.
[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 control unit 5 that controls the entire processing time measuring device and a newspaper page terminal device that is an example of a measurement target device. The command receiving unit 1, the status transmitting unit 2 for transmitting the status to the newspaper page system terminal device, the measurement signal receiving unit 3 for receiving the measurement signal output from the newspaper page system terminal device, and the measurement signal receiving unit 3 In response to an instruction from the signal monitoring unit 4 for monitoring the state of the measurement signal from the control unit 5 and the measurement signal monitoring information from the signal monitoring unit 4, the clock data from the clock 17 and the timer processing unit 10 A measurement processing unit 6 that acquires and measures time data, and receives information from the control unit 5 and edits information measured by the measurement processing unit 6 as a measurement state management table. In response to a command from the storage processing unit 8 and the control unit 5 to be stored, information on the measurement state management table stored in the memory 13 by the storage processing unit 8 is sent to the printer interface unit 14, the PC interface unit 15 or the FDD interface. An external device processing unit 9 that outputs to an externally connected printer, PC, or FD via the unit 16 and an operation / display processing unit 7 that performs input of the key unit 11 and output of the display unit 12 are provided. The timer processing unit 10 obtains time data from the timer counter 18.
[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 (step 1 in FIG. 5), the control unit 5 executes an initial setting process (steps 2 and 9) and a mode setting process (steps 3 and 10) in the apparatus, and receives from the communication control apparatus. Wait for reception of measurement command.
[0023]
The command frame output by the communication control device is received by the command receiving unit 1 (step 5), and the command receiving unit 1 extracts the command and parameter information and outputs them to the control unit 5 (step 6).
[0024]
The control unit 5 analyzes the command and parameter information, and instructs the measurement processing unit 6, the operation / display processing unit 7, the storage processing unit 8 and the external device processing unit 9 to perform processing corresponding to each command (step 6). , FIG. 12). The storage processing unit 8 edits the measurement information for each measurement signal output from the control unit 5, and updates, stores, and stores the measurement information in the memory 113.
[0025]
When recognizing the initialization command (step 203 in FIG. 2 and step 6 in FIG. 5), the control unit 5 initializes the measurement processing unit 6, the operation / display unit processing unit 7, the storage processing unit 8, and the external device processing unit 9. Notify instructions By this notification, the measurement processing unit 6 initializes the signal monitoring unit 4 and the timer processing unit 10. Further, the operation / display processing unit 7 initializes the key unit 11 and the display unit 12 and displays that the apparatus state has been initialized. Further, the storage processing unit 8 clears the measurement management information and initializes the information storage area, and initializes the memory 13. Further, the external device processing unit 9 initializes the interface units of the printer / interface unit 14, the PC / interface unit 15, and the FDD / interface unit 16 (steps A 1 and 13 in FIG. 6).
[0026]
When the initialization of each processing unit is completed, the control unit 5 edits the initialization response status frame and notifies the status transmission unit 2 of a status transmission instruction. The status transmission unit 2 transmits the initialization status to the communication control device (204 in FIG. 2, step A2 in FIG. 6), and completes the processing corresponding to the initialization command.
[0027]
Further, when recognizing the measurement registration command (207 in FIG. 2, step 6 in FIG. 5), the control unit 5 notifies the storage processing unit 8 of a command parameter storage instruction. The storage processing unit 8 edits, updates, and stores the first parameter, the second parameter, the third parameter, and the fourth parameter of the measurement registration command in the memory 13 as measurement management information. (Steps B1 to B3 in FIG. 7, FIG. 16) Further, the control unit 5 notifies the measurement processing unit 6 of a measurement start instruction (Step B4 in FIG. 7). The measurement processing unit 6 stores the signal name to be measured and the measurement type specified by the third parameter from the signal specification specified by the second parameter, and the measurement signal receiving unit 3 notified by the signal monitoring unit 4 Start signal status monitoring.
[0028]
When the measurement preparation of each processing unit is completed, the control unit 5 edits the measurement registration status frame and notifies the status transmission unit 2 of a status transmission instruction. The status transmission unit 2 transmits the measurement registration status to the communication control device (208 in FIG. 2, step B5 in FIG. 7). A measurement registration command is issued and processed for each signal to be measured. In FIG. 2, n measurement registration commands are issued.
[0029]
Thereafter, signal measurement processing (steps 4 and 11 in FIG. 5) is performed. In FIG. 11, the measurement processing unit 6 monitors the signal state of the measurement signal receiving unit 3 notified from the signal monitoring unit 4 (step 41), and the corresponding signal stored earlier becomes an active signal state to be measured. Then (steps 42 and 43), the millisecond and microsecond as the measurement start time are read from the timer processing unit 10 and the timer counter 18 (step 45), and the year, month, day, hour, minute and second as the measurement start time are also clocked. 17 and is notified to the control unit 5 as the start time together with the previous millisecond and microsecond (step 44). Upon receiving this notification, the control unit 5 notifies the storage processing unit 8 of the measurement start time. The storage processing unit 8 edits, stores, and stores this notification as measurement management information in the memory 13 (steps 46 and 47).
[0030]
Further, the measurement processing unit 6 monitors the signal state of the measurement signal receiving unit 3 notified from the signal monitoring unit 4, and if the corresponding signal stored earlier deviates from the active signal state to be measured (step 43). The millisecond and microsecond as the measurement end time are read out from the timer processing unit 10 and the timer counter 18, and the year, month, day, hour, minute and second as the measurement end time are read out from the clock 17, and the previous millisecond and microsecond are read out. At the same time, the control unit 5 is notified of the end time. Upon receiving this notification, the control unit 5 notifies the storage processing unit 8 of the measurement end time. The storage processing unit 8 edits, stores, and stores this notification as measurement management information in the memory 13 (step 48).
[0031]
When the control unit 5 recognizes the measurement cancellation command accompanied by the designation of the number of the measurement registration command (213 in FIG. 2 and step 6 in FIG. 5), it notifies the storage processing unit 8 of a command parameter cancellation instruction. In FIG. 2, the number # 2 of the measurement registration command is designated. The storage processing unit 8 determines an area to be canceled using the first parameter of the measurement cancellation command as a search key, and deletes, updates, and stores it from the measurement management information stored in the memory 13 (steps C1 and C2 in FIG. 7). . Further, the control unit 5 notifies the measurement processing unit 6 of a measurement cancellation instruction. The measurement processing unit 6 determines the signal name of the measurement signal receiving unit 3 to be canceled from the signal designation specified by the second parameter, and monitors the signal status of the measurement signal receiving unit 3 notified by the signal monitoring unit 4 Is released.
[0032]
When the measurement cancellation of each processing unit is completed, the control unit 5 edits the measurement cancellation status frame (steps C3 and 17 in FIG. 7), and notifies the status transmission unit 2 of a status transmission instruction (step in FIG. 7). C4). The status transmission unit 2 transmits the measurement cancellation status to the communication control device (214 in FIG. 2, step C5 in FIG. 7).
[0033]
When the control unit 5 recognizes the function stop command (217 in FIG. 2 and step 6 in FIG. 5), it notifies the storage processing unit 8 and the measurement processing unit 6 of a measurement stop instruction. The storage processing unit 8 puts the measurement management information stored in the memory 13 into a measurement stop state (step D1 in FIG. 7, FIG. 18). Further, the control unit 5 notifies the measurement processing unit 6 of a measurement stop instruction (step D2 in FIG. 7). The measurement processing unit 6 stops monitoring all signal states of the measurement signal receiving unit 3 notified by the signal monitoring unit 4. When the measurement stop of each processing unit is completed, the control unit 5 edits the function stop status frame and notifies the status transmission unit 2 of a status transmission instruction. The status transmission unit 2 transmits the function stop status to the communication control device (218 in FIG. 2, step D3 in FIG. 7).
[0034]
When the control unit 5 recognizes the print command (219 in FIG. 2 and step 6 in FIG. 5), it reads out the measurement management information stored in the memory 13 from the storage processing unit 8 and sends it to the external device processing unit 9. A print instruction is notified (steps G1 to G4 in FIG. 8). The external device processing unit 9 activates the printer interface unit 14 and prints the measurement management information. The control unit 5 edits the print status frame and notifies the status transmission unit 2 of a status transmission instruction. The status transmission unit 2 transmits the print status to the communication control device (220 in FIG. 2, step G5 in FIG. 8).
[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 step 6 in FIG. Are omitted, but are processed by the respective flowcharts in the same manner as the command processing described above.
[0036]
In each of the above operations, the control unit 5 notifies the operation / display processing unit 7 of a state display instruction indicating the operation status, and performs display on the display unit 12.
[0037]
The measurement management information stored in the memory 13 by the storage processing unit 8 includes a signal name defined by the measurement signal receiving unit 3, a measurement name code designated by the communication control device, a signal designation, a measurement type, a signal logic, and a measurement. For each item of measurement start time, measurement end time, measurement required time, and state, which are the results, the contents displayed in FIG. FIG. 20 is a time chart showing a time-series change in the signal logic value for each signal in FIG.
[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 signal monitoring unit 4 shown in FIG. 1, and the control unit 22 has the configurations and functions of the measurement signal processing unit 6 and the timer processing unit 10. The storage processing unit 25 has a function of giving a control instruction and output data to the external device processing unit 26.
[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 / counter 23, Second microsecond data is acquired and a storage instruction is notified to the storage processing unit 25.
[0042]
When the operation / display processing unit 24 detects that the input of the key unit 27 is an external device output designation, the operation / display processing unit 24 notifies the control unit 22 of the instruction. The control unit 22 notifies the storage processing unit 25 of an output instruction. Upon receiving this instruction, the storage processing unit 25 directly outputs the stored measurement information to the external device processing unit 26.
[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 memory 29.
[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 memory 29 to the designated external device by key designation. Similarly, each function selection such as initialization, measurement cancellation, and function cancellation can be selected and executed by key designation, and the detailed flow thereof is as shown in FIGS.
[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 Command Receiving Unit 2 Status Transmitting Unit 3 Measurement Signal Receiving Unit 4 Signal Monitoring Unit 5 Control Unit 6 Measurement Processing Unit 7 Operation / Display Processing Unit 8 Storage Processing Unit 9 External Device Processing Unit 10 Timer Processing Unit 11 Key Unit 12 Display Unit 13 Memory 14 Printer / Interface Unit 15 PC / Interface Unit 16 FDD / Interface Unit 17 Clock 18 Timer / Counter 21 Measurement Signal Receiving Unit 22 Control Unit 23 Timer / Counter 24 Operation / Display Processing Unit 25 Storage Processing Unit 26 External Device Processing Unit 27 Key unit 28 Display unit 29 Memory 30 Printer / interface unit 31 PC / interface unit 32 FDD / interface unit 33 Clock 201 Communication control device 202 Processing time measuring device 203 Initialization command 204 Initialization status 205 Ver request command 206 Ver response status 207 Measurement registration command (# 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 .
JP7487899A 1999-03-19 1999-03-19 Processing time measuring apparatus and processing time measuring method Expired - Fee Related JP4338811B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5310819B2 (en) 2010-11-29 2013-10-09 株式会社デンソー Microcomputer

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