JP2015103192A - Verification device for control software - Google Patents

Verification device for control software Download PDF

Info

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
Application number
JP2013245439A
Other languages
Japanese (ja)
Other versions
JP6249740B2 (en
Inventor
弘子 國本
Hiroko Kunimoto
弘子 國本
橘 達人
Tatsuto Tachibana
達人 橘
豊嶋 英一郎
Eiichiro Toyoshima
英一郎 豊嶋
彩 高木
Aya Takagi
彩 高木
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2013245439A priority Critical patent/JP6249740B2/en
Publication of JP2015103192A publication Critical patent/JP2015103192A/en
Application granted granted Critical
Publication of JP6249740B2 publication Critical patent/JP6249740B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a verification device that verifies whether a verification object component of a control object device may perform malfunction, when the control object device is controlled by a control software.SOLUTION: A verification device includes: first determination means 105 of determining whether a predetermined control parameter of a verification object component of a control object device meets a predetermined condition based upon a control signal that a control part simulator 301 outputs to a device simulator 303; second determination means 109 of determining whether predetermined disturbance affecting an operation of the verification object component occurs to the verification object component based on a simulating operation of the device simulator; and third determination means 110 of determining that the verification object component may perform malfunction if the predetermined disturbance occurs when the predetermined control parameter of the verification object component meets the predetermined condition.

Description

本開示は、制御ソフトウエアを検証する検証装置に関する。   The present disclosure relates to a verification device that verifies control software.

特許文献1は、モータを検証するためのシミュレーションシステムを開示している。特許文献1では、制御ソフトウエアを実行することにより出力されるモータ駆動信号に基づきモータ軸にかかる負荷を計算し、モータ動作に必要な駆動トルクを算出している。また、特許文献2は、モータを含む装置の制御ソフトウエアの動作検証用のシミュレーションシステムを開示している。特許文献2では、制御ソフトウエアを実行することで制御装置が出力する制御信号に応じて、装置の動作をシミュレーションしている。   Patent Document 1 discloses a simulation system for verifying a motor. In Patent Document 1, a load applied to a motor shaft is calculated based on a motor drive signal output by executing control software, and a drive torque necessary for motor operation is calculated. Patent Document 2 discloses a simulation system for verifying the operation of control software for an apparatus including a motor. In Patent Document 2, the operation of the apparatus is simulated according to a control signal output from the control apparatus by executing control software.

特開2003−30251号公報JP 2003-30251 A 特開2010−33192号公報JP 2010-33192 A

制御ソフトウエアは、そのリリース前にその動作が検証される。ここで、例えば、制御ソフトウエアを実行する制御部が、モータ加減速中にモータに過負荷がかかるような処理を行うとモータは脱調等の動作不良を起こす可能性が有る。この様に、制御ソフトウエアの検証においては、制御ソフトウエアの制御対象装置が有する検証対象部品が、制御ソフトウエアにより動作不良を起こす可能性があるかについても検証する必要がある。しかしながら、特許文献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, Patent Documents 1 and 2 do not disclose performing such verification.

本発明は、制御ソフトウエアによる制御対象装置の制御の際に、当該制御対象装置の検証対象部品が動作不良を行う可能性が有るかを検証する検証装置及びプログラムを提供するものである。   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.

一実施形態による検証装置の概略的な構成図。The schematic block diagram of the verification apparatus by one Embodiment. 一実施形態による検証装置のハードウェア構成図。The hardware block diagram of the verification apparatus by one Embodiment. 一実施形態による制御部シミュレータと装置シミュレータとの間で入出力される信号例を示す図。The figure which shows the example of a signal input / output between the control part simulator and apparatus simulator by one Embodiment. 一実施形態によるシミュレータハブでの処理のフローチャート。The flowchart of the process in the simulator hub by one Embodiment. 一実施形態によるパラメータ抽出部での処理のフローチャート。The flowchart of the process in the parameter extraction part by one Embodiment. 一実施形態による例示的な外乱要因情報を示す図。The figure which shows the example disturbance factor information by one Embodiment. 一実施形態による判定部での処理のフローチャート。The flowchart of the process in the determination part by one Embodiment. 一実施形態による制御パラメータを示す図。The figure which shows the control parameter by one Embodiment. 一実施形態による可能性検出部の構成図。The block diagram of the possibility detection part by one Embodiment. 一実施形態による制御パラメータの値で分類した脆弱状態種別と、判定部が保持する脆弱状態種別と外乱種別との関係を示す。The relationship between the weak state classification classified by the value of the control parameter by one Embodiment and the weak state classification and disturbance type which a judgment part holds is shown. 一実施形態による外乱種別を示す図。The figure which shows the disturbance classification by one Embodiment.

以下、本発明の例示的な実施形態について図面を参照して説明する。なお、以下の各図においては、実施形態の説明に必要ではない構成要素については図から省略する。   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 hard disk 202c of the main body 202 in FIG. 2 stores a program for realizing each function of the verification apparatus, various data including information on the control target apparatus, and control software to be verified. The central processing unit 202a loads a program and various data into the main storage unit 202b and executes the program, whereby the computer system 201 operates as a verification device. The display device 203 displays a screen in accordance with an instruction from the main body unit 202. A keyboard 204 is used to input user instructions and character information to the computer system 201. Further, the mouse 205 is for inputting an instruction corresponding to an icon or the like displayed at the position by designating an arbitrary position on the display device 203.

図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 simulator unit 101 and a possibility detection unit 102. The simulator unit 101 uses a synchronization method in which a predetermined period is one unit time and simulation processing is performed every unit time. In the following description, time or time is used to indicate time or time in this simulation.

シミュレータ部101の制御部シミュレータ301は、制御対象装置の制御部の動作を模擬する。つまり、制御部シミュレータ301は、制御対象装置の制御部が実行する制御ソフトウエアを実行し、制御対象装置のセンサ等が出力する制御対象装置の動作状態を示す信号を受け取り、制御対象装置の各部品に制御信号を出力する。なお、制御部シミュレータ301は、制御信号をシミュレータハブ(以下、HUBと記す。)302に出力する。また、制御部シミュレータ301は、制御信号を変化させる際には、そのときの時刻もHUB302に通知する。   The control unit simulator 301 of the simulator unit 101 simulates the operation of the control unit of the control target device. That is, the control unit simulator 301 executes control software executed by the control unit of the control target device, receives a signal indicating an operation state of the control target device output from a sensor or the like of the control target device, and receives each signal of the control target device. Output control signals to parts. The control unit simulator 301 outputs a control signal to a simulator hub (hereinafter referred to as HUB) 302. Further, when changing the control signal, the control unit simulator 301 notifies the HUB 302 of the time at that time.

装置シミュレータ303は、制御ソフトウエアの制御対象装置、本例では、画像形成装置の各部品の動作を模擬する。装置シミュレータ303は、制御対象装置の各部品に対する制御信号と、各部品が出力する出力信号を管理する。具体的には、装置シミュレータ303は、制御対象装置の各部品に部品識別子(以下、部品IDと称する。)を割り当て、部品IDと当該部品の制御信号又は出力信号とを関連付けて管理する。図3に、部品IDがSTPMであるステッピングモータについての制御信号の例を示す。なお、図3の表の信号1〜4は、シミュレータ部101の各部の結線信号の識別子(以下、信号IDと称する)であり、HUB302が管理する。   An apparatus simulator 303 simulates the operation of each component of the control target apparatus of the control software, in this example, the image forming apparatus. The device simulator 303 manages a control signal for each component of the control target device and an output signal output by each component. Specifically, the device simulator 303 assigns a component identifier (hereinafter referred to as a component ID) to each component of the control target device, and manages the component ID and the control signal or output signal of the component in association with each other. FIG. 3 shows an example of a control signal for a stepping motor whose component ID is STPM. Signals 1 to 4 in the table of FIG. 3 are connection signal identifiers (hereinafter referred to as signal IDs) of the respective units of the simulator unit 101, and are managed by the HUB 302.

装置シミュレータ303は、各部品の出力信号の値の変化を、その時間と共にHUB302に通知する。また、装置シミュレータ303の事象判定部304は、外乱検出部107から、外乱検出部107にその発生や終了を通知する事象を事象情報通知で受け取り、事象情報通知で受け取った事象を事象情報305として保持している。そして、事象判定部304は、制御対象装置の模擬動作の結果、事象情報305が示す事象が発生したり終了したりすると、当該事象の発生や終了を状態通知で外乱検出部107に通知する。なお、事象情報305は、事象管理番号で識別される。具体的には、装置シミュレータ303は、ある時点でのHUB302からの制御信号や制御対象装置の各部品の特性等から1単位時間後の装置状態を解析する。事象判定部304は、1単位時間分の動作シミュレーション毎に、事象情報305に示される事象が発生しているか否かを判定する。判定結果が、1単位時間前の判定結果と異なる場合は、外乱検出部107に事象状態の更新を通知する。この事象通知は、事象管理番号と、事象の発生又は終了を示す値と、その時刻を含む。   The device simulator 303 notifies the HUB 302 of the change in the value of the output signal of each component together with the time. In addition, the event determination unit 304 of the apparatus simulator 303 receives, from the disturbance detection unit 107, an event that notifies the disturbance detection unit 107 of the occurrence and termination thereof by event information notification, and the event received by the event information notification as event information 305. keeping. Then, when the event indicated by the event information 305 occurs or ends as a result of the simulated operation of the control target device, the event determination unit 304 notifies the disturbance detection unit 107 of the occurrence or end of the event by a status notification. The event information 305 is identified by an event management number. Specifically, the device simulator 303 analyzes the device state after one unit time from the control signal from the HUB 302 at a certain point in time, the characteristics of each component of the device to be controlled, and the like. The event determination unit 304 determines whether or not the event indicated in the event information 305 has occurred for each operation simulation for one unit time. When the determination result is different from the determination result one unit time ago, the disturbance detection unit 107 is notified of the update of the event state. This event notification includes an event management number, a value indicating the occurrence or end of the event, and its time.

また、装置シミュレータ303は、HUB302及び可能性検出部102と、本実施形態の検証対象部品であるモータの情報を共有するために、シミュレーション開始前までに、モータ情報306を外部へ出力する。モータ情報306は、検証対象のモータの部品IDと、モータの制御信号の信号IDを含む。HUB302と可能性検出部102は、モータ情報306を読み込むことで、シミュレーション開始時に、検証対象のモータについての情報を取得する。   Further, the apparatus simulator 303 outputs the motor information 306 to the outside before the simulation is started in order to share the information of the motor that is the verification target component of the present embodiment with the HUB 302 and the possibility detection unit 102. The motor information 306 includes a component ID of a motor to be verified and a signal ID of a motor control signal. The HUB 302 and the possibility detection unit 102 read the motor information 306 to acquire information about the verification target motor at the start of the simulation.

HUB302は、制御部シミュレータ301と装置シミュレータ303の時刻同期処理と、信号結線処理と、信号の伝達処理を行う。さらに、HUB302は、可能性検出部102との連携処理を行い、可能性検出部102に検証対象のモータに対する制御信号の変化を通知する。   The HUB 302 performs time synchronization processing, signal connection processing, and signal transmission processing of the control unit simulator 301 and the device simulator 303. Further, the HUB 302 performs cooperation processing with the possibility detection unit 102 and notifies the possibility detection unit 102 of a change in the control signal for the motor to be verified.

制御部シミュレータ301と装置シミュレータ303の時刻同期について、簡単に説明する。HUB302は、まず、制御部シミュレータ301及び装置シミュレータ303に所定時間分(1単位時間分)のシミュレーション実行を指示する。指示を受けた各シミュレータは、所定時間分のシミュレーション処理を実行し、シミュレーション処理を終えると、HUB302にシミュレーション処理終了を通知する。   The time synchronization between the control unit simulator 301 and the device simulator 303 will be briefly described. First, the HUB 302 instructs the control unit simulator 301 and the device simulator 303 to execute a simulation for a predetermined time (one unit time). Each simulator that receives the instruction executes a simulation process for a predetermined time, and when the simulation process is completed, notifies the HUB 302 of the end of the simulation process.

HUB302は、信号結線および信号情報伝達処理のために信号管理情報307を有している。信号管理情報307は、信号IDと、信号サイズ(信号線が何ビット長であるかを示す情報)と、信号出力元のシミュレータと、信号入力先のシミュレータと、の4つの項目を含む。また、HUB302は、検証対象のモータに対する制御信号の変化を脆弱検出部103に通知するために、変化通知部308を有している。変化通知部308は、モータ情報306を読み込み、モータの部品ID毎に制御信号の信号IDを格納している。変化通知部308は、制御部シミュレータ301が出力する検証対象のモータの制御信号が変化すると、脆弱検出部103へ制御信号の変化を通知する。この通知は、制御信号の信号IDと、信号値と、変化の時間を含んでいる。   The HUB 302 has signal management information 307 for signal connection and signal information transmission processing. The signal management information 307 includes four items: a signal ID, a signal size (information indicating how many bits the signal line is), a signal output source simulator, and a signal input destination simulator. Further, the HUB 302 has a change notification unit 308 in order to notify the vulnerability detection unit 103 of a change in the control signal for the verification target motor. The change notification unit 308 reads the motor information 306 and stores the signal ID of the control signal for each motor component ID. The change notification unit 308 notifies the vulnerability detection unit 103 of a change in the control signal when the control signal of the verification target motor output from the control unit simulator 301 changes. This notification includes the signal ID of the control signal, the signal value, and the time of change.

図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 HUB 302 for notifying the vulnerability detection unit 103 of a change in the motor control signal. In step S10, the HUB 302 waits until the control signal output from the control unit simulator 301 and the output signal output from the apparatus simulator 303 change. When the signal changes, the HUB 302 transmits the signal change to the control unit simulator 301 or the device simulator 303 in S11. Thereafter, in S12, the HUB 302 determines whether the changed signal is a control signal from the control unit simulator 301 for the motor that is the verification target component. This determination is made based on the motor information 306 read before starting the simulation. If the changed signal is not the control signal for the motor that is the verification target component, the HUB 302 repeats the processing from S10. On the other hand, if the changed signal is a control signal of the motor that is the verification target component, the HUB 302 notifies the weakness detection unit 103 of the change of the motor control signal in S13, and repeats the processing from S10.

次に、シミュレーション開始時のシミュレータ部101と可能性検出部102との連携に関してHUB302が行う処理について説明する。HUB302は、シミュレーション開始時に、可能性検出部102へシミュレーション開始予告通知を出力する。可能性検出部102は、動作不良検出の前準備終了後、HUB302に対して準備終了通知を行う。HUB302は、可能性検出部102からの準備終了通知が行われるまで待機し、準備終了通知受信後、各シミュレータにシミュレーションの実行開始を指示する。   Next, processing performed by the HUB 302 regarding cooperation between the simulator unit 101 and the possibility detection unit 102 at the start of simulation will be described. The HUB 302 outputs a simulation start notice to the possibility detection unit 102 at the start of the simulation. The possibility detection unit 102 notifies the HUB 302 of the completion of preparation after completion of preparation for malfunction detection. The HUB 302 waits until a preparation completion notification is sent from the possibility detection unit 102 and, after receiving the preparation completion notification, instructs each simulator to start simulation.

続いて、可能性検出部102について説明する。可能性検出部102の脆弱検出部103は、モータが外乱に対して脆弱な状態(モータの動作が不良となる可能性が有る状態)となっているかを検出する。また、外乱検出部107は、モータに対する外乱が発生しているか否かを検出する。さらに、判定部110は、脆弱状態と外乱状態から動作不良の可能性の有無を判定する。   Next, the possibility detection unit 102 will be described. The vulnerability detection unit 103 of the possibility detection unit 102 detects whether or not the motor is vulnerable to disturbance (a state in which the motor operation may be defective). Also, the disturbance detection unit 107 detects whether or not a disturbance to the motor has occurred. Furthermore, the determination unit 110 determines whether or not there is a possibility of malfunction from the fragile state and the disturbance state.

可能性検出部102は、HUB302からのシミュレーション開始予告通知を受け取ると、前準備を開始する。前準備において、脆弱検出部103は、モータ情報306を読み込み、モータの制御信号の信号IDを内部に格納する。なお、格納する信号IDは、検証対象となっているモータについての信号IDである。また、外乱検出部107は、後述する外乱要因情報108を事象情報通知として装置シミュレータ303に送信する。以上の前準備が完了すると、可能性検出部102は、HUB302に対して前準備完了通知を行う。   When receiving the simulation start notice from the HUB 302, the possibility detecting unit 102 starts preparation. In preparation, the vulnerability detection unit 103 reads the motor information 306 and stores the signal ID of the motor control signal therein. The signal ID to be stored is the signal ID for the motor that is the verification target. Also, the disturbance detection unit 107 transmits disturbance factor information 108 described later to the apparatus simulator 303 as an event information notification. When the above preparation is completed, the possibility detection unit 102 notifies the HUB 302 of the preparation completion.

脆弱検出部103は、パラメータ抽出部104と脆弱判定部105を備えている。パラメータ抽出部104は、ステッピングモータに関するプログラムの制御要素に着目し、モータの脆弱性に関する制御パラメータを抽出する。ステッピングモータに関するプログラムの制御要素とは、例えば、モータ速度、モータの電流設定値、モータの励磁パターンである。また、脆弱性に関する制御パラメータとは、例えば、モータ速度の変化率(モータ加速度)と、モータ電流値と、モータ励磁パターンである。   The vulnerability detection unit 103 includes a parameter extraction unit 104 and a vulnerability determination unit 105. The parameter extraction unit 104 focuses on the control elements of the program related to the stepping motor and extracts the control parameters related to the motor vulnerability. The control elements of the program relating to the stepping motor are, for example, the motor speed, the motor current setting value, and the motor excitation pattern. Further, the control parameters related to vulnerability are, for example, a motor speed change rate (motor acceleration), a motor current value, and a motor excitation pattern.

パラメータ抽出部104は、抽出対象の制御パラメータに関する情報(以降、抽出パラメータ情報113と呼ぶ。)と、制御パラメータの抽出に必要なモータの制御信号を予め保持している。制御パラメータの抽出に必要なモータの制御信号とは、抽出対象の制御パラメータが、モータ加速度である場合は、モータ速度を定めるA相励磁信号とB相励磁信号とすることができる。また、抽出対象の制御パラメータが、モータ電流値である場合は、A相電流設定とB相電流設定とすることができる。   The parameter extraction unit 104 holds in advance information related to a control parameter to be extracted (hereinafter referred to as extraction parameter information 113) and a motor control signal necessary for extraction of the control parameter. When the control parameter to be extracted is motor acceleration, the motor control signal necessary for the control parameter extraction can be an A-phase excitation signal and a B-phase excitation signal that determine the motor speed. Further, when the control parameter to be extracted is a motor current value, the A-phase current setting and the B-phase current setting can be set.

図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 parameter extraction unit 104. In S20, the parameter extraction unit 104 stands by until a change in the motor control signal is notified from the HUB 302. Upon receiving the control signal change notification, the parameter extraction unit 104 determines whether the control signal is related to the control parameter to be extracted based on the extracted parameter information 113 in S21. If it is not a control signal related to the control parameter to be extracted, the parameter extraction unit 104 repeats the processing from S20. On the other hand, if it is a control signal related to the control parameter to be extracted, the parameter extraction unit 104 calculates the value of the control parameter from the control signal in S22, and sends an update notification to the vulnerability determination unit 105 in S23. The update notification includes the value of the control parameter and its change time. Thereafter, the parameter extraction unit 104 repeats the processing from S20.

具体例として、抽出対象の制御パラメータがモータ加速度であり、信号が図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 signals 1 and 2 in FIG. 3, that is, the A phase and B phase excitation signals. When the parameter extraction unit 104 is notified of the change in the motor control signal in S20, the parameter extraction unit 104 determines in S21 whether the control signal is an A-phase excitation signal or a B-phase excitation signal. For example, when the control signal notified of the change in S20 is the signal 4 in FIG. 3, that is, the B-phase current setting, the determination in S21 is “No” and the process returns to S20. On the other hand, when the control signal notified of the change in S20 is, for example, an A-phase excitation signal, the determination in S21 is “Yes”, and the process proceeds to S22. Since the control parameter to be extracted is motor acceleration, the parameter extraction unit 104 calculates the motor acceleration in S22. The parameter extraction unit 104 first obtains the motor speed from the time interval of the excitation signal change, and sets this as the current motor speed. Then, the motor acceleration is obtained from the current motor speed, the previous motor speed, and the time interval.

S23で、パラメータ抽出部104は、モータの加速度の値と、変化時刻と、当該モータの部品IDを脆弱判定部105へ通知する。なお、パラメータ抽出部104は、制御パラメータの抽出時に、ソフトウエア制御上のばらつきに対するフィルタリングを行うことができる。例えば、制御上、モータの加速度の絶対値に0.005以下のばらつきが起こり得る場合、モータの加速度の絶対値が0.005以下の場合は、モータ加速度の値を0として扱うことができる。   In S23, the parameter extraction unit 104 notifies the vulnerability determination unit 105 of the motor acceleration value, the change time, and the motor component ID. Note that the parameter extraction unit 104 can perform filtering on variations in software control when extracting control parameters. For example, if the absolute value of the motor acceleration may vary by 0.005 or less for control, the motor acceleration value can be treated as 0 if the absolute value of the motor acceleration is 0.005 or less.

脆弱判定部105(第1判定部)は、パラメータ抽出部104から通知された制御パラメータ値に基づき、モータが外乱に対して脆弱な状態となっているか判定するための判定基準情報106を有している。脆弱判定部105は、パラメータ抽出部104からの更新通知をトリガとして、脆弱状態の判定を開始し、判定結果(脆弱状態が発生しているか否か)を判定部110に通知する。   The vulnerability determination unit 105 (first determination unit) includes determination criterion information 106 for determining whether the motor is vulnerable to disturbance based on the control parameter value notified from the parameter extraction unit 104. ing. The vulnerability determination unit 105 uses the update notification from the parameter extraction unit 104 as a trigger to start determination of the vulnerable state, and notifies the determination unit 110 of the determination result (whether or not a vulnerable state has occurred).

例えば、モータが加減速中に脆弱状態が発生するとの判定基準であれば、判定基準情報106は、モータ加速度が0でない場合に脆弱状態が発生との基準を示している。また、例えば、加速度又は減速度の絶対値が所定値以上又は以下との判定基準とすることもできる。脆弱判定部105は、脆弱状態であるか否かの判定を行い、前回の判定結果と異なる場合に判定部110に脆弱通知を行う。脆弱通知は、脆弱状態の発生又は終了を示す情報と、その時刻を示す情報を含んでいる。なお時刻は、パラメータ抽出部104からの更新通知に含まれる時刻情報である。   For example, if the criterion is that a fragile state occurs during acceleration / deceleration of the motor, the criterion information 106 indicates a criterion that a fragile state occurs when the motor acceleration is not zero. In addition, for example, a determination criterion that the absolute value of acceleration or deceleration is greater than or less than a predetermined value may be used. The vulnerability determination unit 105 determines whether or not it is in a fragile state, and notifies the determination unit 110 of a vulnerability when it is different from the previous determination result. The vulnerability notification includes information indicating the occurrence or end of the vulnerability state and information indicating the time. The time is time information included in the update notification from the parameter extraction unit 104.

次に、外乱検出部107について説明する。外乱検出部107は、外乱要因情報108と外乱判定部109とを備えている。外乱要因情報108は、制御対象装置の動作において、検証対象部品であるモータの動作に影響する要因を示す情報である。図6に外乱要因情報108の例を示す。なお、外乱要因情報108は、装置シミュレータ303に事象情報として通知され、装置シミュレータ303において事象情報305として管理される。よって、装置シミュレータ303が外乱検出部107に対して行う状態通知とは、外乱要因情報108が示す状態が発生したこと、或いは、終了したことを示す通知である。   Next, the disturbance detection unit 107 will be described. The disturbance detection unit 107 includes disturbance factor information 108 and a disturbance determination unit 109. The disturbance factor information 108 is information indicating factors that affect the operation of the motor that is the verification target component in the operation of the control target device. FIG. 6 shows an example of the disturbance factor information 108. The disturbance factor information 108 is notified as event information to the device simulator 303 and managed as event information 305 in the device simulator 303. Therefore, the state notification performed by the apparatus simulator 303 to the disturbance detection unit 107 is a notification indicating that the state indicated by the disturbance factor information 108 has occurred or ended.

外乱判定部109(第2判定部)は、装置シミュレータ303から発生を示す状態通知を受け取ると、外乱発生と判定し、終了を示す状態通知を受け取ると、外乱終了と判定し、外乱の発生又は終了を判定部110に通知する。この外乱通知は、外乱の発生又は終了を示す情報と、外乱の発生又は終了の時刻を含んでいる。   When the disturbance determination unit 109 (second determination unit) receives a state notification indicating occurrence from the apparatus simulator 303, the disturbance determination unit 109 determines that a disturbance has occurred, and when receiving a state notification indicating completion, determines that the disturbance has ended, The determination unit 110 is notified of the end. This disturbance notification includes information indicating the occurrence or end of the disturbance and the time of occurrence or end of the disturbance.

判定部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 vulnerability detection unit 103 and the occurrence of the disturbance notified by the disturbance detection unit 107. .

図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 determination unit 110. The determination unit 110 waits until a weak state occurs in S30. When a fragile state occurs, the determination unit 110 determines whether or not a disturbance has occurred in S31. If the disturbance has occurred, the determination unit 110 determines that there is a possibility of a malfunction and notifies a warning in S33. Here, the notification of the warning is performed by an arbitrary output to the user, such as a screen display for the user using the verification device. If no disturbance has occurred in S31, the determination unit 110 determines that there is no possibility of malfunction, and determines in S32 whether the fragile state continues. If the weak state continues in S32, the determination unit 110 repeats the process from S31, and if the weak state does not continue, the determination unit 110 repeats the process from S30. In addition, since the occurrence time is included in the vulnerability notification and the disturbance notification, the determination unit 110 can include the time at which a malfunction may occur in the warning notification in S33. It is also possible to display a timing chart regarding the occurrence and termination of the vulnerability notification and disturbance notification.

なお、上記説明では、抽出対象の制御パラメータがモータ加速度である場合を例に挙げたが、抽出対象の制御パラメータがモータ電流値の場合は、図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 parameter extraction unit 104 is notified of a change in the value of the signal A or the signal B from the HUB 302, the parameter extraction unit 104 performs an update notification including the current value obtained from the values of the signal A and the signal B to the vulnerability determination unit 105. For example, if the motor current value is 66% or less, the vulnerability determination unit 105 can determine that the state is a weak state.

また、抽出対象の制御パラメータが励磁パターンである場合、パラメータ抽出部104は、図5のS22において励磁パターン(2相励磁、1−2相励磁など)を抽出し、抽出パラメータである励磁パターンを脆弱判定部105に通知する。脆弱判定部105は、判定基準情報106に従って、通知される励磁パターンからモータが脆弱状態であるかを判定する。この場合、判定基準情報106は、例えば、2相励磁ではない場合に脆弱状態と判定することを示している。   If the control parameter to be extracted is an excitation pattern, the parameter extraction unit 104 extracts an excitation pattern (2-phase excitation, 1-2 phase excitation, etc.) in S22 of FIG. The vulnerability determination unit 105 is notified. The vulnerability determination unit 105 determines whether the motor is in a fragile state from the notified excitation pattern according to the determination criterion information 106. In this case, the determination criterion information 106 indicates that, for example, it is determined that the state is weak when it is not two-phase excitation.

なお、上記実施形態は、二相ステッピングモータを例にして行ったが、他の種別のモータであっても、制御信号の状態と脆弱状態を関連付けて本発明を適用することができる。例えば、モータが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 control unit simulator 301, it is determined whether or not it is in a fragile state based on a predetermined control parameter. Furthermore, it is determined from the simulated operation of the apparatus simulator 303 whether or not a predetermined disturbance has occurred. If a predetermined disturbance occurs in the fragile state, it is determined that there is a possibility of a malfunction. With this configuration, it is possible to detect whether or not there is a possibility of malfunction of the motor by the control software. Therefore, the problem of motor control can be notified to the user at the time of program operation verification, and verification efficiency can be improved.

<第二実施形態>
第一実施形態では、脆弱状態であるときに外乱が発生すると動作不良の可能性有と判定していた。しかし、外乱の種別によって、モータの脱調等を招く可能性の度合いは異なり得る。例えば、モータが加減速中との脆弱状態にあるときに、用紙が搬送路の所定位置に突入する外乱が発生してもモータ脱調の可能性は少ないが、当該モータが駆動しているローラに用紙が接するという外乱が発生するとモータ脱調の可能性がある場合である。また、脆弱状態の種別によっては、同じ外乱でも動作不良の可能性は異なる。例えば、モータが加減速中との脆弱状態は、さらに、定格範囲内及び定格範囲外という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 possibility detecting unit 102 in the present embodiment. The difference from the possibility detection unit 102 of the first embodiment is that the vulnerability detection unit 103 is provided with a type determination unit 114, the disturbance detection unit 107 is provided with a disturbance type notification unit 116, and the determination unit 110 performs malfunction condition information 111. Is to hold.

種別判定情報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 type determination unit 114 in FIG. 9 determines the type of the fragile state from the control parameter value included in the update notification from the parameter extraction unit 104 and the type determination information 115. The type determination unit 114 notifies the determination unit 110 of the determined state type. This state type notification includes information indicating the state type and the time when the state type has changed.

外乱種別通知部116は、外乱の発生又は終了時に、発生又は終了した外乱の種別を判定部110に通知する。例えば、外乱種別は、事象通知に含まれる事象管理番号を使用して特定することができる。外乱種別通知は、外乱種別を示す情報とその変更時刻とを含んでいる。   The disturbance type notification unit 116 notifies the determination unit 110 of the type of disturbance that has occurred or ended when a disturbance occurs or ends. For example, the disturbance type can be specified using an event management number included in the event notification. The disturbance type notification includes information indicating the disturbance type and its change time.

本実施形態において、判定部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 determination unit 110 determines the possibility of malfunction for each disturbance type. For this reason, the determination unit 110 holds malfunction condition information 111 whose example is shown in FIG. The determination unit 110 recognizes the presence / absence of the vulnerable state and its type based on the vulnerability notification and the vulnerability type notification from the vulnerability detection unit 103. Further, the disturbance and the type of the disturbance are recognized by the disturbance notification and the disturbance type notification. When a disturbance occurs in the fragile state, the determination unit 110 further determines the possibility of the operation failure using the operation failure condition information 111 based on the state type of the fragile state and the type of the disturbance. For example, it is assumed that the malfunction condition information 111 is as shown in FIG. 10B, and a fragile state of state type B has occurred. In this state, when the disturbance of the type indicated by the number 1 occurs, the type B is not described in the state type corresponding to the disturbance type of the number 1 in FIG. It is determined that there is no possibility of failure. On the other hand, when a disturbance of the type indicated by number 2 occurs, type B is described in the state type corresponding to the disturbance type of number 2 in FIG. It is determined that there is a possibility.

なお、例えば、状態種別によっては、外乱の発生有無に拘らず動作不良の可能性が有ると判定することもできる。例えば、モータの加速度が定格外の異常な加速度であると、脆弱状態の状態種別が"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 determination unit 110 generates a disturbance when the state type is “Z”. It can also be determined that there is a possibility of malfunction regardless of the presence or absence.

以上、脆弱状態の状態種別及び外乱種別に応じて動作不良の可能性を判定することで、判定精度を高めることができ、制御ソフトウエアの動作検証の効率が向上する。   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 possibility detection unit 102 of the present embodiment is the same as that of the first embodiment. In the present embodiment, the parameter extraction unit 104 obtains the acceleration of the motor, and the vulnerability determination unit 105 determines the direction of self-load by determining whether the acceleration is positive or negative, that is, whether the vehicle is accelerating or decelerating. Specifically, when accelerating, the self-load direction is opposite to the motor rotation direction. This is because during the acceleration of the motor, the force that continues to rotate at a constant speed acts in the direction opposite to the rotation direction of the motor with respect to the rotational force of the motor that increases the rotation speed. On the other hand, if the motor is decelerating, the direction of self-load is the same as the rotation direction of the motor. This is because during motor deceleration, a force that continues to rotate at a constant speed acts in the same direction as the motor rotation direction with respect to the rotation force of the motor that attempts to decrease the rotation speed. The vulnerability determination unit 105 performs vulnerability notification including the direction of self-load.

また、本実施形態において、外乱検出部107は、図11にその例を示す外乱要因情報108を有している。なお、図11の外乱方向において、−1は、モータの回転方向と外乱方向が逆向きであることを示し、1は、同じ向きであることを示している。本実施形態において、外乱判定部109は、外乱通知に外乱方向を示す情報を含める。また、判定部110は、脆弱通知で通知される自己負荷の方向と、外乱通知で通知される外乱方向が同じであると、動作不良の可能性有と判定する。   In the present embodiment, the disturbance detection unit 107 has disturbance factor information 108 whose example is shown in FIG. In the disturbance direction of FIG. 11, -1 indicates that the rotation direction of the motor and the disturbance direction are opposite directions, and 1 indicates that they are the same direction. In the present embodiment, the disturbance determination unit 109 includes information indicating the disturbance direction in the disturbance notification. Further, the determination unit 110 determines that there is a possibility of malfunction if the self-load direction notified by the vulnerability notification and the disturbance direction notified by the disturbance notification are the same.

以上のように、モータ自身の回転運動により発生する自己負荷と、制御対象装置がモータに与える外乱の方向を考慮し、モータ動作不良可能性の有無を判定する。これにより、モータ動作不良の可能性がない状態、すなわち、制御ソフトウエアに不備がない状態を誤検出する可能性が減り、制御ソフトウエア検証時に適切にモータの動作不良の可能性を検出することができる。   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判定手段は、前記検証対象部品の所定の制御パラメータの値に基づき前記検証対象部品の状態を分類した状態種別と、前記検証対象部品の動作に影響を与える外乱の種別である外乱種別との関係を保持し、前記第1判定手段から通知される状態種別と、前記第2判定手段から通知される外乱種別と、前記保持する関係に基づき前記検証対象部品に動作不良の可能性があるかを判定することを特徴とする請求項1に記載の検証装置。   The third determination unit includes a state type that classifies the state of the verification target part based on a value of a predetermined control parameter of the verification target part, and a disturbance type that is a type of disturbance that affects the operation of the verification target part. The state type notified from the first determination unit, the disturbance type notified from the second determination unit, and the possibility that the verification target component is malfunctioning based on the held relationship. The verification apparatus according to claim 1, wherein it is determined whether there is any. 前記検証対象部品はモータであることを特徴とする請求項1又は2に記載の検証装置。   The verification apparatus according to claim 1, wherein the verification target component is a motor. 前記検証対象部品の所定の制御パラメータは、モータの加速度、モータの電流値及びモータの励磁パターンの少なくとも1つを含むことを特徴とする請求項3に記載の検証装置。   The verification apparatus according to claim 3, wherein the predetermined control parameter of the verification target component includes at least one of a motor acceleration, a motor current value, and a motor excitation pattern. 前記検証対象部品の所定の制御パラメータは、モータの加減速時に前記モータに発生するトルクの方向であることを特徴とする請求項3に記載の検証装置。   The verification apparatus according to claim 3, wherein the predetermined control parameter of the verification target component is a direction of a torque generated in the motor during acceleration / deceleration of the motor. 前記第2判定手段が判定する所定の外乱は、前記モータに外部から加わる力の方向であり、
前記第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.
前記第3判定手段は、前記検証対象部品に動作不良の可能性があることを前記検証装置のユーザに通知することを特徴とする請求項1から6のいずれか1項に記載の検証装置。   The verification apparatus according to claim 1, wherein the third determination unit notifies a user of the verification apparatus that there is a possibility of malfunction in the verification target part. 前記制御対象装置は画像形成装置であることを特徴とする請求項1から7のいずれか1項に記載の検証装置。   The verification apparatus according to claim 1, wherein the control target apparatus is an image forming apparatus. 請求項1から8のいずれか1項に記載の検証装置としてコンピュータを機能させることを特徴とするプログラム。   A program that causes a computer to function as the verification apparatus according to claim 1.
JP2013245439A 2013-11-27 2013-11-27 Control software verification device Expired - Fee Related JP6249740B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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