JP4368752B2 - Programmable display - Google Patents

Programmable display Download PDF

Info

Publication number
JP4368752B2
JP4368752B2 JP2004215808A JP2004215808A JP4368752B2 JP 4368752 B2 JP4368752 B2 JP 4368752B2 JP 2004215808 A JP2004215808 A JP 2004215808A JP 2004215808 A JP2004215808 A JP 2004215808A JP 4368752 B2 JP4368752 B2 JP 4368752B2
Authority
JP
Japan
Prior art keywords
data
display
dimensional code
screen
programmable display
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.)
Active
Application number
JP2004215808A
Other languages
Japanese (ja)
Other versions
JP2006039741A (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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics 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 Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2004215808A priority Critical patent/JP4368752B2/en
Publication of JP2006039741A publication Critical patent/JP2006039741A/en
Application granted granted Critical
Publication of JP4368752B2 publication Critical patent/JP4368752B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

本発明は、2次元コードの処理機能を備えたプログラマブル表示器に関するものである。   The present invention relates to a programmable display having a two-dimensional code processing function.

バーコードは、縞模様の線の太さと間隔によってデータを表すコードであって、バーコードリーダで素早くかつ正確に読み取れることから、広く普及してきた。しかしながら、バーコードは、1次元方向(線の幅方向)だけに情報を持つので、より多くの情報を持つには不十分であった。そこで、2次元方向に情報を持った2次元コードが開発され、記録できる情報量を大幅に増加させることが可能となった。現在、最も多い情報量を記録できる2次元コードとしては、マトリクス方式の2次元コードが挙げられる。日本では、高速読み取りを重視したQR(Quick Response)コードが最も普及しており、このような2次元コードを用いた新たなサービスも考案されている(特許文献1)。   A bar code is a code that represents data by the thickness and spacing of striped lines, and has been widely used because it can be read quickly and accurately by a bar code reader. However, since the bar code has information only in the one-dimensional direction (line width direction), it is insufficient to have more information. Thus, a two-dimensional code having information in a two-dimensional direction has been developed, and it has become possible to greatly increase the amount of information that can be recorded. Currently, the two-dimensional code capable of recording the largest amount of information includes a matrix-type two-dimensional code. In Japan, QR (Quick Response) codes that emphasize high-speed reading are the most popular, and a new service using such a two-dimensional code has also been devised (Patent Document 1).

生産の現場では、製品の検査などでバーコードが利用されていた。例えば、基板の検査などでは、シリアル番号などの管理情報を記録したバーコードを基板に貼り付けておき、基板の良否の検査結果をバーコードリーダによってバーコードから読み取られた管理情報と併せて記録する管理手法が採られている。2次元コードは、バーコードよりも多くの情報を持てたり、同じ情報量ではバーコードより面積を小さくできたりすることから、上記の管理手法にも好適に用いられる。   At the production site, barcodes were used for product inspections. For example, when inspecting a substrate, a barcode on which management information such as a serial number is recorded is pasted on the substrate, and the inspection result of the quality of the substrate is recorded together with the management information read from the barcode by the barcode reader. Management method is adopted. Since the two-dimensional code can have more information than the barcode, or the area of the two-dimensional code can be smaller than the barcode with the same amount of information, the two-dimensional code is also preferably used in the management method.

上記の管理手法を用いたシステムとして、例えば、特許文献2に開示されたように、プログラマブル表示器を用いたシステムがある。このようなシステムでは、検査担当者が、プログラマブル表示器に表示された検査画面上で検査開始のボタンを押して、バーコードリーダからバーコードを読み取り操作をすると、検査装置が基板の検査を行い、その検査の結果が、バーコードで表される基板の情報をプログラマブル表示器にロギングされ、上位のコンピュータに送信される。   As a system using the above management method, for example, as disclosed in Patent Document 2, there is a system using a programmable display. In such a system, when an inspector presses an inspection start button on the inspection screen displayed on the programmable display and reads a barcode from the barcode reader, the inspection apparatus inspects the substrate, The result of the inspection is logged on the programmable display as the substrate information represented by the barcode, and is transmitted to the host computer.

プログラマブル表示器は、制御システムのHMI(Human Machine Interface) として、デバイスを制御するプログラマブルロジックコントローラ(PLC)と通信して、デバイスの状態を表示/制御する。PLCへの制御データは、プログラマブル表示器に表示された画面上で入力操作されてPLCに送信される。一方、デバイスから得られたデータはPLCからプログラマブル表示器に送信され、必要に応じてプログラマブル表示器の画面上に表示されたり、制御用ホストコンピュータに送信されたりする。
特開2002−109041号公報(2002年3月12日公開) 特開2002−015032号公報(2002年1月18日公開)
The programmable display communicates with a programmable logic controller (PLC) that controls the device as an HMI (Human Machine Interface) of the control system, and displays / controls the state of the device. The control data for the PLC is input on the screen displayed on the programmable display and transmitted to the PLC. On the other hand, the data obtained from the device is transmitted from the PLC to the programmable display, and is displayed on the screen of the programmable display or transmitted to the control host computer as necessary.
JP 2002-109041 A (published March 12, 2002) JP 2002-015032 A (published on January 18, 2002)

特許文献2に開示されたシステムは、バーコードリーダで読み取られたバーコードが表す情報は、プログラマブル表示器においては、通常のコンピュータで扱うことが可能なデータの形式で扱われる。これは、2次元コードを用いた場合でも同様と考えられる。このため、プログラマブル表示器のメモリに格納されたこのようなデータは、改ざんが可能な状態にあるといえる。   In the system disclosed in Patent Document 2, information represented by a barcode read by a barcode reader is handled in a data format that can be handled by a normal computer in a programmable display. This is considered the same even when a two-dimensional code is used. For this reason, it can be said that such data stored in the memory of the programmable display is in a state where it can be tampered with.

また、プログラマブル表示器と制御用コンピュータとの間においても、同様な形態でデータが送受信されることから、ネットワークなどの通信経路上でやはりデータの改ざんが可能であるといえる。   In addition, since data is transmitted and received between the programmable display and the control computer in the same manner, it can be said that data can be altered on a communication path such as a network.

製造業などにおける生産情報については、HACCPなどの情報履歴の収集義務やPart11などの情報改ざん防止規格に沿って、PLCへの制御データや生産結果といった様々な情報を収集し、確保しておく必要がある。   For production information in the manufacturing industry, etc., it is necessary to collect and secure various information such as control data to PLC and production results in accordance with the obligation to collect information history such as HACCP and information falsification prevention standards such as Part11. There is.

しかしながら、現状では、上記のようにプログラマブル表示器や通信経路上でデータ改ざんの虞があるにも関わらず、改ざんの可能性を低減させる手段が何ら講じられていない。また、現場で発生した生データ(テキストや数値情報)は、改ざんの可能性があるだけではなく、大量な情報量にもなると、伝達が遅くなったり、ハンドリングが難しくなったりする。 However, at present, no means has been taken to reduce the possibility of falsification despite the possibility of data falsification on the programmable display or communication path as described above. In addition, raw data (text and numerical information) generated in the field not only has the possibility of being tampered with, but if the amount of information becomes large, transmission becomes slow and handling becomes difficult.

本発明は、上記の問題点に鑑みてなされたものであり、2次元コードによるデータの改ざんの可能性を大幅に低減させることを目的としている。 The present invention has been made in view of the above-described problems, and an object thereof is to greatly reduce the possibility of data tampering with a two-dimensional code.

本発明のプログラマブル表示器は、外部装置から取得したデータをバイナリデータに変換するデータ変換手段と、前記バイナリデータを2次元コードの表示データに変換する2次元コード生成手段と、前記表示データを表示する2次元コード表示手段とを備えていることを特徴としている。   A programmable display according to the present invention includes a data conversion unit that converts data acquired from an external device into binary data, a two-dimensional code generation unit that converts the binary data into display data of a two-dimensional code, and displays the display data. And a two-dimensional code display means.

上記の構成では、データ変換手段によって、PLC、他のプログラマブル表示器、管理用のホストコンピュータなどの外部装置からのデータがバイナリデータに変換される。外部装置からのデータは、通常、一般のコンピュータで扱われるような(OSやアプリケーションプログラムに依存しない)テキストデータや文字データなどである。一方、バイナリデータは専用のアプリケーションプログラムなどによってのみ解読可能であるので、改ざんが困難である。また、変換されたバイナリデータは、データ変換手段によって、2次元コードの表示データに変換され、さらに2次元コード表示手段によって表示される。これにより、2次元コードの表示に供されるのはバイナリデータであるので、このようなデータの変換を行わない従来のプログラマブル表示器に比べて、データ改ざんの可能性を大幅に低減させることができる。   In the above configuration, data from an external device such as a PLC, another programmable display, or a management host computer is converted into binary data by the data conversion means. The data from the external device is text data or character data that is normally handled by a general computer (independent of the OS or application program). On the other hand, since binary data can be decoded only by a dedicated application program or the like, it is difficult to tamper with it. The converted binary data is converted into two-dimensional code display data by the data conversion means, and further displayed by the two-dimensional code display means. As a result, since it is binary data that is provided for the display of the two-dimensional code, the possibility of data tampering can be greatly reduced compared to conventional programmable displays that do not perform such data conversion. it can.

前記のプログラマブル表示器は、前記外部装置から取得した複数のデータを結合するデータ結合手段を備え、前記データ変換手段が、結合されたデータをバイナリデータに変換し、前記2次元コード生成手段が、結合されたデータから変換されたバイナリデータを2次元コードの表示データに変換することが好ましい。このような構成では、外部装置から取得した複数のデータがデータ結合手段によって結合されて新たなデータが生成される。この結合データは、前記のようにバイナリデータに変換され、さらに2次元コードの表示データに変換されると、2次元コード表示手段によって表示可能な状態となる。このように、プログラマブル表示器が2次元コード結合機能を備えることによって、既存の2次元コード結合ツールが必要なく、プログラマブル表示器において簡便に新たな2次元コードを生成することができる。   The programmable display includes a data combining unit that combines a plurality of data acquired from the external device, the data conversion unit converts the combined data into binary data, and the two-dimensional code generation unit includes: It is preferable to convert binary data converted from the combined data into display data of a two-dimensional code. In such a configuration, new data is generated by combining a plurality of data acquired from the external device by the data combining means. When the combined data is converted into binary data as described above, and further converted into display data of a two-dimensional code, the combined data can be displayed by the two-dimensional code display means. As described above, when the programmable display has the two-dimensional code combination function, an existing two-dimensional code combination tool is not required, and a new two-dimensional code can be easily generated on the programmable display.

前記のプログラマブル表示器は、タッチパネルを備え、前記データ変換手段が、前記タッチパネルから入力されたデータをバイナリデータに変換することが好ましい。この構成では、タッチパネルから入力されたPLCへの制御指示などのデータをもバイナリデータに変換して2次元コードとして表示することができる。   It is preferable that the programmable display device includes a touch panel, and the data conversion unit converts data input from the touch panel into binary data. In this configuration, data such as a control instruction to the PLC input from the touch panel can be converted into binary data and displayed as a two-dimensional code.

また、このプログラマブル表示器は、前記外部装置から取得したデータと前記タッチパネルから入力されたデータとを結合するデータ結合手段を備え、前記データ変換手段が、結合されたデータをバイナリデータに変換し、前記2次元コード生成手段が、結合されたデータから変換されたバイナリデータを2次元コードの表示データに変換することが好ましい。このような構成では、タッチパネルからの入力データをも結合データの元データとして扱われるので、そのデータをも他のデータと結合して新たな2次元コードを生成することができる。   In addition, the programmable display device includes a data combination unit that combines data acquired from the external device and data input from the touch panel, and the data conversion unit converts the combined data into binary data, Preferably, the two-dimensional code generation means converts binary data converted from the combined data into display data of a two-dimensional code. In such a configuration, since input data from the touch panel is also handled as original data of the combined data, the data can be combined with other data to generate a new two-dimensional code.

前記のいずれのプログラマブル表示器も、前記表示データをビットマップデータに変換するビットマップ変換手段と、変換されたビットマップデータを記憶手段に記憶させる記憶制御手段とを備えていることが好ましい。あるいは、前記のいずれのプログラマブル表示器も、前記表示データを画像データに変換する画像変換手段と、変換された画像データを記憶手段に記憶させる記憶制御手段とを備えていることが好ましい。このように、ビットマップ形式や例えばJPEGなどの画像データとしての形式にデータを変換して記憶手段に記憶することによって、これらのデータから2次元コードに記録された情報を読み取ることができないので、データ保護を確実にすることができる。   Any of the programmable displays preferably includes a bitmap conversion unit that converts the display data into bitmap data, and a storage control unit that stores the converted bitmap data in the storage unit. Alternatively, any of the programmable displays preferably includes an image conversion unit that converts the display data into image data, and a storage control unit that stores the converted image data in the storage unit. Thus, by converting the data into a bitmap format or a format as image data such as JPEG and storing it in the storage means, information recorded in the two-dimensional code cannot be read from these data. Data protection can be ensured.

また、前記記憶手段がプログラマブル表示器と着脱可能な外部メモリであることにより、その外部メモリを他のコンピュータなどで読み込ませて2次元コードとして表示することができる。そして、その2次元コードをデータに展開できるツールを用いることにより、ネットワークを介してプログラマブル表示器と接続されていないコンピュータ側においても、データの展開が可能となる。それゆえ、データのハンドリングが容易になる。   Further, since the storage means is an external memory that can be attached to and detached from the programmable display, the external memory can be read by another computer or the like and displayed as a two-dimensional code. Then, by using a tool that can develop the two-dimensional code into data, the data can be developed even on the computer side that is not connected to the programmable display device via the network. Therefore, data handling becomes easy.

前記プログラマブル表示器は、変換された前記バイナリデータを外部の送信先に送信する送信手段を備えていることが好ましい。これにより、データの通信路上でのデータの改ざんの可能性を大幅に低減させることができる。 It is preferable that the programmable display includes a transmission unit that transmits the converted binary data to an external transmission destination. As a result, the possibility of falsification of data on the data communication path can be greatly reduced .

本発明のプログラマブル表示器は、外部装置から取得したデータをバイナリデータに変換するデータ変換手段と、前記バイナリデータを2次元コードの表示データに変換する2次元コード生成手段と、前記表示データを表示する2次元コード表示手段とを備えることにより、データの改ざんの可能性を大幅に低減させるだけでなく、データを2次元コードで管理してプログラマブル表示器が保有する情報量を削減することができる。したがって、より高度な情報管理を実現することができるという効果を奏する。 A programmable display according to the present invention includes a data conversion unit that converts data acquired from an external device into binary data, a two-dimensional code generation unit that converts the binary data into display data of a two-dimensional code, and displays the display data. By providing the two-dimensional code display means, the possibility of falsification of the data can be greatly reduced, and the amount of information held by the programmable display can be reduced by managing the data with the two-dimensional code. . Therefore, there is an effect that more advanced information management can be realized.

本発明の一実施形態について図1ないし図5に基づいて説明すると以下の通りである。   An embodiment of the present invention will be described below with reference to FIGS.

図1に示すように、本実施の形態に係る制御システム1は、複数のプログラマブル表示器2…と、複数のPLC3…と、ホストコンピュータ4とを備えている。   As shown in FIG. 1, the control system 1 according to the present embodiment includes a plurality of programmable displays 2, a plurality of PLCs 3, and a host computer 4.

プログラマブル表示器2…およびホストコンピュータ4は、共通の通信プロトコル(共通通信プロトコル)で通信を行うことが可能なイーサネット(登録商標)などからなるローカルエリアネットワーク(LAN)のような共通ネットワーク5を介して互いに接続されている。一方、プログラマブル表示器2およびPLC3は、PLC3毎に固有の通信プロトコル(専用通信プロトコル)で通信を行うことが可能なシリアルケーブルなどからなる専用ネットワーク6を介して個々に接続されている。   The programmable displays 2... And the host computer 4 are connected via a common network 5 such as a local area network (LAN) that can be communicated with a common communication protocol (common communication protocol). Are connected to each other. On the other hand, the programmable display 2 and the PLC 3 are individually connected via a dedicated network 6 including a serial cable that can communicate with each PLC 3 using a unique communication protocol (dedicated communication protocol).

専用通信プロトコルは、PLC3がシーケンサから発達してきた経緯もあって、製造会社毎、あるいは、同一会社であっても製品毎など、PLC3の機種毎に異なっていることが多い。したがって、例えば、各PLC3とホストコンピュータ4とを相互に接続してネットワークを構築しようとすると、制御システム1内のPLC3の機種を統一する必要があり、大規模な制御システム1を構築することが難しい。   The dedicated communication protocol is often different for each PLC 3 model, such as for each manufacturing company or for each product even if it is the same company because the PLC 3 has been developed from a sequencer. Therefore, for example, if the PLC 3 and the host computer 4 are connected to each other to construct a network, it is necessary to unify the models of the PLC 3 in the control system 1, and the large-scale control system 1 can be constructed. difficult.

これに対して、本実施形態に係る制御システム1は、各PLC3にそれぞれ接続されるプログラマブル表示器2およびホストコンピュータ4を共通ネットワーク5で接続すると共に、共通ネットワーク5で使用する共通通信プロトコルとして、専用通信プロトコルとは独立して定めた共通のプロトコルを採用している。さらに、各プログラマブル表示器2は、後述するように、プロトコルを変換する機能も有しており、例えば、命令コードの変換や引数の変換あるいは伝送時の制御コードの変換などのプロトコル変換を行って、ホストコンピュータ4や他のプログラマブル表示器2と、自機器に接続されたPLC3との通信を中継する。   On the other hand, the control system 1 according to the present embodiment connects the programmable display 2 and the host computer 4 respectively connected to each PLC 3 through the common network 5 and uses the common network 5 as a common communication protocol. A common protocol determined independently of the dedicated communication protocol is adopted. Furthermore, each programmable display device 2 has a function of converting a protocol, as will be described later, for example, by performing protocol conversion such as instruction code conversion, argument conversion, or control code conversion during transmission. The communication between the host computer 4 and other programmable display 2 and the PLC 3 connected to the own device is relayed.

このような構成では、ホストコンピュータ4やプログラマブル表示器2など、共通ネットワーク5上の機器は、他のプログラマブル表示器2に接続されているPLC3の機種によらず、共通ネットワーク5を介して共通のプロトコルで通信できる。この結果、制御システム1内に、互いに異なる機種のPLC3を混在させやすくなる。また、上記の構成において、プログラマブル表示器2は、PLC3が相互に接続される構成と異なって制御システム1に必須の構成であり、しかも、HMIとして動作するためPLC3に比べて演算能力に余力があるので、通信の大半を処理する。例えば、画面データのダウンロードのように、ホストコンピュータ4とプログラマブル表示器2とが通信する際の通信路から、PLC3を除外できる。したがって、PLC3の負担を軽減でき、制御システム1全体に必要な演算能力を削減できる。なお、プログラマブル表示器2は、オペレータの操作を待ち受けている間、演算能力に余力があるので、プロトコル変換のために演算能力を向上させることなく、プロトコル変換できる。   In such a configuration, devices on the common network 5 such as the host computer 4 and the programmable display 2 are common via the common network 5 regardless of the model of the PLC 3 connected to the other programmable display 2. Can communicate with protocol. As a result, it is easy to mix different types of PLCs 3 in the control system 1. Further, in the above configuration, the programmable display 2 is an essential configuration for the control system 1 unlike the configuration in which the PLCs 3 are connected to each other. Further, since the programmable display 2 operates as an HMI, it has a surplus in computing capacity compared to the PLC 3. Because there is, it handles most of the communication. For example, the PLC 3 can be excluded from the communication path when the host computer 4 and the programmable display 2 communicate with each other like downloading screen data. Therefore, the load on the PLC 3 can be reduced, and the calculation capability required for the entire control system 1 can be reduced. Note that the programmable display device 2 can perform protocol conversion without improving the calculation capability for protocol conversion because the calculation capability is available while waiting for an operator's operation.

PLC3は、制御システムプログラムにしたがって、入力ユニットを介して入力用のデバイス7から出力される出力データを取り込むとともに、出力用のデバイス7に制御データを与える。入力用のデバイス7しては、センサ(温度センサ、光センサなど)、スイッチ(押ボタンスイッチ、リミットスイッチ、圧力スイッチなど)のような機器が用いられる。出力用のデバイス7としては、アクチュエータ、リレー、電磁弁、表示器などが用いられる。これらのデバイス7…は、製造ラインなどの各種のターゲットシステムの所要各部に配置される。また、デバイス7は、後述するタッチパネル27などの入力装置から手動で入力されたデータを格納するための後述するデータメモリ25における特定の領域であってもよい。   The PLC 3 captures output data output from the input device 7 via the input unit in accordance with the control system program, and gives control data to the output device 7. As the input device 7, devices such as sensors (temperature sensors, optical sensors, etc.) and switches (push button switches, limit switches, pressure switches, etc.) are used. As the output device 7, an actuator, a relay, a solenoid valve, a display, or the like is used. These devices 7 are arranged in required portions of various target systems such as a production line. The device 7 may be a specific area in a data memory 25 (to be described later) for storing data manually input from an input device such as a touch panel 27 (to be described later).

PLC3内のメモリには、入出力メモリにデバイスアドレスを指定することにより、ワードデバイスおよびビットデバイスが格納場所を特定可能に設定されている。ワードデバイスは、入出力されるデータが数値のようなワードデータに対して設定され、ビットデバイスは、オン・オフ状態のようなビットデータに対して設定される。このような設定により、PLC3内の任意のワードデバイスまたはビットデバイスをアクセスするだけでデバイス7…を制御し、またはその状態に関する情報を個別に取り出すことができる。   The memory in the PLC 3 is set so that the storage location of the word device and the bit device can be specified by specifying the device address in the input / output memory. In the word device, input / output data is set for word data such as a numerical value, and the bit device is set for bit data such as an on / off state. With such a setting, it is possible to control the devices 7 simply by accessing any word device or bit device in the PLC 3, or to individually retrieve information relating to the state thereof.

プログラマブル表示器2は、CPUなどの演算処理装置を備えており、制御プログラムを実行することによりプログラマブル表示器特有の操作機能および表示機能を実現するコンピュータである。制御システム1のHMIとして好適に使用されるプログラマブル表示器2は、後述する処理指示語(タグ)を組み合わせて決定される画面データに基づいて、デバイス7の状態を画面表示する際の動作や、画面への操作に応じてデバイス7の状態を制御する際の動作を特定する。   The programmable display 2 is a computer that includes an arithmetic processing unit such as a CPU, and realizes an operation function and a display function specific to the programmable display by executing a control program. The programmable display 2 that is preferably used as the HMI of the control system 1 is based on screen data determined by combining processing instructions (tags) to be described later. The operation for controlling the state of the device 7 in accordance with the operation on the screen is specified.

このプログラマブル表示器2は、専用ネットワーク6を介したPLC3との通信により、自機に接続されたPLC3を介して、あるいは、他のプログラマブル表示器2や、それに接続されたPLC3を介して、表示画面に状態を表示する各デバイス7の状態を取得し、例えば、後述のディスプレイ28に各デバイス7の状態を表示する機能を有する。また、プログラマブル表示器2は、後述のタッチパネル27への操作に応じて、デバイス7へ状態制御を指示する機能を有する。   This programmable display 2 is displayed via the PLC 3 connected to its own device by communication with the PLC 3 via the dedicated network 6, or through the other programmable display 2 and the PLC 3 connected thereto. For example, it has a function of acquiring the state of each device 7 that displays the state on the screen and displaying the state of each device 7 on a display 28 described later. The programmable display 2 has a function of instructing the device 7 to perform state control in response to an operation on the touch panel 27 described later.

なお、デバイス7の状態の取得/変更は、その都度指示してもよいし、プログラマブル表示器2内にキャッシュを用意し、取得/変更時には、キャッシュへアクセスするとともに、所定の時間間隔毎や所定のイベント毎に通信してデバイス7のデバイスアドレスの実体と同期を取ってもよい。   The acquisition / change of the state of the device 7 may be instructed each time, or a cache is prepared in the programmable display 2 and the cache is accessed at the time of acquisition / change, and at predetermined time intervals or at predetermined intervals. It is also possible to synchronize with the actual device address of the device 7 by communicating for each event.

プログラマブル表示器2は、上記の機能を実現するために、HMI処理部21と、システムメモリ22、プログラムメモリ23、データメモリ24、スキャナインターフェース部(図中、スキャナI/F)25、メモリカードインターフェース部(図中、メモリカードI/F)26、タッチパネル27、ディスプレイ28、インターフェース部(図中、I/F)29a,29bおよびプリンタインターフェース部30(図中、プリンタI/F)を備えている。以下、プログラマブル表示器2の主要各部について詳細に説明する。   In order to realize the above functions, the programmable display 2 includes an HMI processing unit 21, a system memory 22, a program memory 23, a data memory 24, a scanner interface unit (scanner I / F in the figure) 25, a memory card interface. Section (memory card I / F in the figure) 26, touch panel 27, display 28, interface sections (I / F in the figure) 29a and 29b, and printer interface section 30 (printer I / F in the figure). . Hereinafter, each main part of the programmable display device 2 will be described in detail.

スキャナインターフェース部25は、スキャナ8からの読み取りデータを取り込んでHMI処理部21に伝達する通信制御部である。   The scanner interface unit 25 is a communication control unit that captures read data from the scanner 8 and transmits the read data to the HMI processing unit 21.

スキャナ8は、2次元コードを読み取る機能を有しており、読み取った2次元コードを一般のコンピュータで扱うことのできる通常のデータ(以降、コンピュータデータと称する)に変換する。スキャナ8は、2次元コードの白セルと黒セルとの配列から2次元コードに記録されている情報をデコードすることにより上記のようなデータを得るように構成されている。例えば、前述のQRコードを読み取るスキャナ8は、特開2003−281482号公報に開示されているコード読取装置のように構成されていてもよい。また、コンピュータデータとしては、英数字、仮名文字、漢字などの文字に固有のコードを割り当てた文字コード(例えば、ASCIIコード、JISコード、Unicode)、テキストデータ、図形データなどがある。   The scanner 8 has a function of reading a two-dimensional code, and converts the read two-dimensional code into normal data that can be handled by a general computer (hereinafter referred to as computer data). The scanner 8 is configured to obtain the above data by decoding information recorded in the two-dimensional code from the array of white cells and black cells of the two-dimensional code. For example, the scanner 8 that reads the above-described QR code may be configured as a code reading device disclosed in Japanese Patent Laid-Open No. 2003-281482. The computer data includes character codes (for example, ASCII code, JIS code, Unicode), text data, graphic data, etc., in which unique codes are assigned to characters such as alphanumeric characters, kana characters, and kanji.

メモリカードインターフェース部26は、メモリカード9に対するデータの書き込みおよび読み出しを行なうリーダ/ライタである。メモリカード9としては、小型かつ大容量のCF(登録商標)カードが好適である。   The memory card interface unit 26 is a reader / writer that writes and reads data to and from the memory card 9. As the memory card 9, a small and large-capacity CF (registered trademark) card is suitable.

タッチパネル27は、ディスプレイ28の表示画面上で入力を行うために設けられている入力装置である。ディスプレイ28は、プログラマブル表示器2を薄型に構成するために、液晶ディスプレイやELディスプレイのような平板型ディスプレイが好適に用いられる。   The touch panel 27 is an input device provided for performing input on the display screen of the display 28. The display 28 is preferably a flat display such as a liquid crystal display or an EL display in order to configure the programmable display device 2 to be thin.

インターフェース部29aは、プログラマブル表示器2がホストコンピュータ4または他のプログラマブル表示器2との間の通信を行うための通信制御部であり、共通ネットワーク5に接続されている。この共通ネットワーク5を介した通信により、ホストコンピュータ4または各プログラマブル表示器2との間でデータ送信が行われる。一方、インターフェース部29bは、プログラマブル表示器2がPLC3との間の通信を行うための通信制御部であり、専用ネットワーク6に接続されている。この専用ネットワーク6を介した通信により、PLC3との間でデータ送信が行われる。   The interface unit 29 a is a communication control unit for the programmable display 2 to communicate with the host computer 4 or another programmable display 2, and is connected to the common network 5. Data is transmitted to or from the host computer 4 or each programmable display 2 by communication via the common network 5. On the other hand, the interface unit 29b is a communication control unit for the programmable display device 2 to communicate with the PLC 3, and is connected to the dedicated network 6. Data is transmitted to and from the PLC 3 by communication via the dedicated network 6.

プリンタインターフェース部30は、HMI処理部21からの印刷データを取り込んでプリンタ10に伝達する通信制御部である。   The printer interface unit 30 is a communication control unit that takes in print data from the HMI processing unit 21 and transmits it to the printer 10.

なお、本実施の形態では、プログラマブル表示器2とデータのやり取りを行なう制御装置としてPLC3について説明しているが、これに限らず、温調器やインバータも制御装置としてプログラマブル表示器2と接続可能である。   In the present embodiment, the PLC 3 is described as a control device for exchanging data with the programmable display 2. However, the present invention is not limited to this, and a temperature controller and an inverter can be connected to the programmable display 2 as a control device. It is.

このように構成される通信システムにおいては、PLC3からの出力データが、プログラマブル表示器2に送信され、さらにそのプログラマブル表示器2を介してホストコンピュータ4や他のプログラマブル表示器2に転送される。また、プログラマブル表示器2に設定されたデータは直接PLC3に送信されるだけでなく、ホストコンピュータ4や他のプログラマブル表示器2から送信されてきた設定データが、通信先のPLC3に接続されたプログラマブル表示器2を介してそのPLC3に転送される。   In the communication system configured as described above, output data from the PLC 3 is transmitted to the programmable display 2 and further transferred to the host computer 4 or another programmable display 2 via the programmable display 2. In addition, the data set in the programmable display 2 is not only directly transmitted to the PLC 3, but also the setting data transmitted from the host computer 4 or another programmable display 2 is connected to the PLC 3 as the communication destination. It is transferred to the PLC 3 via the display 2.

HMI処理部21は、後述するユーザ画面の表示制御、プロトコル変換およびデータ配信の処理、2次元コードの処理などを行うために各種の演算処理やデータ処理を行う。   The HMI processing unit 21 performs various arithmetic processes and data processes in order to perform user screen display control, protocol conversion, data distribution processing, two-dimensional code processing, and the like, which will be described later.

プロトコル変換処理は、両ネットワーク5,6での通信プロトコルが互いに異なる場合、システムメモリ22に記憶された後述のプロトコル変換データを参照しながら、一方の通信プロトコルから他方の通信プロトコルへ変換する処理である。データ配信処理は、予め設定された配信条件が満たされたときに、デバイス7からPLC3のメモリに取り込まれてPLC3からプログラマブル表示器2に送信されてきた出力データを、指定された配信先、すなわちホストコンピュータ4または他のプログラマブル表示器2に配信する処理である。   The protocol conversion process is a process of converting from one communication protocol to the other communication protocol while referring to protocol conversion data described later stored in the system memory 22 when the communication protocols in the two networks 5 and 6 are different from each other. is there. In the data distribution process, when a preset distribution condition is satisfied, the output data taken from the device 7 into the memory of the PLC 3 and transmitted from the PLC 3 to the programmable display device 2 is designated as a specified distribution destination, that is, This is a process of delivering to the host computer 4 or other programmable display device 2.

システムメモリ22は、プロトコル変換プログラム、データ配信プログラムおよびプロトコル変換データを格納するとともに、表示制御処理を行うための表示制御システムプログラムをも格納している。また、プログラムメモリ23は、ユーザが作成した画面データを格納している。   The system memory 22 stores a protocol conversion program, a data distribution program, and protocol conversion data, and also stores a display control system program for performing display control processing. The program memory 23 stores screen data created by the user.

データメモリ24は、主に、表示制御などの演算処理時の作業用に用いられる他、PLC3との間でやり取りされるデータの一時的な記憶に用いられる他、PLC3から得られたデータをロギングしたり、PLC3に与える設定値データ(レシピデータ)を記憶したりするために用いられる。また、データメモリ24は、2次元コードの処理過程で得られた各種のデータを一時的に記憶する領域を提供する。   The data memory 24 is mainly used for operations at the time of arithmetic processing such as display control, is used for temporary storage of data exchanged with the PLC 3, and logs data obtained from the PLC 3. Or setting value data (recipe data) to be given to the PLC 3 is used. The data memory 24 provides an area for temporarily storing various data obtained in the process of processing the two-dimensional code.

上記の表示制御システムプログラム(表示制御プログラム)は、画像表示制御を行うための基本機能を実現するためのプログラムである。この表示制御システムプログラムがHMI処理部21において実現する機能については、後に詳しく説明する。   The display control system program (display control program) is a program for realizing a basic function for performing image display control. The functions realized by the display control system program in the HMI processing unit 21 will be described in detail later.

プロトコル変換データは、専用ネットワーク6と共通ネットワーク5との間で通信プロトコルを相互変換できれば、どのような形式でもよいが、本実施の形態では、専用ネットワーク6で伝送されるデータのフォーマットを示すデータ転送フォーマットと、両ネットワーク5,6で伝送されるコマンドコード間の対応関係を示すコマンド変換テーブルとを記憶している。   The protocol conversion data may be in any format as long as the communication protocol can be mutually converted between the dedicated network 6 and the common network 5, but in the present embodiment, data indicating the format of data transmitted on the dedicated network 6 A transfer format and a command conversion table indicating the correspondence between command codes transmitted in both networks 5 and 6 are stored.

通信プロトコル(専用通信プロトコル)は、PLC3との通信処理で用いられるプロトコルであり、PLC3の機種(メーカ)に応じて固有に定められている。この通信プロトコルには、PLC3へのデータの読み出しを指示するコマンドコードが含まれている。このコマンドコードは、PLC3の制御機能に対応付けられているアドレスと組み合わされることによって、所望の制御機能についてのデータをPLC3に送信することができる。   The communication protocol (dedicated communication protocol) is a protocol used in communication processing with the PLC 3, and is uniquely determined according to the model (manufacturer) of the PLC 3. This communication protocol includes a command code that instructs reading of data to the PLC 3. By combining this command code with an address associated with the control function of the PLC 3, data regarding a desired control function can be transmitted to the PLC 3.

ユーザ画面のデータである画面データは、ディスプレイ28に表示すべきベース画面やパーツのデータおよび各パーツに付与された後述する処理指示語Wなどを含んでいる。画面データは、作画エディタによって作成されて、プログラムメモリ23にダウンロードされている。画面データは、ベース画面データおよびパーツデータを含んでいる。   The screen data that is the data of the user screen includes a base screen to be displayed on the display 28, data of parts, a processing instruction word W described later assigned to each part, and the like. The screen data is created by the drawing editor and downloaded to the program memory 23. The screen data includes base screen data and part data.

ベース画面データは、ターゲットシステムなどを模した背景画面となるベース画面のデータであって、ベース画面上にパーツや図形などが配される。ベース画面には、後述のパーツやタグがシンボルとして合成される。   The base screen data is data of a base screen that is a background screen imitating the target system and the like, and parts and figures are arranged on the base screen. Parts and tags described later are synthesized as symbols on the base screen.

パーツデータは、後述する作画エディタ23を用いてユーザによって選択された、ベース画面と組み合わされる1つ以上のパーツデータからなる。作画エディタ23に用意されているパーツは、ベース画面上に表示させるスイッチや設定値表示器などのデバイスデータを反映させる機器が画像化された図形や、グラフなどの動的変化をベース画面上の任意の位置で表現させるための図形などとして表現される。これらの図形をデバイス7の状態に応じて動的に表示するための動画機能や画面上からのタッチ入力による各処理は、下記の処理指示語W(タグ)によって実現され、ユーザによって任意に設定できる他、ユーザが扱いやすいように、上記のような図形に組み込まれて予め用意されている。   The part data is composed of one or more part data combined with the base screen selected by the user using the drawing editor 23 described later. The parts prepared in the drawing editor 23 display dynamic changes such as graphics and graphs on which devices reflecting device data such as switches and setting value displays displayed on the base screen are displayed on the base screen. It is expressed as a graphic to be expressed at an arbitrary position. Each processing by the moving image function for dynamically displaying these figures according to the state of the device 7 and touch input from the screen is realized by the following processing instruction word W (tag), and is arbitrarily set by the user. In addition, it is prepared in advance so as to be incorporated in the graphic as described above so that the user can easily handle it.

ベース画面およびパーツデータを基本構成として備えるユーザ画面においては、パーツがタグ機能によりデバイス7の動作に応じて動くように設計されており、デバイス7の動作状況が視覚化されている。   In the user screen having the base screen and the part data as basic configurations, the parts are designed to move according to the operation of the device 7 by the tag function, and the operation status of the device 7 is visualized.

図2(a)に示すように、画面データに含まれる処理指示語Wは、ベース画面上で実行されるべき事象毎に作成されている。この処理指示語Wは、基本的には、表示制御動作を実行すべきベース画面のファイル番号Fと、このベース画面上で実行すべき動作内容を特定する事象名Tと、各実行事象毎に参照される1または複数のデータからなる参照情報Rとを一組として備えている。   As shown in FIG. 2A, the processing instruction word W included in the screen data is created for each event to be executed on the base screen. The processing instruction word W basically includes the file number F of the base screen on which the display control operation is to be executed, the event name T for specifying the operation content to be executed on the base screen, and the execution event for each execution event. A set of reference information R including one or a plurality of data to be referred to is provided.

本実施形態に係るプログラマブル表示器2では、図2(b)に示すコンピュータデータからバイナリデータへのデータ変換のための処理指示語W1と、図2(c)に示すバイナリデータから2次元コードを表示させるための処理指示語W2と、図2(d)に示すタッチ入力による情報の表示のための処理指示語W3とが、2次元コード処理タグTG(図3参照)として規定されている。この2次元コード処理タグTGは、複数の単位画面の少なくとも1つと関連付けることができる。   In the programmable display device 2 according to the present embodiment, a processing instruction word W1 for data conversion from computer data to binary data shown in FIG. 2B and a two-dimensional code from the binary data shown in FIG. A processing instruction word W2 for display and a processing instruction word W3 for displaying information by touch input shown in FIG. 2D are defined as a two-dimensional code processing tag TG (see FIG. 3). The two-dimensional code processing tag TG can be associated with at least one of the plurality of unit screens.

処理指示語W1は、ベース画面のファイル番号F1と、HMI処理部21によってコンピュータデータからバイナリデータへ変換するという事象の事象名N1と、参照情報Rとを含んでいる。この参照情報Rは、コンピュータデータが記憶されているメモリから読み出す読出メモリアドレスA1と、変換されたバイナリデータをメモリへ書き込む書込メモリアドレスA2とを含んでいる。HMI処理部21は、この処理指示語W1によって、データ変換の対象となるコンピュータデータの変換が指示されると、データメモリ24における読出メモリアドレスA1からコンピュータデータを読み出してバイナリデータに変換し、データメモリ24の書込メモリアドレスA2に書き込む。   The processing instruction word W1 includes the file number F1 of the base screen, the event name N1 of the event that the HMI processing unit 21 converts computer data into binary data, and reference information R. The reference information R includes a read memory address A1 that is read from a memory in which computer data is stored, and a write memory address A2 that writes the converted binary data to the memory. When the processing instruction word W1 instructs conversion of the computer data to be converted, the HMI processing unit 21 reads the computer data from the read memory address A1 in the data memory 24 and converts it into binary data. Write to the write memory address A2 of the memory 24.

また、処理指示語W1において、事象名N1をHMI処理部21によって2つのコンピュータデータを結合する事象名に変え、参照情報Rの読出メモリアドレスA1と書込メモリアドレスA2とをそれぞれコンピュータデータを読み出す読出メモリアドレスA3と結合後の書込メモリアドレスA4とに変えることによって、異なる2つのコンピュータデータを結合する処理指示語W11が設定される。   In the processing instruction word W1, the event name N1 is changed to an event name that combines two computer data by the HMI processing unit 21, and the computer data is read from the read memory address A1 and the write memory address A2 of the reference information R, respectively. By changing to the read memory address A3 and the combined write memory address A4, a processing instruction word W11 for combining two different computer data is set.

処理指示語W2は、ベース画面のファイル番号F1と、バイナリデータから2次元コードを表示するという事象の事象名N2と、参照情報Rとを含んでいる。この参照情報Rは、データメモリ24におけるバイナリデータが書き込まれている書込メモリアドレスA2と、2点X1,X2を結ぶ直線を対角線とする方形で定まる表示領域を特定する表示座標範囲(X1,X2)とを含んでいる。HMI処理部21の後述する表示制御部11は、この処理指示語W2によって、書込メモリアドレスA2より読み出されたバイナリデータから2次元コードを形成して表示する。   The processing instruction word W2 includes a file number F1 of the base screen, an event name N2 of an event of displaying a two-dimensional code from binary data, and reference information R. This reference information R is a display coordinate range (X1, X1) that specifies a display area defined by a rectangle whose diagonal line is a straight line connecting the two points X1, X2 with the write memory address A2 in which binary data is written in the data memory 24. X2). The display control unit 11 (to be described later) of the HMI processing unit 21 forms and displays a two-dimensional code from the binary data read from the write memory address A2 by the processing instruction word W2.

