JP2000138726A - Data processor - Google Patents

Data processor

Info

Publication number
JP2000138726A
JP2000138726A JP10310577A JP31057798A JP2000138726A JP 2000138726 A JP2000138726 A JP 2000138726A JP 10310577 A JP10310577 A JP 10310577A JP 31057798 A JP31057798 A JP 31057798A JP 2000138726 A JP2000138726 A JP 2000138726A
Authority
JP
Japan
Prior art keywords
data
data processing
plc
communication
communication protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10310577A
Other languages
Japanese (ja)
Other versions
JP3456692B2 (en
Inventor
Yoshihiro Ii
宣裕 伊井
Satoshi Kato
三十四 加藤
Minoru Yoshida
稔 吉田
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 JP31057798A priority Critical patent/JP3456692B2/en
Publication of JP2000138726A publication Critical patent/JP2000138726A/en
Application granted granted Critical
Publication of JP3456692B2 publication Critical patent/JP3456692B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To allow a program type display device which is positioned and formed between a host computer and a PLC and performs display corresponding to data read from the PLC to perform data transfer in real time between the PLC and the host computer having different communication protocols, without being aware of the difference in the communication protocols. SOLUTION: Data transfer is performed in a general-purpose communication protocol between a common interface means 12 and a general-purpose data processing means 11 such as a host computer, data exchange is performed in a communication protocol which is proper to their own types of machines between a dedicated interface means 13 and a data processing means 10 having a specified function such as a PLC, and a means 14 which converts protocols is provided between both the interface means 12 and 13.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明はデータ処理装置で
あって、特に、プログラマブル・ロジック・コントロー
ラ(以下、「PLC」と略す。)の様な機種固有の通信
プロトコルを有するデータ処理手段と、パソコン応用装
置の様な共通の通信プロトコルを有するデータ処理手段
との間にあって、互いにデータの受け渡しを可能とする
ものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus, and more particularly, to a data processing means having a communication protocol specific to a model such as a programmable logic controller (hereinafter abbreviated as "PLC"), and a personal computer. The present invention relates to a device which is provided between data processing means having a common communication protocol such as an application device and which can exchange data with each other.

【0002】[0002]

【従来の技術】従来この種装置間におけるデータの受け
渡しは、複数台のPLCを互いに連係させて使用する場
合にあっても、PLCを制御の中心として位置づけ、複
数台のPLCやホストコンピュータを所定のインターフ
ェイス回路を介して直接、あるいは専用のアダプタを介
して間接的に接続することにより、各PLC間やPLC
とホストコンピュータ間における各種データの受け渡し
がPLC側の通信機能を利用して行われていた。
2. Description of the Related Art Conventionally, even when a plurality of PLCs are used in conjunction with each other, the PLC is positioned as a center of control, and a plurality of PLCs and a host computer are transmitted to a predetermined number of devices. Directly between the PLCs, or indirectly through a dedicated adapter, to connect between PLCs or
The transfer of various data between the PC and the host computer has been performed using the communication function of the PLC.

【0003】[0003]

【発明が解決しようとする課題】しかしながらPLC
は、リレーを使用したシーケンサから発達してきた経緯
もあり、その得意とする分野はスイッチのオンオフ制御
やセンサーからのデータ取り込みといったI/O制御に
関するものであって、たとえ可能であるとしてもデータ
通信の中心とするのには負担が多い。
SUMMARY OF THE INVENTION However, PLC
Has developed from a sequencer using a relay, and specializes in I / O control such as on / off control of switches and data acquisition from sensors. There is a lot of burden to make it the center.

【0004】更にまた、PLCは製造会社によってある
いは同一会社であっても製品毎にデータ通信に使用する
通信プロトコルが異なる結果、ホストコンピュータが対
応すべき通信プロトコルが無数に存在し、接続しようと
するPLCに対応させたホストコンピュータ専用の通信
プロトコルを新たに用意する必要があるなど、使い勝手
が極めて悪いものであった。
[0004] Furthermore, as for the PLC, the communication protocol used for data communication differs depending on the product, depending on the manufacturer or even the same company. As a result, there are countless communication protocols to be supported by the host computer, and connection is attempted. The usability was extremely poor, for example, a new communication protocol dedicated to the host computer corresponding to the PLC had to be prepared.

【0005】本発明者はかかる問題について考察を行っ
た結果、以下の知見を得るに至った。すなわち、今まで
表示に専念していたプログラム式表示装置は、パソコン
の応用装置として発達してきた経緯があるため、汎用の
パソコン装置とのデータ通信は汎用のプロトコルを使用
して容易に行える。更に、表示装置はPLCとのデータ
通信が必須であるため、既に接続べきPLCに対応した
それ専用の通信プロトコルが開発されていることが一般
的である。
The present inventor has studied the above problem, and as a result, has obtained the following knowledge. That is, since the programmable display device that has been dedicated to display has been developed as a personal computer application device, data communication with a general-purpose personal computer device can be easily performed using a general-purpose protocol. Further, since data communication with a PLC is indispensable for a display device, a dedicated communication protocol corresponding to a PLC to be connected is generally already developed.

【0006】したがって、この表示装置を通信の中心に
位置づけ、表示装置を介して各PLC間やホストコンピ
ュータとの間を接続すると、表示装置がデータ通信時に
おけるプロトコル変換手段としての役目を果たすのであ
る。
Therefore, when this display device is positioned at the center of communication and is connected between the PLCs and the host computer via the display device, the display device functions as a protocol conversion means at the time of data communication. .

【0007】本発明はかかる知見に基づいてなされたも
のであって、従来は専ら制御状態の表示のみに使用して
いたプログラム式表示装置のようなデータ処理装置を通
信の中心として使用することにより、PLCを本来の機
能であるI/O制御に専念させることができPLCの負
担が軽減できるとともに、同時に接続されるホストコン
ピュータをはじめとする各種データ処理手段側では無数
に存在するPLCの通信プロトコルを考慮する必要がな
くなり、ソフトウェアの工数を大幅に軽減することがで
きるデータ処理装置を提供することを目的とする。
The present invention has been made based on such knowledge, and has been achieved by using a data processing device such as a programmable display device, which has conventionally been used only for displaying a control state, as the center of communication. , The PLC can be devoted to the I / O control which is the original function, the load on the PLC can be reduced, and the communication protocol of the PLC which is innumerably present on various data processing means including the host computer connected at the same time. It is therefore an object of the present invention to provide a data processing device which does not need to be considered and can greatly reduce the number of steps of software.

【0008】[0008]

【課題を解決するための手段】本発明にかかるデータ処
理装置22は、図1に示す如く、PLCの様にその機種
固有の通信プロトコルでデータの受け渡しを行う第1の
データ処理手段10と、汎用のパソコン装置の様に共通
の通信プロトコルでデータの受け渡しを行う第2のデー
タ処理手段11との間にあって所定のデータ処理動作を
するものである。
As shown in FIG. 1, a data processing device 22 according to the present invention comprises a first data processing means 10 for transferring data using a communication protocol specific to the model, such as a PLC, A predetermined data processing operation is performed between the second data processing unit 11 and a second data processing unit 11 that exchanges data according to a common communication protocol like a general-purpose personal computer device.

【0009】ここで、第2データ処理手段11と接続さ
れて共通の通信プロトコルでデータの受け渡しを行う共
通のインターフェイス手段12と、1または複数の第1
データ処理手段10と接続され、データ通信を行うべき
第1データ処理手段10が使用する専用の通信プロトコ
ルでデータの受け渡しを行う専用のインターフェース手
段13と、共通のインターフェイス手段12と専用のイ
ンターフェース手段13の間にあって、通信プロトコル
の変換を行うプロトコル変換手段14とを備えている。
Here, a common interface means 12 connected to the second data processing means 11 to exchange data with a common communication protocol, and one or more first interface means
A dedicated interface means 13 connected to the data processing means 10 for transferring data using a dedicated communication protocol used by the first data processing means 10 to perform data communication; a common interface means 12 and a dedicated interface means 13 And a protocol conversion means 14 for converting a communication protocol.

【0010】上記した共通のインターフェイス手段12
と第2データ処理手段11間は、データ処理すべき内容
を機種に依存しない中間コードで表現した共通のデータ
形式でデータの受け渡しを行う一方、プロトコル変換手
段14では、第1データ処理手段10で使用される機種
固有のコマンドと中間コード間の変換テーブル15と、
受け渡すべきデータの構造を特定するフォーマット情報
16のような所定の情報を利用し、データ通信を行うべ
き第1データ処理手段10との間で受け渡し可能な専用
のデータ形式と、第2データ処理手段11との間で受け
渡される共通のデータ形式との間でデータの相互変換を
可能とすることを特徴とする。
The above-mentioned common interface means 12
Between the first data processing means 10 and the second data processing means 11, data is transferred in a common data format in which contents to be processed are represented by an intermediate code independent of the model. A conversion table 15 between a model-specific command to be used and an intermediate code;
Using a predetermined information such as format information 16 for specifying the structure of the data to be transferred, a dedicated data format that can be transferred to and from the first data processing means 10 to perform data communication, and a second data processing It is characterized in that data can be mutually converted between a common data format passed to and from the means 11.

【0011】上記した共通のインターフェイス手段12
と専用のインターフェイス手段13の間には、所定の表
示動作を可能とする表示手段17と、データの記憶動作
を可能とするメモリ手段18とを備え、その表示手段1
7およびメモリ手段18におけるデータの受け渡しは、
共通のデータ形式で行われるようにしている。
The above-mentioned common interface means 12
A display means 17 for enabling a predetermined display operation and a memory means 18 for enabling a data storage operation are provided between the display means 1 and the dedicated interface means 13.
7 and the transfer of data in the memory means 18 are as follows:
It is performed in a common data format.

【0012】上記した共通のインターフェイス手段12
を介して受け渡されるデータ中には、表示手段17にお
ける画面処理を特定するコードと、メモリ手段18に対
するメモリアクセスを特定するコードと、第1データ処
理手段10との間におけるデータ通信処理を特定するコ
ードとを択一的に備え、各コードに対応したデータ処理
動作を行うことが可能である。
The above-mentioned common interface means 12
In the data passed through the, the code specifying the screen processing on the display means 17, the code specifying the memory access to the memory means 18, and the data communication processing between the first data processing means 10 are specified. And a data processing operation corresponding to each code can be performed.

【0013】[0013]

【発明の効果】本発明は上記の如く、共通のインターフ
ェイス手段12とパソコン装置のような汎用的なデータ
処理手段11との間は、汎用的な通信プロトコルでデー
タの受け渡しを行い、専用のインターフェース手段13
とPLCのような特定の機能を有するデータ処理手段1
0との間はその機種固有の通信プロトコルでデータの受
け渡しをするとともに、両インターフェイス手段12・
13間にプロトコルを変換する手段14を備えたので、
異なった通信プロトコルを持つ複数のデータ処理手段間
で、通信プロトコルの違いを意識することなく、リアル
タイムでデータの受け渡しを行うことができる。
As described above, according to the present invention, data is exchanged between the common interface means 12 and the general-purpose data processing means 11 such as a personal computer by using a general-purpose communication protocol. Mean 13
And data processing means 1 having specific functions such as PLC
0, data is transmitted and received using a communication protocol specific to the model.
Since means 14 for converting a protocol between 13 is provided,
Data can be transferred in real time between a plurality of data processing means having different communication protocols without being aware of the difference in the communication protocol.

【0014】[0014]

【発明の実施の形態】以下本発明を、図2に示すごと
く、第1のデータ処理手段として備えたPLC19を使
用して、ベルトコンベアー式の自動組付機の様なターゲ
ットシステム20に備えた被制御系のデバイスをシーケ
ンス制御可能とするとともに、そのPLC用の制御盤と
してプログラム式の表示装置22を使用した一例に基づ
いて説明するがこれに限らず、表示装置22が接続され
る第1および第2のデータ処理手段として各種のパソコ
ン応用装置を使用した場合にあっても略同様に実施でき
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in FIG. 2, the present invention is provided in a target system 20 such as a belt conveyor type automatic assembling machine using a PLC 19 provided as a first data processing means. A description will be given based on an example of using a programmable display device 22 as a control panel for the PLC while controlling a device of a controlled system in sequence, but the present invention is not limited to this. Even when various personal computer application devices are used as the second data processing means, the present invention can be implemented in substantially the same manner.

【0015】PLC19は、CPUユニットやメモリユ
ニットなどの必要とする個別の機能毎に回路がユニット
化され、各ユニットを必要に応じてバスラインを介して
適宜追加することにより、PLC全体として達成される
機能を増減可能とする、従来と略同様な構成のものであ
る。
The PLC 19 is realized as a whole PLC by unitizing a circuit for each required function such as a CPU unit and a memory unit, and adding each unit as needed via a bus line. It has a configuration substantially the same as that of the related art, which allows the number of functions to be increased or decreased.

【0016】この実施例にあっては、PLC19の全体
を制御するCPUユニット23と、ターゲットシステム
20から送られる検知信号の直接的な取り込みを可能と
する入力ユニット25と、ターゲットシステム20に向
けて所定の制御信号の出力を可能とする出力ユニット2
6と、各種データを保存するメモリユニット24と、プ
ログラム式表示装置22との間で所定のデータ通信を可
能とする計算機リンクユニット27とを基本ユニットと
して備え、CPUユニット23で常時入出力手段の変化
状態を監視しておき、新規データ入力等のデータ変化が
認められると、必要な演算処理を施したあとメモリユニ
ット24上における該当のアドレスにアクセスして内容
を読み書きし、あるいは出力ユニット26に向けてデー
タを送出する。
In this embodiment, a CPU unit 23 for controlling the entire PLC 19, an input unit 25 for enabling direct capture of a detection signal sent from the target system 20, and An output unit 2 that can output a predetermined control signal
6, a memory unit 24 for storing various data, and a computer link unit 27 for enabling predetermined data communication with the programmable display device 22 as basic units. The change state is monitored, and when a data change such as a new data input is recognized, necessary arithmetic processing is performed, and then the corresponding address on the memory unit 24 is accessed to read / write the contents. Send data to

【0017】また、ターゲットシステム20に対して直
接入出力され、あるいはその制御などに用いる状態デー
タの格納場所が、制御あるいは表示すべきターゲットシ
ステム20上に備えたレベル計やリミットスイッチの様
な受動部品、リレーやモータの様な能動部品、あるいは
カウンタや印字器の様なデータ設定部品毎にメモリユニ
ット24上に確保され、入出力されるデータが数値の様
なワードデータに対してはワードデバイスが、オンオフ
情報の様なビットデータに対してはビットデバイスが、
その機種固有の例えば「X001」のようなデバイス名
ないしはアドレスを指定することによって格納場所を特
定可能にメモリユニット24内に設定されている。
The storage location of status data which is directly input / output to / from the target system 20 or used for control thereof is controlled by a passive level such as a level meter or limit switch provided on the target system 20 to be controlled or displayed. Parts, active parts such as relays and motors, or data setting parts such as counters and printers are secured in the memory unit 24, and input / output data is a word device for word data such as numerical values. However, for bit data such as on / off information, a bit device
The storage location is set in the memory unit 24 so that the storage location can be specified by designating a device name or address such as “X001” specific to the model.

【0018】従って、PLC19の内部または外部から
メモリユニット24内における任意のワードデバイスあ
るいはビットデバイスを特定してアクセスするだけで、
ターゲットシステム20の対応位置を制御し或いはその
動作状態に関する情報が個別に取り出せる。
Therefore, only by specifying and accessing an arbitrary word device or bit device in the memory unit 24 from inside or outside the PLC 19,
The corresponding position of the target system 20 can be controlled or information on the operation state can be individually obtained.

【0019】なおPLC19は、他のデータ処理装置か
ら送られるコマンドを受け、そのコマンドに対応したデ
ータのメモリユニット24への書き込みや読み出し、あ
るいは送られたコマンドやデータをそのまま送り返す動
作のような受動的なデータ伝送機能を有するものが一般
的であるが、能動的なデータの伝送機能を有する場合に
あっても略同様に実施できることは勿論である。
The PLC 19 receives a command sent from another data processing device, and writes or reads data corresponding to the command to or from the memory unit 24, or returns the sent command or data as it is. In general, it has a general data transmission function. However, it is needless to say that the present invention can be implemented in substantially the same manner even when it has an active data transmission function.

【0020】プログラム式表示装置22は、PLC19
とともにターゲットシステム20の操作卓などに一体に
組み込み、あるいはそれ自身が独立して配備され、ター
ゲットシステム20に対する制御盤として使用される。
The programmable display device 22 includes a PLC 19
In addition, they are integrated into an operation console or the like of the target system 20 or are independently provided and used as a control panel for the target system 20.

【0021】例えば図3に示す様に、略矩形状に構成し
た筐体における正面側に液晶表示デバイスをディスプレ
イ28として使用した画面29を配置するとともに、そ
の画面29に密着させてタッチパネル30を配設する一
方、筐体の内部に図2に示す表示制御回路31を収納す
る。
For example, as shown in FIG. 3, a screen 29 using a liquid crystal display device as a display 28 is arranged on the front side of a substantially rectangular housing, and a touch panel 30 is arranged in close contact with the screen 29. On the other hand, the display control circuit 31 shown in FIG. 2 is housed inside the housing.

【0022】かかる構成により、画面29上にPLC1
9におけるターゲットシステム20の制御状態に対応し
た表示を行うと同時に、タッチパネル30およびタッチ
パネルコントローラ32を介した指先によるデータ入力
およびPLC19を介したターゲットシステム20側の
間接的な制御を可能とする。
With this configuration, the PLC 1 is displayed on the screen 29.
9, a display corresponding to the control state of the target system 20 is performed, and at the same time, data input by a fingertip via the touch panel 30 and the touch panel controller 32 and indirect control of the target system 20 via the PLC 19 are enabled.

【0023】なお、プログラム式表示装置22のデータ
入力手段としてはタッチパネル30に代えてあるいは加
えて、マウスの様なポインティングデバイスやキーボー
ドの様な各種の手動によるデータ入力手段が利用できる
ことは勿論である。
It should be noted that, as a data input means of the program type display device 22, instead of or in addition to the touch panel 30, various manual data input means such as a pointing device such as a mouse or a keyboard can be used. .

【0024】表示制御回路31の基本的な構成は汎用の
パソコン装置と略同様であって、バスライン33を介し
てCPU34、ROM35、RAM36をはじめとする
各種メモリ、あるいはグラフィックコントローラ37が
接続され、ROM35内に格納されたシステムプログラ
ムに従ってCPU34が所定の演算動作を行う一方、R
AM36に適宜格納される各種の演算結果は、各種の表
示用データを用いてグラフィックコントローラ37によ
りビットイメージとして展開され、その内容に対応した
表示がディスプレイ28の画面29上で行われる。
The basic configuration of the display control circuit 31 is substantially the same as that of a general-purpose personal computer, and various memories including a CPU 34, a ROM 35 and a RAM 36, or a graphic controller 37 are connected via a bus line 33. While the CPU 34 performs a predetermined arithmetic operation according to the system program stored in the ROM 35,
Various calculation results appropriately stored in the AM 36 are developed as bit images by the graphic controller 37 using various display data, and a display corresponding to the contents is performed on the screen 29 of the display 28.

【0025】更にまた、PLC19の回路構成に特化し
た専用のプロトコルで各種データの受け渡しを可能とす
る通信コントローラ38とPLC19側の計算機リンク
ユニット27とは、シリアル状態の専用の通信ライン3
9を通じて接続されている。
Furthermore, the communication controller 38 which enables the exchange of various data with a dedicated protocol specialized for the circuit configuration of the PLC 19 and the computer link unit 27 on the PLC 19 side are connected to the dedicated communication line 3 in the serial state.
9 are connected.

【0026】通信コントローラ38は、複数(本実施例
にあっては3つ)の通信ポート40を備え、各通信ポー
ト40毎にPLC19を1台ずつ接続可能とするととも
に、後記する通信手順にしたがって、互いにデータ通信
が行われるようにしている。
The communication controller 38 is provided with a plurality of (three in this embodiment) communication ports 40, one PLC 19 can be connected to each communication port 40, and according to a communication procedure described later. , Data communication with each other.

【0027】ここでプログラム式表示装置22において
は、図3に例示する銘板の様な表示内容に変更を要しな
い静止図形41、あるいは形状変化や点滅あるいは色変
化させるスイッチ形状のような部品図形42をベース画
面上に1または複数備えて構成された表示画面を単位画
面とする。更に、1台のプログラム式表示装置22内に
は複数の単位画面をそのデータ処理用として備えるとと
もに、各単位画面毎に異なったファイル番号Fを指定す
ることにより、単位画面を切り換えるだけで必要な操作
内容を表示した表示画面が得られるようにしている。
Here, in the programmable display device 22, a static figure 41 such as a name plate shown in FIG. 3 which does not require a change in display contents, or a part figure 42 such as a switch shape for changing shape, blinking or changing color. Is a unit screen on which one or more are provided on the base screen. Furthermore, a plurality of unit screens are provided in the single programmable display device 22 for data processing, and by specifying a different file number F for each unit screen, it is necessary only to switch the unit screen. A display screen showing the operation contents is obtained.

【0028】更にまた、1つの単位画面が選択された
際、その選択された単位画面に関係する図4(a)で例
示する様な処理指示語Wを事象データ用メモリ43上に
予め格納しておくとともに、その処理指示語Wを微小時
間毎に間欠的に読み出し、各処理指示語Wの事象名Nで
特定される内容の動作をPLC19側から表示装置22
側に取り出されたデータを参照しながら順次に実行する
ことにより、PLC19側のビットデバイスあるいはワ
ードデバイスの内容変化に即応して部品図形42や表示
データが変化する表示動作が表示画面上で行われる。
Further, when one unit screen is selected, a processing instruction word W related to the selected unit screen as illustrated in FIG. 4A is stored in the event data memory 43 in advance. In addition, the processing instruction word W is read out intermittently every minute time, and the operation of the content specified by the event name N of each processing instruction word W is performed from the PLC 19 side to the display device 22.
The display operation is performed on the display screen in which the part graphic 42 and the display data are changed in response to the change of the content of the bit device or the word device on the PLC 19 side by sequentially executing while referring to the data taken out to the side. .

【0029】すなわち処理指示語Wの基本的な構成は略
同一であって、表示制御動作を実行すべきベース画面の
ファイル番号Fと、そのベース画面上で実行すべき動作
内容を特定する事象名Nと、各実行事象毎に参照される
1又は複数のデータからなる参照情報rとを1組として
備えている。
That is, the basic structure of the processing instruction word W is substantially the same, and the file number F of the base screen on which the display control operation is to be executed and the event name for specifying the operation content to be executed on the base screen N and one set of reference information r composed of one or a plurality of data referred to for each execution event.

【0030】例えば、図4(b)に示す処理指示語WT
は、タッチパネル30に対する押圧指示操作と連動し
て、状態データ用メモリ44内の所定アドレス位置に設
定したビットデバイスを反転可能とするものである。す
なわち、単位画面のファイル番号F1、タッチパネル3
0の操作を特定する例えば「T」から始まる事象名N
1、タッチパネル30からの入力操作を有効とする入力
座標範囲X・Y、タッチパネル30の押し操作と連動し
てデータを書き換えるべきアドレスAとから構成され
る。
For example, the processing instruction word WT shown in FIG.
The bit device that is set at a predetermined address position in the state data memory 44 can be inverted in conjunction with a pressing instruction operation on the touch panel 30. That is, the file number F1 of the unit screen, the touch panel 3
An event name N starting with "T", for example, specifying the operation 0
1. An input coordinate range X / Y in which an input operation from the touch panel 30 is valid, and an address A at which data is to be rewritten in conjunction with a pressing operation on the touch panel 30.

【0031】更に図4(c)に示す処理指示語WLは、
上記したタッチパネル30の操作と連動して、表示画面
上における対応位置に所定の図形を表示可能とするもの
である。すなわち、ベース画面のファイル番号F1、部
品図形42の表示を特定する例えば「L」から始まる事
象名N2、部品図形42の表示座標範囲X・Y、呼び出
す部品図形42を特定するファイル番号FL、部品図形
42を表示時に参照するアドレスAとから構成される。
Further, the processing instruction word WL shown in FIG.
In conjunction with the operation of the touch panel 30 described above, a predetermined figure can be displayed at a corresponding position on the display screen. That is, the file number F1 of the base screen, the event name N2 starting with, for example, "L" for specifying the display of the part graphic 42, the display coordinate range XY of the part graphic 42, the file number FL for specifying the part graphic 42 to be called, the part An address A is referred to when the graphic 42 is displayed.

【0032】そこで図3(a)の様に、座標範囲X・Y
と参照アドレスAとを共に一致させた2つの処理指示語
WL1・WT1を事象データ用メモリ43に設定してお
く。また、PLC19側に備えた状態データ用メモリ4
4のアドレスAにおけるビットデバイスが「0」の場
合、それをスイッチのオフ状態に予め対応させておく
と、PLC19ではターゲットシステム20側の制御す
べき実際のスイッチ接点に対してオフ動作を行う。それ
と同時に、スイッチのオフ状態に対応する部品図形42
のデータFL1をグラフィック用メモリ45から読み出
し、該当するベース画面上の指定座標範囲X・Yに展開
して表示する。
Then, as shown in FIG. 3A, the coordinate range XY
Are set in the event data memory 43 in advance. Also, the state data memory 4 provided on the PLC 19 side
If the bit device at address A of No. 4 is “0”, it is made to correspond to the off state of the switch in advance, and the PLC 19 performs the off operation on the actual switch contact to be controlled on the target system 20 side. At the same time, the part graphic 42 corresponding to the switch off state
Is read from the graphic memory 45, and is developed and displayed in the designated coordinate range XY on the corresponding base screen.

【0033】ここでタッチパネル30におけるスイッチ
形状を有する部品図形42の表示場所を押すと、タッチ
パネル30用の処理指示語WTを検索し、タッチパネル
30を介してなされた指示座標から該当の座標を含む範
囲を座標情報として有する処理指示語WTの有無を判定
する。
When the display location of the component figure 42 having the switch shape on the touch panel 30 is pressed, a processing instruction word WT for the touch panel 30 is searched, and a range including the corresponding coordinates from the instruction coordinates made via the touch panel 30 is searched. Is determined as to whether or not there is a processing instruction word WT having the coordinate information as the coordinate information.

【0034】例えば、座標範囲X・Yの内の一点が押さ
れた場合、上記の様にして構成された処理指示語WT1
に対応するので、図3(b)に示す如く、PLC19に
おける該当のアドレスAにデータを書き込んでデータ値
を「0」から「1」に反転することにより、PLC19
により該当のスイッチ接点をオンする制御をさせる。そ
れと同時に、処理指示語WL1は参照アドレスAのデー
タを読み出して「1」に変化したことを判断する。する
と、スイッチのオン状態に対応する図形のデータFL2
をグラフィック用メモリ45から読み出して該当の座標
範囲X・Y上に表示することにより、ベース画面上に表
示されたスイッチ形状の部品図形42も、オフ状態から
オン状態へと変更されるのである。
For example, when one point in the coordinate range XY is pressed, the processing instruction word WT1 constructed as described above is pressed.
Therefore, as shown in FIG. 3B, by writing data to the corresponding address A in the PLC 19 and inverting the data value from “0” to “1”, the PLC 19
Control to turn on the corresponding switch contact. At the same time, the processing instruction word WL1 reads the data at the reference address A and determines that the data has changed to “1”. Then, the graphic data FL2 corresponding to the ON state of the switch
Is read from the graphic memory 45 and is displayed in the corresponding coordinate range XY, so that the switch-shaped component graphic 42 displayed on the base screen is also changed from the off state to the on state.

【0035】本実施例にあっては更に、1または複数台
のプログラム式表示装置22とホストコンピュータ46
間は、イーサネットの様な汎用的な通信用アダプタ47
および通信用ケーブルからなる共通の通信ライン48を
介してLAN接続されている。
In this embodiment, one or more programmable display devices 22 and a host computer 46 are further provided.
Between, a general-purpose communication adapter 47 such as Ethernet
And a LAN connection via a common communication line 48 composed of a communication cable.

【0036】従って、共通の通信ライン48を介して接
続されたプログラム式表示装置22およびホストコンピ
ュータ46間は相互に、後で詳述するような共通の通信
プロトコルを使用して各種データの受け渡しを可能とす
る。
Therefore, the programmable display device 22 and the host computer 46 connected via the common communication line 48 exchange various data with each other using a common communication protocol as described later in detail. Make it possible.

【0037】更に、データ通信プロトコルが各PLC専
用でPLC19毎に互いに異なる場合にあっても、複数
種類のPLC19間およびPLC19とホストコンピュ
ータ46間で、PLC19における制御状態に対応した
状態データMDをはじめとする各種データの受け渡し
を、プログラム式表示装置22を介して行える様にした
構成に特徴を有する。
Further, even when the data communication protocol is dedicated to each PLC and different from each other for each PLC 19, the state data MD corresponding to the control state of the PLC 19, including the state data MD between the plural types of PLCs 19 and between the PLC 19 and the host computer 46 is obtained. Of the various types of data described above can be transferred via the program display device 22.

【0038】すなわち図5に示す如く、ホストコンピュ
ータ46では所定のデータ処理が行われ、その処理結果
を画面表示する一方、伝送すべきデータは共通のプロト
コルを用いて共通の通信ライン48を介して送出され
る。
That is, as shown in FIG. 5, predetermined data processing is performed in the host computer 46, and the processing result is displayed on a screen, while data to be transmitted is transmitted through a common communication line 48 using a common protocol. Sent out.

【0039】一方PLC19は、予め設定したプログラ
ムに従ってターゲットシステム20における被制御系の
デバイス21と各種信号の入出力動作を行うとともに、
その制御状態に対応した内容のデータを図3の様にメモ
リユニット24に設定した状態データ用メモリ44上に
アドレスを特定して保存する。
On the other hand, the PLC 19 performs input / output operations of various signals with the controlled system device 21 in the target system 20 in accordance with a preset program.
The data having the contents corresponding to the control state is specified and stored in the state data memory 44 set in the memory unit 24 as shown in FIG.

【0040】更新された状態データMDは、表示装置2
2側からのデータ読み出し要求に対応し、PLC19側
からその機種固有で専用のプロトコルを用いてPLC専
用の通信ライン39を介して表示装置22側に送られ
る。また表示装置22側からのデータ書き込み要求に対
応して、専用のプロトコルを用いて専用の通信ライン3
9を通じてPLC19内の状態データMDを変更するデ
ータが入力されると、そのデータ変化に対応した被制御
系デバイス21に対する制御動作が行われる。
The updated state data MD is stored in the display 2
In response to a data read request from the second side, the data is sent from the PLC 19 to the display device 22 via the PLC dedicated communication line 39 using a dedicated protocol specific to the model. In response to a data write request from the display device 22, a dedicated communication line 3 using a dedicated protocol.
When data for changing the state data MD in the PLC 19 is input through the controller 9, a control operation for the controlled system device 21 corresponding to the data change is performed.

【0041】本発明は上記した構成にあって更に、共通
の通信ライン48を介して接続されたプログラム式表示
装置22とホストコンピュータ46を始めとする全デー
タ処理装置との間は、TCP/IPのような汎用的な通
信プロトコルを用い、図6で例示する共通のデータ転送
フォーマット49によるデータの受け渡しを行う。
The present invention has the above-described configuration, and further includes a TCP / IP between the programmable display device 22 and all the data processing devices including the host computer 46 connected via a common communication line 48. By using a general-purpose communication protocol such as that described above, data is exchanged using a common data transfer format 49 illustrated in FIG.

【0042】これに対して、表示装置22とPLC19
との間は、機種固有の通信プロトコルで規定される図7
(a)で例示するような専用のデータ転送フォーマット
に基づいて作成されたデータ50で情報の受け渡しを行
う。
On the other hand, the display device 22 and the PLC 19
7 is defined by a model-specific communication protocol.
Information is transferred using data 50 created based on a dedicated data transfer format as exemplified in (a).

【0043】ここで共通のデータ転送フォーマット49
は、図6(a)に例示する如く、プログラム式表示装置
22内で処理すべき処理IDと、データの発信元を特定
するアドレスと、データの宛先を特定するアドレスと、
前記した処理IDで特定されたデータ処理内容を詳細に
定義する第1データとから構成される例を示すがこれは
一例であって、共通に使用することができるものであれ
ば、そのフォーマットは任意に設定できることは勿論で
ある。
Here, the common data transfer format 49
As shown in FIG. 6A, a process ID to be processed in the programmable display device 22, an address for specifying the source of data, an address for specifying the destination of data,
An example composed of the first data that defines in detail the data processing content specified by the above processing ID is shown. This is an example, and if it can be used in common, its format is Of course, it can be set arbitrarily.

【0044】本実施例にあっては、ホストコンピュータ
46からプログラム式表示装置22に対して要求するデ
ータ処理内容として、内部メモリ52に対するデータの
アクセスと、表示装置22における画面処理動作と、P
LC19に対するデータ通信とが規定されている。そこ
で、具体的な処理内容とその内容を一意的に特定するI
Dコードとの対応表を備え、その対応表に従った具体的
なID指定が行われるとともに、発信元および宛先アド
レスでデータの受け渡し対象となるデバイスが特定され
る。
In this embodiment, the data processing contents requested from the host computer 46 to the programmable display device 22 include data access to the internal memory 52, screen processing operation in the display device 22,
Data communication with the LC 19 is defined. Therefore, specific processing contents and I that uniquely specify the contents are described.
A correspondence table with the D code is provided, a specific ID is specified according to the correspondence table, and a device to which data is to be transferred is specified by the source and destination addresses.

【0045】次に上記した第1データのフォーマット
は、図6(b)に例示する様に、処理IDで特定される
処理内容を具体的に特定するものであって、そのIDで
特定される内容を実行した場合に必要な処理内容ID
と、コマンドを汎用化した中間コードで表現したコマン
ドIDと、具体的なアクセス先を示すデバイスアドレス
と、第2のデータとから構成される。
Next, as shown in FIG. 6B, the format of the first data specifically specifies the processing content specified by the processing ID, and is specified by the ID. Process content ID required when executing the content
, A command ID expressed by a generalized intermediate code of the command, a device address indicating a specific access destination, and second data.

【0046】処理内容IDは、例えば処理すべき内容が
PLC19との間におけるデータ転送であれば、通信が
表示装置22とPLC19との間で1対nの関係でデー
タ通信がなされるか1対1の関係でデータ通信がなされ
るかを特定するIDコードや、接続されるPLC19に
予め指定された局番号のような処理内容に関連した参照
データが設定される。
For example, if the content to be processed is data transfer between the PLC 19, the processing content ID indicates whether data communication is performed between the display device 22 and the PLC 19 in a one-to-n relationship. An ID code that specifies whether data communication is performed in the relationship of 1, and reference data related to processing contents such as a station number specified in advance in the connected PLC 19 are set.

【0047】次にコマンドIDは、複数種類存在するP
LC用の通信プロトコル中で各プロトコルに共通する処
理内容を特定するコマンドを、図7(c)で例示する如
く同一のコード番号による中間コード化したものであっ
て、更に全コマンドについて中間コードと対比した変換
テーブル15をデータベース化している備えている。
Next, the command IDs are P
In the communication protocol for LC, a command for specifying the processing content common to each protocol is converted into an intermediate code with the same code number as illustrated in FIG. 7 (c). A conversion table 15 for comparison is provided in a database.

【0048】デバイスアドレスは、PLC19の状態デ
ータ用メモリ44上に設定された具体的なデバイスを特
定するためのものであり、データを読み出しあるいは書
き込むべき具体的なアドレスないしはデバイス名が指定
される。また第2データとしては、データの書き込みに
あっては実際に書き込むべきデータを、データの読み出
し時にあっては読み出しサイズのような、読み書きすべ
きデータを特定する情報を記入する。
The device address is for specifying a specific device set on the status data memory 44 of the PLC 19, and a specific address or device name from which data is to be read or written is specified. As the second data, data to be actually written when writing data, and information for specifying data to be read or written, such as a read size when reading data, are written.

【0049】上記した共通のプロトコルで共通のデータ
フォーマットを使用して送られるデータに対し、各PL
Cメーカが規定する通信プロトコルは、コマンド体系は
勿論、データ転送フォーマットや受け渡し情報に含まれ
るデータ内容、あるいはその並び順も互いに異なったも
のが予め指定されて使用が強制されることが一般的であ
る。
For each data sent using the common protocol and the common data format described above, each PL
The communication protocol defined by the C maker is generally forced to use not only the command system but also the data contents included in the data transfer format and the transfer information or the order in which they are arranged in a different order. is there.

【0050】そこで各専用の通信プロトコルにより規定
されているデータ転送フォーマットが例えば図7(a)
のような形式の場合、実際に転送すべきデータ部分が未
定となったスケルトン状態のフォーマットを抽出し、図
7(b)のようなフォーマット情報16として保持す
る。
Therefore, the data transfer format defined by each dedicated communication protocol is, for example, as shown in FIG.
In the case of such a format, a format in a skeleton state in which a data portion to be actually transferred is undetermined is extracted and stored as format information 16 as shown in FIG.

【0051】更に上記した共通の通信プロトコルで使用
する中間コードと各機種固有のコマンドとを1対とした
図7(c)に例示する変換テーブル15を形成し、前記
したデータ転送フォーマット情報16と組にして各通信
プロトコル毎にプロトコル情報51として表示装置22
内の内部メモリ52上に備えることにより、機種に依存
したプロトコル情報51を切り替えてそれに具体的なデ
ータを当てはめるだけで、接続されたPLCの機種に依
存したプロトコルによるデータ通信が行えるようにして
いる。
Further, a conversion table 15 illustrated in FIG. 7C is formed in which the intermediate code used in the above-mentioned common communication protocol and a command unique to each model are paired, and the above-mentioned data transfer format information 16 and The display device 22 is set as protocol information 51 for each communication protocol.
By providing it on the internal memory 52, the data communication by the protocol depending on the model of the connected PLC can be performed only by switching the protocol information 51 depending on the model and applying specific data to it. .

【0052】そこで表示装置22の初期設定時あるいは
接続されるPLC19が変更された時点において、自己
に接続される可能性のあるPLC19に対応した通信プ
ロトコル情報51を、例えばホストコンピュータ46に
保存されたプロトコルデータベースから選択し、共通の
通信ライン48を介して共通の通信プロトコルを用いて
メモリ上にダウンロードする。
Therefore, at the time of initial setting of the display device 22 or when the connected PLC 19 is changed, the communication protocol information 51 corresponding to the PLC 19 which may be connected to itself is stored in the host computer 46, for example. It is selected from a protocol database and downloaded to the memory via a common communication line 48 using a common communication protocol.

【0053】なお、専用の通信プロトコル情報51を上
記の様にホストコンピュータ46からダウンロードする
のに代えてあるいは加えて、メモリカードに対するデー
タの読み書き手段を備えてそのメモリカードからダウン
ロードしたり、表示画面の作成時などの適宜時期にロー
ダからダウンロードすることも可能であるし、ROM3
5内に予め複数種類の通信プロトコルを固定しておき、
必要な通信プロトコルを選択することもできる。
Instead of or in addition to downloading the dedicated communication protocol information 51 from the host computer 46 as described above, a means for reading / writing data from / to the memory card is provided to download the communication protocol information 51 from the memory card. It can be downloaded from the loader at an appropriate time, such as when the file is created.
5, a plurality of types of communication protocols are fixed in advance,
The required communication protocol can also be selected.

【0054】上記した構成にあって、図8に示す流れ図
におけるステップST1で表示装置22をスタートする
と、ステップST2で所定の初期化動作が行われたの
ち、ステップST3から始まるデータの受信工程に入
る。
In the above configuration, when the display device 22 is started in step ST1 in the flow chart shown in FIG. 8, after a predetermined initialization operation is performed in step ST2, the process enters a data receiving process starting from step ST3. .

【0055】先ずステップST3で、共通の通信ライン
48を介してデータ入力がないか否かを判定し、データ
入力がないとステップST4に移って専用の通信ライン
39を介したデータ入力がないか調べ、専用の通信ライ
ン39からもデータ入力がないことが判定されるとステ
ップST3に戻って新たなデータ入力を待つ。
First, in step ST3, it is determined whether there is no data input through the common communication line 48. If there is no data input, the process proceeds to step ST4 to check whether there is any data input through the dedicated communication line 39. When it is determined that there is no data input from the dedicated communication line 39, the process returns to step ST3 to wait for a new data input.

【0056】ここで、ステップST3の判定で共通の通
信ライン48を介したデータ入力が判定されると、ステ
ップST5に移って自己に対するデータか否かを調べ、
自己当てのデータでないことが判定されると、ステップ
ST3に戻って次のデータ入力を待つ。
If the data input through the common communication line 48 is determined in step ST3, the process proceeds to step ST5 to check whether the data is for itself.
If it is determined that the data is not self-applied data, the process returns to step ST3 and waits for the next data input.

【0057】しかし、ステップST5で自己のデータが
取り出されると、このデータのフォーマットは図6で例
示する共通のデータ転送フォーマット49で規定されて
いるので、ステップST6において受け取ったデータの
最初にある処理IDを判定し、その内容に従ったデータ
処理動作が開始される。
However, when the own data is taken out at step ST5, the format of this data is defined by the common data transfer format 49 exemplified in FIG. 6, so that the processing at the beginning of the data received at step ST6 is performed. The ID is determined, and a data processing operation according to the content is started.

【0058】例えば処理IDが画面処理に関するもので
あれば、ステップST7に移って画像転送タスク処理動
作がされ、上記した処理指示語を使用した画像データの
転送や画面の書き換え処理など、予め処理IDで規定し
てある内容のデータ処理動作が行われる。処理IDが内
部処理に関するものであれば、ステップST8におい
て、内部メモリ52へ指定されたデータの書き込みある
いは読み出しなどの必要なデータ処理を行う。
For example, if the processing ID is related to screen processing, the process proceeds to step ST7, where an image transfer task processing operation is performed. The data processing operation of the content specified in is performed. If the processing ID relates to internal processing, necessary data processing such as writing or reading of specified data to the internal memory 52 is performed in step ST8.

【0059】またステップST6における処理IDの判
別で、PLC19とのデータ通信動作を規定するもので
あることが判定されると、ステップST9に移って宛先
アドレスの値から通信相手となるPLC19を判別す
る。すなわち、図10(a)の様に宛先アドレスとその
通信ポート番号およびその通信ポート40に接続された
PLC19で使用される通信プロトコルの種類が予めテ
ーブル化されており、このテーブルから通信に使用する
プロトコルをステップST10で選択する。
If it is determined in step ST6 that the process ID specifies the data communication operation with the PLC 19, the process proceeds to step ST9 to determine the PLC 19 to be the communication partner from the value of the destination address. . That is, as shown in FIG. 10A, the destination address, the communication port number thereof, and the type of communication protocol used in the PLC 19 connected to the communication port 40 are stored in a table in advance, and the table is used for communication. A protocol is selected in step ST10.

【0060】しかるのち、図6(b)に示す第1データ
の内容と、選択された通信プロトコルのフォーマット情
報16および変換テーブル15から、データ通信すべき
PLC19で使用されている通信プロトコルに適合した
フォーマットのコマンドデータが作成され(ステップ1
1)、そのコマンドデータはステップST12で該当の
PLC19に向けて送出される。
Thereafter, based on the contents of the first data shown in FIG. 6B and the format information 16 and the conversion table 15 of the selected communication protocol, the data conforms to the communication protocol used in the PLC 19 for data communication. Format command data is created (step 1
1), the command data is transmitted to the corresponding PLC 19 in step ST12.

【0061】一方、ステップST4において、各通信ポ
ート40毎に備えたバッファメモリにおけるデータ内容
の変化の有無を順次に調べ、内容変化がある通信ポート
が見つかるとステップST13に移ってデータを取り込
むとともに、ポート番号から通信相手を特定する。更に
ステップST14において、図10(a)のテーブルを
使用して使用されている通信プロトコルを調べ、その通
信プロトコルに対応するフォーマット情報16と変換テ
ーブル15から、中間コードを用いた共通のデータ転送
フォーマット49に従って変換したあと、ステップST
15で共通の通信ライン48を介したホストコンピュー
タ46に対するデータ送出のような所定のデータ処理が
行われる。
On the other hand, in step ST4, the presence or absence of a change in the data content in the buffer memory provided for each communication port 40 is sequentially examined. If a communication port having a change in the content is found, the process proceeds to step ST13 to fetch the data. Specify the communication partner from the port number. Further, in step ST14, the communication protocol used is checked using the table of FIG. 10A, and the common data transfer format using the intermediate code is determined from the format information 16 and the conversion table 15 corresponding to the communication protocol. After the conversion according to step 49, step ST
At 15, predetermined data processing such as data transmission to a host computer 46 via a common communication line 48 is performed.

【0062】ところで上記した実施例にあっては、プロ
グラム式表示装置22に接続されているPLC19の台
数およびプロトコルの種類が装置の始動前に既知でしか
も変更されない場合を例示した。しかしながら、図9で
示す流れ図のとおり、接続されるPLC19の数あるい
は種類を動作中に任意に変更することにより、PLC1
9側の接続状態を気にすることなくホストコンピュータ
46側からPLC19に対してデータ通信を行うことが
可能となる。そこで、図9にしたがって、接続されたP
LCで使用されている通信プロトコルを自動的に判別す
る方法を更に説明する。
In the above-described embodiment, the case where the number of PLCs 19 connected to the programmable display device 22 and the type of protocol are known before starting the device and are not changed is illustrated. However, as shown in the flowchart of FIG. 9, by changing the number or type of the connected PLC 19 arbitrarily during operation, the PLC 1
The data communication can be performed from the host computer 46 to the PLC 19 without worrying about the connection state on the 9 side. Therefore, according to FIG.
A method for automatically determining the communication protocol used in the LC will be further described.

【0063】なお以下における説明では、プログラム式
表示装置22に接続される可能性のあるPLCは、製造
会社および機種に特化したそれ専用の通信プロトコルと
して「A、A2、B、C」の4種類を有している場合を
想定しているが、その数および種類は適宜に増減できる
ことは勿論である。
In the following description, the PLCs that may be connected to the programmable display device 22 are “A, A2, B, C” as communication protocols dedicated to the manufacturer and model. Although it is assumed that there are types, the number and types can be appropriately increased or decreased.

【0064】図9に示す流れ図のステップST21でシ
ステムを始動させると、ステップST22から始まる通
信プロトコルの選定工程に入る。かかる工程にあっては
先ず、ステップST22において例えば「00」の様な
プロトコル判別用として予め設定したコマンドを表示装
置22側からPLC19に向けて送出する。
When the system is started in step ST21 of the flowchart shown in FIG. 9, the process enters a communication protocol selection process starting from step ST22. In this process, first, in step ST22, a command set in advance for protocol discrimination, such as "00", is transmitted from the display device 22 to the PLC 19.

【0065】ここでプロトコル判別用のコマンドは、通
信プロトコルの違いに対応して、できるだけ異なった応
答データが得られるものから選択されるものであって、
図10(b)の様に適用される全プロトコルに対して応
答コードを予めリストアップしている。
Here, the command for protocol discrimination is selected from commands from which response data as different as possible can be obtained according to the difference in communication protocol.
Response codes are listed in advance for all protocols applied as shown in FIG.

【0066】更に図示例におけるプロトコルの「A・A
2」の様に同一の応答コードが返される場合にあって
は、別の判定用コマンド「01」を設定し、図9(c)
の様な同様の対応表を作成しておく。
Further, the protocol "A.A"
In the case where the same response code is returned as in “2”, another determination command “01” is set and FIG.
Create a similar correspondence table like

【0067】ステップST23において、PLC19側
からの返答が確認されない場合は、PLC19との間に
おけるデータ通信自体が確立されていないものと判断さ
れる。そこで、ステップST24で全てのプロトコルを
チェックし終えたものと判定されると、その通信ポート
40に対してPLC19が接続されていないか、予め用
意した通信プロトコル以外であると判定し、ステップS
T25に移って判定動作を終了する。一方、ステップS
T24で次のプロトコルが存在する場合には、ステップ
ST26で適用するプロトコルを変更したあと、ステッ
プST22に戻って上記した処理動作を繰り返す。
If no response from the PLC 19 is confirmed in step ST23, it is determined that data communication itself with the PLC 19 has not been established. Therefore, if it is determined in step ST24 that all the protocols have been checked, it is determined that the PLC 19 is not connected to the communication port 40 or that the communication protocol is other than the communication protocol prepared in advance.
The process moves to T25 and the determination operation ends. On the other hand, step S
If the next protocol exists in T24, after changing the protocol to be applied in step ST26, the process returns to step ST22 to repeat the above-described processing operation.

【0068】また、ステップST23でPLC19側か
らの返答が確認されると、ステップST27に移ってそ
の応答コードを図10(b)の表中に対応させ、プロト
コルを判別する。例えば応答コードが「20」の場合に
あっては、通信プロトコルは「B」であり、「30」で
あればプロトコルは「C」であると判定できるので、ス
テップST28で通信ポート40と通信プロトコルとを
対応させた図10(a)で例示する対応テーブルを更新
するとともに、使用する通信プロトコルを確定したあ
と、ステップST30における通常のデータ処理動作を
持続する。
When the response from the PLC 19 is confirmed in step ST23, the process proceeds to step ST27, where the response code is made to correspond to the table in FIG. 10B, and the protocol is determined. For example, when the response code is “20”, the communication protocol is “B”, and when the response code is “30”, it can be determined that the protocol is “C”. After the correspondence table exemplified in FIG. 10 (a) is updated and the communication protocol to be used is determined, the normal data processing operation in step ST30 is continued.

【0069】しかしながら、ステップST27で確認さ
れた応答コードが「10」の場合にあっては、通信プロ
トコルは「AまたはA2」の可能性があって確定できな
い。そこで、ステップST31に移って判定用のコマン
ドを図10(c)に例示する「01」に変更して同様な
判定動作を行う。この場合における応答コードが「0
1」ならプロトコルが「A」であり、「02」ならプロ
トコルは「A2」と特定でき、それ以外であればサポー
ト外の通信プロトコルと判断するのである。
However, if the response code confirmed in step ST27 is "10", the communication protocol cannot be determined because there is a possibility that the communication protocol is "A or A2". Therefore, the process proceeds to step ST31, and the determination command is changed to “01” illustrated in FIG. 10C, and a similar determination operation is performed. The response code in this case is "0
If "1", the protocol can be specified as "A", if "02", the protocol can be specified as "A2", otherwise, it is determined that the communication protocol is not supported.

【0070】更に、定常的なデータ処理中におけるステ
ップST29において通信エラーが発生した場合にあっ
ては、表示装置22に接続されているPLC19が取り
替えられるなどの変更動作があったものと推測される。
その様な場合にあっては、ステップST22からの上記
した通信プロトコルの判別工程に戻り、PLC19に適
合した通信プロトコルを図10(a)の表中に自動的に
設定することにより、装置を停止した状態での手動によ
る初期設定動作を必要とすることなく、リアルタイムで
通信プロトコルの設定動作は終了する。
Further, when a communication error occurs in step ST29 during the regular data processing, it is presumed that a change operation such as replacement of the PLC 19 connected to the display device 22 has occurred. .
In such a case, the process returns to the above-described communication protocol determination step from step ST22, and the apparatus is stopped by automatically setting a communication protocol suitable for the PLC 19 in the table of FIG. The setting operation of the communication protocol is completed in real time without the necessity of a manual initial setting operation in a state where the communication protocol has been set.

【0071】なお、表示装置22にはPLC19に加え
てビデオカメラの様な各種のデータ入出力手段を備え、
表示装置22および共通の通信ライン48を介して映像
データの様な各種のデータ伝送をさせることもできる。
The display device 22 includes various data input / output means such as a video camera in addition to the PLC 19.
Various data such as video data can be transmitted through the display device 22 and the common communication line 48.

【0072】更にまた、アクセスすべきPLC19の種
類が特定されている場合を想定し、そのPLC19に固
有のアドレスを指定してデータの読み書きをする場合を
例示したが、アドレスについても全PLC19に共通の
アドレス表示を予め設定し、各機種固有の表現によるア
ドレス表示との変換テーブルを用意することにより、ア
クセスすべきPLC19の種類を全く考慮することなく
プログラムを作成することが可能となり、プログラムの
汎用性は更に向上する。
Furthermore, assuming that the type of the PLC 19 to be accessed is specified, a case where data is read / written by designating a unique address to the PLC 19 has been exemplified. However, the address is common to all the PLCs 19. By setting the address display in advance and preparing a conversion table with the address display in an expression specific to each model, it is possible to create a program without considering the type of the PLC 19 to be accessed at all. The performance is further improved.

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

【図1】本発明の基本的な構成を概略的に示す説明図で
ある。
FIG. 1 is an explanatory diagram schematically showing a basic configuration of the present invention.

【図2】PLCおよびプログラム式表示装置の電気的な
構成を示すブロック図である。
FIG. 2 is a block diagram illustrating an electrical configuration of a PLC and a programmable display device.

【図3】処理指示語を使用した制御動作の一例を示す説
明図である。
FIG. 3 is an explanatory diagram illustrating an example of a control operation using a processing instruction word.

【図4】処理指示語の構成を示す説明図である。FIG. 4 is an explanatory diagram showing a configuration of a processing instruction word.

【図5】表示装置を介したデータの伝送手順を示す説明
図である。
FIG. 5 is an explanatory diagram showing a data transmission procedure via a display device.

【図6】共通の通信プロトコルで使用するデータ転送フ
ォーマットの一例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a data transfer format used in a common communication protocol.

【図7】専用の通信プロトコルで使用するデータ転送フ
ォーマットと変換テーブルの一例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a data transfer format and a conversion table used in a dedicated communication protocol.

【図8】データの受け渡し工程を示す流れ図である。FIG. 8 is a flowchart showing a data transfer process.

【図9】通信プロトコルの判別工程を示す流れ図であ
る。
FIG. 9 is a flowchart showing a communication protocol determination step.

【図10】通信プロトコルと応答コードとの関係を例示
する説明図である。
FIG. 10 is an explanatory diagram illustrating a relationship between a communication protocol and a response code.

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

10 第1のデータ処理手段 11 第2のデータ処理手段 12 共通のインターフェイス手段 13 専用のインターフェース手段 14 プロトコル変換手段 15 変換テーブル 16 フォーマット情報 17 表示手段 18 メモリ手段 19 PLC 20 ターゲットシステム 21 被制御系のデバイス 22 プログラム式表示装置(データ処理装置) 23 CPUユニット 24 メモリユニット 25 入力ユニット 26 出力ユニット 27 計算機リンクユニット 28 ディスプレイ 29 画面 30 タッチパネル 31 表示制御回路 32 タッチパネルコントローラ 33 バスライン 34 CPU 35 ROM 36 RAM 37 グラフィックコントローラ 38 通信コントローラ 39 専用の通信ライン 40 通信ポート 41 静止図形 42 部品図形 43 事象データ用メモリ 44 状態データ用メモリ 45 グラフィック用メモリ 46 ホストコンピュータ 47 通信用アダプタ 48 共通の通信ライン 49 共通のデータ転送フォーマット 50 専用のデータ転送フォーマット 51 プロトコル情報 52 内部メモリ 10 first data processing means 11 second data processing means 12 common interface means 13 dedicated interface means 14 protocol conversion means 15 conversion table 16 format information 17 display means 18 memory means 19 PLC 20 target system 21 controlled system Device 22 Program display device (data processing device) 23 CPU unit 24 Memory unit 25 Input unit 26 Output unit 27 Computer link unit 28 Display 29 Screen 30 Touch panel 31 Display control circuit 32 Touch panel controller 33 Bus line 34 CPU 35 ROM 36 RAM 37 RAM 37 Graphic controller 38 Communication controller 39 Dedicated communication line 40 Communication port 41 Static graphic 42 Part graphic 43 Event Data memory 44 Status data memory 45 Graphics memory 46 Host computer 47 Communication adapter 48 Common communication line 49 Common data transfer format 50 Dedicated data transfer format 51 Protocol information 52 Internal memory

───────────────────────────────────────────────────── フロントページの続き (72)発明者 吉田 稔 大阪市住之江区南港東8−2−52 株式会 社デジタル内 Fターム(参考) 5B089 GA01 GA21 KA06 KA10 KB04 KF05 KG04 KH04 5K034 AA19 AA20 CC01 DD01 FF01 FF11 FF14 FF20 HH01 HH02 HH16 HH26 HH61 KK04  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Minoru Yoshida, Inventor Minami 8-2-52, Nanko-Higashi, Suminoe-ku, Osaka F-term (reference) 5B089 GA01 GA21 KA06 KA10 KB04 KF05 KG04 KH04 5K034 AA19 AA20 CC01 DD01 FF01 FF11 FF14 FF20 HH01 HH02 HH16 HH26 HH61 KK04

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 その機種固有の通信プロトコルでデータ
の受け渡しを行う第1のデータ処理手段(10)と、共
通の通信プロトコルでデータの受け渡しを行う第2のデ
ータ処理手段(11)との間にあって、 第2のデータ処理手段(11)と接続されて共通の通信
プロトコルでデータの受け渡しを行う共通のインターフ
ェイス手段(12)と、 1または複数の第1のデータ処理手段(10)と接続さ
れ、データ通信を行うべき第1のデータ処理手段(1
0)が使用する専用の通信プロトコルでデータの受け渡
しを行う専用のインターフェース手段(13)と、 共通のインターフェイス手段(12)と専用のインター
フェース手段(13)の間にあって、通信プロトコルの
変換を行うプロトコル変換手段(14)とを備え、 上記した共通のインターフェイス手段(12)と第2の
データ処理手段(11)との間は、データ処理すべき内
容を機種に依存しない中間コードで表現した共通のデー
タ形式でデータの受け渡しを行う一方、 プロトコル変換手段(14)では、データ通信を行うべ
き第1のデータ処理手段(10)との間で受け渡し可能
な専用のデータ形式と、第2のデータ処理手段(11)
との間で受け渡される共通のデータ形式との間でデータ
の相互変換を可能とすることを特徴とするデータ処理装
置。
An apparatus is provided between a first data processing means (10) for transferring data using a communication protocol specific to the model and a second data processing means (11) for transferring data using a common communication protocol. A common interface means (12) connected to the second data processing means (11) to exchange data with a common communication protocol; and one or more first data processing means (10). , The first data processing means (1
0) a dedicated interface means (13) for exchanging data with a dedicated communication protocol used between the common interface means (12) and the dedicated interface means (13), and a protocol for converting the communication protocol. A conversion unit (14), and a common interface unit (12) and a second data processing unit (11) that express contents to be processed by an intermediate code independent of a model. While the data is exchanged in the data format, the protocol conversion means (14) uses a dedicated data format that can be exchanged with the first data processing means (10) to perform data communication, and a second data processing Means (11)
A data processing apparatus which enables mutual conversion of data between a common data format passed between and.
【請求項2】 上記した共通のインターフェイス手段
(12)と専用のインターフェイス手段(13)との間
には、所定の表示動作を可能とする表示手段(17)
と、データの記憶動作を可能とするメモリ手段(18)
とを備え、 該表示手段(17)およびメモリ手段(18)における
データの受け渡しは、上記した共通のデータ形式で行わ
れる請求項1記載のデータ処理装置。
2. A display means (17) which enables a predetermined display operation between said common interface means (12) and said dedicated interface means (13).
And memory means (18) for enabling data storage operation
2. The data processing apparatus according to claim 1, further comprising: transmitting and receiving the data in the display unit (17) and the memory unit (18) in the common data format.
【請求項3】 上記した共通のインターフェイス手段
(12)を介して受け渡されるデータ中には、 表示手段(17)における画面処理を特定するコード
と、 メモリ手段(18)に対するメモリアクセスを特定する
コードと、 第1データの処理手段(10)との間におけるデータ通
信処理を特定するコードとを択一的に備え、 各コードに対応したデータ処理動作が行われる請求項2
記載のデータ処理装置。
3. The data passed through the common interface means (12) includes a code for specifying a screen processing on the display means (17) and a memory access to the memory means (18). And a code for specifying a data communication process between the first data processing means and the first data processing means, and a data processing operation corresponding to each code is performed.
The data processing device according to claim 1.
JP31057798A 1998-10-30 1998-10-30 Data processing device Expired - Fee Related JP3456692B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31057798A JP3456692B2 (en) 1998-10-30 1998-10-30 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31057798A JP3456692B2 (en) 1998-10-30 1998-10-30 Data processing device

Publications (2)

Publication Number Publication Date
JP2000138726A true JP2000138726A (en) 2000-05-16
JP3456692B2 JP3456692B2 (en) 2003-10-14

Family

ID=18006920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31057798A Expired - Fee Related JP3456692B2 (en) 1998-10-30 1998-10-30 Data processing device

Country Status (1)

Country Link
JP (1) JP3456692B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000046990A (en) * 1998-12-31 2000-07-25 추호석 Method for monitoring tool data of machine tool
JP2002051103A (en) * 2000-08-04 2002-02-15 Canon Inc Protocol conversion system and control system
JP2002209283A (en) * 2001-01-11 2002-07-26 Toshiba Corp Remote monitor and control system
WO2006003828A1 (en) * 2004-06-30 2006-01-12 Yokogawa Electric Corporation Signal relay device, communication network system, and operation system
JP2007150697A (en) * 2005-11-28 2007-06-14 Ricoh Co Ltd Communication apparatus, communication control method, communication control program, and recording medium
JP2008042849A (en) * 2006-08-10 2008-02-21 Yokogawa Electric Corp Parameter-setting apparatus
JP2008092569A (en) * 2006-09-29 2008-04-17 Fisher Rosemount Syst Inc Process control system including flexible input/output device, method, and machine-accessible medium storing program
JP2009037627A (en) * 2008-09-05 2009-02-19 Canon Inc Image forming apparatus, control method of image forming apparatus, and control program
JP2009044653A (en) * 2007-08-10 2009-02-26 Yamaha Marine Co Ltd Connected equipment and program
JP2009118058A (en) * 2007-11-05 2009-05-28 Mitsubishi Electric Information Systems Corp Communication control system and communication control program
WO2014017309A1 (en) * 2012-07-23 2014-01-30 横河電機株式会社 Gateway device, communication system, and communication method
WO2014109056A1 (en) * 2013-01-11 2014-07-17 三菱電機株式会社 Signal conversion system and signal conversion method
WO2023189280A1 (en) * 2022-04-01 2023-10-05 オムロン株式会社 Information processing device, and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282841A (en) * 2008-05-23 2009-12-03 Bridgestone Corp Tire production information management system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000046990A (en) * 1998-12-31 2000-07-25 추호석 Method for monitoring tool data of machine tool
JP2002051103A (en) * 2000-08-04 2002-02-15 Canon Inc Protocol conversion system and control system
JP2002209283A (en) * 2001-01-11 2002-07-26 Toshiba Corp Remote monitor and control system
US7999661B2 (en) 2004-06-30 2011-08-16 Yokogawa Electric Corporation Signal relay device, communication network system and operation system
WO2006003828A1 (en) * 2004-06-30 2006-01-12 Yokogawa Electric Corporation Signal relay device, communication network system, and operation system
JP2006018368A (en) * 2004-06-30 2006-01-19 Yokogawa Electric Corp Signal mediating device, communication network system and operation system
JP2007150697A (en) * 2005-11-28 2007-06-14 Ricoh Co Ltd Communication apparatus, communication control method, communication control program, and recording medium
JP2008042849A (en) * 2006-08-10 2008-02-21 Yokogawa Electric Corp Parameter-setting apparatus
JP2008092569A (en) * 2006-09-29 2008-04-17 Fisher Rosemount Syst Inc Process control system including flexible input/output device, method, and machine-accessible medium storing program
JP2009044653A (en) * 2007-08-10 2009-02-26 Yamaha Marine Co Ltd Connected equipment and program
JP2009118058A (en) * 2007-11-05 2009-05-28 Mitsubishi Electric Information Systems Corp Communication control system and communication control program
JP2009037627A (en) * 2008-09-05 2009-02-19 Canon Inc Image forming apparatus, control method of image forming apparatus, and control program
WO2014017309A1 (en) * 2012-07-23 2014-01-30 横河電機株式会社 Gateway device, communication system, and communication method
JP2014023102A (en) * 2012-07-23 2014-02-03 Yokogawa Electric Corp Gateway device, communication system, and communication method
WO2014109056A1 (en) * 2013-01-11 2014-07-17 三菱電機株式会社 Signal conversion system and signal conversion method
JP5933761B2 (en) * 2013-01-11 2016-06-15 三菱電機株式会社 Signal conversion system and signal conversion method
US10057384B2 (en) 2013-01-11 2018-08-21 Mitsubishi Electric Corporation Signal conversion system and signal conversion method
WO2023189280A1 (en) * 2022-04-01 2023-10-05 オムロン株式会社 Information processing device, and program

Also Published As

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

Similar Documents

Publication Publication Date Title
KR100397760B1 (en) Control system, display device, control-use host computer, and data transmission method
EP0586813B2 (en) Programmable controller with ladder diagram macro instructions
US4918589A (en) Method and apparatus for linking processors in a hierarchical control system
JP2000138726A (en) Data processor
JPH08286947A (en) Microcomputer
GB2232514A (en) Programmable controller
US7516265B2 (en) System and method for providing an application with memory access methods
JP2000315105A (en) Management system for nc machine tool and its management program
JP3516607B2 (en) Programmable display device
JP4479131B2 (en) Control device
JP2002341906A (en) Program formula display device and data communication system using the same
JPH02128201A (en) Programmable controller
JPH10283004A (en) Programmable display device
JP2000137693A (en) Data processor
JP3562783B2 (en) How to debug a programmable display device
JPH11110007A (en) Profibus data transmission system
JP2876576B2 (en) Numerical control unit
JPH10105226A (en) Programmable display device
JPH08272409A (en) Sequence controller
JPH08194506A (en) Controller
JP2001188744A (en) Microcomputer device
JP2002007973A (en) Programmable display
JPH10105214A (en) Download system for programmable display device
JPH03113503A (en) Industrial computer
JPH10333830A (en) Program type display device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080801

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090801

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100801

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110801

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120801

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130801

Year of fee payment: 10

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

LAPS Cancellation because of no payment of annual fees