JP3646286B2 - Simulation device - Google Patents

Simulation device Download PDF

Info

Publication number
JP3646286B2
JP3646286B2 JP5737199A JP5737199A JP3646286B2 JP 3646286 B2 JP3646286 B2 JP 3646286B2 JP 5737199 A JP5737199 A JP 5737199A JP 5737199 A JP5737199 A JP 5737199A JP 3646286 B2 JP3646286 B2 JP 3646286B2
Authority
JP
Japan
Prior art keywords
signal
unit
state
peripheral
simulation
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
JP5737199A
Other languages
Japanese (ja)
Other versions
JP2000259221A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP5737199A priority Critical patent/JP3646286B2/en
Publication of JP2000259221A publication Critical patent/JP2000259221A/en
Application granted granted Critical
Publication of JP3646286B2 publication Critical patent/JP3646286B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Control By Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Feedback Control In General (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、シミュレーションのため被シミュレーション装置に対し疑似信号を出力するシミュレーション装置、シミュレーション方法、及びサンプリング装置に関するものである。
【0002】
【従来の技術】
従来、シミュレータでは、シミュレーションの際に、実機との接続を解除し、被シミュレーション装置に対してシミュレーションのための接続を行った後に、シミュレータから疑似信号を与えることにより、シミュレーションを行っていた。また、被シミュレーション装置側からの信号入力に際しても、実機の接続にデータ入力用の接続を追加したり、シミュレーション用の接続からデータ入力用の接続への変更を行った後、データの入力を行っていた。また、このような入力データとシミュレーション時の疑似信号とは独立しており、互いにその流用性がない。
【0003】
【発明が解決しようとする課題】
本発明の目的は、実機における動作、シミュレーション動作及びデータ入力動作において被シミュレーション装置とシミュレータとの接続を変更することなく、シミュレーション及びデータの各入力を行うことができるとともに、入力したデータをシミュレーションのための疑似信号に利用できるシミュレーション装置、シミュレーション方法及びサンプリング装置を提供することである。
【0004】
【課題を解決するための手段】
上記課題を達成するため、本発明のシミュレーション装置は、プログラムを実行する中央処理装置部と、この中央処理装置部と信号線を介して接続された周辺部とを有する被シミュレーション装置に対してシミュレーションするためのシミュレーション装置において、前記中央処理装置部または前記周辺部に疑似信号を出力する疑似信号出力部を有する情報処理手段と、前記中央処理装置部と前記周辺部との間の前記信号線に設けられ、前記中央処理装置部と前記周辺部とを電気的に接続する第1状態と、前記中央処理装置部または前記周辺部と前記疑似信号出力部とを電気的に接続する第2状態とを、前記情報処理手段からの制御信号に基づいて切り替えることができる第1の切替手段とを具備することを特徴とする。
【0005】
本発明によれば、情報処理手段からの制御信号に基づいて第1の切替手段により第1の状態と第2の状態とを切り替えることができるので、被シミュレーション装置に対してシミュレーション等を行う際に信号線の接続を変更するようなことは不要となり、シミュレーションによるプログラムや周辺部等の動作確認やデータ入力等が簡単に行える。なお、周辺部は、プログラムを実行するCPU等の中央処理装置部と信号線を介して接続された部材であるが、読込系と出力系とがある。読込系の周辺部とは、中央処理装置部に対して情報信号を与えるもの、即ち、中央処理装置部が周辺部から情報信号を取得するものであり、例えば各種センサである。また、出力系の周辺部とは、中央処理装置部から駆動信号が与えられるもの、即ち、中央処理装置部からの駆動信号に基づいて駆動されるものであり、例えばモータ、ソレノイド、LED等である。更に、周辺部として、読込系と出力系とを兼ね備えた、例えば他の中央処理装置部と情報信号(例えば、シリアル信号、パラレル信号)の授受を行う他のCPU等の中央処理装置がある。
【0006】
また、前記情報処理手段は、前記第1の切替手段が前記第1状態のときに前記疑似信号出力部から疑似信号を出力するとともに、前記第1の切替手段を前記第1状態から前記第2状態ヘと切り替える前記制御信号を前記第1の切替手段へ出力することを特徴とする。これによれば、シミュレーションのための疑似信号を出力すると、制御信号が第1の切替手段に出力して第2状態とするから、切替を自動的に行うことができ、また確実に第2状態として疑似信号を中央処理装置部または周辺部に出力することができ、誤動作防止が実現できる。
【0007】
また、前記情報処理手段は、前記第1の切替手段が前記第1状態のときに前記疑似信号出力部から疑似信号を出力した後に、前記第1の切替手段を前記第1状態から前記第2状態ヘと切り替える制御信号を前記第1の切替手段へ出力することを特徴とする。これによれば、より確実に第2状態として疑似信号を中央処理装置部または周辺部に出力することができ、誤動作防止の実現を更に図ることができる。
【0008】
また、前記情報処理手段からの制御信号にかかわらず前記第1の切替手段を前記第1状態に維持させることが可能な第1の強制選択手段を具備することを特徴とする。これによれば、第1の強制選択手段により第1状態が強制的に選択されると安全手段として動作し、ノイズ等に起因して制御信号が誤って情報処理手段から出力しても第2状態に切り替わらないから、中央処理装置部の動作を確認することができる。
【0009】
また、前記周辺部からの信号を擬似した仮信号を出力する仮信号出力部を更に具備し、前記仮信号出力部は、前記周辺部に替えて前記第1の切替手段に電気的に接続されることを特徴とする。これによれば、周辺部が接続されていない場合や周辺部がない場合であってもシミュレーションを行うことができる。
【0010】
また、前記周辺部と前記第1の切替手段とを電気的に接続する第3の状態と、前記仮信号出力部と前記第1の切替手段とを電気的に接続する第4の状態とを切り替えることができる第2の切替手段を更に具備することを特徴とする。これによれば、第2の切替手段により第4状態に切り替えられて仮信号出力からの仮疑似信号が、第1状態の第1の切替手段を介して中央処理装置部または周辺部に入力できる。
【0011】
また、前記第2の切替手段は、前記情報処理手段からの制御信号に基づいて前記第3状態と前記第4状態とに切り替えることが可能であり、前記情報処理手段からの制御信号にかかわらず前記第2の切替手段を前記第3状態に維持させることが可能な第2の強制選択手段を有することを特徴とする。これにより、第2の強制選択手段は、上述の第1の強制選択手段と同様に安全手段として動作し、周辺部等の誤動作を防止できる。
【0012】
また、前記情報処理手段は、前記中央処理装置部からの信号または前記周辺部からの信号が入力される信号入力部を有することを特徴とする。この信号入力部に信号が入力することにより、データのサンプリングができ、またシミュレーションのための接続を確認することができる。
【0013】
また、前記情報処理手段は、前記信号入力部から入力された信号に対して修正を加えた信号を疑似信号として前記疑似信号出力部から出力するとともに、前記第1の切替手段を前記第2状態に切り替える制御信号を出力することを特徴とする。これにより、信号入力部に人力された信号に基づいて信号修正手段で所定の信号に修正された疑似信号によりシミュレーションを行うことができる。
【0014】
また、前記周辺部と前記信号入力部とを電気的に接続する第5状態と、前記疑似信号出力部と前記信号入力部とを電気的に接続する第6状態とを切り替えることができる第3の切替手段を更に具備し、前記第1の切替手段が前記第1状態のとき、前記第3の切替手段を前記第5状態にするように前記第3の切替手段を制御することを特徴とする。これにより、中央処理装置部と周辺部とが接続した状態で、第3の切替手段により第5状態とされ信号入力部に中央処理装置部または周辺部からの信号が入力することによって、被シミュレーション装置が実際に動作している状態でデータを取得できる。これにより、実際の中央処理装置部または周辺部からの信号を確認等できる。
【0015】
また、前記周辺部と前記信号入力部とを電気的に接続する第5状態と、前記疑似信号出力部と前記信号入力部とを電気的に接続する第6状態とを切り替えることができる第3の切替手段を有し、前記第1の切替手段が前記第2状態のとき、前記第3の切替手段を前記第6状態にするように前記第3の切替手段を制御することを特徴とする。これにより、中央処理装置部または周辺部と前記疑似信号出力部とが接続した状態で、第3の切替手段により第6状態とされ疑似信号出力部からの疑似信号が信号入力部にも入力することにより、中央処理装置部または周辺部でシミュレーションを行いながら動作データ等を全て取得することが可能となる。
【0016】
また、前記被シミュレーション装置が複数の周辺部を有し、前記複数の周辺部に対応して前記第1の切替手段及び前記信号入力部を複数設け、前記情報処理手段は、前記複数の信号入力部から入力された複数の信号のうち修正が加えられなかった信号に対応する第1の切替手段を前記第1状態に切り替える制御信号を出力することを特徴とする。これにより、修正されなかった信号に対応する周辺部は中央処理装置部と接続され、被シミュレーション装置の実際の動作を行い、修正の加えられた信号に対応する他の周辺部は修正された信号によりシミュレーションできる。
【0017】
また、前記被シミュレーション装置が複数の周辺部を有し、前記複数の周辺部に対応して前記第1の切替手段及び前記信号入力部を複数設け、前記情報処理手段は、前記複数の信号入力部から入力された複数の信号のうち修正が加えられなかった信号に対応する第1の切替手段を、前記第2状態に切り替える制御信号を出力するとともに、前記修正が加えられなかった信号を疑似信号として前記疑似信号出力部から出力することを特徴とする。これにより、修正されなかった信号によりシミュレーションできる。従って、被シミュレーション装置からの信号そのままに周辺部でシミュレーションできるとともに、上述の修正された信号によるシミュレーションを加えることにより、他の周辺部で修正された信号によるシミュレーションを行うことができる。
【0018】
また、前記被シミュレーション装置が複数の周辺部を有し、前記複数の周辺部に対応して前記信号入力部を複数設け、前記複数の前記信号入力部から入力された信号のサンプリングがそれぞれ基準のクロックに基づいて行われることを特徴とする。これによれば、複数の入力信号がサンプリングされる際に、このサンプリングが基準のクロックで動作するから、同一の基準時間でサンプリングを行うことができ、複数の入力信号のサンプリングを時間的に正確に行うことができる。
【0019】
また、前記被シミュレーション装置が複数の周辺部を有し、前記複数の周辺部に対応して、前記第1の切替手段と、前記疑似信号出力部又は/及び前記信号入力部とを複数設け、前記疑似信号出力部からの疑似信号の出力と、前記信号入力部から入力された信号のサンプリングがそれぞれ基準に対応したクロックで動作されることを特徴とする。これによれば、入力信号のサンプリングのみならず、疑似信号の出力も基準クロックで行われるから、同一の基準時間で疑似出力信号が出力でき、入力信号のサンプリング及び疑似出力信号の出力が時間的に正確に行われる。
【0020】
また、前記中央処理装置部が前記周辺部に対し、駆動信号の出力、情報信号の取得及び情報信号の授受の少なくとも1つを行うことができる。
【0021】
また、本発明のシミュレーション方法は、プログラムを実行する中央処理装置部が信号線を介して周辺部に対し、駆動信号の出力、情報信号の取得及び情報信号の授受の少なくとも1つを行う被シミュレーション装置に対してシミュレーションするシミュレーション方法において、前記被シミュレーション装置が前記中央処理装置部によって前記周辺部に対して駆動信号の出力、情報信号の取得または情報信号の授受を行っているときの信号を読み取り、前記読み取った信号に対して修正を加えた信号を疑似信号として前記中央処理装置部或いは前記周辺部に出力してシミュレーションすることを特徴とする。
【0022】
本発明によれば、中央処理装置部と周辺部との間の駆動信号の出力、情報信号の取得または情報信号の授受による信号に修正を加えた信号に基づいてシミュレーションできる。
【0023】
また、前記被シミュレーション装置が複数の周辺部を有し、前記中央処理装置部によって前記複数の周辺部のそれぞれに対して駆動信号の出力、情報信号の取得または情報の授受を行っているときのそれぞれの信号を読み取り、前記読み取った信号に対して修正を加えた信号、及び前記読み取った信号に対して修正を加えなかった信号を疑似信号として、前記中央処理装置部または前記周辺部に出力してシミュレーションするようにできる。これにより、修正信号及び無修正信号の両方によりシミュレーションできるから、被シミュレーション装置からの信号でシミュレーションできるとともに、この信号に修正を加えた信号によりシミュレーションを行うことができる。
【0024】
また、前記被シミュレーション装置が複数の周辺部を有し、前記中央処理装置部によって前記複数の周辺部のそれぞれに対して駆動信号の出力、情報信号の取得または情報の授受を行っているときのそれぞれの信号を読み取り、前記読み取った信号に対して修正を加えた信号を疑似信号として前記中央処理装置部または前記周辺部に出力するとともに、前記読み取った信号に対して修正を加えなかった信号に対応する前記中央処理装置と前記周辺部との信号の出力、取得または授受は、前記前記中央処理装置及び前記周辺部からの信号を用いてシミュレーションするようにできる。これにより、被シミュレーション装置からの信号そのままに周辺部等でシミュレーションできるとともに、上述の修正信号によるシミュレーションを加えることにより、他の周辺部等で修正信号によるシミュレーションを行うことができる。
【0025】
また、前記被シミュレーション装置が複数の周辺部を有し、前記中央処理装置部によって前記複数の周辺部のそれぞれに対して駆動信号の出力、情報信号の取得または情報信号の授受を行っているときのそれぞれの信号を読み取る際、複数の信号のサンプリングがそれぞれ基準のクロックに基づいて行われることを特徴とする。これにより、駆動信号や情報信号等の複数の信号のサンプリングをそれぞれ基準のクロックで動作させることができ、複数の入力信号のサンプリングを時間的に正確に行うことができる。
【0026】
また、前記被シミュレーション装置が複数の周辺部を有し、前記被シュミレート装置をシュミレーションしているとき、前記中央処理装置部及び/又は前記周辺部に疑似信号を出力しながら、疑似信号を出力しない前記中央処理装置部及び/又は前記周辺部からは信号をサンプリングし、疑似信号の出力と、信号のサンプリングのそれぞれとは、基準のクロックに基づいて行われることを特徴とする。これにより、入力信号のサンプリングのみならず、疑似信号の出力も基準のクロックで行われるから、入力信号のサンプリング及び疑似出力信号の出力が時間的に正確に行われる。
【0027】
また、前記基準のクロックとは、同一のクロックであることを特徴とする。これにより、同一クロックを基準として上述のサンプリング及び出力を行うことができる。
【0028】
また、本発明のサンプリング装置は、プログラムを実行する中央処理装置部が、信号線を介して、複数の周辺部に駆動信号の出力、情報信号の取得または情報信号の授受をそれぞれ行う被サンプリング装置に対して、前記中央処理装置と前記複数の周辺装置との間の信号をサンプリングするサンプリング装置において、前記中央処理装置と前記複数の周辺装置との間の複数の信号のサンプリングがそれぞれ基準のクロックに基づいて行われることを特徴とする。
【0029】
本発明によれば、被サンプリング装置からの複数の信号のサンプリングを基準のクロックにより行うことができるから、複数の入力信号のサンプリングを時間的に正確に行うことができる。なお、情報処理のための情報処理手段を備え、この情報処理手段が、一定条件になったらトリガすることにより、データをサンプリングするトリガ機能を有するようにしてもよい。
【0030】
また、前記基準のクロックとは、同一のクロックであることを特徴とする。これにより、同一クロックを基準として上述のサンプリングを行うことができる。また、プログラムを実行する中央処理装置部が、信号線を介して、複数の周辺部に駆動信号の出力、情報信号の取得または情報信号の授受をそれぞれ行う被シュミレート装置に対して、シュミレーションするシュミレーション装置において、前記中央処理装置に及び/又は前記複数の周辺部のいずれかに疑似信号を出力しながら、前記中央処理装置と前記複数の周辺部との間の信号をサンプリングするとともに、前記疑似信号の出力と前記信号のサンプリングは、基準のクロックに基づいて行われることを特徴とする。これにより、入力信号のサンプリングのみならず、疑似信号の出力も基準のクロックで行われるから、入力信号のサンプリング及び疑似出力信号の出力が時間的に正確に行われる。
【0031】
また、前記基準のクロックとは、同一のクロックであることを特徴とする。これにより、同一クロックを基準として上述のサンプリング及び出力を行うことができる。
【0032】
【発明の実施の形態】
以下、本発明による実施の形態について図面を用いて説明する。図1は本実施の形態を示すブロック図である。図1のシミュレーション装置10は、被シミュレーション装置1に対して疑似信号を出力して被シミュレーション装置1の動作確認を行うように構成したものである。この被シミュレーション装置1は、所定のプログラムを有しそのプログラムを実行するCPU等から構成される中央処理装置部2と、例えばセンサ等を含み種々の情報を検知する読込系としての第1の周辺部3と、この検知情報に基づく中央処理装置部2からの指示に従い種々の動作を行う例えばモータ等を含む出力系としての第2の周辺部4とを有する。第1の周辺部は複数のセンサ等を備えてよく、第2の周辺部4はモータ、ソレノイド、LEDをそれぞれ備えてよい。なお、被シミュレーション装置の周辺部として、中央処理装置部2と電気的に接続された他の装置内のCPU等であってもよい。また、被シミュレーション装置で中央処理装置部のみとなった状態(周辺部がない状態)でもシミュレーションは可能である。
【0033】
シミュレーション装置10は、被シミュレーション装置1の第1の周辺部3から信号が入力され中央処理装置部2及び周辺部4に対し疑似信号を出力するパーソナルコンピュータ(PC)等から構成される情報処理手段11を備える。情報処理手段11は、被シミュレーション装置1の第1及び第2の周辺部3,4と接続され所定の信号が入力する信号入力部12と、基準クロック信号を出力するクロック信号発生部13と、信号入力部12からの信号に基づいて基準クロック信号によりタイミングをとられてシミュレーションのための疑似信号を出力する疑似信号出力部15と、シミュレーションのための仮信号を出力する仮信号出力部18と、信号入力部12からの信号に基づいて信号を加工して修正する修正手段14、信号入力部12から入力された信号及び修正した信号を記憶するハードディスクやRAM等の記憶手段9とを備える。修正手段14は、例えば情報処理手段11のキーボード等の入力手段から構成でき、キーボードから信号を修正するようにできる。信号入力部12,疑似信号出力部15,及び仮信号出力部18は、それぞれ複数の周辺部に対応して複数備えてよい。また、情報処理手段11はデータの収集(サンプリング)時に一定条件になったらトリガすることにより、データを収集するトリガ機能を有する。なお、記憶手段9としてフロッピディスク等の磁気記録媒体や光ディスク等の光記録媒体を用いてもよく、情報処理手段11にこれらの記録媒体の駆動部を備えることができる。
【0034】
また、シミュレーション装置10は、情報処理手段11からの制御信号Aに基づき第1の強制選択手段21によりその切替動作が制御される第1の切替手段としてのスイッチ16,17と、情報処理手段11からの制御信号Bに基づき第2の強制選択手段22によりその切替動作が制御される第2の切替手段としてのスイッチ19と、報処理手段11からの制御信号Cに基づいて制御される第3の切替手段としてのスイッチ20とを更に備える。
【0035】
第1の切替手段としてのスイッチ16は、中央処理装置部2に対して第1の周辺部3からの信号を入力させるよう接続する第1状態と、疑似信号出力部15からの信号を入力させるよう接続する第2状態とを電気的に切り替え、また、同じくスイッチ17は、中央処理装置部2からの指示信号を第2の周辺部4に入力させるよう接続する第1状態と、疑似信号出力部15からの疑似信号を第2の周辺部4に入力させる接続する第2状態とを電気的に切り替える。
【0036】
また、第2の切替手段のスイッチ19は、スイッチ16が第1状態のとき周辺部3からの信号が中央処理装置部2に入力するように接続する第3状態と、スイッチ16が第1状態のとき仮信号出力部18からの仮信号が中央処理装置部2に入力するように接続する第4状態と、を電気的に切り替える。
【0037】
また、第3の切替手段のスイッチ20は、周辺部3からの信号が信号入力部12に入力するように接続する第5状態と、疑似信号出力部15からの疑似信号が信号入力部12に入力するように接続する第6状態と、を電気的に切り替える。次に、図1のシミュレーション装置10の動作について説明する。図2に、図1のシミュレーション装置10により、被シミュレーション装置1が複写機の場合に行うことのできるサンプリング及びシミュレーションの例を示す。図2では中央処理装置部の対象としての本体センサとは図1の周辺部(読込系)であり、本体負荷とは周辺部(出力系)である。
【0038】
図2のように、No.1は通常のコピー動作時のデータの収集(サンプリング)であり、No.2−1は複写機のアイドリング時の周辺部3(読込系)のシュミレーション、No.2−2は複写機の周辺部3(読込系)のシュミレーションである。No.3−1は複写機のアイドリング時で周辺部がない場合のシュミレーション、No.3−2は周辺部がない場合のシュミレーションである。No.4−1は複写機のアイドリング時の周辺部4(出力系)のシュミレーション、No.4−2は複写機の周辺部4(出力系)のシュミレーションである。
【0039】
まず、No.1の通常のコピー動作時のデータの収集(サンプリング)について説明する。図1を参照して、スイッチ16を第1状態に、スイッチ19を第3状態に、スイッチ20を第5状態に、スイッチ17を第1状態にそれぞれ切り替えることにより、センサ等の周辺部(読込系)3からの信号が中央処理装置部2に入力し、中央処理装置部2からモータ等の周辺部(出力系)4に対し指示信号が出力する。これは、通常の複写機における制御であるが、センサ等の周辺部(読込系)3からの信号が、第5状態のスイッチ20を介して信号入力部12に入力する。この入力信号を記憶手段9において記憶することにより周辺部(読込系)3及び周辺部(出力系)4からの信号をサンプリングでき、記憶手段9に記憶できる。また、このサンプリングし記憶された信号を修正手段14により修正(加工)することができ、この修正された信号を記憶手段9に記憶できる。なお、このサンプリングは、クロック信号発生部13からの同一の基準クロックに同期して行われるが、基準クロックに基づいたそれぞれのクロック信号によって行ってもよい。従って、複数の信号が時系列的に入力してもサンプリングが基準クロックに基づいて行われるので、時間的に正確になる。また、複数の信号入力部にそれぞれ信号が入力する場合、各サンプリングが基準クロックに基づいて行われるので、各信号を時間的に正確に比較することができる。
【0040】
次に、No.2−1の複写機のアイドリング時の周辺部3(読込系)のシュミレーションでは、No.1と同様のサンプリングが行われ、アイドリング時の動作データを取得することができる。
【0041】
また、No.2−2の周辺部3(読込系)のシュミレーションでは、No.1と同様のサンプリング行われデータを収集してから、スイッチ16を第2状態に、スイッチ20を第6状態に、スイッチ17を第1状態にそれぞれ切り替えることにより、周辺部3(読込系)の信号の疑似信号が中央処理装置部2に入力し、この疑似信号に基づく中央処理装置部2からの信号により周辺部4のモータ等が動作し、シュミレーションが行われるとともに、この疑似信号が信号入力部12に入力するので、動作データを取得することができる。なお、スイッチ19は、第3状態、第4状態のいずれであってもよい。
【0042】
次に、No.3−1の複写機のアイドリング時で周辺部がない場合のシュミレーションでは、スイッチ16を第1状態に、スイッチ19を第4状態に、スイッチ17を第1状態にそれぞれ切り替えることにより、仮信号出力部15から仮信号が中央処理装置部2に入力し、この仮信号に基づく中央処理装置部2からの信号が別の信号入力部12aに入力することにより、データをサンプリングし記憶部9で記憶できる。なお、スイッチ20はいずれの状態であってよい。
【0043】
また、No.3−2の周辺部がない場合のシュミレーションでは、スイッチ16を第2状態に、スイッチ20を第6状態に、スイッチ17を第1状態にそれぞれ切り替えることにより、疑似信号出力部15からの疑似信号が中央処理装置部2に入力し、この疑似信号に基づく中央処理装置部2からの信号が別の信号入力部12aに入力するとともに、この疑似信号が信号入力部12に入力するので、動作データを取得することができる。なお、スイッチ19はいずれの状態であってよい。また、スイッチ16を第1状態に、スイッチ19を第4状態に、スイッチ17を第1状態にそれぞれ切り替えることにより、仮信号出力部15から仮信号が中央処理装置部2に入力し、仮信号に基づく中央処理装置部2からの信号が別の信号入力部12aに入力することにより、データをサンプリングし記憶部9で記憶できる。このように仮信号によれば、シミュレーションのために信号を加工(修正)する工程を省くことができ、シミュレーション工程が短縮でき、好ましい。なお、周辺部がない場合に、第2の周辺部4に出た信号をタイミングチャートレコーダで記録することによりその信号を確認するようにしてもよい。
【0044】
次に、No.4−1の複写機のアイドリング時の周辺部4(出力系)のシュミレーションでは、No.1と同様のサンプリングが行われ、アイドリング時の動作データを取得することができる。
【0045】
また、No.4−2の複写機の周辺部4(出力系)のシュミレーションでは、No.1と同様のサンプリング行われデータを収集してから、スイッチ16を第2状態に、スイッチ20を第6状態に、スイッチ17を第1の状態にそれぞれ切り替えることにより、疑似信号が中央処理装置部2に入力し、この疑似信号に基づく中央処理装置部2からの信号により周辺部4のモータ等が動作し、シュミレーションが行われるとともに、この疑似信号が信号入力部12に入力するので、動作データを取得することができる。なお、スイッチ19は、第3状態、第4状態のいずれであってもよい。また、以上の状態で、スイッチ17を第2の状態に切り替えることにより、別の疑似信号出力部15aから疑似信号が周辺部4(出力系)に入力し、周辺部4のモータ等をこの疑似信号により作動させることにより、シュミレーションが行われる。
【0046】
以上のように、本実施の形態のシミュレーション装置10によれば、切り替え手段16,19,20,17を切り替えるだけで、被シミュレーション装置1とシミュレーション装置10との接続を変更することなくシミュレーション動作を容易に行うことができる。このため、シミュレーションを行う度に従来のように被シミュレーション装置との接続を解除してから被シミュレーション装置にシミュレーションのための接続を別途行うような動作は不要となり、シミュレーションを簡単に行うことができる。
【0047】
なお、疑似信号の出力をクロック信号発生部13からの基準クロックに同期するようにでき、これにより正確なタイミングで疑似信号が中央処理装置部2に入力するから、シミュレーションが時間的に正確になり、好ましい。
【0048】
また、信号修正手段14で信号入力部12からの信号に基づいて信号データを加工し修正することにより、被シミュレーション装置1で実際に動作しない動作信号をも疑似信号として出力することが可能となり、中央処理装置部2及び第2の周辺部4においてそれらの動作を確認できる。
【0049】
また、上述のような第1状態でシミュレーション中に周辺部3,4からの信号を信号入力部12が取り込んでデータ入力させることにより、情報処理手段11の記憶手段9に例えば周辺部3,4からの信号を記憶させることができる。これにより、周辺部3等からの信号を任意に確認することができる。
【0050】
また、複数の信号入力部のうちの12,12a以外の信号入力部に対しては中央処理装置部2,周辺部4からの各信号を入力させることにより、無修正の信号でシミュレーションを行うことができる。従って、信号入力部12,12aに入力した信号により、信号修正手段14による修正信号でシミュレーションができるとともに、無修正の信号でもシミュレーションが可能となり、シミュレーションの行える範囲が広がり好ましい。
【0051】
なお、本実施の形態において、被シミュレーション装置1として、複写機、ファクシミリ装置、プリンタ、これらの画像形成装置に備えられるソータやADF(記録紙自動反転装置)、その他中央処理装置(CPUやMPU)が組み込まれる装置一般が考えられる。
【0052】
次に、図1に示すようなスイッチ16、17の切替を強制的に選択できる第1の強制選択手段21及びスイッチ19の切替を強制的に選択できる第2の強制選択手段22について、図3(a),(b)によりその具体例を説明する。
【0053】
図3(a)に示す第1の強制選択手段21の例は、図1の第1の切替手段のスイッチ16と情報処理手段11との間に配置されAND回路31とスイッチ32とを備える。情報処理手段11から制御信号AがAND回路31の入力端子31bに入力し電圧がH(high)であり、スイッチ32が開であると基準端子31aでも電圧がH(high)であるため、出力端子31cの電圧がH(high)となり、スイッチ16が切り替わる。ここで、スイッチ32を閉にすると基準端子31aの基準電圧がL(low)になるため、出力端子31cがL(low)になり、スイッチ16が切り替わることはない。このようにして、情報処理手段11から誤って信号が出されてもその信号により誤ったシミュレーションが行われ被シミュレーション装置が誤作動を起こすことを防止できる。
【0054】
また、図3(b)の例は、図3(a)の構成にAND回路33及び確認用ダイオード34を追加したものである。制御信号Aは出力したがスイッチ16には入力していない(AND回路31の出力端子31cの電圧がL(low)である)状態において、AND回路33の入力端子33bの電圧がL(low)であり、基準端子33aの電圧はH(high)であるため、端子33cの電圧はL(low)となり、ダイオード34に電流が流れて発光する。このダイオード34の発光により、情報処理手段11から制御信号Aが出力されているが、スイッチ16が切り替わっていないことを確認できる。そして、ダイオード34からの光が消えるから、スイッチ16が切り替わったことを確認できる。なお、以上の強制選択手段の例は、図1の第2の強制選択手段22にも適用することができる。
【0055】
以上、本発明を実施の形態を参照して説明してきたが、本発明は上記実施の形態に限定して解釈されるべきではなく、適宜変更・改良が可能であることはもちろんである。例えば、シミュレーション装置と被シミュレーション装置とにそれぞれコネクタ部を設けておき、コードにより常時接続させておくことができる。
【0056】
【発明の効果】
本発明によれば、実機における動作、シミュレーション動作及びデータ入力動作において被シミュレーション装置とシミュレータとの接続を変更することなく、シミュレーション及びデータの各入力を行うことができ、入力したデータをシミュレーションのための疑似信号に利用できるシミュレーション装置、シミュレーション方法及びサンプリング装置を提供できる。
【図面の簡単な説明】
【図1】本発明の実施の形態によるシミュレーション装置のブッロク図である。
【図2】図1のシミュレーション装置により、被シミュレーション装置が複写機の場合に行うことのできるサンプリング及びシミュレーションの例及び各スイッチの状態を示す図である。
【図3】図1のシミュレーション装置の強制選択手段の具体例(a),(b)を示す図である。
【符号の説明】
1 被シミュレーション装置
2 中央処理装置部、CPU
3 第1の周辺部(読込系)
4 第2の周辺部(出力系)
10 シミュレーション装置
11 情報処理手段
12 信号入力部
12a 別の信号入力部
13 クロック信号発生部
14 信号修正手段
15 疑似信号出力部
15a 別の疑似信号出力部
16、17 スイッチ(第1の切替手段)
18 仮信号入力部
19 スイッチ(第2の切替手段)
20 スイッチ(第3の切替手段)
21 第1の強制選択手段
22 第2の強制選択手段
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a simulation apparatus, a simulation method, and a sampling apparatus that output a pseudo signal to a simulation target apparatus for simulation.
[0002]
[Prior art]
Conventionally, in a simulator, a simulation is performed by releasing a connection with an actual machine and connecting a simulation target device for simulation and then giving a pseudo signal from the simulator. Also, when inputting signals from the simulated device side, input data after adding a connection for data input to the connection of the actual machine or changing from a connection for simulation to a connection for data input. It was. Moreover, such input data and the pseudo signal at the time of simulation are independent, and there is no applicability to each other.
[0003]
[Problems to be solved by the invention]
The object of the present invention is to allow each input of simulation and data without changing the connection between the simulation target device and the simulator in the operation in the actual machine, the simulation operation and the data input operation. It is to provide a simulation device, a simulation method, and a sampling device that can be used for a pseudo signal.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, a simulation apparatus of the present invention simulates a simulation target apparatus having a central processing unit that executes a program and a peripheral unit connected to the central processing unit through a signal line. In the simulation apparatus, the information processing means having a pseudo signal output unit for outputting a pseudo signal to the central processing unit or the peripheral unit, and the signal line between the central processing unit and the peripheral unit A first state in which the central processing unit and the peripheral unit are electrically connected; and a second state in which the central processing unit or the peripheral unit and the pseudo signal output unit are electrically connected. And a first switching means capable of switching based on a control signal from the information processing means.
[0005]
According to the present invention, the first switching unit can be switched between the first state and the second state based on the control signal from the information processing unit. It is not necessary to change the connection of the signal line, and it is possible to easily confirm the operation of the program by the simulation, the peripheral part, etc., data input, and the like. The peripheral part is a member connected to a central processing unit such as a CPU for executing a program through a signal line, and there are a reading system and an output system. The peripheral part of the reading system is an element that gives an information signal to the central processing unit, that is, the central processing unit that acquires an information signal from the peripheral part, for example, various sensors. Further, the peripheral portion of the output system is a device to which a driving signal is given from the central processing unit, that is, a device driven based on the driving signal from the central processing unit, such as a motor, solenoid, LED, etc. is there. Further, as a peripheral unit, there is a central processing unit such as another CPU that has both a reading system and an output system, and exchanges information signals (for example, serial signals and parallel signals) with another central processing unit.
[0006]
The information processing means outputs a pseudo signal from the pseudo signal output unit when the first switching means is in the first state, and also changes the first switching means from the first state to the second state. The control signal for switching to a state is output to the first switching means. According to this, when a pseudo signal for simulation is output, the control signal is output to the first switching means to be in the second state, so that the switching can be automatically performed and the second state is surely achieved. As a result, a pseudo signal can be output to the central processing unit or the peripheral part, and malfunction prevention can be realized.
[0007]
Further, the information processing means outputs the first switching means from the first state to the second state after outputting the pseudo signal from the pseudo signal output unit when the first switching means is in the first state. A control signal for switching to a state is output to the first switching means. According to this, the pseudo signal can be more reliably output to the central processing unit section or the peripheral section as the second state, and the prevention of malfunction can be further achieved.
[0008]
Further, the present invention is characterized by comprising first forcible selection means capable of maintaining the first switching means in the first state regardless of a control signal from the information processing means. According to this, when the first state is forcibly selected by the first forcible selection means, it operates as a safety means, and even if the control signal is erroneously output from the information processing means due to noise or the like, the second state Since the state is not switched, the operation of the central processing unit can be confirmed.
[0009]
In addition, a temporary signal output unit that outputs a temporary signal that simulates a signal from the peripheral part is further provided, and the temporary signal output part is electrically connected to the first switching unit instead of the peripheral part. It is characterized by that. According to this, a simulation can be performed even when the peripheral part is not connected or when there is no peripheral part.
[0010]
A third state in which the peripheral portion and the first switching means are electrically connected; and a fourth state in which the temporary signal output portion and the first switching means are electrically connected. A second switching means that can be switched is further provided. According to this, the temporary switching signal from the temporary signal output that is switched to the fourth state by the second switching unit can be input to the central processing unit or the peripheral unit via the first switching unit in the first state. .
[0011]
The second switching means can switch between the third state and the fourth state based on a control signal from the information processing means, regardless of the control signal from the information processing means. It has 2nd forced selection means which can maintain said 2nd switching means in said 3rd state, It is characterized by the above-mentioned. As a result, the second forcible selection means operates as a safety means in the same manner as the first forcible selection means described above, and can prevent malfunctions in the peripheral portion and the like.
[0012]
The information processing means includes a signal input unit to which a signal from the central processing unit or a signal from the peripheral unit is input. By inputting a signal to this signal input unit, data can be sampled and connection for simulation can be confirmed.
[0013]
The information processing means outputs a signal obtained by modifying the signal input from the signal input section as a pseudo signal from the pseudo signal output section, and sets the first switching means to the second state. A control signal for switching to is output. Thereby, it is possible to perform a simulation by using a pseudo signal that has been corrected to a predetermined signal by the signal correction unit based on the signal manually input to the signal input unit.
[0014]
Further, a third state can be switched between a fifth state in which the peripheral portion and the signal input portion are electrically connected and a sixth state in which the pseudo signal output portion and the signal input portion are electrically connected. Switching means, and when the first switching means is in the first state, the third switching means is controlled to bring the third switching means into the fifth state. To do. As a result, when the central processing unit and the peripheral unit are connected, the third switching unit sets the fifth state, and a signal from the central processing unit or the peripheral unit is input to the signal input unit. Data can be acquired while the device is actually operating. Thereby, the signal from the actual central processing unit or the peripheral part can be confirmed.
[0015]
Further, a third state can be switched between a fifth state in which the peripheral portion and the signal input portion are electrically connected and a sixth state in which the pseudo signal output portion and the signal input portion are electrically connected. Switching means, and when the first switching means is in the second state, the third switching means is controlled so that the third switching means is in the sixth state. . As a result, in a state in which the central processing unit or the peripheral portion and the pseudo signal output unit are connected, the sixth switching state is set by the third switching means, and the pseudo signal from the pseudo signal output unit is also input to the signal input unit. As a result, it is possible to acquire all the operation data and the like while performing the simulation in the central processing unit or the peripheral part.
[0016]
In addition, the simulation target device has a plurality of peripheral portions, and a plurality of the first switching means and the signal input portions are provided corresponding to the plurality of peripheral portions, and the information processing means includes the plurality of signal inputs. The control signal which switches the 1st switching means corresponding to the signal which was not corrected among the some signals input from the part to the said 1st state is output. As a result, the peripheral portion corresponding to the uncorrected signal is connected to the central processing unit, and the actual operation of the simulation target device is performed, and the other peripheral portions corresponding to the corrected signal are corrected signals. Can be simulated.
[0017]
In addition, the simulation target device has a plurality of peripheral portions, and a plurality of the first switching means and the signal input portions are provided corresponding to the plurality of peripheral portions, and the information processing means includes the plurality of signal inputs. A control signal for switching the first switching means corresponding to the signal that has not been corrected among the plurality of signals input from the unit to the second state, and the signal that has not been corrected is simulated The signal is output from the pseudo signal output unit as a signal. As a result, the simulation can be performed using a signal that has not been corrected. Accordingly, the simulation can be performed in the peripheral portion without changing the signal from the simulation target device, and the simulation using the signal corrected in the other peripheral portion can be performed by adding the simulation using the corrected signal described above.
[0018]
In addition, the simulation target device has a plurality of peripheral portions, a plurality of the signal input portions are provided corresponding to the plurality of peripheral portions, and sampling of signals input from the plurality of signal input portions is a reference. It is performed based on a clock. According to this, when a plurality of input signals are sampled, the sampling is performed with the reference clock, so that the sampling can be performed with the same reference time, and the sampling of the plurality of input signals is accurately performed in time. Can be done.
[0019]
Further, the simulation target device has a plurality of peripheral parts, and a plurality of the first switching means and the pseudo signal output part or / and the signal input part are provided corresponding to the plurality of peripheral parts, The output of the pseudo signal from the pseudo signal output unit and the sampling of the signal input from the signal input unit are each operated with a clock corresponding to the reference. According to this, since not only the sampling of the input signal but also the output of the pseudo signal is performed by the reference clock, the pseudo output signal can be output in the same reference time, and the sampling of the input signal and the output of the pseudo output signal are temporally performed. Exactly done.
[0020]
The central processing unit can output at least one of a drive signal, an information signal, and an information signal to the peripheral part.
[0021]
In the simulation method of the present invention, a central processing unit that executes a program performs at least one of output of a drive signal, acquisition of an information signal, and transmission / reception of an information signal to a peripheral part via a signal line. In a simulation method for simulating an apparatus, the simulation target apparatus reads a signal when the central processing unit performs output of a drive signal, acquisition of an information signal, or transmission / reception of an information signal to the peripheral unit. A signal obtained by correcting the read signal is output as a pseudo signal to the central processing unit or the peripheral unit for simulation.
[0022]
According to the present invention, simulation can be performed based on a signal obtained by modifying a signal obtained by outputting a drive signal between the central processing unit and the peripheral unit, obtaining an information signal, or sending and receiving an information signal.
[0023]
In addition, the simulation target device has a plurality of peripheral portions, and the central processing unit portion outputs a drive signal, acquires an information signal, or exchanges information with respect to each of the plurality of peripheral portions. Each signal is read, and a signal obtained by correcting the read signal and a signal obtained by correcting the read signal are output as pseudo signals to the central processing unit or the peripheral unit. Can be simulated. As a result, the simulation can be performed using both the correction signal and the uncorrected signal, so that the simulation can be performed using the signal from the simulation target device and the simulation can be performed using the signal obtained by correcting the signal.
[0024]
In addition, the simulation target device has a plurality of peripheral portions, and the central processing unit portion outputs a drive signal, acquires an information signal, or exchanges information with respect to each of the plurality of peripheral portions. Each signal is read, and a signal obtained by correcting the read signal is output as a pseudo signal to the central processing unit or the peripheral unit, and the read signal is not corrected. The output, acquisition, or exchange of signals between the corresponding central processing unit and the peripheral unit can be simulated using signals from the central processing unit and the peripheral unit. As a result, the simulation can be performed in the peripheral portion or the like without changing the signal from the simulation target device, and the simulation using the correction signal can be performed in another peripheral portion or the like by adding the simulation using the above-described correction signal.
[0025]
In addition, the simulation target device has a plurality of peripheral portions, and the central processing unit portion outputs a drive signal, acquires an information signal, or transfers an information signal to each of the plurality of peripheral portions. When each of the signals is read, a plurality of signals are sampled based on a reference clock. As a result, sampling of a plurality of signals such as drive signals and information signals can be operated with the reference clock, respectively, and sampling of the plurality of input signals can be performed accurately in time.
[0026]
In addition, when the simulation target device has a plurality of peripheral portions and the simulation target device is being simulated, a pseudo signal is not output while a pseudo signal is output to the central processing unit and / or the peripheral portion. Signals are sampled from the central processing unit and / or the peripheral unit, and pseudo signal output and signal sampling are performed based on a reference clock. Thereby, not only the sampling of the input signal but also the output of the pseudo signal is performed with the reference clock, so that the sampling of the input signal and the output of the pseudo output signal are accurately performed in time.
[0027]
Further, the reference clock is the same clock. Thereby, the above sampling and output can be performed with the same clock as a reference.
[0028]
The sampling device of the present invention is a sampled device in which a central processing unit that executes a program outputs a drive signal, acquires an information signal, or sends and receives an information signal to a plurality of peripheral parts via a signal line. On the other hand, in the sampling device for sampling signals between the central processing unit and the plurality of peripheral devices, sampling of the plurality of signals between the central processing unit and the plurality of peripheral devices is a reference clock, respectively. It is performed based on.
[0029]
According to the present invention, since sampling of a plurality of signals from the sampled device can be performed with a reference clock, sampling of a plurality of input signals can be performed accurately in time. Note that information processing means for information processing may be provided, and this information processing means may have a trigger function for sampling data by triggering when certain conditions are met.
[0030]
Further, the reference clock is the same clock. Thereby, the above sampling can be performed with the same clock as a reference. Also, a simulation is performed in which a central processing unit that executes a program simulates a simulated device that outputs a drive signal, acquires an information signal, or transmits and receives an information signal to a plurality of peripheral units via a signal line. In the apparatus, while outputting a pseudo signal to the central processing unit and / or to any of the plurality of peripheral parts, a signal between the central processing unit and the plurality of peripheral parts is sampled, and the pseudo signal And the sampling of the signal is performed based on a reference clock. Thereby, not only the sampling of the input signal but also the output of the pseudo signal is performed with the reference clock, so that the sampling of the input signal and the output of the pseudo output signal are accurately performed in time.
[0031]
Further, the reference clock is the same clock. Thereby, the above sampling and output can be performed with the same clock as a reference.
[0032]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing this embodiment. The simulation apparatus 10 in FIG. 1 is configured to output a pseudo signal to the simulation target apparatus 1 to check the operation of the simulation target apparatus 1. The simulated apparatus 1 includes a central processing unit 2 configured by a CPU or the like having a predetermined program and executing the program, and a first peripheral as a reading system that detects various information including, for example, sensors. Part 3 and a second peripheral part 4 as an output system including, for example, a motor that performs various operations in accordance with instructions from central processing unit 2 based on this detection information. The first peripheral portion may include a plurality of sensors and the like, and the second peripheral portion 4 may include a motor, a solenoid, and an LED, respectively. The peripheral part of the simulation target apparatus may be a CPU or the like in another apparatus that is electrically connected to the central processing unit 2. Further, the simulation is possible even in a state where only the central processing unit portion is present in the simulation target device (there is no peripheral portion).
[0033]
The simulation apparatus 10 is an information processing means composed of a personal computer (PC) or the like that receives a signal from the first peripheral section 3 of the simulated apparatus 1 and outputs a pseudo signal to the central processing section 2 and the peripheral section 4. 11 is provided. The information processing means 11 is connected to the first and second peripheral parts 3 and 4 of the simulation target apparatus 1 and receives a signal input part 12 for inputting a predetermined signal; a clock signal generation part 13 for outputting a reference clock signal; A pseudo signal output unit 15 that outputs a pseudo signal for simulation based on a signal from the signal input unit 12 and that is timed by a reference clock signal, and a temporary signal output unit 18 that outputs a temporary signal for simulation And a correction means 14 for processing and correcting the signal based on the signal from the signal input section 12, and a storage means 9 such as a hard disk or RAM for storing the signal input from the signal input section 12 and the corrected signal. The correction means 14 can be constituted by an input means such as a keyboard of the information processing means 11, for example, and the signal can be corrected from the keyboard. A plurality of signal input units 12, pseudo signal output units 15, and provisional signal output units 18 may be provided corresponding to a plurality of peripheral units. Further, the information processing means 11 has a trigger function for collecting data by triggering when a certain condition is met during data collection (sampling). Note that a magnetic recording medium such as a floppy disk or an optical recording medium such as an optical disk may be used as the storage means 9, and the information processing means 11 may be provided with a drive unit for these recording media.
[0034]
In addition, the simulation apparatus 10 includes switches 16 and 17 as first switching means whose switching operation is controlled by the first forced selection means 21 based on the control signal A from the information processing means 11, and the information processing means 11. The switch 19 as the second switching means whose switching operation is controlled by the second forcible selection means 22 based on the control signal B from the control signal 3 and the third controlled by the control signal C from the information processing means 11 And a switch 20 as switching means.
[0035]
The switch 16 as the first switching means inputs a signal from the pseudo signal output unit 15 and a first state in which the central processing unit 2 is connected to input a signal from the first peripheral unit 3. The switch 17 is electrically switched to the second state, and the switch 17 is also connected to the second peripheral unit 4 to input the instruction signal from the central processing unit 2 to the pseudo signal output. The second state of connection in which the pseudo signal from the unit 15 is input to the second peripheral unit 4 is electrically switched.
[0036]
The switch 19 of the second switching means includes a third state where the switch 16 is connected to input a signal from the peripheral unit 3 to the central processing unit 2 when the switch 16 is in the first state, and the switch 16 is in the first state. At this time, the fourth state in which the temporary signal from the temporary signal output unit 18 is connected so as to be input to the central processing unit 2 is electrically switched.
[0037]
Further, the switch 20 of the third switching means has a fifth state in which the signal from the peripheral section 3 is connected to be input to the signal input section 12, and the pseudo signal from the pseudo signal output section 15 is input to the signal input section 12. The sixth state of connection for input is electrically switched. Next, the operation of the simulation apparatus 10 in FIG. 1 will be described. FIG. 2 shows an example of sampling and simulation that can be performed by the simulation apparatus 10 of FIG. 1 when the apparatus to be simulated 1 is a copying machine. In FIG. 2, the main body sensor as the target of the central processing unit is the peripheral portion (reading system) in FIG. 1, and the main body load is the peripheral portion (output system).
[0038]
As shown in FIG. No. 1 is data collection (sampling) during normal copying operation. 2-1 is a simulation of peripheral part 3 (reading system) during idling of a copying machine. 2-2 is a simulation of the peripheral part 3 (reading system) of the copying machine. No. No. 3-1 is a simulation when the copying machine is idle and there is no peripheral part. 3-2 is a simulation when there is no peripheral part. No. 4-1 is a simulation of peripheral part 4 (output system) during idling of the copying machine. 4-2 is a simulation of the peripheral part 4 (output system) of the copying machine.
[0039]
First, no. Data collection (sampling) during normal copy operation 1 will be described. Referring to FIG. 1, the switch 16 is switched to the first state, the switch 19 is switched to the third state, the switch 20 is switched to the fifth state, and the switch 17 is switched to the first state. A signal from the system 3 is input to the central processing unit 2, and an instruction signal is output from the central processing unit 2 to a peripheral unit (output system) 4 such as a motor. This is control in a normal copying machine, but a signal from a peripheral part (reading system) 3 such as a sensor is input to the signal input part 12 via the switch 20 in the fifth state. By storing this input signal in the storage means 9, signals from the peripheral part (reading system) 3 and the peripheral part (output system) 4 can be sampled and stored in the storage means 9. Further, the sampled and stored signal can be corrected (processed) by the correction means 14, and the corrected signal can be stored in the storage means 9. This sampling is performed in synchronization with the same reference clock from the clock signal generator 13, but may be performed with each clock signal based on the reference clock. Therefore, even if a plurality of signals are input in time series, sampling is performed based on the reference clock, so that the time is accurate. Further, when signals are respectively input to the plurality of signal input units, each sampling is performed based on the reference clock, so that each signal can be accurately compared in time.
[0040]
Next, no. In the simulation of the peripheral part 3 (reading system) when idling the copying machine of 2-1, Sampling similar to 1 is performed, and operation data during idling can be acquired.
[0041]
No. In the simulation of the peripheral part 3 (reading system) of 2-2, no. After sampling and collecting data similar to 1, the switch 16 is switched to the second state, the switch 20 is switched to the sixth state, and the switch 17 is switched to the first state. A pseudo signal of the signal is input to the central processing unit 2, the motor of the peripheral unit 4 is operated by a signal from the central processing unit 2 based on the pseudo signal, simulation is performed, and the pseudo signal is input to the central processing unit 2. Since the data is input to the unit 12, operation data can be acquired. Note that the switch 19 may be in either the third state or the fourth state.
[0042]
Next, no. In the simulation in the case where there is no peripheral part at the time of idling of the copying machine 3-1, the temporary signal output is performed by switching the switch 16 to the first state, the switch 19 to the fourth state, and the switch 17 to the first state. A temporary signal is input from the unit 15 to the central processing unit 2 and a signal from the central processing unit 2 based on the temporary signal is input to another signal input unit 12a, whereby data is sampled and stored in the storage unit 9. it can. Note that the switch 20 may be in any state.
[0043]
No. In the simulation when there is no peripheral portion of 3-2, the pseudo signal from the pseudo signal output unit 15 is switched by switching the switch 16 to the second state, the switch 20 to the sixth state, and the switch 17 to the first state. Is input to the central processing unit 2 and a signal from the central processing unit 2 based on this pseudo signal is input to another signal input unit 12a, and this pseudo signal is input to the signal input unit 12. Can be obtained. Note that the switch 19 may be in any state. Further, by switching the switch 16 to the first state, the switch 19 to the fourth state, and the switch 17 to the first state, the temporary signal is input from the temporary signal output unit 15 to the central processing unit 2, and the temporary signal When the signal from the central processing unit 2 based on the above is input to another signal input unit 12a, the data can be sampled and stored in the storage unit 9. As described above, the provisional signal is preferable because it can omit the step of processing (correcting) the signal for the simulation and can shorten the simulation step. In the case where there is no peripheral portion, the signal may be confirmed by recording the signal output to the second peripheral portion 4 with a timing chart recorder.
[0044]
Next, no. In the simulation of the peripheral portion 4 (output system) during idling of the copying machine of 4-1, Sampling similar to 1 is performed, and operation data during idling can be acquired.
[0045]
No. In the simulation of the peripheral part 4 (output system) of the copying machine 4-2, No. 4 was used. After sampling and collecting data similar to 1, the switch 16 is switched to the second state, the switch 20 is switched to the sixth state, and the switch 17 is switched to the first state. 2, the motor of the peripheral unit 4 is operated by a signal from the central processing unit 2 based on the pseudo signal, and the simulation is performed and the pseudo signal is input to the signal input unit 12. Can be obtained. Note that the switch 19 may be in either the third state or the fourth state. In the above state, by switching the switch 17 to the second state, a pseudo signal is input from another pseudo signal output unit 15a to the peripheral unit 4 (output system), and the motor of the peripheral unit 4 is connected to the pseudo unit. Simulation is performed by operating with a signal.
[0046]
As described above, according to the simulation apparatus 10 of the present embodiment, the simulation operation can be performed without changing the connection between the simulation target apparatus 1 and the simulation apparatus 10 only by switching the switching means 16, 19, 20, and 17. It can be done easily. For this reason, it is not necessary to perform a separate operation for connection to the simulation target device after releasing the connection with the simulation target device as in the prior art every time the simulation is performed, and the simulation can be performed easily. .
[0047]
Note that the output of the pseudo signal can be synchronized with the reference clock from the clock signal generation unit 13, and the pseudo signal is input to the central processing unit 2 at an accurate timing, so that the simulation becomes accurate in time. ,preferable.
[0048]
Further, by processing and correcting the signal data based on the signal from the signal input unit 12 by the signal correction means 14, it becomes possible to output an operation signal that does not actually operate in the simulated apparatus 1 as a pseudo signal, The operations of the central processing unit 2 and the second peripheral unit 4 can be confirmed.
[0049]
Further, during the simulation in the first state as described above, the signal input unit 12 takes in the signals from the peripheral units 3 and 4 and inputs the data, so that the storage unit 9 of the information processing unit 11 has, for example, the peripheral units 3 and 4. Can be stored. Thereby, the signal from the peripheral part 3 etc. can be confirmed arbitrarily.
[0050]
In addition, simulation is performed with uncorrected signals by inputting signals from the central processing unit 2 and the peripheral unit 4 to signal input units other than 12 and 12a among a plurality of signal input units. Can do. Accordingly, it is possible to perform simulation using the signal input to the signal input units 12 and 12a with the correction signal from the signal correction unit 14 and also to perform simulation with an uncorrected signal, which widens the range in which the simulation can be performed.
[0051]
In the present embodiment, the simulated apparatus 1 includes a copying machine, a facsimile machine, a printer, a sorter, an ADF (recording paper automatic reversing apparatus) provided in these image forming apparatuses, and other central processing units (CPU and MPU). In general, a device in which is incorporated is considered.
[0052]
Next, the first forced selection means 21 that can forcibly select switching of the switches 16 and 17 as shown in FIG. 1 and the second forced selection means 22 that can forcibly select switching of the switch 19 will be described with reference to FIG. Specific examples will be described with reference to (a) and (b).
[0053]
The example of the first forced selection means 21 shown in FIG. 3A includes an AND circuit 31 and a switch 32 that are arranged between the switch 16 and the information processing means 11 of the first switching means in FIG. When the control signal A is input from the information processing means 11 to the input terminal 31b of the AND circuit 31 and the voltage is H (high), and the switch 32 is open, the voltage is H (high) even at the reference terminal 31a. The voltage at the terminal 31c becomes H (high), and the switch 16 is switched. Here, when the switch 32 is closed, the reference voltage of the reference terminal 31a becomes L (low), so that the output terminal 31c becomes L (low), and the switch 16 is not switched. In this manner, even if a signal is erroneously output from the information processing means 11, it is possible to prevent erroneous simulation from being performed by the signal and causing the apparatus to be simulated to malfunction.
[0054]
The example of FIG. 3B is obtained by adding an AND circuit 33 and a confirmation diode 34 to the configuration of FIG. In a state where the control signal A is output but not input to the switch 16 (the voltage of the output terminal 31c of the AND circuit 31 is L (low)), the voltage of the input terminal 33b of the AND circuit 33 is L (low). Since the voltage at the reference terminal 33a is H (high), the voltage at the terminal 33c is L (low), and a current flows through the diode 34 to emit light. It can be confirmed that the control signal A is output from the information processing means 11 by the light emission of the diode 34, but the switch 16 is not switched. Since the light from the diode 34 disappears, it can be confirmed that the switch 16 has been switched. Note that the above example of the forced selection means can also be applied to the second forced selection means 22 in FIG.
[0055]
The present invention has been described above with reference to the embodiments. However, the present invention should not be construed as being limited to the above-described embodiments, and can be modified or improved as appropriate. For example, it is possible to provide a connector portion for each of the simulation apparatus and the simulation target apparatus and always connect them with a cord.
[0056]
【The invention's effect】
According to the present invention, it is possible to perform simulation and data input without changing the connection between the simulation target device and the simulator in actual operation, simulation operation, and data input operation. It is possible to provide a simulation device, a simulation method, and a sampling device that can be used for the pseudo signal.
[Brief description of the drawings]
FIG. 1 is a block diagram of a simulation apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of sampling and simulation that can be performed when the simulation target apparatus is a copying machine and the state of each switch by the simulation apparatus of FIG. 1;
3 is a diagram showing specific examples (a) and (b) of forced selection means of the simulation apparatus of FIG. 1. FIG.
[Explanation of symbols]
1 Device to be simulated
2 Central processing unit, CPU
3 First peripheral part (reading system)
4 Second peripheral part (output system)
10 Simulation device
11 Information processing means
12 Signal input section
12a Another signal input section
13 Clock signal generator
14 Signal correction means
15 Pseudo signal output part
15a Another pseudo signal output unit
16, 17 switch (first switching means)
18 Temporary signal input section
19 switch (second switching means)
20 switches (third switching means)
21 1st forced selection means
22 Second forced selection means

Claims (16)

プログラムを実行する中央処理装置部と、この中央処理装置部と信号線を介して接続された周辺部とを有する被シミュレーション装置に対してシミュレーションするためのシミュレーション装置において、
前記中央処理装置部または前記周辺部に疑似信号を出力する疑似信号出力部を有する情報処理手段と、
前記中央処理装置部と前記周辺部との間の前記信号線に設けられ、前記中央処理装置部と前記周辺部とを電気的に接続して被シミュレーション装置の通常動作時のデータ収集を可能とする第1状態と、前記中央処理装置部または前記周辺部と前記疑似信号出力部とを電気的に接続して被シミュレーション装置のシミュレーションを可能とする第2状態とを、前記情報処理手段からの制御信号に基づいて切り替えることができる第1の切替手段と、を具備することを特徴とするシミュレーション装置。
In a simulation apparatus for simulating a simulation target apparatus having a central processing unit that executes a program, and a peripheral unit connected to the central processing unit via a signal line,
Information processing means having a pseudo signal output unit for outputting a pseudo signal to the central processing unit or the peripheral unit;
It is provided on the signal line between the central processing unit and the peripheral unit, and the central processing unit and the peripheral unit are electrically connected to enable data collection during normal operation of the simulation target device. And a second state that enables simulation of the simulation target device by electrically connecting the central processing unit or the peripheral unit and the pseudo signal output unit. And a first switching means capable of switching based on a control signal.
前記情報処理手段は、前記第1の切替手段が前記第1状態のときに前記疑似信号出力部から疑似信号を出力するとともに、前記第1の切替手段を前記第1状態から前記第2状態ヘと切り替える制御信号を前記第1の切替手段へ出力することを特徴とする請求項1に記載のシミュレーション装置。  The information processing means outputs a pseudo signal from the pseudo signal output unit when the first switching means is in the first state, and moves the first switching means from the first state to the second state. The simulation apparatus according to claim 1, wherein a control signal for switching is output to the first switching means. 前記情報処理手段は、前記第1の切替手段が前記第1状態のときに前記疑似信号出力部から疑似信号を出力した後に、前記第1の切替手段を前記第1状態から前記第2状態ヘと切り替える制御信号を前記第1の切替手段へ出力することを特徴とする請求項1に記載のシミュレーション装置。  The information processing means outputs the pseudo signal from the pseudo signal output unit when the first switching means is in the first state, and then moves the first switching means from the first state to the second state. The simulation apparatus according to claim 1, wherein a control signal for switching is output to the first switching means. 前記情報処理手段からの制御信号にかかわらず前記第1の切替手段を前記第1状態に維持させることが可能な第1の強制選択手段を具備することを特徴とする請求項1,2または3に記載のシミュレーション装置。  4. The first forcible selection means capable of maintaining the first switching means in the first state regardless of a control signal from the information processing means. The simulation apparatus described in 1. 前記周辺部からの信号を擬似した仮信号を出力する仮信号出力部を更に具備し、
前記仮信号出力部は、前記周辺部に替えて前記第1の切替手段に電気的に接続されることを特徴とする請求項1,2,3または4に記載のシミュレーション装置。
A temporary signal output unit that outputs a temporary signal that simulates a signal from the peripheral part;
The simulation apparatus according to claim 1, wherein the temporary signal output unit is electrically connected to the first switching unit instead of the peripheral part.
前記周辺部と前記第1の切替手段とを電気的に接続する第3の状態と、前記仮信号出力部と前記第1の切替手段とを電気的に接続する第4の状態とを切り替えることができる第2の切替手段を更に具備することを特徴とする請求項5に記載のシミュレーション装置。  Switching between a third state in which the peripheral portion and the first switching means are electrically connected and a fourth state in which the temporary signal output portion and the first switching means are electrically connected. The simulation apparatus according to claim 5, further comprising a second switching unit capable of performing the following. 前記第2の切替手段は、前記情報処理手段からの制御信号に基づいて前記第3状態と前記第4状態とに切り替えることが可能であり、
前記情報処理手段からの制御信号にかかわらず前記第2の切替手段を前記第3状態に維持させることが可能な第2の強制選択手段を有することを特徴とする請求項6に記載のシミュレーション装置。
The second switching means can switch between the third state and the fourth state based on a control signal from the information processing means,
The simulation apparatus according to claim 6, further comprising a second forced selection unit capable of maintaining the second switching unit in the third state regardless of a control signal from the information processing unit. .
前記情報処理手段は、前記中央処理装置部からの信号または前記周辺部からの信号が入力される信号入力部を有することを特徴とする請求項1〜7のいずれか1項に記載のシミュレーション装置。  The simulation apparatus according to claim 1, wherein the information processing unit includes a signal input unit to which a signal from the central processing unit or a signal from the peripheral unit is input. . 前記情報処理手段は、前記信号入力部から入力された信号に対して修正を加えた信号を疑似信号として前記疑似信号出力部から出力するとともに、前記第1の切替手段を前記第2状態に切り替える制御信号を出力することを特徴とする請求項8に記載のシミュレーション装置。  The information processing unit outputs a signal obtained by correcting the signal input from the signal input unit as a pseudo signal from the pseudo signal output unit, and switches the first switching unit to the second state. The simulation apparatus according to claim 8, wherein a control signal is output. 前記周辺部と前記信号入力部とを電気的に接続する第5状態と、前記疑似信号出力部と前記信号入力部とを電気的に接続する第6状態とを切り替えることができる第3の切替手段を更に具備し、
前記第1の切替手段が前記第1状態のとき、前記第3の切替手段を前記第5状態にするように前記第3の切替手段を制御することを特徴とする請求項8または9に記載のシミュレーション装置。
A third switch capable of switching between a fifth state in which the peripheral portion and the signal input portion are electrically connected and a sixth state in which the pseudo signal output portion and the signal input portion are electrically connected. Further comprising means,
10. The third switching means is controlled so that the third switching means is in the fifth state when the first switching means is in the first state. Simulation equipment.
前記周辺部と前記信号入力部とを電気的に接続する第5状態と、前記疑似信号出力部と前記信号入力部とを電気的に接続する第6状態とを切り替えることができる第3の切替手段を有し、
前記第1の切替手段が前記第2状態のとき、前記第3の切替手段を前記第6状態にするように前記第3の切替手段を制御することを特徴とする請求項8,9または10に記載のシミュレーション装置。
A third switch capable of switching between a fifth state in which the peripheral portion and the signal input portion are electrically connected and a sixth state in which the pseudo signal output portion and the signal input portion are electrically connected. Having means,
11. The third switching means is controlled so that the third switching means is in the sixth state when the first switching means is in the second state. The simulation apparatus described in 1.
前記被シミュレーション装置が複数の周辺部を有し、
前記複数の周辺部に対応して前記第1の切替手段及び前記信号入力部を複数設け、
前記情報処理手段は、前記複数の信号入力部から入力された複数の信号のうち修正が加えられなかった信号に対応する第1の切替手段を前記第1状態に切り替える制御信号を出力することを特徴とする請求項8,9,10または11に記載のシミュレーション装置。
The simulated apparatus has a plurality of peripheral parts,
A plurality of the first switching means and the signal input unit are provided corresponding to the plurality of peripheral portions,
The information processing means outputs a control signal for switching the first switching means corresponding to the signal that has not been corrected among the plurality of signals input from the plurality of signal input units to the first state. 12. The simulation apparatus according to claim 8, 9, 10 or 11.
前記被シミュレーション装置が複数の周辺部を有し、
前記複数の周辺部に対応して前記第1の切替手段及び前記信号入力部を複数設け、
前記情報処理手段は、前記複数の信号入力部から入力された複数の信号のうち修正が加えられなかった信号に対応する第1の切替手段を前記第2状態に切り替える制御信号を出力するとともに、前記修正が加えられなかった信号を疑似信号として前記疑似信号出力部から出力することを特徴とする請求項8,9,10または11に記載のシミュレーション装置。
The simulated apparatus has a plurality of peripheral parts,
A plurality of the first switching means and the signal input unit are provided corresponding to the plurality of peripheral portions,
The information processing means outputs a control signal for switching the first switching means corresponding to the signal that has not been corrected among the plurality of signals input from the plurality of signal input units, to the second state, 12. The simulation apparatus according to claim 8, 9, 10 or 11, wherein a signal that has not been corrected is output as a pseudo signal from the pseudo signal output unit.
前記被シミュレーション装置が複数の周辺部を有し、
前記複数の周辺部に対応して前記信号入力部を複数設け、
前記複数の前記信号入力部から入力された信号のサンプリングがそれぞれ基準のクロックに基づいて行われることを特徴とする請求項8〜13のいずれか1項に記載のシミュレーション装置。
The simulated apparatus has a plurality of peripheral parts,
A plurality of the signal input portions are provided corresponding to the plurality of peripheral portions,
The simulation apparatus according to claim 8, wherein sampling of signals input from the plurality of signal input units is performed based on a reference clock.
前記被シミュレーション装置が複数の周辺部を有し、
前記複数の周辺部に対応して、前記第1の切替手段と、前記疑似信号出力部又は/及び前記信号入力部とを複数設け、
前記疑似信号出力部からの疑似信号の出力と、前記信号入力部から入力された信号のサンプリングがそれぞれ基準のクロックに基づいて行われることを特徴とする請求項8〜14のいずれか1項に記載のシミュレーション装置。
The simulated apparatus has a plurality of peripheral parts,
Corresponding to the plurality of peripheral portions, a plurality of the first switching means and the pseudo signal output unit or / and the signal input unit are provided.
15. The output of the pseudo signal from the pseudo signal output unit and the sampling of the signal input from the signal input unit are performed based on a reference clock, respectively. The simulation apparatus described.
前記中央処理装置部が前記周辺部に対し、駆動信号の出力、情報信号の取得及び情報信号の授受の少なくとも1つを行う請求項1〜15のいずれか1項に記載のシミュレーション装置。  The simulation apparatus according to claim 1, wherein the central processing unit performs at least one of output of a drive signal, acquisition of an information signal, and transmission / reception of an information signal to the peripheral unit.
JP5737199A 1999-03-04 1999-03-04 Simulation device Expired - Fee Related JP3646286B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5737199A JP3646286B2 (en) 1999-03-04 1999-03-04 Simulation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5737199A JP3646286B2 (en) 1999-03-04 1999-03-04 Simulation device

Publications (2)

Publication Number Publication Date
JP2000259221A JP2000259221A (en) 2000-09-22
JP3646286B2 true JP3646286B2 (en) 2005-05-11

Family

ID=13053744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5737199A Expired - Fee Related JP3646286B2 (en) 1999-03-04 1999-03-04 Simulation device

Country Status (1)

Country Link
JP (1) JP3646286B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009110284A (en) * 2007-10-30 2009-05-21 Fujitsu Ltd Signal processor, card type device, and fault reproduction method

Also Published As

Publication number Publication date
JP2000259221A (en) 2000-09-22

Similar Documents

Publication Publication Date Title
US6753693B2 (en) Test apparatuses for semiconductor integrated circuits
EP1762856A1 (en) Fault Diagnosis Apparatus and Method for System-on-Chip (SOC)
JP3646286B2 (en) Simulation device
US5948073A (en) Multiplexing bus controller with input conditioning
JP4247144B2 (en) Ultrasonic diagnostic equipment
CN111106979B (en) Method and equipment for switch threshold alarm test
JP2006251895A (en) Bus interface circuit
WO2003067274B1 (en) Method and device for detecting faults on integrated circuits
JP2778724B2 (en) Analog multiplexer fault detection device
JP7187564B2 (en) Image processing device
JP4067729B2 (en) Analog multiplexer failure detection device
JP2007072662A (en) Bus failure detection system
JP4032471B2 (en) Printer control circuit
JP2815041B2 (en) LSI internal state check circuit
JP2004164212A (en) Switch jig
JP2006270531A (en) Multifunction device system, and transmission path confirmation method of the same
JP3090053B2 (en) Monitor device for circuit data
JP4596590B2 (en) Driver control method and display device using the method
JP2000201139A (en) Contact interface detector
JP2010102433A (en) Information processing apparatus and program
JP2006171882A (en) Signal reproduction device
JPH05265886A (en) Information processing system
JPH05160879A (en) Diagnostic method for data transfer equipment
JPH06290070A (en) Cable misconnection detecting system
JPH04157675A (en) Digital signal recording device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040805

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040824

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041022

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: 20050111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050128

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees