JP2001255909A - Method and device for communicating programmable controller - Google Patents

Method and device for communicating programmable controller

Info

Publication number
JP2001255909A
JP2001255909A JP2000068811A JP2000068811A JP2001255909A JP 2001255909 A JP2001255909 A JP 2001255909A JP 2000068811 A JP2000068811 A JP 2000068811A JP 2000068811 A JP2000068811 A JP 2000068811A JP 2001255909 A JP2001255909 A JP 2001255909A
Authority
JP
Japan
Prior art keywords
message
communication
programmable controller
function
user
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.)
Pending
Application number
JP2000068811A
Other languages
Japanese (ja)
Inventor
Akihiro Suzuki
章洋 鈴木
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2000068811A priority Critical patent/JP2001255909A/en
Publication of JP2001255909A publication Critical patent/JP2001255909A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the communication method of a PLC(programmable controller) for taking into consideration of dispensing with the conversion of a message format on a ladder program at connecting of the PLC or personal computers of plural makers. SOLUTION: This communication method of a PLC(programmable controller), having a general communication port is provided with a function 12 for transmitting a transmission message from ladder program sides 4 and 10 to an equipment 3 connected to a communication port, and for receiving data from the outside part through the communication port, a function 11 registered and connected by a user for generating a transmission message according to the equipment, and for converting the received message into inside data, and a function for allowing a user to prepare the conversion processing into the transmission message and the conversion processing of the reception message by selecting the registered message generating function. In this case, the converting functions are registered successively in a communicating module, so that communication with the equipment 3 whose message format is different can be performed by allowing the communicating module to have the converting functions.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、メッセージフォー
マットが異なるプログラマブルコントローラ等の異種機
器間の通信・制御に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to communication and control between different kinds of devices such as programmable controllers having different message formats.

【0002】[0002]

【従来の技術】従来、プログラマブルコントローラ(以
降、PLCと略す)とパソコン等の機器を通信で接続す
る場合や、複数メーカーのPLCを通信で接続する場合
に、パソコン等はメーカーのメッセージフォーマットに
合わせてパソコン側でプログラムを作成すればよいが、
複数メーカーのPLCを通信で接続する場合メーカー毎
にメッセージフォーマットが異なるので、どこか一社の
メッセージフォーマットに合わせる必要がある。このよ
うな場合に、従来はラダープログラム上で他メーカーの
メッセージフォーマットを生成し通信を行っていた。
2. Description of the Related Art Conventionally, when a programmable controller (hereinafter abbreviated as PLC) is connected to a device such as a personal computer by communication, or when PLCs of a plurality of manufacturers are connected by communication, the personal computer or the like conforms to the message format of the manufacturer. You can create a program on the personal computer side,
When PLCs of a plurality of manufacturers are connected by communication, the message format differs for each manufacturer, so it is necessary to match the message format of one company. In such a case, conventionally, a message format of another manufacturer is generated on a ladder program and communication is performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、ラダープログラム上でフォーマットの
変換を行うため、ラダープログラムの処理時間が長くな
るばかりでなく、プログラム自体が複雑になるという問
題があった。そこで、本発明は、複数のメーカのPLC
を接続する場合あるいはパソコンを接続する場合に、メ
ッセージフォーマットの変換をラダープログラム上で考
慮する必要がなく、メッセージの生成を通信機能に持た
せることによりラダープログラムの複雑化および処理時
間の短縮化を図ることができるプログラマブルコントロ
ーラの通信方法および通信装置を提供することを目的と
している。
However, in the above conventional example, since the format conversion is performed on the ladder program, there is a problem that not only the processing time of the ladder program becomes long but also the program itself becomes complicated. Was. Therefore, the present invention provides PLC
It is not necessary to consider the conversion of the message format in the ladder program when connecting the ladder program or when connecting a personal computer.By making the communication function to generate the message, the ladder program can be complicated and the processing time can be shortened. It is an object of the present invention to provide a programmable controller communication method and communication device that can be achieved.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載のプログラマブルコントローラの通
信方法の発明は、汎用の通信ポートを持つプログラマブ
ルコントローラの通信方法において、ラダープログラム
から通信ポートに接続されている機器に対して送信メッ
セージを送る機能と、外部から通信ポートを経由してデ
ータを受信する機能と、ユーザが登録・接続して機器に
合わせて送信メッセージを生成する機能および受信した
メッセージを内部データに変換する機能とを有するプロ
グラマブルコントローラを用い、前記登録したメッセー
ジ生成機能を選択して送信メッセージへの変換処理およ
び受信メッセージの変換処理を行うことにより、ユーザ
が構築するシステムに合った通信形態を簡単に構成でき
ることを特徴としている。また、請求項2に記載のプロ
グラマブルコントローラの通信装置の発明は、汎用の通
信ポートを持つプログラマブルコントローラの通信装置
において、ラダープログラムから通信ポートに接続され
ている機器に対して送信メッセージを送り、外部から通
信ポートを経由してデータを受信する通信手段と、ユー
ザが登録・接続した機器に合わせて送信メッセージを生
成し、受信したメッセージを内部データに変換するメッ
セージフォーマット変換手段と、前記メッセージフォー
マット変換手段をユーザが選択して送信メッセージおよ
び受信メッセージの変換処理を作成するメッセージ作成
手段とを備えている。また、請求項3に記載の発明は、
前記メッセージフォーマット変換手段は、接続機器に依
存しない入出力部分と接続機器に依存するメッセージフ
ォーマット変換ルーチンとで構成し、前記メッセージフ
ォーマット変換ルーチンは入力手段を介して通信装置に
登録順に登録番号を割振って登録し、ユーザが相手機器
に応じて該登録番号により選択可能としたことを特徴と
している。このプログラマブルコントローラの通信方法
および通信装置によれば、プログラマブルコントローラ
の通信処理部分(例えば、通信モジュール等)を機能分
割して、メッセージフォーマットの変換部分をブロック
化し、そのメッセージフォーマット変換ルーチンをユー
ザの要求に応じてメーカが作成するか、若しくはユーザ
が直接プログラムを作成できるようにする。この変換ル
ーチンを通信機能部分に複数組み込み相手機器に応じ
て、ラダープログラムからどの変換ルーチンを使用する
かを指定することにより、複数メーカによる異種PC間
の通信あるいはパソコンとの通信が、ラダープログラム
上でメッセージフォーマットの変換を考慮することなく
可能となる。
According to a first aspect of the present invention, there is provided a communication method for a programmable controller having a general-purpose communication port. A function to send a transmission message to a connected device, a function to receive data from the outside via a communication port, a function to generate a transmission message according to the device by registering and connecting to a user, and a function to receive a message By using a programmable controller having a function of converting a message to internal data, by selecting the registered message generation function and performing a conversion process to a transmission message and a conversion process of a reception message, it is suitable for a system constructed by a user. Communication configuration that can be easily configured That. According to a second aspect of the present invention, a communication device for a programmable controller having a general-purpose communication port transmits a transmission message from a ladder program to a device connected to the communication port, and A communication means for receiving data from a communication port via a communication port, a message format conversion means for generating a transmission message according to a device registered and connected by a user, and converting the received message into internal data; Message creation means for creating a conversion process between a transmission message and a reception message by selecting a means by a user. The invention described in claim 3 is:
The message format conversion means comprises an input / output portion which does not depend on the connection device and a message format conversion routine which depends on the connection device. The message format conversion routine assigns registration numbers to the communication device via the input device in the order of registration. It is characterized by shaking and registering, and allowing the user to select by the registration number according to the partner device. According to the communication method and the communication device of the programmable controller, a communication processing portion (for example, a communication module or the like) of the programmable controller is divided into functions, a message format conversion portion is blocked, and the message format conversion routine is requested by a user. , Or a user can directly create a program. A plurality of such conversion routines are incorporated in the communication function part, and by specifying which conversion routine to use from the ladder program according to the partner device, communication between different types of PCs or communication with personal computers by multiple manufacturers can be performed on the ladder program. This makes it possible without considering the conversion of the message format.

【0005】[0005]

【発明の実施の形態】以下、本発明の実施の形態につい
て図を参照して説明する。図1は本発明の実施の形態に
係るプログラマブルコントローラの構成図である。図2
は図1に示すプログラマブルコントローラの通信装置の
機能ブロック図である。図3は図2に示すメッセージフ
ォーマット変換機能の説明図である。図4は図3に示す
メッセージフォーマット変換機能を用いるメッセージ作
成機能の説明図である。図1において、1はPLC(プ
ログラマブルコントローラ)で、例えば、マウントベー
スに電源、CPU、通信、I/O等の各種モジュールを
個々に着脱自在に構成した、ラックマウント方式等によ
るPLCである。2はPLCの通信装置(通信モジュー
ル)であり、複数のPLCやパソコン等との間で通信イ
ンターフェースRS−232Cを介した半二重同期方式
等により通信を行う。3は通信モジュール2よりRS2
32C通信方式で接続され、PLC1とネットワークを
構成する他メーカ製PLC(異種PLC)あるいはパソ
コンである。4はCPUモジュールでラダープログラム
の解読や、PLCのスキャン処理等を行う。5はプログ
ラミング装置であり、パソコンタイプのプログラミング
入力やモニタ用の装置で、ユーザが異種PLC3のメッ
セージフォーマット変換ルーチンをCPUモジュール4
を介して通信モジュール2に登録する際に用いる。6は
通信モジュール2の通信ポートで、ここからネットワー
クを構成する複数の異種PLC3との通信を行う。7は
PLC1の電源モジュールで各種電源を供給する。8は
I/Oモジュールである。(なお、以降の説明では、図
1のようにCPUモジュール4と通信モジュール2は機
能上別モジュールとして説明を行い、通信方式もRS−
232C通信方式を想定しているが、装置構成上はCP
Uモジュール4と通信モジュール2を一体化構成として
もよいし、通信方式もETthernet等の通信方式
にも適用可能である)。図2に示すように、通信モジュ
ール2は、CPUモジュール4とバスで接続されるCP
Uモジュールとのインターフェース部10、メッセージ
フォーマット変換部11、RS−232C通信制御部1
2とで構成されている。メッセージフォーマット変換部
11には、ユーザがネットワークに接続した異種PLC
3のメッセージフォーマット変換ルーチンを、その都度
プログラミング装置5からCPUモジュール4とインタ
ーフェース部10を介して登録する。(なお、最初から
接続機種名が分かっている異種PLC3等のメッセージ
フォーマット変換ルーチンは、ユーザの要望を受けてP
LCメーカ側で登録して、既登録の形で出荷する場合も
ある)。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of a programmable controller according to an embodiment of the present invention. FIG.
FIG. 2 is a functional block diagram of a communication device of the programmable controller shown in FIG. 1. FIG. 3 is an explanatory diagram of the message format conversion function shown in FIG. FIG. 4 is an explanatory diagram of a message creation function using the message format conversion function shown in FIG. In FIG. 1, reference numeral 1 denotes a PLC (programmable controller), which is, for example, a rack-mount type PLC in which various modules such as a power supply, a CPU, communication, and I / O are individually detachably mounted on a mount base. Reference numeral 2 denotes a PLC communication device (communication module) which communicates with a plurality of PLCs, personal computers, and the like by a half-duplex synchronization method or the like via a communication interface RS-232C. 3 is RS2 from the communication module 2
It is a PLC (heterogeneous PLC) made by another manufacturer or a personal computer that is connected by the 32C communication method and forms a network with the PLC 1. A CPU module 4 decodes a ladder program, performs a PLC scan process, and the like. Reference numeral 5 denotes a programming device, which is a device for personal computer-type programming input and monitoring.
Used when registering with the communication module 2 via the. Reference numeral 6 denotes a communication port of the communication module 2, which communicates with a plurality of different types of PLCs 3 constituting a network. Reference numeral 7 denotes a power supply module of the PLC 1 for supplying various power supplies. 8 is an I / O module. (Note that in the following description, the CPU module 4 and the communication module 2 will be described as functionally separate modules as shown in FIG.
Although the H.232C communication system is assumed, CP
The U module 4 and the communication module 2 may be integrated, and the communication method is also applicable to a communication method such as ETthernet). As shown in FIG. 2, the communication module 2 has a CP
Interface unit 10 with U module, message format converter 11, RS-232C communication controller 1
And 2. The message format converter 11 includes a different PLC connected by the user to the network.
The message format conversion routine 3 is registered from the programming device 5 via the CPU module 4 and the interface unit 10 each time. (Note that a message format conversion routine for a heterogeneous PLC 3 or the like whose connection model name is known from the beginning,
In some cases, it is registered by the LC manufacturer and shipped in a registered form.)

【0006】つぎに各図を参照して動作について説明す
る。今、当システムの通信の簡単な例として、接続され
ている異種PLC3の内部コイル読出しを考えて見る
と、この場合の通信モジュール2の機能は図2に示すよ
うに分割されたものとなるが、図2中でCPUモジュー
ル4とのインターフェース10と、RS−232C通信
制御部12の部分は、相手接続機器に関係なく共通に使
用できるものであり、様々な異種PLC等の機器と接続
するために変換が必要な部分は、メッセージフォーマッ
ト変換部11の変換ルーチンの部分である。内部コイル
の読出しの例では、CPUモジュールのインタフェース
10を介しメッセージフォーマット変換部11へ指令す
るとすれば、図3に示すように、入力は、内部コイルの
読出しというコマンドと、読出す個数(データ数)と、
先頭アドレスの3つである。これらは接続機器(異種P
LCでも)が変わっても同じ指令を用いて行うことがで
きる。又、メッセージフォーマット変換後の、RS−2
32C通信制御に対する指令は、送信指令(又は送信要
求)、送信データ数、送信するメッセージのバッファの
指定である。これもメッセージの内容に無関係の部分で
ある。従って、メッセージフォーマット変換部11の入
力と出力パターンは図3のように定義することができ
る。又、データを受信した場合の処理も順序が逆になる
だけで、処理内容および各機能間のデータ授受は全く同
じとなる。
Next, the operation will be described with reference to the drawings. Now, as a simple example of communication of the present system, considering the reading of the internal coil of the connected heterogeneous PLC 3, the function of the communication module 2 in this case is divided as shown in FIG. In FIG. 2, the interface 10 with the CPU module 4 and the RS-232C communication control unit 12 can be used in common irrespective of the connected device, and can be connected to various types of devices such as PLCs. The part that needs to be converted is the part of the conversion routine of the message format conversion unit 11. In the example of reading the internal coil, if the command is issued to the message format converter 11 through the interface 10 of the CPU module, as shown in FIG. 3, the input is a command to read the internal coil and the number of data to be read (the number of data). )When,
It is the first three addresses. These are connected devices (different P
It can be performed using the same command even if the LC changes). Also, RS-2 after message format conversion
The command for the 32C communication control is a transmission command (or a transmission request), the number of transmission data, and the specification of a buffer of a message to be transmitted. This is also a part unrelated to the content of the message. Therefore, the input and output patterns of the message format converter 11 can be defined as shown in FIG. Also, the processing when data is received is only the reverse of the order, and the processing contents and data transfer between each function are exactly the same.

【0007】次に、各異種PLC毎に異なるメッセージ
フォーマット変換ルーチンの部分について説明する。こ
れについては、ユーザが独自でプログラムを作成し異種
PLC間通信を構築する場合と、PLCメーカ側がユー
ザの要望で前もって登録して出荷する特定ユーザ対応の
形の場合の2つのケースが考えられる。いずれの場合も
図3で説明した入出力フォーマットを守った上で、メッ
セージフォーマット変換ルーチンを開発する。メッセー
ジフォーマット変換ルーチンは、例えば、一方のPLC
の指令「Read Coil 1000 16」(アド
レス1000から16個のコイルデータを読み込む)
が、一方の異種PLCでは「Read(Coil、10
00,16」、となるような場合に、個々のメッセージ
フォーマットの違いを変換して機種間の相違を変換・吸
収するものである。(ここでのメッセージフォマット変
換ルーチンは接続機器毎に異なるものが複数存在すると
考えられ、特定の方式に限定されるものではない)。こ
のように開発された各メッセージフォーマット変換ルー
チンは図1に示したプログラミング装置5から、CPU
モジュール4を介して通信モジュール2内に順番に登録
される。通信モジュール2内では、登録された順に各種
メッセージフォーマット変換ルーチンに登録番号を割り
振る。現在、通信モジュール2内に幾つ変換ルーチンが
登録されているかは、プログラミング装置5から確認す
ることができる。このように、本実施の形態では特に個
々の変換方式を問題とするのではなく、複数の異種PL
C3について変換ルーチンを開発して、ユーザがプログ
ラミング装置5から通信モジュール2に登録すること
で、多くの異種PLC3との通信を容易とする汎用シス
テムを構築する方式を提示することが目的である。
Next, a description will be given of a part of a message format conversion routine which differs for each type of PLC. In this case, two cases are conceivable: a case where a user creates a program by himself / herself to establish communication between different types of PLCs; and a case where a PLC maker side registers and ships in advance at the request of the user for a specific user. In any case, a message format conversion routine is developed while keeping the input / output format described in FIG. The message format conversion routine is, for example, one PLC
Command “Read Coil 1000 16” (read 16 coil data from address 1000)
However, on one of the heterogeneous PLCs, “Read (Coil, 10
In the case of "00, 16", differences in individual message formats are converted to convert and absorb differences between models. (It is considered that there are a plurality of message format conversion routines different for each connected device, and the message format conversion routine is not limited to a specific method.) The message format conversion routines developed in this manner are transmitted from the programming device 5 shown in FIG.
The information is sequentially registered in the communication module 2 via the module 4. In the communication module 2, registration numbers are assigned to various message format conversion routines in the order of registration. The number of conversion routines currently registered in the communication module 2 can be confirmed from the programming device 5. As described above, the present embodiment does not particularly consider individual conversion schemes, but a plurality of different PLs.
It is an object of the present invention to develop a conversion routine for C3 and to present a method for constructing a general-purpose system that facilitates communication with many different types of PLCs 3 by registering a user from the programming device 5 to the communication module 2.

【0008】図4はこうして各種のメッセージフォーマ
ット変換ルーチンが登録済みとなった通信モジュール2
を用いて、ユーザが実際通信の場合に行う送受信メッセ
ージの変換処理の作成機能を説明した図であり、メッセ
ージ作成機能(手段)の処理を示すもので、図4(a)
は通信モジュールや入力手段としてのプログラミング装
置とCPUモジュール及びネットワークにより構成され
るメッセージ作成機能20の概略図を示している。メッ
セージ作成機能20はユーザからの起動命令、中止命令
の入力により、内部にはコイル読出し用の制御レジスタ
A、受信用の受信バッファBと、通信命令(COM)を
有して、送信中、中止、エラーチェックの動作表示等を
行う 図4(b)には送受信に使用されるコイル読出し用制御
レジスタA、受信バッファBの内容を示している。制御
レジスタAの内容は、コイル読出しの「使用ポート、使
用ルーチン(メッセージフォーマット変換ルーチン)、
コマンド、データ数、先頭アドレス」となり、受信バッ
ファBにも受信時に同様の受信内容が格納される。以上
のようなメッセージ作成機能の処理手順としては、図4
(a)のようにユーザは、対象とする異種PLC3用の
メッセージフォーマット変換ルーチンを登録番号で選択
して、起動指令によりメッセージ作成機能20を起動す
れば、制御レジスタAのようなコイル読出しが行われ、
選択したメッセージフォーマット変換ルーチンにより変
換されたデータが、送信命令COMによってRS−23
2C通信制御部から対象の異種PLC3へ送信される。
このように、本実施の形態によれば、PLCにおける通
信の機能を分割し、接続機器(異種PLC等)に依存す
る変換処理部分のみをユーザ等が開発可能としたので、
システムに接続機器が増設された分についての変換ルー
チンは、その都度ユーザが順番に通信機能に組込むこと
で、メーカの段階を離れてPLCがシステムに投入され
た後でも、接続機器に応じた通信システムを容易に構築
できるようになった。又、このようにメッセージの生成
を通信機能に持たせることによって、ラダープログラム
上でメッセージフォーマットを考慮する必要がなくな
り、通信システムの効率化が達成される。なお、ここま
では説明上、ラダープログラム解読を実行するCPUモ
ジュールと通信を行う通信モジュールとは機能別に別モ
ジュール構成として説明したが、これが実装的に一体化
されたシステムとしても本発明は同様に適用されること
は言うまでもない。また、通信形態の例としてRS−2
32C通信を想定して説明したが、N対Nトークンパッ
シング方式によるEthernet(登録商標)等の通
信形態に対しても勿論適用可能である。
FIG. 4 shows a communication module 2 in which various message format conversion routines have been registered.
FIG. 4 is a diagram for explaining a function of creating a transmission / reception message conversion process performed by a user in the case of actual communication using FIG.
1 shows a schematic diagram of a message creation function 20 composed of a communication module, a programming device as input means, a CPU module, and a network. The message creation function 20 has a control register A for coil reading, a reception buffer B for reception, and a communication command (COM) in response to input of a start command and a stop command from a user. FIG. 4B shows the contents of the coil readout control register A and the reception buffer B used for transmission and reception. The contents of the control register A are as follows: “used port, used routine (message format conversion routine),
Command, number of data, head address ", and the same reception content is stored in the reception buffer B at the time of reception. FIG. 4 shows a processing procedure of the message creation function as described above.
As shown in (a), the user selects the target message format conversion routine for the heterogeneous PLC 3 by the registration number, and activates the message creation function 20 according to the activation instruction. I,
The data converted by the selected message format conversion routine is transmitted to the RS-23 by the transmission command COM.
The data is transmitted from the 2C communication control unit to the target heterogeneous PLC 3.
As described above, according to the present embodiment, the communication function in the PLC is divided, and the user or the like can develop only the conversion processing part depending on the connected device (heterogeneous PLC or the like).
The conversion routine for the number of connected devices added to the system allows the user to sequentially incorporate the functions into the communication function each time, so that even after the PLC has been put into the system after leaving the maker's stage, communication according to the connected devices can be performed. The system can be easily constructed. In addition, by giving the message generation to the communication function in this way, it is not necessary to consider the message format in the ladder program, and the efficiency of the communication system is improved. In the description so far, a separate module configuration has been described for each function of the communication module that performs communication with the CPU module that executes the decoding of the ladder program. However, the present invention is similarly applicable to a system in which this is integrated in mounting. It goes without saying that it applies. As an example of the communication mode, RS-2
Although the description has been made assuming 32C communication, it is of course applicable to communication forms such as Ethernet (registered trademark) using the N-to-N token passing method.

【0009】[0009]

【発明の効果】以上説明したように、本発明によれば、
汎用の通信ポートを持つプログラマブルコントローラの
通信処理部分を機能分割して、メッセージフォーマット
の変換部分をブロック化し、そのメッセージフォーマッ
ト変換ルーチンをユーザの要求でメーカが作成するか、
又はユーザが直接プログラムを作成できるように、これ
らメッセージフォーマット変換ルーチンを通信機能部分
に複数組み込み、ラダープログラムから、どのメッセー
ジフォーマット変換ルーチンを使用するかを指定するこ
とによって複数のメーカ製PLCやパソコン間の通信を
容易に行えるように構成したので、他メーカのPLCや
パソコン等の接続機器との接続を容易にし、その場合の
ラダープログラムの簡略化と処理時間の短縮を図ること
が可能になる。
As described above, according to the present invention,
The communication processing part of the programmable controller with a general-purpose communication port is divided into functions, the message format conversion part is blocked, and the message format conversion routine is created by the manufacturer at the request of the user, or
Alternatively, a plurality of these message format conversion routines are incorporated in the communication function part so that the user can directly create a program, and a ladder program specifies which message format conversion routine to use, thereby enabling communication between a plurality of PLCs and PCs manufactured by a plurality of manufacturers. The communication is easily performed, so that connection with a connection device such as a PLC or a personal computer of another manufacturer can be easily performed, and in that case, the ladder program can be simplified and the processing time can be shortened.

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

【図1】本発明の実施の形態に係るプログラマブルコン
トローラの構成図である。
FIG. 1 is a configuration diagram of a programmable controller according to an embodiment of the present invention.

【図2】図1に示すプログラマブルコントローラの通信
装置の機能ブロック図である。
FIG. 2 is a functional block diagram of a communication device of the programmable controller shown in FIG.

【図3】図2に示すメッセージフォーマット変換機能の
説明図である。
FIG. 3 is an explanatory diagram of a message format conversion function shown in FIG. 2;

【図4】図3に示すメッセージフォーマット変換機能を
用いるメッセージ作成機能の説明図である。
4 is an explanatory diagram of a message creation function using the message format conversion function shown in FIG.

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

1 プログラマブルコントローラ 2 通信モジュール 3 他メーカ製プログラマブルコントローラ(異種PL
C) 4 CPUモジュール 5 プログラミング装置 6 通信ポート 7 電源モジュール 8 I/Oモジュール 10 インタフェース部 11 メツセージフォーマット変換部 12 RS−232C通信制御部 20 メッセージ作成機能
1 Programmable controller 2 Communication module 3 Programmable controller made by another manufacturer
C) 4 CPU module 5 Programming device 6 Communication port 7 Power supply module 8 I / O module 10 Interface unit 11 Message format conversion unit 12 RS-232C communication control unit 20 Message creation function

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 汎用の通信ポートを持つプログラマブル
コントローラの通信方法において、 ラダープログラムから通信ポートに接続されている機器
に対して送信メッセージを送る機能と、外部から通信ポ
ートを経由してデータを受信する機能と、ユーザが登録
・接続して機器に合わせて送信メッセージを生成する機
能および受信したメッセージを内部データに変換する機
能とを有するプログラマブルコントローラを用い、前記
登録したメッセージ生成機能を選択して送信メッセージ
への変換処理および受信メッセージの変換処理を行うこ
とにより、ユーザが構築するシステムに合った通信形態
を構成することを特徴とするプログラマブルコントロー
ラの通信方法。
1. A communication method for a programmable controller having a general-purpose communication port, comprising: a function of sending a transmission message from a ladder program to a device connected to the communication port; and receiving data from the outside via the communication port. Using a programmable controller that has a function to generate a transmission message according to the device registered and connected by the user and a function to convert the received message to internal data, and select the registered message generation function A communication method for a programmable controller, wherein a communication mode suitable for a system constructed by a user is configured by performing a conversion process into a transmission message and a conversion process into a reception message.
【請求項2】 汎用の通信ポートを持つプログラマブル
コントローラの通信装置において、 ラダープログラムから通信ポートに接続されている機器
に対して送信メッセージを送り、外部から通信ポートを
経由してデータを受信する通信手段と、ユーザが登録・
接続した機器に合わせて送信メッセージを生成し受信し
たメッセージを内部データに変換するメッセージフォー
マット変換手段と、前記メッセージフォーマット変換手
段をユーザが選択して送信メッセージおよび受信メッセ
ージの変換処理を作成するメッセージ作成手段とを備え
たことを特徴とするプログラマブルコントローラの通信
装置。
2. A communication device for a programmable controller having a general-purpose communication port, wherein a transmission message is transmitted from a ladder program to a device connected to the communication port, and data is received from the outside via the communication port. Means and user registration /
Message format conversion means for generating a transmission message according to the connected device and converting the received message into internal data, and message creation for selecting a message format conversion means by a user to generate a conversion process of the transmission message and the reception message And a communication device of a programmable controller.
【請求項3】 前記メッセージフォーマット変換手段
は、接続機器に依存しない入出力部分と接続機器に依存
するメッセージフォーマット変換ルーチンとで構成し、
前記メッセージフォーマット変換ルーチンは入力手段を
介して通信装置内に登録順に登録番号を割振って登録
し、ユーザが相手機器に応じて該登録番号により選択可
能としたことを特徴とする請求項2記載のプログラマブ
ルコントローラの通信装置。
3. The message format conversion means comprises an input / output part which does not depend on a connection device and a message format conversion routine which depends on a connection device.
3. The message format conversion routine according to claim 2, wherein a registration number is assigned to the communication apparatus via the input means in the order of registration and registered, and the user can select the registration number according to the partner device. Communication device for programmable controller.
JP2000068811A 2000-03-13 2000-03-13 Method and device for communicating programmable controller Pending JP2001255909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000068811A JP2001255909A (en) 2000-03-13 2000-03-13 Method and device for communicating programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000068811A JP2001255909A (en) 2000-03-13 2000-03-13 Method and device for communicating programmable controller

Publications (1)

Publication Number Publication Date
JP2001255909A true JP2001255909A (en) 2001-09-21

Family

ID=18587813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000068811A Pending JP2001255909A (en) 2000-03-13 2000-03-13 Method and device for communicating programmable controller

Country Status (1)

Country Link
JP (1) JP2001255909A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140286A (en) * 2007-12-07 2009-06-25 Koyo Electronics Ind Co Ltd Data transmission/reception processing system and programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140286A (en) * 2007-12-07 2009-06-25 Koyo Electronics Ind Co Ltd Data transmission/reception processing system and programmable controller

Similar Documents

Publication Publication Date Title
US8046444B2 (en) Universal network adapter for industrial control networks
JPH09185588A (en) Communication method for radio equipment
CN101132328A (en) Real-time industry Ethernet EtherCAT communication controller
CN103168446A (en) Method and device for configuring network subscribers
CN106598019A (en) Satellite housekeeping simulator and simulation method for development and test of micro-nano satellite control module
CN103533099A (en) Variable-frequency drive and address mapping method thereof under MODBUS communication protocol
JP2001255909A (en) Method and device for communicating programmable controller
JP2008198185A (en) Bus system and its control method
JP2006277733A (en) Programmable controller system
JPH11215834A (en) Optional communication unit for inverter device and communication system using the same
KR101810196B1 (en) Communication module in inverter
JPH03143473A (en) Sewing machine equipment
JP2005184551A (en) Communication apparatus, communication control method and communication control program
US20090312886A1 (en) Temperature controller system
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JP2004110699A (en) Method and device for evaluating semiconductor integrated device system
JP2002152213A (en) Communication system and device, method for controlling electronic devices through communication
JPH086885A (en) Control system for serial communication
JPH06124103A (en) Programmable controller
JPH1049109A (en) Liquid crystal display device
JP3870890B2 (en) Operation board, remote I / O communication control method
JPH11143933A (en) Ordering data management device
JPH11272607A (en) Serial bus system
JP4216378B2 (en) Interface device between host device and wireless data carrier and interface method between host device and wireless data carrier
JP4010518B2 (en) Link unit

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324