JPH07210657A - Image processing check device - Google Patents

Image processing check device

Info

Publication number
JPH07210657A
JPH07210657A JP6007274A JP727494A JPH07210657A JP H07210657 A JPH07210657 A JP H07210657A JP 6007274 A JP6007274 A JP 6007274A JP 727494 A JP727494 A JP 727494A JP H07210657 A JPH07210657 A JP H07210657A
Authority
JP
Japan
Prior art keywords
image processing
program
processing inspection
inspection apparatus
main body
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
JP6007274A
Other languages
Japanese (ja)
Other versions
JP3456002B2 (en
Inventor
Toshiki Yamane
俊樹 山根
Yoshimasa Fujiwara
祥雅 藤原
Masayuki Hattori
真之 服部
Yoshihiko Sugimoto
義彦 杉本
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP00727494A priority Critical patent/JP3456002B2/en
Publication of JPH07210657A publication Critical patent/JPH07210657A/en
Application granted granted Critical
Publication of JP3456002B2 publication Critical patent/JP3456002B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To use a personal computer to develop a user program even without a private interface board. CONSTITUTION:A computer 5 and an image processing check device main body 1 are connected by a serial interface 14. A source program is generated and edited by development of the user program. An execute form program is generated on the computer 5. The generated execute form program is transferred to the image processing check device main body 1 through the serial interface 14. Commands for debugging are transmitted from the computer 5 to debug the program. When development of the user program is terminated, the transferred execute form program is transferred to the image processing check device main body and is preserved. Hereafter, the execute form program preserved in a non-volatile storage device or a non-volatile storage element is executed by the image processing check device main body independently.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、工場などの生産設備と
して、生産工程上の製品の良否判定検査などに用いられ
る画像処理検査装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing inspection apparatus used as a production facility such as a factory for quality inspection of products in a production process.

【0002】[0002]

【従来の技術】従来、工場などにおいて人の視覚によっ
ていた各種の目視検査を、正確、高速且つ自動的に行う
ものとして、画像処理検査装置が提供され、昨今では数
多く導入されるようになっている。この種の画像処置検
査装置では、一般的には、まず被測定対象となる生産ラ
イン上に流れてくる工程途中の製品をカメラで画像信号
として取り込み、様々な画像処理を行った後、演算され
た数値あるいは良否の判定結果を出力する。この場合、
ユーザは、必要な演算結果や判定結果を得るために、様
々な計測条件、判定条件を検査の前に予め設定する必要
がある。
2. Description of the Related Art Image processing inspection apparatuses have been provided as an apparatus for accurately, rapidly and automatically performing various visual inspections that were conventionally performed by human eyes in factories and the like, and are now being widely introduced. There is. In this kind of image treatment inspection apparatus, generally, a camera is used to capture an in-process product flowing on the production line to be measured as an image signal, perform various image processing, and then calculate. Output the numerical value or the pass / fail judgment result. in this case,
The user needs to set various measurement conditions and determination conditions in advance before the inspection in order to obtain necessary calculation results and determination results.

【0003】上記条件とは、例えば、検査の開始の条件
設定、カメラによって取り込まれた濃淡画像を白黒の2
値化画像にするしきい値の設定、画像内の検査に必要な
箇所の設定(検査用のライン、ウインドウの設定)、入
力画像に対する設定された検査箇所の位置ずれを補正す
る機能の設定、夫々の検査ラインや検査ウインドウから
得られた情報(製品の面積や傾きなど)を組み合わせて
演算して結果を得るための演算式の設定などがある。ま
た、上述の各種計測条件や判定条件は、製品毎に固有の
ものであるので、これらの条件を製品毎に品種データと
して管理している。
The above-mentioned conditions are, for example, the condition setting of the start of the inspection, the grayscale image captured by the camera is set to black and white.
Threshold value setting for digitized image, setting required for inspection in image (line for inspection, setting of window), setting of function to correct positional deviation of set inspection position with respect to input image, There is a setting of an arithmetic expression for combining the information (area of product, inclination, etc.) obtained from each inspection line or inspection window to obtain a result. Further, since the above-mentioned various measurement conditions and determination conditions are unique to each product, these conditions are managed as product data for each product.

【0004】ところで、ユーザが上記画像処理検査装置
が有している様々な機能を自分自身で使用者設定(カス
タマライズ)できるように、カスタマライズしたい内容
をユーザ自身がプログラムを記述することで実現できる
ようなユーザプログラミング型の画像処理検査装置が広
く導入されている。この種のユーザプログラミング型の
画像処理検査装置におけるユーザプログラムの開発は、
ソースプログラムからデバッグまでの全てを、画像処理
検査装置本体だけで行うものと、外部のコンピュータ
(一般的にパーソナルコンピュータ)などと接続して開
発を行うものとに、大きく2つに分類される。
By the way, the user himself / herself describes a program so that the user can set (customize) various functions of the image processing inspection apparatus by himself / herself. Such a user programming type image processing inspection device has been widely introduced. The development of the user program in this kind of user programming type image processing inspection device is
The source program to the debugging are all performed by the image processing / inspection apparatus main body only, and the development is performed by connecting to an external computer (generally a personal computer).

【0005】ここで、前者の場合、画像処理検査装置単
体で全ての処理が行えるが、ソースプログラム編集のた
めエディタ機能が貧弱になり、また機能の拡張性にも乏
しい。これに対して、後者は、汎用のパーソナルコンピ
ュータなどの豊富なソフト資産が使えるため、ソースプ
ログラムの作成編集には高機能なスクリーンエディタ等
を用いることができる。また、機能の拡張についても、
本体内部に持っていない機能も、外部でソフトウエアを
開発した後に転送することで実現できる。
In the former case, all the processing can be performed by the image processing inspection device alone, but the editor function is poor due to the source program editing, and the expandability of the function is also poor. On the other hand, since the latter can use abundant software resources such as general-purpose personal computers, a high-performance screen editor or the like can be used for creating and editing the source program. Also, regarding expansion of functions,
Functions that are not included in the main body can be realized by transferring the software after developing it externally.

【0006】[0006]

【発明が解決しようとする課題】ところで、上記後者の
場合、画像処理検査装置とパーソナルコンピュータとの
接続は、専用インターフェースボードなどを用いたパラ
レルインターフェースとしての接続が主流である。この
場合、専用インターフェースボードの性格上、パーソナ
ルコンピュータのメーカや機種に依存してしまう。この
ため、例えば工場などの現場で、開発やデバッグを行う
場合、現場にパーソナルコンピュータがあっても、メー
カや機種が違うため使用できない。さらに、専用インタ
ーフェースボードが用意できないために、開発が行えな
いという欠点があった。
By the way, in the latter case, the connection between the image processing inspection apparatus and the personal computer is mainly a parallel interface using a dedicated interface board or the like. In this case, the characteristics of the dedicated interface board depend on the manufacturer and model of the personal computer. Therefore, for example, when performing development or debugging at a site such as a factory, even if there is a personal computer at the site, it cannot be used because the manufacturer and the model are different. Further, there is a drawback that development cannot be performed because a dedicated interface board cannot be prepared.

【0007】本発明は上述の点に鑑みて為されたもので
あり、その目的とするところは、専用インターフェース
ボードがなくても、パーソナルコンピュータを用いてユ
ーザプログラムの開発が行える画像処理検査装置を提供
することにある。
The present invention has been made in view of the above points, and an object thereof is to provide an image processing inspection apparatus capable of developing a user program using a personal computer without a dedicated interface board. To provide.

【0008】[0008]

【課題を解決するための手段】請求項1の発明は、上記
目的を達成するために、画像処理検査装置本体と汎用の
コンピュータとを夫々付属のシリアルインターフェース
で接続してユーザプログラムを開発することで、ユーザ
が画像処理検査装置本体の機能をユーザの仕様に基づい
てカスタマライズすることができる画像処理検査装置に
おいて、ユーザが記述するソースプログラムはコンピュ
ータで作成編集し、画像処理検査装置本体上で動作する
実行形式プログラムは、コンピュータでユーザプログラ
ムから作成し、出来上がった実行形式プログラムをシリ
アルインターフェースでコンピュータから画像処理検査
装置本体に転送し、動作の確認やデバッグは、コンピュ
ータからのコマンドの授受によって、あるいは画像処理
検査装置本体の操作キーないしはキーボードあるいはマ
ウスなどの入力デバイスの操作で行い、さらにデバッグ
が完了した時点で、画像処理検査装置本体の備える不揮
発性記憶装置あるいは不揮発性記憶素子に転送して実行
形式プログラムを保存し、以降は不揮発性記憶装置ある
いは不揮発性記憶素子に保存された実行形式プログラム
を画像処理検査装置本体単体で実行させるようにしてあ
る。
In order to achieve the above object, the invention of claim 1 develops a user program by connecting an image processing inspection apparatus main body and a general-purpose computer with an attached serial interface. Then, in the image processing inspection device in which the user can customize the function of the image processing inspection device main body based on the user's specifications, the source program written by the user is created and edited on the computer and The executable program that operates is created from the user program on the computer, the completed executable program is transferred from the computer to the main body of the image processing inspection device via the serial interface, and operation confirmation and debugging are performed by sending and receiving commands from the computer. Or the operation of the main body of the image processing inspection device Performed by operating an input device such as a key or keyboard or mouse, and when the debugging is completed, transfer it to the non-volatile memory device or non-volatile memory element of the image processing inspection device main body and save the execution format program. Is configured so that the executable program stored in the non-volatile storage device or the non-volatile storage element is executed by the image processing inspection device main body alone.

【0009】請求項2の発明は、画像処理検査装置本体
のシリアルインターフェースに接続されるロボットなど
の外部機器が存在する場合にも、外部機器を接続したま
まで、ユーザプログラムの開発が行えるようにするため
に、上記画像処理検査装置本体のシリアルインターフェ
ースとして、汎用に使用されるシリアルインターフェー
スとは別にユーザプログラム開発専用のインターフェー
スを個別に設けてある。
According to the second aspect of the present invention, even when an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body exists, the user program can be developed with the external device still connected. Therefore, as a serial interface of the main body of the image processing inspection apparatus, an interface dedicated to user program development is separately provided in addition to a serial interface used for general purpose.

【0010】請求項3の発明は、画像処理検査装置本体
のシリアルインターフェースに接続されるロボットなど
の外部機器が存在する場合にも、外部機器を接続したま
まで、ユーザプログラムの開発が行え、しかも新たに画
像処理検査装置本体のシリアルインターフェースを増設
する必要を無くすために、画像処理検査装置本体が、マ
ンマシンインターフェースとしてのキーボードやマウス
などの入力デバイスを備えている場合において、上記コ
ンピュータを接続するシリアルインターフェースとし
て、画像処理検査装置本体が備える入力デバイスを接続
するためのシリアルインターフェースを用いてある。
According to the third aspect of the present invention, even when there is an external device such as a robot connected to the serial interface of the main body of the image processing inspection device, the user program can be developed while the external device is still connected. In order to eliminate the need to newly add a serial interface of the image processing inspection device main body, when the image processing inspection device main body is equipped with an input device such as a keyboard and a mouse as a man-machine interface, the computer is connected. As the serial interface, a serial interface for connecting an input device included in the main body of the image processing inspection apparatus is used.

【0011】請求項3の発明において、キーボードを接
続するためのシリアルインターフェースを通してコンピ
ュータを画像処理検査装置本体に接続した場合におい
て、キーボードを接続した場合と同様の入力が行えるよ
うにするために、請求項4の発明では、コンピュータの
表示装置上にキーボードを表現した画面を表示し、その
画面を仮想キーボードとして、コンピュータのキーボー
ドやマウスなどのポインティングデバイスを用いてキー
ボードの機能を代行させた入力を行うようにすればよ
い。
In the invention of claim 3, when the computer is connected to the main body of the image processing inspection apparatus through the serial interface for connecting the keyboard, the same input as when the keyboard is connected can be performed. According to the invention of item 4, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to perform input while acting as a keyboard function by using a pointing device such as a computer keyboard or a mouse. You can do it like this.

【0012】請求項3の発明において、マウスなどのポ
インティングデバイスを接続するためのシリアルインタ
ーフェースを通してコンピュータを画像処理検査装置本
体に接続した場合において、ポインティングデバイスを
接続した場合と同様の入力が行えるようにするために、
請求項5の発明では、コンピュータのマウスなどのポイ
ンティングデバイスを画像処理検査装置本体の仮想ポイ
ンティングデバイスとして用い、仮想ポインティングデ
バイスの操作で、画像処理検査装置本体のポインティン
グデバイスの機能を代行させた入力を行うようにしてあ
る。
According to the third aspect of the invention, when the computer is connected to the main body of the image processing inspection apparatus through a serial interface for connecting a pointing device such as a mouse, the same input as when the pointing device is connected can be performed. In order to
According to the invention of claim 5, a pointing device such as a mouse of a computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the input of the function of the pointing device of the main body of the image processing inspection apparatus is performed by the operation of the virtual pointing device. I am going to do it.

【0013】請求項6の発明は、画像処理検査装置本体
に転送した実行形式プログラムがその実行形式プログラ
ムに対応するかを管理できるようにするために、ユーザ
プログラムから実行形式プログラムをコンピュータ上で
作成する際に、実行形式プログラム内にどのユーザプロ
グラムから作成されたものであるかを示す管理番号を付
け、その管理番号付きの実行形式プログラムをコンピュ
ータから画像処理検査装置本体に転送し、デバック完了
時点で不揮発性記憶装置あるいは不揮発性記憶装置に格
納し、コンピュータからのコマンドによって画像処理検
査装置本体からコンピュータに管理番号を送るようにし
てある。
According to a sixth aspect of the present invention, in order to manage whether the executable program transferred to the image processing inspection apparatus main body corresponds to the executable program, the executable program is created on the computer from the user program. At the time of completion of debugging, a management number indicating which user program was created was added to the execution format program, and the execution format program with the management number was transferred from the computer to the image processing inspection device body. It is stored in a non-volatile storage device or a non-volatile storage device, and a management number is sent from the image processing inspection apparatus main body to the computer by a command from the computer.

【0014】請求項7の発明は、異機種との互換性を確
保するために、ユーザプログラム開発言語としてC言語
を用いることが望ましい。請求項7の発明において、ユ
ーザの使いやすいあるいは使い慣れた優れたソフトウエ
アを積極的に利用して、ユーザプログラムの開発が行え
るようにするために、請求項8に示すように、ユーザプ
ログラムの言語を認識する言語認識部と、認識した言語
の文法を解釈する文法解釈部と、これにより得られた情
報よりC言語を生成するC言語プログラム作成部よりな
るプリプロセッサを設けることがさらに好ましい。
In the invention of claim 7, it is desirable to use the C language as a user program development language in order to ensure compatibility with different models. In the invention of claim 7, in order to enable development of the user program by positively utilizing excellent software that is easy for the user to use or is familiar with, as shown in claim 8, the language of the user program It is more preferable to provide a preprocessor that includes a language recognition unit that recognizes the, a grammar interpretation unit that interprets the grammar of the recognized language, and a C language program creation unit that generates the C language from the information obtained thereby.

【0015】請求項9の発明は、行単位のデバッグを行
うことを可能とするために、コンピュータで実行形式プ
ログラムの作成に際して、ソースプログラムの1行毎に
対応した上記実行形式プログラムの開始アドレステーブ
ルをコンピュータで作成し、上記実行形式プログラムと
実行形式プログラムの開始アドレステーブルとの両方
を、シリアルインターフェースでコンピュータから画像
処理検査装置本体に転送し、画像処理検査装置本体に実
行形式プログラムの任意のアドレス間のみ実行させるこ
とができるモニタプログラムを設け、コンピュータから
は、実行させたいソースプログラムの行に対応する数値
を画像処理検査装置本体に送り、モニタプログラム側
で、モニタへの戻り命令を上記実行形式プログラムに挿
入することによって、ユーザのソースプログラムの行単
位のデバッグを行っている。
According to a ninth aspect of the present invention, in order to enable line-by-line debugging, the start address table of the execution format program corresponding to each line of the source program when the execution format program is created by the computer. Computer, and transfers both the above-mentioned execution format program and the start address table of the execution format program from the computer to the main body of the image processing inspection apparatus via the serial interface, and the arbitrary address of the execution format program is transferred to the main body of the image processing inspection apparatus. A monitor program that can be executed only during the period is sent. From the computer, the numerical value corresponding to the line of the source program you want to execute is sent to the main body of the image processing inspection device, and the monitor program side issues a return command to the monitor in the above execution format. By inserting it in the program We are debugging on a row-by-row basis of the source program of over The.

【0016】[0016]

【作用】請求項1の発明は、上述のように構成すること
により、コンピュータと画像処理検査装置本体をシリア
ルインターフェースで接続し、ユーザプログラムの開発
で、ソースプログラムの作成編集を行うと共に、実行形
式プログラムの作成をコンピュータ上で行い、得られた
実行形式プログラムをシリアルインターフェースを通し
て画像処理検査装置本体に転送し、コンピュータからデ
バッグ用のコマンドを送信することで、デバッグを行
う。さらに、ユーザプログラムの開発が終了すると、転
送された実行形式プログラムを画像処理検査装置本体の
備える不揮発性記憶装置あるいは不揮発性記憶素子に転
送して実行形式プログラムを保存し、以降は不揮発性記
憶装置あるいは不揮発性記憶素子に保存された実行形式
プログラムを画像処理検査装置本体単体で実行させる。
これにより、専用インターフェースボードがなくても、
ユーザの使いやすいあるいは使い慣れた優れたソフトウ
エアを積極的に利用して、ユーザプログラムの開発が行
え、開発終了後は、画像処理検査装置本体単体でユーザ
プログラムを動作させることを可能とする。
According to the invention of claim 1, by configuring as described above, the computer and the image processing / inspection apparatus main body are connected by a serial interface, the source program is created and edited in the development of the user program, and the execution format is used. A program is created on a computer, the obtained executable program is transferred to the main body of the image processing inspection apparatus through a serial interface, and a debugging command is transmitted from the computer to perform debugging. Further, when the development of the user program is completed, the transferred execution format program is transferred to a nonvolatile storage device or a nonvolatile storage element included in the main body of the image processing inspection apparatus to save the execution format program. Alternatively, the executable program stored in the nonvolatile storage element is executed by the image processing inspection apparatus main body alone.
With this, even if there is no dedicated interface board,
The user program can be developed by positively utilizing excellent software that is easy for the user to use or is familiar with, and after the development is completed, the user program can be operated by the image processing inspection apparatus main body alone.

【0017】請求項2の発明は、上記画像処理検査装置
本体のシリアルインターフェースとして、汎用に使用さ
れるシリアルインターフェースとは別にユーザプログラ
ム開発専用のインターフェースを個別に設け、画像処理
検査装置本体に対して外部機器とコンピュータとを接続
することを可能とする。これにより、画像処理検査装置
本体のシリアルインターフェースに接続されるロボット
などの外部機器が存在する場合にも、外部機器を接続し
たままで、ユーザプログラムの開発を行えるようにす
る。
According to a second aspect of the present invention, as a serial interface of the main body of the image processing inspection apparatus, an interface dedicated to user program development is separately provided in addition to a serial interface used for general purpose, and the main body of the image processing inspection apparatus is provided. It is possible to connect an external device to a computer. As a result, even when an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body exists, the user program can be developed with the external device still connected.

【0018】請求項3の発明は、上記コンピュータを接
続するシリアルインターフェースとして、画像処理検査
装置本体が備える入力デバイスを接続するためのシリア
ルインターフェースを用いることにより、画像処理検査
装置本体のシリアルインターフェースに接続されるロボ
ットなどの外部機器が存在する場合にも、外部機器を接
続したままで、ユーザプログラムの開発が行えるように
する。また、新たに画像処理検査装置本体のシリアルイ
ンターフェースを増設する必要を無くす。
According to a third aspect of the present invention, as the serial interface for connecting the computer, a serial interface for connecting an input device provided in the main body of the image processing inspection apparatus is used to connect to the serial interface of the main body of the image processing inspection apparatus. Even if an external device such as a robot is present, the user program can be developed with the external device still connected. Further, it is not necessary to add a new serial interface of the image processing inspection apparatus main body.

【0019】請求項4の発明は、コンピュータの表示装
置上にキーボードを表現した画面を表示し、その画面を
仮想キーボードとして、コンピュータのキーボードやマ
ウスなどのポインティングデバイスを用いてキーボード
の機能を代行させた入力を行い、キーボードを接続する
ためのシリアルインターフェースを通してコンピュータ
を画像処理検査装置本体に接続した場合において、キー
ボードを接続した場合と同様の入力を行うことを可能と
する。
According to a fourth aspect of the present invention, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to substitute the keyboard function by using a pointing device such as a computer keyboard or a mouse. When a computer is connected to the main body of the image processing inspection apparatus through a serial interface for connecting a keyboard, the same input as when a keyboard is connected can be performed.

【0020】請求項5の発明は、コンピュータのマウス
などのポインティングデバイスを画像処理検査装置本体
の仮想ポインティングデバイスとして用い、仮想ポイン
ティングデバイスの操作で、画像処理検査装置本体のポ
インティングデバイスの機能を代行させた入力を行うこ
とにより、マウスなどのポインティングデバイスを接続
するためのシリアルインターフェースを通してコンピュ
ータを画像処理検査装置本体に接続した場合において、
ポインティングデバイスを接続した場合と同様の入力を
行うことを可能とする。
According to a fifth aspect of the present invention, a pointing device such as a mouse of a computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the function of the pointing device of the main body of the image processing inspection apparatus is delegated by operating the virtual pointing device. By connecting the computer to the main body of the image processing inspection device through a serial interface for connecting a pointing device such as a mouse,
It enables the same input as when a pointing device is connected.

【0021】請求項6の発明は、ユーザプログラムから
実行形式プログラムをコンピュータ上で作成する際に、
実行形式プログラム内にどのユーザプログラムから作成
されたものであるかを示す管理番号を付け、その管理番
号付きの実行形式プログラムをコンピュータから画像処
理検査装置本体に転送し、デバック完了時点で不揮発性
記憶装置あるいは不揮発性記憶装置に格納し、コンピュ
ータからのコマンドによって画像処理検査装置本体から
コンピュータに管理番号を送ることにより、画像処理検
査装置本体に転送した実行形式プログラムを管理番号か
ら判別できるようにする。
According to a sixth aspect of the invention, when an execution format program is created from a user program on a computer,
A management number that indicates which user program was created in the execution format program is assigned, and the execution format program with that management number is transferred from the computer to the image processing inspection device body, and non-volatile memory is stored at the completion of debugging. The execution format program transferred to the image processing / inspection apparatus main body can be discriminated from the management number by being stored in the apparatus or the non-volatile storage device and by sending a management number from the image processing / inspection apparatus main body to the computer by a command from the computer. .

【0022】請求項7の発明は、ユーザプログラム開発
言語としてC言語を用いて、異機種との互換性を確保す
る。請求項8の発明は、ユーザプログラムの言語を認識
する言語認識部と、認識した言語の文法を解釈する文法
解釈部と、これにより得られた情報よりC言語を生成す
るC言語プログラム作成部よりなるプリプロセッサを備
えることにより、ユーザプログラム開発言語としてC言
語を用いた場合において、プリプロセッサで異なる言語
をC言語に変換できるようにし、ユーザの使いやすいあ
るいは使い慣れた優れたソフトウエアを積極的に利用し
て、ユーザプログラムの開発が行えるようにする。
According to the invention of claim 7, the C language is used as a user program development language to ensure compatibility with different models. According to an eighth aspect of the present invention, there is provided a language recognition unit for recognizing the language of the user program, a grammar interpretation unit for interpreting the grammar of the recognized language, and a C language program creation unit for generating C language from the information obtained thereby. By providing the preprocessor, when the C language is used as the user program development language, the preprocessor can convert the different language into the C language, and the excellent software that the user is easy to use or is familiar with is actively used. So that the user program can be developed.

【0023】請求項9の発明では、上述のようにして、
コンピュータから実行させたいソースプログラムの行に
対応する数値を画像処理検査装置本体に送り、ソースプ
ログラムの行単位のデバッグを行うことを可能とする。
According to the invention of claim 9, as described above,
A numerical value corresponding to the line of the source program to be executed is sent from the computer to the main body of the image processing inspection device, and the source program can be debugged line by line.

【0024】[0024]

【実施例】【Example】

(実施例1)本実施例の画像処理検査装置は、図1に示
すように、製品の画像を取り込むカメラ2と、カメラ2
で取り込んだ画像あるいはその画像に処理を施した画
像、演算条件、判定条件などの様々な情報を表示するモ
ニタ3と、マンマシンインターフェースとしてのキーボ
ード4と、画像処理検査装置本体1とで構成されてい
る。この画像処理検査装置では、基本的な操作は、画像
処理検査装置本体1の前面パネル上にある操作キー11
を用いて行えるようにしてある。但し、キーボード4を
用いても、全く同様の操作が行えるようにしてあり、複
雑な操作(例えば、文字入力など)はキーボード4を積
極的に利用して行う。
(Embodiment 1) As shown in FIG. 1, an image processing inspection apparatus of this embodiment includes a camera 2 for capturing an image of a product and a camera 2.
The monitor 3 that displays various information such as an image captured in step S1 or an image obtained by processing the image, calculation conditions, determination conditions, a keyboard 4 as a man-machine interface, and an image processing inspection device body 1 are configured. ing. In this image processing inspection apparatus, the basic operation is the operation key 11 on the front panel of the image processing inspection apparatus main body 1.
It can be done using. However, even if the keyboard 4 is used, exactly the same operation can be performed, and a complicated operation (for example, character input) is actively performed by using the keyboard 4.

【0025】図2は画像処理検査装置本体1を背面から
見た図を示し、カメラ2を接続するためのカメラ接続用
コネクタ12、モニタ3を接続するためのビデオ信号出
力コネクタ13、RS−232C準拠のシリアルインタ
ーフェースコネクタ14、パラレルインターフェースコ
ネクタなどの各種インターフェース15が標準で装備さ
れている。ここで、図2の場合には、カメラ接続用コネ
クタ12は1つであるが、本体1の機能に応じて複数の
カメラ2を接続することができるようにしたものもあ
る。なお、本実施例の場合には、キーボード4を接続す
るためのキーボードコネクタ16は、図1に示すよう
に、前面パネルに設けてある。但し、キーボードコネク
タ16は、例えば背面パネルなど別の箇所に設けてもな
んら問題はない。
FIG. 2 is a view of the image processing / inspection apparatus main body 1 as seen from the back side. The camera connection connector 12 for connecting the camera 2, the video signal output connector 13 for connecting the monitor 3 and the RS-232C. Various interfaces 15 such as a compliant serial interface connector 14 and a parallel interface connector are provided as standard. Here, in the case of FIG. 2, the number of the connector 12 for camera connection is one, but there is also a connector which can connect a plurality of cameras 2 according to the function of the main body 1. In this embodiment, the keyboard connector 16 for connecting the keyboard 4 is provided on the front panel as shown in FIG. However, there is no problem even if the keyboard connector 16 is provided at another location such as the back panel.

【0026】本体1に設けられたRS−232Cシリア
ルインターフェース14は、画像取込み、検査の開始、
演算結果の要求、判定結果の要求などの様々な命令を、
外部の装置から画像処理検査装置に与え、画像処理検査
装置はそれに対する応答を行うことで、外部の装置との
命令やデータのやりとりを行っている。これに対して、
パラレルインターフェース15も、画像の取込み、品種
データの切り換え、検査の開始などの様々な命令を外部
から与えることができる。しかし、その主たる用途は、
検査を実行して得られた演算結果や判定結果のデータを
出力することにある。
The RS-232C serial interface 14 provided in the main body 1 captures images, starts inspection,
Various commands such as calculation result request, judgment result request,
The image processing / inspection apparatus exchanges commands and data with the external apparatus by giving it to the image processing / inspection apparatus from the external apparatus and making a response thereto. On the contrary,
The parallel interface 15 can also externally give various commands such as image capturing, type data switching, and inspection start. However, its main use is
It is to output the data of the calculation result and the judgment result obtained by executing the inspection.

【0027】多くの場合、ユーザは画像処理検査装置が
提供してくれる様々の機能を、さらにユーザが自分自身
でカスタマライズしたいという要求を持っている。例え
ば、図1において、生産組立ラインL上を次々と流れて
くる製品Aの画像をカメラ2で取込み、ユーザが予め品
種データとして登録した様々な演算条件や判定条件に基
づいて取り込んだ画像に対して処理を行い、その結果を
モニタ3に表示する場合を考える。なお、図1では表面
実装型のフラットパッケージ(QFP)タイプのIC
(A)の取付位置の検査を行う場合を示してある。
In many cases, the user has a demand that the user further customizes various functions provided by the image processing inspection apparatus. For example, in FIG. 1, the images of the products A flowing one after another on the production assembly line L are captured by the camera 2, and the images captured by the user based on various calculation conditions and determination conditions registered as the product type data in advance are compared with the images. Consider a case in which the processing is performed and the result is displayed on the monitor 3. In addition, in FIG. 1, a surface mounting type flat package (QFP) type IC
The case where the mounting position of (A) is inspected is shown.

【0028】図1において、生産組立ラインLを流れる
製品Aの種類に応じて送られてくる品種データを切り換
えるための品種切換信号や、製品がカメラ2に画像とし
て取り込むことができる所定位置に達して、検査の準備
ができた時点で送られてくる検査開始信号は、画像処理
検査装置本体1に例えばパラレルインターフェース15
を通じて取り込まれる。画像処理検査装置は、この品種
切換信号に基づいて内部に保存された複数の品種データ
の中から必要な品種データを選択する。また、検査開始
信号が取り込まれると同時に、品種データに設定された
様々の演算条件、判定条件に基づいた検査シーケンスを
行う。そして、検査の結果、製品が検査条件に対して、
良品であるか、不良品であるかを、ユーザに目視で知ら
せるため、例えばモニタ3の画面に、良品である場合に
は「OK」、不良品である場合には「NG」と表示させ
るようにする。
In FIG. 1, a product type switching signal for switching the product type data sent according to the type of the product A flowing through the production assembly line L, and reaching a predetermined position where the product can be captured as an image in the camera 2. The inspection start signal sent when the inspection is ready is sent to the image processing inspection apparatus main body 1 by, for example, the parallel interface 15.
Be captured through. The image processing inspection device selects the required product type data from the plurality of product type data stored therein based on the product type switching signal. Further, at the same time when the inspection start signal is fetched, an inspection sequence based on various calculation conditions and determination conditions set in the product type data is performed. And as a result of the inspection, the product meets the inspection conditions,
In order to visually inform the user whether the product is a good product or a defective product, for example, "OK" is displayed on the screen of the monitor 3 when the product is a good product, and "NG" is displayed when the product is a defective product. To

【0029】以上のような一連の動作において、特に最
後のモニタ3の画面に製品が検査条件に対して、良品で
あるか、不良品であるかを、ユーザ自身で自由に表示さ
せる場合、画像処理検査装置本体1が標準で持つ機能で
なく、ユーザプログラムによって実現される。ところ
で、昨今ではパーソナルコンピュータの普及がめざまし
く、学術機関や企業、さらには一般家庭まで浸透してい
るといっても過言でない。従って、画像処理検査装置が
用いられるような現場、あるいはユーザプログラムを開
発するような場所にも、汎用のパーソナルコンピュータ
が1台あるいは2台は用意されていると考えて良い。さ
らに、パーソナルコンピュータのハードウエアの普及に
より、様々な機能を有しユーザの使い勝手を満足させる
ようなソフトウエアが様々メーカにより発表あるいは販
売されている。従来のユーザプログラミング型の画像処
理検査装置には、本体内部にソースプログラムを作成編
集するエディタ機能、テスト実行、デバッグの機能を全
て用意し、単体でユーザプログラムを開発できるように
したものもある。しかし、これからの画像処理検査装置
のユーザプログラム開発環境は、上述のような汎用のパ
ーソナルコンピュータを積極的に利用して、パーソナル
コンピュータに加えて、ユーザの使いやすい、あるいは
使い慣れた、優れたソフトウエアで行うことが望まし
い。但し、常時画像処理検査装置に接続しなければ、ユ
ーザプログラムを動作させることができないのでは不便
である。そこで、ソースプログラムを作成編集し、デバ
ッグを行って正常に動作することが確認された時点であ
る開発終了後は、画像処理検査装置単体でユーザプログ
ラムが動作しなければならない。
In the above-described series of operations, when the user freely displays whether the product is a non-defective product or a defective product under the inspection conditions on the screen of the final monitor 3, the image is displayed. It is realized by a user program instead of the standard function of the processing inspection apparatus main body 1. By the way, it is no exaggeration to say that personal computers have become so popular these days that they have spread to academic institutions, companies, and even ordinary households. Therefore, it can be considered that one or two general-purpose personal computers are prepared in the field where the image processing inspection device is used or in the place where the user program is developed. Further, due to the widespread use of hardware for personal computers, various manufacturers have released or sold software that has various functions and satisfies the usability of users. Some conventional user programming type image processing inspection apparatuses are provided with an editor function for creating and editing a source program, a test execution function, and a debug function inside the main body, so that a user program can be independently developed. However, the user program development environment of the image processing inspection apparatus from now on is not only a personal computer but also an easy-to-use or familiar software with excellent software that actively uses the above-mentioned general-purpose personal computer. It is desirable to do in. However, it is inconvenient that the user program cannot be operated unless it is always connected to the image processing inspection device. Therefore, after the development is completed, which is the time when it is confirmed that the source program is created, edited, debugged, and operates normally, the user program must operate in the image processing inspection device alone.

【0030】以上のような開発環境において、パーソナ
ルコンピュータと画像処理検査装置を接続する必要があ
る。この場合、従来では、専用インターフェースボード
をパーソナルコンピュータに搭載し、さらに必要に応じ
て画像処理検査装置にも専用インターフェースボードを
搭載し、パラレルインターフェースとして接続すること
が主流であった。様々なデバッグ機能を実現するために
は、例えばマイコン開発装置としてよく使われているイ
ンサーキットエミュレータが持つデバッグ機能を実現す
るためには、専用インターフェースボードが必要な場合
がある。しかし、実際のユーザプログラムのデバッグに
はそのような機能は不要である。つまりは、実行形式プ
ログラムの画像処理検査装置への転送、ソースプログラ
ムの行単位の実行や停止、プログラム停止時のレジスタ
や変数のモニタができれば、十分デバッグは行える。ま
た、上述のようなデバッグには、インサーキットエミュ
レータのように大量のデータを高速に転送する必要はな
く、シルアルインターフェース14でのデータ転送で十
分足りる。
In the above development environment, it is necessary to connect the personal computer and the image processing inspection device. In this case, conventionally, it has been the mainstream to mount a dedicated interface board on a personal computer, and if necessary, also mount a dedicated interface board on an image processing inspection apparatus and connect it as a parallel interface. In order to realize various debug functions, for example, to realize the debug function of an in-circuit emulator often used as a microcomputer development device, a dedicated interface board may be required. However, such a function is not necessary for actually debugging the user program. In other words, if the execution format program can be transferred to the image processing inspection device, the source program can be executed or stopped line by line, and registers and variables can be monitored when the program is stopped, sufficient debugging can be performed. Further, for the above-described debugging, it is not necessary to transfer a large amount of data at a high speed unlike the in-circuit emulator, and the data transfer by the serial interface 14 is sufficient.

【0031】本発明はこの点に着目し、汎用のパーソナ
ルコンピュータ5が標準に持っているRS−232Cイ
ンターフェース14で画像処理検査装置を接続して、ユ
ーザプログラムの開発を行うようにしたものである。以
下に開発の手順を説明する。ユーザのソースプログラム
は、パーソナルコンピュータで開発する。上述したよう
にパーソナルコンピュータには優れたソフトウエアが多
く市販されており、ユーザが日頃から慣れ親しんている
エディタやワープロソフトを使ってソースプログラムを
作成編集すればよい。開発言語は、次に述べるコンパイ
ラが容易に手に入る言語であれば、C言語やBASIC
言語など自由に選んで良い。
Focusing on this point, the present invention connects the image processing inspection device with the RS-232C interface 14 which the general-purpose personal computer 5 has as a standard, and develops the user program. . The development procedure is described below. The user's source program is developed on a personal computer. As described above, a lot of excellent software is commercially available for personal computers, and a user may create and edit a source program using an editor or word processor software with which he or she is familiar. The development language can be C or BASIC if the compiler described below is easily available.
You can freely choose the language.

【0032】次に、ソースプログラムから画像処理検査
装置で実行できる実行形式プログラムを作成する。これ
には、市販のコンパイラを用いる。画像処理検査装置と
パーソナルコンピュータとの内部のCPU(中央処理装
置)が同じ場合は、パーソナルコンピュータ自身上のプ
ログラムを開発するためのネイティブコンパイラ(一般
に単にコンパイラと呼ばれる)が使用される。しかし、
CPUが互いに異なる場合、他のCPUオブジェクトプ
ログラムが作成できるクロスコンパイラが必要になる。
Next, an executable program that can be executed by the image processing inspection apparatus is created from the source program. A commercially available compiler is used for this. When the CPU (central processing unit) inside the image processing inspection device and the personal computer are the same, a native compiler (generally simply called a compiler) for developing a program on the personal computer itself is used. But,
When the CPUs are different from each other, a cross compiler capable of creating another CPU object program is required.

【0033】コンパイルされたソースプログラムから、
さらに必要な実行用のライブラリを加えてリンカやロケ
ータソフトで実行形式オブジェクトを作成する。出来上
がった実行形式オブジェクトはパーソナルコンピュータ
5のRS−232Cインターフェースを通じて画像処理
検査装置に転送される。デバッグは、ソースプログラム
の行単位の実行や停止、プログラム停止時のレジスタや
変数のモニタのためのコマンドが、パーソナルコンピュ
ータ5のRS−232Cインターフェースより画像処理
検査装置に送られ、必要なデータがパーソナルコンピュ
ータ5へ返される。
From the compiled source program,
Furthermore, add the necessary execution library and create an executable object with the linker or locator software. The completed executable object is transferred to the image processing inspection device through the RS-232C interface of the personal computer 5. For debugging, commands for executing or stopping the source program line by line and monitoring registers and variables when the program is stopped are sent from the RS-232C interface of the personal computer 5 to the image processing inspection apparatus, and necessary data is personalized. It is returned to the computer 5.

【0034】以上の機能は、パーソナルコンピュータ5
のメーカや機種に依存せず、ユーザ手持ちのパーソナル
コンピュータ5上でエディタ、コンパイラ、リンカなど
を揃えればよい。実行形式プログラム(オブジェクトプ
ログラム)のデバッグが終了すると、これを画像処理検
査装置本体1内部に用意された不揮発性記憶装置(代表
的なものに固定ディスクがある)ないしは不揮発性記憶
素子(代表的なものにEEPROMがある)に保存す
る。以後、パーソナルコンピュータ5と画像処理検査装
置本体1との接続を切り離しても、画像処理検査装置本
体1に保存されたユーザプログラム(実行形式プログラ
ム)を単体で動作させることができる。
The functions described above are performed by the personal computer 5
It suffices to prepare an editor, a compiler, a linker, etc. on the personal computer 5 owned by the user, regardless of the manufacturer or model of the computer. When the debugging of the execution format program (object program) is completed, this is stored in a nonvolatile storage device (typically a fixed disk) or nonvolatile storage element (typical It has an EEPROM). After that, even if the connection between the personal computer 5 and the image processing inspection apparatus main body 1 is disconnected, the user program (execution format program) stored in the image processing inspection apparatus main body 1 can be operated alone.

【0035】(実施例2)図3に本発明の他の実施例を
示す。本実施例は、画像処理検査装置にロボットなどの
外部機器6がRS−232Cインターフェース16で接
続されたものである。上記外部機器6のコマンド体系は
画像処理検査装置が標準で持っているコマンド体系とは
異なるので、ユーザは外部機器6からのコマンドを解釈
し、検査結果も外部機器6が読み取れるコマンド体系に
変換して返送する必要がある。以上の機能は、画像処理
検査装置本体1が標準機能としては持っていないので、
ユーザプログラムによって処理する必要がある。
(Embodiment 2) FIG. 3 shows another embodiment of the present invention. In this embodiment, an external device 6 such as a robot is connected to the image processing inspection device by an RS-232C interface 16. Since the command system of the external device 6 is different from the command system that the image processing inspection apparatus has as a standard, the user interprets the command from the external device 6 and converts the inspection result into a command system that the external device 6 can read. Need to be returned. Since the image processing inspection apparatus main body 1 does not have the above functions as standard functions,
It must be processed by the user program.

【0036】ところで、本実施例のように、ロボットな
どの外部機器6を接続する必要がある場合、図1でパー
ソナルコンピュータ5と接続している画像処理検査装置
のRS−232インターフェース14は、本来ユーザプ
ログラム開発専用のものでなく汎用のものであり、外部
機器6とはインターフェース14で接続する必要があ
る。この場合、ロボットなどの外部機器6とを接続した
まま、つまりは画像処置検査装置単体で動作させる実使
用状態で、ユーザプログラム開発を行うことができなく
なる。
When it is necessary to connect an external device 6 such as a robot as in this embodiment, the RS-232 interface 14 of the image processing inspection apparatus connected to the personal computer 5 in FIG. It is general purpose, not dedicated to user program development, and needs to be connected to the external device 6 through the interface 14. In this case, it becomes impossible to develop the user program while the external device 6 such as the robot is connected, that is, in the actual use state in which the image processing inspection device is operated alone.

【0037】そこで、本実施例ではユーザプログラム開
発専用のRS−232Cインターフェース17を個別に
設けてある。このようにすることで、ロボットなどの外
部機器6とを接続したままで、ユーザプログラムの開発
が行える。 (実施例3)図4に本発明のさらに他の実施例を示す。
上述した実施例2の場合、ロボットなどの外部機器6を
付属設備として備える画像処理検査装置において、ユー
ザプログラム開発専用のシリアルインターフェース17
を設けたが、本実施例ではユーザプログラム開発専用の
シリアルインターフェース17を個別に設けなくとも、
ユーザプログラム開発を行えるようにしたものである。
Therefore, in this embodiment, the RS-232C interface 17 dedicated to the user program development is individually provided. By doing so, the user program can be developed with the external device 6 such as the robot still connected. (Embodiment 3) FIG. 4 shows still another embodiment of the present invention.
In the case of the above-described second embodiment, in the image processing inspection apparatus equipped with the external device 6 such as the robot as an accessory, the serial interface 17 dedicated to the user program development.
However, in the present embodiment, even if the serial interface 17 dedicated to the user program development is not provided individually,
It is designed to allow user program development.

【0038】本実施例では、本体1にあるキーボード接
続用のインターフェース16は、一般的にシリアルイン
ターフェース(特に、RS−232Cインターフェー
ス)が用いられていることに着目し、ユーザプログラム
開発時は、このキーボード用のシリアルインターフェー
ス16と、汎用のパーソナルコンピュータ5のインター
フェースとを介して行うようにしてある。なお、ユーザ
プログラムの開発が終了すれば、画像処理検査装置本体
1だけで動作させるため、必要に応じてキーボードを接
続すればよい。
In the present embodiment, attention is paid to the fact that the serial interface (especially RS-232C interface) is generally used as the keyboard connection interface 16 in the main body 1, and this is used when the user program is developed. This is performed via the serial interface 16 for the keyboard and the interface of the general-purpose personal computer 5. When the development of the user program is completed, only the image processing inspection apparatus main body 1 is operated, so a keyboard may be connected as necessary.

【0039】ところで、本実施例の方法以外に、図14
に示すように、パーソナルコンピュータ5側に複数のシ
リアルインターフェース18を用意して、ロボットなど
の外部機器6をパーソナルコンピュータ5のシリアルイ
ンターフェース18の1つに接続し、もう1つのシリア
ルインターフェース18を画像処理検査装置に接続する
方法がある。この場合、ユーザプログラム開発中に、外
部機器6と画像処理検査装置とのコマンドやデータのや
りとりは、送信側からのコマンドやデータを一旦パーソ
ナルコンピュータ5に取り込んで、再びそのコマンドや
データを受信側にスルーで送って行う。
By the way, in addition to the method of this embodiment, FIG.
As shown in, a plurality of serial interfaces 18 are prepared on the personal computer 5 side, an external device 6 such as a robot is connected to one of the serial interfaces 18 of the personal computer 5, and the other serial interface 18 is subjected to image processing. There is a method of connecting to the inspection device. In this case, during the development of the user program, when exchanging commands and data between the external device 6 and the image processing inspection apparatus, the commands and data from the transmitting side are temporarily taken into the personal computer 5, and the commands and data are received again at the receiving side. To send it through.

【0040】しかしながら、パーソナルコンピュータ5
側で複数のシリアルインターフェース18を制御するた
めには、制御のためのソフトウエアが複雑になり、また
デバッグ後は、外部機器6は画像処置検査装置の本体1
のシリアルインターフェース14に接続するので、実際
の接続状態でのデバッグが行えないという問題がある。
そこで、本実施例の方法を採用する方が望ましい。
However, the personal computer 5
In order to control the plurality of serial interfaces 18 on the side, the control software becomes complicated, and after debugging, the external device 6 is used as the main body 1 of the image treatment inspection apparatus.
Since it is connected to the serial interface 14 of the above, there is a problem that debugging cannot be performed in the actual connection state.
Therefore, it is desirable to adopt the method of this embodiment.

【0041】(実施例4)図5に本発明の別の実施例を
示す。なお、本実施例の基本構成は実施例3と同じであ
る。上述した実施例3の場合、パーソナルコンピュータ
5と画像処理検査装置とを接続するシリアルインターフ
ェースの接続手段として、画像処理検査装置本体に用意
されたキーボード4用のシリアルインターフェース(R
S−232Cインターフェース)16を用いることによ
り、確かにRS−232Cインターフェース(シリアル
インターフェース)で接続する必要のあるロボット等の
外部機器6を、画像処理検査装置の汎用シリアルインタ
ーフェース14に接続して、実使用(画像処理検査装置
単体で動作させる状態)でユーザプログラム開発が行え
る利点がある。しかし、ユーザプログラムにキーボード
4での入力が必要な場合、この入力を行えないという問
題がある。
(Embodiment 4) FIG. 5 shows another embodiment of the present invention. The basic configuration of this embodiment is the same as that of the third embodiment. In the case of the third embodiment described above, as a serial interface connecting means for connecting the personal computer 5 and the image processing inspection apparatus, a serial interface (R) for the keyboard 4 prepared in the image processing inspection apparatus main body is used.
By using the S-232C interface) 16, an external device 6 such as a robot which is certainly required to be connected by the RS-232C interface (serial interface) is connected to the general-purpose serial interface 14 of the image processing inspection apparatus, There is an advantage that a user program can be developed while it is being used (a state in which the image processing inspection device is operated alone). However, if the user program requires input with the keyboard 4, there is a problem that this input cannot be performed.

【0042】本実施例でも、実施例3と同様に、パーソ
ナルコンピュータ5と画像処理検査装置を、画像処理装
検査装置の本体1に用意されたキーボード4用のシリア
ルインターフェース(RS−232Cインターフェー
ス)16を通じて接続する。そして、本実施例では、キ
ーボード4用のシリアルインターフェースコネクタ16
にパーソナルコンピュータ5を接続する場合、パーソナ
ルコンピュータ5のモニタ5aに仮想キーボードとして
キーボードを表す画面を表示し、この画面が表示されて
いる間、パーソナルコンピュータ5のキーボード入力
は、画像処理検査装置のキーボード4による入力として
扱う。もしくは、仮想キーボード上をマウス等のポイン
ティングデバイス7でカーソルを移動し、該当するキー
をクリックで選択しても良い。
Also in this embodiment, as in the third embodiment, the personal computer 5 and the image processing inspection device are connected to the serial interface (RS-232C interface) 16 for the keyboard 4 prepared in the main body 1 of the image processing device inspection device. Connect through. Then, in this embodiment, the serial interface connector 16 for the keyboard 4 is used.
When the personal computer 5 is connected to the personal computer 5, a screen representing a keyboard is displayed as a virtual keyboard on the monitor 5a of the personal computer 5, and while this screen is displayed, the keyboard input of the personal computer 5 is the keyboard of the image processing inspection apparatus. Treated as input by 4. Alternatively, the cursor may be moved on the virtual keyboard with the pointing device 7 such as a mouse and the corresponding key may be clicked to select.