処理指示語W3は、ベース画面のファイル番号F1と、2次元コードの情報を表示するという事象の事象名N3と、参照情報Rとを含んでいる。この参照情報Rは、上記の表示座標範囲(X1,X2)と同じ範囲の有効入力座標範囲(X1,X2)と、表示する情報がコンピュータデータとして格納されているデータメモリ24における読出メモリアドレスA1,A3と、その情報を表示するウインドウ(ユーザ画面)のファイル番号F2と、そのウインドウにおける情報の表示領域を特定する表示座標範囲(X3,X4)を含んでいる。表示制御部11は、この処理指示語W3によって、表示された2次元コードがタッチされると、その2次元コードに記録された情報を読出メモリアドレスA1,A3から読み出されたコンピュータデータに基づいて所定の表示座標範囲に表示する。   The processing instruction word W3 includes the file number F1 of the base screen, the event name N3 of the event of displaying the information of the two-dimensional code, and the reference information R. The reference information R includes an effective input coordinate range (X1, X2) in the same range as the display coordinate range (X1, X2) and a read memory address A1 in the data memory 24 in which information to be displayed is stored as computer data. , A3, the file number F2 of the window (user screen) for displaying the information, and the display coordinate range (X3, X4) for specifying the information display area in the window. When the displayed two-dimensional code is touched by the processing instruction word W3, the display control unit 11 reads the information recorded in the two-dimensional code based on the computer data read from the read memory addresses A1 and A3. To display in a predetermined display coordinate range.

HMI処理部21が有する表示制御機能は、図3に示すように、表示制御部11によって実現される。この表示制御部11は、前述の表示制御システムプログラムを実行することにより実現される機能のブロックであり、それぞれの機能として、データ変換部11a、2次元コード生成部11bおよびデータ結合部11cを有している。   The display control function of the HMI processing unit 21 is realized by the display control unit 11 as shown in FIG. The display control unit 11 is a block of functions realized by executing the above-described display control system program, and includes a data conversion unit 11a, a two-dimensional code generation unit 11b, and a data combination unit 11c as the respective functions. is doing.

表示制御部11は、上記の処理指示語Wを繰り返し読み出して、各処理指示語Wの事象名Tで特定される内容の動作を、読み込まれたPLC3側の状態情報を参照しながら実行する。これによって、PLC3のビットデバイスまたはワードデバイスの状態の変化に応じて変化する表示動作が実行され、PLC3から取得したデバイス7の状態がユーザ画面におけるパーツの表示状態に反映される。表示においては、画面データに基づいてVRAMなどを用いてディスプレイ28にユーザ画面を描画させる。   The display control unit 11 repeatedly reads out the processing instruction word W and executes the operation specified by the event name T of each processing instruction word W while referring to the read state information on the PLC 3 side. As a result, a display operation that changes according to a change in the state of the bit device or word device of the PLC 3 is executed, and the state of the device 7 acquired from the PLC 3 is reflected in the display state of the parts on the user screen. In the display, a user screen is drawn on the display 28 using a VRAM or the like based on the screen data.

