JPH10240308A - Program change device for controller - Google Patents

Program change device for controller

Info

Publication number
JPH10240308A
JPH10240308A JP9045461A JP4546197A JPH10240308A JP H10240308 A JPH10240308 A JP H10240308A JP 9045461 A JP9045461 A JP 9045461A JP 4546197 A JP4546197 A JP 4546197A JP H10240308 A JPH10240308 A JP H10240308A
Authority
JP
Japan
Prior art keywords
bar code
program
controller
maintenance
barcode
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.)
Withdrawn
Application number
JP9045461A
Other languages
Japanese (ja)
Inventor
Kazuhisa Ariyoshi
和久 有吉
Naoko Akatsuka
直子 赤塚
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.)
Sekisui Chemical Co Ltd
Original Assignee
Sekisui Chemical Co 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 Sekisui Chemical Co Ltd filed Critical Sekisui Chemical Co Ltd
Priority to JP9045461A priority Critical patent/JPH10240308A/en
Publication of JPH10240308A publication Critical patent/JPH10240308A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable the reload of bar code read program on the job site by reading a maintenance bar code, for which the change information of program is made into bar code, through a bar code reader. SOLUTION: This device is provided with a bar code reader 11 for reading the ordinary bar code coding product information, a flash memory 16 for storing a bar code decoding program, and a CPU 13 for changing the relevant program in the bar code decoding program stored in the flash memory 16 according to the change information shown by a maintenance code MD by reading maintenance bar codes MH and MD, for which the change information of bar code decoding program is coded, through the bar code reader 11.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、製品情報がコード
化された通常のバーコードを読み取るバーコードリーダ
と、数値コードに対応付けられた各種データを格納した
データテーブルとを備え、バーコードリーダによって読
み取られたバーコードをバーコード解読プログラムによ
って解読し、その解読したコードに基づいてデータテー
ブルを検索することにより、このコードに対応するデー
タを出力するように構成されたコントローラに係り、よ
り詳細には、バーコードによる外部入力によってバーコ
ード解読プログラムの書き換えを可能としたコントロー
ラのプログラム変更装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code reader comprising a bar code reader for reading a normal bar code on which product information is encoded, and a data table for storing various data associated with numerical codes. The present invention relates to a controller configured to decode a bar code read by a bar code decoding program, and to search a data table based on the decoded code to output data corresponding to the code. The present invention relates to a program changing device for a controller which enables a bar code decoding program to be rewritten by an external input using a bar code.

【0002】[0002]

【従来の技術】パイプ部材の端部同士を融着する融着継
手の分野では、融着データ(製造社名、品種、サイズ、
製造ロット番号、標準抵抗値、通電時間等)を予めバー
コードに変換して印刷したラベルを、製造後の融着継手
の表面に貼着して出荷している。
2. Description of the Related Art In the field of fusion joints for fusing end portions of pipe members, fusion data (manufacturer name, kind, size,
A label printed by converting a production lot number, a standard resistance value, an energizing time, etc.) into a barcode in advance is attached to the surface of the fusion spliced joint after production and shipped.

【0003】施工現場では、この融着継手の表面に貼着
されたラベルのバーコードを、融着機のコントローラに
設けられたバーコードリーダによって読み取り、その読
み取ったバーコードをバーコード解読プログラムによっ
て解読し、その解読したコードに基づいて検索した融着
データを画面表示して、現場作業者に必要な情報を提供
するようになっている。
At a construction site, a bar code of a label attached to the surface of the fusion joint is read by a bar code reader provided in a controller of the fusion machine, and the read bar code is read by a bar code decoding program. It decodes and displays fusion data searched based on the decoded code on a screen to provide necessary information to field workers.

【0004】図5は、このような融着データの入ったバ
ーコード(以下、通常バーコードという)Nの仕様を示
している。通常バーコードNは、例えば32桁で構成さ
れており、最初の19桁に製造社名(4桁)、品種(2
桁)、サイズ(3桁)、・・・といったデータが数値コ
ード化されて入っている。
FIG. 5 shows the specifications of a bar code (hereinafter, referred to as a normal bar code) N containing such fusion data. The normal bar code N is composed of, for example, 32 digits, and the first 19 digits are the manufacturer name (4 digits) and the product type (2 digits).
), Size (three digits),..., Are encoded as numerical codes.

【0005】そして、例えば製造社名については、図6
及び図7に示すテーブルが用意されている。図6に示す
アルファベットコードテーブルは、アルファベットの
「A」から「Z」までを、「01」から「26」までの
2桁の数値コードに対応させたテーブルとなっており、
図7に示す製造社コードテーブルは、アルファベット2
文字を製造社名(文字列)に対応させたテーブルとなっ
ている。
[0005] For example, for the name of the manufacturer, FIG.
And a table shown in FIG. The alphabet code table shown in FIG. 6 is a table in which alphabets “A” to “Z” correspond to two-digit numerical codes from “01” to “26”.
The manufacturer code table shown in FIG.
It is a table in which characters correspond to manufacturer names (character strings).

【0006】従って、通常バーコードNの製造社名に
は、製造社ごとに決められているアルファベット2文字
をコード化した4桁の数字を当てている。例えば、製造
社名が「ABC社」である場合、通常バーコードNの製
造社名には、「0102」の4桁の数値コードが書き込
まれる。
Therefore, the name of the manufacturer of the barcode N is usually a four-digit number obtained by encoding two letters of the alphabet determined for each manufacturer. For example, when the manufacturer name is “ABC company”, a 4-digit numerical code “0102” is written in the manufacturer name of the normal bar code N.

【0007】また、品種については、図8に示す品種コ
ードテーブルが用意されている。この品種コードテーブ
ルは、ソケット、チーズ、・・・、キャップといった融
着継手の各品種の名称(文字列)を、「00」から「1
0」までの2桁の数値コードに対応させたテーブルとな
っている。従って、例えば融着継手の品種がチーズであ
る場合には、通常バーコードNの品種には、「01」の
2桁の数値コードが書き込まれる。
[0007] For the type, a type code table shown in FIG. 8 is prepared. This type code table indicates the name (character string) of each type of fusion joint such as socket, cheese,..., Cap from “00” to “1”.
It is a table corresponding to two-digit numerical codes up to "0". Therefore, for example, when the type of the fusion joint is cheese, a two-digit numerical code of “01” is written in the type of the normal bar code N.

【0008】同様にして、サイズについてはサイズコー
ドテーブル(図示省略)が用意されており、通常バーコ
ードNのサイズには、このサイズコードテーブルに対応
する3桁の数値コードが書き込まれる。
Similarly, a size code table (not shown) is prepared for the size, and a three-digit numerical code corresponding to the size code table is written in the size of the normal bar code N.

【0009】このように、各データは、それぞれに当て
られた数値コードと対応付けられたテーブル(以下、デ
ータテーブルという)を持っており、通常バーコードN
から読み取ったバーコードをバーコード解読プログラム
で解読することにより、必要なデータの検索を行うよう
になっている。
As described above, each data has a table (hereinafter, referred to as a data table) associated with a numerical code assigned to each data.
By decoding the barcode read from the PC with a barcode decoding program, necessary data is searched.

【0010】このバーコード解読プログラムは、従来の
コントローラでは内部のROMに記憶されており、ま
た、メモリカードやフロッピカードなどの機能を持った
コントローラでは、このメモリカードやフロッピカード
などの記憶媒体に記憶されている。
[0010] The bar code decoding program is stored in an internal ROM in a conventional controller, and is stored in a storage medium such as a memory card or a floppy card in a controller having a function such as a memory card or a floppy card. It is remembered.

【0011】ところで、バーコードの仕様変更などに伴
い、内部のバーコード解読プログラムを変更する場合、
バーコード解読プログラムがコントローラ内部のROM
に記憶されている場合には、新たな仕様のバーコードを
解読できるバーコード解読プログラムを記憶したROM
に交換する必要がある。また、バーコード解読プログラ
ムがメモリカードやフロッピカードなどの記憶媒体に記
憶されている場合には、新たな仕様のバーコードを解読
できるバーコード解読プログラムを記憶したメモリカー
ドやフロッピカードに差し替える必要がある。
By the way, when the internal bar code decoding program is changed in accordance with the change of the specification of the bar code, etc.,
The barcode decoding program is in the ROM inside the controller
ROM that stores a barcode decoding program that can decode barcodes with new specifications when stored in
Need to be replaced. Also, when the barcode decoding program is stored in a storage medium such as a memory card or a floppy card, it is necessary to replace the barcode decoding program with a memory card or a floppy card storing a barcode decoding program capable of decoding a barcode of a new specification. is there.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、コント
ローラ内部のROMを交換するためには、一旦メーカに
機器を返却してROM交換を行うか、メーカ等から技術
者が現場に出向いてROM交換を行う必要があるため、
プログラムの変更があるたびに全てのコントローラのR
OMを交換するのは手間がかかるといった問題があっ
た。また、バーコード解読プログラムがメモリカードや
フロッピカードなどに記憶されている場合には、このよ
うな問題はないが、コントローラを搭載した機器のシン
プル化によりメモリカードやフロッピカードなどの機能
を持たない機器が現れた場合には、従来通りコントロー
ラのROMを交換するしかないのが現状であった。
However, in order to replace the ROM in the controller, the device must be returned to the maker to replace the ROM, or a technician from the maker or the like goes to the site to replace the ROM. Need to
Every time there is a program change, R
There is a problem that it takes time to replace the OM. If the barcode decoding program is stored on a memory card or floppy card, there is no such problem.However, due to the simplification of the device equipped with the controller, there is no function such as a memory card or a floppy card. At present, when the device appears, the only option is to replace the ROM of the controller as before.

【0013】本発明はこのような問題点を解決すべく創
案されたもので、その目的は、プログラムの変更情報を
バーコード化したメンテナンスバーコードを、バーコー
ドリーダによって読み取ることにより、現場においてバ
ーコード解読プログラムの書き換えを可能としたコント
ローラのプログラム変更装置を提供することにある。
The present invention has been made in order to solve such a problem, and an object of the present invention is to read a maintenance bar code obtained by converting a program change information into a bar code by a bar code reader, so that a bar code can be read at the site. An object of the present invention is to provide a controller program change device that enables a code decoding program to be rewritten.

【0014】[0014]

【課題を解決するための手段】上記課題を解決するた
め、本発明の請求項1記載のコントローラのプログラム
変更装置は、製品情報がコード化された通常のバーコー
ドを読み取るバーコードリーダと、数値コードに対応付
けられた各種データを格納したデータテーブルとを備
え、前記バーコードリーダによって読み取られたバーコ
ードをバーコード解読プログラムによって解読し、その
解読したコードに基づいて前記データテーブルを検索す
ることにより、このコードに対応するデータを出力する
コントローラにおいて、前記バーコード解読プログラム
を記憶する書き換え可能な記憶手段と、前記バーコード
解読プログラムの変更情報がコード化されたメンテナン
スバーコードを前記バーコードリーダで読み取ることに
より、前記記憶手段に記憶されているバーコード解読プ
ログラムの中の該当プログラムを前記メンテナンスバー
コードで示された変更情報に従って変更する変更制御手
段とを備えた構成とする。
According to a first aspect of the present invention, there is provided a program changing device for a controller, comprising: a bar code reader for reading a normal bar code on which product information is encoded; A data table storing various data associated with the codes, decoding the barcode read by the barcode reader with a barcode decoding program, and searching the data table based on the decoded codes. Thus, in a controller that outputs data corresponding to the code, a rewritable storage unit that stores the barcode decryption program, and a maintenance barcode in which change information of the barcode decryption program is encoded is stored in the barcode reader. By reading in, the storage means A structure in which a change control means for changing in accordance with change information of the corresponding program indicated by the maintenance bar code in the bar code decoding program that is 憶.

【0015】また、本発明の請求項2記載のコントロー
ラのプログラム変更装置は、請求項1記載のものにおい
て、前記バーコード解読プログラムを、解読対象テーブ
ルごとにサブルーチン化して格納するものである。
According to a second aspect of the present invention, there is provided a program changing device for a controller according to the first aspect, wherein the barcode decoding program is stored as a subroutine for each decoding target table.

【0016】また、本発明の請求項3記載のコントロー
ラのプログラム変更装置は、請求項1記載のものにおい
て、前記メンテナンスバーコードの桁数と前記通常のバ
ーコードの桁数とを異ならせ、前記コントローラは、読
み取られたバーコードの桁数の違いによって前記通常の
バーコードの読み取りモードと前記メンテナンスバーコ
ードの変更モードとを切り換えるように構成する。
According to a third aspect of the present invention, in the controller program changing apparatus according to the first aspect, the number of digits of the maintenance bar code is made different from the number of digits of the normal bar code. The controller is configured to switch between the normal barcode reading mode and the maintenance barcode change mode depending on the difference in the number of digits of the read barcode.

【0017】また、本発明の請求項4記載のコントロー
ラのプログラム変更装置は、請求項1記載のものにおい
て、前記メンテナンスバーコードを前記通常のバーコー
ドと異なるフォーマットで作成し、前記コントローラ
は、これらフォーマットのバーコードの読み取りが可能
であるとともに、読み取ったフォーマットを判別して、
前記通常のバーコードの読み取りモードと前記メンテナ
ンスバーコードの変更モードとを切り換えるように構成
する。
According to a fourth aspect of the present invention, in the controller program changing device according to the first aspect, the maintenance bar code is created in a format different from the normal bar code. It is possible to read the barcode of the format and determine the read format,
The normal barcode reading mode and the maintenance barcode change mode are configured to be switched.

【0018】また、本発明の請求項5記載のコントロー
ラのプログラム変更装置は、請求項1記載のものにおい
て、前記メンテナンスバーコードはヘッダ用とデータ用
とからなり、コントローラは前記ヘッダ用メンテナンス
バーコードを読み取ることによって変更モードに切り換
わるように構成する。
According to a fifth aspect of the present invention, in the controller program changing device according to the first aspect, the maintenance bar code includes a header and a data, and the controller includes the header maintenance bar code. Is configured to switch to the change mode by reading.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。図1は、本発明のコントロ
ーラのプログラム変更装置の電気的構成を示すブロック
図であり、本実施形態では、融着機のコントローラに適
用した例を示している。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an electric configuration of a program changing device for a controller according to the present invention. In the present embodiment, an example in which the present invention is applied to a controller of a welding machine is shown.

【0020】このコントローラは、バーコードリーダ1
1と、図示しない融着継手に電流を供給する融着用電源
12とを備えており、内部にCPU13と、表示部14
と、ROM15と、フラッシュメモリ16とを備えてい
る。
The controller comprises a bar code reader 1
1 and a fusing power supply 12 for supplying a current to a fusing joint (not shown).
, A ROM 15 and a flash memory 16.

【0021】ROM15には、バーコード解読プログラ
ム以外のプログラム、主としてコントローラを制御する
プログラムが格納されている。また、フラッシュメモリ
16には、バーコード解読プログラムが格納されている
とともに、それぞれのエリアに図6ないし図8に示すよ
うな各種のテーブルが格納されている。図1には、その
中のバーコード解読プログラムの一例を図示している。
バーコード解読プログラムは、予め解読対象テーブルご
とにサブルーチン化されており、サブルーチンごとに付
与された番号又は格納場所のアドレスデータとともにフ
ラッシュメモリ16に格納されている。
The ROM 15 stores programs other than the bar code decoding program, mainly programs for controlling the controller. In addition, the flash memory 16 stores a barcode decoding program and various tables as shown in FIGS. 6 to 8 in respective areas. FIG. 1 shows an example of a barcode decoding program therein.
The barcode decoding program is previously formed into a subroutine for each decoding target table, and is stored in the flash memory 16 together with a number assigned to each subroutine or address data of a storage location.

【0022】バーコードリーダ11は、通常は融着継手
の表面に貼着されたラベルのバーコード(図5に示す通
常バーコードN)を読み取って、CPU13に出力す
る。CPU13は、フラッシュメモリ16に格納されて
いるバーコード解読プログラムに従ってバーコードを解
読し、同じくフラッシュメモリ16に格納されている各
テーブルを参照して、該当する融着データを表示部14
に表示するようになっている。
The bar code reader 11 normally reads a bar code (normal bar code N shown in FIG. 5) of a label attached to the surface of the fusion joint and outputs the same to the CPU 13. The CPU 13 decodes the barcode in accordance with the barcode decoding program stored in the flash memory 16 and refers to each table also stored in the flash memory 16 to display the corresponding fusion data on the display unit 14.
To be displayed.

【0023】また、CPU13は、バーコードリーダ1
1から後述する変更情報がコード化されたメンテナンス
バーコードMH,MDが読み取られたときには、そのメ
ンテナンスバーコードMH,MDの変更情報に従って、
フラッシュメモリ16内に格納されているバーコード解
読プログラムの中の該当するプログラムを変更する処理
を行うようになっている。すなわち、フラッシュメモリ
16が請求項1記載の書き換え可能な記憶手段に対応
し、CPU13が請求項1記載の変更制御手段に対応し
ている。
The CPU 13 is provided with the bar code reader 1.
When the maintenance barcodes MH and MD in which the change information described later is encoded from 1 are read, according to the change information of the maintenance barcodes MH and MD,
Processing for changing a corresponding program among the barcode decoding programs stored in the flash memory 16 is performed. That is, the flash memory 16 corresponds to the rewritable storage unit described in claim 1, and the CPU 13 corresponds to the change control unit described in claim 1.

【0024】図2は、バーコード解読プログラムの変更
情報がコード化されたメンテナンスバーコードMH,M
Dの仕様を示しており、本実施形態では、ヘッダ用とデ
ータ用とに分けてそれぞれメンテナンスバーコードM
H,MDを作成した場合を例示している。
FIG. 2 shows maintenance bar codes MH and M in which change information of a bar code decoding program is encoded.
D shows the specifications of the maintenance bar code M for the header and the data for the data.
In this example, H and MD are created.

【0025】ヘッダ用メンテナンスバーコードMHに
は、4桁の数値コードで示される変更バージョン番号、
3桁の数値コードで示される変更プログラムの形態(サ
ブルーチン)、4桁の数値コードで示されるデータ部の
総枚数の情報が入っている。
The maintenance bar code MH for the header has a modified version number indicated by a 4-digit numerical code,
The form of the change program represented by a three-digit numerical code (subroutine) contains information on the total number of data portions represented by a four-digit numerical code.

【0026】また、データ用メンテナンスバーコードM
Dには、変更するアドレスとプログラムデータ、及びバ
ーコード規格に従ったチェックコードが書き込まれてい
る。ここで、通常バーコードNの読み取り作業(読み取
りモード)と、メンテナンスバーコードMH,MDによ
るバーコード解読プログラムの変更作業(変更モード)
との区別は、読み取ったバーコードの桁数の違いで検知
するものとする。例えば、通常バーコードNを32桁、
メンテナンスバーコードMH,MDを64桁とする。
The data maintenance bar code M
In D, an address to be changed, program data, and a check code according to the barcode standard are written. Here, the operation of reading the normal barcode N (reading mode) and the operation of changing the barcode decoding program using the maintenance barcodes MH and MD (change mode).
Is detected based on the difference in the number of digits of the read barcode. For example, the normal bar code N is 32 digits,
The maintenance bar codes MH and MD are 64 digits.

【0027】また、データ用メンテナンスバーコードM
Dでは、複数枚にわたって変更を実施する際に変更プロ
グラムの読み飛ばしなどを避けるため、読み取るバーコ
ードの順序に従って連番データを付けたり、書かれてい
るプログラムの先頭アドレスを付けたりして管理を行う
ものとする。
The data maintenance bar code M
In D, in order to avoid skipping the changed program when making changes on a plurality of sheets, management is performed by attaching serial number data according to the order of the barcodes to be read, or by attaching the start address of the written program. Assumed to be performed.

【0028】また、バーコード解読プログラムは、解読
対象テーブルごとに予めサブルーチン化して作成してお
き、そのサブルーチンごとに番号をふるか、格納場所の
アドレスを決めておく。そして、一部の変更などの場合
には、データ用メンテナンスバーコードMDのそれぞれ
の先頭等にその番号かアドレスを変更場所情報として付
加し、変更部分のみのプログラムをバーコード化しても
よい。
The bar code decoding program is prepared as a subroutine in advance for each decoding target table, and a number is assigned to each subroutine or an address of a storage location is determined. In the case of a partial change, the number or address of the data maintenance bar code MD may be added as the change location information to the beginning of each of the data maintenance bar codes MD, and the program of only the changed portion may be converted into a bar code.

【0029】また、変更するプログラムをバーコード化
する前に圧縮符号化し、その圧縮されたプログラムデー
タをバーコード化してもよい。コントローラ側では、こ
のプログラムデータを復号化するプログラムを予め備え
ておき、復号化を行ってからプログラムの変更(書き換
え)を行うようにしてもよい。このように、サブルーチ
ン化や圧縮符号化することによって、変更プログラム用
のバーコード(データ用メンテナンスバーコードMD)
の枚数を少なくすることができる。
Also, the program to be changed may be compression-encoded before bar-coding, and the compressed program data may be bar-coded. On the controller side, a program for decrypting the program data may be provided in advance, and after the decryption, the program may be changed (rewritten). In this way, by performing the subroutine or the compression encoding, the barcode for the change program (data maintenance barcode MD)
Can be reduced.

【0030】また、図2に示したデータ用メンテナンス
バーコードMDでは、1枚ごとにバーコード規格に従っ
たチェックコードを付加しているが、変更プログラム全
体でのチェックサムやチェックコードをバーコード化し
て付加するようにしてもよい。 次に、上記構成のコン
トローラのプログラム変更処理動作について、図3及び
図4に示すフローチャートを参照して説明する。
In the data maintenance bar code MD shown in FIG. 2, a check code conforming to the bar code standard is added to each of the data maintenance bar codes. You may make it add and convert. Next, a program change processing operation of the controller having the above configuration will be described with reference to flowcharts shown in FIGS.

【0031】まず、バーコードリーダ11からヘッダ用
メンテナンスバーコードMHが読み取られると(ステッ
プS1)、CPU13は、読み取られたヘッダの桁数か
ら変更作業であることを検知し、次にヘッダ用メンテナ
ンスバーコードMHの内容の確認を行う。すなわち、読
み取られた変更バージョン番号が現在よりも新しいか否
かを確認する(ステップS2)。ここで、変更バージョ
ン番号が現在と同じか古い場合には、警告等を発する。
First, when the header maintenance bar code MH is read from the bar code reader 11 (step S1), the CPU 13 detects that it is a change operation from the number of digits of the read header, and then the header maintenance is performed. The contents of the barcode MH are confirmed. That is, it is checked whether the read changed version number is newer than the current one (step S2). Here, if the changed version number is the same as or older than the current one, a warning or the like is issued.

【0032】変更バージョン番号が新しい場合には、次
に変更プログラムの形態を確認して、どの書き換え処理
方法で行うかを決定する(ステップS3)。本実施形態
では、変更プログラムの形態はサブルーチンとなってい
る。この後、次に読み取られるデータ用メンテナンスバ
ーコードMDの枚数を確認する(ステップS4)。本実
施形態では、23枚となっている。
If the changed version number is newer, the type of the changed program is checked next to determine which rewriting method to use (step S3). In the present embodiment, the form of the change program is a subroutine. Thereafter, the number of data maintenance bar codes MD to be read next is confirmed (step S4). In the present embodiment, the number is 23.

【0033】この後、バーコードリーダ11からデータ
用メンテナンスバーコードMDが読み取られると(ステ
ップS11)、CPU13は、読み取ったデータから書
き込み先のアドレスを確認し(ステップS12)、次に
変更プログラムを読み取って、フラッシュメモリ16の
該当部分に変更プログラムを書き込む(ステップS1
3,S14)。
Thereafter, when the data maintenance bar code MD is read from the bar code reader 11 (step S11), the CPU 13 checks the write destination address from the read data (step S12), and then executes the change program. The change is read and the change program is written in the corresponding portion of the flash memory 16 (step S1).
3, S14).

【0034】このような処理を、データ用メンテナンス
バーコードMDの枚数分繰り返し行った後(ステップS
15)、全体プログラムに対するチェックサムでプログ
ラムの書き込みを確認する(ステップS16)。そし
て、プログラムの書き込みが正しくない場合には、ステ
ップS17からステップS20へと動作を進めて、プロ
グラムが正しく書き込まれていないことの警告を行う。
After such processing is repeated for the number of data maintenance barcodes MD (step S
15), writing of the program is confirmed by the checksum for the entire program (step S16). If the writing of the program is not correct, the operation proceeds from step S17 to step S20 to warn that the program has not been correctly written.

【0035】プログラムの書き込みが正しく行われた場
合には、次に新仕様で作成されたチェック用バーコード
(図示省略)をバーコードリーダ11から読み取って、
バーコード解読プログラムの変更作業が正常に行われた
ことを確認して(ステップS18,S19)、プログラ
ム変更処理を終了する。
If the program has been correctly written, a check barcode (not shown) created according to the new specification is read from the barcode reader 11 and read.
After confirming that the work of changing the barcode decoding program has been performed normally (steps S18 and S19), the program change processing ends.

【0036】チェック用バーコードによるチェック方法
としては、プログラムの数をチェック用バーコードの情
報としておき、コントローラ内部の変更後のプログラム
数と比較して確認する方法などが考えられる。また、こ
のようなチェック用バーコードを用いなくても、メンテ
ナンスバーコードMH,MDをそのまま使用して、全変
更作業をもう一度行うことにより、全変更作業がすでに
行われていることを確認することで、変更処理のチェッ
クと見なすこともできる。
As a check method using the check bar code, a method of setting the number of programs as information of the check bar code and comparing the number of programs with the number of programs after the change in the controller may be considered. Even without using such a check barcode, it is possible to confirm that all the changes have already been performed by using the maintenance barcodes MH and MD as they are and performing all the changes again. Thus, it can be regarded as a change processing check.

【0037】なお、上記実施形態では、コントローラ
は、通常バーコードNの読み取りモードと、メンテナン
スバーコードMH,MDによるバーコード解読プログラ
ムの変更モードとの区別を、読み取ったバーコードの桁
数の違いで検知するものとして説明しているが、ヘッダ
用メンテナンスバーコードMHの先頭に通常バーコード
Nのものと区別するためのデータを入れておき、このデ
ータを読み取ることによって変更モードに切り換わるよ
うに構成することが可能である。また、メンテナンスバ
ーコードMH,MDを通常バーコードNと異なるフォー
マットで作成し、コントローラはこれらフォーマットの
バーコードの読み取りを可能として、メンテナンスバー
コードMH,MDのフォーマットを読み込んだとき、変
更モードに切り換わるように構成することが可能であ
る。さらに、コントローラ側に通常バーコードNの読み
取りモード(融着モード)と、メンテナンスバーコード
MH,MDによるバーコード解読プログラムの変更モー
ドとを切り換える切換スイッチを設けた構成とすること
が可能である。こうすることで、メンテナンスバーコー
ドと通常バーコードとの区別(桁数やフォーマットを異
ならせる)の必要が無くなる。
In the above-described embodiment, the controller distinguishes between the normal bar code N reading mode and the maintenance bar code MH, MD bar code decoding program change mode by the difference in the number of digits of the read bar code. However, the data is distinguished from that of the normal bar code N at the beginning of the header maintenance bar code MH, and the mode is changed to the change mode by reading this data. It is possible to configure. Also, the maintenance barcodes MH and MD are created in a format different from the normal barcode N, and the controller enables reading of the barcodes in these formats. When the format of the maintenance barcodes MH and MD is read, the controller switches to the change mode. It is possible to configure so that it can be replaced. Further, the controller may be provided with a changeover switch for switching between a normal barcode N reading mode (fusing mode) and a mode for changing a barcode decoding program using the maintenance barcodes MH and MD. By doing so, there is no need to distinguish between the maintenance barcode and the normal barcode (different numbers of digits and different formats).

【0038】また、上記実施形態では、メンテナンスバ
ーコードMH,MDをヘッダ用とデータ用とに分けてそ
れぞれ作成しているが、ヘッダ用とデータ用とを分ける
ことなく1枚にまとめたメンテナンスバーコードとして
作成してもよい。
In the above-described embodiment, the maintenance bar codes MH and MD are created separately for the header and data. However, the maintenance bar codes MH and MD are created separately for the header and data without being divided. It may be created as code.

【0039】また、上記実施形態では、書き換え可能な
記憶手段としてフラッシュメモリ16を例示している
が、この他にもバックアップRAM等の使用が可能であ
る。
In the above embodiment, the flash memory 16 is exemplified as the rewritable storage means. However, a backup RAM or the like can be used.

【0040】[0040]

【発明の効果】本発明の請求項1記載のコントローラの
プログラム変更装置は、製品情報がコード化された通常
のバーコードを読み取るバーコードリーダと、数値コー
ドに対応付けられた各種データを格納したデータテーブ
ルとを備え、バーコードリーダによって読み取られたバ
ーコードをバーコード解読プログラムによって解読し、
その解読したコードに基づいてデータテーブルを検索す
ることにより、このコードに対応するデータを出力する
コントローラにおいて、バーコード解読プログラムを記
憶する書き換え可能な記憶手段と、バーコード解読プロ
グラムの変更情報がコード化されたメンテナンスバーコ
ードをバーコードリーダで読み取ることにより、記憶手
段に記憶されているバーコード解読プログラムの中の該
当プログラムをメンテナンスバーコードで示された変更
情報に従って変更する変更制御手段とを備えた構成とし
たので、コントローラのROMを交換しなくてもバーコ
ード解読プログラムの変更が行えることから、メンテナ
ンスの作業効率が格段に向上する。また、メモリカー
ド、フロッピディスク、光ディスクなどの機能の無いコ
ントローラでも内部プログラムの変更が可能となる。
According to a first aspect of the present invention, there is provided a controller program changing apparatus which stores a bar code reader for reading a normal bar code in which product information is encoded and various data associated with a numerical code. With a data table, a barcode read by a barcode reader is decoded by a barcode decoding program,
By retrieving a data table based on the decoded code, a controller that outputs data corresponding to the code includes a rewritable storage unit that stores a barcode decoding program; And a change control unit for reading the converted maintenance barcode with a barcode reader to change a corresponding program among the barcode decoding programs stored in the storage unit in accordance with the change information indicated by the maintenance barcode. With this configuration, the barcode decoding program can be changed without replacing the ROM of the controller, thereby greatly improving the maintenance work efficiency. Further, even a controller having no function, such as a memory card, a floppy disk, or an optical disk, can change the internal program.

【0041】また、本発明の請求項2記載のコントロー
ラのプログラム変更装置は、請求項1記載のものにおい
て、バーコード解読プログラムを、解読対象テーブルご
とにサブルーチン化して格納する構成としたので、デー
タ用メンテナンスバーコードの枚数(情報量)を少なく
することができる。
According to a second aspect of the present invention, there is provided a program changing device for a controller according to the first aspect, wherein a bar code decoding program is stored as a subroutine for each decoding target table. The number of maintenance barcodes (the amount of information) can be reduced.

【0042】また、本発明の請求項3記載のコントロー
ラのプログラム変更装置は、メンテナンスバーコードの
桁数と通常のバーコードの桁数とを異ならせ、コントロ
ーラは、読み取られたバーコードの桁数の違いによって
通常のバーコードの読み取りモードとメンテナンスバー
コードの変更モードとを切り換えるように構成してい
る。また、本発明の請求項4記載のコントローラのプロ
グラム変更装置は、メンテナンスバーコードを通常のバ
ーコードと異なるフォーマットで作成し、コントローラ
は、これらフォーマットのバーコードの読み取りが可能
であるとともに、読み取ったフォーマットを判別して、
通常のバーコードの読み取りモードとメンテナンスバー
コードの変更モードとを切り換えるように構成してい
る。また、本発明の請求項5記載のコントローラのプロ
グラム変更装置は、メンテナンスバーコードをヘッダ用
とデータ用とで構成し、コントローラはヘッダ用メンテ
ナンスバーコードを読み取ることによって変更モードに
切り換わるように構成している。これにより、通常のバ
ーコードによる読み取りモードと、メンテナンスバーコ
ードによる変更モードとを確実に区別することができ、
変更モードを確実に実行させることができる。
According to a third aspect of the present invention, in the controller program changing apparatus, the number of digits of the maintenance bar code is made different from the number of digits of the normal bar code. The configuration is such that a normal barcode reading mode and a maintenance barcode change mode are switched depending on the difference. Further, the controller program changing device according to claim 4 of the present invention creates a maintenance barcode in a format different from a normal barcode, and the controller is capable of reading and reading barcodes in these formats. Determine the format,
It is configured to switch between a normal barcode reading mode and a maintenance barcode change mode. According to a fifth aspect of the present invention, there is provided the controller program changing device, wherein the maintenance bar code is configured for header and data, and the controller is configured to switch to the change mode by reading the header maintenance bar code. doing. This makes it possible to reliably distinguish between the normal barcode reading mode and the maintenance barcode change mode,
The change mode can be reliably executed.

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

【図1】本発明のコントローラのプログラム変更装置の
電気的構成を示すブロック図であり、融着機のコントロ
ーラに適用した例を示している。
FIG. 1 is a block diagram showing an electrical configuration of a controller program changing device of the present invention, showing an example in which the present invention is applied to a controller of a welding machine.

【図2】ヘッダ用とデータ用のメンテナンスバーコード
を示す模式図である。
FIG. 2 is a schematic diagram showing a maintenance bar code for a header and for a data.

【図3】コントローラのプログラム変更処理動作を説明
するためのフローチャートである。
FIG. 3 is a flowchart for explaining a program change processing operation of a controller.

【図4】コントローラのプログラム変更処理動作を説明
するためのフローチャートである。
FIG. 4 is a flowchart for explaining a program change processing operation of the controller.

【図5】通常バーコードの仕様を示す模式図である。FIG. 5 is a schematic diagram showing specifications of a normal barcode.

【図6】アルファベットコードテーブルを示す図であ
る。
FIG. 6 is a diagram showing an alphabet code table.

【図7】製造社コードテーブルを示す図である。FIG. 7 is a diagram showing a manufacturer code table.

【図8】品種コードテーブルを示す図である。FIG. 8 is a diagram showing a product code table.

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

11 バーコードリーダ 13 CPU 14 表示部 15 ROM 16 フラッシュメモリ N 通常バーコード MH ヘッダ用メンテナンスバーコード MD データ用メンテナンスバーコード 11 Bar Code Reader 13 CPU 14 Display 15 ROM 16 Flash Memory N Normal Bar Code MH Maintenance Bar Code for Header MD Maintenance Bar Code for Data

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 製品情報がコード化された通常のバーコ
ードを読み取るバーコードリーダと、数値コードに対応
付けられた各種データを格納したデータテーブルとを備
え、前記バーコードリーダによって読み取られたバーコ
ードをバーコード解読プログラムによって解読し、その
解読したコードに基づいて前記データテーブルを検索す
ることにより、このコードに対応するデータを出力する
コントローラにおいて、 前記バーコード解読プログラムを記憶する書き換え可能
な記憶手段と、 前記バーコード解読プログラムの変更情報がコード化さ
れたメンテナンスバーコードを前記バーコードリーダで
読み取ることにより、前記記憶手段に記憶されているバ
ーコード解読プログラムの中の該当プログラムを前記メ
ンテナンスバーコードで示された変更情報に従って変更
する変更制御手段とを備えたことを特徴とするコントロ
ーラのプログラム変更装置。
1. A bar code reader which reads a normal bar code in which product information is coded, and a data table which stores various data associated with numerical codes, wherein the bar read by the bar code reader is provided. A controller that decodes a code by a bar code decoding program and searches the data table based on the decoded code to output data corresponding to the code, a rewritable storage that stores the bar code decoding program Means, by reading a maintenance barcode in which the change information of the barcode decoding program is coded by the barcode reader, the corresponding program in the barcode decoding program stored in the storage means is read by the maintenance bar. Indicated by code Program changing device of the controller, characterized in that a change control means for changing in accordance with a further information.
【請求項2】 前記バーコード解読プログラムは、解読
対象テーブルごとにサブルーチン化して格納されている
ことを特徴とする請求項1記載のコントローラのプログ
ラム変更装置。
2. The apparatus according to claim 1, wherein the bar code decoding program is stored as a subroutine for each decoding target table.
【請求項3】 前記メンテナンスバーコードの桁数と前
記通常のバーコードの桁数とを異ならせ、前記コントロ
ーラは、読み取られたバーコードの桁数の違いによって
前記通常のバーコードの読み取りモードと前記メンテナ
ンスバーコードの変更モードとを切り換えることを特徴
とする請求項1記載のコントローラのプログラム変更装
置。
3. The number of digits of the maintenance bar code and the number of digits of the normal bar code are different from each other, and the controller determines the normal bar code reading mode according to the difference in the number of digits of the read bar code. 2. The controller program changing device according to claim 1, wherein the controller changes the maintenance bar code change mode.
【請求項4】 前記メンテナンスバーコードを前記通常
のバーコードと異なるフォーマットで作成し、前記コン
トローラは、これらフォーマットのバーコードの読み取
りが可能であるとともに、読み取ったフォーマットを判
別して、前記通常のバーコードの読み取りモードと前記
メンテナンスバーコードの変更モードとを切り換えるこ
とを特徴とする請求項1記載のコントローラのプログラ
ム変更装置。
4. The maintenance barcode is created in a format different from the normal barcode, and the controller is capable of reading barcodes in these formats, determines the read format, and determines the read format. 2. The controller program changing device according to claim 1, wherein the mode is switched between a bar code reading mode and a maintenance bar code changing mode.
【請求項5】 前記メンテナンスバーコードはヘッダ用
とデータ用とからなり、コントローラは前記ヘッダ用メ
ンテナンスバーコードを読み取ることによって変更モー
ドに切り換わることを特徴とする請求項1記載のコント
ローラのプログラム変更装置。
5. The controller program change according to claim 1, wherein the maintenance bar code is composed of header data and data data, and the controller switches to the change mode by reading the header maintenance bar code. apparatus.
JP9045461A 1997-02-28 1997-02-28 Program change device for controller Withdrawn JPH10240308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9045461A JPH10240308A (en) 1997-02-28 1997-02-28 Program change device for controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9045461A JPH10240308A (en) 1997-02-28 1997-02-28 Program change device for controller

Publications (1)

Publication Number Publication Date
JPH10240308A true JPH10240308A (en) 1998-09-11

Family

ID=12720012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9045461A Withdrawn JPH10240308A (en) 1997-02-28 1997-02-28 Program change device for controller

Country Status (1)

Country Link
JP (1) JPH10240308A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003170618A (en) * 2001-12-07 2003-06-17 Dainippon Printing Co Ltd Printer using method
JP2007104109A (en) * 2005-09-30 2007-04-19 Megachips Lsi Solutions Inc Image photographing apparatus
JP2011175527A (en) * 2010-02-25 2011-09-08 Fujitsu Frontech Ltd Bar code scanner, method of updating firmware thereof, and firmware update program
WO2018235702A1 (en) * 2017-06-23 2018-12-27 パナソニックIpマネジメント株式会社 Heating cooker and method for controlling heating cooker

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003170618A (en) * 2001-12-07 2003-06-17 Dainippon Printing Co Ltd Printer using method
JP2007104109A (en) * 2005-09-30 2007-04-19 Megachips Lsi Solutions Inc Image photographing apparatus
JP2011175527A (en) * 2010-02-25 2011-09-08 Fujitsu Frontech Ltd Bar code scanner, method of updating firmware thereof, and firmware update program
WO2018235702A1 (en) * 2017-06-23 2018-12-27 パナソニックIpマネジメント株式会社 Heating cooker and method for controlling heating cooker
JPWO2018235702A1 (en) * 2017-06-23 2020-04-23 パナソニックIpマネジメント株式会社 Heating cooker and method of controlling heating cooker
JP2022066389A (en) * 2017-06-23 2022-04-28 パナソニックIpマネジメント株式会社 Heating cooker and method of controlling heating cooker
JP2023119069A (en) * 2017-06-23 2023-08-25 パナソニックIpマネジメント株式会社 Method for controlling heating cooker

Similar Documents

Publication Publication Date Title
EP0797158A2 (en) Document managing apparatus, data compressing method, and data decompressing method
US20080266057A1 (en) Utilizing an rfid tag in manufacturing for enhanced lifecycle management
JP2003330721A (en) Method of installing software bundle into plurality of target computers
US6776342B1 (en) Process for the parameterization of scanners for one-dimensional or two-dimensional printed codes
US7725364B2 (en) Part catalog creating system
JPH10240308A (en) Program change device for controller
JPH09504633A (en) Apparatus and method for 16-bit and numerical data collection using bar code symbology
JPH10240318A (en) Data updating device for controller
JP2001307011A (en) Optical information reader
JP2013156756A (en) Handy terminal update system, handy terminal, data update device, and handy terminal update method
JPH11327679A (en) Nonvolatile memory, computer system and identification number storage method
JP4132225B2 (en) Information code reading and creating device
JP2011175527A (en) Bar code scanner, method of updating firmware thereof, and firmware update program
CN102163276A (en) Information code, optical information reader for reading out information code and reading system thereof
JP4309414B2 (en) Barcode scanner device, setting method, program thereof, and program recording medium
JP2001147986A (en) Bar code reader and erroneous reading detecting method therefor
JPH1166221A (en) Data storage device for controller
JPH11282948A (en) Operation condition setting method and system for symbol reader
JP2000293519A (en) Document processor
JP3745823B2 (en) Optical information reader
KR100385740B1 (en) Extended state barcode system and method for printing and deciphering barcode thereof
US5768402A (en) Code data writing-once apparatus for recording writing-once code data in unrecorded writing-once blocks of optically readably printed and recorded code data
JP2013200650A (en) Form reading system
JP2005182293A (en) Bar code symbol reader
JPH0561585A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040106

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20051228