【0043】具体的には、図5に示すように、パーソナ
ルコンピュータ5のモニタ5a上に仮想キーボード
(イ)とマウスポインタ(ロ)とを表示する。画像処理
検査装置に転送された実行形式プログラムをデバッグす
る際に、あるいはキーボード4からの入力を必要とする
コマンドや機能を実行する際に、上記画面がモニタ5a
に現れる。仮想キーボード(イ)が表示されているとき
の、パーソナルコンピュータ5のキーボードからの入力
は、パーソナルコンピュータ5に対するコマンドではな
く、画像処理検査装置のキーボード4からの入力として
扱われる。ここで、仮想キーボード(イ)の画面上の各
キーをマウス7でクリックすることで、キーボードから
の入力と同様の操作を可能にしている。
Specifically, as shown in FIG. 5, a virtual keyboard (a) and a mouse pointer (b) are displayed on the monitor 5a of the personal computer 5. The screen is displayed on the monitor 5a when the executable program transferred to the image processing inspection apparatus is debugged or when a command or function that requires input from the keyboard 4 is executed.
Appear in. The input from the keyboard of the personal computer 5 when the virtual keyboard (a) is displayed is treated as an input from the keyboard 4 of the image processing inspection apparatus, not a command to the personal computer 5. By clicking each key on the screen of the virtual keyboard (a) with the mouse 7, the same operation as the input from the keyboard is enabled.

【0044】以上の入力信号はRS−232Cインター
フェースを通して、画像処理検査装置のキーボードイン
ターフェース16に送られる。ここで、仮想キーボード
(イ)が画面に表示されている場合のみ、パーソナルコ
ンピュータ5から画像処理検査装置にキーボード入力信
号が送られるため、デバッグのためのコマンド等の他の
コマンドやデータと衝突することはない。即ち、画像処
理検査装置本体1から見ると、実際にはパーソナルコン
ピュータ5が接続されているにもかかわらず、あたかも
キーボード4が接続されているようになる。なお、デバ
ッグ中の仮想キーボード(イ)からの入力はリターンキ
ーで終了し、またエスケープ(ESC)キーで入力を中
止することができる。ここで、中止した場合は、ユーザ
の実行形式プログラムはその時点で中断する。
The above input signals are sent to the keyboard interface 16 of the image processing inspection device through the RS-232C interface. Here, since the keyboard input signal is sent from the personal computer 5 to the image processing inspection device only when the virtual keyboard (a) is displayed on the screen, it collides with other commands and data such as commands for debugging. There is no such thing. That is, when viewed from the image processing inspection apparatus main body 1, the keyboard 4 is connected as though the personal computer 5 is actually connected. It should be noted that the input from the virtual keyboard (a) during debugging can be ended by the return key, and the input can be stopped by the escape (ESC) key. Here, in the case of stopping, the execution format program of the user is stopped at that point.

【0045】(実施例5)図6に本発明のさらに別の実
施例を示す。本実施例は、画像処理検査装置が、マンマ
シンインターフェースとして、キーボード4の代わり
に、マウスあるいはこのマウスと同等の機能を有したポ
インティングデバイス7を備える場合に対応するもので
ある。この種のポインティングデバイス(以下、マウス
を用いるものとして説明を行う)7を使用する画像処理
検査装置では、モニタ3の画面に、マウスカーソルと共
に、各種の設定を行うウインドウが表示され、マウスを
使って画面に従って様々な操作を行う。
(Embodiment 5) FIG. 6 shows still another embodiment of the present invention. The present embodiment corresponds to a case where the image processing inspection apparatus includes a mouse or a pointing device 7 having a function equivalent to this mouse as the man-machine interface, instead of the keyboard 4. In an image processing inspection apparatus that uses this type of pointing device (hereinafter, described as a mouse is used) 7, a window for making various settings is displayed on the screen of the monitor 3 together with the mouse cursor, and the mouse is used. Various operations according to the screen.

【0046】このような画像処理検査装置では、本体1
にあるマウス接続用のインターフェース19は、キーボ
ード4の場合と同様に、シリアルインターフェース(特
に、RS−232Cインターフェース)が用いられてい
るので、ユーザプログラムの開発時には、このマウス用
のシリアルインターフェース19と汎用パーソナルコン
ピュータ5のシリアルインターフェースを接続する。そ
して、ユーザプログラム開発が終了すれば、画像処理検
査装置本体だけで動作させるため、マウスを接続しても
何ら問題はない。
In such an image processing inspection apparatus, the main body 1
As in the case of the keyboard 4, a serial interface (especially RS-232C interface) is used for the mouse connection interface 19 in FIG. The serial interface of the personal computer 5 is connected. After the development of the user program is completed, the image processing inspection apparatus main body is made to operate only. Therefore, there is no problem even if the mouse is connected.

【0047】マウスの場合、先の実施例と異なり、操作
は画像処理検査装置のモニタ3上のマウスカーソルを見
ながら行わなければならない。そのため、パーソナルコ
ンピュータ5のモニタ5a上には、何も表示する必要は
ない。但し、その代わりに、デバッグ中はパーソナルコ
ンピュータ5に接続されているマウス7からの位置信号
(マウスの移動に伴って発生するX、Y軸夫々に対して
のカウントパルスから現在の座標を計算し数値として表
示した信号)をRS232Cインターフェースを通し
て、画像処理検査装置のマウスインターフェース19に
常時送る必要がある。しかし、デバッグなどのコマンド
はユーザがパーソナルコンピュータ5のキーボード操作
を行ったときのみ送られるので、通常は画像処理検査装
置のモニタ3上のマウスの動きがぎこちなくならない程
度の間隔で送信しても、全体の動作には差支えない。
In the case of a mouse, unlike the previous embodiment, the operation must be performed while looking at the mouse cursor on the monitor 3 of the image processing inspection apparatus. Therefore, it is not necessary to display anything on the monitor 5a of the personal computer 5. However, instead, during debugging, the current coordinates are calculated from the position signals from the mouse 7 connected to the personal computer 5 (count pulses for the X and Y axes generated as the mouse moves. It is necessary to constantly send a signal displayed as a numerical value) to the mouse interface 19 of the image processing inspection device through the RS232C interface. However, a command for debugging or the like is sent only when the user operates the keyboard of the personal computer 5, so normally, even if the command is sent at an interval such that the movement of the mouse on the monitor 3 of the image processing inspection device does not become cluttered, There is no difference in the overall operation.

【0048】(実施例6)図7に本発明の第6の実施例
を示す。上述した各実施例で、不揮発性記憶装置あるい
は不揮発性記憶素子に格納されている実行形式プログラ
ムが、どの実行形式プログラムであるか分かるようにす
るためには、画像処理検査装置に転送した実行形式プロ
グラムが、パーソナルコンピュータ5上のどの実行形式
プログラムに対応しているかを管理する必要がある。こ
の場合には、例えば実行形式プログラムについて転送記
録を付けるなどの方法が考えられる。例えば、上述の管
理を行わないと、パーソナルコンピュータ5から画像処
理検査装置に実行形式プログラムを転送して長時間たっ
てしまうと、画像処理検査装置の不揮発性記憶装置ある
いは素子に記憶されている実行形式プログラムが、どの
素性のものか分からなくなる可能性がある。
(Embodiment 6) FIG. 7 shows a sixth embodiment of the present invention. In each of the above-described embodiments, in order to identify which execution format program the execution format program stored in the non-volatile storage device or the non-volatile storage element is, the execution format transferred to the image processing inspection apparatus is used. It is necessary to manage which executable format program on the personal computer 5 the program corresponds to. In this case, for example, a method of attaching a transfer record for the executable program can be considered. For example, if the above-mentioned management is not performed and the execution format program is transferred from the personal computer 5 to the image processing inspection apparatus for a long time, the execution format stored in the non-volatile storage device or the element of the image processing inspection apparatus. There is a possibility that you will not know what the program is.

【0049】そこで、本実施例では、不揮発性記憶装置
あるいは素子に格納されている実行形式プログラムがど
の管理番号を持った実行形式プログラムであるのかを知
ることができるようにしたものである。具体的には、実
行形式プログラムを作成する際に、パーソナルコンピュ
ータ5が持っている時計から日付、時刻情報を得て、実
行形式プログラムに組み込んでおく。画像処理検査装置
は、パーソナルコンピュータ5から管理番号の問い合わ
せがあった場合、不揮発性記憶装置に格納されている管
理番号をパーソナルコンピュータ5に送る。
Therefore, in this embodiment, it is possible to know which management number the execution format program stored in the non-volatile storage device or element is. Specifically, when the execution format program is created, date and time information is obtained from the clock of the personal computer 5 and incorporated in the execution format program. When the personal computer 5 inquires about the management number, the image processing inspection device sends the management number stored in the nonvolatile storage device to the personal computer 5.

【0050】以下、本実施例を具体的に説明する。図7
は本実施例にかかる部分の概略的な内部構成を示す図で
あり、パーソナルコンピュータ5と画像処理検査装置本
体1とはRS−232C準拠の通信ケーブル24によっ
てシリアルインターフェース54,23が接続される。
パーソナルコンピュータ5は、ソフトウエア資産とし
て、エディタ51、時計52及びコンパイラ53を内蔵
している。
The present embodiment will be specifically described below. Figure 7
FIG. 3 is a diagram showing a schematic internal configuration of a portion according to the present embodiment. The personal computer 5 and the image processing inspection apparatus main body 1 are connected to serial interfaces 54 and 23 by an RS-232C compliant communication cable 24.
The personal computer 5 has a built-in editor 51, clock 52, and compiler 53 as software assets.

【0051】エディタ51は、一般的に普及しているス
クリーンエディタを用いており、テキストファイル形式
でユーザプログラム(ソースプログラム)を作成あるい
は訂正する。ソースプログラムは、画像処理検査装置専
用の文法に基づいて記述する。時計52は、パーソナル
コンピュータ5に内蔵されているシステムクロックを使
用する。一般的には、システムクロックは水晶発振子の
信号を元にしていて非常に正確である。システムクロッ
クが示す時刻は、ソフトウエアに取り込むことができ
る。
The editor 51 uses a screen editor that is generally popular, and creates or corrects a user program (source program) in a text file format. The source program is written based on the grammar dedicated to the image processing inspection apparatus. The clock 52 uses the system clock built in the personal computer 5. Generally, the system clock is based on the crystal oscillator signal and is very accurate. The time indicated by the system clock can be captured in software.

【0052】コンパイラ53は、ソースプログラムをコ
ンパイルして、実行形式プログラムを作成する。このコ
ンパイラ53は、画像処理検査装置の専用言語のコンパ
イラであり、作成される実行形式プログラムは、パーソ
ナルコンピュータ5の助けを借りることなく、画像処理
検査装置を単独で動作させることができる。この実行形
式プログラムを画像処理検査装置の不揮発性記憶装置あ
るいは素子であるEEPROM22に格納する段階で
は、パーソナルコンピュータ5を接続することなく、画
像処理検査装置本体1が単体で実行形式プログラムを動
作させて、必要な検査工程を行う。コンパイラ53が作
成する実行形式プログラムには、実行形式プログラムを
作成した時刻を時計から読み取り、その時刻が実行形式
プログラム中に格納される。画像処理検査装置本体1
は、内部に、CPU20、RAM21、及び不揮発性記
憶装置(素子)であるEEPROM22を持っている。
CPU20は、画像処理検査装置の演算動作を行い、実
行形式プログラムの実行は、このCPU20で行う。R
AM21は、CPU20のワークエリアとして使用さ
れ、パーソナルコンピュータ5でコンパイルして作成さ
れる実行形式プログラムは、このRAM上に格納されて
実行される。デバッグの際は、RS−232Cシリアル
インターフェース23から送られている実行形式プログ
ラムをRAM21上に展開し、また画像処理検査装置単
体で動作する場合には、不揮発性記憶装置(素子)から
読み出される実行形式プログラムをRAM21に展開し
て、実行形式プログラムを動作させる。EEPROM2
2は、画像処理検査装置が単独で動く場合の実行形式プ
ログラムを格納する。実行形式プログラムは、RAM2
1でデバッグを終了した後に、はじめてEEPROM2
2に格納される。
The compiler 53 compiles the source program to create an executable program. The compiler 53 is a compiler in a language dedicated to the image processing inspection device, and the created executable program can operate the image processing inspection device independently without the help of the personal computer 5. At the stage of storing the execution format program in the EEPROM 22 which is a non-volatile storage device or element of the image processing inspection apparatus, the image processing inspection apparatus main body 1 operates the execution format program by itself without connecting the personal computer 5. , Perform necessary inspection process. In the execution format program created by the compiler 53, the time when the execution format program was created is read from the clock and the time is stored in the execution format program. Image processing inspection device body 1
Has a CPU 20, a RAM 21, and an EEPROM 22, which is a non-volatile storage device (element), inside.
The CPU 20 performs the arithmetic operation of the image processing inspection device, and the execution of the executable program is performed by the CPU 20. R
The AM 21 is used as a work area of the CPU 20, and an executable program created by compiling with the personal computer 5 is stored in this RAM and executed. When debugging, the execution format program sent from the RS-232C serial interface 23 is expanded on the RAM 21, and when the image processing inspection device operates alone, the execution read from the nonvolatile storage device (element) is executed. The format program is expanded in the RAM 21 and the execution format program is operated. EEPROM2
2 stores an executable program when the image processing inspection device operates independently. Executable program is RAM2
EEPROM2 for the first time after finishing the debugging in 1.
Stored in 2.

【0053】図8は、実行形式プログラム中の管理番号
を示す。管理番号は、実行形式プログラムの先頭に図8
(a)のように入れられる。アスキーコードを使用する
ので、10進数で表現すれば、図8(b)の数値の羅列
となる。同図(a),(b)のデータは、この実行形式
プログラムが1993年11月22日16時45分23
秒に作成されたことを意味している。
FIG. 8 shows the management number in the executable program. The management number is shown at the beginning of the executable program in FIG.
It is inserted as shown in (a). Since the ASCII code is used, it can be expressed as a decimal number as a list of numerical values in FIG. The data shown in (a) and (b) of FIG.
It means that it was created in seconds.

【0054】図9は実行形式プログラムの作成手順を示
すフローチャートである。まず、ユーザプログラム(ソ
ースファイル)のコンパイルを行う。これは、パーソナ
ルコンピュータ5の内部に格納されているコンパイラ5
3を使用して行う。このコンパイラ53は、画像処理検
査装置の専用言語用コンパイラで画像処理検査装置のR
AMに展開して自走する実行形式プログラムを作成す
る。
FIG. 9 is a flow chart showing the procedure for creating an executable program. First, the user program (source file) is compiled. This is the compiler 5 stored inside the personal computer 5.
3 is used. The compiler 53 is a compiler for a dedicated language of the image processing inspection device, and is an R of the image processing inspection device.
Create an executable program that expands in AM and runs by itself.

【0055】次に、パーソナルコンピュータ5の内蔵時
計52から時刻を読み取る。読み取った時刻から管理番
号を作成する。図8の例では、1993年11月22日
16時45分23秒というデータを時計52から読み取
り、931122164523という管理番号を作る。
この管理番号は、実行形式プログラムが作成された時刻
であり、この実行形式プログラム固有の管理番号とな
る。この管理番号を先に作成した実行形式プログラムの
先頭にアスキーコードで格納する。
Next, the time is read from the built-in clock 52 of the personal computer 5. Create a control number from the read time. In the example of FIG. 8, the data of 16:45:23 on November 22, 1993 is read from the clock 52, and a management number of 9311221624523 is created.
This management number is the time when the executable program was created, and is a management number unique to this executable program. This management number is stored in ASCII code at the beginning of the executable program created earlier.

【0056】図10は管理番号問合せの概念図であり、
パーソナルコンピュータ5側から実行形式プログラムの
管理番号を画像処理検査装置に問い合わせる。例え
ば、”NO.?”と文字列をアスキーコードで画像処理
検査装置本体1に送ることで、実行形式プログラムの管
理番号を画像処理検査装置に問い合わせる。画像処理検
査装置本体1は、管理番号を問い合わせると、EEPR
OM22に格納されている実行形式プログラムから管理
番号を読み取り、パーソナルコンピュータ5に管理番号
を転送する。図8の例では、管理番号として、”931
122164523”と実行形式プログラムに格納され
ているので、”931122164523”が管理番号
として画像処理検査装置からパーソナルコンピュータ5
に転送される。図11に上記管理番号問合せの手順を示
すフローチャートを示す。
FIG. 10 is a conceptual diagram of inquiry of the management number.
The personal computer 5 inquires of the image processing inspection apparatus about the management number of the executable program. For example, by sending a character string such as "NO.?" In ASCII code to the image processing inspection apparatus main body 1, the image processing inspection apparatus is inquired about the management number of the executable program. When inquiring about the control number, the image processing / inspection apparatus main body 1 sends the EEPR
The management number is read from the executable program stored in the OM 22, and the management number is transferred to the personal computer 5. In the example of FIG. 8, the management number is “931.
122164523 ”and the execution format program are stored in the image processing inspecting apparatus as the management number from the image processing inspection apparatus to the personal computer 5.
Transferred to. FIG. 11 is a flow chart showing the procedure for inquiring the management number.

【0057】このようにすれば、実行形式プログラムの
管理番号からパーソナルコンピュータ5側で実行形式プ
ログラムが、どの実行形式プログラムであるかが分か
る。しかも、パーソナルコンピュータ5で、実行形式プ
ログラムを管理してファイルとして残している場合に
は、画像処理検査装置から得られた管理番号をもとに、
どの実行形式プログラムが画像処理検査装置の不揮発性
記憶装置または素子に格納されているかを知ることがで
きる。また、ユーザプログラム(ソースファイル)が残
っている場合にも、管理番号として実行形式プログラム
の作成日時が分かるので、どのソースファイルから作成
された実行形式プログラムかを知ることができる。さら
に、このため、例えばユーザプログラム開発場所と画像
処理検査装置の使用場所が遠く離れていても、トラブル
が起きたような場合に、管理番号からユーザプログラム
開発場所でトラブルを再現し、対処することが可能とな
る。
In this way, it is possible to know which execution format program the execution format program is on the personal computer 5 side from the management number of the execution format program. Moreover, when the personal computer 5 manages the executable program and leaves it as a file, based on the management number obtained from the image processing inspection apparatus,
It is possible to know which executable program is stored in the nonvolatile storage device or element of the image processing inspection device. Further, even when the user program (source file) remains, the creation date and time of the execution format program can be known as the management number, so that it is possible to know from which source file the execution format program was created. Furthermore, for this reason, even if the user program development place and the use place of the image processing inspection device are far away from each other, if a trouble occurs, it is necessary to reproduce the trouble from the management number at the user program development place and to deal with it. Is possible.

【0058】(実施例7)図12に本発明の第7の実施
例を示す。本実施例では、パーソナルコンピュータ5で
ユーザプログラムの開発をC言語で行い、異なる言語で
開発されたソフトウエア資産を利用することを可能とす
るために、パーソナルコンピュータ5に異なる言語で書
かれたユーザプログラムをC言語に変換するプリプロセ
ッサを設けてある。
(Embodiment 7) FIG. 12 shows a seventh embodiment of the present invention. In the present embodiment, the user program is developed in the C language by the personal computer 5, and the user written in the different language on the personal computer 5 in order to use the software assets developed in the different language. A preprocessor for converting a program into C language is provided.

【0059】プリプロセッサは、ユーザプログラムを読
み出す読出部30と、読みだしたユーザプログラムの言
語を認識する言語認識部31と、言語の文法を解釈する
文法解釈部32と、解釈された文法に基づいて異なる言
語で書かれたユーザプログラムをC言語に変換するC言
語プログラム生成部33とからなる。これにより、異な
る言語でかかれたユーザプログラムをC言語に変換する
ことができ、このため異なる言語で開発されたソフトウ
エア資産を有効に利用することができる。例えば、従来
の機種で開発を行っていたユーザが、容易に新しい機種
で開発を行うことが可能となる。
The preprocessor is based on the reading unit 30 for reading the user program, the language recognition unit 31 for recognizing the language of the read user program, the grammar interpretation unit 32 for interpreting the grammar of the language, and the interpreted grammar. The C language program generation unit 33 converts a user program written in a different language into C language. As a result, a user program written in a different language can be converted into the C language, and therefore software assets developed in a different language can be effectively used. For example, a user who has been developing with a conventional model can easily develop with a new model.

【0060】上述のようにC言語に変換した後は、パー
ソナルコンピュータ5上でコンパイルを行い、その結果
できた実行形式プログラムを画像処理検査装置に転送し
て検査処理などを行う。ここで、実行形式プログラムに
コンパイルすることを、C言語用の汎用コンパイラを用
いて行え、開発の効率化を図ることもできる。 (実施例8)ところで、実行形式プログラムをデバッグ
する場合、画像処理検査装置本体1に実行形式プログラ
ムの動作を制御すためのモニタプログラムを搭載するこ
とが一般的である。しかし、ユーザがソースプログラム
の単位でデバッグを行いたいと思っても、パーソナルコ
ンピュータ5から転送された実行形式プログラムと、ユ
ーザが記述したソースプログラムとの関連性は、転送さ
れた時点で失われてしまう。このため、パーソナルコン
ピュータ5側で実行形式プログラムを作成する際に得れ
たデバッグ情報に基づいて、例えばソースプログラム行
との関連に基づいて、画像処理検査装置のモニタプログ
ラムで実行アドレスを直接操作するしかないという問題
があった。
After the conversion into the C language as described above, the personal computer 5 compiles the program, and the resulting executable program is transferred to the image processing inspection device for inspection processing. Here, compilation into an executable program can be performed using a general-purpose compiler for C language, and development efficiency can be improved. (Embodiment 8) When debugging an execution format program, it is general to install a monitor program in the image processing inspection apparatus main body 1 for controlling the operation of the execution format program. However, even if the user wants to perform debugging in source program units, the relation between the executable program transferred from the personal computer 5 and the source program written by the user is lost at the time of transfer. I will end up. Therefore, the execution address is directly manipulated by the monitor program of the image processing inspection device based on the debug information obtained when the execution format program is created on the personal computer 5 side, for example, based on the relation with the source program line. There was a problem that there was nothing.

【0061】この点に着目し、ソースプログラムの行単
位のデバッグが行えるようにしたものが本実施例であ
る。本実施例では、コンパイルされたソースプログラム
から、実行用のライブラリを加えて、リンカやロケータ
ソフトで実行形式プログラムを作成するとき、同時にソ
ースプログラムの1行毎に対応した実行形式プログラム
の開始アドレステーブルをパーソナルコンピュータ5で
作成する。なお、リンカやロケータソフトのオプション
にある場合は、それを用いればよく、また専用に作成し
たユーティリティを用いてもよい。
In this embodiment, paying attention to this point, the source program can be debugged line by line. In this embodiment, when a library for execution is added from a compiled source program to create an execution format program with linker or locator software, at the same time, a start address table of the execution format program corresponding to each line of the source program. Is created by the personal computer 5. If it is an option of the linker or locator software, it may be used, or a utility created specially may be used.

【0062】そして、作成された実行形式プログラム
と、実行形式プログラムの開始アドレステーブルとの両
方を、パーソナルコンピュータ5から画像処理検査装置
に転送する。画像処理検査装置本体1内にはモニタプロ
グラムが搭載されており、実行形式プログラムの部分的
実行、停止、内部レジスタや変数、入出力ポートの状態
モニタなどが行えるようになっている。ここで、パーソ
ナルコンピュータ5から転送された実行形式プログラム
の開始アドレステーブルは、このモニタプログラムに渡
される。
Then, both the created execution format program and the start address table of the execution format program are transferred from the personal computer 5 to the image processing inspection apparatus. A monitor program is installed in the main body 1 of the image processing inspection apparatus, and it is possible to partially execute and stop the execution format program, monitor the status of internal registers and variables, and input / output ports. Here, the start address table of the executable program transferred from the personal computer 5 is passed to this monitor program.

【0063】実際のデバッグは、実行したいソースプロ
グラムの行をパーソナルコンピュータ5からコマンドと
して画像処理検査装置に送り、モニタプログラムはその
コマンドを解析し、実行形式プログラムの開始アドレス
テーブルを参照して、ソースプログラムの行単位の実行
を行う。なお、パーソナルコンピュータ5から画像処理
検査装置に送るコマンドは、1行だけでもよいし、何行
目から何行目までと複数行指定しても良い。
In actual debugging, the line of the source program to be executed is sent as a command from the personal computer 5 to the image processing inspection apparatus, and the monitor program analyzes the command and refers to the start address table of the execution format program to execute the source program. Executes the program line by line. It should be noted that the command sent from the personal computer 5 to the image processing inspection apparatus may be only one line, or a plurality of lines from what line to what line.

【0064】さらに、実際のソースプログラムを例とし
て説明を行う。ここでも、上述したように、生産組立ラ
インL上で次々と流れてくる製品Aの画像をカメラ2に
取り込み、ユーザが予め品種データとして登録した様々
な演算条件や判定条件に基づいて取り込んだ画像に対し
て処理を行い、その結果をモニタ3に表示する場合を考
える。図13にそのソースプログラムを示す。このソー
スプログラムは、上記一連の機能を実現するためにユー
ザが記述する。本実施例ではC言語を用いているが、も
ちろん他の言語で記述してもよい。
Further, an actual source program will be described as an example. Also here, as described above, the images of the products A flowing one after another on the production assembly line L are captured by the camera 2, and the images are captured by the user based on various calculation conditions and determination conditions registered in advance as product type data. Consider the case where the process is performed on the monitor and the result is displayed on the monitor 3. FIG. 13 shows the source program. This source program is written by the user to realize the above series of functions. Although the C language is used in this embodiment, it may be described in another language.

【0065】各行の一番左の数字は、ソースプログラム
の行番号を示し、コロンで区切られた右側の4桁の16
進数は、各ソースプログラム行の実行形式プログラムの
開始番地を示している。なお、図13のイが実行形式プ
ログラムの開始アドレステーブルとなる。ユーザが実際
に記述したのは1行目において、’#’から右の部分で
あり、以降の行も同様である。
The leftmost number of each line indicates the line number of the source program, which is 16 digits of 4 digits on the right side separated by a colon.
The decimal number indicates the start address of the executable program of each source program line. Note that a in FIG. 13 is the start address table of the executable program. In the first line, what the user actually wrote is the part to the right of the '#', and so on for the subsequent lines.

【0066】簡単にプログラムの説明を行うと、1から
4行目まではインクルードファイルの指定や各定数の定
義で、実際のプログラムは6行目から始まる。8行目
で、生産組立ラインLを流れる製品Aの種類に応じて送
られてくる品種データの番号を設定し、10行目で、製
品Aがカメラ2に画像として取り込める所定位置に達し
たときに、検査の準備ができた時点で送られてくる検査
開始信号を受けて、カメラ2から画像信号を取り込みを
開始させる。11行目で、品種切換信号に基づいて内部
に保存された複数の品種データの中から必要な品種デー
タに切り換え、12行目で、品種データに設定された様
々な演算条件、判定条件に基づいて検査シーケンスを実
行、13〜17行で、製品Aが検査条件に対する良否を
ユーザに目視で知らせるため、例えばモニタ3の画面に
良の場合は「OK」,否の場合には「NG」と表示さ
せ、さらに18行目で検査結果をパラレルインターフェ
ースに出力する。
Briefly explaining the program, the first to fourth lines are the specification of the include file and the definition of each constant, and the actual program starts from the sixth line. When the number of the product type data sent according to the type of the product A flowing through the production assembly line L is set in the 8th line, and when the product A reaches a predetermined position where it can be captured as an image in the camera 2 in the 10th line. In response to the inspection start signal sent when the inspection is ready, the camera 2 starts capturing the image signal. On the 11th line, based on the product type switching signal, it is switched to the required product data from a plurality of product data stored inside, and on the 12th line, it is based on various calculation conditions and judgment conditions set in the product data. In order to visually inform the user whether the product A is good or bad with respect to the inspection condition in lines 13 to 17, for example, the screen of the monitor 3 is "OK" when it is good, and "NG" when it is not. It is displayed and the inspection result is output to the parallel interface on the 18th line.

【0067】デバッグの実際例として、例えば図13の
プログラム例において、10行目から12行目までだけ
を実行する場合を考える。この場合、パーソナルコンピ
ュータ5から、実行を開始するソースプログラムの行番
号と、実行を終了する行番号とが、デバッグ用のコマン
ドとして画像処理検査装置に送られる。画像処理検査装
置内のモニタプログラムは、このコマンドを受け取る
と、次の処理を行う。
As a practical example of debugging, consider the case of executing only the 10th to 12th lines in the program example of FIG. In this case, the personal computer 5 sends the line number of the source program to start the execution and the line number to end the execution to the image processing inspection device as a command for debugging. Upon receiving this command, the monitor program in the image processing inspection device performs the following processing.

【0068】まず、実行形式プログラムの実行開始のソ
ースプログラムの行に対応した開始アドレスを、予め転
送された実行形式プログラムの開始アドレステーブルか
ら読み取り、これをデバッグ開始番地と設定する。次
に、実行形式プログラムの、実行終了のソースプログラ
ムの行の次の行に対応した開始アドレスで、実行時にモ
ニタプログラムに戻ってくるように、戻り命令を書き込
む。このとき、書き込む前の命令は破壊されないよう
に、本来の実行形式プログラムのうち、戻り命令が書き
込まれる部分を、予め別の箇所に退避させておく。そし
て、実行形式プログラムのデバッグ開始番地にプログラ
ムカウンタをセットしてユーザプログラムの実行を開始
する。そして、戻り命令でモニタプログラムに戻る。こ
こで、例えば、インテル社の8086系のCPUでは、
1バイト命令でブレイクが行えるので、ソフトウエア割
込みのINT3を用いれば、モニタプログラムに戻すこ
とができる。また、例えば分母が0になる除算を実行す
れば、INT0を自動的に実行できるので、これによっ
てモニタプログラムに戻すこともできる。戻り命令でモ
ニタプログラムに復帰した後は、退避してある元の実行
形式プログラムを復旧させる。
First, the start address corresponding to the line of the source program at the start of execution of the executable program is read from the start address table of the previously transferred executable program, and this is set as the debug start address. Next, a return instruction is written so that the execution program returns to the monitor program at the time of execution at the start address corresponding to the next line of the line of the source program that has completed execution. At this time, in order to prevent the instruction before writing from being destroyed, the portion of the original executable program in which the return instruction is written is saved in advance in another location. Then, the program counter is set at the debug start address of the executable program and the execution of the user program is started. Then, a return command returns to the monitor program. Here, for example, in the CPU of Intel 8086 series,
Since a break can be made with a 1-byte instruction, the software interrupt INT3 can be used to return to the monitor program. Further, for example, INT0 can be automatically executed by performing a division in which the denominator is 0, and thus it is possible to return to the monitor program. After returning to the monitor program by the return instruction, the saved original executable program is restored.

【0069】以上の操作を行えば、パーソナルコンピュ
ータからのデバッグの実行コマンドを、開始行と終了行
といった少ないデータ転送量で実現できる。ここで、上
記デバッグが終了したとき、実行形式プログラムと実行
形式プログラムの開始アドレスデータの両方を、画像処
理検査装置の備える不揮発性記憶装置あるいは素子に保
存しておけば、以降パーソナルコンピュータ5と画像処
理検査装置との接続を切り離しても、画像処理検査装置
にソースプログラムの各行単位の開始アドレステーブル
が保存されているので、画像処理検査装置単体でも、キ
ーボードや操作キーを用いて、ソースプログラムの任意
の行から行までの部分実行が可能になる。このため、現
場でユーザプログラムの一部分だけを実行させたい場
合、パーソナルコンピュータを特に用意しなくても実行
できる。なお、実行形式プログラムと、実行形式プログ
ラムの開始アドレステーブルとのパーソナルコンピュー
タ5側での管理は、一般のMS−DOS等のパーソナル
コンピュータのファイル管理に基づいて行われる。
By performing the above operation, the debug execution command from the personal computer can be realized with a small data transfer amount such as the start line and the end line. Here, when the above-mentioned debugging is completed, if both the execution format program and the start address data of the execution format program are stored in a non-volatile storage device or an element included in the image processing inspection apparatus, the personal computer 5 and Even if the connection with the processing inspection device is cut off, the start address table for each line of the source program is stored in the image processing inspection device, so even with the image processing inspection device alone, the source program can be Partial execution from arbitrary line to line becomes possible. Therefore, when it is desired to execute only a part of the user program on site, it can be executed without preparing a personal computer. The management of the execution format program and the start address table of the execution format program on the personal computer 5 side is performed based on the file management of a personal computer such as a general MS-DOS.

【0070】[0070]

【発明の効果】請求項1の発明は上述のように、画像処
理検査装置本体と汎用のコンピュータとを夫々付属のシ
リアルインターフェースで接続してユーザプログラムを
開発することで、ユーザが画像処理検査装置本体の機能
をユーザの仕様に基づいてカスタマライズすることがで
きる画像処理検査装置において、ユーザが記述するソー
スプログラムはコンピュータで作成編集し、画像処理検
査装置本体上で動作する実行形式プログラムは、コンピ
ュータでユーザプログラムから作成し、出来上がった実
行形式プログラムをシリアルインターフェースでコンピ
ュータから画像処理検査装置本体に転送し、動作の確認
やデバッグは、コンピュータからのコマンドの授受によ
って、あるいは画像処理検査装置本体の操作キーないし
はキーボードあるいはマウスなどの入力デバイスの操作
で行い、さらにデバッグが完了した時点で、画像処理検
査装置本体の備える不揮発性記憶装置あるいは不揮発性
記憶素子に転送して実行形式プログラムを保存し、以降
は不揮発性記憶装置あるいは不揮発性記憶素子に保存さ
れた実行形式プログラムを画像処理検査装置本体単体で
実行させるようにしてあるので、専用インターフェース
ボードがなくても、ユーザの使いやすいあるいは使い慣
れた優れたソフトウエアを積極的に利用して、ユーザプ
ログラムの開発が行え、開発終了後は、画像処理検査装
置本体単体でユーザプログラムを動作させることができ
る。
According to the first aspect of the present invention, as described above, the main body of the image processing inspection apparatus and the general-purpose computer are connected by the attached serial interfaces to develop the user program, so that the user can perform the image processing inspection apparatus. In an image processing inspection apparatus capable of customizing the functions of the main body based on the user's specifications, a source program written by a user is created and edited by a computer, and an execution format program operating on the image processing inspection apparatus main body is a computer. A user-created execution program is transferred from the computer to the main body of the image processing inspection device via a serial interface, and operation confirmation and debugging are performed by sending and receiving commands from the computer or operating the main body of the image processing inspection device. There is a key or keyboard Is performed by operating an input device such as a mouse, and when debugging is completed, it is transferred to a non-volatile memory device or non-volatile memory element provided in the main body of the image processing inspection device to save the execution format program. The executable program stored in the storage device or the non-volatile storage device is designed to be executed by the image processing inspection device itself, so it is possible to provide excellent software that is easy for the user or familiar with, even without a dedicated interface board. The user program can be actively used to develop the user program, and after the development is completed, the user program can be operated by the image processing inspection apparatus main body alone.

【0071】請求項2の発明は、上記画像処理検査装置
本体のシリアルインターフェースとして、汎用に使用さ
れるシリアルインターフェースとは別にユーザプログラ
ム開発専用のインターフェースを個別に設けてあるの
で、画像処理検査装置本体に対して外部機器とコンピュ
ータとを接続することができ、画像処理検査装置本体の
シリアルインターフェースに接続されるロボットなどの
外部機器が存在する場合にも、外部機器を接続したまま
で、ユーザプログラムの開発が行える。
According to the second aspect of the present invention, as the serial interface of the image processing inspection apparatus main body, an interface dedicated to user program development is provided separately from the serial interface used for general purpose. In contrast, even if there is an external device such as a robot that can be connected to an external device and a computer and is connected to the serial interface of the main body of the image processing inspection device, the external device remains connected and the user program Development is possible.

【0072】請求項3の発明は、画像処理検査装置本体
が、マンマシンインターフェースとしてのキーボードや
マウスなどの入力デバイスを備えている場合において、
上記コンピュータを接続するシリアルインターフェース
として、画像処理検査装置本体が備える入力デバイスを
接続するためのシリアルインターフェースを用いてある
ので、画像処理検査装置本体のシリアルインターフェー
スに接続されるロボットなどの外部機器が存在する場合
にも、外部機器を接続したままで、ユーザプログラムの
開発が行え、しかも新たに画像処理検査装置本体のシリ
アルインターフェースを増設する必要がない。
According to a third aspect of the invention, in the case where the image processing inspection apparatus main body is provided with an input device such as a keyboard and a mouse as a man-machine interface,
Since the serial interface for connecting the input device provided in the image processing inspection apparatus main body is used as the serial interface for connecting the computer, there is an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body. In this case, the user program can be developed while the external device is still connected, and there is no need to add a new serial interface of the image processing inspection apparatus main body.

【0073】請求項4の発明は、コンピュータの表示装
置上にキーボードを表現した画面を表示し、その画面を
仮想キーボードとして、コンピュータのキーボードやマ
ウスなどのポインティングデバイスを用いてキーボード
の機能を代行させた入力を行うようにしてあるので、キ
ーボードを接続するためのシリアルインターフェースを
通してコンピュータを画像処理検査装置本体に接続した
場合において、キーボードを接続した場合と同様の入力
を行うことができる。
According to a fourth aspect of the present invention, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to substitute the keyboard function by using a pointing device such as a computer keyboard or a mouse. Since the input is performed, when the computer is connected to the main body of the image processing inspection apparatus through the serial interface for connecting the keyboard, the same input as when the keyboard is connected can be performed.

【0074】請求項5の発明は、マウスなどのポインテ
ィングデバイス用のシリアルインターフェースにコンピ
ュータを接続した場合において、コンピュータのマウス
などのポインティングデバイスを画像処理検査装置本体
の仮想ポインティングデバイスとして用い、仮想ポイン
ティングデバイスの操作で、画像処理検査装置本体のポ
インティングデバイスの機能を代行させた入力を行うよ
うにしてあるので、マウスなどのポインティングデバイ
スを接続するためのシリアルインターフェースを通して
コンピュータを画像処理検査装置本体に接続した場合に
おいて、ポインティングデバイスを接続した場合と同様
の入力を行うことができる。
According to a fifth aspect of the present invention, when a computer is connected to a serial interface for a pointing device such as a mouse, the pointing device such as the mouse of the computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the virtual pointing device is used. By doing the operation, the input of the pointing device function of the image processing inspection device body is performed instead, so the computer was connected to the image processing inspection device body through a serial interface for connecting a pointing device such as a mouse. In this case, the same input as when a pointing device is connected can be performed.

【0075】請求項6の発明は、ユーザプログラムから
実行形式プログラムをコンピュータ上で作成する際に、
実行形式プログラム内にどのユーザプログラムから作成
されたものであるかを示す管理番号を付け、その管理番
号付きの実行形式プログラムをコンピュータから画像処
理検査装置本体に転送し、デバック完了時点で不揮発性
記憶装置あるいは不揮発性記憶装置に格納し、コンピュ
ータからのコマンドによって画像処理検査装置本体から
コンピュータに管理番号を送っているので、画像処理検
査装置本体に転送した実行形式プログラムを管理番号か
ら判別できる。
According to a sixth aspect of the invention, when an execution form program is created from a user program on a computer,
A management number that indicates which user program was created in the execution format program is assigned, and the execution format program with that management number is transferred from the computer to the image processing inspection device body, and non-volatile memory is stored at the completion of debugging. Since the management number is sent from the main body of the image processing inspection apparatus to the computer by a command from the computer, the execution format program transferred to the main body of the image processing inspection apparatus can be identified from the management number.

【0076】請求項7の発明は、ユーザプログラム開発
言語としてC言語を用いてあるので、異機種との互換性
を確保することが可能となる。請求項8の発明は、ユー
ザプログラムの言語を認識する言語認識部と、認識した
言語の文法を解釈する文法解釈部と、これにより得られ
た情報よりC言語を生成するC言語プログラム作成部よ
りなるプリプロセッサを備えているので、ユーザプログ
ラム開発言語としてC言語を用いた場合において、プリ
プロセッサで異なる言語をC言語に変換でき、ユーザの
使いやすいあるいは使い慣れた優れたソフトウエアを積
極的に利用して、ユーザプログラムの開発が行える。
According to the seventh aspect of the invention, since the C language is used as the user program development language, compatibility with different models can be ensured. According to the invention of claim 8, a language recognition section for recognizing the language of the user program, a grammar interpretation section for interpreting the grammar of the recognized language, and a C language program creation section for generating C language from the information obtained thereby. Since the preprocessor is provided, when the C language is used as the user program development language, the preprocessor can convert a different language into the C language, and positively utilize excellent software that is easy for the user to use or familiar with. Can develop user programs.

【0077】請求項9の発明は、コンピュータで実行形
式プログラムの作成に際して、ソースプログラムの1行
毎に対応した上記実行形式プログラムの開始アドレステ
ーブルをコンピュータで作成し、上記実行形式プログラ
ムと実行形式プログラムの開始アドレステーブルとの両
方を、シリアルインターフェースでコンピュータから画
像処理検査装置本体に転送し、画像処理検査装置本体に
実行形式プログラムの任意のアドレス間のみ実行させる
ことができるモニタプログラムを設け、コンピュータか
らは、実行させたいソースプログラムの行に対応する数
値を画像処理検査装置本体に送り、モニタプログラム側
で、モニタへの戻り命令を上記実行形式プログラムに挿
入することによって、ユーザのソースプログラムの行単
位のデバッグを行っているので、コンピュータから実行
させたいソースプログラムの行に対応する数値を画像処
理検査装置本体に送り、ソースプログラムの行単位のデ
バッグを行うことができる。
According to a ninth aspect of the present invention, when the execution format program is created by the computer, the start address table of the execution format program corresponding to each line of the source program is created by the computer, and the execution format program and the execution format program are created. Both the start address table and the start address table are transferred from the computer to the main body of the image processing inspection apparatus via a serial interface, and the main body of the image processing inspection apparatus is provided with a monitor program that can be executed only between arbitrary addresses Sends the numerical value corresponding to the line of the source program to be executed to the main body of the image processing inspection device, and the monitor program inserts a return command to the monitor into the above execution form program to Debug the line Since it is, sending a number corresponding to the row of the source program to be executed from a computer to the image processing inspection apparatus main body, it is possible to debug the row of the source program.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】本体を背面側から見た斜視図である。FIG. 2 is a perspective view of the main body as viewed from the back side.

【図3】第2の実施例の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a second exemplary embodiment.

【図4】第3の実施例の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a third exemplary embodiment.

【図5】第4の実施例の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a fourth exemplary embodiment.

【図6】第5の実施例の構成を示すブロック図である。FIG. 6 is a block diagram showing a configuration of a fifth exemplary embodiment.

【図7】第6の実施例のパーソナルコンピュータと画像
処理検査装置本体の概略構成を示すブロック図である。
FIG. 7 is a block diagram showing a schematic configuration of a personal computer and an image processing inspection apparatus main body according to a sixth embodiment.

【図8】(a),(b)は夫々実行形式プログラムの管
理方法を示す説明図である。
8A and 8B are explanatory diagrams showing a management method of an execution format program, respectively.

【図9】同上の管理番号の設定方法の示すフローチャー
トである。
FIG. 9 is a flowchart showing a method of setting a management number in the above.

【図10】同上において管理番号を問い合わせる方法を
示す説明図である。
FIG. 10 is an explanatory diagram showing a method for inquiring about a management number in the above.

【図11】同上の管理番号を問い合わせる手順を示すフ
ローチャートである。
FIG. 11 is a flowchart showing a procedure for inquiring a management number in the above.

【図12】同上のプリプロセッサの構成を示すブロック
図である。
FIG. 12 is a block diagram showing the configuration of the above preprocessor.

【図13】第7の実施例において例示したソースプログ
ラムを示す説明図である。
FIG. 13 is an explanatory diagram showing a source program exemplified in a seventh embodiment.

【図14】実施例3の従来例としての画像処理検査装置
の構成を示すブロック図である。
FIG. 14 is a block diagram showing a configuration of an image processing inspection device as a conventional example of the third embodiment.

【符号の説明】[Explanation of symbols]

1 画像処理検査装置本体 3 モニタ 4 キーボード 5 パーソナルコンピュータ 6 外部機器 7 ポインティングデバイス 14,17 シリアルインターフェース 31 言語認識部 32 文法解釈部 33 C言語プログラム作成部 1 Image Processing Inspection Device Main Body 3 Monitor 4 Keyboard 5 Personal Computer 6 External Device 7 Pointing Device 14, 17 Serial Interface 31 Language Recognition Unit 32 Grammar Interpretation Unit 33 C Language Program Creation Unit

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年12月27日[Submission date] December 27, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】全文[Correction target item name] Full text

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【書類名】 明細書[Document name] Statement

【発明の名称】 画像処理検査装置Image processing inspection apparatus

【特許請求の範囲】[Claims]

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、工場などの生産設備と
して、生産工程上の製品の良否判定検査などに用いられ
る画像処理検査装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing inspection apparatus used as a production facility such as a factory for quality inspection of products in a production process.

【0002】[0002]

【従来の技術】従来、工場などにおいて人の視覚によっ
ていた各種の目視検査を、正確、高速且つ自動的に行う
ものとして、画像処理検査装置が提供され、昨今では数
多く導入されるようになっている。この種の画像処置検
査装置では、一般的には、まず被測定対象となる生産ラ
イン上に流れてくる工程途中の製品をカメラで画像信号
として取り込み、様々な画像処理を行った後、演算され
た数値あるいは良否の判定結果を出力する。この場合、
ユーザは、必要な演算結果や判定結果を得るために、様
々な計測条件、判定条件を検査の前に予め設定する必要
がある。
2. Description of the Related Art Image processing inspection apparatuses have been provided as an apparatus for accurately, rapidly and automatically performing various visual inspections that were conventionally performed by human eyes in factories and the like, and are now being widely introduced. There is. In this kind of image treatment inspection apparatus, generally, a camera is used to capture an in-process product flowing on the production line to be measured as an image signal, perform various image processing, and then calculate. Output the numerical value or the pass / fail judgment result. in this case,
The user needs to set various measurement conditions and determination conditions in advance before the inspection in order to obtain necessary calculation results and determination results.

【0003】上記条件とは、例えば、検査の開始の条件
設定、カメラによって取り込まれた濃淡画像を白黒の2
値化画像にするしきい値の設定、画像内の検査に必要な
箇所の設定(検査用のライン、ウインドウの設定)、入
力画像に対する設定された検査箇所の位置ずれを補正す
る機能の設定、夫々の検査ラインや検査ウインドウから
得られた情報(製品の面積や傾きなど)を組み合わせて
演算して結果を得るための演算式の設定などがある。ま
た、上述の各種計測条件や判定条件は、製品毎に固有の
ものであるので、これらの条件を製品毎に品種データと
して管理している。
The above-mentioned conditions are, for example, the condition setting of the start of the inspection, the grayscale image captured by the camera is set to black and white.
Threshold value setting for digitized image, setting required for inspection in image (line for inspection, setting of window), setting of function to correct positional deviation of set inspection position with respect to input image, There is a setting of an arithmetic expression for combining the information (area of product, inclination, etc.) obtained from each inspection line or inspection window to obtain a result. Further, since the above-mentioned various measurement conditions and determination conditions are unique to each product, these conditions are managed as product data for each product.

【0004】ところで、ユーザが上記画像処理検査装置
が有している様々な機能を自分自身で使用者設定(カス
マイズ)できるように、カスタマイズしたい内容をユ
ーザ自身がプログラムを記述することで実現できるよう
なユーザプログラミング型の画像処理検査装置が広く導
入されている。この種のユーザプログラミング型の画像
処理検査装置におけるユーザプログラムの開発は、ソー
スプログラムからデバッグまでの全てを、画像処理検査
装置本体だけで行うものと、外部のコンピュータ(一般
的にパーソナルコンピュータ)などと接続して開発を行
うものとに、大きく2つに分類される。
[0004] As the user a variety of functions of the image processing inspection apparatus has can be user-set by itself (Kas <br/> motor Mai's), the contents to be custom Mai's yourself A user programming type image processing inspection device that can be realized by writing a program has been widely introduced. The development of a user program in this type of user programming type image processing inspection device is performed by the image processing inspection device main body only from the source program to debugging, and by an external computer (generally a personal computer). There are two main categories: connecting and developing.

【0005】ここで、前者の場合、画像処理検査装置単
体で全ての処理が行えるが、ソースプログラム編集のた
めエディタ機能が貧弱になり、また機能の拡張性にも乏
しい。これに対して、後者は、汎用のパーソナルコンピ
ュータなどの豊富なソフト資産が使えるため、ソースプ
ログラムの作成編集には高機能なスクリーンエディタ等
を用いることができる。また、機能の拡張についても、
本体内部に持っていない機能も、外部でソフトウエアを
開発した後に転送することで実現できる。
In the former case, all the processing can be performed by the image processing inspection device alone, but the editor function is poor due to the source program editing, and the expandability of the function is also poor. On the other hand, since the latter can use abundant software resources such as general-purpose personal computers, a high-performance screen editor or the like can be used for creating and editing the source program. Also, regarding expansion of functions,
Functions that are not included in the main body can be realized by transferring the software after developing it externally.

【0006】[0006]

【発明が解決しようとする課題】ところで、上記後者の
場合、画像処理検査装置とパーソナルコンピュータとの
接続は、専用インターフェースボードなどを用いたパラ
レルインターフェースとしての接続が主流である。この
場合、専用インターフェースボードの性格上、パーソナ
ルコンピュータのメーカや機種に依存してしまう。この
ため、例えば工場などの現場で、開発やデバッグを行う
場合、現場にパーソナルコンピュータがあっても、メー
カや機種が違うため使用できない。さらに、専用インタ
ーフェースボードが用意できないために、開発が行えな
いという欠点があった。
By the way, in the latter case, the connection between the image processing inspection apparatus and the personal computer is mainly a parallel interface using a dedicated interface board or the like. In this case, the characteristics of the dedicated interface board depend on the manufacturer and model of the personal computer. Therefore, for example, when performing development or debugging at a site such as a factory, even if there is a personal computer at the site, it cannot be used because the manufacturer and the model are different. Further, there is a drawback that development cannot be performed because a dedicated interface board cannot be prepared.

【0007】本発明は上述の点に鑑みて為されたもので
あり、その目的とするところは、専用インターフェース
ボードがなくても、パーソナルコンピュータを用いてユ
ーザプログラムの開発が行える画像処理検査装置を提供
することにある。
The present invention has been made in view of the above points, and an object thereof is to provide an image processing inspection apparatus capable of developing a user program using a personal computer without a dedicated interface board. To provide.

【0008】[0008]

【課題を解決するための手段】請求項1の発明は、上記
目的を達成するために、画像処理検査装置本体と汎用の
コンピュータとを夫々付属のシリアルインターフェース
で接続してユーザプログラムを開発することで、ユーザ
が画像処理検査装置本体の機能をユーザの仕様に基づい
てカスタマイズすることができる画像処理検査装置にお
いて、ユーザが記述するソースプログラムはコンピュー
タで作成編集し、画像処理検査装置本体上で動作する実
行形式プログラムは、コンピュータでユーザプログラム
から作成し、出来上がった実行形式プログラムをシリア
ルインターフェースでコンピュータから画像処理検査装
置本体に転送し、動作の確認やデバッグは、コンピュー
タからのコマンドの授受によって、あるいは画像処理検
査装置本体の操作キーないしはキーボードあるいはマウ
スなどの入力デバイスの操作で行い、さらにデバッグが
完了した時点で、画像処理検査装置本体の備える不揮発
性記憶装置あるいは不揮発性記憶素子に転送して実行形
式プログラムを保存し、以降は不揮発性記憶装置あるい
は不揮発性記憶素子に保存された実行形式プログラムを
画像処理検査装置本体単体で実行させるようにしてあ
る。
In order to achieve the above object, the invention of claim 1 develops a user program by connecting an image processing inspection apparatus main body and a general-purpose computer with an attached serial interface. in the image processing inspection apparatus that a user can custom My's based functions of the image processing inspection apparatus main body to the specifications of the user, the source program describing user is created and edited with a computer, the image processing inspection apparatus on the body The execution format program that runs on the computer is created from the user program on the computer, and the completed execution format program is transferred from the computer to the main body of the image processing inspection device via the serial interface. Operation confirmation and debugging are performed by sending and receiving commands from the computer. Or operation of the image processing inspection device body -Or by operating an input device such as a keyboard or mouse, and when debugging is completed, transfer to the non-volatile memory device or non-volatile memory element of the main body of the image processing inspection device and save the execution format program. Is configured so that the executable program stored in the non-volatile storage device or the non-volatile storage element is executed by the image processing inspection device main body alone.

【0009】請求項2の発明は、画像処理検査装置本体
のシリアルインターフェースに接続されるロボットなど
の外部機器が存在する場合にも、外部機器を接続したま
まで、ユーザプログラムの開発が行えるようにするため
に、上記画像処理検査装置本体のシリアルインターフェ
ースとして、汎用に使用されるシリアルインターフェー
スとは別にユーザプログラム開発専用のインターフェー
スを個別に設けてある。
According to the second aspect of the present invention, even when an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body exists, the user program can be developed with the external device still connected. Therefore, as a serial interface of the main body of the image processing inspection apparatus, an interface dedicated to user program development is separately provided in addition to a serial interface used for general purpose.

【0010】請求項3の発明は、画像処理検査装置本体
のシリアルインターフェースに接続されるロボットなど
の外部機器が存在する場合にも、外部機器を接続したま
まで、ユーザプログラムの開発が行え、しかも新たに画
像処理検査装置本体のシリアルインターフェースを増設
する必要を無くすために、画像処理検査装置本体が、マ
ンマシンインターフェースとしてのキーボードやマウス
などの入力デバイスを備えている場合において、上記コ
ンピュータを接続するシリアルインターフェースとし
て、画像処理検査装置本体が備える入力デバイスを接続
するためのシリアルインターフェースを用いてある。
According to the third aspect of the present invention, even when there is an external device such as a robot connected to the serial interface of the main body of the image processing inspection device, the user program can be developed while the external device is still connected. In order to eliminate the need to newly add a serial interface of the image processing inspection device main body, when the image processing inspection device main body is equipped with an input device such as a keyboard and a mouse as a man-machine interface, the computer is connected. As the serial interface, a serial interface for connecting an input device included in the main body of the image processing inspection apparatus is used.

【0011】請求項3の発明において、キーボードを接
続するためのシリアルインターフェースを通してコンピ
ュータを画像処理検査装置本体に接続した場合におい
て、キーボードを接続した場合と同様の入力が行えるよ
うにするために、請求項4の発明では、コンピュータの
表示装置上にキーボードを表現した画面を表示し、その
画面を仮想キーボードとして、コンピュータのキーボー
ドやマウスなどのポインティングデバイスを用いてキー
ボードの機能を代行させた入力を行うようにすればよ
い。
In the invention of claim 3, when the computer is connected to the main body of the image processing inspection apparatus through the serial interface for connecting the keyboard, the same input as when the keyboard is connected can be performed. According to the invention of item 4, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to perform input while acting as a keyboard function by using a pointing device such as a computer keyboard or a mouse. You can do it like this.

【0012】請求項3の発明において、マウスなどのポ
インティングデバイスを接続するためのシリアルインタ
ーフェースを通してコンピュータを画像処理検査装置本
体に接続した場合において、ポインティングデバイスを
接続した場合と同様の入力が行えるようにするために、
請求項5の発明では、コンピュータのマウスなどのポイ
ンティングデバイスを画像処理検査装置本体の仮想ポイ
ンティングデバイスとして用い、仮想ポインティングデ
バイスの操作で、画像処理検査装置本体のポインティン
グデバイスの機能を代行させた入力を行うようにしてあ
る。
According to the third aspect of the invention, when the computer is connected to the main body of the image processing inspection apparatus through a serial interface for connecting a pointing device such as a mouse, the same input as when the pointing device is connected can be performed. In order to
According to the invention of claim 5, a pointing device such as a mouse of a computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the input of the function of the pointing device of the main body of the image processing inspection apparatus is performed by the operation of the virtual pointing device. I am going to do it.

【0013】請求項6の発明は、画像処理検査装置本体
に転送した実行形式プログラムがその実行形式プログラ
ムに対応するかを管理できるようにするために、ユーザ
プログラムから実行形式プログラムをコンピュータ上で
作成する際に、実行形式プログラム内にどのユーザプロ
グラムから作成されたものであるかを示す管理番号を付
け、その管理番号付きの実行形式プログラムをコンピュ
ータから画像処理検査装置本体に転送し、デバック完了
時点で不揮発性記憶装置あるいは不揮発性記憶素子に格
納し、コンピュータからのコマンドによって画像処理検
査装置本体からコンピュータに管理番号を送るようにし
てある。
According to a sixth aspect of the present invention, in order to manage whether the executable program transferred to the image processing inspection apparatus main body corresponds to the executable program, the executable program is created on the computer from the user program. At the time of completion of debugging, a management number indicating which user program was created was added to the execution format program, and the execution format program with the management number was transferred from the computer to the image processing inspection device body. It is stored in a non-volatile memory device or a non-volatile memory element , and a management number is sent from the image processing inspection apparatus main body to the computer by a command from the computer.

【0014】請求項7の発明は、異機種との互換性を確
保するために、ユーザプログラム開発言語としてC言語
を用いることが望ましい。請求項7の発明において、ユ
ーザの使いやすいあるいは使い慣れた優れたソフトウエ
アを積極的に利用して、ユーザプログラムの開発が行え
るようにするために、請求項8に示すように、ユーザプ
ログラムの言語を認識する言語認識部と、認識した言語
の文法を解釈する文法解釈部と、これにより得られた情
報よりC言語を生成するC言語プログラム作成部よりな
るプリプロセッサを設けることがさらに好ましい。
In the invention of claim 7, it is desirable to use the C language as a user program development language in order to ensure compatibility with different models. In the invention of claim 7, in order to enable development of the user program by positively utilizing excellent software that is easy for the user to use or is familiar with, as shown in claim 8, the language of the user program It is more preferable to provide a preprocessor that includes a language recognition unit that recognizes the, a grammar interpretation unit that interprets the grammar of the recognized language, and a C language program creation unit that generates the C language from the information obtained thereby.

【0015】請求項9の発明は、行単位のデバッグを行
うことを可能とするために、コンピュータで実行形式プ
ログラムの作成に際して、ソースプログラムの1行毎に
対応した上記実行形式プログラムの開始アドレステーブ
ルをコンピュータで作成し、上記実行形式プログラムと
実行形式プログラムの開始アドレステーブルとの両方
を、シリアルインターフェースでコンピュータから画像
処理検査装置本体に転送し、画像処理検査装置本体に実
行形式プログラムの任意のアドレス間のみ実行させるこ
とができるモニタプログラムを設け、コンピュータから
は、実行させたいソースプログラムの行に対応する数値
を画像処理検査装置本体に送り、モニタプログラム側
で、モニタへの戻り命令を上記実行形式プログラムに挿
入することによって、ユーザのソースプログラムの行単
位のデバッグを行っている。
According to a ninth aspect of the present invention, in order to enable line-by-line debugging, the start address table of the execution format program corresponding to each line of the source program when the execution format program is created by the computer. Computer, and transfers both the above-mentioned execution format program and the start address table of the execution format program from the computer to the main body of the image processing inspection apparatus via the serial interface, and the arbitrary address of the execution format program is transferred to the main body of the image processing inspection apparatus. A monitor program that can be executed only during the period is sent. From the computer, the numerical value corresponding to the line of the source program you want to execute is sent to the main body of the image processing inspection device, and the monitor program side issues a return command to the monitor in the above execution format. By inserting it in the program We are debugging on a row-by-row basis of the source program of over The.

【0016】[0016]

【作用】請求項1の発明は、上述のように構成すること
により、コンピュータと画像処理検査装置本体をシリア
ルインターフェースで接続し、ユーザプログラムの開発
で、ソースプログラムの作成編集を行うと共に、実行形
式プログラムの作成をコンピュータ上で行い、得られた
実行形式プログラムをシリアルインターフェースを通し
て画像処理検査装置本体に転送し、コンピュータからデ
バッグ用のコマンドを送信することで、デバッグを行
う。さらに、ユーザプログラムの開発が終了すると、転
送された実行形式プログラムを画像処理検査装置本体の
備える不揮発性記憶装置あるいは不揮発性記憶素子に転
送して実行形式プログラムを保存し、以降は不揮発性記
憶装置あるいは不揮発性記憶素子に保存された実行形式
プログラムを画像処理検査装置本体単体で実行させる。
これにより、専用インターフェースボードがなくても、
ユーザの使いやすいあるいは使い慣れた優れたソフトウ
エアを積極的に利用して、ユーザプログラムの開発が行
え、開発終了後は、画像処理検査装置本体単体でユーザ
プログラムを動作させることを可能とする。
According to the invention of claim 1, by configuring as described above, the computer and the image processing / inspection apparatus main body are connected by a serial interface, the source program is created and edited in the development of the user program, and the execution format is used. A program is created on a computer, the obtained executable program is transferred to the main body of the image processing inspection apparatus through a serial interface, and a debugging command is transmitted from the computer to perform debugging. Further, when the development of the user program is completed, the transferred execution format program is transferred to a nonvolatile storage device or a nonvolatile storage element included in the main body of the image processing inspection apparatus to save the execution format program. Alternatively, the executable program stored in the nonvolatile storage element is executed by the image processing inspection apparatus main body alone.
With this, even if there is no dedicated interface board,
The user program can be developed by positively utilizing excellent software that is easy for the user to use or is familiar with, and after the development is completed, the user program can be operated by the image processing inspection apparatus main body alone.

【0017】請求項2の発明は、上記画像処理検査装置
本体のシリアルインターフェースとして、汎用に使用さ
れるシリアルインターフェースとは別にユーザプログラ
ム開発専用のインターフェースを個別に設け、画像処理
検査装置本体に対して外部機器とコンピュータとを接続
することを可能とする。これにより、画像処理検査装置
本体のシリアルインターフェースに接続されるロボット
などの外部機器が存在する場合にも、外部機器を接続し
たままで、ユーザプログラムの開発を行えるようにす
る。
According to a second aspect of the present invention, as a serial interface of the main body of the image processing inspection apparatus, an interface dedicated to user program development is separately provided in addition to a serial interface used for general purpose, and the main body of the image processing inspection apparatus is provided. It is possible to connect an external device to a computer. As a result, even when an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body exists, the user program can be developed with the external device still connected.

【0018】請求項3の発明は、上記コンピュータを接
続するシリアルインターフェースとして、画像処理検査
装置本体が備える入力デバイスを接続するためのシリア
ルインターフェースを用いることにより、画像処理検査
装置本体のシリアルインターフェースに接続されるロボ
ットなどの外部機器が存在する場合にも、外部機器を接
続したままで、ユーザプログラムの開発が行えるように
する。また、新たに画像処理検査装置本体のシリアルイ
ンターフェースを増設する必要を無くす。
According to a third aspect of the present invention, as the serial interface for connecting the computer, a serial interface for connecting an input device provided in the main body of the image processing inspection apparatus is used to connect to the serial interface of the main body of the image processing inspection apparatus. Even if an external device such as a robot is present, the user program can be developed with the external device still connected. Further, it is not necessary to add a new serial interface of the image processing inspection apparatus main body.

【0019】請求項4の発明は、コンピュータの表示装
置上にキーボードを表現した画面を表示し、その画面を
仮想キーボードとして、コンピュータのキーボードやマ
ウスなどのポインティングデバイスを用いてキーボード
の機能を代行させた入力を行い、キーボードを接続する
ためのシリアルインターフェースを通してコンピュータ
を画像処理検査装置本体に接続した場合において、キー
ボードを接続した場合と同様の入力を行うことを可能と
する。
According to a fourth aspect of the present invention, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to substitute the keyboard function by using a pointing device such as a computer keyboard or a mouse. When a computer is connected to the main body of the image processing inspection apparatus through a serial interface for connecting a keyboard, the same input as when a keyboard is connected can be performed.

【0020】請求項5の発明は、コンピュータのマウス
などのポインティングデバイスを画像処理検査装置本体
の仮想ポインティングデバイスとして用い、仮想ポイン
ティングデバイスの操作で、画像処理検査装置本体のポ
インティングデバイスの機能を代行させた入力を行うこ
とにより、マウスなどのポインティングデバイスを接続
するためのシリアルインターフェースを通してコンピュ
ータを画像処理検査装置本体に接続した場合において、
ポインティングデバイスを接続した場合と同様の入力を
行うことを可能とする。
According to a fifth aspect of the present invention, a pointing device such as a mouse of a computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the function of the pointing device of the main body of the image processing inspection apparatus is delegated by operating the virtual pointing device. By connecting the computer to the main body of the image processing inspection device through a serial interface for connecting a pointing device such as a mouse,
It enables the same input as when a pointing device is connected.

【0021】請求項6の発明は、ユーザプログラムから
実行形式プログラムをコンピュータ上で作成する際に、
実行形式プログラム内にどのユーザプログラムから作成
されたものであるかを示す管理番号を付け、その管理番
号付きの実行形式プログラムをコンピュータから画像処
理検査装置本体に転送し、デバック完了時点で不揮発性
記憶装置あるいは不揮発性記憶素子に格納し、コンピュ
ータからのコマンドによって画像処理検査装置本体から
コンピュータに管理番号を送ることにより、画像処理検
査装置本体に転送した実行形式プログラムを管理番号か
ら判別できるようにする。
According to a sixth aspect of the invention, when an execution format program is created from a user program on a computer,
A management number that indicates which user program was created in the execution format program is assigned, and the execution format program with that management number is transferred from the computer to the image processing inspection device body, and non-volatile memory is stored at the completion of debugging. The executable format program stored in the apparatus or the non-volatile storage element and sent from the image processing inspection apparatus main body to the computer by a command from the computer enables the executable format program transferred to the image processing inspection apparatus main body to be identified from the management number. ..

【0022】請求項7の発明は、ユーザプログラム開発
言語としてC言語を用いて、異機種との互換性を確保す
る。請求項8の発明は、ユーザプログラムの言語を認識
する言語認識部と、認識した言語の文法を解釈する文法
解釈部と、これにより得られた情報よりC言語を生成す
るC言語プログラム作成部よりなるプリプロセッサを備
えることにより、ユーザプログラム開発言語としてC言
語を用いた場合において、プリプロセッサで異なる言語
をC言語に変換できるようにし、ユーザの使いやすいあ
るいは使い慣れた優れたプログラム言語を積極的に利用
して、ユーザプログラムの開発が行えるようにする。
According to the invention of claim 7, the C language is used as a user program development language to ensure compatibility with different models. According to the invention of claim 8, a language recognition section for recognizing the language of the user program, a grammar interpretation section for interpreting the grammar of the recognized language, and a C language program creation section for generating C language from the information obtained thereby. When the C language is used as the user program development language by including the preprocessor, the preprocessor can convert different languages into the C language, and the excellent programming language that is easy to use or familiar to the user is actively used. So that the user program can be developed.

【0023】請求項9の発明では、上述のようにして、
コンピュータから実行させたいソースプログラムの行に
対応する数値を画像処理検査装置本体に送り、ソースプ
ログラムの行単位のデバッグを行うことを可能とする。
According to the invention of claim 9, as described above,
A numerical value corresponding to the line of the source program to be executed is sent from the computer to the main body of the image processing inspection device, and the source program can be debugged line by line.

【0024】[0024]

【実施例】 (実施例1)本実施例の画像処理検査装置は、図1に示
すように、製品の画像を取り込むカメラ2と、カメラ2
で取り込んだ画像あるいはその画像に処理を施した画
像、演算条件、判定条件などの様々な情報を表示するモ
ニタ3と、マンマシンインターフェースとしてのキーボ
ード4と、画像処理検査装置本体1とで構成されてい
る。この画像処理検査装置では、基本的な操作は、画像
処理検査装置本体1の前面パネル上にある操作キー11
を用いて行えるようにしてある。但し、キーボード4を
用いても、全く同様の操作が行えるようにしてあり、複
雑な操作(例えば、文字入力など)はキーボード4を積
極的に利用して行う。
Embodiment 1 As shown in FIG. 1, the image processing inspection apparatus of the present embodiment includes a camera 2 for capturing an image of a product, and a camera 2.
The monitor 3 that displays various information such as an image captured in step S1 or an image obtained by processing the image, calculation conditions, determination conditions, a keyboard 4 as a man-machine interface, and an image processing inspection device body 1 are configured. ing. In this image processing inspection apparatus, the basic operation is the operation key 11 on the front panel of the image processing inspection apparatus main body 1.
It can be done using. However, even if the keyboard 4 is used, exactly the same operation can be performed, and a complicated operation (for example, character input) is actively performed by using the keyboard 4.

【0025】図2は画像処理検査装置本体1を背面から
見た図を示し、カメラ2を接続するためのカメラ接続用
コネクタ12、モニタ3を接続するためのビデオ信号出
力コネクタ13、RS−232C準拠のシリアルインタ
ーフェースコネクタ14、パラレルインターフェースコ
ネクタなどの各種インターフェース15が標準で装備さ
れている。ここで、図2の場合には、カメラ接続用コネ
クタ12は1つであるが、本体1の機能に応じて複数の
カメラ2を接続することができるようにしたものもあ
る。なお、本実施例の場合には、キーボード4を接続す
るためのキーボードコネクタ16は、図1に示すよう
に、前面パネルに設けてある。但し、キーボードコネク
タ16は、例えば背面パネルなど別の箇所に設けてもな
んら問題はない。
FIG. 2 is a view of the image processing / inspection apparatus main body 1 as seen from the back side. The camera connection connector 12 for connecting the camera 2, the video signal output connector 13 for connecting the monitor 3 and the RS-232C. Various interfaces 15 such as a compliant serial interface connector 14 and a parallel interface connector are provided as standard. Here, in the case of FIG. 2, the number of the connector 12 for camera connection is one, but there is also a connector which can connect a plurality of cameras 2 according to the function of the main body 1. In this embodiment, the keyboard connector 16 for connecting the keyboard 4 is provided on the front panel as shown in FIG. However, there is no problem even if the keyboard connector 16 is provided at another location such as the back panel.

【0026】本体1に設けられたRS−232Cシリア
ルインターフェース14は、画像取込み、検査の開始、
演算結果の要求、判定結果の要求などの様々な命令を、
外部の装置から画像処理検査装置に与え、画像処理検査
装置はそれに対する応答を行うことで、外部の装置との
命令やデータのやりとりを行っている。これに対して、
パラレルインターフェース15も、画像の取込み、品種
データの切り換え、検査の開始などの様々な命令を外部
から与えることができる。しかし、その主たる用途は、
検査を実行して得られた演算結果や判定結果のデータを
出力することにある。
The RS-232C serial interface 14 provided in the main body 1 captures images, starts inspection,
Various commands such as calculation result request, judgment result request,
The image processing / inspection apparatus exchanges commands and data with the external apparatus by giving it to the image processing / inspection apparatus from the external apparatus and making a response thereto. On the contrary,
The parallel interface 15 can also externally give various commands such as image capturing, type data switching, and inspection start. However, its main use is
It is to output the data of the calculation result and the judgment result obtained by executing the inspection.

【0027】多くの場合、ユーザは画像処理検査装置が
提供してくれる様々の機能を、さらにユーザが自分自身
でカスタマイズしたいという要求を持っている。例え
ば、図1において、生産組立ラインL上を次々と流れて
くる製品Aの画像をカメラ2で取込み、ユーザが予め品
種データとして登録した様々な演算条件や判定条件に基
づいて取り込んだ画像に対して処理を行い、その結果を
モニタ3に表示する場合を考える。なお、図1では表面
実装型のフラットパッケージ(QFP)タイプのIC
(A)の取付位置の検査を行う場合を示してある。
[0027] In many cases, the user a variety of features that provide us with the image processing inspection apparatus is further user has the desire to custom Mai's on their own. For example, in FIG. 1, the images of the products A flowing one after another on the production assembly line L are captured by the camera 2, and the images captured by the user based on various calculation conditions and determination conditions registered as the product type data in advance are compared with the images. Consider a case in which the processing is performed and the result is displayed on the monitor 3. In addition, in FIG. 1, a surface mounting type flat package (QFP) type IC
The case where the mounting position of (A) is inspected is shown.

【0028】図1において、生産組立ラインLを流れる
製品Aの種類に応じて送られてくる品種データを切り換
えるための品種切換信号や、製品がカメラ2に画像とし
て取り込むことができる所定位置に達して、検査の準備
ができた時点で送られてくる検査開始信号は、画像処理
検査装置本体1に例えばパラレルインターフェース15
を通じて取り込まれる。画像処理検査装置は、この品種
切換信号に基づいて内部に保存された複数の品種データ
の中から必要な品種データを選択する。また、検査開始
信号が取り込まれると同時に、品種データに設定された
様々の演算条件、判定条件に基づいた検査シーケンスを
行う。そして、検査の結果、製品が検査条件に対して、
良品であるか、不良品であるかを、ユーザに目視で知ら
せるため、例えばモニタ3の画面に、良品である場合に
は「OK」、不良品である場合には「NG」と表示させ
るようにする。
In FIG. 1, a product type switching signal for switching the product type data sent according to the type of the product A flowing through the production assembly line L, and reaching a predetermined position where the product can be captured as an image in the camera 2. The inspection start signal sent when the inspection is ready is sent to the image processing inspection apparatus main body 1 by, for example, the parallel interface 15.
Be captured through. The image processing inspection device selects the required product type data from the plurality of product type data stored therein based on the product type switching signal. Further, at the same time when the inspection start signal is fetched, an inspection sequence based on various calculation conditions and determination conditions set in the product type data is performed. And as a result of the inspection, the product meets the inspection conditions,
In order to visually inform the user whether the product is a good product or a defective product, for example, "OK" is displayed on the screen of the monitor 3 when the product is a good product, and "NG" is displayed when the product is a defective product. To

【0029】以上のような一連の動作において、特に最
後のモニタ3の画面に製品が検査条件に対して、良品で
あるか、不良品であるかを、ユーザ自身で自由に表示さ
せる場合、画像処理検査装置本体1が標準で持つ機能で
なく、ユーザプログラムによって実現される。ところ
で、昨今ではパーソナルコンピュータの普及がめざまし
く、学術機関や企業、さらには一般家庭まで浸透してい
るといっても過言でない。従って、画像処理検査装置が
用いられるような現場、あるいはユーザプログラムを開
発するような場所にも、汎用のパーソナルコンピュータ
が1台あるいは2台は用意されていると考えて良い。さ
らに、パーソナルコンピュータのハードウエアの普及に
より、様々な機能を有しユーザの使い勝手を満足させる
ようなプログラム言語が様々メーカにより発表あるいは
販売されている。従来のユーザプログラミング型の画像
処理検査装置には、本体内部にソースプログラムを作成
編集するエディタ機能、テスト実行、デバッグの機能を
全て用意し、単体でユーザプログラムを開発できるよう
にしたものもある。しかし、これからの画像処理検査装
置のユーザプログラム開発環境は、上述のような汎用の
パーソナルコンピュータを積極的に利用して、パーソナ
ルコンピュータに加えて、ユーザの使いやすい、あるい
は使い慣れた、優れたプログラム言語で行うことが望ま
しい。但し、常時画像処理検査装置に接続しなければ、
ユーザプログラムを動作させることができないのでは不
便である。そこで、ソースプログラムを作成編集し、デ
バッグを行って正常に動作することが確認された時点で
ある開発終了後は、画像処理検査装置単体でユーザプロ
グラムが動作しなければならない。
In the above-described series of operations, when the user freely displays whether the product is a non-defective product or a defective product under the inspection conditions on the screen of the final monitor 3, the image is displayed. It is realized by a user program instead of the standard function of the processing inspection apparatus main body 1. By the way, it is no exaggeration to say that personal computers have become so popular these days that they have spread to academic institutions, companies, and even ordinary households. Therefore, it can be considered that one or two general-purpose personal computers are prepared in the field where the image processing inspection device is used or in the place where the user program is developed. Further, due to the widespread use of personal computer hardware, various manufacturers have announced or sold programming languages having various functions and satisfying user's usability. Some conventional user programming type image processing inspection apparatuses are provided with an editor function for creating and editing a source program, a test execution function, and a debug function inside the main body, so that a user program can be independently developed. However, the user program development environment of the image processing inspection apparatus from now on is not only a personal computer but also an excellent programming language that is easy to use or familiar to the user, by actively using the above-mentioned general-purpose personal computer. It is desirable to do in. However, if you do not always connect to the image processing inspection device,
It is inconvenient if the user program cannot be operated. Therefore, after the development is completed, which is the time when it is confirmed that the source program is created, edited, debugged, and operates normally, the user program must operate in the image processing inspection device alone.

【0030】以上のような開発環境において、パーソナ
ルコンピュータと画像処理検査装置を接続する必要があ
る。この場合、従来では、専用インターフェースボード
をパーソナルコンピュータに搭載し、さらに必要に応じ
て画像処理検査装置にも専用インターフェースボードを
搭載し、パラレルインターフェースとして接続すること
が主流であった。様々なデバッグ機能を実現するために
は、例えばマイコン開発装置としてよく使われているイ
ンサーキットエミュレータが持つデバッグ機能を実現す
るためには、専用インターフェースボードが必要な場合
がある。しかし、実際のユーザプログラムのデバッグに
はそのような機能は不要である。つまりは、実行形式プ
ログラムの画像処理検査装置への転送、ソースプログラ
ムの行単位の実行や停止、プログラム停止時のレジスタ
や変数のモニタができれば、十分デバッグは行える。ま
た、上述のようなデバッグには、インサーキットエミュ
レータのように大量のデータを高速に転送する必要はな
く、シルアルインターフェース14でのデータ転送で十
分足りる。
In the above development environment, it is necessary to connect the personal computer and the image processing inspection device. In this case, conventionally, it has been the mainstream to mount a dedicated interface board on a personal computer, and if necessary, also mount a dedicated interface board on an image processing inspection apparatus and connect it as a parallel interface. In order to realize various debug functions, for example, to realize the debug function of an in-circuit emulator often used as a microcomputer development device, a dedicated interface board may be required. However, such a function is not necessary for actually debugging the user program. In other words, if the execution format program can be transferred to the image processing inspection device, the source program can be executed or stopped line by line, and registers and variables can be monitored when the program is stopped, sufficient debugging can be performed. Further, for the above-described debugging, it is not necessary to transfer a large amount of data at a high speed unlike the in-circuit emulator, and the data transfer by the serial interface 14 is sufficient.

【0031】本発明はこの点に着目し、汎用のパーソナ
ルコンピュータ5が標準に持っているRS−232Cイ
ンターフェース14で画像処理検査装置を接続して、ユ
ーザプログラムの開発を行うようにしたものである。以
下に開発の手順を説明する。ユーザのソースプログラム
は、パーソナルコンピュータで開発する。上述したよう
にパーソナルコンピュータには優れたプログラム言語
多く市販されており、ユーザが日頃から慣れ親しんてい
るエディタやワープロソフトを使ってソースプログラム
を作成編集すればよい。開発言語は、次に述べるコンパ
イラが容易に手に入る言語であれば、C言語やBASI
C言語など自由に選んで良い。
Focusing on this point, the present invention connects the image processing inspection device with the RS-232C interface 14 which the general-purpose personal computer 5 has as a standard, and develops the user program. . The development procedure is described below. The user's source program is developed on a personal computer. As described above, many excellent programming languages are commercially available for personal computers, and a user may create and edit a source program using an editor or word processing software with which he or she is familiar. As for the development language, if the compiler described below can be easily obtained, C language or BASI
You can choose C language freely.

【0032】次に、ソースプログラムから画像処理検査
装置で実行できる実行形式プログラムを作成する。これ
には、市販のコンパイラを用いる。画像処理検査装置と
パーソナルコンピュータとの内部のCPU(中央処理装
置)が同じ場合は、パーソナルコンピュータ自身上のプ
ログラムを開発するためのネイティブコンパイラ(一般
に単にコンパイラと呼ばれる)が使用される。しかし、
CPUが互いに異なる場合、他のCPUオブジェクトプ
ログラムが作成できるクロスコンパイラが必要になる。
Next, an executable program that can be executed by the image processing inspection apparatus is created from the source program. A commercially available compiler is used for this. When the CPU (central processing unit) inside the image processing inspection device and the personal computer are the same, a native compiler (generally simply called a compiler) for developing a program on the personal computer itself is used. But,
When the CPUs are different from each other, a cross compiler capable of creating another CPU object program is required.

【0033】コンパイルされたソースプログラムから、
さらに必要な実行用のライブラリを加えてリンカやロケ
ータソフトで実行形式オブジェクトを作成する。出来上
がった実行形式オブジェクトはパーソナルコンピュータ
5のRS−232Cインターフェースを通じて画像処理
検査装置に転送される。デバッグは、ソースプログラム
の行単位の実行や停止、プログラム停止時のレジスタや
変数のモニタのためのコマンドが、パーソナルコンピュ
ータ5のRS−232Cインターフェースより画像処理
検査装置に送られ、必要なデータがパーソナルコンピュ
ータ5へ返される。
From the compiled source program,
Furthermore, add the necessary execution library and create an executable object with the linker or locator software. The completed executable object is transferred to the image processing inspection device through the RS-232C interface of the personal computer 5. For debugging, commands for executing or stopping the source program line by line and monitoring registers and variables when the program is stopped are sent from the RS-232C interface of the personal computer 5 to the image processing inspection apparatus, and necessary data is personalized. It is returned to the computer 5.

【0034】以上の機能は、パーソナルコンピュータ5
のメーカや機種に依存せず、ユーザ手持ちのパーソナル
コンピュータ5上でエディタ、コンパイラ、リンカなど
を揃えればよい。実行形式プログラム(オブジェクトプ
ログラム)のデバッグが終了すると、これを画像処理検
査装置本体1内部に用意された不揮発性記憶装置(代表
的なものに固定ディスクがある)ないしは不揮発性記憶
素子(代表的なものにEEPROMがある)に保存す
る。以後、パーソナルコンピュータ5と画像処理検査装
置本体1との接続を切り離しても、画像処理検査装置本
体1に保存されたユーザプログラム(実行形式プログラ
ム)を単体で動作させることができる。
The functions described above are performed by the personal computer 5
It suffices to prepare an editor, a compiler, a linker, etc. on the personal computer 5 owned by the user, regardless of the manufacturer or model of the computer. When the debugging of the execution format program (object program) is completed, this is stored in a nonvolatile storage device (typically a fixed disk) or nonvolatile storage element (typical It has an EEPROM). After that, even if the connection between the personal computer 5 and the image processing inspection apparatus main body 1 is disconnected, the user program (execution format program) stored in the image processing inspection apparatus main body 1 can be operated alone.

【0035】(実施例2)図3に本発明の他の実施例を
示す。本実施例は、画像処理検査装置にロボットなどの
外部機器6がRS−232Cインターフェース16で接
続されたものである。上記外部機器6のコマンド体系は
画像処理検査装置が標準で持っているコマンド体系とは
異なるので、ユーザは外部機器6からのコマンドを解釈
し、検査結果も外部機器6が読み取れるコマンド体系に
変換して返送する必要がある。以上の機能は、画像処理
検査装置本体1が標準機能としては持っていないので、
ユーザプログラムによって処理する必要がある。
(Embodiment 2) FIG. 3 shows another embodiment of the present invention. In this embodiment, an external device 6 such as a robot is connected to the image processing inspection device by an RS-232C interface 16. Since the command system of the external device 6 is different from the command system that the image processing inspection apparatus has as a standard, the user interprets the command from the external device 6 and converts the inspection result into a command system that the external device 6 can read. Need to be returned. Since the image processing inspection apparatus main body 1 does not have the above functions as standard functions,
It must be processed by the user program.

【0036】ところで、本実施例のように、ロボットな
どの外部機器6を接続する必要がある場合、図1でパー
ソナルコンピュータ5と接続している画像処理検査装置
のRS−232インターフェース14は、本来ユーザプ
ログラム開発専用のものでなく汎用のものであり、外部
機器6とはインターフェース14で接続する必要があ
る。この場合、ロボットなどの外部機器6とを接続した
まま、つまりは画像処置検査装置単体で動作させる実使
用状態で、ユーザプログラム開発を行うことができなく
なる。
When it is necessary to connect an external device 6 such as a robot as in this embodiment, the RS-232 interface 14 of the image processing inspection apparatus connected to the personal computer 5 in FIG. It is general purpose, not dedicated to user program development, and needs to be connected to the external device 6 through the interface 14. In this case, it becomes impossible to develop the user program while the external device 6 such as the robot is connected, that is, in the actual use state in which the image processing inspection device is operated alone.

【0037】そこで、本実施例ではユーザプログラム開
発専用のRS−232Cインターフェース17を個別に
設けてある。このようにすることで、ロボットなどの外
部機器6とを接続したままで、ユーザプログラムの開発
が行える。 (実施例3)図4に本発明のさらに他の実施例を示す。
上述した実施例2の場合、ロボットなどの外部機器6を
付属設備として備える画像処理検査装置において、ユー
ザプログラム開発専用のシリアルインターフェース17
を設けたが、本実施例ではユーザプログラム開発専用の
シリアルインターフェース17を個別に設けなくとも、
ユーザプログラム開発を行えるようにしたものである。
Therefore, in this embodiment, the RS-232C interface 17 dedicated to the user program development is individually provided. By doing so, the user program can be developed with the external device 6 such as the robot still connected. (Embodiment 3) FIG. 4 shows still another embodiment of the present invention.
In the case of the above-described second embodiment, in the image processing inspection apparatus equipped with the external device 6 such as the robot as an accessory, the serial interface 17 dedicated to the user program development.
However, in the present embodiment, even if the serial interface 17 dedicated to the user program development is not provided individually,
It is designed to allow user program development.

【0038】本実施例では、本体1にあるキーボード接
続用のインターフェース16は、一般的にシリアルイン
ターフェース(特に、RS−232Cインターフェー
ス)が用いられていることに着目し、ユーザプログラム
開発時は、このキーボード用のシリアルインターフェー
ス16と、汎用のパーソナルコンピュータ5のインター
フェースとを介して行うようにしてある。なお、ユーザ
プログラムの開発が終了すれば、画像処理検査装置本体
1だけで動作させるため、必要に応じてキーボードを接
続すればよい。
In the present embodiment, attention is paid to the fact that the serial interface (especially RS-232C interface) is generally used as the keyboard connection interface 16 in the main body 1, and this is used when the user program is developed. This is performed via the serial interface 16 for the keyboard and the interface of the general-purpose personal computer 5. When the development of the user program is completed, only the image processing inspection apparatus main body 1 is operated, so a keyboard may be connected as necessary.

【0039】ところで、本実施例の方法以外に、図14
に示すように、パーソナルコンピュータ5側に複数のシ
リアルインターフェース18を用意して、ロボットなど
の外部機器6をパーソナルコンピュータ5のシリアルイ
ンターフェース18の1つに接続し、もう1つのシリア
ルインターフェース18を画像処理検査装置に接続する
方法がある。この場合、ユーザプログラム開発中に、外
部機器6と画像処理検査装置とのコマンドやデータのや
りとりは、送信側からのコマンドやデータを一旦パーソ
ナルコンピュータ5に取り込んで、再びそのコマンドや
データを受信側にスルーで送って行う。
By the way, in addition to the method of this embodiment, FIG.
As shown in, a plurality of serial interfaces 18 are prepared on the personal computer 5 side, an external device 6 such as a robot is connected to one of the serial interfaces 18 of the personal computer 5, and the other serial interface 18 is subjected to image processing. There is a method of connecting to the inspection device. In this case, during the development of the user program, when exchanging commands and data between the external device 6 and the image processing inspection apparatus, the commands and data from the transmitting side are temporarily taken into the personal computer 5, and the commands and data are received again at the receiving side. To send it through.

【0040】しかしながら、パーソナルコンピュータ5
側で複数のシリアルインターフェース18を制御するた
めには、制御のためのソフトウエアが複雑になり、また
デバッグ後は、外部機器6は画像処置検査装置の本体1
のシリアルインターフェース14に接続するので、実際
の接続状態でのデバッグが行えないという問題がある。
そこで、本実施例の方法を採用する方が望ましい。
However, the personal computer 5
In order to control the plurality of serial interfaces 18 on the side, the control software becomes complicated, and after debugging, the external device 6 is used as the main body 1 of the image treatment inspection apparatus.
Since it is connected to the serial interface 14 of the above, there is a problem that debugging cannot be performed in the actual connection state.
Therefore, it is desirable to adopt the method of this embodiment.

【0041】(実施例4)図5に本発明の別の実施例を
示す。なお、本実施例の基本構成は実施例3と同じであ
る。上述した実施例3の場合、パーソナルコンピュータ
5と画像処理検査装置とを接続するシリアルインターフ
ェースの接続手段として、画像処理検査装置本体に用意
されたキーボード4用のシリアルインターフェース(R
S−232Cインターフェース)16を用いることによ
り、確かにRS−232Cインターフェース(シリアル
インターフェース)で接続する必要のあるロボット等の
外部機器6を、画像処理検査装置の汎用シリアルインタ
ーフェース14に接続して、実使用(画像処理検査装置
単体で動作させる状態)でユーザプログラム開発が行え
る利点がある。しかし、ユーザプログラムにキーボード
4での入力が必要な場合、この入力を行えないという問
題がある。
(Embodiment 4) FIG. 5 shows another embodiment of the present invention. The basic configuration of this embodiment is the same as that of the third embodiment. In the case of the third embodiment described above, as a serial interface connecting means for connecting the personal computer 5 and the image processing inspection apparatus, a serial interface (R) for the keyboard 4 prepared in the image processing inspection apparatus main body is used.
By using the S-232C interface) 16, an external device 6 such as a robot which is certainly required to be connected by the RS-232C interface (serial interface) is connected to the general-purpose serial interface 14 of the image processing inspection apparatus, There is an advantage that a user program can be developed while it is being used (a state in which the image processing inspection device is operated alone). However, if the user program requires input with the keyboard 4, there is a problem that this input cannot be performed.

【0042】本実施例でも、実施例3と同様に、パーソ
ナルコンピュータ5と画像処理検査装置を、画像処理装
検査装置の本体1に用意されたキーボード4用のシリア
ルインターフェース(RS−232Cインターフェー
ス)16を通じて接続する。そして、本実施例では、キ
ーボード4用のシリアルインターフェースコネクタ16
にパーソナルコンピュータ5を接続する場合、パーソナ
ルコンピュータ5のモニタ5aに仮想キーボードとして
キーボードを表す画面を表示し、この画面が表示されて
いる間、パーソナルコンピュータ5のキーボード入力
は、画像処理検査装置のキーボード4による入力として
扱う。もしくは、仮想キーボード上をマウス等のポイン
ティングデバイス7でカーソルを移動し、該当するキー
をクリックで選択しても良い。
Also in this embodiment, as in the third embodiment, the personal computer 5 and the image processing inspection device are connected to the serial interface (RS-232C interface) 16 for the keyboard 4 prepared in the main body 1 of the image processing device inspection device. Connect through. Then, in this embodiment, the serial interface connector 16 for the keyboard 4 is used.
When the personal computer 5 is connected to the personal computer 5, a screen representing a keyboard is displayed as a virtual keyboard on the monitor 5a of the personal computer 5, and while this screen is displayed, the keyboard input of the personal computer 5 is the keyboard of the image processing inspection apparatus. Treated as input by 4. Alternatively, the cursor may be moved on the virtual keyboard with the pointing device 7 such as a mouse and the corresponding key may be clicked to select.

【0043】具体的には、図5に示すように、パーソナ
ルコンピュータ5のモニタ5a上に仮想キーボード
(イ)とマウスポインタ(ロ)とを表示する。画像処理
検査装置に転送された実行形式プログラムをデバッグす
る際に、あるいはキーボード4からの入力を必要とする
コマンドや機能を実行する際に、上記画面がモニタ5a
に現れる。仮想キーボード(イ)が表示されているとき
の、パーソナルコンピュータ5のキーボードからの入力
は、パーソナルコンピュータ5に対するコマンドではな
く、画像処理検査装置のキーボード4からの入力として
扱われる。ここで、仮想キーボード(イ)の画面上の各
キーをマウス7でクリックすることで、キーボードから
の入力と同様の操作を可能にしている。
Specifically, as shown in FIG. 5, a virtual keyboard (a) and a mouse pointer (b) are displayed on the monitor 5a of the personal computer 5. The screen is displayed on the monitor 5a when the executable program transferred to the image processing inspection apparatus is debugged or when a command or function that requires input from the keyboard 4 is executed.
Appear in. The input from the keyboard of the personal computer 5 when the virtual keyboard (a) is displayed is treated as an input from the keyboard 4 of the image processing inspection apparatus, not a command to the personal computer 5. By clicking each key on the screen of the virtual keyboard (a) with the mouse 7, the same operation as the input from the keyboard is enabled.

【0044】以上の入力信号はRS−232Cインター
フェースを通して、画像処理検査装置のキーボードイン
ターフェース16に送られる。ここで、仮想キーボード
(イ)が画面に表示されている場合のみ、パーソナルコ
ンピュータ5から画像処理検査装置にキーボード入力信
号が送られるため、デバッグのためのコマンド等の他の
コマンドやデータと衝突することはない。即ち、画像処
理検査装置本体1から見ると、実際にはパーソナルコン
ピュータ5が接続されているにもかかわらず、あたかも
キーボード4が接続されているようになる。なお、デバ
ッグ中の仮想キーボード(イ)からの入力はリターンキ
ーで終了し、またエスケープ(ESC)キーで入力を中
止することができる。ここで、中止した場合は、ユーザ
の実行形式プログラムはその時点で中断する。
The above input signals are sent to the keyboard interface 16 of the image processing inspection device through the RS-232C interface. Here, since the keyboard input signal is sent from the personal computer 5 to the image processing inspection device only when the virtual keyboard (a) is displayed on the screen, it collides with other commands and data such as commands for debugging. There is no such thing. That is, when viewed from the image processing inspection apparatus main body 1, the keyboard 4 is connected as though the personal computer 5 is actually connected. It should be noted that the input from the virtual keyboard (a) during debugging can be ended by the return key, and the input can be stopped by the escape (ESC) key. Here, in the case of stopping, the execution format program of the user is stopped at that point.

【0045】(実施例5)図6に本発明のさらに別の実
施例を示す。本実施例は、画像処理検査装置が、マンマ
シンインターフェースとして、キーボード4の代わり
に、マウスあるいはこのマウスと同等の機能を有したポ
インティングデバイス7を備える場合に対応するもので
ある。この種のポインティングデバイス(以下、マウス
を用いるものとして説明を行う)7を使用する画像処理
検査装置では、モニタ3の画面に、マウスカーソルと共
に、各種の設定を行うウインドウが表示され、マウスを
使って画面に従って様々な操作を行う。
(Embodiment 5) FIG. 6 shows still another embodiment of the present invention. The present embodiment corresponds to a case where the image processing inspection apparatus includes a mouse or a pointing device 7 having a function equivalent to this mouse as the man-machine interface, instead of the keyboard 4. In an image processing inspection apparatus that uses this type of pointing device (hereinafter, described as a mouse is used) 7, a window for making various settings is displayed on the screen of the monitor 3 together with the mouse cursor, and the mouse is used. Various operations according to the screen.

【0046】このような画像処理検査装置では、本体1
にあるマウス接続用のインターフェース19は、キーボ
ード4の場合と同様に、シリアルインターフェース(特
に、RS−232Cインターフェース)が用いられてい
るので、ユーザプログラムの開発時には、このマウス用
のシリアルインターフェース19と汎用パーソナルコン
ピュータ5のシリアルインターフェースを接続する。そ
して、ユーザプログラム開発が終了すれば、画像処理検
査装置本体だけで動作させるため、マウスを接続しても
何ら問題はない。
In such an image processing inspection apparatus, the main body 1
As in the case of the keyboard 4, a serial interface (especially RS-232C interface) is used for the mouse connection interface 19 in FIG. The serial interface of the personal computer 5 is connected. After the development of the user program is completed, the image processing inspection apparatus main body is made to operate only. Therefore, there is no problem even if the mouse is connected.

【0047】マウスの場合、先の実施例と異なり、操作
は画像処理検査装置のモニタ3上のマウスカーソルを見
ながら行わなければならない。そのため、パーソナルコ
ンピュータ5のモニタ5a上には、何も表示する必要は
ない。但し、その代わりに、デバッグ中はパーソナルコ
ンピュータ5に接続されているマウス7からの位置信号
(マウスの移動に伴って発生するX、Y軸夫々に対して
のカウントパルスから現在の座標を計算し数値として表
示した信号)をRS232Cインターフェースを通し
て、画像処理検査装置のマウスインターフェース19に
常時送る必要がある。しかし、デバッグなどのコマンド
はユーザがパーソナルコンピュータ5のキーボード操作
を行ったときのみ送られるので、通常は画像処理検査装
置のモニタ3上のマウスの動きがぎこちなくならない程
度の間隔で送信しても、全体の動作には差支えない。
In the case of a mouse, unlike the previous embodiment, the operation must be performed while looking at the mouse cursor on the monitor 3 of the image processing inspection apparatus. Therefore, it is not necessary to display anything on the monitor 5a of the personal computer 5. However, instead, during debugging, the current coordinates are calculated from the position signals from the mouse 7 connected to the personal computer 5 (count pulses for the X and Y axes generated as the mouse moves. It is necessary to constantly send a signal displayed as a numerical value) to the mouse interface 19 of the image processing inspection device through the RS232C interface. However, a command for debugging or the like is sent only when the user operates the keyboard of the personal computer 5, so normally, even if the command is sent at an interval such that the movement of the mouse on the monitor 3 of the image processing inspection device does not become cluttered, There is no difference in the overall operation.

【0048】(実施例6)図7に本発明の第6の実施例
を示す。上述した各実施例で、不揮発性記憶装置あるい
は不揮発性記憶素子に格納されている実行形式プログラ
ムが、どの実行形式プログラムであるか分かるようにす
るためには、画像処理検査装置に転送した実行形式プロ
グラムが、パーソナルコンピュータ5上のどの実行形式
プログラムに対応しているかを管理する必要がある。こ
の場合には、例えば実行形式プログラムについて転送記
録を付けるなどの方法が考えられる。例えば、上述の管
理を行わないと、パーソナルコンピュータ5から画像処
理検査装置に実行形式プログラムを転送して長時間たっ
てしまうと、画像処理検査装置の不揮発性記憶装置ある
いは素子に記憶されている実行形式プログラムが、どの
素性のものか分からなくなる可能性がある。
(Embodiment 6) FIG. 7 shows a sixth embodiment of the present invention. In each of the above-described embodiments, in order to identify which execution format program the execution format program stored in the non-volatile storage device or the non-volatile storage element is, the execution format transferred to the image processing inspection apparatus is used. It is necessary to manage which executable format program on the personal computer 5 the program corresponds to. In this case, for example, a method of attaching a transfer record for the executable program can be considered. For example, if the above-mentioned management is not performed and the execution format program is transferred from the personal computer 5 to the image processing inspection apparatus for a long time, the execution format stored in the non-volatile storage device or the element of the image processing inspection apparatus. There is a possibility that you will not know what the program is.

【0049】そこで、本実施例では、不揮発性記憶装置
あるいは素子に格納されている実行形式プログラムがど
の管理番号を持った実行形式プログラムであるのかを知
ることができるようにしたものである。具体的には、実
行形式プログラムを作成する際に、パーソナルコンピュ
ータ5が持っている時計から日付、時刻情報を得て、実
行形式プログラムに組み込んでおく。画像処理検査装置
は、パーソナルコンピュータ5から管理番号の問い合わ
せがあった場合、不揮発性記憶装置に格納されている管
理番号をパーソナルコンピュータ5に送る。
Therefore, in this embodiment, it is possible to know which management number the execution format program stored in the non-volatile storage device or element is. Specifically, when the execution format program is created, date and time information is obtained from the clock of the personal computer 5 and incorporated in the execution format program. When the personal computer 5 inquires about the management number, the image processing inspection device sends the management number stored in the nonvolatile storage device to the personal computer 5.

【0050】以下、本実施例を具体的に説明する。図7
は本実施例にかかる部分の概略的な内部構成を示す図で
あり、パーソナルコンピュータ5と画像処理検査装置本
体1とはRS−232C準拠の通信ケーブル24によっ
てシリアルインターフェース54,23が接続される。
パーソナルコンピュータ5は、ソフトウエア資産とし
て、エディタ51、時計52及びコンパイラ53を内蔵
している。
The present embodiment will be specifically described below. Figure 7
FIG. 3 is a diagram showing a schematic internal configuration of a portion according to the present embodiment. The personal computer 5 and the image processing inspection apparatus main body 1 are connected to serial interfaces 54 and 23 by an RS-232C compliant communication cable 24.
The personal computer 5 has a built-in editor 51, clock 52, and compiler 53 as software assets.

【0051】エディタ51は、一般的に普及しているス
クリーンエディタを用いており、テキストファイル形式
でユーザプログラム(ソースプログラム)を作成あるい
は訂正する。ソースプログラムは、画像処理検査装置専
用の文法に基づいて記述する。時計52は、パーソナル
コンピュータ5に内蔵されているシステムクロックを使
用する。一般的には、システムクロックは水晶発振子の
信号を元にしていて非常に正確である。システムクロッ
クが示す時刻は、ソフトウエアに取り込むことができ
る。コンパイラ53は、ソースプログラムをコンパイル
して、実行形式プログラムを作成する。このコンパイラ
53は、画像処理検査装置の専用言語のコンパイラであ
り、作成される実行形式プログラムは、パーソナルコン
ピュータ5の助けを借りることなく、画像処理検査装置
を単独で動作させることができる。この実行形式プログ
ラムを画像処理検査装置の不揮発性記憶装置あるいは素
子であるEEPROM22に格納する段階では、パーソ
ナルコンピュータ5を接続することなく、画像処理検査
装置本体1が単体で実行形式プログラムを動作させて、
必要な検査工程を行う。コンパイラ53が作成する実行
形式プログラムには、実行形式プログラムを作成した時
刻を時計から読み取り、その時刻が実行形式プログラム
中に格納される。
The editor 51 uses a screen editor that is generally popular, and creates or corrects a user program (source program) in a text file format. The source program is written based on the grammar dedicated to the image processing inspection apparatus. The clock 52 uses the system clock built in the personal computer 5. Generally, the system clock is based on the crystal oscillator signal and is very accurate. The time indicated by the system clock can be captured in software. The compiler 53 compiles the source program to create an executable program. The compiler 53 is a compiler in a language dedicated to the image processing inspection device, and the created executable program can operate the image processing inspection device independently without the help of the personal computer 5. At the stage of storing the execution format program in the EEPROM 22 which is a non-volatile storage device or element of the image processing inspection apparatus, the image processing inspection apparatus main body 1 operates the execution format program by itself without connecting the personal computer 5. ,
Perform the necessary inspection process. In the execution format program created by the compiler 53, the time when the execution format program was created is read from the clock and the time is stored in the execution format program.

【0052】画像処理検査装置本体1は、内部に、CP
U20、RAM21、及び不揮発性記憶装置(素子)で
あるEEPROM22を持っている。CPU20は、画
像処理検査装置の演算動作を行い、実行形式プログラム
の実行は、このCPU20で行う。RAM21は、CP
U20のワークエリアとして使用され、パーソナルコン
ピュータ5でコンパイルして作成される実行形式プログ
ラムは、このRAM上に格納されて実行される。デバッ
グの際は、RS−232Cシリアルインターフェース2
3から送られている実行形式プログラムをRAM21上
に展開し、また画像処理検査装置単体で動作する場合に
は、不揮発性記憶装置(素子)から読み出される実行形
式プログラムをRAM21に展開して、実行形式プログ
ラムを動作させる。EEPROM22は、画像処理検査
装置が単独で動く場合の実行形式プログラムを格納す
る。実行形式プログラムは、RAM21でデバッグを終
了した後に、はじめてEEPROM22に格納される。
The image processing inspection apparatus main body 1 is internally provided with a CP.
It has U20, RAM21, and EEPROM22 which is a non-volatile storage device (element). The CPU 20 performs the arithmetic operation of the image processing inspection device, and the execution of the executable program is performed by the CPU 20. RAM21 is CP
The executable program used as a work area of U20 and compiled by the personal computer 5 is stored in this RAM and executed. RS-232C serial interface 2 for debugging
3 is loaded into the RAM 21 and the executable program read from the non-volatile storage device (element) is loaded into the RAM 21 and executed when the image processing inspection device operates alone. Run a formal program. The EEPROM 22 stores an execution format program when the image processing inspection device operates independently. The executable program is first stored in the EEPROM 22 after the debugging in the RAM 21 is completed.

【0053】図8は、実行形式プログラム中の管理番号
を示す。管理番号は、実行形式プログラムの先頭に図8
(a)のように入れられる。アスキーコードを使用する
ので、10進数で表現すれば、図8(b)の数値の羅列
となる。同図(a),(b)のデータは、この実行形式
プログラムが1993年11月22日16時45分23
秒に作成されたことを意味している。
FIG. 8 shows the management number in the executable program. The management number is shown at the beginning of the executable program in FIG.
It is inserted as shown in (a). Since the ASCII code is used, it can be expressed as a decimal number as a list of numerical values in FIG. The data shown in (a) and (b) of FIG.
It means that it was created in seconds.

【0054】図9は実行形式プログラムの作成手順を示
すフローチャートである。まず、ユーザプログラム(ソ
ースファイル)のコンパイルを行う。これは、パーソナ
ルコンピュータ5の内部に格納されているコンパイラ5
3を使用して行う。このコンパイラ53は、画像処理検
査装置の専用言語用コンパイラで画像処理検査装置のR
AMに展開して自走する実行形式プログラムを作成す
る。
FIG. 9 is a flow chart showing the procedure for creating an executable program. First, the user program (source file) is compiled. This is the compiler 5 stored inside the personal computer 5.
3 is used. The compiler 53 is a compiler for a dedicated language of the image processing inspection device, and is an R of the image processing inspection device.
Create an executable program that expands in AM and runs by itself.

【0055】次に、パーソナルコンピュータ5の内蔵時
計52から時刻を読み取る。読み取った時刻から管理番
号を作成する。図8の例では、1993年11月22日
16時45分23秒というデータを時計52から読み取
り、931122164523という管理番号を作る。
この管理番号は、実行形式プログラムが作成された時刻
であり、この実行形式プログラム固有の管理番号とな
る。この管理番号を先に作成した実行形式プログラムの
先頭にアスキーコードで格納する。
Next, the time is read from the built-in clock 52 of the personal computer 5. Create a control number from the read time. In the example of FIG. 8, the data of 16:45:23 on November 22, 1993 is read from the clock 52, and a management number of 9311221624523 is created.
This management number is the time when the executable program was created, and is a management number unique to this executable program. This management number is stored in ASCII code at the beginning of the executable program created earlier.

【0056】図10は管理番号問合せの概念図であり、
パーソナルコンピュータ5側から実行形式プログラムの
管理番号を画像処理検査装置に問い合わせる。例え
ば、”NO.?”と文字列をアスキーコードで画像処理
検査装置本体1に送ることで、実行形式プログラムの管
理番号を画像処理検査装置に問い合わせる。画像処理検
査装置本体1は、管理番号を問い合わせると、EEPR
OM22に格納されている実行形式プログラムから管理
番号を読み取り、パーソナルコンピュータ5に管理番号
を転送する。図8の例では、管理番号として、”931
122164523”と実行形式プログラムに格納され
ているので、”931122164523”が管理番号
として画像処理検査装置からパーソナルコンピュータ5
に転送される。図11に上記管理番号問合せの手順を示
すフローチャートを示す。
FIG. 10 is a conceptual diagram of inquiry of the management number.
The personal computer 5 inquires of the image processing inspection apparatus about the management number of the executable program. For example, by sending a character string such as "NO.?" In ASCII code to the image processing inspection apparatus main body 1, the image processing inspection apparatus is inquired about the management number of the executable program. When inquiring about the control number, the image processing / inspection apparatus main body 1 sends the EEPR
The management number is read from the executable program stored in the OM 22, and the management number is transferred to the personal computer 5. In the example of FIG. 8, the management number is “931.
122164523 ”and the execution format program are stored in the image processing inspecting apparatus as the management number from the image processing inspection apparatus to the personal computer 5.
Transferred to. FIG. 11 is a flow chart showing the procedure for inquiring the management number.

【0057】このようにすれば、実行形式プログラムの
管理番号からパーソナルコンピュータ5側で実行形式プ
ログラムが、どの実行形式プログラムであるかが分か
る。しかも、パーソナルコンピュータ5で、実行形式プ
ログラムを管理してファイルとして残している場合に
は、画像処理検査装置から得られた管理番号をもとに、
どの実行形式プログラムが画像処理検査装置の不揮発性
記憶装置または素子に格納されているかを知ることがで
きる。また、ユーザプログラム(ソースファイル)が残
っている場合にも、管理番号として実行形式プログラム
の作成日時が分かるので、どのソースファイルから作成
された実行形式プログラムかを知ることができる。さら
に、このため、例えばユーザプログラム開発場所と画像
処理検査装置の使用場所が遠く離れていても、トラブル
が起きたような場合に、管理番号からユーザプログラム
開発場所でトラブルを再現し、対処することが可能とな
る。
In this way, it is possible to know which execution format program the execution format program is on the personal computer 5 side from the management number of the execution format program. Moreover, when the personal computer 5 manages the executable program and leaves it as a file, based on the management number obtained from the image processing inspection apparatus,
It is possible to know which executable program is stored in the nonvolatile storage device or element of the image processing inspection device. Further, even when the user program (source file) remains, the creation date and time of the execution format program can be known as the management number, so that it is possible to know from which source file the execution format program was created. Furthermore, for this reason, even if the user program development place and the use place of the image processing inspection device are far away from each other, if a trouble occurs, it is necessary to reproduce the trouble from the management number at the user program development place and to deal with it. Is possible.

【0058】(実施例7)図12に本発明の第7の実施
例を示す。本実施例では、パーソナルコンピュータ5で
ユーザプログラムの開発をC言語で行い、異なる言語で
開発されたソフトウエア資産を利用することを可能とす
るために、パーソナルコンピュータ5に異なる言語で書
かれたユーザプログラムをC言語に変換するプリプロセ
ッサを設けてある。
(Embodiment 7) FIG. 12 shows a seventh embodiment of the present invention. In the present embodiment, the user program is developed in the C language by the personal computer 5, and the user written in the different language on the personal computer 5 in order to use the software assets developed in the different language. A preprocessor for converting a program into C language is provided.

【0059】プリプロセッサは、ユーザプログラムを読
み出す読出部30と、読みだしたユーザプログラムの言
語を認識する言語認識部31と、言語の文法を解釈する
文法解釈部32と、解釈された文法に基づいて異なる言
語で書かれたユーザプログラムをC言語に変換するC言
語プログラム生成部33とからなる。これにより、異な
る言語でかかれたユーザプログラムをC言語に変換する
ことができ、このため異なる言語で開発されたソフトウ
エア資産を有効に利用することができる。例えば、従来
の機種で開発を行っていたユーザが、容易に新しい機種
で開発を行うことが可能となる。
The preprocessor is based on the reading unit 30 for reading the user program, the language recognition unit 31 for recognizing the language of the read user program, the grammar interpretation unit 32 for interpreting the grammar of the language, and the interpreted grammar. The C language program generation unit 33 converts a user program written in a different language into C language. As a result, a user program written in a different language can be converted into the C language, and therefore software assets developed in a different language can be effectively used. For example, a user who has been developing with a conventional model can easily develop with a new model.

【0060】上述のようにC言語に変換した後は、パー
ソナルコンピュータ5上でコンパイルを行い、その結果
できた実行形式プログラムを画像処理検査装置に転送し
て検査処理などを行う。ここで、実行形式プログラムに
コンパイルすることを、C言語用の汎用コンパイラを用
いて行え、開発の効率化を図ることもできる。 (実施例8)ところで、実行形式プログラムをデバッグ
する場合、画像処理検査装置本体1に実行形式プログラ
ムの動作を制御すためのモニタプログラムを搭載するこ
とが一般的である。しかし、ユーザがソースプログラム
の単位でデバッグを行いたいと思っても、パーソナルコ
ンピュータ5から転送された実行形式プログラムと、ユ
ーザが記述したソースプログラムとの関連性は、転送さ
れた時点で失われてしまう。このため、パーソナルコン
ピュータ5側で実行形式プログラムを作成する際に得れ
たデバッグ情報に基づいて、例えばソースプログラム行
との関連に基づいて、画像処理検査装置のモニタプログ
ラムで実行アドレスを直接操作するしかないという問題
があった。
After the conversion into the C language as described above, the personal computer 5 compiles the program, and the resulting executable program is transferred to the image processing inspection device for inspection processing. Here, compilation into an executable program can be performed using a general-purpose compiler for C language, and development efficiency can be improved. (Embodiment 8) When debugging an execution format program, it is general to install a monitor program in the image processing inspection apparatus main body 1 for controlling the operation of the execution format program. However, even if the user wants to perform debugging in source program units, the relation between the executable program transferred from the personal computer 5 and the source program written by the user is lost at the time of transfer. I will end up. Therefore, the execution address is directly manipulated by the monitor program of the image processing inspection device based on the debug information obtained when the execution format program is created on the personal computer 5 side, for example, based on the relation with the source program line. There was a problem that there was nothing.

【0061】この点に着目し、ソースプログラムの行単
位のデバッグが行えるようにしたものが本実施例であ
る。本実施例では、コンパイルされたソースプログラム
から、実行用のライブラリを加えて、リンカやロケータ
ソフトで実行形式プログラムを作成するとき、同時にソ
ースプログラムの1行毎に対応した実行形式プログラム
の開始アドレステーブルをパーソナルコンピュータ5で
作成する。なお、リンカやロケータソフトのオプション
にある場合は、それを用いればよく、また専用に作成し
たユーティリティを用いてもよい。
In this embodiment, paying attention to this point, the source program can be debugged line by line. In this embodiment, when a library for execution is added from a compiled source program to create an execution format program with linker or locator software, at the same time, a start address table of the execution format program corresponding to each line of the source program. Is created by the personal computer 5. If it is an option of the linker or locator software, it may be used, or a utility created specially may be used.

【0062】そして、作成された実行形式プログラム
と、実行形式プログラムの開始アドレステーブルとの両
方を、パーソナルコンピュータ5から画像処理検査装置
に転送する。画像処理検査装置本体1内にはモニタプロ
グラムが搭載されており、実行形式プログラムの部分的
実行、停止、内部レジスタや変数、入出力ポートの状態
モニタなどが行えるようになっている。ここで、パーソ
ナルコンピュータ5から転送された実行形式プログラム
の開始アドレステーブルは、このモニタプログラムに渡
される。
Then, both the created execution format program and the start address table of the execution format program are transferred from the personal computer 5 to the image processing inspection apparatus. A monitor program is installed in the main body 1 of the image processing inspection apparatus, and it is possible to partially execute and stop the execution format program, monitor the status of internal registers and variables, and input / output ports. Here, the start address table of the executable program transferred from the personal computer 5 is passed to this monitor program.

【0063】実際のデバッグは、実行したいソースプロ
グラムの行をパーソナルコンピュータ5からコマンドと
して画像処理検査装置に送り、モニタプログラムはその
コマンドを解析し、実行形式プログラムの開始アドレス
テーブルを参照して、ソースプログラムの行単位の実行
を行う。なお、パーソナルコンピュータ5から画像処理
検査装置に送るコマンドは、1行だけでもよいし、何行
目から何行目までと複数行指定しても良い。
In actual debugging, the line of the source program to be executed is sent as a command from the personal computer 5 to the image processing inspection apparatus, and the monitor program analyzes the command and refers to the start address table of the execution format program to execute the source program. Executes the program line by line. It should be noted that the command sent from the personal computer 5 to the image processing inspection apparatus may be only one line, or a plurality of lines from what line to what line.

【0064】さらに、実際のソースプログラムを例とし
て説明を行う。ここでも、上述したように、生産組立ラ
インL上で次々と流れてくる製品Aの画像をカメラ2に
取り込み、ユーザが予め品種データとして登録した様々
な演算条件や判定条件に基づいて取り込んだ画像に対し
て処理を行い、その結果をモニタ3に表示する場合を考
える。図13にそのソースプログラムを示す。このソー
スプログラムは、上記一連の機能を実現するためにユー
ザが記述する。本実施例ではC言語を用いているが、も
ちろん他の言語で記述してもよい。
Further, an actual source program will be described as an example. Also here, as described above, the images of the products A flowing one after another on the production assembly line L are captured by the camera 2, and the images are captured by the user based on various calculation conditions and determination conditions registered in advance as product type data. Consider the case where the process is performed on the monitor and the result is displayed on the monitor 3. FIG. 13 shows the source program. This source program is written by the user to realize the above series of functions. Although the C language is used in this embodiment, it may be described in another language.

【0065】各行の一番左の数字は、ソースプログラム
の行番号を示し、コロンで区切られた右側の4桁の16
進数は、各ソースプログラム行の実行形式プログラムの
開始番地を示している。なお、図13のイが実行形式プ
ログラムの開始アドレステーブルとなる。ユーザが実際
に記述したのは1行目において、’#’から右の部分で
あり、以降の行も同様である。
The leftmost number of each line indicates the line number of the source program, which is 16 digits of 4 digits on the right side separated by a colon.
The decimal number indicates the start address of the executable program of each source program line. Note that a in FIG. 13 is the start address table of the executable program. In the first line, what the user actually wrote is the part to the right of the '#', and so on for the subsequent lines.

【0066】簡単にプログラムの説明を行うと、1から
4行目まではインクルードファイルの指定や各定数の定
義で、実際のプログラムは6行目から始まる。8行目
で、生産組立ラインLを流れる製品Aの種類に応じて送
られてくる品種データの番号を設定し、10行目で、製
品Aがカメラ2に画像として取り込める所定位置に達し
たときに、検査の準備ができた時点で送られてくる検査
開始信号を受けて、カメラ2から画像信号を取り込みを
開始させる。11行目で、品種切換信号に基づいて内部
に保存された複数の品種データの中から必要な品種デー
タに切り換え、12行目で、品種データに設定された様
々な演算条件、判定条件に基づいて検査シーケンスを実
行、13〜17行で、製品Aが検査条件に対する良否を
ユーザに目視で知らせるため、例えばモニタ3の画面に
良の場合は「OK」,否の場合には「NG」と表示さ
せ、さらに18行目で検査結果をパラレルインターフェ
ースに出力する。
Briefly explaining the program, the first to fourth lines are the specification of the include file and the definition of each constant, and the actual program starts from the sixth line. When the number of the product type data sent according to the type of the product A flowing through the production assembly line L is set in the 8th line, and when the product A reaches a predetermined position where it can be captured as an image in the camera 2 in the 10th line. In response to the inspection start signal sent when the inspection is ready, the camera 2 starts capturing the image signal. On the 11th line, based on the product type switching signal, it is switched to the required product data from a plurality of product data stored inside, and on the 12th line, it is based on various calculation conditions and judgment conditions set in the product data. In order to visually inform the user whether the product A is good or bad with respect to the inspection condition in lines 13 to 17, for example, the screen of the monitor 3 is "OK" when it is good, and "NG" when it is not. It is displayed and the inspection result is output to the parallel interface on the 18th line.

【0067】デバッグの実際例として、例えば図13の
プログラム例において、10行目から12行目までだけ
を実行する場合を考える。この場合、パーソナルコンピ
ュータ5から、実行を開始するソースプログラムの行番
号と、実行を終了する行番号とが、デバッグ用のコマン
ドとして画像処理検査装置に送られる。画像処理検査装
置内のモニタプログラムは、このコマンドを受け取る
と、次の処理を行う。
As a practical example of debugging, consider the case of executing only the 10th to 12th lines in the program example of FIG. In this case, the personal computer 5 sends the line number of the source program to start the execution and the line number to end the execution to the image processing inspection device as a command for debugging. Upon receiving this command, the monitor program in the image processing inspection device performs the following processing.

【0068】まず、実行形式プログラムの実行開始のソ
ースプログラムの行に対応した開始アドレスを、予め転
送された実行形式プログラムの開始アドレステーブルか
ら読み取り、これをデバッグ開始番地と設定する。次
に、実行形式プログラムの、実行終了のソースプログラ
ムの行の次の行に対応した開始アドレスで、実行時にモ
ニタプログラムに戻ってくるように、戻り命令を書き込
む。このとき、書き込む前の命令は破壊されないよう
に、本来の実行形式プログラムのうち、戻り命令が書き
込まれる部分を、予め別の箇所に退避させておく。そし
て、実行形式プログラムのデバッグ開始番地にプログラ
ムカウンタをセットしてユーザプログラムの実行を開始
する。そして、戻り命令でモニタプログラムに戻る。こ
こで、例えば、インテル社の8086系のCPUでは、
1バイト命令でブレイクが行えるので、ソフトウエア割
込みのINT3を用いれば、モニタプログラムに戻すこ
とができる。また、例えば分母が0になる除算を実行す
れば、INT0を自動的に実行できるので、これによっ
てモニタプログラムに戻すこともできる。戻り命令でモ
ニタプログラムに復帰した後は、退避してある元の実行
形式プログラムを復旧させる。
First, the start address corresponding to the line of the source program at the start of execution of the executable program is read from the start address table of the previously transferred executable program, and this is set as the debug start address. Next, a return instruction is written so that the execution program returns to the monitor program at the time of execution at the start address corresponding to the next line of the line of the source program that has completed execution. At this time, in order to prevent the instruction before writing from being destroyed, the portion of the original executable program in which the return instruction is written is saved in advance in another location. Then, the program counter is set at the debug start address of the executable program and the execution of the user program is started. Then, a return command returns to the monitor program. Here, for example, in the CPU of Intel 8086 series,
Since a break can be made with a 1-byte instruction, the software interrupt INT3 can be used to return to the monitor program. Further, for example, INT0 can be automatically executed by performing a division in which the denominator is 0, and thus it is possible to return to the monitor program. After returning to the monitor program by the return instruction, the saved original executable program is restored.

【0069】以上の操作を行えば、パーソナルコンピュ
ータからのデバッグの実行コマンドを、開始行と終了行
といった少ないデータ転送量で実現できる。ここで、上
記デバッグが終了したとき、実行形式プログラムと実行
形式プログラムの開始アドレスデータの両方を、画像処
理検査装置の備える不揮発性記憶装置あるいは素子に保
存しておけば、以降パーソナルコンピュータ5と画像処
理検査装置との接続を切り離しても、画像処理検査装置
にソースプログラムの各行単位の開始アドレステーブル
が保存されているので、画像処理検査装置単体でも、キ
ーボードや操作キーを用いて、ソースプログラムの任意
の行から行までの部分実行が可能になる。このため、現
場でユーザプログラムの一部分だけを実行させたい場
合、パーソナルコンピュータを特に用意しなくても実行
できる。なお、実行形式プログラムと、実行形式プログ
ラムの開始アドレステーブルとのパーソナルコンピュー
タ5側での管理は、一般のMS−DOS等のパーソナル
コンピュータのファイル管理に基づいて行われる。
By performing the above operation, the debug execution command from the personal computer can be realized with a small data transfer amount such as the start line and the end line. Here, when the above-mentioned debugging is completed, if both the execution format program and the start address data of the execution format program are stored in a non-volatile storage device or an element included in the image processing inspection apparatus, the personal computer 5 and Even if the connection with the processing inspection device is cut off, the start address table for each line of the source program is stored in the image processing inspection device, so even with the image processing inspection device alone, the source program can be Partial execution from arbitrary line to line becomes possible. Therefore, when it is desired to execute only a part of the user program on site, it can be executed without preparing a personal computer. The management of the execution format program and the start address table of the execution format program on the personal computer 5 side is performed based on the file management of a personal computer such as a general MS-DOS.

【0070】[0070]

【発明の効果】請求項1の発明は上述のように、画像処
理検査装置本体と汎用のコンピュータとを夫々付属のシ
リアルインターフェースで接続してユーザプログラムを
開発することで、ユーザが画像処理検査装置本体の機能
をユーザの仕様に基づいてカスタマイズすることができ
る画像処理検査装置において、ユーザが記述するソース
プログラムはコンピュータで作成編集し、画像処理検査
装置本体上で動作する実行形式プログラムは、コンピュ
ータでユーザプログラムから作成し、出来上がった実行
形式プログラムをシリアルインターフェースでコンピュ
ータから画像処理検査装置本体に転送し、動作の確認や
デバッグは、コンピュータからのコマンドの授受によっ
て、あるいは画像処理検査装置本体の操作キーないしは
キーボードあるいはマウスなどの入力デバイスの操作で
行い、さらにデバッグが完了した時点で、画像処理検査
装置本体の備える不揮発性記憶装置あるいは不揮発性記
憶素子に転送して実行形式プログラムを保存し、以降は
不揮発性記憶装置あるいは不揮発性記憶素子に保存され
た実行形式プログラムを画像処理検査装置本体単体で実
行させるようにしてあるので、専用インターフェースボ
ードがなくても、ユーザの使いやすいあるいは使い慣れ
た優れたプログラム言語を積極的に利用して、ユーザプ
ログラムの開発が行え、開発終了後は、画像処理検査装
置本体単体でユーザプログラムを動作させることができ
る。
According to the first aspect of the present invention, as described above, the main body of the image processing inspection apparatus and the general-purpose computer are connected by the attached serial interfaces to develop the user program, so that the user can perform the image processing inspection apparatus. in the image processing inspection apparatus capable of custom My's based functions of the body to the specifications of the user, the user-written source program is created and edited by a computer, the executable program that runs image processing inspection apparatus on the body, Created from the user program on the computer, transfer the completed executable program from the computer to the main body of the image processing inspection device via the serial interface, and confirm the operation and debug by sending and receiving commands from the computer or on the main body of the image processing inspection device. Operation key or keyboard Performed by operating an input device such as a mouse, and when debugging is completed, transfer to the non-volatile memory device or non-volatile memory element provided in the main body of the image processing inspection device to save the execution format program. The execution format program stored in the device or the non-volatile storage device is designed to be executed by the image processing inspection device itself, so it is possible to use an excellent programming language that is easy for the user or familiar with even without a dedicated interface board. The user program can be developed by utilizing it, and after the development is completed, the user program can be operated by the image processing inspection apparatus main body alone.

【0071】請求項2の発明は、上記画像処理検査装置
本体のシリアルインターフェースとして、汎用に使用さ
れるシリアルインターフェースとは別にユーザプログラ
ム開発専用のインターフェースを個別に設けてあるの
で、画像処理検査装置本体に対して外部機器とコンピュ
ータとを接続することができ、画像処理検査装置本体の
シリアルインターフェースに接続されるロボットなどの
外部機器が存在する場合にも、外部機器を接続したまま
で、ユーザプログラムの開発が行える。
According to the second aspect of the present invention, as the serial interface of the image processing inspection apparatus main body, an interface dedicated to user program development is provided separately from the serial interface used for general purpose. In contrast, even if there is an external device such as a robot that can be connected to an external device and a computer and is connected to the serial interface of the main body of the image processing inspection device, the external device remains connected and the user program Development is possible.

【0072】請求項3の発明は、画像処理検査装置本体
が、マンマシンインターフェースとしてのキーボードや
マウスなどの入力デバイスを備えている場合において、
上記コンピュータを接続するシリアルインターフェース
として、画像処理検査装置本体が備える入力デバイスを
接続するためのシリアルインターフェースを用いてある
ので、画像処理検査装置本体のシリアルインターフェー
スに接続されるロボットなどの外部機器が存在する場合
にも、外部機器を接続したままで、ユーザプログラムの
開発が行え、しかも新たに画像処理検査装置本体のシリ
アルインターフェースを増設する必要がない。
According to a third aspect of the invention, in the case where the image processing inspection apparatus main body is provided with an input device such as a keyboard and a mouse as a man-machine interface,
Since the serial interface for connecting the input device provided in the image processing inspection apparatus main body is used as the serial interface for connecting the computer, there is an external device such as a robot connected to the serial interface of the image processing inspection apparatus main body. In this case, the user program can be developed while the external device is still connected, and there is no need to add a new serial interface of the image processing inspection apparatus main body.

【0073】請求項4の発明は、コンピュータの表示装
置上にキーボードを表現した画面を表示し、その画面を
仮想キーボードとして、コンピュータのキーボードやマ
ウスなどのポインティングデバイスを用いてキーボード
の機能を代行させた入力を行うようにしてあるので、キ
ーボードを接続するためのシリアルインターフェースを
通してコンピュータを画像処理検査装置本体に接続した
場合において、キーボードを接続した場合と同様の入力
を行うことができる。
According to a fourth aspect of the present invention, a screen representing a keyboard is displayed on a display device of a computer, and the screen is used as a virtual keyboard to substitute the keyboard function by using a pointing device such as a computer keyboard or a mouse. Since the input is performed, when the computer is connected to the main body of the image processing inspection apparatus through the serial interface for connecting the keyboard, the same input as when the keyboard is connected can be performed.

【0074】請求項5の発明は、マウスなどのポインテ
ィングデバイス用のシリアルインターフェースにコンピ
ュータを接続した場合において、コンピュータのマウス
などのポインティングデバイスを画像処理検査装置本体
の仮想ポインティングデバイスとして用い、仮想ポイン
ティングデバイスの操作で、画像処理検査装置本体のポ
インティングデバイスの機能を代行させた入力を行うよ
うにしてあるので、マウスなどのポインティングデバイ
スを接続するためのシリアルインターフェースを通して
コンピュータを画像処理検査装置本体に接続した場合に
おいて、ポインティングデバイスを接続した場合と同様
の入力を行うことができる。
According to a fifth aspect of the present invention, when a computer is connected to a serial interface for a pointing device such as a mouse, the pointing device such as the mouse of the computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and the virtual pointing device is used. By doing the operation, the input of the pointing device function of the image processing inspection device body is performed instead, so the computer was connected to the image processing inspection device body through a serial interface for connecting a pointing device such as a mouse. In this case, the same input as when a pointing device is connected can be performed.

【0075】請求項6の発明は、ユーザプログラムから
実行形式プログラムをコンピュータ上で作成する際に、
実行形式プログラム内にどのユーザプログラムから作成
されたものであるかを示す管理番号を付け、その管理番
号付きの実行形式プログラムをコンピュータから画像処
理検査装置本体に転送し、デバック完了時点で不揮発性
記憶装置あるいは不揮発性記憶素子に格納し、コンピュ
ータからのコマンドによって画像処理検査装置本体から
コンピュータに管理番号を送っているので、画像処理検
査装置本体に転送した実行形式プログラムを管理番号か
ら判別できる。
According to a sixth aspect of the invention, when an execution form program is created from a user program on a computer,
A management number indicating which user program was created in the execution format program is assigned, and the execution format program with that management number is transferred from the computer to the image processing inspection device main body, and non-volatile memory is stored at the completion of debugging. Since the management number is sent from the image processing inspection apparatus main body to the computer by the command stored in the apparatus or the non-volatile storage element , the execution format program transferred to the image processing inspection apparatus main body can be identified from the management number.

【0076】請求項7の発明は、ユーザプログラム開発
言語としてC言語を用いてあるので、異機種との互換性
を確保することが可能となる。請求項8の発明は、ユー
ザプログラムの言語を認識する言語認識部と、認識した
言語の文法を解釈する文法解釈部と、これにより得られ
た情報よりC言語を生成するC言語プログラム作成部よ
りなるプリプロセッサを備えているので、ユーザプログ
ラム開発言語としてC言語を用いた場合において、プリ
プロセッサで異なる言語をC言語に変換でき、ユーザの
使いやすいあるいは使い慣れた優れたプログラム言語
積極的に利用して、ユーザプログラムの開発が行える。
According to the seventh aspect of the invention, since the C language is used as the user program development language, compatibility with different models can be ensured. According to an eighth aspect of the present invention, there is provided a language recognition unit for recognizing the language of the user program, a grammar interpretation unit for interpreting the grammar of the recognized language, and a C language program creation unit for generating C language from the information obtained thereby. Since the preprocessor is provided, when the C language is used as the user program development language, the preprocessor can convert a different language to the C language, and actively uses an excellent programming language that is easy for the user or familiar with. Can develop user programs.

【0077】請求項9の発明は、コンピュータで実行形
式プログラムの作成に際して、ソースプログラムの1行
毎に対応した上記実行形式プログラムの開始アドレステ
ーブルをコンピュータで作成し、上記実行形式プログラ
ムと実行形式プログラムの開始アドレステーブルとの両
方を、シリアルインターフェースでコンピュータから画
像処理検査装置本体に転送し、画像処理検査装置本体に
実行形式プログラムの任意のアドレス間のみ実行させる
ことができるモニタプログラムを設け、コンピュータか
らは、実行させたいソースプログラムの行に対応する数
値を画像処理検査装置本体に送り、モニタプログラム側
で、モニタへの戻り命令を上記実行形式プログラムに挿
入することによって、ユーザのソースプログラムの行単
位のデバッグを行っているので、コンピュータから実行
させたいソースプログラムの行に対応する数値を画像処
理検査装置本体に送り、ソースプログラムの行単位のデ
バッグを行うことができる。
According to a ninth aspect of the present invention, when the execution format program is created by the computer, the start address table of the execution format program corresponding to each line of the source program is created by the computer, and the execution format program and the execution format program are created. Both the start address table and the start address table are transferred from the computer to the main body of the image processing inspection apparatus via a serial interface, and the main body of the image processing inspection apparatus is provided with a monitor program that can be executed only between arbitrary addresses Sends the numerical value corresponding to the line of the source program to be executed to the main body of the image processing inspection device, and the monitor program inserts a return command to the monitor into the above execution form program to Debug the line Since it is, sending a number corresponding to the row of the source program to be executed from a computer to the image processing inspection apparatus main body, it is possible to debug the row of the source program.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】本体を背面側から見た斜視図である。FIG. 2 is a perspective view of the main body as viewed from the back side.

【図3】第2の実施例の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a second exemplary embodiment.

【図4】第3の実施例の構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a third exemplary embodiment.

【図5】第4の実施例の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a fourth exemplary embodiment.

【図6】第5の実施例の構成を示すブロック図である。FIG. 6 is a block diagram showing a configuration of a fifth exemplary embodiment.

【図7】第6の実施例のパーソナルコンピュータと画像
処理検査装置本体の概略構成を示すブロック図である。
FIG. 7 is a block diagram showing a schematic configuration of a personal computer and an image processing inspection apparatus main body according to a sixth embodiment.

【図8】(a),(b)は夫々実行形式プログラムの管
理方法を示す説明図である。
8A and 8B are explanatory diagrams showing a management method of an execution format program, respectively.

【図9】同上の管理番号の設定方法の示すフローチャー
トである。
FIG. 9 is a flowchart showing a method of setting a management number in the above.

【図10】同上において管理番号を問い合わせる方法を
示す説明図である。
FIG. 10 is an explanatory diagram showing a method for inquiring about a management number in the above.

【図11】同上の管理番号を問い合わせる手順を示すフ
ローチャートである。
FIG. 11 is a flowchart showing a procedure for inquiring a management number in the above.

【図12】同上のプリプロセッサの構成を示すブロック
図である。
FIG. 12 is a block diagram showing the configuration of the above preprocessor.

【図13】第7の実施例において例示したソースプログ
ラムを示す説明図である。
FIG. 13 is an explanatory diagram showing a source program exemplified in a seventh embodiment.

【図14】実施例3の従来例としての画像処理検査装置
の構成を示すブロック図である。
FIG. 14 is a block diagram showing a configuration of an image processing inspection device as a conventional example of the third embodiment.

【符号の説明】 1 画像処理検査装置本体 3 モニタ 4 キーボード 5 パーソナルコンピュータ 6 外部機器 7 ポインティングデバイス 14,17 シリアルインターフェース 31 言語認識部 32 文法解釈部 33 C言語プログラム作成部[Explanation of reference numerals] 1 main body of image processing inspection apparatus 3 monitor 4 keyboard 5 personal computer 6 external equipment 7 pointing device 14, 17 serial interface 31 language recognition section 32 grammar interpretation section 33 C language program creation section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 杉本 義彦 大阪府門真市大字門真1048番地松下電工株 式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yoshihiko Sugimoto 1048, Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Works Co., Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 画像処理検査装置本体と汎用のコンピュ
ータとを夫々付属のシリアルインターフェースで接続し
てユーザプログラムを開発することで、ユーザが画像処
理検査装置本体の機能をユーザの仕様に基づいてカスタ
マライズすることができる画像処理検査装置において、
ユーザが記述するソースプログラムはコンピュータで作
成編集し、画像処理検査装置本体上で動作する実行形式
プログラムは、コンピュータでユーザプログラムから作
成し、出来上がった実行形式プログラムをシリアルイン
ターフェースでコンピュータから画像処理検査装置本体
に転送し、動作の確認やデバッグは、コンピュータから
のコマンドの授受によって、あるいは画像処理検査装置
本体の操作キーないしはキーボードあるいはマウスなど
の入力デバイスの操作で行い、さらにデバッグが完了し
た時点で、画像処理検査装置本体の備える不揮発性記憶
装置あるいは不揮発性記憶素子に転送して実行形式プロ
グラムを保存し、以降は不揮発性記憶装置あるいは不揮
発性記憶素子に保存された実行形式プログラムを画像処
理検査装置本体単体で実行させて成ることを特徴とする
画像処理検査装置。
1. A user program is developed by connecting a main body of an image processing inspection apparatus and a general-purpose computer with attached serial interfaces to develop a user program. In the image processing inspection device that can be raised,
The source program written by the user is created and edited by a computer, and the execution format program that runs on the image processing inspection apparatus main body is created by the computer from the user program, and the completed execution format program is serially interfaced by the computer to the image processing inspection apparatus. Transfer to the main body, check the operation and debug by sending and receiving commands from the computer, or by operating the operation keys of the image processing inspection device main body or operating the input device such as the keyboard or mouse, and when the debugging is completed, The executable program is transferred to a non-volatile storage device or a non-volatile storage element included in the main body of the image processing inspection device to save the execution format program, and thereafter, the execution format program stored in the non-volatile storage device or the non-volatile storage element is stored in the image processing inspection device. Body only In the image processing inspection apparatus characterized by comprising by running.
【請求項2】 上記画像処理検査装置本体のシリアルイ
ンターフェースとして、汎用に使用されるシリアルイン
ターフェースとは別にユーザプログラム開発専用のイン
ターフェースを個別に設けて成ることを特徴とする請求
項1記載の画像処理検査装置。
2. The image processing according to claim 1, wherein an interface dedicated to user program development is separately provided as a serial interface of the main body of the image processing inspection apparatus, in addition to a general-purpose serial interface. Inspection device.
【請求項3】 画像処理検査装置本体が、マンマシンイ
ンターフェースとしてのキーボードやマウスなどの入力
デバイスを備えている場合において、上記コンピュータ
を接続するシリアルインターフェースとして、画像処理
検査装置本体が備える入力デバイスを接続するためのシ
リアルインターフェースを用いて成ることを特徴とする
請求項1記載の画像処理検査装置。
3. When the image processing inspection apparatus main body is provided with an input device such as a keyboard or a mouse as a man-machine interface, the input device provided in the image processing inspection apparatus main body is used as a serial interface for connecting the computer. The image processing inspection apparatus according to claim 1, wherein a serial interface for connection is used.
【請求項4】 キーボード用のシリアルインターフェー
スにコンピュータを接続した場合において、コンピュー
タの表示装置上にキーボードを表現した画面を表示し、
その画面を仮想キーボードとして、コンピュータのキー
ボードやマウスなどのポインティングデバイスを用いて
キーボードの機能を代行させた入力を行うことを特徴と
する請求項3記載の画像処理検査装置。
4. When a computer is connected to a serial interface for a keyboard, a screen representing the keyboard is displayed on a display device of the computer,
4. The image processing inspection apparatus according to claim 3, wherein the screen is used as a virtual keyboard, and a keyboard keyboard of a computer or a pointing device such as a mouse is used to perform input with the function of the keyboard acting.
【請求項5】 マウスなどのポインティングデバイス用
のシリアルインターフェースにコンピュータを接続した
場合において、コンピュータのマウスなどのポインティ
ングデバイスを画像処理検査装置本体の仮想ポインティ
ングデバイスとして用い、仮想ポインティングデバイス
の操作で、画像処理検査装置本体のポインティングデバ
イスの機能を代行させた入力を行うことを特徴とする請
求項3記載の画像処理検査装置。
5. When a computer is connected to a serial interface for a pointing device such as a mouse, the pointing device such as a mouse of the computer is used as a virtual pointing device of the main body of the image processing inspection apparatus, and an image is displayed by operating the virtual pointing device. The image processing inspection apparatus according to claim 3, wherein the image processing inspection apparatus performs the input by substituting the function of a pointing device of the processing inspection apparatus body.
【請求項6】 ユーザプログラムから実行形式プログラ
ムをコンピュータ上で作成する際に、実行形式プログラ
ム内にどのユーザプログラムから作成されたものである
かを示す管理番号を付け、その管理番号付きの実行形式
プログラムをコンピュータから画像処理検査装置本体に
転送し、デバック完了時点で不揮発性記憶装置あるいは
不揮発性記憶装置に格納し、コンピュータからのコマン
ドによって画像処理検査装置本体からコンピュータに管
理番号を送って成ることを特徴とする請求項1記載の画
像処理検査装置。
6. When creating an execution format program from a user program on a computer, a management number indicating which user program was created is added to the execution format program, and the execution format with the management number is added. Transferring the program from the computer to the main body of the image processing inspection device, storing it in a non-volatile storage device or a non-volatile storage device at the completion of debugging, and sending a management number from the main body of the image processing inspection device to the computer by a command from the computer. The image processing inspection device according to claim 1.
【請求項7】 ユーザプログラム開発言語としてC言語
を用いて成ることを特徴とする請求項1記載の画像処理
検査装置。
7. The image processing inspection apparatus according to claim 1, wherein C language is used as a user program development language.
【請求項8】 ユーザプログラムの言語を認識する言語
認識部と、認識した言語の文法を解釈する文法解釈部
と、これにより得られた情報よりC言語を生成するC言
語プログラム作成部よりなるプリプロセッサを備えて成
ることを特徴とする請求項7記載の画像処理検査装置。
8. A preprocessor comprising a language recognition section for recognizing the language of a user program, a grammar interpretation section for interpreting the grammar of the recognized language, and a C language program creation section for generating C language from the information obtained thereby. The image processing inspection apparatus according to claim 7, further comprising:
【請求項9】 コンピュータで実行形式プログラムの作
成に際して、ソースプログラムの1行毎に対応した上記
実行形式プログラムの開始アドレステーブルをコンピュ
ータで作成し、上記実行形式プログラムと実行形式プロ
グラムの開始アドレステーブルとの両方を、シリアルイ
ンターフェースでコンピュータから画像処理検査装置本
体に転送し、画像処理検査装置本体に実行形式プログラ
ムの任意のアドレス間のみ実行させることができるモニ
タプログラムを設け、コンピュータからは、実行させた
いソースプログラムの行に対応する数値を画像処理検査
装置本体に送り、モニタプログラム側で、モニタへの戻
り命令を上記実行形式プログラムに挿入することによっ
て、ユーザのソースプログラムの行単位のデバッグを行
うことを特徴とする請求項1記載の画像処理検査装置。
9. When creating an execution format program on a computer, a start address table of the execution format program corresponding to each line of the source program is created on the computer, and the execution format program and the start address table of the execution format program are created. Both of them are transferred from the computer to the main body of the image processing inspection apparatus via a serial interface, and the main body of the image processing inspection apparatus is provided with a monitor program that can be executed only between arbitrary addresses of the execution format program. By sending the numerical value corresponding to the line of the source program to the main body of the image processing inspection device, and inserting the return command to the monitor into the above executable program on the monitor program side, debugging the source program of the user line by line Characterized by The image processing inspection apparatus according to claim 1.
JP00727494A 1994-01-26 1994-01-26 Image processing inspection equipment Expired - Fee Related JP3456002B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00727494A JP3456002B2 (en) 1994-01-26 1994-01-26 Image processing inspection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00727494A JP3456002B2 (en) 1994-01-26 1994-01-26 Image processing inspection equipment

Publications (2)

Publication Number Publication Date
JPH07210657A true JPH07210657A (en) 1995-08-11
JP3456002B2 JP3456002B2 (en) 2003-10-14

Family

ID=11661453

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00727494A Expired - Fee Related JP3456002B2 (en) 1994-01-26 1994-01-26 Image processing inspection equipment

Country Status (1)

Country Link
JP (1) JP3456002B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003019162A1 (en) * 2001-08-31 2003-03-06 Matsushita Electric Works, Ltd. Image processing and inspection system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003019162A1 (en) * 2001-08-31 2003-03-06 Matsushita Electric Works, Ltd. Image processing and inspection system
US7145595B2 (en) 2001-08-31 2006-12-05 Matsushita Electric Works, Ltd. Image processing and inspection system
CN100335891C (en) * 2001-08-31 2007-09-05 松下电工株式会社 Image processing inspection system

Also Published As

Publication number Publication date
JP3456002B2 (en) 2003-10-14

Similar Documents

Publication Publication Date Title
US5978584A (en) Debugging apparatus for debugging a program by changing hardware environments without changing program operation state
US5022028A (en) Software verification apparatus
US20010014958A1 (en) Information processing apparatus, defect analysis program, defect analysis method, and application program development assistance system
JPH05505695A (en) An improved software debugging system and method specifically for debugging code within a multi-architecture environment.
JP4877068B2 (en) Software development support program, software development support method
US6279123B1 (en) System for viewing and monitoring embedded processor operation
WO2013190714A1 (en) Automatic operation system and method for automating operation
US20190286423A1 (en) Development support device, development support method, and non-transitory recording medium
CN113126983A (en) Automatic change editing system of script program for test
JP3456002B2 (en) Image processing inspection equipment
JP2002507303A (en) Programming device
JP2000112737A (en) Program generating device
JP2000112736A (en) Program generating device
JPH10326203A (en) Debugging devices capable of taking over operation from each other between hardware environments while running programs therein
JP2740482B2 (en) Automatic test procedure manual creation system
JP4562439B2 (en) Program verification system and computer program for controlling program verification system
JP7044086B2 (en) Control systems, control methods, and control programs
JP2002189617A (en) Evaluation system and evaluation method
JPH0546377A (en) Method and device for generating control program
JPH02210556A (en) Visualizing device for program execution state
JPH01273144A (en) Software development supporting device
JP2006350676A (en) Program debugging method of built-in system
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
Zulkifli et al. Generic device description for complex HART field devices
JPH08194506A (en) Controller

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030630

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070801

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees