JP2001296910A - Programmable controller and peripheral unit of the same - Google Patents

Programmable controller and peripheral unit of the same

Info

Publication number
JP2001296910A
JP2001296910A JP2000114114A JP2000114114A JP2001296910A JP 2001296910 A JP2001296910 A JP 2001296910A JP 2000114114 A JP2000114114 A JP 2000114114A JP 2000114114 A JP2000114114 A JP 2000114114A JP 2001296910 A JP2001296910 A JP 2001296910A
Authority
JP
Japan
Prior art keywords
communication
unit
external device
data
service
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
JP2000114114A
Other languages
Japanese (ja)
Other versions
JP4186379B2 (en
Inventor
Hidehiko Fujikawa
英彦 藤川
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP2000114114A priority Critical patent/JP4186379B2/en
Publication of JP2001296910A publication Critical patent/JP2001296910A/en
Application granted granted Critical
Publication of JP4186379B2 publication Critical patent/JP4186379B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable controller adaptable to the plural kinds of communication procedures. SOLUTION: A CPU unit 1 is provided with a function for controlling equipment according to a sequence program so that data can be transferred through a service 11 with a communication unit 2. The communication unit 2 can perform communication with an external device, and adapts to the plural kinds of communication procedures. The communication unit 2 is provided with communication procedure converting means 12 and 13 and communication procedure inverting means 14 and 15 as converting means for mutually converting communication procedures when the communication procedures of data to be transferred between the CPU unit 1 and the external device through the service 11 are different from each other.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラマブルコ
ントローラ、プログラマブルコントローラの周辺ユニッ
トに関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a programmable controller and a peripheral unit of the programmable controller.

【0002】[0002]

【従来の技術】従来から、プログラマブルコントローラ
として、シーケンスプログラムを作成するプログラム支
援装置を接続したり、プログラマブルコントローラをネ
ットワークに接続して複数台のプログラマブルコントロ
ーラを上位階層のコンピュータで管理したりするため
に、通信機能を備えたものが提供されている(特開平5
−41722号公報等)。この種の通信機能を用いるた
めに規格化され標準化された通信手順が普及してきてお
り、標準化された通信手順であればプログラマブルコン
トローラ単体で外部装置との間でデータ伝送が可能にな
ってきている。しかしながら、この種の通信機能を備え
たプログラマブルコントローラであっても標準化された
通信手順を用いることができない外部装置との間ではデ
ータ伝送ができないから、外部装置の通信手順に対応し
た通信機能を有する通信ユニットを設けることになる。
2. Description of the Related Art Conventionally, as a programmable controller, a program support device for creating a sequence program has been connected, or a plurality of programmable controllers have been connected to a network to manage a plurality of programmable controllers by a higher-layer computer. And those having a communication function are provided (Japanese Patent Laid-Open No.
No. 41722). In order to use this kind of communication function, a standardized and standardized communication procedure is becoming widespread, and if the standardized communication procedure is used, data can be transmitted between the programmable controller and an external device by itself. . However, even a programmable controller having this kind of communication function cannot perform data transmission with an external device that cannot use a standardized communication procedure, and thus has a communication function corresponding to the communication procedure of the external device. A communication unit will be provided.

【0003】[0003]

【発明が解決しようとする課題】上述したように、標準
化された通信手順を用いていない場合には、プログラマ
ブルコントローラに通信ユニットが必要であり、しかも
通信手順ごとに異なる仕様の通信ユニットが必要になる
から、通信ユニットの品種が多くなるという問題が生じ
る。
As described above, when a standardized communication procedure is not used, a communication unit is required in the programmable controller, and a communication unit having a different specification is required for each communication procedure. Therefore, there is a problem that the types of communication units increase.

【0004】本発明は上記事由に鑑みて為されたもので
あり、その目的は、複数種類の通信手順に対応可能とし
たプログラマブルコントローラ、プログラマブルコント
ローラの周辺ユニットを提供することにある。
[0004] The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a programmable controller and a peripheral unit of the programmable controller capable of supporting a plurality of types of communication procedures.

【0005】[0005]

【課題を解決するための手段】請求項1の発明は、シー
ケンスプログラムに従って機器を制御するコントローラ
部と、外部装置との間で通信する通信部とを備えるプロ
グラマブルコントローラであって、前記通信部には前記
コントローラ部と前記外部装置との間で授受するデータ
の通信手順が相違するときに通信手順を相互に変換する
変換手段が設けられているものである。
According to a first aspect of the present invention, there is provided a programmable controller including a controller for controlling devices according to a sequence program and a communication unit for communicating with an external device. Is provided with a conversion means for mutually converting the communication procedure when the communication procedure of data exchanged between the controller unit and the external device is different.

【0006】請求項2の発明は、請求項1の発明におい
て、前記コントローラ部には前記通信部で扱うことが可
能な複数種類の通信手順に共用されるサービスが設けら
れ、外部機器にデータを送出する際にはシーケンスプロ
グラムにおいて指示された通信手順を前記データととも
にサービスを通して前記通信部に与えることにより通信
手順を選択し、外部機器からのデータを受信する際には
前記通信部において通信手順を判別することにより通信
手順を選択するものである。
According to a second aspect of the present invention, in the first aspect of the present invention, the controller is provided with a service shared by a plurality of types of communication procedures that can be handled by the communication unit, and transmits data to an external device. When sending, the communication procedure specified in the sequence program is provided to the communication unit through the service together with the data, and the communication procedure is selected.When data from an external device is received, the communication procedure is performed in the communication unit. The communication procedure is selected by the determination.

【0007】請求項3の発明は、請求項1または請求項
2の発明において、前記通信部は常時は外部機器からの
データを受信可能な状態に設定され、シーケンスプログ
ラムにおいて外部機器にデータを送出する指示がなされ
ているときには前記コントローラ部からの指示によって
前記通信部が外部機器にデータを送信可能な状態に切り
替えられるものである。
According to a third aspect of the present invention, in the first or second aspect of the invention, the communication unit is set to be capable of receiving data from an external device at all times, and sends data to the external device in a sequence program. When the instruction is given, the communication unit is switched to a state in which data can be transmitted to an external device by an instruction from the controller unit.

【0008】請求項4の発明は、シーケンスプログラム
に従って機器を制御するCPUユニットに接続され外部
装置との間で通信する機能を有した周辺ユニットであっ
て、前記CPUユニットと前記外部装置との間で授受す
るデータの通信手順が相違するときに通信手順を相互に
変換する変換手段を備えているものである。
According to a fourth aspect of the present invention, there is provided a peripheral unit which is connected to a CPU unit for controlling equipment according to a sequence program and has a function of communicating with an external device. And a conversion means for mutually converting the communication procedures when the communication procedures of the data to be exchanged are different.

【0009】請求項5の発明は、請求項4の発明におい
て、前記CPUユニットには複数種類の通信手順で共用
されるサービスが設けられ、外部機器にデータを送出す
る際にはシーケンスプログラムにおいて指示された通信
手順が前記データとともにサービスを通して与えられる
ことにより通信手順を選択し、外部機器からのデータを
受信する際には外部機器から受信したデータに基づいて
通信手順を判別することにより通信手順を選択するもの
である。
According to a fifth aspect of the present invention, in the fourth aspect of the present invention, the CPU unit is provided with a service shared by a plurality of types of communication procedures, and when sending data to an external device, an instruction is provided in a sequence program. The communication procedure is given through the service together with the data, the communication procedure is selected, and when receiving data from the external device, the communication procedure is determined by determining the communication procedure based on the data received from the external device. To choose.

【0010】請求項6の発明は、請求項4または請求項
5の発明において、常時は外部機器からのデータを受信
可能な状態に設定され、シーケンスプログラムにおいて
外部機器にデータを送出する指示がなされているときに
は前記CPUユニットからの指示によって外部機器にデ
ータを送信可能な状態に切り替えられるものである。
According to a sixth aspect of the present invention, in the fourth or fifth aspect of the present invention, data is normally set to be receivable from an external device, and an instruction to send data to the external device is issued in a sequence program. In this case, the state can be switched to a state in which data can be transmitted to an external device by an instruction from the CPU unit.

【0011】[0011]

【発明の実施の形態】本実施形態で示すプログラマブル
コントローラは、図1に示すように、シーケンスプログ
ラムを実行して機器を制御するコントローラ部としての
CPUユニット1と、外部装置との間でデータ通信を行
う通信部としての通信ユニット2とを備える。また、図
では省略しているが、機器を接続するための入出力ユニ
ットや、CPUユニット1および通信ユニット2に電源
を供給する電源ユニットなども設けられる。ここに、
「ユニット」という用語は個々に独立した筐体を有し、
必要に応じて加除可能であって、複数の「ユニット」を
組み合わせることによってプログラマブルコントローラ
を構成することができるものを意味している。また、一
般にはCPUユニットを除く他のユニットを周辺ユニッ
トと呼んでいる。すなわち、本実施形態では通信ユニッ
ト2が周辺ユニットになる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in FIG. 1, a programmable controller according to the present embodiment executes data communication between a CPU unit 1 as a controller unit for controlling a device by executing a sequence program and an external device. And a communication unit 2 as a communication unit for performing the following. Although not shown in the figure, an input / output unit for connecting devices, a power supply unit for supplying power to the CPU unit 1 and the communication unit 2, and the like are also provided. here,
The term "unit" has a separate housing,
This means that the programmable controller can be added or subtracted as necessary, and a programmable controller can be configured by combining a plurality of “units”. In addition, other units except the CPU unit are generally called peripheral units. That is, in the present embodiment, the communication unit 2 is a peripheral unit.

【0012】CPUユニット1は通信機能におけるサー
ビス11を提供する。つまり、CPUユニット1での処
理にあたって外部装置とのデータ通信を必要とするとき
に、送信時にはサービス11を通して通信ユニット2を
制御し、また受信時には通信ユニット2からサービス1
1を通してデータを受け取るのである。ここで用いられ
るサービスはCPUユニット1に従来から設けられてい
る処理と同様のものである。
The CPU unit 1 provides a service 11 in a communication function. That is, when data communication with an external device is required for processing in the CPU unit 1, the communication unit 2 is controlled through the service 11 during transmission, and the service 1 is transmitted from the communication unit 2 during reception.
Data is received through one. The service used here is the same as the processing conventionally provided in the CPU unit 1.

【0013】一方、本実施形態では通信ユニット2とし
て3種類の通信手順に対応可能なものを用いる。このう
ち1種類の通信手順は、CPUユニット1におけるサー
ビス11で処理が可能な通信手順であって、他の2種類
の通信手順はサービス11では処理できない通信手順に
なっている。以下では、サービス11で処理可能な通信
手順をプロトコル1、残りの2つの通信手順をプロトコ
ル2およびプロトコル3として説明する。
On the other hand, in the present embodiment, a communication unit 2 that can handle three types of communication procedures is used. One of the communication procedures is a communication procedure that can be processed by the service 11 in the CPU unit 1, and the other two communication procedures are communication procedures that cannot be processed by the service 11. Hereinafter, a communication procedure that can be processed by the service 11 will be described as a protocol 1, and the remaining two communication procedures will be described as a protocol 2 and a protocol 3.

【0014】プロトコル2およびプロトコル3はサービ
ス11において処理することができないから、通信ユニ
ット2にはプロトコル2とプロトコル3とをそれぞれ扱
うことができ、外部装置からプロトコル2またはプロト
コル3を用いて伝送されたデータを解析してサービス1
1に受け渡す機能と、サービス11を通して外部装置に
送り出すデータをプロトコル2またはプロトコル3を用
いて伝送する機能とを有している。つまり、通信ユニッ
ト2は、プロトコル2とプロトコル3とに対応して、そ
れぞれサービス11から外部装置に送るデータを変換す
る通信手順変換手段12,13と、外部装置からのデー
タをサービス11に受け渡し可能な形に変換する通信手
順逆変換手段14,15とを変換手段として備えてい
る。さらに、通信手順変換手段12,13および通信手
順逆変換手段14,15における変換のために逆変換用
テーブル16,17も通信ユニット2に設けられる。一
方、プロトコル1に対しては何の変換も行わないから、
通信ユニット2にはプロトコル1に対してサービス11
と外部装置とを直結する経路が形成される。
Since the protocol 2 and the protocol 3 cannot be processed by the service 11, the communication unit 2 can handle the protocol 2 and the protocol 3 respectively, and the communication unit 2 transmits the protocol 2 or the protocol 3 from the external device. Analyzed data and service 1
1 and a function of transmitting data to be sent to an external device through the service 11 using the protocol 2 or the protocol 3. In other words, the communication unit 2 can convert the data sent from the service 11 to the external device in accordance with the protocol 2 and the protocol 3, respectively, and can transfer the data from the external device to the service 11. And a communication procedure reverse conversion means 14 and 15 for converting the data into a simple form. In addition, reverse conversion tables 16 and 17 are provided in the communication unit 2 for conversion in the communication procedure conversion means 12 and 13 and the communication procedure reverse conversion means 14 and 15. On the other hand, since no conversion is performed for protocol 1,
The communication unit 2 has a service 11 for the protocol 1
A path is formed that directly connects the external device.

【0015】次に、本実施形態の動作について説明す
る。以下では、データを最初に発信する側をマスタと呼
び、マスタ以外をスレーブと呼ぶことにする。
Next, the operation of this embodiment will be described. In the following, the side that first transmits data will be referred to as the master, and the other than the master will be referred to as the slave.

【0016】マスタとして動作する場合は、外部機器に
送り出そうとするデータ(コマンド)をどの通信手順で
伝送するかの指示をシーケンスプログラム中に記述して
おく。図1に示すように、外部装置にデータを送り出す
際にはサービス11から通信ユニット2に送信要求がな
され、サービス11では指定された通信手順を通信ユニ
ット2に指示するとともにデータを通信ユニット2に受
け渡す。通信ユニット2ではサービス11からの指示を
記憶し、記憶した指示に従って通信手順を選択する。た
とえば、指定された通信手順がプロトコル1であれば、
通信ユニット2ではサービス11を外部装置と直結する
経路を選択して通信手順を変換することなく外部装置に
データ(コマンド)を送出する。また、外部装置へのコ
マンドの送出に対して外部装置からのデータ(レスポン
ス)を受信したときには、サービス11に受信報知を行
い、外部機器からのレスポンスを変換することなくサー
ビス11に受け渡す。
When operating as a master, an instruction on which communication procedure to transmit data (command) to be sent to an external device is described in a sequence program. As shown in FIG. 1, when sending data to an external device, a transmission request is made from the service 11 to the communication unit 2, and the service 11 instructs the communication unit 2 on a designated communication procedure and sends the data to the communication unit 2. Hand over. The communication unit 2 stores an instruction from the service 11, and selects a communication procedure according to the stored instruction. For example, if the specified communication procedure is protocol 1,
The communication unit 2 selects a path that directly connects the service 11 to the external device, and transmits data (command) to the external device without converting the communication procedure. When data (response) from the external device is received in response to the transmission of the command to the external device, a reception notification is made to the service 11 and the response from the external device is passed to the service 11 without conversion.

【0017】一方、外部装置へのデータをプロトコル2
によって伝送することがサービス11から通信ユニット
2に指示されると、通信ユニット2ではプロトコル2を
用いることを記憶し、通信手順変換手段12を介してサ
ービス11から渡されたデータをプロトコル2に変換し
て外部装置に送出する。また、通信ユニット2ではプロ
トコル2を用いるという指示を記憶しているから、外部
機器へのデータ(コマンド)に対して外部機器からのデ
ータ(レスポンス)が通信ユニット2に入力されると、
プロトコル2に対応した通信手順逆変換手段14を用い
て外部機器からのレスポンスを解析しサービス11に受
け渡す。なお、通信手順変換手段12および通信手順逆
変換手段14では逆変換用テーブル16を用いてサービ
ス11と外部機器との間でのプロトコルの変換を行う。
On the other hand, data to the external device is transmitted according to protocol 2
When transmission is instructed from the service 11 to the communication unit 2 by the service 11, the communication unit 2 stores that the protocol 2 is used, and converts the data passed from the service 11 through the communication procedure conversion means 12 into the protocol 2. And sends it to an external device. Since the communication unit 2 stores an instruction to use the protocol 2, when data (response) from the external device is input to the communication unit 2 in response to data (command) to the external device,
The response from the external device is analyzed using the communication procedure reverse conversion means 14 corresponding to the protocol 2 and passed to the service 11. The communication procedure conversion means 12 and the communication procedure reverse conversion means 14 use the reverse conversion table 16 to convert the protocol between the service 11 and the external device.

【0018】プロトコル3を用いる場合もプロトコル2
を用いる場合と同様であって、通信ユニット2にサービ
ス11を通してプロトコル3を用いることが指示される
と、これを記憶しておき、外部機器へのデータ(コマン
ド)は通信手順変換手段13を通して伝送し、外部機器
からのデータ(レスポンス)は通信手順逆変換手段15
を通してサービス11に受け渡すのである。また、通信
手順変換手段13と通信手順逆変換手段15とでは、逆
変換用テーブル17を用いてサービス11と外部機器と
の間でのプロトコルの変換を行う。上記説明から明らか
なように、サービス11は複数種類の通信手順により共
有されているから、共有サービスであると言える。
When protocol 3 is used, protocol 2
When the communication unit 2 is instructed to use the protocol 3 through the service 11, this is stored, and data (command) to the external device is transmitted through the communication procedure conversion unit 13. The data (response) from the external device is transmitted to the communication procedure reverse conversion unit 15.
To the service 11 through Further, the communication procedure conversion means 13 and the communication procedure reverse conversion means 15 use the reverse conversion table 17 to convert the protocol between the service 11 and the external device. As is clear from the above description, since the service 11 is shared by a plurality of types of communication procedures, it can be said that the service 11 is a shared service.

【0019】ところで、上述した例はマスタとしての動
作であったが、スレーブとして動作する場合には以下の
ようになる。スレーブとなる場合には、外部機器から何
らかのデータを受けるから、通信ユニット2では外部機
器から伝送されたデータの通信手順を解析し、どの通信
手順に対応するものかを識別する。外部機器からのデー
タに対応する通信手順を識別する処理としては、通信ユ
ニット2で対応可能な全種類の通信手順で外部機器から
の指示を同時に受信し、有効に受信できた通信手順があ
れば、以後はその通信手順を使用する方法、あるいは、
通信ユニット2で対応可能な通信手順をサイクリックに
切り替え、有効に受信できた通信手順があれば、以後は
その通信手順を使用する方法などを用いることができ
る。
By the way, in the above-described example, the operation is performed as a master. However, when the device operates as a slave, the operation is as follows. In the case of a slave, some data is received from the external device. Therefore, the communication unit 2 analyzes the communication procedure of the data transmitted from the external device and identifies which communication procedure corresponds to the data. As a process of identifying a communication procedure corresponding to data from the external device, instructions from the external device are simultaneously received in all types of communication procedures that can be supported by the communication unit 2, and if there is a communication procedure that can be effectively received. , From now on how to use that communication procedure, or
The communication procedure that can be supported by the communication unit 2 is cyclically switched, and if there is a communication procedure that can be effectively received, a method using the communication procedure can be used thereafter.

【0020】ここで、マスタでは通信手順変換手段1
2,14を送信用に用い、通信手順逆変換手段13,1
5を受信用に用いていたが、スレーブでは通信手順変換
手段12,14を受信用に用い、通信手順逆変換手段1
3,15を送信用に用いる。しかして、上述のようにし
て通信手順が確定すれば、通信ユニット2ではその通信
手順の種類を記憶し、以後の送受信には記憶した種類の
通信手順を用いる。たとえば、プロトコル1であれば通
信ユニット2では外部機器とサービス11とを直結する
経路を形成し、プロトコル2であれば通信手順変換手段
12、通信手順逆変換手段14、逆変換用テーブル16
を用い、プロトコル3であれば通信手順変換手段13、
通信手順逆変換手段15、逆変換用テーブル17を用い
ることになる。
Here, in the master, the communication procedure conversion means 1
2 and 14 are used for transmission, and communication procedure reverse conversion means 13 and 1 are used.
5 is used for reception, but the slave uses the communication procedure converters 12 and 14 for reception, and the communication procedure inverse converter 1
3, 15 are used for transmission. When the communication procedure is determined as described above, the communication unit 2 stores the type of the communication procedure, and uses the stored type of communication procedure for subsequent transmission and reception. For example, in the case of the protocol 1, the communication unit 2 forms a path directly connecting the external device and the service 11, and in the case of the protocol 2, the communication procedure conversion means 12, the communication procedure reverse conversion means 14, the reverse conversion table 16
If the protocol is 3, the communication procedure conversion means 13
The communication procedure reverse conversion means 15 and the reverse conversion table 17 are used.

【0021】マスタとして機能するかスレーブとして機
能するかは、あらかじめ固定的に決めることも可能であ
るが、常時はスレーブとして機能するようにし、シーケ
ンスプログラムによる指示があるときにだけマスタとし
て機能するようにしてもよい。この場合には、マスタと
なる側では外部機器へのデータ(コマンド)を送信した
後に、外部機器からのデータ(レスポンス)が正常であ
ると判断されるか、レスポンスが異常であると判断され
るのを待ってスレーブとして機能する状態に復帰させる
ようにする。
Whether to function as a master or a slave can be fixedly determined in advance. However, the function as a slave is always performed, and the function as a master is performed only when instructed by a sequence program. It may be. In this case, after transmitting data (command) to the external device, the master side determines that the data (response) from the external device is normal or that the response is abnormal. And then return to the state of functioning as a slave.

【0022】このようにしてマスタとスレーブとの機能
を実現するようにすれば、マスタとスレーブとの機能毎
に通信ユニットを設けたり、マスタとスレーブとの機能
をスイッチで切り替えたりする必要がなく、マスタとス
レーブとの切り替えが自動化される。
By realizing the functions of the master and the slave in this way, there is no need to provide a communication unit for each of the functions of the master and the slave, and to switch between the functions of the master and the slave with a switch. Switching between master and slave is automated.

【0023】なお、図において、プロトコル1、プロト
コル2、プロトコル3の送受信の経路を分離して記載し
ているが、伝送路は各通信手順において共用可能であ
り、また送受信の経路も共用可能である。たとえば、2
線式の伝送路を用いて異なる複数種類の通信手順に対応
可能であり、またその伝送路を送受信で共用することが
可能である。
In the figure, the transmission / reception paths for protocol 1, protocol 2 and protocol 3 are shown separately, but the transmission path can be shared in each communication procedure, and the transmission / reception path can also be shared. is there. For example, 2
It is possible to cope with a plurality of different types of communication procedures using a line-type transmission path, and it is possible to share the transmission path for transmission and reception.

【0024】また、上述した構成例は比較的大規模なプ
ログラマブルコントローラであって、複数のユニットを
組み合わせることによってプログラマブルコントローラ
として動作するものであるが、入出力接点数の少ない小
規模のプログラマブルコントローラでは、ユニットが分
離されておらず1つの器体にコントローラ部と通信部と
が設けられているものもある。この種のプログラマブル
コントローラにおいても本発明の技術思想は適用可能で
ある。さらに、上述の構成例では通信ユニット2にプロ
トコルを変換する手段を設けているが、プロトコルの変
換を通信ユニット2とは別に設けた専用の周辺ユニット
で行ってもよい。また、通信ユニット2が扱う通信手順
は3種類に限定されるものではない。
The above configuration example is a relatively large-scale programmable controller, which operates as a programmable controller by combining a plurality of units. In some cases, the units are not separated and a single unit is provided with a controller unit and a communication unit. The technical idea of the present invention is also applicable to this kind of programmable controller. Further, in the above configuration example, the communication unit 2 is provided with the means for converting the protocol, but the protocol may be converted by a dedicated peripheral unit provided separately from the communication unit 2. The communication procedure handled by the communication unit 2 is not limited to three types.

【0025】[0025]

【発明の効果】請求項1の発明は、シーケンスプログラ
ムに従って機器を制御するコントローラ部と、外部装置
との間で通信する通信部とを備えるプログラマブルコン
トローラであって、前記通信部には前記コントローラ部
と前記外部装置との間で授受するデータの通信手順が相
違するときに通信手順を相互に変換する変換手段が設け
られているものである。
According to a first aspect of the present invention, there is provided a programmable controller including a controller for controlling a device according to a sequence program and a communication unit for communicating with an external device, wherein the communication unit includes the controller unit. Conversion means for mutually converting the communication procedure when the communication procedure of data transmitted and received between the external apparatus and the external apparatus is different.

【0026】請求項2の発明は、請求項1の発明におい
て、前記コントローラ部には前記通信部で扱うことが可
能な複数種類の通信手順に共用されるサービスが設けら
れ、外部機器にデータを送出する際にはシーケンスプロ
グラムにおいて指示された通信手順を前記データととも
にサービスを通して前記通信部に与えることにより通信
手順を選択し、外部機器からのデータを受信する際には
前記通信部において通信手順を判別することにより通信
手順を選択するものである。
According to a second aspect of the present invention, in the first aspect of the present invention, the controller unit is provided with a service shared by a plurality of types of communication procedures that can be handled by the communication unit, and transmits data to an external device. When sending, the communication procedure specified in the sequence program is provided to the communication unit through the service together with the data, and the communication procedure is selected.When data from an external device is received, the communication procedure is performed in the communication unit. The communication procedure is selected by the determination.

【0027】請求項3の発明は、請求項1または請求項
2の発明において、前記通信部は常時は外部機器からの
データ受信可能な状態に設定され、シーケンスプログラ
ムにおいて外部機器にデータを送出する指示がなされて
いるときには前記コントローラ部からの指示によって前
記通信部が外部機器にデータを送信可能な状態に切り替
えられるものである。
According to a third aspect of the present invention, in the first or second aspect of the present invention, the communication unit is normally set to a state in which data can be received from an external device, and sends data to the external device in a sequence program. When an instruction is given, the communication unit is switched to a state in which data can be transmitted to an external device by an instruction from the controller unit.

【0028】請求項4の発明は、シーケンスプログラム
に従って機器を制御するCPUユニットに接続され外部
装置との間で通信する機能を有した周辺ユニットであっ
て、前記CPUユニットと前記外部装置との間で授受す
るデータの通信手順が相違するときに通信手順を相互に
変換する変換手段を備えているものである。
According to a fourth aspect of the present invention, there is provided a peripheral unit which is connected to a CPU unit for controlling a device according to a sequence program and has a function of communicating with an external device, wherein the peripheral unit is provided between the CPU unit and the external device. And a conversion means for mutually converting the communication procedures when the communication procedures of the data to be exchanged are different.

【0029】請求項5の発明は、請求項4の発明におい
て、前記CPUユニットには複数種類の通信手順で共用
されるサービスが設けられ、外部機器にデータを送出す
る際にはシーケンスプログラムにおいて指示された通信
手順が前記データとともにサービスを通して与えられる
ことにより通信手順を選択し、外部機器からのデータを
受信する際には外部機器から受信したデータに基づいて
通信手順を判別することにより通信手順を選択するもの
である。
According to a fifth aspect of the present invention, in the fourth aspect of the present invention, the CPU unit is provided with a service that is shared by a plurality of types of communication procedures. The communication procedure is given through the service together with the data, the communication procedure is selected, and when receiving data from the external device, the communication procedure is determined by determining the communication procedure based on the data received from the external device. To choose.

【0030】請求項6の発明は、請求項4または請求項
5の発明において、常時は外部機器からのデータを受信
可能な状態に設定され、シーケンスプログラムにおいて
外部機器にデータを送出する指示がなされているときに
は前記CPUユニットからの指示によって外部機器にデ
ータを送信可能な状態に切り替えられるものである。
According to a sixth aspect of the present invention, in the fourth or fifth aspect of the present invention, data is normally set to a state in which data can be received from an external device, and an instruction to send data to the external device is issued in a sequence program. In this case, the state can be switched to a state in which data can be transmitted to an external device by an instruction from the CPU unit.

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

【図1】本発明の実施の形態をマスタとして機能させた
例を示すブロック図である。
FIG. 1 is a block diagram showing an example in which an embodiment of the present invention functions as a master.

【図2】同上をスレーブとして機能させた例を示すブロ
ック図である。
FIG. 2 is a block diagram showing an example in which the above device functions as a slave.

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

1 CPUユニット 2 通信ユニット 11 サービス 12,13 通信手順変換手段 14,15 通信手順逆変換手段 16,17 逆変換用テーブル DESCRIPTION OF SYMBOLS 1 CPU unit 2 Communication unit 11 Service 12 and 13 Communication procedure conversion means 14 and 15 Communication procedure reverse conversion means 16 and 17 Reverse conversion table

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 シーケンスプログラムに従って機器を制
御するコントローラ部と、外部装置との間で通信する通
信部とを備えるプログラマブルコントローラであって、
前記通信部には前記コントローラ部と前記外部装置との
間で授受するデータの通信手順が相違するときに通信手
順を相互に変換する変換手段が設けられていることを特
徴とするプログラマブルコントローラ。
1. A programmable controller comprising: a controller for controlling a device according to a sequence program; and a communication unit for communicating with an external device,
A programmable controller, wherein the communication unit is provided with a conversion unit that converts a communication procedure between the controller unit and the external device when data communication procedures are different.
【請求項2】 前記コントローラ部には前記通信部で扱
うことが可能な複数種類の通信手順に共用されるサービ
スが設けられ、外部機器にデータを送出する際にはシー
ケンスプログラムにおいて指示された通信手順を前記デ
ータとともにサービスを通して前記通信部に与えること
により通信手順を選択し、外部機器からのデータを受信
する際には前記通信部において通信手順を判別すること
により通信手順を選択することを特徴とする請求項1記
載のプログラマブルコントローラ。
2. A service shared by a plurality of types of communication procedures that can be handled by the communication unit is provided in the controller unit, and when data is transmitted to an external device, communication is performed in accordance with a communication instruction specified in a sequence program. The communication procedure is selected by giving the procedure to the communication unit through a service together with the data, and when receiving data from an external device, the communication procedure is selected by determining the communication procedure in the communication unit. The programmable controller according to claim 1, wherein
【請求項3】 前記通信部は常時は外部機器からのデー
タを受信可能な状態に設定され、シーケンスプログラム
において外部機器にデータを送出する指示がなされてい
るときには前記コントローラ部からの指示によって前記
通信部が外部機器にデータを送信可能な状態に切り替え
られることを特徴とする請求項1または請求項2記載の
プログラマブルコントローラ。
3. The communication unit is normally set to be able to receive data from an external device, and when an instruction to send data to an external device is given in a sequence program, the communication unit receives the instruction from the controller unit. 3. The programmable controller according to claim 1, wherein the section is switched to a state in which data can be transmitted to an external device.
【請求項4】 シーケンスプログラムに従って機器を制
御するCPUユニットに接続され外部装置との間で通信
する機能を有した周辺ユニットであって、前記CPUユ
ニットと前記外部装置との間で授受するデータの通信手
順が相違するときに通信手順を相互に変換する変換手段
を備えていることを特徴とするプログラマブルコントロ
ーラの周辺ユニット。
4. A peripheral unit connected to a CPU unit for controlling equipment according to a sequence program and having a function of communicating with an external device, wherein the peripheral unit has a function of transmitting and receiving data between the CPU unit and the external device. A peripheral unit for a programmable controller, comprising conversion means for mutually converting communication procedures when the communication procedures are different.
【請求項5】 前記CPUユニットには複数種類の通信
手順で共用されるサービスが設けられ、外部機器にデー
タを送出する際にはシーケンスプログラムにおいて指示
された通信手順が前記データとともにサービスを通して
与えられることにより通信手順を選択し、外部機器から
のデータを受信する際には外部機器から受信したデータ
に基づいて通信手順を判別することにより通信手順を選
択することを特徴とする請求項4記載のプログラマブル
コントローラの周辺ユニット。
5. The CPU unit is provided with a service shared by a plurality of types of communication procedures, and when transmitting data to an external device, a communication procedure specified in a sequence program is given together with the data through the service. 5. The communication method according to claim 4, wherein the communication procedure is selected by selecting a communication procedure based on the data received from the external device. Peripheral unit of programmable controller.
【請求項6】 常時は外部機器からのデータを受信可能
な状態に設定され、シーケンスプログラムにおいて外部
機器にデータを送出する指示がなされているときには前
記CPUユニットからの指示によって外部機器にデータ
を送信可能な状態に切り替えられることを特徴とする請
求項4または請求項5記載のプログラマブルコントロー
ラの周辺ユニット。
6. A state in which data from an external device can be received at all times, and when an instruction to send data to the external device is given in a sequence program, data is transmitted to the external device according to an instruction from the CPU unit. The peripheral unit of a programmable controller according to claim 4 or 5, wherein the peripheral unit is switched to a possible state.
JP2000114114A 2000-04-14 2000-04-14 Programmable controller, peripheral unit of programmable controller Expired - Fee Related JP4186379B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000114114A JP4186379B2 (en) 2000-04-14 2000-04-14 Programmable controller, peripheral unit of programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000114114A JP4186379B2 (en) 2000-04-14 2000-04-14 Programmable controller, peripheral unit of programmable controller

Publications (2)

Publication Number Publication Date
JP2001296910A true JP2001296910A (en) 2001-10-26
JP4186379B2 JP4186379B2 (en) 2008-11-26

Family

ID=18625971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000114114A Expired - Fee Related JP4186379B2 (en) 2000-04-14 2000-04-14 Programmable controller, peripheral unit of programmable controller

Country Status (1)

Country Link
JP (1) JP4186379B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008547294A (en) * 2005-06-23 2008-12-25 ヒルシャー ゲゼルシャフト フュア ジステームアウトマツィオーン ミット ベシュレンクテル ハフツング Data communication method for bus subscription equipment in open automation system
JP2010097624A (en) * 2003-10-02 2010-04-30 Omron Corp Programmable controller and controller system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010097624A (en) * 2003-10-02 2010-04-30 Omron Corp Programmable controller and controller system
JP2008547294A (en) * 2005-06-23 2008-12-25 ヒルシャー ゲゼルシャフト フュア ジステームアウトマツィオーン ミット ベシュレンクテル ハフツング Data communication method for bus subscription equipment in open automation system
JP4903201B2 (en) * 2005-06-23 2012-03-28 ヒルシャー ゲゼルシャフト フュア ジステームアウトマツィオーン ミット ベシュレンクテル ハフツング Data communication method for bus subscription equipment in open automation system

Also Published As

Publication number Publication date
JP4186379B2 (en) 2008-11-26

Similar Documents

Publication Publication Date Title
JP2013219655A (en) Protocol conversion device and protocol conversion method
JP2018190385A (en) Programmable logic controller
JP2001229119A (en) Device selection hubbox by plural computers
JP2001296910A (en) Programmable controller and peripheral unit of the same
JP2008227558A (en) Network adapter, communication terminal, communication path distribution method and program thereof
JP3913608B2 (en) Intelligent type device that allows all intelligent type modules to share the same user input / output interface
JPH0473178B2 (en)
JP2798329B2 (en) Data communication method
JP2000163112A (en) Controller for industrial robot
KR200379327Y1 (en) Input-output data control unit using multi-input synchronization switch controller
JP3673754B2 (en) Network connection device, its termination device and line concentrator
KR100695523B1 (en) Input-output data control unit using multi-input synchronization switch controller
JPS63250237A (en) Multi-protocol control system
JPH10200601A (en) Information transmitter
KR20050100998A (en) Protecting apparatus for communication between semiconductor equipment and host
JP2005295246A (en) Communication switching device
JPH11234192A (en) Mobile communication system, its method, and medium for recording program for controlling transmission and reception of data in mobile communication system
JP2000224227A (en) Communication processing unit and terminal adaptor
JPH06332866A (en) Inter-program communication system
JPS6316362A (en) Evaluation system for communication system
JPH0630803U (en) NC machine tool management device
KR20010083748A (en) Output and input matching unit of communication system
JP2000029805A (en) Method for inputting nc data in working machine
JPH05327814A (en) Communication protocol converter
JPH06252977A (en) Terminal equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050408

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080401

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080602

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080819

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080901

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20130919

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees