JP2015103192A - Verification device for control software - Google Patents
Verification device for control software Download PDFInfo
- Publication number
- JP2015103192A JP2015103192A JP2013245439A JP2013245439A JP2015103192A JP 2015103192 A JP2015103192 A JP 2015103192A JP 2013245439 A JP2013245439 A JP 2013245439A JP 2013245439 A JP2013245439 A JP 2013245439A JP 2015103192 A JP2015103192 A JP 2015103192A
- Authority
- JP
- Japan
- Prior art keywords
- motor
- verification
- control
- disturbance
- simulator
- 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.)
- Granted
Links
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
本開示は、制御ソフトウエアを検証する検証装置に関する。 The present disclosure relates to a verification device that verifies control software.
特許文献1は、モータを検証するためのシミュレーションシステムを開示している。特許文献1では、制御ソフトウエアを実行することにより出力されるモータ駆動信号に基づきモータ軸にかかる負荷を計算し、モータ動作に必要な駆動トルクを算出している。また、特許文献2は、モータを含む装置の制御ソフトウエアの動作検証用のシミュレーションシステムを開示している。特許文献2では、制御ソフトウエアを実行することで制御装置が出力する制御信号に応じて、装置の動作をシミュレーションしている。
制御ソフトウエアは、そのリリース前にその動作が検証される。ここで、例えば、制御ソフトウエアを実行する制御部が、モータ加減速中にモータに過負荷がかかるような処理を行うとモータは脱調等の動作不良を起こす可能性が有る。この様に、制御ソフトウエアの検証においては、制御ソフトウエアの制御対象装置が有する検証対象部品が、制御ソフトウエアにより動作不良を起こす可能性があるかについても検証する必要がある。しかしながら、特許文献1及び2はその様な検証を行うことを開示するものではない。
The control software is verified for operation prior to its release. Here, for example, if the control unit that executes the control software performs a process in which the motor is overloaded during the acceleration / deceleration of the motor, the motor may cause malfunction such as step-out. As described above, in the verification of the control software, it is necessary to verify whether or not the verification target part of the control target device of the control software may cause an operation failure by the control software. However,
本発明は、制御ソフトウエアによる制御対象装置の制御の際に、当該制御対象装置の検証対象部品が動作不良を行う可能性が有るかを検証する検証装置及びプログラムを提供するものである。 The present invention provides a verification device and a program for verifying whether there is a possibility that a verification target component of the control target device may malfunction when the control target device is controlled by control software.
本発明の一側面によると、検証装置は、制御ソフトウエアを実行する制御部シミュレータと、前記制御ソフトウエアの制御対象装置の動作を模擬する装置シミュレータと、前記制御部シミュレータが前記装置シミュレータに出力する制御信号に基づき、前記制御対象装置の検証対象部品の所定の制御パラメータが所定の条件を満たすかを判定する第1判定手段と、前記装置シミュレータの模擬動作から前記検証対象部品の動作に影響を与える所定の外乱が前記検証対象部品に発生しているかを判定する第2判定手段と、前記検証対象部品の所定の制御パラメータが所定の条件を満たしているときに、前記所定の外乱が発生すると、前記検証対象部品に動作不良の可能性があると判定する第3判定手段と、を備えていることを特徴とする。 According to an aspect of the present invention, the verification device includes a control unit simulator for executing control software, a device simulator for simulating the operation of the control target device of the control software, and the control unit simulator outputting to the device simulator A first determination unit that determines whether a predetermined control parameter of a verification target component of the control target device satisfies a predetermined condition based on a control signal to be affected, and an operation of the verification target component is influenced by a simulated operation of the device simulator Second predetermined means for determining whether or not a predetermined disturbance that gives the verification target component occurs, and the predetermined disturbance occurs when a predetermined control parameter of the verification target component satisfies a predetermined condition Then, it is provided with the 3rd determination means which determines with the said verification object component having a possibility of a malfunctioning.
検証対象部品が動作不良を行う可能性が有るかを検証することができる。 It is possible to verify whether there is a possibility that the verification target part may malfunction.
以下、本発明の例示的な実施形態について図面を参照して説明する。なお、以下の各図においては、実施形態の説明に必要ではない構成要素については図から省略する。 Hereinafter, exemplary embodiments of the present invention will be described with reference to the drawings. In the following drawings, components that are not necessary for the description of the embodiments are omitted from the drawings.
<第一実施形態>
本実施形態による検証装置は、コンピュータシステム上でプログラムを実行することで実現でき、そのハードウェア構成を図2に示す。図2の本体部202のハードディスク202cには、検証装置の各機能を実現するためのプログラムや、制御対象装置に関する情報を含む各種データや、検証対象の制御ソフトウエアが格納される。中央処理部202aは、プログラム及び各種データを主記憶部202bにロードして実行し、これによりコンピュータシステム201は検証装置として動作する。なお、表示装置203は、本体部202からの指示により画面表示を行う。また、キーボード204は、このコンピュータシステム201にユーザの指示や文字情報を入力するためのものである。さらに、マウス205は、表示装置203上の任意の位置を指定することによりその位置に表示されていたアイコン等に応じた指示を入力するためのものである。
<First embodiment>
The verification apparatus according to the present embodiment can be realized by executing a program on a computer system, and the hardware configuration thereof is shown in FIG. The
図1は、本実施形態による制御ソフトウエアの検証のための検証装置の構成図である。なお、以下では、制御ソフトウエアの制御対象装置が画像形成装置であり、検証対象部品が二相ステッピングモータであるものとして説明を行うが、検証対象部品は、他の種別のモータであっても良い。さらに、制御対象装置は、画像形成装置以外の装置であっても良い。本実施形態による検証装置は、シミュレータ部101と、可能性検出部102を備えている。なお、シミュレータ部101は、所定期間を1単位時間とし、1単位時間毎にシミュレーション処理を行う同期方式を取る。以下の説明において、時間又は時刻とは、このシミュレーションにおける時間又は時刻を指すものとして使用する。
FIG. 1 is a configuration diagram of a verification apparatus for verifying control software according to the present embodiment. In the following description, it is assumed that the control target device of the control software is an image forming device and the verification target component is a two-phase stepping motor. However, the verification target component may be another type of motor. good. Further, the control target apparatus may be an apparatus other than the image forming apparatus. The verification apparatus according to the present embodiment includes a
シミュレータ部101の制御部シミュレータ301は、制御対象装置の制御部の動作を模擬する。つまり、制御部シミュレータ301は、制御対象装置の制御部が実行する制御ソフトウエアを実行し、制御対象装置のセンサ等が出力する制御対象装置の動作状態を示す信号を受け取り、制御対象装置の各部品に制御信号を出力する。なお、制御部シミュレータ301は、制御信号をシミュレータハブ(以下、HUBと記す。)302に出力する。また、制御部シミュレータ301は、制御信号を変化させる際には、そのときの時刻もHUB302に通知する。
The
装置シミュレータ303は、制御ソフトウエアの制御対象装置、本例では、画像形成装置の各部品の動作を模擬する。装置シミュレータ303は、制御対象装置の各部品に対する制御信号と、各部品が出力する出力信号を管理する。具体的には、装置シミュレータ303は、制御対象装置の各部品に部品識別子(以下、部品IDと称する。)を割り当て、部品IDと当該部品の制御信号又は出力信号とを関連付けて管理する。図3に、部品IDがSTPMであるステッピングモータについての制御信号の例を示す。なお、図3の表の信号1〜4は、シミュレータ部101の各部の結線信号の識別子(以下、信号IDと称する)であり、HUB302が管理する。
An
装置シミュレータ303は、各部品の出力信号の値の変化を、その時間と共にHUB302に通知する。また、装置シミュレータ303の事象判定部304は、外乱検出部107から、外乱検出部107にその発生や終了を通知する事象を事象情報通知で受け取り、事象情報通知で受け取った事象を事象情報305として保持している。そして、事象判定部304は、制御対象装置の模擬動作の結果、事象情報305が示す事象が発生したり終了したりすると、当該事象の発生や終了を状態通知で外乱検出部107に通知する。なお、事象情報305は、事象管理番号で識別される。具体的には、装置シミュレータ303は、ある時点でのHUB302からの制御信号や制御対象装置の各部品の特性等から1単位時間後の装置状態を解析する。事象判定部304は、1単位時間分の動作シミュレーション毎に、事象情報305に示される事象が発生しているか否かを判定する。判定結果が、1単位時間前の判定結果と異なる場合は、外乱検出部107に事象状態の更新を通知する。この事象通知は、事象管理番号と、事象の発生又は終了を示す値と、その時刻を含む。
The
また、装置シミュレータ303は、HUB302及び可能性検出部102と、本実施形態の検証対象部品であるモータの情報を共有するために、シミュレーション開始前までに、モータ情報306を外部へ出力する。モータ情報306は、検証対象のモータの部品IDと、モータの制御信号の信号IDを含む。HUB302と可能性検出部102は、モータ情報306を読み込むことで、シミュレーション開始時に、検証対象のモータについての情報を取得する。
Further, the
HUB302は、制御部シミュレータ301と装置シミュレータ303の時刻同期処理と、信号結線処理と、信号の伝達処理を行う。さらに、HUB302は、可能性検出部102との連携処理を行い、可能性検出部102に検証対象のモータに対する制御信号の変化を通知する。
The HUB 302 performs time synchronization processing, signal connection processing, and signal transmission processing of the
制御部シミュレータ301と装置シミュレータ303の時刻同期について、簡単に説明する。HUB302は、まず、制御部シミュレータ301及び装置シミュレータ303に所定時間分(1単位時間分)のシミュレーション実行を指示する。指示を受けた各シミュレータは、所定時間分のシミュレーション処理を実行し、シミュレーション処理を終えると、HUB302にシミュレーション処理終了を通知する。
The time synchronization between the
HUB302は、信号結線および信号情報伝達処理のために信号管理情報307を有している。信号管理情報307は、信号IDと、信号サイズ(信号線が何ビット長であるかを示す情報)と、信号出力元のシミュレータと、信号入力先のシミュレータと、の4つの項目を含む。また、HUB302は、検証対象のモータに対する制御信号の変化を脆弱検出部103に通知するために、変化通知部308を有している。変化通知部308は、モータ情報306を読み込み、モータの部品ID毎に制御信号の信号IDを格納している。変化通知部308は、制御部シミュレータ301が出力する検証対象のモータの制御信号が変化すると、脆弱検出部103へ制御信号の変化を通知する。この通知は、制御信号の信号IDと、信号値と、変化の時間を含んでいる。
The
図4は、モータの制御信号の変化を脆弱検出部103に通知するためのHUB302における処理のフローチャートである。HUB302は、S10で、制御部シミュレータ301が出力する制御信号と、装置シミュレータ303が出力する出力信号が変化するまで待機する。信号が変化すると、HUB302は、S11で、信号の変化を制御部シミュレータ301又は装置シミュレータ303に伝達する。その後、HUB302は、S12において、変化した信号が制御部シミュレータ301からの、検証対象部品であるモータの制御信号であるかを判定する。なお、この判定は、シミュレーション開始前に読み込んだモータ情報306により行う。変化した信号が検証対象部品であるモータの制御信号ではない場合、HUB302は、S10からの処理を繰り返す。一方、変化した信号が検証対象部品であるモータの制御信号であると、HUB302は、S13で、脆弱検出部103にモータの制御信号の変化を通知し、S10からの処理を繰り返す。
FIG. 4 is a flowchart of processing in the
次に、シミュレーション開始時のシミュレータ部101と可能性検出部102との連携に関してHUB302が行う処理について説明する。HUB302は、シミュレーション開始時に、可能性検出部102へシミュレーション開始予告通知を出力する。可能性検出部102は、動作不良検出の前準備終了後、HUB302に対して準備終了通知を行う。HUB302は、可能性検出部102からの準備終了通知が行われるまで待機し、準備終了通知受信後、各シミュレータにシミュレーションの実行開始を指示する。
Next, processing performed by the
続いて、可能性検出部102について説明する。可能性検出部102の脆弱検出部103は、モータが外乱に対して脆弱な状態(モータの動作が不良となる可能性が有る状態)となっているかを検出する。また、外乱検出部107は、モータに対する外乱が発生しているか否かを検出する。さらに、判定部110は、脆弱状態と外乱状態から動作不良の可能性の有無を判定する。
Next, the
可能性検出部102は、HUB302からのシミュレーション開始予告通知を受け取ると、前準備を開始する。前準備において、脆弱検出部103は、モータ情報306を読み込み、モータの制御信号の信号IDを内部に格納する。なお、格納する信号IDは、検証対象となっているモータについての信号IDである。また、外乱検出部107は、後述する外乱要因情報108を事象情報通知として装置シミュレータ303に送信する。以上の前準備が完了すると、可能性検出部102は、HUB302に対して前準備完了通知を行う。
When receiving the simulation start notice from the
脆弱検出部103は、パラメータ抽出部104と脆弱判定部105を備えている。パラメータ抽出部104は、ステッピングモータに関するプログラムの制御要素に着目し、モータの脆弱性に関する制御パラメータを抽出する。ステッピングモータに関するプログラムの制御要素とは、例えば、モータ速度、モータの電流設定値、モータの励磁パターンである。また、脆弱性に関する制御パラメータとは、例えば、モータ速度の変化率(モータ加速度)と、モータ電流値と、モータ励磁パターンである。
The
パラメータ抽出部104は、抽出対象の制御パラメータに関する情報(以降、抽出パラメータ情報113と呼ぶ。)と、制御パラメータの抽出に必要なモータの制御信号を予め保持している。制御パラメータの抽出に必要なモータの制御信号とは、抽出対象の制御パラメータが、モータ加速度である場合は、モータ速度を定めるA相励磁信号とB相励磁信号とすることができる。また、抽出対象の制御パラメータが、モータ電流値である場合は、A相電流設定とB相電流設定とすることができる。
The
図5は、パラメータ抽出部104における処理のフローチャートである。パラメータ抽出部104は、S20で、HUB302からモータの制御信号の変化が通知されるまで待機する。制御信号の変化通知を受け取ると、パラメータ抽出部104は、S21で、抽出パラメータ情報113に基づき、抽出すべき制御パラメータに関する制御信号であるかを判断する。抽出すべき制御パラメータに関する制御信号ではない場合、パラメータ抽出部104は、S20からの処理を繰り返す。一方、抽出すべき制御パラメータに関する制御信号であると、パラメータ抽出部104は、S22で、制御信号から制御パラメータの値を算出し、S23で、脆弱判定部105に更新通知を行う。更新通知は、制御パラメータの値と、その変化時刻を含む。パラメータ抽出部104は、その後、S20からの処理を繰り返す。
FIG. 5 is a flowchart of processing in the
具体例として、抽出対象の制御パラメータがモータ加速度であり、信号が図3の通りに定義されている場合を例にして図5の処理を説明する。なお、モータ加速度に関係する制御信号は、図3の信号1及び2、つまり、A相及びB相励磁信号である。パラメータ抽出部104は、S20において、モータの制御信号の変化を通知されると、S21において制御信号が、A相励磁信号又はB相励磁信号であるかを判定する。例えば、S20で変化が通知された制御信号が、図3の信号4、つまり、B相電流設定である場合には、S21の判定は"No"となり、S20に戻る。一方、S20で変化が通知された制御信号が、例えば、A相励磁信号である場合、S21の判定は"Yes"となり、処理はS22に進む。抽出対象の制御パラメータがモータ加速度であることから、パラメータ抽出部104は、S22において、モータの加速度を算出する。パラメータ抽出部104は、まず、励磁信号の変化の時間間隔からモータ速度を求め、これを現時点でのモータ速度とする。そして、現時点でのモータ速度と前回のモータ速度と、その時間間隔からモータ加速度を求める。
As a specific example, the process of FIG. 5 will be described by taking as an example a case where the control parameter to be extracted is motor acceleration and the signal is defined as shown in FIG. The control signals related to the motor acceleration are the
S23で、パラメータ抽出部104は、モータの加速度の値と、変化時刻と、当該モータの部品IDを脆弱判定部105へ通知する。なお、パラメータ抽出部104は、制御パラメータの抽出時に、ソフトウエア制御上のばらつきに対するフィルタリングを行うことができる。例えば、制御上、モータの加速度の絶対値に0.005以下のばらつきが起こり得る場合、モータの加速度の絶対値が0.005以下の場合は、モータ加速度の値を0として扱うことができる。
In S23, the
脆弱判定部105(第1判定部)は、パラメータ抽出部104から通知された制御パラメータ値に基づき、モータが外乱に対して脆弱な状態となっているか判定するための判定基準情報106を有している。脆弱判定部105は、パラメータ抽出部104からの更新通知をトリガとして、脆弱状態の判定を開始し、判定結果(脆弱状態が発生しているか否か)を判定部110に通知する。
The vulnerability determination unit 105 (first determination unit) includes
例えば、モータが加減速中に脆弱状態が発生するとの判定基準であれば、判定基準情報106は、モータ加速度が0でない場合に脆弱状態が発生との基準を示している。また、例えば、加速度又は減速度の絶対値が所定値以上又は以下との判定基準とすることもできる。脆弱判定部105は、脆弱状態であるか否かの判定を行い、前回の判定結果と異なる場合に判定部110に脆弱通知を行う。脆弱通知は、脆弱状態の発生又は終了を示す情報と、その時刻を示す情報を含んでいる。なお時刻は、パラメータ抽出部104からの更新通知に含まれる時刻情報である。
For example, if the criterion is that a fragile state occurs during acceleration / deceleration of the motor, the
次に、外乱検出部107について説明する。外乱検出部107は、外乱要因情報108と外乱判定部109とを備えている。外乱要因情報108は、制御対象装置の動作において、検証対象部品であるモータの動作に影響する要因を示す情報である。図6に外乱要因情報108の例を示す。なお、外乱要因情報108は、装置シミュレータ303に事象情報として通知され、装置シミュレータ303において事象情報305として管理される。よって、装置シミュレータ303が外乱検出部107に対して行う状態通知とは、外乱要因情報108が示す状態が発生したこと、或いは、終了したことを示す通知である。
Next, the
外乱判定部109(第2判定部)は、装置シミュレータ303から発生を示す状態通知を受け取ると、外乱発生と判定し、終了を示す状態通知を受け取ると、外乱終了と判定し、外乱の発生又は終了を判定部110に通知する。この外乱通知は、外乱の発生又は終了を示す情報と、外乱の発生又は終了の時刻を含んでいる。
When the disturbance determination unit 109 (second determination unit) receives a state notification indicating occurrence from the
判定部110(第3判定部)は、脆弱検出部103が通知する脆弱状態と、外乱検出部107が通知する外乱の発生の重なりを検出すると、モータの動作不良の可能性が有ると判定する。
The determination unit 110 (third determination unit) determines that there is a possibility of a malfunction of the motor when detecting the overlap between the fragile state notified by the
図7は、判定部110での判定処理のフローチャートである。判定部110は、S30で、脆弱状態が発生する状態まで待機する。脆弱状態が発生すると、判定部110は、S31で、外乱が発生しているかを判定し、外乱が発生していると動作不良の可能性有と判定してS33で警告を通知する。ここで、警告を通知するとは、検証装置を利用しているユーザに対する画面表示等、当該ユーザに対する任意の出力により行う。S31で、外乱が発生していないと、判定部110は動作不良の可能性は無いと判定し、S32で、脆弱状態が継続しているかを判定する。判定部110は、S32で、脆弱状態が継続していると、S31から処理を繰り返し、脆弱状態が継続していないと、S30から処理を繰り返す。なお、脆弱通知と外乱通知には、発生時刻が含まれているため、判定部110は、S33での警告通知に、動作不良が発生する可能性のある時刻を含めることができる。また、脆弱通知と外乱通知の発生及び終了に関するタイミングチャートを表示することもできる。
FIG. 7 is a flowchart of the determination process in the
なお、上記説明では、抽出対象の制御パラメータがモータ加速度である場合を例に挙げたが、抽出対象の制御パラメータがモータ電流値の場合は、図5のS22においてモータ電流値を求める。具体的には、モータ電流が1ビットの信号A及び信号Bの2つの信号により設定され、2つの信号の値と出力電流の関係が図8で示されるものとする。パラメータ抽出部104は、HUB302から信号A又は信号Bの値の変化が通知されると、脆弱判定部105に、信号A及び信号Bの値から得られる電流値を含む更新通知を行う。脆弱判定部105は、例えば、モータ電流値が66%以下であると、脆弱状態であると判定できる。
In the above description, the case where the control parameter to be extracted is the motor acceleration is taken as an example. However, when the control parameter to be extracted is the motor current value, the motor current value is obtained in S22 of FIG. Specifically, the motor current is set by two signals of 1-bit signal A and signal B, and the relationship between the values of the two signals and the output current is shown in FIG. When the
また、抽出対象の制御パラメータが励磁パターンである場合、パラメータ抽出部104は、図5のS22において励磁パターン(2相励磁、1−2相励磁など)を抽出し、抽出パラメータである励磁パターンを脆弱判定部105に通知する。脆弱判定部105は、判定基準情報106に従って、通知される励磁パターンからモータが脆弱状態であるかを判定する。この場合、判定基準情報106は、例えば、2相励磁ではない場合に脆弱状態と判定することを示している。
If the control parameter to be extracted is an excitation pattern, the
なお、上記実施形態は、二相ステッピングモータを例にして行ったが、他の種別のモータであっても、制御信号の状態と脆弱状態を関連付けて本発明を適用することができる。例えば、モータがDCモータである場合、モータが、停止状態から定常回転速度になるまでの間は、脆弱状態であるとすることができる。さらに、検証対象のモータは、部品IDで区別できるため、同時に検証するモータは1つ以上であっても良い。さらに、検証対象部品は、その状態と、外乱との関係により動作不良の可能性を判定できる任意の部品とすることもできる。 The above embodiment has been described by taking a two-phase stepping motor as an example, but the present invention can be applied by associating the state of the control signal with the fragile state even with other types of motors. For example, when the motor is a DC motor, it can be assumed that the motor is in a fragile state until the motor reaches a steady rotational speed from a stopped state. Furthermore, since the verification target motor can be distinguished by the component ID, one or more motors to be verified at the same time may be included. Furthermore, the verification target component can be any component that can determine the possibility of malfunction due to the relationship between the state and the disturbance.
以上、制御部シミュレータ301からの制御信号の値に変化がある度に、予め定めた制御パラメータに基づき脆弱状態であるかを判定する。さらに、装置シミュレータ303の模擬動作から、所定の外乱が発生しているかを判定し、脆弱状態であるときに所定の外乱が発生すると、動作不良の可能性有と判定する。この構成により、制御ソフトウエアによるモータの動作不良の可能性の有無を検出することができる。したがって、プログラムの動作検証時に、モータ制御上の問題をユーザに通知することができ、検証効率を向上させることができる。
As described above, every time there is a change in the value of the control signal from the
<第二実施形態>
第一実施形態では、脆弱状態であるときに外乱が発生すると動作不良の可能性有と判定していた。しかし、外乱の種別によって、モータの脱調等を招く可能性の度合いは異なり得る。例えば、モータが加減速中との脆弱状態にあるときに、用紙が搬送路の所定位置に突入する外乱が発生してもモータ脱調の可能性は少ないが、当該モータが駆動しているローラに用紙が接するという外乱が発生するとモータ脱調の可能性がある場合である。また、脆弱状態の種別によっては、同じ外乱でも動作不良の可能性は異なる。例えば、モータが加減速中との脆弱状態は、さらに、定格範囲内及び定格範囲外という2つの状態種別に分類できるが、同じ外乱に対するモータ脱調の可能性は、この状態種別により異なる。本実施形態では、外乱種別と、脆弱状態の状態種別との組み合せにより動作不良の可能性有無を検出する。以下、本実施形態について第一実施形態との相違点を中心に説明する。
<Second embodiment>
In the first embodiment, when a disturbance occurs in the fragile state, it is determined that there is a possibility of malfunction. However, the degree of possibility of causing a motor step-out or the like may vary depending on the type of disturbance. For example, when the motor is in a weak state of acceleration / deceleration, there is little possibility of motor step-out even if a disturbance occurs when the paper enters a predetermined position on the conveyance path, but the roller driven by the motor This is a case where there is a possibility of motor step-out when a disturbance occurs in contact with the paper. Also, depending on the type of fragile state, the possibility of malfunction is different even with the same disturbance. For example, the weak state that the motor is accelerating / decelerating can be further classified into two state types, that is, within the rated range and out of the rated range, but the possibility of motor step-out for the same disturbance differs depending on this state type. In this embodiment, the presence / absence of a malfunction is detected by a combination of the disturbance type and the state type of the weak state. Hereinafter, the present embodiment will be described focusing on differences from the first embodiment.
図9は、本実施形態における可能性検出部102の構成図である。第一実施形態の可能性検出部102との相違点は、脆弱検出部103に種別判定部114を設け、外乱検出部107に外乱種別通知部116を設け、判定部110が動作不良条件情報111を保持することである。
FIG. 9 is a configuration diagram of the
種別判定情報115は、制御パラメータの値により、脆弱状態を分類したものでありその例を図10(A)に示す。図10(A)は、制御パラメータが、モータ電流値の場合であり、モータ電流値により種別A、B、Cの3つの状態種別に分類している。図9の種別判定部114は、パラメータ抽出部104からの更新通知に含まれる制御パラメータ値と種別判定情報115から脆弱状態の種別を判定する。種別判定部114は、判定した状態種別を判定部110に通知する。この状態種別通知は、状態種別を示す情報と状態種別が変化した時刻を含んでいる。
The type determination information 115 is obtained by classifying the fragile states according to the value of the control parameter, and an example thereof is shown in FIG. FIG. 10A shows a case where the control parameter is a motor current value, which is classified into three state types A, B, and C according to the motor current value. The
外乱種別通知部116は、外乱の発生又は終了時に、発生又は終了した外乱の種別を判定部110に通知する。例えば、外乱種別は、事象通知に含まれる事象管理番号を使用して特定することができる。外乱種別通知は、外乱種別を示す情報とその変更時刻とを含んでいる。
The disturbance
本実施形態において、判定部110は、外乱種別毎に動作不良の可能性を判定する。このため、判定部110は、図10(B)にその例を示す動作不良条件情報111を保持している。判定部110は、脆弱検出部103からの脆弱通知及び脆弱種別通知により、脆弱状態の有無及びその種別を認識する。さらに、外乱通知及び外乱種別通知により、発生している外乱とその種別を認識する。判定部110は、脆弱状態において外乱が発生した場合、さらに、脆弱状態の状態種別と外乱の種別に基づき動作不良条件情報111を使用して動作不良の可能性を判定する。例えば、動作不良条件情報111が図10(B)に示すものであり、状態種別Bの脆弱状態が発生しているものとする。この状態において、番号1で示される種別の外乱が発生した場合、図10(B)の番号1の外乱種別に対応する状態種別には種別Bが記載されていないため、判定部110は、動作不良の可能性は無いと判定する。一方、番号2で示される種別の外乱が発生した場合、図10(B)の番号2の外乱種別に対応する状態種別には種別Bが記載されているため、判定部110は、動作不良の可能性が有ると判定する。
In the present embodiment, the
なお、例えば、状態種別によっては、外乱の発生有無に拘らず動作不良の可能性が有ると判定することもできる。例えば、モータの加速度が定格外の異常な加速度であると、脆弱状態の状態種別が"Z"であると定義し、判定部110は、状態種別"Z"の脆弱状態になると、外乱発生の有無に拘らず動作不良の可能性が有ると判定することもできる。
For example, depending on the state type, it may be determined that there is a possibility of malfunction regardless of the presence or absence of disturbance. For example, if the motor acceleration is an abnormal acceleration that is not rated, the state type of the weak state is defined as “Z”, and the
以上、脆弱状態の状態種別及び外乱種別に応じて動作不良の可能性を判定することで、判定精度を高めることができ、制御ソフトウエアの動作検証の効率が向上する。 As described above, by determining the possibility of operation failure according to the state type and disturbance type of the fragile state, the determination accuracy can be improved, and the efficiency of operation verification of the control software is improved.
<第三実施形態>
モータの加減速時、モータには、モータ自身の慣性モーメント(以下、自己慣性と呼ぶ。)による負荷トルク(以下、自己負荷と呼ぶ。)が発生する。したがって、既に説明した実施形態では、モータ加減速中の外乱発生を、モータの脱調といった動作不良の可能性の判定基準としていた。しかしながら、より判定精度を高めるためには、自己負荷及び外乱の方向と、モータの回転方向との関係を考慮することができる。そこで、本実施形態では、モータ脱調の可能性有無の判定において、モータ自己負荷とモータに対する外乱の方向を考慮する。
<Third embodiment>
During the acceleration / deceleration of the motor, a load torque (hereinafter referred to as self-load) due to the motor's own inertia moment (hereinafter referred to as self-inertia) is generated in the motor. Therefore, in the embodiment described above, the occurrence of disturbance during motor acceleration / deceleration is used as a criterion for determining the possibility of malfunction such as motor step-out. However, in order to further improve the determination accuracy, it is possible to consider the relationship between the direction of self-load and disturbance and the rotation direction of the motor. Therefore, in the present embodiment, the motor self-load and the direction of disturbance with respect to the motor are taken into consideration in the determination of the possibility of motor step-out.
本実施形態の可能性検出部102の構成は第一実施形態と同様である。本実施形態では、パラメータ抽出部104は、モータの加速度を求め、脆弱判定部105は加速度の正負、つまり、加速しているのか減速しているのかを判定して自己負荷の方向を判定する。具体的には、加速中であると、自己負荷の方向はモータの回転方向とは逆方向である。これは、モータの加速中には、回転速度を上げようとするモータの回転力に対して、一定速度で回転し続けようとする力がモータの回転方向とは逆方向に働くためである。一方、モータの減速中であれば、自己負荷の方向は、モータの回転方向と同方向である。これは、モータ減速中には、回転速度を下げようとするモータの回転力に対して、一定速度で回転し続けようとする力がモータ回転方向と同方向に働くためである。脆弱判定部105は、自己負荷の方向を含む脆弱通知を行う。
The configuration of the
また、本実施形態において、外乱検出部107は、図11にその例を示す外乱要因情報108を有している。なお、図11の外乱方向において、−1は、モータの回転方向と外乱方向が逆向きであることを示し、1は、同じ向きであることを示している。本実施形態において、外乱判定部109は、外乱通知に外乱方向を示す情報を含める。また、判定部110は、脆弱通知で通知される自己負荷の方向と、外乱通知で通知される外乱方向が同じであると、動作不良の可能性有と判定する。
In the present embodiment, the
以上のように、モータ自身の回転運動により発生する自己負荷と、制御対象装置がモータに与える外乱の方向を考慮し、モータ動作不良可能性の有無を判定する。これにより、モータ動作不良の可能性がない状態、すなわち、制御ソフトウエアに不備がない状態を誤検出する可能性が減り、制御ソフトウエア検証時に適切にモータの動作不良の可能性を検出することができる。 As described above, the presence / absence of the possibility of motor operation failure is determined in consideration of the self-load generated by the rotational motion of the motor itself and the direction of disturbance given to the motor by the control target device. This reduces the possibility of erroneous detection of a state where there is no possibility of motor malfunction, that is, a state where the control software is not defective, and properly detects the possibility of motor malfunction during control software verification. Can do.
[その他の実施形態]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウエア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Embodiments]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed.
Claims (9)
前記制御ソフトウエアの制御対象装置の動作を模擬する装置シミュレータと、
前記制御部シミュレータが前記装置シミュレータに出力する制御信号に基づき、前記制御対象装置の検証対象部品の所定の制御パラメータが所定の条件を満たすかを判定する第1判定手段と、
前記装置シミュレータの模擬動作から前記検証対象部品の動作に影響を与える所定の外乱が前記検証対象部品に発生しているかを判定する第2判定手段と、
前記検証対象部品の所定の制御パラメータが所定の条件を満たしているときに、前記所定の外乱が発生すると、前記検証対象部品に動作不良の可能性があると判定する第3判定手段と、
を備えていることを特徴とする検証装置。 A control unit simulator for executing control software;
A device simulator for simulating the operation of the control target device of the control software;
First determination means for determining whether a predetermined control parameter of a verification target part of the control target device satisfies a predetermined condition based on a control signal output from the control unit simulator to the device simulator;
Second determination means for determining whether a predetermined disturbance affecting the operation of the verification target part is generated in the verification target part from a simulated operation of the apparatus simulator;
Third determination means for determining that the verification target part may have a malfunction if the predetermined disturbance occurs when a predetermined control parameter of the verification target part satisfies a predetermined condition;
The verification apparatus characterized by comprising.
前記第3判定手段は、前記モータに発生するトルクの方向と前記モータに加わる力の方向が同じであると前記モータに動作不良の可能性があると判定することを特徴とする請求項5に記載の検証装置。 The predetermined disturbance determined by the second determination means is a direction of a force applied to the motor from the outside,
6. The method according to claim 5, wherein the third determination unit determines that there is a possibility of malfunction of the motor if the direction of the torque generated in the motor and the direction of the force applied to the motor are the same. The verification device described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013245439A JP6249740B2 (en) | 2013-11-27 | 2013-11-27 | Control software verification device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013245439A JP6249740B2 (en) | 2013-11-27 | 2013-11-27 | Control software verification device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015103192A true JP2015103192A (en) | 2015-06-04 |
JP6249740B2 JP6249740B2 (en) | 2017-12-20 |
Family
ID=53378799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013245439A Expired - Fee Related JP6249740B2 (en) | 2013-11-27 | 2013-11-27 | Control software verification device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6249740B2 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003030251A (en) * | 2001-07-19 | 2003-01-31 | Fujitsu Ltd | Simulation system, method, program and recording medium |
JP2006178728A (en) * | 2004-12-22 | 2006-07-06 | Canon Inc | Design support device, design support program and design support method |
JP2008065712A (en) * | 2006-09-08 | 2008-03-21 | Canon Inc | Design support method, design support system, design support program, storage medium |
JP2008077356A (en) * | 2006-09-20 | 2008-04-03 | Canon Inc | Design support method, design support device, design support program, and storage medium |
JP2009113271A (en) * | 2007-11-05 | 2009-05-28 | Toyo Electric Mfg Co Ltd | Driving control device for printer |
JP2010033192A (en) * | 2008-07-25 | 2010-02-12 | Canon Inc | Information processor, method of controlling the same, computer program, and storage medium |
-
2013
- 2013-11-27 JP JP2013245439A patent/JP6249740B2/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003030251A (en) * | 2001-07-19 | 2003-01-31 | Fujitsu Ltd | Simulation system, method, program and recording medium |
JP2006178728A (en) * | 2004-12-22 | 2006-07-06 | Canon Inc | Design support device, design support program and design support method |
JP2008065712A (en) * | 2006-09-08 | 2008-03-21 | Canon Inc | Design support method, design support system, design support program, storage medium |
JP2008077356A (en) * | 2006-09-20 | 2008-04-03 | Canon Inc | Design support method, design support device, design support program, and storage medium |
JP2009113271A (en) * | 2007-11-05 | 2009-05-28 | Toyo Electric Mfg Co Ltd | Driving control device for printer |
JP2010033192A (en) * | 2008-07-25 | 2010-02-12 | Canon Inc | Information processor, method of controlling the same, computer program, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP6249740B2 (en) | 2017-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3361442B1 (en) | Method and apparatus for detecting security using an industry internet operating system | |
JP6054010B2 (en) | Data determination apparatus, data determination method, and program | |
JP2017062824A5 (en) | ||
US20170026229A1 (en) | Failure detection method and device | |
EP2981893B1 (en) | Analyzing scada systems | |
JP6400255B2 (en) | Intrusion detection device and intrusion detection program | |
WO2020004315A1 (en) | Abnormality sensing device and abnormality sensing method | |
KR20160058498A (en) | apparatus and method for detecting layout of multi display apparatus | |
US20140189103A1 (en) | System for monitoring servers and method thereof | |
CN110826058A (en) | Malware detection based on user interaction | |
JP2007213194A (en) | Situation analytical system and situation analytical method | |
JP6391891B2 (en) | Intrusion detection device, intrusion detection method, and intrusion detection program | |
JP6249740B2 (en) | Control software verification device | |
JPWO2015136672A1 (en) | Motor control device, motor control system, motor control method, and motor control program | |
US9103883B2 (en) | Method and evaluation device for checking plausibility of an incremental counter | |
CN112650557B (en) | Command execution method and device | |
CN108920337A (en) | A kind of device exception information methods of exhibiting and computer equipment | |
EP3643020B1 (en) | System and method for stabilizing a bacnet mstp network when failures occur | |
WO2020246095A1 (en) | Control system, programmable logic controller, and information processing method | |
WO2022015313A1 (en) | Generation of alerts of correlated time-series behavior of environments | |
WO2017104284A1 (en) | Data processing device, data processing method, and data processing program | |
CN110166325B (en) | Method and device for determining communication network fault | |
US20170139796A1 (en) | Bus interface card detection system and method for detecting bus interface card | |
JP5997005B2 (en) | Information processing apparatus, process normal end determination method, and program | |
JP7390135B2 (en) | power converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20161116 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170809 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170904 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171011 |
|
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: 20171023 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20171121 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6249740 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |