JP3940389B2 - Inspection device and programming tool - Google Patents

Inspection device and programming tool Download PDF

Info

Publication number
JP3940389B2
JP3940389B2 JP2003304363A JP2003304363A JP3940389B2 JP 3940389 B2 JP3940389 B2 JP 3940389B2 JP 2003304363 A JP2003304363 A JP 2003304363A JP 2003304363 A JP2003304363 A JP 2003304363A JP 3940389 B2 JP3940389 B2 JP 3940389B2
Authority
JP
Japan
Prior art keywords
program
inspection
tabular
tag
flowchart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2003304363A
Other languages
Japanese (ja)
Other versions
JP2005078130A (en
Inventor
英明 南出
勘 仲井
英之 山田
康之 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2003304363A priority Critical patent/JP3940389B2/en
Priority to KR1020040063418A priority patent/KR100650840B1/en
Priority to CNB2004100769759A priority patent/CN100432876C/en
Publication of JP2005078130A publication Critical patent/JP2005078130A/en
Application granted granted Critical
Publication of JP3940389B2 publication Critical patent/JP3940389B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0224Process history based detection method, e.g. whereby history implies the availability of large amounts of data
    • G05B23/0227Qualitative history assessment, whereby the type of data acted upon, e.g. waveforms, images or patterns, is not relevant, e.g. rule based assessment; if-then decisions
    • G05B23/0235Qualitative history assessment, whereby the type of data acted upon, e.g. waveforms, images or patterns, is not relevant, e.g. rule based assessment; if-then decisions based on a comparison with predetermined threshold or range, e.g. "classical methods", carried out during normal operation; threshold adaptation or choice; when or how to compare with the threshold
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14006Safety, monitoring in general

Description

この発明は、生産ラインの検査工程におけるプログラマブルな検査装置に係り、特にそのプログラム作成及び実行方法の改良に関するものである。   The present invention relates to a programmable inspection apparatus in an inspection process of a production line, and more particularly to improvement of a program creation and execution method thereof.

検査装置で実行する検査用のプログラムは、検査における製品の合否判定基準をコンピュータの汎用プログラム言語によって記述されるか、あるいは検査の合否判定基準となる値を表の形にまとめた検査専用のプログラム言語によって記述されている。   The inspection program executed by the inspection device is a program dedicated to inspection in which the acceptance criteria for products in the inspection are described in a general-purpose program language of the computer, or the values that are the acceptance criteria for inspection are summarized in a table It is described by language.

また、処理の流れを表の形式で記述する方法として、全体の処理の流れを順序制御記述部に記述し、各状態における条件とその動作を条件制御記述部に記述するプログラム実行方式が記載されている。(例えば、特許文献1)   In addition, as a method of describing the process flow in the form of a table, a program execution method is described in which the entire process flow is described in the sequence control description part, and conditions in each state and their operations are described in the condition control description part. ing. (For example, Patent Document 1)

特公平6−79245号公報(問題を解決するための手段)Japanese Patent Publication No. 6-79245 (Means for solving the problem)

検査の合否判定基準をコンピュータの汎用プログラム言語によって記述する場合、合否判定基準となる値をプログラム言語でプログラム中に書き込んでいるため、合否判定基準を変更する際にはプログラムの流れを理解し、該当する合否判定基準の値がプログラム中のどの部分に記述されているかを調べてから変更する必要があった。   When describing the acceptance / rejection criteria of the test in the general-purpose programming language of the computer, since the values that are the acceptance / rejection criteria are written in the program in the program language, when changing the acceptance / rejection criteria, understand the flow of the program, It was necessary to change after checking the part of the program where the value of the corresponding pass / fail criterion was described.

また、合否判定基準を表形式で記述する場合、個々の製品の合否判定に用いる検査基準が表の形式で表現されているため、基準値の変更は行い易いものの、検査対象を搬送系を使って運び入れ、治具を固定して検査を開始する、といった検査工程を表現することは難しい。   In addition, when the acceptance criteria are described in a tabular format, the inspection criteria used for the pass / fail judgment of each product are expressed in a tabular format. It is difficult to express an inspection process such as carrying in and fixing the jig and starting the inspection.

一方、処理の流れを表の形式で記述するために、順序制御記述部と条件制御記述部に分けて記述するプログラム実行方式が提案されている。この方式では、全体の処理の流れを記述できるものの、処理の流れがグラフィカルに表現されていないため、処理の流れを把握するには表を順に追っていく必要がある。   On the other hand, in order to describe the flow of processing in the form of a table, a program execution method has been proposed in which the sequence control description part and the condition control description part are described separately. Although this method can describe the overall processing flow, the processing flow is not represented graphically, so it is necessary to follow a table in order to grasp the processing flow.

また、多品種の検査を行う場合、品種に応じて検査の内容が異なるため、検査処理の流れに分岐が発生する。処理の流れを表の形式で表現する方法では、分岐を含んだ処理の流れの全体像を把握しにくいという問題があった。   In addition, when a multi-product inspection is performed, the content of the inspection differs depending on the product, so that a branch occurs in the inspection process flow. In the method of expressing the processing flow in the form of a table, there is a problem that it is difficult to grasp the whole image of the processing flow including the branch.

この発明の目的は、検査装置全体の処理の流れと、個々の検査対象に対する検査の内容をわかりやすく表現し、容易に実行及び編集することが可能な検査装置のプログラム実行方式及びプログラミング環境を提供することにある。   An object of the present invention is to provide a program execution method and a programming environment for an inspection apparatus that can easily execute and edit the processing flow of the entire inspection apparatus and the contents of inspection for each inspection object in an easily understandable manner. There is to do.

上記目的を達成するために、この発明は、検査プログラムを、検査工程の処理の流れを記述するフローチャートと、検査内容を記述する表形式プログラムにより記述し、検査プログラムの実行はフローチャートに従って進め、表形式プログラムが記述されているステップに到達した時点でそのステップの内部に記述されている表形式プログラムを実行するようにする。   In order to achieve the above object, the present invention describes an inspection program by a flowchart describing the flow of processing of an inspection process and a tabular program describing the contents of inspection, and the execution of the inspection program proceeds according to the flowchart. When the step in which the format program is described is reached, the tabular program described in the step is executed.

すなわち、この発明は、生産ラインの検査工程に使用されるプログラマブルな検査装置であって、検査工程の処理の流れを記述するフローチャートと、当該フローチャートの中の検査内容を記述する表形式プログラムから構成される検査プログラムを保持するプログラム保持手段と、上記検査プログラムのうちフローチャートを読み出し、当該フローチャートを実行するフローチャート実行手段と、上記検査プログラムのうち表形式プログラムを読み出し、当該表形式プログラムを実行する表形式プログラム実行手段と、検査対象からの信号を入出力する入出力手段とを備え、フローチャート実行手段は、上記フローチャートに従って検査プログラムの実行を行うとともに、実行するステップに表形式プログラムが記述されているかを判断して、表形式プログラムが記述されている場合は、表形式プログラム実行手段を起動すると共に、
上記表形式プログラムは、少なくとも1つのステップを含み、各々のステップに対して、検査対象に設定する条件を記述する計測条件設定部と、検査対象の計測する対象及び計測値を指定する計測対象設定部と、判定基準値を設定する判定基準設定部を備え、各ステップ毎に、計測条件設定部と、計測対象設定部と、判定基準設定部とが行単位で画面表示されるように構成され、
計測対象設定部で指定した対象の計測値と判定基準設定部で設定した判定基準値を比較し、合否判定を実行することを特徴とする。
That is, the present invention is a programmable inspection device used for an inspection process of a production line, and comprises a flowchart describing the flow of processing in the inspection process and a tabular program describing the inspection contents in the flowchart. A program holding means for holding the inspection program to be executed, a flowchart executing means for reading out the flowchart among the inspection programs and executing the flowchart, and a table for reading out the tabular program out of the inspection programs and executing the tabular program A format program executing means and an input / output means for inputting / outputting a signal from the inspection target, and the flowchart executing means executes the inspection program according to the flowchart and whether a tabular program is described in the step to be executed. Judging , If the tabular program is written, the start of the tabular program execution means,
The tabular program includes at least one step, and for each step, a measurement condition setting unit that describes a condition to be set as an inspection target, and a measurement target setting that specifies a measurement target and a measurement value of the inspection target And a determination criterion setting unit for setting a determination reference value, and configured to display the measurement condition setting unit, the measurement target setting unit, and the determination criterion setting unit on a screen by line for each step. ,
The measurement value of the target specified by the measurement target setting unit is compared with the determination reference value set by the determination reference setting unit, and pass / fail determination is executed.

この発明によれば、検査工程のドキュメントとしてそのまま利用できるフローチャートと、合否判定の判定基準値を表の形にまとめ、検査の規格表のドキュメントとしてそのまま利用することができる表形式プログラムによって検査プログラムを記述するようにしたので、検査工程の流れをグラフィカルに記述することができ、可読性に優れ、検査処理の流れを理解しやすくなる。また、汎用性、拡張性に優れたプログラムとして検査工程を記述できるため、プログラムの保守性を向上できるとともに、これらのプログラムを検査工程のドキュメントとして活用できる効果がある。   According to the present invention, a flowchart that can be used as it is as a document for an inspection process, and determination criteria values for pass / fail judgments are summarized in a table form, and the inspection program is executed by a tabular program that can be used as it is as a document for an inspection standard table. Since the description is made, the flow of the inspection process can be graphically described, and the readability is excellent and the flow of the inspection process can be easily understood. In addition, since the inspection process can be described as a program having excellent versatility and expandability, the maintainability of the program can be improved, and these programs can be used as a document for the inspection process.

実施の形態1.
以下、この発明を実施するための最良の形態を図面を参照して説明する。図1はこの発明の実施の形態による検査装置のハードウェア構成を示すブロック図である。
Embodiment 1 FIG.
The best mode for carrying out the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a hardware configuration of an inspection apparatus according to an embodiment of the present invention.

本実施の形態の検査装置400は、ハードウェア資源として、中央演算処理部(CPU)100と、読出専用メモリ(ROM)101と、読出・書出可能メモリ(RAM)102と、表示装置103と、入力装置104と、入出力インターフェース(I/O)105と、デジタルアナログ変換器(D/A)106と、アナログデジタル変換器(A/D)107とを備えて構成される。更に、これらの構成要素はバス108を介して接続されている。   The inspection apparatus 400 according to the present embodiment includes a central processing unit (CPU) 100, a read-only memory (ROM) 101, a readable / writable memory (RAM) 102, and a display device 103 as hardware resources. , An input device 104, an input / output interface (I / O) 105, a digital-analog converter (D / A) 106, and an analog-digital converter (A / D) 107. Furthermore, these components are connected via a bus 108.

読出専用メモリ(ROM)101には、例えばオペレーティングシステムや検査装置400の動作を制御するプログラムが格納されている。読出・書出可能メモリ(RAM)102には、ユーザが作成する検査プログラムや、検査時に入出力するデータが格納される。   The read only memory (ROM) 101 stores a program for controlling the operation of the operating system and the inspection apparatus 400, for example. A readable / writable memory (RAM) 102 stores an inspection program created by the user and data input / output during the inspection.

表示装置103は例えばLCDから構成され、検査プログラムの進捗状況を表示することができる。また、表示装置103は、検査の合否判定の基準値や、計測した値を表示するとともに、合否判定結果を表示することができる。入力装置104は例えばキーボードや表示装置103としてのLCDに貼られたタッチパネルから構成され、検査プログラムの実行開始を指示することができる。また、入力装置104は、検査の合否判定の基準値を変更することができる。   The display device 103 is composed of an LCD, for example, and can display the progress of the inspection program. Further, the display device 103 can display a reference value for the pass / fail determination of the inspection and a measured value, and can also display a pass / fail determination result. The input device 104 is composed of, for example, a keyboard or a touch panel attached to an LCD as the display device 103, and can instruct the start of execution of the inspection program. Further, the input device 104 can change the reference value for the pass / fail judgment of the inspection.

図2はこの発明の実施の形態による検査装置の機能を説明するためのブロック図である。中央演算処理部(CPU)100は、ROM101に格納されている検査装置400の動作を制御するプログラムによって、各種機能を実行する。まず、CPU100は、表示装置103と共に表示手段210として機能する。また、CPU100は、入力装置104と共に操作手段209として機能する。更に、CPU100は、ROM101とRAM102と共にフローチャート実行手段202、表形式プログラム実行手段203、ファンクションブロック実行手段204、並びにラダー実行手段205として機能する。また、CPU100は、RAM102と共にプログラム保持手段201、データ保持手段206、並びに検査履歴保持手段として機能する。また、CPU100は、I/O105とA/D107と共に入力手段207として機能する。更に、CPU100は、I/O105とD/A106と共に出力手段208として機能する。   FIG. 2 is a block diagram for explaining the function of the inspection apparatus according to the embodiment of the present invention. The central processing unit (CPU) 100 executes various functions by a program that controls the operation of the inspection apparatus 400 stored in the ROM 101. First, the CPU 100 functions as the display unit 210 together with the display device 103. Further, the CPU 100 functions as the operation unit 209 together with the input device 104. Further, the CPU 100 functions as a flowchart execution unit 202, a tabular program execution unit 203, a function block execution unit 204, and a ladder execution unit 205 together with the ROM 101 and the RAM 102. The CPU 100 functions as a program holding unit 201, a data holding unit 206, and an inspection history holding unit together with the RAM 102. The CPU 100 functions as the input unit 207 together with the I / O 105 and the A / D 107. Further, the CPU 100 functions as an output unit 208 together with the I / O 105 and the D / A 106.

次に、CPU100が実行する各種機能について、図2を参照して詳しく説明する。なお、図2のブロックのうちフローチャート実行手段202、表形式プログラム実行手段203、ファンクションブロック実行手段204、ラダー実行手段205、表示手段210はCPU100が主体となって実行する手段である。 Next, various functions executed by the CPU 100 will be described in detail with reference to FIG. 2, the flowchart execution unit 202, the tabular program execution unit 203, the function block execution unit 204, the ladder execution unit 205, and the display unit 210 are units executed mainly by the CPU 100.

フローチャート実行手段202は、プログラム保持手段201から検査プログラムのうち、フローチャートの部分を読み出して処理を行う。フローチャート実行手段202では、プログラム保持手段201から読み出したフローチャートに基づいて、入力手段207からデータ保持手段206へ入力されたデータを処理し、データ保持手段206に書き込む。データ保持手段206に書き込まれたデータは、出力手段208によって出力される。フローチャート実行手段202は、フローチャートの中に後述する表形式プログラム300が記述されている場合は、表形式プログラム実行手段203を起動し、また、フローチャートの中にファンクションブロックが記述されている場合は、ファンクションブロック実行手段204を起動し、また、フローチャートの中にラダーが記述されている場合は、ラダー実行手段205を起動する。更に、フローチャート実行手段202において、ユーザからの指示は、操作手段209からの操作信号として受け取る。また、フローチャート実行手段202は、フローチャート実行手段202で処理を進めている状況を表示手段210に表示し、また、検査結果を検査履歴保持手段211に記録する。   The flowchart execution unit 202 reads the flowchart portion of the inspection program from the program holding unit 201 and performs processing. The flowchart execution unit 202 processes the data input from the input unit 207 to the data holding unit 206 based on the flowchart read from the program holding unit 201 and writes the data to the data holding unit 206. The data written in the data holding unit 206 is output by the output unit 208. The flowchart execution unit 202 activates the tabular program execution unit 203 when a later-described tabular program 300 is described in the flowchart, and when a function block is described in the flowchart, The function block execution unit 204 is activated. If a ladder is described in the flowchart, the ladder execution unit 205 is activated. Further, in the flowchart execution unit 202, an instruction from the user is received as an operation signal from the operation unit 209. Further, the flowchart execution unit 202 displays the status of the process being executed by the flowchart execution unit 202 on the display unit 210 and records the inspection result in the inspection history holding unit 211.

表形式プログラム実行手段203は、プログラム保持手段201から検査プログラムのうち、表形式プログラム300(後述)の部分を読み出して処理を行う。表形式プログラム実行手段203では、入力手段207によってデータ保持手段206に入力されたデータを、表形式プログラム300に記述された合否判定基準に基づいて合否判定する。また、表形式プログラム実行手段203は、表形式プログラム300に記述されている内容に応じて、データ保持手段206にデータを書き込んだり、合否判定結果に応じて、実行する処理を切り換える。また、ユーザからの指示は、操作手段209からの操作信号として受け取る。また、表形式プログラム実行手段203で処理を進めている状況を表示手段210に表示する。また、検査結果を検査履歴保持手段211に記録する。   The tabular program execution means 203 reads the part of the tabular program 300 (described later) from the program holding means 201 and performs processing. The tabular program execution unit 203 determines whether the data input to the data holding unit 206 by the input unit 207 is acceptable based on the pass / fail judgment criteria described in the tabular program 300. Further, the tabular program execution unit 203 writes data to the data holding unit 206 according to the contents described in the tabular program 300, and switches the processing to be executed according to the pass / fail judgment result. An instruction from the user is received as an operation signal from the operation unit 209. Further, the display unit 210 displays the status of the processing being executed by the tabular program execution unit 203. Further, the inspection result is recorded in the inspection history holding unit 211.

ファンクションブロック実行手段204は、プログラム保持手段201から検査プログラムのうち、ファンクションブロックの部分を読み出して処理を行う。ファンクションブロック実行手段204では、入力手段207によってデータ保持手段206に入力されたデータを、ファンクションブロックに記述された内容に応じて処理を行い、データ保持手段206に書き込む。   The function block execution means 204 reads the function block portion of the inspection program from the program holding means 201 and performs processing. In the function block execution unit 204, the data input to the data holding unit 206 by the input unit 207 is processed according to the contents described in the function block and written to the data holding unit 206.

ラダー実行手段205は、プログラム保持手段201から検査プログラムのうち、ラダーの部分を読み出して処理を行う。ラダー実行手段205では、入力手段207によってデータ保持手段206に入力されたデータを、ラダーに記述された内容に応じて処理を行い、データ保持手段206に書き込む。   Ladder execution means 205 reads the ladder portion of the inspection program from program holding means 201 and performs processing. In the ladder execution unit 205, the data input to the data holding unit 206 by the input unit 207 is processed according to the contents described in the ladder, and is written in the data holding unit 206.

入力手段207および出力手段208は、周期的に起動し、外部接続機器との間でデータ保持手段206の内容を読み書きする。   The input unit 207 and the output unit 208 are periodically activated to read / write the contents of the data holding unit 206 with respect to the external connection device.

プログラム作成手段200は、検査装置400が実行する検査プログラムを作成する。検査プログラムには、検査工程の処理の流れを記述するフローチャート、検査内容を記述する表形式プログラム300、ファンクションブロック、ラダーがあるが、これらのプログラミングをプログラム作成手段200で行う。これらのプログラム言語は、そのままでは各言語の実行手段で実行できないため、プログラム作成手段200は、これらの各言語を各々の言語の実行手段で直接実行できる形式に変換し、プログラム保持手段201に保存する。   The program creation unit 200 creates an inspection program executed by the inspection apparatus 400. The inspection program includes a flowchart describing the process flow of the inspection process, a tabular program 300 describing the inspection contents, a function block, and a ladder. The program creation means 200 performs these programming. Since these program languages cannot be executed by the execution means of each language as they are, the program creation means 200 converts these languages into a format that can be directly executed by the execution means of each language and stores them in the program holding means 201. To do.

図3はこの発明の実施の形態に使用される表形式プログラム300の例を示す図である。表形式プログラム300は、ステップ番号301、コメント302、計測条件設定部314、計測対象設定部315、判定基準設定部316、判定後処理設定部317から構成される。表形式プログラム300の実行時は、実行中のステップのステップ番号301とコメント302を、表示装置103の表示画面に表示することができる。   FIG. 3 is a diagram showing an example of a tabular program 300 used in the embodiment of the present invention. The tabular program 300 includes a step number 301, a comment 302, a measurement condition setting unit 314, a measurement target setting unit 315, a determination criterion setting unit 316, and a post-determination process setting unit 317. When the tabular program 300 is executed, the step number 301 and the comment 302 of the step being executed can be displayed on the display screen of the display device 103.

計測条件設定部314には、計測時に検査対象401に設定する条件を記述する。図3の例では、検査対象401が、スイッチとしてSW−1303とSW−2304の2つを持ち、電圧を入力するチャンネルCH−1305を持っている場合を示している。SW−1303、SW−2304、CH−1305は、すべてタグ(検査装置が有する入出力デバイスに対してユーザ等が任意に付与する名称)であり、実際にはデータ保持手段206の入出力データに対応するデバイスが存在する。図3の例では、ステップ1で、SW−1303をONに、SW−2304をOFFにし、CH−1305に0.0Vを印加している。   The measurement condition setting unit 314 describes conditions to be set for the inspection target 401 at the time of measurement. In the example of FIG. 3, the inspection target 401 has two switches, SW-1303 and SW-2304, and a channel CH-1305 for inputting a voltage. SW-1303, SW-2304, and CH-1305 are all tags (names arbitrarily given to the input / output device of the inspection apparatus by a user or the like). There is a corresponding device. In the example of FIG. 3, in Step 1, SW-1303 is turned on, SW-2304 is turned off, and 0.0 V is applied to CH-1305.

計測条件設定部314には、任意の数のデバイスを設定することができる。ウエイト欄306には、計測条件を設定してから、検査対象401の値を取得するまでの待ち時間を指定する。検査対象401によって異なる時定数の違いをウエイト欄306に待ち時間を指定して調整する。ウエイト欄306に設定する時間の単位には、秒やミリ秒などが挙げられる。ウエイト欄306で指定した時間が経過した後、計測対象設定部315で指定した検査対象401から計測を行う。   An arbitrary number of devices can be set in the measurement condition setting unit 314. In the weight column 306, a waiting time from when the measurement condition is set until the value of the inspection object 401 is acquired is designated. Differences in time constants that differ depending on the inspection object 401 are adjusted by specifying a waiting time in the weight column 306. The unit of time set in the weight column 306 includes seconds and milliseconds. After the time specified in the weight field 306 elapses, measurement is performed from the inspection target 401 specified in the measurement target setting unit 315.

計測対象設定部315の対象欄307には、検査対象401の値を計測するチャンネルの番号を指定する。図3のステップ1の例では、A/D1−CH3を対象として指定している。これは、検査対象401が接続されている検査装置400の1番目のA/Dボード上のチャンネル3の値を計測することを示している。計測したデータは、データ型欄308で指定したデータ型で保持され、後の合否判定も指定したデータ型で行われる。   In the target column 307 of the measurement target setting unit 315, a channel number for measuring the value of the inspection target 401 is designated. In the example of step 1 in FIG. 3, A / D1-CH3 is designated as a target. This indicates that the value of channel 3 on the first A / D board of the inspection apparatus 400 to which the inspection object 401 is connected is measured. The measured data is held in the data type specified in the data type column 308, and the subsequent pass / fail judgment is also performed in the specified data type.

計測対象設定部315の対象欄307で指定し、計測した対象の値は、判定基準設定部316で設定された値と比較し、合否判定基準を満たしているかを判定する。判定基準設定部316には、最小値欄309、最大値欄310、一致比較欄311がある。最小値欄309には、合否判定基準の最小値を記述し、最大値欄310には、合否判定基準の最大値を記述する。計測した値が最小値欄309の最小値と最大値欄310の最大値の範囲に入っていれば、合格(OK)の判定を行う。計測した値が上記範囲に入っていなければ、不合格(NG)の判定を行う。最小値欄309、最大値欄310に値の記述が無く、一致比較欄311にのみ数値が記述されている場合には、計測した値と、一致比較欄311に記述された数値が一致しているかを判定する。一致している場合は、合格(OK)の判定を行う。一致していなければ不合格(NG)の判定を行う。   The value of the target specified and measured in the target field 307 of the measurement target setting unit 315 is compared with the value set by the determination criterion setting unit 316 to determine whether the pass / fail criterion is satisfied. The determination criterion setting unit 316 includes a minimum value column 309, a maximum value column 310, and a match comparison column 311. The minimum value column 309 describes the minimum value of the pass / fail judgment criteria, and the maximum value column 310 describes the maximum value of the pass / fail judgment criteria. If the measured value is in the range between the minimum value in the minimum value column 309 and the maximum value in the maximum value column 310, a pass (OK) determination is performed. If the measured value is not within the above range, a failure (NG) is determined. If no value is described in the minimum value column 309 and the maximum value column 310 and a numerical value is described only in the match comparison column 311, the measured value matches the numerical value described in the match comparison column 311. It is determined whether or not. If they match, a pass (OK) determination is made. If they do not match, a failure (NG) determination is made.

計測対象設定部315で指定したデバイスから計測された値と、判定基準設定部316にて設定された値を比較し、合否判定された判定結果に基づいて、判定後処理設定部317に記述された処理を実行する。判定後処理設定部317は、OK欄312とNG欄313の2つの欄からなる。OK欄312には、判定結果が合格(OK)の場合に実行する処理を記述する。NG欄313には、判定結果が不合格(NG)の場合に実行する処理を記述する。例えば、図3のステップ4の判定後処理設定部317のOK欄312では、検査装置400上に存在する他のソフトウェアオブジェクトである「Funk1」を呼び出す処理を指定している。ステップ4の判定結果がOKとなった場合、この「Func1」が表形式プログラム実行手段203から呼び出されて実行される。   The value measured from the device specified by the measurement target setting unit 315 is compared with the value set by the determination criterion setting unit 316, and is described in the post-determination process setting unit 317 based on the determination result determined as pass / fail. Execute the process. The post-judgment processing setting unit 317 includes two fields, an OK field 312 and an NG field 313. The OK column 312 describes a process to be executed when the determination result is acceptable (OK). The NG column 313 describes a process to be executed when the determination result is rejected (NG). For example, in the OK column 312 of the post-judgment processing setting unit 317 in step 4 in FIG. 3, a process for calling “Funk1”, which is another software object existing on the inspection apparatus 400, is designated. If the determination result in step 4 is OK, this “Func1” is called from the tabular program execution means 203 and executed.

判定後処理設定部317に記述した処理を終えると、表形式プログラム実行手段203は、同じ表形式プログラム300の次のステップ(行)へ進み、ステップ番号301とコメント302を読み出す。これらを表示画面に表示した後、計測条件設定部314に記述されたデータを出力し、この行の残りの処理を進める。この様に1行のデータの処理を終えると次の行に進む。そして表プログラム全体の処理を終えると、その表形式プログラム300の終了となる。   When the process described in the post-judgment process setting unit 317 is completed, the tabular program execution unit 203 proceeds to the next step (line) of the same tabular program 300 and reads the step number 301 and the comment 302. After these are displayed on the display screen, the data described in the measurement condition setting unit 314 is output, and the remaining processing of this line proceeds. When the processing of one line of data is completed in this way, the process proceeds to the next line. When the processing of the entire table program is completed, the table format program 300 ends.

図4に対象とする搬入機402、検査ステーション403、搬出機404と、これらを制御する検査装置400を示し、検査を実施することを考える。検査装置400は、搬入機402を制御して検査対象401を検査ステーション403へ搬入する。検査ステーション403では、検査対象401に対して治具を取り付けるなど、検査対象401と検査装置400を電気的に接続し、表形式プログラム300で記述された検査項目の検査を実施する。検査を終えた検査対象401は、搬出機404によって検査ステーション403から搬出される。検査の進行状況は検査装置400の表示画面上で確認することができる。表形式プログラム300の合否判定の判定基準値は、その一覧を検査装置400の表示画面上に表示することができ、目的とする箇所にカーソルを移動し、所定の位置の判定基準値をキーボードから変更することができる。   FIG. 4 shows a target carry-in machine 402, an inspection station 403, an unloader 404, and an inspection apparatus 400 that controls them, and consider performing an inspection. The inspection apparatus 400 controls the carry-in machine 402 to carry the inspection object 401 into the inspection station 403. In the inspection station 403, the inspection object 401 and the inspection apparatus 400 are electrically connected, such as attaching a jig to the inspection object 401, and the inspection items described in the tabular program 300 are inspected. The inspection object 401 that has been inspected is unloaded from the inspection station 403 by the unloader 404. The progress of the inspection can be confirmed on the display screen of the inspection apparatus 400. A list of the determination reference values for the pass / fail determination of the tabular program 300 can be displayed on the display screen of the inspection apparatus 400, the cursor is moved to a target location, and the determination reference value at a predetermined position is entered from the keyboard. Can be changed.

ここで検査装置400で実行するプログラムの作成について説明する。まず、プログラミングツール500について図5を参照して説明する。検査装置のプログラミングツール500は、図2のプログラム作成手段200に相当し、検査装置400が実行可能な各言語を編集するエディタを持っている。検査装置のプログラミングツール500が持つエディタとして、フローチャートを編集するフローチャートエディタ501、表形式プログラム300を編集する表形式プログラムエディタ502、ラダーを編集するラダーエディタ、ファンクションブロックを編集するファンクションブロックエディタ、C言語やBASIC言語を記述する汎用プログラム言語エディタがある。   Here, creation of a program executed by the inspection apparatus 400 will be described. First, the programming tool 500 will be described with reference to FIG. The programming tool 500 of the inspection apparatus corresponds to the program creation means 200 in FIG. 2 and has an editor for editing each language that can be executed by the inspection apparatus 400. As an editor of the programming tool 500 of the inspection apparatus, a flowchart editor 501 that edits a flowchart, a tabular program editor 502 that edits a tabular program 300, a ladder editor that edits ladders, a function block editor that edits function blocks, and C language And a general-purpose programming language editor that describes BASIC languages.

検査装置400で実行するプログラムは、検査工程の全体の流れをフローチャートで記述し、個々の検査の内容を表形式プログラム300で記述する。また、機器の制御やデータ処理が必要な場合はラダーやファンクションブロックで記述する。さらにC言語やBASIC言語などの汎用プログラム言語で記述することもできる。プログラミングツール500は、これらの言語で記述されたプログラムを、各言語の実行手段が実行可能な実行形式の実行プログラム2101へ変換する。また、検査装置400の中に入っているプログラムを、各言語の実行手段が実行可能な実行形式の実行プログラム2101から、ユーザが作成したプログラムへ逆変換し、プログラミングツール500上の各エディタに表示することができる。   The program executed by the inspection apparatus 400 describes the entire flow of the inspection process as a flowchart, and describes the contents of each inspection as a tabular program 300. If device control or data processing is required, it is described in a ladder or function block. Further, it can be described in a general-purpose program language such as C language or BASIC language. The programming tool 500 converts a program written in these languages into an execution program 2101 in an executable format that can be executed by the execution means of each language. In addition, the program stored in the inspection apparatus 400 is reversely converted from an executable execution program 2101 executable by each language execution means into a program created by the user and displayed on each editor on the programming tool 500. can do.

次に、プログラムの作成の流れについて説明する。ユーザは最初に検査装置のプログラミングツール500上で、フローチャートエディタ501を用いてフローチャートによって検査工程の全体の流れを記述する。図4の例をプログラミングする場合を図7に示す。図4の例では、検査工程の流れを、検査対象401を検査ステーション403へ搬入する搬入処理、検査ステーション403に搬入された検査対象401を検査する検査処理、検査を終えた検査対象401を搬出する搬出処理の3つに分けることができる。そこで、フローチャートエディタ501上で、開始ステップに続き、検査対象401を搬入するための搬入処理を記述するステップを記述する。搬入を終えた後は検査を行うので、検査処理を記述するステップを記述する。そして、検査を終えた検査対象401を搬出するための搬出処理ステップ702を記述する。次に、各ステップの内容を記述する。各ステップは処理の内容に応じて最も適したプログラム言語を選択して記述することができる。 Next, the flow of program creation will be described. The user first describes the entire flow of the inspection process by the flowchart using the flowchart editor 501 on the programming tool 500 of the inspection apparatus. The case of programming the example of FIG. 4 is shown in FIG . In the example of FIG. 4, the flow of the inspection process is as follows: carry-in processing for bringing the inspection object 401 into the inspection station 403; inspection processing for inspecting the inspection object 401 carried into the inspection station 403; It can be divided into three types of carry-out processing. Therefore, on the flowchart editor 501, following the start step, a step for describing a carry-in process for carrying in the inspection object 401 is described. Since the inspection is performed after the carry-in is completed, a step for describing the inspection process is described. Then, an unloading process step 702 for unloading the inspection object 401 that has been inspected is described. Next, the contents of each step are described. Each step can be described by selecting the most suitable programming language according to the contents of processing.

各言語に対応したステップをプログラミングする方法としては、次の2つの方法が考えられる。最初の方法は、フローチャートの各ステップに、組み込むプログラムの種類を指定する属性を持たせ、表形式プログラムステップ505、ラダーステップ503、ファンクションブロックステップというように、個々の言語に対応したステップをメニューとして用意し、ユーザが記入する言語に応じて適切なステップを選択して、メニューからマウスのドラッグアンドドロップ操作などによりフローチャートを作成する方法である。   The following two methods are conceivable as a method for programming the steps corresponding to each language. In the first method, each step of the flowchart has an attribute for designating the type of program to be incorporated, and a step corresponding to each language such as a tabular program step 505, a ladder step 503, and a function block step is used as a menu. This is a method of preparing a flowchart by selecting an appropriate step according to the language written by the user and dragging and dropping the mouse from the menu.

また、別の方法としては、プログラムの種類の属性が設定されていないステップをマウス等で並べ、ステップの中のプログラムを記述する際に、ステップに記述するプログラムの種類を設定する方法がある。   As another method, there is a method in which steps in which no attribute of the program type is set are arranged with a mouse or the like and the program type described in the step is set when the program in the step is described.

いずれの方法であっても、フローチャートで記述したステップの中に、表形式プログラム300などのプログラムを記述する場合は、対象となるステップをマウスカーソル505等で選択し、例えばダブルクリックするなどの決定を示す操作によって、そのステップが属性として持つプログラム言語を編集するエディタが新たなウインドウとして開き、表示される。この様子を図5に示す。   In any method, when a program such as the tabular program 300 is described in the steps described in the flowchart, the target step is selected with the mouse cursor 505 or the like and, for example, a determination is made such as double-clicking. The editor for editing the programming language as an attribute of the step is opened and displayed as a new window. This is shown in FIG.

図5において、検査装置のプログラミング環境上にフローチャートのプログラミングを行うフローチャートエディタ501が起動している。フローチャートエディタ501上では、検査工程の流れをフローチャートによって記述している。ラダーステップ503では、搬送系やインタロックなど制御に関する処理を記述する。次に表ステップ504では、搬入した検査対象401に対する検査処理を記述する。ここで、フローチャートエディタ501上の表ステップ504をマウスカーソル505等で選択し、ダブルクリック等の決定を示す操作を行うと、プログラミングツール500上に表形式プログラムエディタ502が起動する。ユーザは、画面上に現れた表形式プログラムエディタ502を用いて、検査対象401に対して実施する検査の内容を表形式プログラム300として記述する。   In FIG. 5, a flowchart editor 501 for performing flowchart programming is activated on the programming environment of the inspection apparatus. On the flowchart editor 501, the flow of the inspection process is described by a flowchart. In a ladder step 503, processing related to control such as a transport system and interlock is described. Next, in table step 504, the inspection process for the inspection object 401 that has been carried in is described. Here, when the table step 504 on the flowchart editor 501 is selected with the mouse cursor 505 or the like and an operation indicating the determination such as double click is performed, the tabular program editor 502 is activated on the programming tool 500. The user uses the tabular program editor 502 that appears on the screen to describe the contents of the inspection to be performed on the inspection target 401 as the tabular program 300.

フローチャートエディタ501と表形式プログラムエディタ502は、図5に示すように検査装置のプログラミングツール500上に実現されていることもあるし、図6に示すように個々に独立したアプリケーションとして実現されており、フローチャートエディタ501上で表ステップ504をマウスカーソル505等で選択し、ダブルクリックすることで、表形式プログラムエディタ502を起動することも出来る。   The flowchart editor 501 and the tabular program editor 502 may be realized on the programming tool 500 of the inspection apparatus as shown in FIG. 5, or are realized as independent applications as shown in FIG. The tabular program editor 502 can be started by selecting the table step 504 with the mouse cursor 505 or the like on the flowchart editor 501 and double-clicking it.

また、表形式プログラム300は、フローチャートの表形式プログラムステップの内部に保持されることもあるし、表形式プログラムステップの内部には、表形式プログラム300へのリンク情報のみを格納し、対応する表形式プログラム300は、別の場所に存在することもある。   Further, the tabular program 300 may be held inside the tabular program step of the flowchart, and only the link information to the tabular program 300 is stored inside the tabular program step, and the corresponding table is stored. The format program 300 may exist elsewhere.

検査装置のプログラミングツール500は、フローチャートと、フローチャートの1つのステップの中に組み込まれる表形式プログラム300とのリンク情報を保持しているため、フローチャートの中で、内容を確認したいステップを選択すると、その内容を新たなウインドウを開いて表示する。   Since the programming tool 500 of the inspection apparatus holds link information between the flowchart and the tabular program 300 incorporated in one step of the flowchart, when a step whose contents are to be confirmed is selected in the flowchart, The contents are opened and displayed in a new window.

フローチャート上で、表形式プログラム300が組み込まれているステップを選択した場合は、表形式プログラム300の編集画面が新たなウインドウ上に表示される。検査工程を示すプログラムが階層化されているため、フローチャートでは検査工程の全体の処理の流れを確認することができる。また、各工程での検査内容及び検査後の処理の詳細については、フローチャートの一つのステップ内に記述されている表形式プログラム300によって、その内容を確認することができる。   When the step in which the tabular program 300 is incorporated is selected on the flowchart, the editing screen of the tabular program 300 is displayed on a new window. Since the program showing the inspection process is hierarchized, the flow of the entire inspection process can be confirmed in the flowchart. Further, the details of the inspection contents in each step and the processing after the inspection can be confirmed by the tabular program 300 described in one step of the flowchart.

プログラミングツール500は、フローチャートと表形式プログラム300のリンク情報だけではなく、フローチャートのステップの中に記述できるラダーやファンクションブロックもリンク情報を管理することができる。プログラミングツール500上で、ラダーやファンクションブロックが組み込まれたステップを選択した場合、ラダーであればラダーを編集するウインドウを、ファンクションブロックであればファンクションブロックを編集するウインドウを開いて表示する。   The programming tool 500 can manage not only the link information between the flowchart and the tabular program 300 but also the ladder and function blocks that can be described in the steps of the flowchart. When a step in which a ladder or a function block is incorporated is selected on the programming tool 500, a window for editing a ladder is opened for a ladder, and a window for editing a function block is opened for a function block.

このように検査対象401を検査する際の処理の流れをフローチャートによってグラフィカルに表現し、個々の検査対象401に対する合否判定基準と合否判定後の処理の内容を表形式プログラム300によって分かりやすく表現することで、検査工程の処理を、可読性が高く、メンテナンス性に優れたプログラムとして表現することができる。   In this way, the processing flow when inspecting the inspection object 401 is graphically expressed by a flowchart, and the pass / fail judgment criteria for each inspection object 401 and the contents of the processing after the pass / fail determination are expressed in an easy-to-understand manner by the tabular program 300. Thus, the processing of the inspection process can be expressed as a program having high readability and excellent maintainability.

また、検査工程の流れがフローチャートでグラフィカルに表現されているため、そのまま検査工程の流れを示すドキュメントとして利用することができる。また、合否判定の判定基準値が表形式プログラム300で表現されているため、表形式プログラム300をそのまま検査の規格表として利用することができる。また、検査装置のプログラミングツール500上では、フローチャートと表形式プログラム300のリンク情報が保持されており、フローチャート上で表形式プログラム300が記述されているステップを選択すると、該当ステップに記述されている表形式プログラム300を参照できるため、フローチャートと表形式プログラム300の組合せを、検査工程のドキュメントとしてそのまま利用することができる。   Further, since the flow of the inspection process is graphically expressed in the flowchart, it can be used as a document showing the flow of the inspection process as it is. In addition, since the determination reference value for the pass / fail determination is expressed by the tabular program 300, the tabular program 300 can be used as it is as a standard table for inspection. In addition, on the programming tool 500 of the inspection apparatus, link information between the flowchart and the tabular program 300 is held. When a step in which the tabular program 300 is described is selected on the flowchart, it is described in the corresponding step. Since the tabular program 300 can be referred to, the combination of the flowchart and the tabular program 300 can be used as it is as a document for the inspection process.

次に、この発明の実施の形態による検査プログラムの実行について説明する。プログラムの実行は、図7の搬入処理ステップ700から始まる。搬入処理ステップ700では、搬入動作を記述したラダーを実行する。検査対象401の検査ステーション403への搬入処理が終了すると、搬入処理が終了したことを示すフラグを立てて、次のステップへ移行する。   Next, execution of the inspection program according to the embodiment of the present invention will be described. The execution of the program starts from the carry-in processing step 700 in FIG. In the carry-in processing step 700, a ladder describing the carry-in operation is executed. When the carry-in process of the inspection object 401 to the inspection station 403 is completed, a flag indicating that the carry-in process is completed is set and the process proceeds to the next step.

検査処理ステップ701では、表形式プログラム300を実行する。実行する表形式プログラム300を指定して、表形式プログラム実行手段203を起動し、検査を実施する。指定した表形式プログラム300の処理をすべて終えると、検査処理ステップ701を終了したことを示すフラグを立てて、次のステップへ移行する。   In the inspection processing step 701, the tabular program 300 is executed. The tabular program 300 to be executed is designated, the tabular program execution means 203 is activated, and the inspection is performed. When all the processes of the specified tabular program 300 are completed, a flag indicating that the inspection processing step 701 has been completed is set, and the process proceeds to the next step.

搬出処理ステップ702では、搬出動作を記述したラダーを実行する。検査対象401を検査ステーション403から搬出し終えると、搬出処理が終了したことを示すフラグを立て、終了する。   In the carry-out processing step 702, a ladder describing the carry-out operation is executed. When the inspection object 401 is unloaded from the inspection station 403, a flag indicating that the unloading process has ended is set and the process ends.

これまでは、一つの検査対象401について、検査装置400の処理の流れを順に述べたが、フローチャート実行手段202と表形式プログラム実行手段203とラダー実行手段205は、それぞれオペレーティングシステム上で並列に動作するタスクとして実装することで、並列に処理を進めることができる。搬入処理をしながら、同時に検査を実施し、さらに検査を終えた検査対象401の搬出処理を同時に行うことができる。   Up to now, the processing flow of the inspection apparatus 400 has been described in order for one inspection object 401. However, the flowchart execution unit 202, the tabular program execution unit 203, and the ladder execution unit 205 each operate in parallel on the operating system. By implementing it as a task to perform, it is possible to proceed in parallel. While carrying in the carrying-in process, it is possible to carry out the inspection at the same time and to carry out the carrying-out process of the inspection object 401 that has completed the inspection.

上記動作を図8のフローチャートを用いてさらに詳しく説明する。フローチャート実行手段202は、実行を開始するとプログラム保持手段201から検査プログラムを読み出し、そのフローチャートの先頭から1ステップ読み出す(ステップ800)。そのステップが分岐を示すステップかを判断する(ステップ801)。分岐を示すステップである場合は、分岐先のステップへ移行し(ステップ802)、処理の先頭へ戻る。分岐を示すステップではない場合は、ステップの内容が表形式プログラム300かを判断する(ステップ803)。   The above operation will be described in more detail with reference to the flowchart of FIG. When the execution is started, the flowchart execution unit 202 reads the inspection program from the program holding unit 201 and reads one step from the head of the flowchart (step 800). It is determined whether the step indicates a branch (step 801). If it is a step indicating a branch, the process proceeds to a branch destination step (step 802) and returns to the top of the process. If it is not a step indicating a branch, it is determined whether the content of the step is the tabular program 300 (step 803).

ステップの内容が表形式プログラム300の場合は、実行する表形式プログラム300を指定して、表形式プログラム実行手段203を起動する(ステップ804)。表形式プログラム300の実行を終えると、処理の先頭へ戻る。表形式プログラム300ではない場合は、ステップの内容がラダーかを判断する(ステップ805)。ラダーの場合は、ラダー実行手段205を起動する(ステップ806)。ラダーではない場合は、ステップの内容がファンクションブロックかを判断する(ステップ807)。ファンクションブロックの場合は、ファンクションブロック実行手段204を起動する(ステップ808)。フローチャート終了の場合は、処理を終了する(ステップ809)。   If the content of the step is the tabular program 300, the tabular program 300 to be executed is designated and the tabular program execution means 203 is activated (step 804). When the execution of the tabular program 300 is finished, the process returns to the top. If it is not the tabular program 300, it is determined whether the content of the step is a ladder (step 805). In the case of a ladder, the ladder execution means 205 is activated (step 806). If it is not a ladder, it is determined whether the content of the step is a function block (step 807). In the case of a function block, the function block execution means 204 is activated (step 808). If the flowchart ends, the process ends (step 809).

表形式プログラム実行手段203の動作を図9を用いて説明する。表形式プログラム実行手段203は、フローチャート実行手段202が指定した表形式プログラム300をプログラム保持手段201から読み出すことから開始し、表形式プログラム300から1行読み出す(ステップ900)。表形式プログラム実行手段203は、読み出した1行をさらに1データずつに分割し、1データずつ順に処理を進める。   The operation of the tabular program execution means 203 will be described with reference to FIG. The tabular program execution unit 203 starts by reading the tabular program 300 designated by the flowchart execution unit 202 from the program holding unit 201 and reads one line from the tabular program 300 (step 900). The tabular program execution unit 203 further divides the read row into data, and advances the processing in order of data.

そして、まず、データが計測条件であるかを判定し(ステップ901)、データが計測条件である場合は、データ保持手段206にその値を出力する(ステップ902)。このとき、データがウエイト(待ち)であるかを判定し、データがウエイトである場合は、指定された待ち時間だけ、処理を停止し、CPUリソースを他のタスクに回す。指定時間が経過すると、次のデータへ進む。   First, it is determined whether the data is a measurement condition (step 901). If the data is a measurement condition, the value is output to the data holding unit 206 (step 902). At this time, it is determined whether the data is waiting (waiting). If the data is waiting, the processing is stopped for the designated waiting time, and the CPU resource is passed to another task. When the specified time elapses, it proceeds to the next data.

次に、データが計測対象であるかを判定し(ステップ903)、データが計測対象である場合は、対象となる値をデータ保持手段206から読み出す(ステップ904)。   Next, it is determined whether the data is a measurement target (step 903). If the data is a measurement target, the target value is read from the data holding means 206 (step 904).

次に、データが判定基準であるかを判定し(ステップ905)、データが判定基準の場合は、データ保持手段206から読み出した値と判定基準値を比較する(ステップ906)。比較するステップでは、データ保持手段206から読み出した値と最小値を示すデータを比較し、データ保持手段206から読み出した値が最小値を示すデータより大きい場合は、続けて最大値を示すデータと比較する。その結果、データ保持手段206から読み出した値が最小値と最大値の間に入っている場合は、合否判定結果を合格(OK)とする。一方、データ保持手段206から読み出した値が最小値を下回っていたり、最小値より大きいものの、最大値をも超えている場合は、不合格(NG)と判定する。また、最小値欄309、最大値欄310にデータの記述がなく、一致比較にのみデータが記述されている場合は、データ保持手段206から読み出した値と一致比較欄311の値と一致するかを確認し、一致する場合は、合格(OK)と判定し、一致しない場合は、不合格(NG)と判定する。   Next, it is determined whether the data is a criterion (step 905). If the data is a criterion, the value read from the data holding unit 206 is compared with the criterion value (step 906). In the comparing step, the value read from the data holding unit 206 is compared with the data indicating the minimum value. If the value read from the data holding unit 206 is larger than the data indicating the minimum value, the data indicating the maximum value is Compare. As a result, when the value read from the data holding unit 206 is between the minimum value and the maximum value, the pass / fail judgment result is set to pass (OK). On the other hand, when the value read from the data holding unit 206 is below the minimum value or larger than the minimum value but also exceeds the maximum value, it is determined as NG (NG). If there is no data description in the minimum value column 309 and the maximum value column 310 and data is described only in the match comparison, whether the value read from the data holding unit 206 matches the value in the match comparison column 311 If they match, it is determined as pass (OK), and if they do not match, it is determined as fail (NG).

次に、上記判定結果が合格(OK)であるかを判定し(ステップ907)、判定結果が合格(OK)の場合は、OK欄312に記述されている処理を行い(ステップ908)、NG欄313に記述されている処理は行わず、次の行を1行読み出す。また、判定結果が不合格(NG)であるかを判定し(ステップ909)、判定結果が不合格(NG)の場合は、OK欄312に記述されている処理は行わず、NG欄313に記述されている処理を行う(ステップ910)。NG欄313の記述内容を処理した後は、次の行を1行読み出す。表形式プログラム300の最後の行の判定後処理の実行を終えた時点で、表形式プログラム300の実行を終了し(ステップ912)、表形式ステップから抜け、フローチャートの次のステップへ移行する。   Next, it is determined whether or not the determination result is acceptable (OK) (step 907). If the determination result is acceptable (OK), the processing described in the OK column 312 is performed (step 908), and NG The process described in the column 313 is not performed, and the next line is read one line. Further, it is determined whether the determination result is rejected (NG) (step 909). If the determination result is rejected (NG), the processing described in the OK column 312 is not performed, and the NG column 313 is displayed. The described process is performed (step 910). After processing the description contents of the NG column 313, the next line is read out. When the post-judgment processing for the last line of the tabular program 300 is finished, the tabular program 300 is terminated (step 912), the tabular step is exited, and the process proceeds to the next step in the flowchart.

実施の形態2.
図10は、検査の流れを記述するフローチャートに分岐が含まれる場合の実施の形態である。検査対象401として製品Aと製品Bの2種類存在し、それぞれ、表形式プログラムAと表形式プログラムBで検査する場合を示している。検査対象401が製品Aであるかの判定を、図10に示した分岐の判定を行うステップで判定する(ステップ1000)。検査対象401が製品Aの場合は、表形式プログラムAが含まれるステップへ移行し、表形式プログラムAを起動して、検査を実施する(ステップ1001)。また、検査対象401が製品Aではない場合は、表形式プログラムBが含まれるステップへ移行し、表形式プログラムBを起動して、検査を実施する(ステップ1002)。その後、搬出処理を実施する(ステップ702)。
Embodiment 2. FIG.
FIG. 10 is an embodiment in the case where a branch is included in the flowchart describing the inspection flow. Two types of products A and B exist as the inspection target 401, and the case where the inspection is performed by the tabular program A and the tabular program B is shown. Whether or not the inspection object 401 is the product A is determined in the step of branch determination shown in FIG. 10 (step 1000). When the inspection target 401 is the product A, the process proceeds to a step including the tabular program A, and the tabular program A is activated to perform the inspection (step 1001). When the inspection target 401 is not the product A, the process proceeds to a step including the tabular program B, and the tabular program B is activated to perform the inspection (step 1002). Thereafter, carry-out processing is performed (step 702).

すなわち、検査の上位工程をフローチャートで記述し、フローチャートの中で検査を実施するステップの内部を表形式プログラム300で記述している。   In other words, the upper process of the inspection is described in a flowchart, and the inside of the step for executing the inspection is described in the flowchart in the flowchart.

表形式プログラム300だけでは、表現可能な動作に制約があるため、多品種への対応が困難である。また、検査対象401の品種に応じて表形式プログラム300内で分岐やジャンプを記述すると、検査内容がわかりやすい表形式プログラム300として記述した検査プログラムの可読性が悪くなる。そこで、実施の形態2で示すように、検査対象401の品種による検査内容の切り換えを、検査工程の流れを示すフローチャートで記述することで、可読性に優れ、検査工程のドキュメントとしてそのまま利用できる検査プログラムを記述することができる。また、検査対象401の品種毎に合否判定基準の値を並べた表形式プログラム300を記述することで、表形式プログラム300を検査対象毎の合否判定の判定基準値をまとめた規格表のドキュメントとしてそのまま利用することが出来る。   Only the tabular program 300 has restrictions on the operations that can be expressed, so it is difficult to deal with various types. If a branch or jump is described in the tabular program 300 in accordance with the type of the inspection target 401, the readability of the inspection program described as the tabular program 300 with easy-to-understand inspection contents deteriorates. Therefore, as described in the second embodiment, an inspection program that is excellent in readability and can be used as it is as a document of the inspection process by describing the switching of inspection contents depending on the type of inspection object 401 in a flowchart showing the flow of the inspection process. Can be described. In addition, by describing a table format program 300 in which pass / fail judgment standard values are arranged for each type of inspection object 401, the table format program 300 is used as a standard table document that summarizes the pass / fail judgment standard values for each inspection target. It can be used as it is.

また、検査装置のプログラミングツール500上では、フローチャートと表形式プログラム300のリンク情報が保持されており、フローチャート上で表形式プログラム300が記述されているステップを選択すると、該当ステップに記述されている表形式プログラム300を参照できるため、フローチャートと表形式プログラム300の組合せを、検査工程のドキュメントとしてそのまま利用することができる。   In addition, on the programming tool 500 of the inspection apparatus, link information between the flowchart and the tabular program 300 is held. When a step in which the tabular program 300 is described is selected on the flowchart, it is described in the corresponding step. Since the tabular program 300 can be referred to, the combination of the flowchart and the tabular program 300 can be used as it is as a document for the inspection process.

実施の形態3.
図11は、検査対象401として製品Aと製品Bの2種類存在し、それぞれ、表形式プログラムAと表形式プログラムBで検査するが、その後、共通する処理を表形式プログラムCで実施する例である。検査対象401が製品Aであるかの判定を、図11に示した分岐の判定を行うステップで判定する(ステップ1000)。検査対象401が製品Aの場合は、表形式プログラムAが含まれるステップへ移行し、表形式プログラムAを起動して、検査を実施する(ステップ1001)。また、検査対象401が製品Aではない場合は、表形式プログラムBが含まれるステップへ移行し、表形式プログラムBを起動して、検査を実施する(ステップ1002)。その後、共通の検査項目である表形式プログラムCを起動して検査を実施する(ステップ1100)。そして、搬出処理を実施する(ステップ702)。
Embodiment 3 FIG.
FIG. 11 shows an example in which two types of products A and B exist as the inspection target 401, and inspection is performed by the tabular program A and the tabular program B, respectively. is there. Whether or not the inspection object 401 is the product A is determined in the step of performing branch determination shown in FIG. 11 (step 1000). When the inspection target 401 is the product A, the process proceeds to a step including the tabular program A, and the tabular program A is activated to perform the inspection (step 1001). When the inspection target 401 is not the product A, the process proceeds to a step including the tabular program B, and the tabular program B is activated to perform the inspection (step 1002). Thereafter, the tabular program C, which is a common inspection item, is activated to perform inspection (step 1100). Then, carry-out processing is performed (step 702).

すなわち、検査の上位工程をフローチャートで記述し、検査の上位工程では、検査対象401の品種を特定し、対象に応じた検査プログラムを実行すると共に、品種に関わらず実施する共通の検査に関しては、実行するプログラムを検査の上位工程で1つに集約して記述している。   That is, the upper process of the inspection is described in a flowchart, and in the upper process of the inspection, the type of the inspection target 401 is specified, the inspection program corresponding to the target is executed, and the common inspection to be performed regardless of the type is The programs to be executed are collectively described in the upper process of the inspection.

実施の形態3に示したように、検査の品種による検査内容の切り換えと、複数の品種で共通する処理をまとめて1つの工程として扱う検査工程の流れをフローチャートで記述することで、可読性に優れ、検査工程のドキュメントとしてそのまま利用できる検査プログラムを記述することができる。また、検査対象401の品種毎に合否判定基準の値を並べた表形式プログラム300を記述し、また、共通する項目の合否判定基準を並べた表形式プログラム300を記述することで、表形式プログラム300を検査対象毎の合否判定の判定基準値をまとめた規格表のドキュメントとしてそのまま利用することが出来る。   As shown in the third embodiment, it is excellent in readability by describing the flow of the inspection process by switching the inspection contents depending on the inspection type and handling the processes common to the plurality of types as one process. An inspection program that can be used as it is as a document of the inspection process can be written. Further, a table format program 300 in which values of pass / fail judgment criteria are arranged for each type of inspection object 401 is described, and a table format program 300 in which pass / fail judgment criteria of common items are arranged is described. 300 can be used as it is as a document of a standard table that summarizes the determination reference values for pass / fail determination for each inspection object.

また、検査装置のプログラミングツール500上では、フローチャートと表形式プログラム300のリンク情報が保持されており、フローチャート上で表形式プログラム300が記述されているステップを選択すると、該当ステップに記述されている表形式プログラム300を参照できるため、フローチャートと表形式プログラム300の組合せを、検査工程のドキュメントとしてそのまま利用することができる。   In addition, on the programming tool 500 of the inspection apparatus, link information between the flowchart and the tabular program 300 is held. When a step in which the tabular program 300 is described is selected on the flowchart, it is described in the corresponding step. Since the tabular program 300 can be referred to, the combination of the flowchart and the tabular program 300 can be used as it is as a document for the inspection process.

実施の形態4.
図12は、表形式プログラム300の記述例である。表形式プログラム300にはOK欄312、NG欄313があり、表形式プログラム300の該当ステップの合否判定結果に応じて、OK欄312、NG欄313に記述された処理を実行する。OK欄312、NG欄313には、指定ステップへのジャンプ命令1200や、ソフトウェアオブジェクトを呼び出す命令1201を記述して、表形式プログラム300をはじめとした他のプログラム言語で作成したソフトウェアオブジェクトを呼び出すことができる。
Embodiment 4 FIG.
FIG. 12 is a description example of the tabular program 300. The tabular program 300 has an OK column 312 and an NG column 313, and the processes described in the OK column 312 and the NG column 313 are executed according to the pass / fail judgment result of the corresponding step of the tabular program 300. In the OK column 312 and the NG column 313, a jump instruction 1200 to a specified step and an instruction 1201 for calling a software object are described, and a software object created in another program language such as the tabular program 300 is called. Can do.

計測するための条件を設定するだけで、基準値との比較をしないので合否判定結果が無いステップでは、OK欄312に記述されている処理を実行する。またOK欄312、NG欄313の他に未判定欄を設け、合否判定結果が無い場合は、この未判定欄に記述されている処理を実行することもできる。   The processing described in the OK column 312 is executed in a step in which there is no pass / fail judgment result because only the conditions for measurement are set and no comparison is made with the reference value. In addition to the OK column 312 and the NG column 313, an undetermined column is provided, and when there is no pass / fail determination result, the processing described in the undetermined column can be executed.

実施の形態5.
図13は、表形式プログラム300の判定基準設定部316に関数やスクリプトを記述し、また、判定後処理設定部317にスクリプトを記述した例である。最小値欄309や最大値欄310や一致比較欄311からなる判定基準設定部316では、関数を使用することができる。使用できる関数には、AとBの2つの変数の中で小さい方の値をとるMIN(A、B)1300や、条件Cが有効な場合に変数Aを判定基準値とし、無効な場合に変数Bを判定基準値とする関数1301などがあり、スクリプトによる記述1302では、四則演算などを用いて、定数に変数Aをオフセットとして加えることができる。温度、湿度、圧力などのセンサ入力に対して、オフセットを加えて補正した値を判定基準値とする場合に使用することができる。
Embodiment 5 FIG.
FIG. 13 shows an example in which a function or script is described in the determination criterion setting unit 316 of the tabular program 300 and a script is described in the post-determination process setting unit 317. A function can be used in the criterion setting unit 316 including the minimum value column 309, the maximum value column 310, and the match comparison column 311. Functions that can be used include MIN (A, B) 1300, which takes the smaller value of the two variables A and B, and variable A as a criterion value when condition C is valid, and when it is invalid There is a function 1301 that uses the variable B as a criterion value, and the script description 1302 can add the variable A to the constant as an offset using four arithmetic operations. It can be used when a value obtained by adding an offset to sensor inputs such as temperature, humidity, and pressure is used as a determination reference value.

判定後処理設定部317では、スクリプトを記述するこができる。例えば、判定結果がNGの場合に、特定の変数の値を操作するスクリプト1303など、判定結果に応じて変数の値を調整する場合に使用することができる。   The post-judgment processing setting unit 317 can describe a script. For example, when the determination result is NG, it can be used when adjusting the value of a variable according to the determination result, such as a script 1303 for manipulating the value of a specific variable.

実施の形態6.
図14は、ファンクションブロックの中に表形式プログラム300を記述する例である。表形式ファンクションブロック1400は、表形式プログラム300の処理結果に応じて、出力先を変更することができる。
Embodiment 6 FIG.
FIG. 14 shows an example in which a tabular program 300 is described in a function block. The tabular function block 1400 can change the output destination according to the processing result of the tabular program 300.

表形式プログラム300で記述された検査プログラムを実行した結果に応じて表形式プログラム300を実行する表形式ファンクションブロック1400の出力を設定できる。つまりファンクションブロックの内部処理をストラクチャード・テキストやインストラクション・リストのみならず、検査プログラムの記述に最適な表形式でプログラミングすることが可能となる。   The output of the tabular function block 1400 for executing the tabular program 300 can be set according to the result of executing the inspection program described in the tabular program 300. In other words, the internal processing of the function block can be programmed not only in the structured text and instruction list but also in a table format that is optimal for the description of the inspection program.

図15は、表形式プログラム300の判定後処理欄に、表形式ファンクションブロック1400から出力するピンを指定する例を示している。ステップ1において、判定結果が1であれば、ピン番号P11500の出力先に1を出力する。   FIG. 15 shows an example in which pins output from the tabular function block 1400 are specified in the post-determination processing column of the tabular program 300. In Step 1, if the determination result is 1, 1 is output to the output destination of the pin number P11500.

実施の形態7.
図16は、検査した結果1602を、ロット番号1601とともに一覧にした履歴表示画面1600の例である。
Embodiment 7 FIG.
FIG. 16 shows an example of a history display screen 1600 that lists the inspection results 1602 together with the lot number 1601.

検査装置400は、操作手段209からの操作で、この表を表示手段210によって表示することができる。検査の結果、NGと判定された部分1602は、太字や赤色で表示することで、他の部分に比べ目立つように表示することもできる。   The inspection apparatus 400 can display this table on the display unit 210 by an operation from the operation unit 209. The portion 1602 determined to be NG as a result of the inspection can be displayed more prominently than other portions by displaying it in bold or red.

また、この画面上でカーソルを移動してロット番号1601を選択することで、図17に示すように、その検査を行った際の表形式プログラム300の各ステップでの判定基準値及び計測した値1702を、詳細履歴表示画面1700として一覧表の形で表示することができる。また、結果がNGと判定されたステップ1701の表示は、太字や赤色で表示することで、他の部分に比べ目立つように表示することもできる。   Further, by moving the cursor on this screen and selecting the lot number 1601, as shown in FIG. 17, the judgment reference value and the measured value at each step of the tabular program 300 when the inspection is performed. 1702 can be displayed as a detailed history display screen 1700 in the form of a list. In addition, the display of step 1701 in which the result is determined to be NG can be displayed more prominently than other parts by displaying in bold or red.

実施の形態8.
表形式プログラム300中の各項目においては、タグを記述することができる。タグとは、検査装置400が持つデバイスに対して付与する任意の名称である。タグを用いてプログラミングすることで、入出力デバイスをプログラムで記述する際に、検査装置400が持つ入出力デバイスの名前そのままではなく、ユーザ独自の分かりやすい名称に置き換えてプログラミングすることができ、プログラムを可読性良くすることができる。また、一旦記述したプログラムを変更することなく、タグの対応先のデバイスを変更するだけで、異なる検査装置400において同じプログラムを再利用することが可能になり、プログラムの再利用性が向上する。
Embodiment 8 FIG.
In each item in the tabular program 300, a tag can be described. A tag is an arbitrary name given to a device that the inspection apparatus 400 has. By programming using the tag, when the input / output device is described in the program, the name of the input / output device possessed by the inspection apparatus 400 can be replaced with a user-friendly name, and the program can be programmed. Can be improved in readability. Further, the same program can be reused in different inspection apparatuses 400 by changing the device to which the tag corresponds without changing the program once described, and the reusability of the program is improved.

さらに、実行プログラム2101を実行する際にその都度タグからデバイスを取得する実行形態の場合には、タグの対応先のデバイスを変更する作業をコード生成手段ではなく、検査装置400上で行うことができるため、いちいちプログラムを検査装置400に送り直す手間を省くことができる。表形式プログラム300を作成する際の手順を図18に示す。プログラマは先ず、タグ編集手段1800を用いて、検査装置400が持つデバイスに対してタグを付与し、例えばタグテーブル1801の形態で、保持される。次に、プログラマが表形式プログラムエディタ502を用いて表形式プログラム300を作成する際に、検査装置400が持つデバイスの名前を入力する代わりに、先に付与しておいたタグを入力する。   Furthermore, in the case of an execution form in which a device is acquired from a tag each time the execution program 2101 is executed, the operation of changing the device to which the tag corresponds is performed on the inspection apparatus 400 instead of the code generation unit. Therefore, it is possible to save the trouble of re-sending the program to the inspection apparatus 400. The procedure for creating the tabular program 300 is shown in FIG. First, the programmer assigns a tag to a device included in the inspection apparatus 400 using the tag editing unit 1800 and holds the tag, for example, in the form of a tag table 1801. Next, when the programmer creates the tabular program 300 using the tabular program editor 502, the tag previously assigned is input instead of inputting the device name of the inspection apparatus 400.

表形式プログラム300を作成する際の、さらに別の手順を図19に示す。プログラマは先ず、タグ編集手段1800を用いて、検査装置400が持つデバイスに対してタグを付与し、例えばタグテーブル1801の形態で、保持される。次に、プログラマが表形式プログラムエディタ502を用いて表形式プログラム300を作成する際に、表形式プログラムエディタ502は、タグテーブル1801の情報を参照して、プログラム入力の候補となるべきタグの一覧2000を呈示する。この様子を図20に示す。プログラマは、呈示されたタグの一覧2000から、所望のタグを選択することで、表形式プログラム300を作成してゆく。   FIG. 19 shows still another procedure when the tabular program 300 is created. First, the programmer assigns a tag to a device included in the inspection apparatus 400 using the tag editing unit 1800 and holds the tag, for example, in the form of a tag table 1801. Next, when the programmer creates the tabular program 300 using the tabular program editor 502, the tabular program editor 502 refers to the information in the tag table 1801 and lists the tags to be candidates for program input. 2000 is presented. This is shown in FIG. The programmer creates a tabular program 300 by selecting a desired tag from the presented tag list 2000.

作成した表形式プログラム300を、検査装置400で実行するまでの手順を図21に示す。作成した表形式プログラム300を、コード生成手段2100を用いて実行プログラム2101へ変換する際に、プログラムに記述されているタグは、タグテーブル1801の情報に基づいて、デバイスへ置き換えられる。すなわち、プログラム上のタグは、実行プログラム2101ではデバイスに置き換わっている。次に、検査装置400へ、実行プログラム2101が送られる。その後、検査装置400は、実行プログラム2101を実行する。   FIG. 21 shows a procedure until the created tabular program 300 is executed by the inspection apparatus 400. When the created tabular program 300 is converted into the execution program 2101 using the code generation unit 2100, the tags described in the program are replaced with devices based on information in the tag table 1801. That is, the tag on the program is replaced with a device in the execution program 2101. Next, the execution program 2101 is sent to the inspection apparatus 400. Thereafter, the inspection apparatus 400 executes the execution program 2101.

作成した表形式プログラム300を、検査装置400で実行するまでの、さらに別の手順を図22に示す。作成した表形式プログラム300を、コード生成手段2100を用いて実行プログラム2101へ変換する際に、プログラムに記述されているタグは、そのままタグとして実行プログラム2101に残る。次に、検査装置400へは、実行プログラム2101と一緒にタグテーブル1801も送られる。そして、検査装置400が実行プログラム2101を実行する際に、タグがあった場合には、その都度、タグテーブル1801を参照し、タグに対応するデバイスを取得して、そのデバイスへアクセスする。   FIG. 22 shows still another procedure until the created tabular program 300 is executed by the inspection apparatus 400. When the created tabular program 300 is converted into the execution program 2101 using the code generation unit 2100, the tags described in the program remain in the execution program 2101 as tags. Next, the tag table 1801 is also sent to the inspection apparatus 400 together with the execution program 2101. When the inspection apparatus 400 executes the execution program 2101, if there is a tag, the tag table 1801 is referred to each time, a device corresponding to the tag is acquired, and the device is accessed.

この発明の実施の形態1による検査装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the inspection apparatus by Embodiment 1 of this invention. この発明の実施の形態1による検査装置の機能を説明するためのブロック図である。It is a block diagram for demonstrating the function of the inspection apparatus by Embodiment 1 of this invention. この発明の実施の形態1による検査装置に使用される表形式プログラムの例を示す図である。It is a figure which shows the example of the tabular program used for the inspection apparatus by Embodiment 1 of this invention. この発明の実施の形態1による検査装置の適用例を示す概要図である。It is a schematic diagram which shows the example of application of the test | inspection apparatus by Embodiment 1 of this invention. この発明の実施の形態1による検査プログラムのプログラミングツールの例を示す図である。It is a figure which shows the example of the programming tool of the test | inspection program by Embodiment 1 of this invention. この発明の実施の形態1による検査プログラムのプログラミングツールの他の例を示す図である。It is a figure which shows the other example of the programming tool of the test | inspection program by Embodiment 1 of this invention. この発明の実施の形態1による検査プログラムの実行を説明するための図である。It is a figure for demonstrating execution of the test | inspection program by Embodiment 1 of this invention. この発明の実施の形態1によるフローチャート実行手段(図2)の動作を説明するフローチャートである。It is a flowchart explaining the operation | movement of the flowchart execution means (FIG. 2) by Embodiment 1 of this invention. この発明の実施の形態1による表形式プログラム実行手段(図2)の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the tabular program execution means (FIG. 2) by Embodiment 1 of this invention. この発明の実施の形態2による分岐を有する検査プログラムを示すフローチャートである。It is a flowchart which shows the test | inspection program which has a branch by Embodiment 2 of this invention. この発明の実施の形態3による分岐と合流を有する検査プログラムを示すフローチャートである。It is a flowchart which shows the test | inspection program which has a branch and merge by Embodiment 3 of this invention. この発明の実施の形態4による表形式プログラムを示す図である。It is a figure which shows the table format program by Embodiment 4 of this invention. この発明の実施の形態5による表形式プログラムを示す図である。It is a figure which shows the table format program by Embodiment 5 of this invention. この発明の実施の形態6によるフローチャートの代わりにファンクションブロックを用いた場合の検査プログラムを示す図である。It is a figure which shows the test | inspection program at the time of using a function block instead of the flowchart by Embodiment 6 of this invention. この発明の実施の形態6によるファンクションブロックの出力を記述した表形式プログラムを示す図である。It is a figure which shows the tabular program which described the output of the function block by Embodiment 6 of this invention. この発明の実施の形態7による履歴表示画面の例を示す図である。It is a figure which shows the example of the log | history display screen by Embodiment 7 of this invention. この発明の実施の形態7による詳細な履歴表示画面の例を示す図である。It is a figure which shows the example of the detailed log | history display screen by Embodiment 7 of this invention. この発明の実施の形態8による表形式プログラム作成の手順を示す図である。It is a figure which shows the procedure of the table format program creation by Embodiment 8 of this invention. この発明の実施の形態8による表形式プログラムを作成する他の手順を示す図である。It is a figure which shows the other procedure which produces the table format program by Embodiment 8 of this invention. この発明の実施の形態8による表形式プログラム作成時に入力の候補となるタグ一覧を呈示する図である。It is a figure which presents the tag list used as an input candidate at the time of the tabular program creation by Embodiment 8 of this invention. この発明の実施の形態8により作成した表形式プログラムを検査装置で実行する手順を示す図である。It is a figure which shows the procedure which performs the table format program produced by Embodiment 8 of this invention with an inspection apparatus. この発明の実施の形態8により作成した表形式プログラムを検査装置で実行する他の手順を示す図である。It is a figure which shows the other procedure which performs the table format program produced by Embodiment 8 of this invention with an inspection apparatus.

符号の説明Explanation of symbols

200 プログラム作成手段、201 プログラム保持手段、
202 フローチャート実行手段、203 表形式プログラム実行手段、
204 ファンクションブロック実行手段、205 ラダー実行手段、
206 データ保持手段、207 入力手段、208 出力手段、209 操作手段、
210 表示手段、211 検査履歴保持手段、300 表形式プログラム、
314 計測条件設定部、315 計測対象設定部、316 判定基準設定部、
317 判定後処理設定部、400 検査装置、401 検査対象、
500 プログラミングツール、501 フローチャートエディタ、
502 表形式プログラムエディタ、1400 表形式ファンクションブロック、
1800 タグ編集手段、1801 タグテーブル、2100 コード生成手段、
2101 実行プログラム。
200 program creation means, 201 program holding means,
202 flowchart execution means, 203 tabular program execution means,
204 function block execution means, 205 ladder execution means,
206 data holding means, 207 input means, 208 output means, 209 operation means,
210 display means, 211 examination history holding means, 300 tabular program,
314 measurement condition setting unit, 315 measurement object setting unit, 316 determination criterion setting unit,
317 post-judgment processing setting unit, 400 inspection device, 401 inspection object,
500 programming tools, 501 flowchart editor,
502 tabular program editor, 1400 tabular function block,
1800 tag editing means, 1801 tag table, 2100 code generating means,
2101 Execution program.

Claims (12)

生産ラインの検査工程に使用されるプログラマブルな検査装置であって、
検査工程の処理の流れを記述するフローチャートと、当該フローチャートの中の検査内容を記述する表形式プログラムから構成される検査プログラムを保持するプログラム保持手段と、
上記検査プログラムのうちフローチャートを読み出し、当該フローチャートを実行するフローチャート実行手段と、
上記検査プログラムのうち表形式プログラムを読み出し、当該表形式プログラムを実行する表形式プログラム実行手段と、
検査対象からの信号を入出力する入出力手段とを備え、
上記フローチャート実行手段は、上記フローチャートに従って検査プログラムの実行を行うとともに、実行するステップに表形式プログラムが記述されているかを判断して、表形式プログラムが記述されている場合は、表形式プログラム実行手段を起動すると共に、
上記表形式プログラムは、少なくとも1つのステップを含み、各々のステップに対して、検査対象に設定する条件を記述する計測条件設定部と、検査対象の計測する対象及び計測値を指定する計測対象設定部と、判定基準値を設定する判定基準設定部を備え、各ステップ毎に、計測条件設定部と、計測対象設定部と、判定基準設定部とが行単位で画面表示されるように構成され、
計測対象設定部で指定した対象の計測値と判定基準設定部で設定した判定基準値を比較し、合否判定を実行することを特徴とする検査装置。
A programmable inspection device used in a production line inspection process,
A flow chart describing the flow of processing of the inspection process;
Flowchart execution means for reading out a flowchart from the inspection program and executing the flowchart;
A tabular program execution means for reading out the tabular program from among the inspection programs and executing the tabular program;
And input / output means for inputting and outputting signals from the inspection object,
The flowchart execution means executes the inspection program according to the flowchart, determines whether the tabular program is described in the step to be executed, and if the tabular program is described, the tabular program execution means together to start the,
The tabular program includes at least one step, and for each step, a measurement condition setting unit that describes a condition to be set as an inspection target, and a measurement target setting that specifies a measurement target and a measurement value of the inspection target And a determination criterion setting unit for setting a determination reference value, and configured to display the measurement condition setting unit, the measurement target setting unit, and the determination criterion setting unit on a screen by line for each step. ,
An inspection apparatus that performs pass / fail determination by comparing a measurement value of a target specified by a measurement target setting unit with a determination reference value set by a determination reference setting unit.
上記表形式プログラムは、さらに、上記合否判定結果に基づいて実行される処理を記述した判定後処理設定部を備えたことを特徴とする請求項1に記載の検査装置。 The inspection apparatus according to claim 1, wherein the tabular program further includes a post-determination process setting unit describing a process to be executed based on the pass / fail determination result. 上記表形式プログラムのステップ中に、指定行にジャンプする命令を記述することができ、当該命令が記述されている場合は、指定された行へ移行し、該当する行から実行を継続することを特徴とする請求項1又は請求項2に記載の検査装置。 An instruction to jump to the specified line can be described in the step of the tabular program. If the instruction is described, the program moves to the specified line and continues execution from the corresponding line. The inspection apparatus according to claim 1 , wherein the inspection apparatus is characterized. 上記表形式プログラムのステップ中に、ソフトウェアオブジェクトを呼び出す命令を記述することができ、当該命令が記述されている場合は、指定されたソフトウェアオブジェクトを起動することを特徴とする請求項1から請求項3のいずれか1項に記載の検査装置。 During step of the tabular programs can be written instructions to call the software object, if the instruction is described in, claim from claim 1, characterized in that to start the selected software object 4. The inspection apparatus according to any one of items 3 . 上記表形式プログラムのステップ中に、関数又はスクリプトを記述することができ、当該関数又はスクリプトが記述されている場合は、当該関数又はスクリプトを解釈して実行することを特徴とする請求項1から請求項4のいずれか1項に記載の検査装置。 During step of the tabular program, it is possible to write a function or script, if the function or script is written from claim 1, characterized in that interprets and executes the function or script The inspection apparatus according to claim 4 . 上記表形式プログラムを2つ以上有し、実行する表形式プログラムをフローチャートで選択することを特徴とする請求項1から請求項5のいずれか1項に記載の検査装置。 6. The inspection apparatus according to claim 1, wherein the inspection apparatus has two or more of the tabular programs and selects a tabular program to be executed by a flowchart. 上記表形式プログラムをファンクションブロック内に記述し、上記表形式プログラムの処理結果に応じて出力先を変更することを特徴とする請求項1から請求項5のいずれか1項に記載の検査装置。 The inspection apparatus according to claim 1 , wherein the tabular program is described in a function block, and an output destination is changed according to a processing result of the tabular program. 検査の合否判定結果をステップ番号と共に一覧表の形で表示し、ステップ番号を指定することで検査結果の詳細な情報である検査時の測定値と判定基準値とを並べて表の形式で表示することを特徴とする請求項1から請求項7のいずれか1項に記載の検査装置。 The inspection pass / fail judgment results are displayed in the form of a list together with the step numbers, and by specifying the step number, the measurement values at the time of inspection and the judgment reference values, which are detailed information on the inspection results, are displayed in a table format. The inspection apparatus according to any one of claims 1 to 7 , wherein the inspection apparatus is characterized in that 上記検査装置は、検査装置が持つデバイスに対してタグを付与してタグテーブルに保持するタグ編集手段と、上記タグを入力しながらプログラムを編集するプログラム編集手段と、プログラムを実行プログラムに変換するコード生成手段を備え、上記コード生成手段において、タグが存在する場合には、タグテーブルを参照して、タグに対応するデバイスを取得して、デバイスへ置き換えて、実行プログラムを検査装置へ送ることを特徴とする請求項1から請求項8のいずれか1項に記載の検査装置。 The inspection apparatus attaches a tag to a device of the inspection apparatus and stores the tag in a tag table; program editing means for editing a program while inputting the tag; and converting the program into an execution program A code generation means, and if the tag exists in the code generation means, refer to the tag table to obtain a device corresponding to the tag, replace it with the device, and send the execution program to the inspection apparatus The inspection apparatus according to claim 1, wherein: 上記検査装置は、検査装置が持つデバイスに対してタグを付与してタグテーブルに保持するタグ編集手段と、上記タグを入力しながらプログラムを編集するプログラム編集手段と、上記プログラムを実行プログラムに変換するコード生成手段と、上記実行プログラムを実行するプログラム実行手段を備え、
上記コード生成手段において、プログラムを実行プログラムに変換する際、上記タグが存在する場合でも、そのままタグとして実行プログラムに残し、実行プログラムおよび前記タグテーブルを検査装置へ送り、
上記プログラム実行手段において、実行プログラムを実行する際、上記タグが存在する場合には、その都度、タグテーブルを参照し、タグに対応するデバイスを取得して、そのデバイスへアクセスすることを特徴とする請求項1から請求項8のいずれか1項に記載の検査装置。
The inspection apparatus includes a tag editing unit that attaches a tag to a device included in the inspection apparatus and stores the tag in a tag table, a program editing unit that edits a program while inputting the tag, and converts the program into an execution program Code generation means for executing the program, and program execution means for executing the execution program,
In the code generation means, when the program is converted into an execution program, even if the tag is present, the tag is left as it is in the execution program, and the execution program and the tag table are sent to the inspection device,
In the program execution means, when the execution program is executed, if the tag exists, the tag table is referred to each time, a device corresponding to the tag is acquired, and the device is accessed. The inspection apparatus according to any one of claims 1 to 8 .
上記タグ編集手段は、タグテーブルの情報を参照して、プログラム入力の候補となるべきタグの一覧を呈示し、プログラマは、呈示されたタグの一覧から、所望のタグを選択することで、表形式プログラムを作成することを特徴とする請求項9または請求項10のいずれか1項に記載の検査装置。 The tag editing means refers to the information in the tag table, presents a list of tags that should be candidates for program input, and the programmer selects a desired tag from the presented list of tags, thereby displaying the table. The inspection apparatus according to claim 9 or 10, wherein a format program is created. 生産ラインの検査工程におけるプログラマブルな検査装置であって、検査プログラムのうちフローチャートを読み出し、当該フローチャートを実行するフローチャート実行手段と、検査プログラムのうち表形式プログラムを読み出し、当該表形式プログラムを実行する表形式プログラム実行手段と、検査対象からの信号を入出力する入出力手段とを備え、上記フローチャート実行手段は、上記フローチャートに従って検査プログラムの実行を行うとともに、実行するステップに表形式プログラムが記述されているかを判断して、表形式プログラムが記述されている場合は、表形式プログラム実行手段を起動すると共に、上記表形式プログラムは、少なくとも1つのステップを含み、各々のステップに対して、検査対象に設定する条件を記述する計測条件設定部と、検査対象の計測する対象及び計測値を指定する計測対象設定部と、判定基準値を設定する判定基準設定部を備え、各ステップ毎に、計測条件設定部と、計測対象設定部と、判定基準設定部とが行単位で画面表示されるように構成され、計測対象設定部で指定した対象の計測値と判定基準設定部で設定した判定基準値を比較し、合否判定を実行する検査装置の、上記フローチャートと上記表形式プログラムを作成するプログラミングツールであって、上記フローチャートの各ステップと表形式プログラムの繋がりを記述することを特徴とするプログラミングツール。 A programmable inspection device in an inspection process of a production line, which reads a flowchart from an inspection program and executes the flowchart, and a table to read a tabular program from the inspection program and execute the tabular program A format program executing means and an input / output means for inputting / outputting a signal from the inspection target. The flowchart executing means executes the inspection program according to the flowchart, and the table format program is described in the steps to be executed. When the tabular program is described, the tabular program execution means is activated , and the tabular program includes at least one step, and each step is an inspection target. Describe the conditions to be set A measurement condition setting unit, a measurement target setting unit for specifying an object to be inspected and a measurement value, and a determination reference setting unit for setting a determination reference value are provided, and for each step, a measurement condition setting unit and a measurement target The setting unit and the criterion setting unit are configured to be displayed on the screen in line units, and the target measurement value specified by the measurement target setting unit is compared with the criterion value set by the criterion setting unit to determine pass / fail. A programming tool for creating the flowchart and the tabular program of the inspection apparatus for executing the above-described processing, wherein a connection between each step of the flowchart and the tabular program is described.
JP2003304363A 2003-08-28 2003-08-28 Inspection device and programming tool Expired - Lifetime JP3940389B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2003304363A JP3940389B2 (en) 2003-08-28 2003-08-28 Inspection device and programming tool
KR1020040063418A KR100650840B1 (en) 2003-08-28 2004-08-12 Testing device and programming tool
CNB2004100769759A CN100432876C (en) 2003-08-28 2004-08-30 Inspecting device and programming tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003304363A JP3940389B2 (en) 2003-08-28 2003-08-28 Inspection device and programming tool

Publications (2)

Publication Number Publication Date
JP2005078130A JP2005078130A (en) 2005-03-24
JP3940389B2 true JP3940389B2 (en) 2007-07-04

Family

ID=34408077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003304363A Expired - Lifetime JP3940389B2 (en) 2003-08-28 2003-08-28 Inspection device and programming tool

Country Status (3)

Country Link
JP (1) JP3940389B2 (en)
KR (1) KR100650840B1 (en)
CN (1) CN100432876C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4954561B2 (en) * 2006-02-06 2012-06-20 東京エレクトロン株式会社 Substrate inspection system and storage medium
JP6483948B2 (en) * 2012-08-30 2019-03-13 アルピコ自工株式会社 Vehicle inspection system
DE112013006802T5 (en) * 2013-04-04 2015-12-03 Mitsubishi Electric Corporation Engineering tool and programmable logic controller
CN105229542B (en) * 2013-04-18 2017-06-09 三菱电机株式会社 Programming tool

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62162104A (en) 1986-01-13 1987-07-18 Omron Tateisi Electronics Co Flow chart type programmable controller
JPH0679245B2 (en) 1986-06-16 1994-10-05 株式会社日立製作所 Programmable controller sequence program execution method
JPH0675014A (en) * 1992-08-28 1994-03-18 Nec Ic Microcomput Syst Ltd Inspecting method for semiconductor integrated circuit device
JPH0679245A (en) * 1992-09-01 1994-03-22 Ratsupu Master S F T Kk Ultrasonic cleaning device and cleaning method thereby
JPH07271412A (en) * 1994-03-28 1995-10-20 Matsushita Electric Works Ltd Control system for programmable controller
US5970243A (en) * 1996-08-27 1999-10-19 Steeplechase Software, Inc. Online programming changes for industrial logic controllers
GB2357168A (en) * 1999-12-10 2001-06-13 Inventec Corp Dynamically maintaining the functional module of an application program
JP2002008013A (en) * 2000-06-27 2002-01-11 Matsushita Electric Works Ltd Device and method for preparing appearance inspection program
JP2003122409A (en) * 2001-10-11 2003-04-25 Fuji Electric Co Ltd Method for checking program, sequence program editing device, recording medium, and program

Also Published As

Publication number Publication date
KR20050022298A (en) 2005-03-07
JP2005078130A (en) 2005-03-24
CN100432876C (en) 2008-11-12
KR100650840B1 (en) 2006-11-27
CN1591254A (en) 2005-03-09

Similar Documents

Publication Publication Date Title
JP5506822B2 (en) Program creation support device
KR101627488B1 (en) Engineering tool, program editing device, and program editing system
US20210060772A1 (en) Robot programming device and robot programming method
JP6150953B2 (en) Debugging device, debugging method, and debugging program
JP3940389B2 (en) Inspection device and programming tool
JP2002268730A (en) Maintenance system for field device
JP4488227B2 (en) Debugging method of control component having variability and debugging support apparatus
JP2005309593A (en) Program preparation device and program preparation method
KR100694948B1 (en) Program execution control mode
JP2009134360A (en) Model inspection system, model inspection method, and model inspection program
KR101716480B1 (en) Apparatus for inputting test-case using gui
JP4091631B2 (en) Machine signal processing equipment
JP4488226B2 (en) Macro program that realizes highly functional ladder program
JP2022027456A (en) Information processor, ladder program generation device, information processing method, ladder program generation method, article manufacturing method, program, and recording medium
JP4488231B2 (en) Program management device
JP4609655B2 (en) Attached data generator for program parts
JPH1049206A (en) Sequence control generating device
JP2533373B2 (en) Control program creation method
JP2019192067A (en) System and system control method
JP7392821B2 (en) Automatic testing method and device for control software and computer program
JP2533370B2 (en) Control program creation method
JPH09185527A (en) Operation evaluating method for computer system
JP2023053720A (en) System, method and program for supporting development of user program
JP2533372B2 (en) Control program creation method
KR20120040370A (en) Method of monitoring substrate processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050719

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061031

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070327

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070330

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100406

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110406

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140406

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250