表示制御部11は、制御指示を与えることなどのためにデバイス7の状態を変更するとき、処理指示語Wを繰り返し読み出して、各処理指示語Wにおける参照情報Rに含まれる、ユーザ画面の所定の領域におけるタッチ位置を特定するための、タッチによる入力が有効となる有効入力座標範囲、およびタッチパネル27の操作(数値入力操作、ON/OFF操作など)を特定する事象名Tなどで特定される内容の動作をPLC3に書き込む。   When the display control unit 11 changes the state of the device 7 to give a control instruction or the like, the display control unit 11 repeatedly reads out the processing instruction word W, and the predetermined number on the user screen included in the reference information R in each processing instruction word W is displayed. Specified by an effective input coordinate range in which touch input is valid and an event name T that specifies an operation (numerical value input operation, ON / OFF operation, etc.) of the touch panel 27. The content operation is written to the PLC 3.

前述の画面データは、画面単位で形成されるファイル形式で画面ファイルSFとしてプログラムメモリ23に格納されている。2次元コードを表示するための画面(後に詳述する)の画面ファイルSFは、前述の2次元コード処理タグTGを持っている。また、表示制御部11は、上記の2次元コードを表示するための画面を表示するが、その表示した状態で2次元コード処理タグTGで特定される動作を実行する。   The aforementioned screen data is stored in the program memory 23 as a screen file SF in a file format formed in units of screens. A screen file SF of a screen for displaying a two-dimensional code (described in detail later) has the above-described two-dimensional code processing tag TG. Further, the display control unit 11 displays a screen for displaying the above-described two-dimensional code, and executes an operation specified by the two-dimensional code processing tag TG in the displayed state.

データ変換部11aは、図4に示すデータメモリ24におけるコンピュータデータ領域24aの単独データ領域(図示せず)から読み出されたコンピュータデータをバイナリデータに変換して、データメモリ24のバイナリデータ領域24bに格納する。バイナリデータは、データメモリ24以外の一時記憶メモリに格納されてもよい。また、データ変換部11aは、ユーザによる画面上での操作入力などのトリガを受けて表示制御部11からメモリカード9への書き込みが指示されると、2次元コード生成部11bによって後述するようにして生成された2次元コードの表示データを指定されたビットマップデータまたはJPEG(Joint Photographic Experts Group)などの画像データに変換して、図4に示すデータメモリ24のビットマップデータ領域24cまたはJPEGデータ領域24dに格納する。   The data converter 11a converts computer data read from a single data area (not shown) of the computer data area 24a in the data memory 24 shown in FIG. 4 into binary data, and outputs a binary data area 24b of the data memory 24. To store. The binary data may be stored in a temporary storage memory other than the data memory 24. Further, when the data conversion unit 11a receives a trigger such as an operation input on the screen by the user and is instructed to write to the memory card 9 from the display control unit 11, the two-dimensional code generation unit 11b performs as described later. The display data of the two-dimensional code generated in this way is converted into designated bitmap data or image data such as JPEG (Joint Photographic Experts Group), and the bitmap data area 24c or JPEG data in the data memory 24 shown in FIG. Store in area 24d.

表示制御部11は、変換されたビットマップデータまたはJPEGデータをメモリカードI/F26に渡し、メモリカード9への書き込みを指示する。また、表示制御部11は、ユーザの指示に応じてビットマップファイルまたはJPEGファイルをホストコンピュータ4または他のプログラマブル表示器2に送信する。さらに、送信手段としての表示制御部11は、ユーザの指示に応じてバイナリデータをメモリカードI/F26に渡し、メモリカード9への書き込みを指示したり、ホストコンピュータ4または他のプログラマブル表示器2にも送信したりする。   The display control unit 11 passes the converted bitmap data or JPEG data to the memory card I / F 26 and instructs writing to the memory card 9. Further, the display control unit 11 transmits a bitmap file or a JPEG file to the host computer 4 or another programmable display device 2 in accordance with a user instruction. Further, the display control unit 11 serving as a transmission unit passes binary data to the memory card I / F 26 in accordance with a user instruction to instruct writing to the memory card 9 or the host computer 4 or other programmable display device 2. Or send it to.

2次元コード生成部11bは、データメモリ24のバイナリデータ領域24bから読み出されたバイナリデータを元に2次元コードの表示データ(画像データ)を生成する。2次元コードにおけるデータ記録領域は、基本的に白いセルと黒いセルとから構成されており、バイナリデータを構成する“0”,“1”の2値がそれぞれ白セル,黒セルのいずれかと対応する。2次元コード生成部11bは、その対応関係に基づいて、バイナリデータの2値を対応する両セルに変換するとともに、制御用や基準位置特定用などの記録すべきデータ以外のコード化された情報を付加する。2次元コード生成部11bは、ユーザによる画面上での操作入力などのトリガを受けて表示制御部11から指示されると、前述の処理指示語W2にしたがって、バイナリデータから2次元コードの表示データを生成する。表示制御部11は、その2次元コードの表示データに基づいてディスプレイ28に2次元コードを表示する。   The two-dimensional code generator 11b generates two-dimensional code display data (image data) based on the binary data read from the binary data area 24b of the data memory 24. The data recording area in the two-dimensional code is basically composed of white cells and black cells, and binary values “0” and “1” constituting binary data correspond to either white cells or black cells, respectively. To do. Based on the correspondence, the two-dimensional code generator 11b converts the binary data binary into corresponding cells, and also encodes information other than the data to be recorded, such as for control and for reference position specification. Is added. Upon receiving a trigger such as an operation input on the screen by the user, the two-dimensional code generation unit 11b is instructed from the display control unit 11, and in accordance with the processing instruction word W2, the two-dimensional code display data is displayed from binary data. Is generated. The display control unit 11 displays the two-dimensional code on the display 28 based on the display data of the two-dimensional code.

データ結合部11cは、データメモリ24のコンピュータデータ領域24a(単独データ領域)に格納されている複数の異なるコンピュータデータを読み出して1つのデータに結合し、コンピュータデータ領域24aの結合データ領域(図示せず)に書き込む。結合するコンピュータデータとしては、スキャナ8から得たデータ、PLC3から得られたデータ(出力データ)、PLC3に与えるレシピデータ(制御のための数値や動作内容を示す指示データ)などがある。また、同種の異なるデータも結合の対象となる。レシピデータは、ホストコンピュータ4から送信されたり、ディスプレイ28に表示されるポップアップキーボードなどを用いてタッチパネル27からユーザによって入力されたりしたデータであり、予めデータメモリ24に格納されている。   The data combining unit 11c reads out a plurality of different computer data stored in the computer data area 24a (single data area) of the data memory 24 and combines it into one data, and combines data areas (not shown) of the computer data area 24a. Write). Examples of computer data to be combined include data obtained from the scanner 8, data obtained from the PLC 3 (output data), recipe data to be given to the PLC 3 (numerical values for control and instruction data indicating operation contents), and the like. Also, different data of the same type can be combined. The recipe data is data transmitted from the host computer 4 or input by the user from the touch panel 27 using a pop-up keyboard or the like displayed on the display 28 and is stored in the data memory 24 in advance.

2次元コードを表示するための画面としては、例えば、図5(a)および(b)に示す2次元コード処理画面101が用意される。この2次元コード処理画面101は、2次元コードとして、前述のQRコードを扱う場合の画面である。2次元コード処理画面101は、第1ないし第3結合ボタン102〜104と、第1ないし第3表示ボタン105〜107と、第1ないし第3転送ボタン108〜110と、QRコード表示エリア111とを有している。   As a screen for displaying the two-dimensional code, for example, a two-dimensional code processing screen 101 shown in FIGS. 5A and 5B is prepared. The two-dimensional code processing screen 101 is a screen when the above-described QR code is handled as a two-dimensional code. The two-dimensional code processing screen 101 includes first to third combination buttons 102 to 104, first to third display buttons 105 to 107, first to third transfer buttons 108 to 110, a QR code display area 111, and the like. have.

第1結合ボタン102は、スキャナ8から得られる読取データとPLC3などの外部装置から得られる外部データとの結合を指示するために設けられる。第2結合ボタン103は、PLC3などの外部装置から得られる異なる外部データ同士の結合を指示するために設けられる。第3結合ボタン104は、スキャナ8から得られる異なる読取データ同士の結合を指示するために設けられる。これらの第1ないし第3結合ボタン102〜104のいずれか1つがユーザによってタッチされると、データ結合部11cがタッチされたボタンに応じてデータを結合する。   The first combination button 102 is provided to instruct the combination of read data obtained from the scanner 8 and external data obtained from an external device such as the PLC 3. The second combination button 103 is provided to instruct the combination of different external data obtained from an external device such as the PLC 3. The third combination button 104 is provided to instruct the combination of different read data obtained from the scanner 8. When any one of the first to third combining buttons 102 to 104 is touched by the user, the data combining unit 11c combines data according to the touched button.

第1表示ボタン105は、スキャナ8から得られる読取データに基づいたQRコードの表示を指示するために設けられる。第2表示ボタン106は、PLC3などの外部装置から得られる外部データに基づいたQRコードの表示を指示するために設けられる。第3表示ボタン107は、結合されたデータに基づいたQRコードの表示を指示するために設けられる。第3表示ボタン107がユーザによってタッチされると、図示はしないが、第1ないし第3結合ボタン102〜104と同様な結合の種別を指定するためのサブウインドウが表示される。上記の第1ないし第3表示ボタン105〜107のいずれか1つがユーザによってタッチされてQRコードの表示が指示されると、2次元コード生成部11bがタッチされたボタンに応じたQRコードの表示データを生成し、表示制御部11がそのQRコードを図5(b)に示すようにQRコード表示エリア111に表示する。   The first display button 105 is provided for instructing display of a QR code based on the read data obtained from the scanner 8. The second display button 106 is provided to instruct display of a QR code based on external data obtained from an external device such as the PLC 3. The third display button 107 is provided to instruct display of a QR code based on the combined data. When the third display button 107 is touched by the user, although not shown, a sub window for designating the type of combination similar to the first to third combination buttons 102 to 104 is displayed. When any one of the first to third display buttons 105 to 107 is touched by the user to display a QR code, the two-dimensional code generation unit 11b displays the QR code corresponding to the touched button. Data is generated, and the display control unit 11 displays the QR code in the QR code display area 111 as shown in FIG.

第1転送ボタン108は、スキャナ8から得られる読取データを転送するために設けられる。第2転送ボタン109は、PLC3などの外部装置から得られる外部データを転送するために設けられる。第1,2転送ボタン108,109のいずれか一方がユーザによってタッチされると、図示はしないが、データの転送先(メモリカード9、ホストコンピュータ4、他のプログラマブル表示器2、プリンタ10など)を選択するためのボタンを有するサブウインドウが表示され、転送先がそこで指定されると、転送におけるデータの形式(コンピュータデータ、バイナリデータ、ビットマップデータ、JPEGデータ)を選択するためのボタンを有するウインドウがされに表示される。   The first transfer button 108 is provided for transferring read data obtained from the scanner 8. The second transfer button 109 is provided for transferring external data obtained from an external device such as the PLC 3. When one of the first and second transfer buttons 108 and 109 is touched by the user, the data transfer destination (memory card 9, host computer 4, other programmable display 2, printer 10, etc.) is not shown. When a sub-window having a button for selecting is displayed and the transfer destination is designated there, it has a button for selecting a data format (computer data, binary data, bitmap data, JPEG data) in the transfer. A window is displayed.

第3転送ボタン110は、結合されたデータの転送を指示するために設けられる。また、第3転送ボタン110がユーザによってタッチされると、図示はしないが、第1ないし第3結合ボタン102〜104と同様な結合の種別を指定するためのサブウインドウが表示される。また、このサブウインドウで結合の種別が指定されると、図示はしないが、上記と同様な、データの転送先および転送におけるデータの形式を選択するためのボタンを有するサブウインドウが表示される。   The third transfer button 110 is provided to instruct transfer of the combined data. When the third transfer button 110 is touched by the user, although not shown, a sub window for designating the type of combination similar to the first to third combination buttons 102 to 104 is displayed. When the type of combination is designated in this sub-window, a sub-window having buttons for selecting a data transfer destination and a data format in the transfer is displayed, which is not shown in the figure.

転送におけるデータ形式および転送先が選択されると、表示制御部11は、第1ないし第3転送ボタン108〜110で指定されたデータメモリ24のアドレスに格納されているバイナリデータを読み出して、指定された転送先へ転送する。ただし、表示制御部11は、ビットマップまたはJPEGの形式が指定されると、データ変換部11aに2次元コードの表示データからビットマップまたはJPEGへの変換を指示し、変換されたデータを受けて転送先に転送する。また、表示制御部11は、転送先としてメモリカード9が指定された場合は、前述のようにメモリカード9への書き込みをメモリカードインターフェース部26に指示する。   When the data format and the transfer destination in the transfer are selected, the display control unit 11 reads the binary data stored in the address of the data memory 24 specified by the first to third transfer buttons 108 to 110 and specifies the data. To the specified transfer destination. However, when the bitmap or JPEG format is designated, the display control unit 11 instructs the data conversion unit 11a to convert the display data of the two-dimensional code into the bitmap or JPEG, and receives the converted data. Transfer to the destination. Further, when the memory card 9 is designated as the transfer destination, the display control unit 11 instructs the memory card interface unit 26 to write to the memory card 9 as described above.

また、2次元コード処理画面101においては、図5(b)に示すように、表示されたQRコードがタッチされたときにQRコードに記録された情報を表示する領域として情報表示ウインドウ112が表示される。表示制御部11は、“閉じる”がタッチされると、この情報表示ウインドウ112の表示を停止する。この情報表示ウインドウ112は、2次元コード処理画面101に関連付けられたユーザ画面として用意される。   On the two-dimensional code processing screen 101, as shown in FIG. 5B, an information display window 112 is displayed as an area for displaying information recorded in the QR code when the displayed QR code is touched. Is done. When “Close” is touched, the display control unit 11 stops displaying the information display window 112. This information display window 112 is prepared as a user screen associated with the two-dimensional code processing screen 101.

上記の表示制御部11を実現する前述の表示制御システムプログラムは、プログラマブル表示器2と分離可能に構成される記録媒体に記録されている。   The aforementioned display control system program for realizing the display control unit 11 is recorded on a recording medium configured to be separable from the programmable display 2.

上記の記録媒体は、磁気テープやカセットテープなどのテープ系、フレキシブルディスクやハードディスクなどの磁気ディスク系、CD−ROM、MO、MD、DVDなどの光ディスク系、ICカード(メモリカードを含む)、光カードなどのカード系が好適である。その他、上記のプログラムメディアは、マスクROM、EPROM、EEPROM、フラッシュROMなどによる半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。   The above recording media include tape systems such as magnetic tapes and cassette tapes, magnetic disk systems such as flexible disks and hard disks, optical disk systems such as CD-ROM, MO, MD, and DVD, IC cards (including memory cards), optical A card system such as a card is preferred. In addition, the program medium may be a medium that carries a fixed program including a semiconductor memory such as a mask ROM, EPROM, EEPROM, flash ROM, or the like.

また、本制御システムは、インターネットを含む通信ネットワークと接続可能なシステム構成であることから、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する媒体であってもよい。ただし、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用プログラムは予めホストコンピュータ4に格納されるか、あるいは別な記録媒体からインストールされるものであってもよい。   In addition, since the present control system has a system configuration that can be connected to a communication network including the Internet, it may be a medium that fluidly carries the program so as to download the program from the communication network. However, when the program is downloaded from the communication network in this way, the download program may be stored in the host computer 4 in advance or installed from another recording medium.

続いて、ホストコンピュータ4について説明する。   Next, the host computer 4 will be described.

図1に示すホストコンピュータ4は、一般の汎用パーソナルコンピュータと同様に、CPU、メモリ(RAM、ROMなど)、外部記憶装置(ハードディスクドライブ、MOドライブなど)、表示装置および入力装置(キーボード、マウスなど)を有している。また、ホストコンピュータ4は、制御部41、インターフェース部(図中、I/F)42、作画エディタ43、画面データベース44、データ集積部45および表示アプリケーション46を備えている。   A host computer 4 shown in FIG. 1 has a CPU, memory (RAM, ROM, etc.), external storage device (hard disk drive, MO drive, etc.), display device, and input device (keyboard, mouse, etc.) as in a general-purpose personal computer. )have. The host computer 4 includes a control unit 41, an interface unit (I / F in the figure) 42, a drawing editor 43, a screen database 44, a data accumulation unit 45, and a display application 46.

制御部41は、CPUやメモリを含む演算処理を行う部分であり、オペレーティングシステム上でアプリケーションプログラムである作画エディタ43や表示アプリケーション45を実行する。ホストコンピュータ4は、制御部41に作画エディタ43を実行させることにより、エディタ装置(画面作成装置)として機能する。   The control unit 41 is a part that performs arithmetic processing including a CPU and a memory, and executes a drawing editor 43 and a display application 45 that are application programs on the operating system. The host computer 4 functions as an editor device (screen creation device) by causing the control unit 41 to execute the drawing editor 43.

インターフェース部42は、プログラマブル表示器2との間の通信を行うための通信制御部であり、共通ネットワーク5に接続されている。   The interface unit 42 is a communication control unit for performing communication with the programmable display 2 and is connected to the common network 5.

作画エディタ43は、前述のユーザ画面を作成する画面作成プログラムである。この作画エディタ43も、前述のような記録媒体に記録されたプログラムであり、予めホストコンピュータ4にインストールされている。   The drawing editor 43 is a screen creation program for creating the above-described user screen. The drawing editor 43 is also a program recorded on the recording medium as described above, and is installed in the host computer 4 in advance.

作画エディタ43は、ユーザ独自の画面であるユーザ画面を作成できるように、スイッチ、ランプ、テンキー、各種表示器(例えば、数値表示器、メータ表示器およびグラフ表示器)などのパーツ、各種のタグ設定機能、描画機能、テキスト入力機能などを備えている。パーツとしては、単一の機能を有するパーツだけでなく、複数の機能を有する、複合スイッチ、カウンタ、タイマといった複合機能を有するパーツが用意されている。パーツは、ユーザが容易に選択できるようにライブラリ形式で登録されている。   The drawing editor 43 can create a user screen, which is a user's own screen, such as switches, lamps, numeric keys, various display parts (for example, numerical display, meter display and graph display), and various tags. A setting function, a drawing function, a text input function, etc. are provided. As parts, not only parts having a single function but also parts having a plurality of functions, such as a composite switch, a counter, and a timer, are prepared. The parts are registered in a library format so that the user can easily select them.

上記の作画エディタ43によって作成されたユーザ画面は、画面データベース44に保存されるが、必要に応じてインターフェース部42を介してプログラマブル表示器2に転送され、プログラムメモリ23にダウンロードされる。また、作画エディタ43は、前述のような2次元コード処理画面101もユーザ画面として作成することができる。   The user screen created by the drawing editor 43 is stored in the screen database 44, but is transferred to the programmable display 2 via the interface unit 42 and downloaded to the program memory 23 as necessary. The drawing editor 43 can also create the two-dimensional code processing screen 101 as described above as a user screen.

データ集積部46は、各プログラマブル表示器2から転送されてきたデータを集積するデータベースである。このデータ集積部46は、プログラマブル表示器2毎に、データ形式を区別するようにしてデータを格納している。表示アプリケーション45は、データ集積部46に格納されたデータをデータ形式に応じて表示する。   The data accumulation unit 46 is a database that accumulates data transferred from each programmable display device 2. The data accumulation unit 46 stores data for each programmable display 2 so as to distinguish the data format. The display application 45 displays the data stored in the data accumulation unit 46 according to the data format.

続いて、上記のように構成される制御システム1における2次元コードの処理について説明する。ここでは、2次元コードとしてQRコードを用いた例について説明するが、本発明は、QRコードに限らず、他の2次元コード(PDF417、DataMatrix、Maxi Codeなど)の利用が可能であることは勿論である。   Subsequently, the processing of the two-dimensional code in the control system 1 configured as described above will be described. Here, an example using a QR code as a two-dimensional code will be described. However, the present invention is not limited to a QR code, and other two-dimensional codes (PDF417, DataMatrix, Maxi Code, etc.) can be used. Of course.

スキャナ8によってQRコードが読み取られると、スキャナ8において、QRコードがコンピュータデータに変換されて出力される。このコンピュータデータは、表示制御部11によって、スキャナインターフェース部25を介して取り込まれて、データメモリ24のコンピュータデータ領域24aに格納される。コンピュータデータは、テキストデータや文字データなどのOSやアプリケーションプログラムに依存せずに解読可能なデータであるので、この形式で通信するとデータの改ざんが可能である。そこで、本プログラマブル表示器2では、以下のように改ざんを困難にするようにデータ形式を変換している。   When the scanner 8 reads the QR code, the scanner 8 converts the QR code into computer data and outputs it. The computer data is captured by the display control unit 11 via the scanner interface unit 25 and stored in the computer data area 24 a of the data memory 24. Since the computer data is data that can be decoded without depending on the OS or application program, such as text data and character data, the data can be altered when communicating in this format. Therefore, in the present programmable display device 2, the data format is converted to make it difficult to tamper as follows.

一方、PLC3からのデバイス7のデータは、表示制御部11によって、インターフェース部29bを介してコンピュータデータとして取り込まれて、データメモリ24のコンピュータデータ領域24aに格納される。PLC3からのデータは、スキャナ8の読取データと同じくコンピュータデータ領域24aに格納されるが、読取データとは種類の異なるデータとしてコンピュータデータ領域24aにおいて区別された領域に格納される。   On the other hand, the data of the device 7 from the PLC 3 is fetched as computer data by the display control unit 11 via the interface unit 29 b and stored in the computer data area 24 a of the data memory 24. The data from the PLC 3 is stored in the computer data area 24a in the same way as the read data of the scanner 8, but is stored in an area distinguished from the read data in the computer data area 24a.

また、ホストコンピュータ4から送信されたレシピデータや、プログラマブル表示器2のタッチパネル27からユーザによって入力されたレシピデータは、表示制御部11によって、インターフェース部29aを介してコンピュータデータとして取り込まれて、コンピュータデータ領域24aに格納される。レシピデータも、スキャナ8の読取データやPLC3からのデータと同じくコンピュータデータ領域24aに格納されるが、これらのデータとは種類の異なるデータとしてコンピュータデータ領域24aにおいて区別された領域に格納される。   The recipe data transmitted from the host computer 4 and the recipe data input by the user from the touch panel 27 of the programmable display 2 are taken in as computer data by the display control unit 11 via the interface unit 29a, and the computer. Stored in the data area 24a. Recipe data is also stored in the computer data area 24a in the same way as the read data of the scanner 8 and the data from the PLC 3, but is stored in an area distinguished in the computer data area 24a as data of a different type from these data.

上記のようにデータメモリ24に書き込まれたコンピュータデータは、データ変換部11aによって、処理指示語W1にしたがって、書き込みと同時に自動的にデータメモリ24から読み出され、バイナリデータに変換された後、データメモリ24のバイナリデータ領域24bに書き込まれる。   The computer data written in the data memory 24 as described above is automatically read from the data memory 24 simultaneously with the writing by the data conversion unit 11a according to the processing instruction word W1, and converted into binary data. The data is written in the binary data area 24b of the data memory 24.

2次元コード処理画面101における第1ないし第3結合ボタン102〜104のいずれかがユーザによってタッチされると、データの結合が指示される。すると、データ結合部11cによって、処理指示語W11にしたがい、ボタンに応じた指示内容(結合パターン)とアドレスに基づいて、データメモリ24のコンピュータデータ領域24aに格納された2つのコンピュータデータが上記のアドレスから読み出されて合成された後、コンピュータデータ領域24aに書き込まれる。なお、ボタンのタッチパネル27における座標範囲とアドレスとを関係付けるため、図2(b)に示す処理指示語W11は、図示はしていないが、参照情報Rとして、タッチパネル27における各ボタンの有効入力座標範囲を有している。   When any of the first to third combination buttons 102 to 104 on the two-dimensional code processing screen 101 is touched by the user, data combination is instructed. Then, according to the processing instruction word W11, the two data items stored in the computer data area 24a of the data memory 24 are stored in the computer data area 24a according to the button according to the processing instruction word W11. After being read from the address and synthesized, it is written into the computer data area 24a. In order to relate the coordinate range of the button on the touch panel 27 and the address, the processing instruction word W11 shown in FIG. 2B is not shown, but as the reference information R, each button on the touch panel 27 is effectively input. Has a coordinate range.

結合される形態としては、以下のパターンが主な形態として挙げられる。
(1−1)スキャナ8の読取データとPLC3からの出力データとの結合(読取データ+外部データ)
(1−2)スキャナ8の読取データとレシピデータとの結合(読取データ+外部データ)
(1−3)PLC3など(外部装置)からのデータとレシピデータとの結合(外部データ+外部データ)
(1−4)スキャナ8の読取データ同士の結合(読取データ+読取データ)
上記のように結合されたデータも、前記のようにしてバイナリデータに変換された後、バイナリデータ領域24bに書き込まれる。
As the forms to be combined, the following patterns are listed as main forms.
(1-1) Combination of reading data of the scanner 8 and output data from the PLC 3 (reading data + external data)
(1-2) Combination of read data of the scanner 8 and recipe data (read data + external data)
(1-3) Combining data from PLC3 etc. (external device) and recipe data (external data + external data)
(1-4) Combination of read data of the scanner 8 (read data + read data)
The data combined as described above is also converted into binary data as described above, and then written into the binary data area 24b.

2次元コード処理画面101における第1ないし第3表示ボタン105〜107のいずれかがユーザによってタッチされると、QRコードの表示が指示される。すると、2次元コード生成部11bによって、処理指示語W2にしたがい、ボタンに応じた指示内容(表示元データ)とアドレスに基づいて、データメモリ24のバイナリデータ領域24bに格納されたバイナリデータが上記のアドレスから読み出され、そのバイナリデータに基づいてQRコードの表示データが生成される。このQRコードの表示データは、表示制御部11によって、図5(b)に示すように、2次元コード処理画面101におけるQRコード表示エリア111に表示される。   When any one of the first to third display buttons 105 to 107 on the two-dimensional code processing screen 101 is touched by the user, the display of the QR code is instructed. Then, the binary data stored in the binary data area 24b of the data memory 24 is converted into the binary data area 24b of the data memory 24 based on the instruction content (display source data) corresponding to the button and the address according to the processing instruction word W2 by the two-dimensional code generation unit 11b. QR code display data is generated based on the binary data. The display data of the QR code is displayed by the display control unit 11 in the QR code display area 111 on the two-dimensional code processing screen 101 as shown in FIG.

表示されるQRコードの表示元データとしては、以下のデータが挙げられる。
(2−1)スキャナ8の読取データ
(2−2)PLC3など(外部装置)からの外部データ
(2−3)前述の(1−1)ないし(1−4)のいずれか1つの結合形態で結合された結合データ
このように、スキャナ8によって読み取られる元々存在していたQRコードだけでなく、外部データや結合データのようなデータもQRコードとして表示される。
The display data of the displayed QR code includes the following data.
(2-1) Reading data of the scanner 8 (2-2) External data from the PLC 3 or the like (external device) (2-3) Any one of the above-mentioned (1-1) to (1-4) combination forms In this way, not only the originally existing QR code read by the scanner 8 but also data such as external data and combined data is displayed as a QR code.

2次元コード処理画面101におけるQRコード表示エリア111に表示されたQRコードがユーザによってタッチされると、そのQRコードに記録された情報が情報表示ウインドウ112に表示される。このとき、表示制御部11によって、処理指示語W3にしたがい、コンピュータデータ領域24aから読み出されたデータが情報表示ウインドウ112の所定の領域に上記の情報として表示される。   When the QR code displayed in the QR code display area 111 on the two-dimensional code processing screen 101 is touched by the user, information recorded in the QR code is displayed in the information display window 112. At this time, the data read from the computer data area 24a is displayed as the above information in a predetermined area of the information display window 112 by the display control unit 11 in accordance with the processing instruction word W3.

2次元コード処理画面101における第1ないし第3転送ボタン108〜110のいずれかがユーザによってタッチされると、データの転送が指示される。すると、表示制御部11によって、ボタンに応じた指示内容(転送対象データと転送先)に基づいて、指定された形式のデータが指定された転送先へ転送される。   When any of the first to third transfer buttons 108 to 110 on the two-dimensional code processing screen 101 is touched by the user, data transfer is instructed. Then, the display control unit 11 transfers the data in the specified format to the specified transfer destination based on the instruction content (transfer target data and transfer destination) corresponding to the button.

転送先としてメモリカード9が指定された場合は、表示制御部11の指示によって、指定されたデータがメモリカード9に書き込まれる。また、転送先としてプリンタ10が指定された場合は、表示制御部11の指示によって、指定されたデータがプリンタ10で印刷される。これにより、QRコードの印刷が可能となる。   When the memory card 9 is designated as the transfer destination, the designated data is written to the memory card 9 in accordance with an instruction from the display control unit 11. When the printer 10 is designated as the transfer destination, the designated data is printed by the printer 10 according to an instruction from the display control unit 11. As a result, the QR code can be printed.

転送先としてホストコンピュータ4が指定された場合は、表示制御部11の指示によって、指定されたデータが共通ネットワーク5を介してホストコンピュータ4に転送され、データ集積部46に格納される。表示アプリケーション45は、データ集積部46から読み出したデータがビットマップまたはJPEGのデータであれば、そのデータから図形としてQRコードを表示し、読み出したデータがコンピュータデータまたはバイナリデータであれば、そのデータが表す情報(文字情報など)を表示する。   When the host computer 4 is designated as the transfer destination, the designated data is transferred to the host computer 4 via the common network 5 and stored in the data accumulation unit 46 according to an instruction from the display control unit 11. If the data read from the data accumulation unit 46 is bitmap or JPEG data, the display application 45 displays a QR code as a figure from the data, and if the read data is computer data or binary data, the data The information (character information etc.) represented by is displayed.

続いて、2次元コードの処理についての具体例について説明する。ここでは、製品の個数をロット毎に計数するシステムにおいて、ロットをQRコードで特定し、コンベア上を搬送される製品の個数を光学センサ(デバイス7)で読み取った結果をPLC3からプログラマブル表示器2に送信する場合について説明する。   Subsequently, a specific example of the processing of the two-dimensional code will be described. Here, in a system that counts the number of products for each lot, the lot is identified by a QR code, and the result of reading the number of products conveyed on the conveyor by an optical sensor (device 7) from the PLC 3 to the programmable display 2 The case of transmitting to will be described.

まず、オペレータは、ロット番号を示すQRコードが描かれたプレートからスキャナ8によってQRコードの読み取り操作を行う。スキャナ8からは、読み取り結果として、そのロット番号を示す数字データ(コンピュータデータ)が出力されてプログラマブル表示器2のデータメモリ24におけるコンピュータデータ領域24aに格納される。一方、製品個数の読み取り結果は、PLC3からプログラマブル表示器2のデータメモリ24におけるコンピュータデータ領域24aに読み込まれる。これらのデータは、データ変換部11aによってバイナリデータに変換されて、バイナリデータ領域24bに書き込まれる。   First, the operator performs a QR code reading operation by the scanner 8 from a plate on which a QR code indicating a lot number is drawn. From the scanner 8, numerical data (computer data) indicating the lot number is output as a reading result and stored in the computer data area 24a in the data memory 24 of the programmable display 2. On the other hand, the reading result of the number of products is read from the PLC 3 into the computer data area 24 a in the data memory 24 of the programmable display 2. These data are converted into binary data by the data converter 11a and written into the binary data area 24b.

このとき、オペレータが2次元コード処理画面101において第1結合ボタン102をタッチすると、コンピュータデータ領域24aからロット番号のデータと製品個数のデータとが読み出され、これらのデータがデータ結合部11cによって結合されて、結合データとしてコンピュータデータ領域24aに書き込まれる。この結合データは、データ変換部11aによってバイナリデータに変換されてバイナリデータ領域24bにも書き込まれる。   At this time, when the operator touches the first combining button 102 on the two-dimensional code processing screen 101, the lot number data and the product number data are read from the computer data area 24a, and these data are read by the data combining unit 11c. The combined data is written as the combined data in the computer data area 24a. This combined data is converted into binary data by the data converter 11a and written in the binary data area 24b.

また、オペレータが2次元コード処理画面101において第3結合ボタン107をタッチすると、バイナリデータ領域24bからバイナリ変換された結合データ(バイナリデータ)が読み出され、2次元コード生成部11bによって、そのバイナリデータからQRコードの表示データが生成される。この表示データは、表示制御部11によって、図5の(b)に示すように、2次元コード表示エリア111にQRコードとして表示される。   When the operator touches the third combination button 107 on the two-dimensional code processing screen 101, the binary-converted combination data (binary data) is read from the binary data area 24b, and the binary data is generated by the two-dimensional code generation unit 11b. QR code display data is generated from the data. The display data is displayed as a QR code in the two-dimensional code display area 111 by the display control unit 11 as shown in FIG.

さらに、オペレータが表示されたQRコードをタッチすると、表示制御部11によって、2次元コード処理画面101上に情報表示ウインドウ112が表示される。このとき表示される情報は、読み取られたQRコードに記録されていたロット番号(123456)、およびPLC3から得られた製品個数(150)が併せて表示される。   Furthermore, when the operator touches the displayed QR code, the display control unit 11 displays the information display window 112 on the two-dimensional code processing screen 101. In the information displayed at this time, the lot number (123456) recorded in the read QR code and the number of products (150) obtained from the PLC 3 are also displayed.

そして、オペレータが2次元コード処理画面101において第1ないし第3転送ボタン108〜110のいずれかをタッチすることで転送データ形式および転送先を指定すると、表示制御部11によって、それに応じた形式のデータが指定された転送先に転送される。   Then, when the operator designates the transfer data format and the transfer destination by touching any one of the first to third transfer buttons 108 to 110 on the two-dimensional code processing screen 101, the display control unit 11 sets the format corresponding to the transfer data format and the transfer destination. Data is transferred to the specified destination.

このように、本実施の形態の制御システム1は、スキャナ8で読み取った2次元コードのデータをプログラマブル表示器2において、バイナリデータに変換して記憶しておき、そのバイナリデータで外部に送信する一方、バイナリデータから2次元コードを生成して表示する。バイナリデータは、テキストデータのようなOSやアプリケーションプログラムに依存せずに解読可能なコンピュータデータと異なり、専用のアプリケーションプログラムなどによって解読可能であるので、容易に解読することができない。したがって、このようなバイナリデータの形式でデータを記憶したり送信したりすることによって、プログラマブル表示器2や共通ネットワーク5上でのデータの改ざんの可能性を大幅に低減させることができる。 As described above, the control system 1 according to the present embodiment converts the data of the two-dimensional code read by the scanner 8 into binary data in the programmable display 2, stores the data, and transmits the binary data to the outside. On the other hand, a two-dimensional code is generated from binary data and displayed. Unlike computer data that can be decoded without depending on an OS or application program such as text data, binary data can be decoded by a dedicated application program, and therefore cannot be easily decoded. Therefore, by storing or transmitting data in such a binary data format, the possibility of data alteration on the programmable display 2 or the common network 5 can be greatly reduced .

また、本制御システム1は、プログラマブル表示器2において、スキャナ8で読み取った2次元コードの読取データとPLC3などの外部装置から得た外部データの結合、読取データ同士の結合、外部データ同士の結合を行い、その結合データも上記のようにしてバイナリデータに変換するとともに、バイナリデータから2次元コードを生成して表示する。これにより、結合データの改ざんの可能性を大幅に低減させるだけでなく、結合データに基づく新たな2次元コードを表示されるので、専用の2次元コード生成ツールを用いて、結合したデータを人手で入力する手間を省くことができる。しかも、表示された2次元コードをオペレータの携帯端末などに読み込ませることによって、2次元コードの展開や転送を容易に行うことができる。 Further, the control system 1 combines the read data of the two-dimensional code read by the scanner 8 with the external data obtained from the external device such as the PLC 3, the combination of the read data, and the combination of the external data in the programmable display 2. The combined data is converted into binary data as described above, and a two-dimensional code is generated from the binary data and displayed. This not only greatly reduces the possibility of falsification of the combined data, but also displays a new two-dimensional code based on the combined data. You can save time and effort. Moreover, the two-dimensional code can be easily expanded and transferred by reading the displayed two-dimensional code into an operator's portable terminal or the like.

また、プログラマブル表示器2は、表示した2次元コードがタッチされると、その2次元コードに記録された情報のコンピュータデータをコンピュータデータ領域24aから読み出して表示する。それゆえ、例えば、PLC3から得られたエラーデータに基づいてエラー情報を表示させる場合、容易かつ余分なメモリ容量を必要とすることなく、エラー情報を表示することができる。   Further, when the displayed two-dimensional code is touched, the programmable display 2 reads out the computer data of information recorded in the two-dimensional code from the computer data area 24a and displays it. Therefore, for example, when displaying error information based on error data obtained from the PLC 3, the error information can be displayed easily and without requiring an extra memory capacity.

従来、エラー情報の表示においては、表示スペースの制約からエラーメッセージを表示する代わりに、英数字などからなるエラーコードを表示させていた。このため、ユーザは、エラーコードが示すエラー内容をマニュアルやメーカへの問い合わせなどによって確認しなければならなかった。また、エラーメッセージを表示するスペースを十分確保できる場合は、多数のエラーメッセージを予め記憶しておくためのメモリ容量が必要であった。   Conventionally, when displaying error information, an error code consisting of alphanumeric characters or the like is displayed instead of displaying an error message due to display space limitations. For this reason, the user has to confirm the error content indicated by the error code by a manual or an inquiry to the manufacturer. Further, if a sufficient space for displaying error messages can be secured, a memory capacity for storing a large number of error messages in advance is required.

これに対し、上記のプログラマブル表示器2は、内部にエラーメッセージを記憶していなくても、2次元コードを表示できれば、2次元コードを読み取りかつその記憶情報をテキスト表示する機能を有する携帯電話などの読取装置を用いることによって、表示された2次元コードに記録されたエラーメッセージを表示することができる。これにより、エラーコードのみの表示でエラー内容の確認が容易にできないという従来の不都合を解消することができるとともに、多数のエラーメッセージを予め記憶しておく必要がないので、そのためのメモリ容量を大幅に削減することができる。   On the other hand, the programmable display device 2 has a function of reading the two-dimensional code and displaying the stored information as text if the two-dimensional code can be displayed even if no error message is stored therein. By using this reading device, an error message recorded in the displayed two-dimensional code can be displayed. This eliminates the conventional inconvenience that the error details cannot be easily confirmed by displaying only the error code, and it is not necessary to store a large number of error messages in advance. Can be reduced.

しかも、プログラマブル表示器2は、2次元コードの表示データをビットマップまたはJPEGのデータに変換して、メモリカード9に書き込む機能を有する。それゆえ、そのメモリカード9のデータをパーソナルコンピュータなどに読み込ませることによって、そのコンピュータに2次元コードを表示することができる。メモリカード9によるデータの受け渡しでは、データがビットマップまたはJPEGの形式であれば、2次元コードに記録された情報の改ざんは不可能である。したがって、機密性の高い情報を安全に取り扱うことができる。また、ビットマップまたはJPEGの形式でデータを画像化して転送することにより、大量のデータを簡易に送受信することができる。   Moreover, the programmable display device 2 has a function of converting the display data of the two-dimensional code into bitmap or JPEG data and writing it into the memory card 9. Therefore, a two-dimensional code can be displayed on the computer by reading the data of the memory card 9 into a personal computer or the like. In the data transfer by the memory card 9, if the data is in the bitmap or JPEG format, the information recorded in the two-dimensional code cannot be falsified. Therefore, highly confidential information can be handled safely. In addition, a large amount of data can be easily transmitted and received by converting the data into an image in the bitmap or JPEG format and transferring it.

本発明は、プログラマブル表示器が、外部より得たデータやこれらのデータを結合して得た新たなデータをバイナリデータに変換することにより、データの改ざんの可能性を大幅に低減させるだけでなく、そのバイナリデータから2次元コードを生成して表示することにより、データを2次元コードで管理してプログラマブル表示器が保有する情報量を削減することができるので、より高度な情報管理が求められるシステムに好適に適用できる。 The present invention not only greatly reduces the possibility of data alteration by allowing the programmable display to convert externally obtained data or new data obtained by combining these data into binary data. By generating and displaying a two-dimensional code from the binary data, the data can be managed with the two-dimensional code and the amount of information held by the programmable display can be reduced, so that more advanced information management is required. It can be suitably applied to the system.

本発明の一実施形態に係るプログラマブル表示器を含む制御システムの構成を示すブロック図である。It is a block diagram which shows the structure of the control system containing the programmable display which concerns on one Embodiment of this invention. (a)ないし(d)は上記プログラマブル表示器で表示されるユーザ画面のデータである画面データに含まれる処理指示語のフォーマットを示す図である。(A) thru | or (d) is a figure which shows the format of the process instruction word contained in the screen data which is the data of the user screen displayed with the said programmable display. 上記プログラマブル表示器の制御の中心部であるHMI処理部を含む要部の構成を示すブロック図である。It is a block diagram which shows the structure of the principal part containing the HMI process part which is the center part of the control of the said programmable display. 上記プログラマブル表示器におけるデータメモリの記憶領域を示す図である。It is a figure which shows the storage area of the data memory in the said programmable display. (a)および(b)は上記プログラマブル表示器に表示される2次元コード処理画面の構成を示す図である。(A) And (b) is a figure which shows the structure of the two-dimensional code processing screen displayed on the said programmable display.

符号の説明Explanation of symbols

2 プログラマブル表示器
3 PLC(外部装置)
4 ホストコンピュータ(外部装置)
9 メモリカード(記憶手段,外部メモリ)
11 表示制御部(2次元コード表示手段,記憶制御手段,送信手段)
11a データ変換部(データ変換手段,ビットマップ変換手段,画像変換手段)
11b 2次元コード生成部(2次元コード生成手段)
11c データ結合部(データ結合手段)
24 データメモリ(記憶手段)
27 タッチパネル
101 2次元コード処理画面
SF 画面ファイル
TG 2次元コード処理タグ
W1 処理指示語
W2 処理指示語
W3 処理指示語
2 Programmable display 3 PLC (external device)
4 Host computer (external device)
9 Memory card (storage means, external memory)
11 Display control unit (two-dimensional code display means, storage control means, transmission means)
11a Data converter (data converter, bitmap converter, image converter)
11b 2D code generator (2D code generator)
11c Data combiner (data combiner)
24 Data memory (storage means)
27 Touch Panel 101 2D Code Processing Screen SF Screen File TG 2D Code Processing Tag W1 Processing Instruction W2 Processing Instruction W3 Processing Instruction

Claims (4)

タッチパネルと、
外部装置から取得したデータと前記タッチパネルから入力されたデータとを結合するデータ結合手段と、
結合されたデータをバイナリデータに変換して記憶手段に記憶させるデータ変換手段と、
前記バイナリデータを2次元コードの表示データに変換する2次元コード生成手段と、
前記表示データをビットマップデータに変換するビットマップ変換手段と、
変換されたビットマップデータを記憶手段に記憶させる記憶制御手段とを備えていることを特徴とするプログラマブル表示器。
A touch panel;
Data combining means for combining data acquired from an external device and data input from the touch panel;
Data conversion means for converting the combined data into binary data and storing it in the storage means;
Two-dimensional code generation means for converting the binary data into display data of a two-dimensional code;
Bitmap conversion means for converting the display data into bitmap data;
A programmable display device comprising storage control means for storing the converted bitmap data in the storage means .
タッチパネルと、
外部装置から取得したデータと前記タッチパネルから入力されたデータとを結合するデータ結合手段と、
結合されたデータをバイナリデータに変換して記憶手段に記憶させるデータ変換手段と、
前記バイナリデータを2次元コードの表示データに変換する2次元コード生成手段と、
前記表示データを画像データに変換する画像変換手段と、
変換された画像データを記憶手段に記憶させる記憶制御手段とを備えていることを特徴とするプログラマブル表示器。
A touch panel;
Data combining means for combining data acquired from an external device and data input from the touch panel;
Data conversion means for converting the combined data into binary data and storing it in the storage means;
Two-dimensional code generation means for converting the binary data into display data of a two-dimensional code;
Image conversion means for converting the display data into image data;
A programmable display device comprising storage control means for storing the converted image data in the storage means .
前記記憶手段は、プログラマブル表示器と着脱可能な外部メモリであることを特徴とする請求項1または2に記載のプログラマブル表示器。 Said storage means includes a programmable display device according to claim 1 or 2, characterized in that an external memory detachable with the programmable display device. 変換された前記バイナリデータを外部の送信先に送信する送信手段を備えていることを特徴とする請求項1または2に記載のプログラマブル表示器。 Programmable display device according to claim 1 or 2, characterized in that it comprises a transmitting means for transmitting the converted the binary data to an external destination.
JP2004215808A 2004-07-23 2004-07-23 Programmable display Active JP4368752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004215808A JP4368752B2 (en) 2004-07-23 2004-07-23 Programmable display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004215808A JP4368752B2 (en) 2004-07-23 2004-07-23 Programmable display

Publications (2)

Publication Number Publication Date
JP2006039741A JP2006039741A (en) 2006-02-09
JP4368752B2 true JP4368752B2 (en) 2009-11-18

Family

ID=35904706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004215808A Active JP4368752B2 (en) 2004-07-23 2004-07-23 Programmable display

Country Status (1)

Country Link
JP (1) JP4368752B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5951041B2 (en) * 2012-11-22 2016-07-13 三菱電機株式会社 Programmable display

Also Published As

Publication number Publication date
JP2006039741A (en) 2006-02-09

Similar Documents

Publication Publication Date Title
US7456839B2 (en) Screen creating device
JP2008033573A (en) Programmable display, control program, recording medium recording the same, control system, client program, and recording medium recording the same
JP2006134097A (en) Programmable display, display control program, and recording medium with the program recorded thereon
KR20130090747A (en) Project-data creating device and programmable display device
JP2007179115A (en) Programmable display, control program, recording medium with the program recorded thereon, server, server program, and recording medium with the program recorded thereon
CN102592188A (en) Production management system and production management method
KR101431995B1 (en) Facility management device, screen display method, and recording medium
JP5233707B2 (en) Label printer
JP4368752B2 (en) Programmable display
JP2006331278A (en) Programmable display, control program, storage medium recording the program, screen forming device, screen forming program, and storage medium recording the program
JP4566904B2 (en) System, control program and recording medium recording the program, and image data creation program and recording medium recording the program
JP4463716B2 (en) Programmable display, display control program, and recording medium recording the same
JP2007094724A (en) Programmable display, control program, storage medium recording the program, screen generating device, screen generating program, and storage medium recording the program
JP2007179112A5 (en)
JP4429990B2 (en) SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, PROGRAMMABLE DISPLAY, CONTROL PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP4372739B2 (en) PROGRAMMABLE DISPLAY, CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP4335109B2 (en) Screen creation device, screen creation program, and recording medium recording the same
JP2006215632A (en) Operation support system
JP2010113579A (en) Computer system for data-editing and printing
JP2006301729A (en) Picture preparation method and picture preparation device
JP2006099573A (en) Screen forming device, screen forming program and storage medium recording the same
JP4563255B2 (en) Programmable display, control program, and recording medium recording the program
JP2006039870A (en) Programmable display, display control program, recording medium for recording this program, screen forming device, screen forming program, and recording medium with the program recorded thereon
JP2006134098A (en) Programmable display, display control program, and recording medium with the program recorded thereon
JP2005251014A (en) Control system, control monitor program, recording medium recorded with program therefor, editor device, editor program, and recording medium recorded with program therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061017

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090409

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090409

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: 20090825

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090826

R150 Certificate of patent or registration of utility model

Ref document number: 4368752

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120904

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4

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

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250