JPH11305810A - Network unit for programmable controller - Google Patents
Network unit for programmable controllerInfo
- Publication number
- JPH11305810A JPH11305810A JP10106733A JP10673398A JPH11305810A JP H11305810 A JPH11305810 A JP H11305810A JP 10106733 A JP10106733 A JP 10106733A JP 10673398 A JP10673398 A JP 10673398A JP H11305810 A JPH11305810 A JP H11305810A
- Authority
- JP
- Japan
- Prior art keywords
- data
- general
- network unit
- registration area
- read
- 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
Links
Landscapes
- Programmable Controllers (AREA)
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【課題】 PCより汎用機器へのデータ送信を、このデ
ータ送信のためのPCでのシーケンスプログラム等を必
要とすることなく行うことができ、シーケンスプログラ
ムを格納するPCのメモリエリアの使用量の低減、PC
のシーケンススキャンタイムの短縮、PC負荷の軽減を
行うことができるプログラマブルコントローラ用のネッ
トワークユニットを得ること。
【解決手段】 プログラマブルコントローラ100と汎
用機器200との間のデータ通信のためのプログラマブ
ルコントローラ用のネットワークユニット300におい
て、読み出し対象のデバイス名を含むデバイス情報とデ
ータ読み出しの周期時間を登録される登録エリア305
を含む記憶手段と、タイマ手段306とを設け、登録エ
リア305に登録される周期時間毎に、登録エリア30
5に登録される読み出し対象のデバイス名のデータを読
み出し、ネットワーク接続されている汎用機器300へ
データを周期的に自動送信する。
PROBLEM TO BE SOLVED: To transmit data from a PC to a general-purpose device without requiring a sequence program in the PC for the data transmission, and to store a sequence program in a PC memory Reduction of area usage, PC
To obtain a network unit for a programmable controller capable of shortening the sequence scan time and reducing the PC load. SOLUTION: In a programmable controller network unit 300 for data communication between a programmable controller 100 and a general-purpose device 200, a registration area in which device information including a device name to be read and a cycle time of data reading are registered. 305
Is provided, and a timer means 306 is provided.
5, the data of the device name to be read is read, and the data is automatically transmitted periodically to the general-purpose device 300 connected to the network.
Description
【0001】[0001]
【発明の属する技術分野】この発明はプログラマブルコ
ントローラ(以下PCと略す)が汎用機器とデータ通信
を行うために使用されるネットワークユニット(通信ユ
ニット)に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network unit (communication unit) used for a programmable controller (hereinafter abbreviated as PC) to perform data communication with general-purpose devices.
【0002】[0002]
【従来の技術】図10は、PCを用いた制御システムに
おけるPCと汎用機器との間のデータ交信の一般的な実
施方法を示している。図10において、100はPC
を、200は計算機やプリンタ等の汎用機器を、300
はPC100と汎用機器200との間のデータの送受信
を実施するネットワークユニットを示している。2. Description of the Related Art FIG. 10 shows a general method of performing data communication between a PC and a general-purpose device in a control system using the PC. In FIG. 10, 100 is a PC
And 200 are general-purpose devices such as computers and printers, and 300
Denotes a network unit for transmitting and receiving data between the PC 100 and the general-purpose device 200.
【0003】ネットワークユニット300は、例えば、
調歩同期方式でデータ通信するものであり、PC100
と汎用機器200との交信は、すべて、このネットワー
クユニット300を介して行われる。汎用機器200と
ネットワークユニット300とは伝送媒体400によっ
て接続される。この伝送媒体400は、例えばネットワ
ークユニット300が調歩同期方式の通信ユニットであ
れば、RS−232CもしくはRS422/485のイ
ンタフェースによるものである。[0003] The network unit 300 is, for example,
The data communication is performed by the start-stop synchronization method.
All communications between the device and the general-purpose device 200 are performed via the network unit 300. The general-purpose device 200 and the network unit 300 are connected by a transmission medium 400. This transmission medium 400 is based on an RS-232C or RS422 / 485 interface if the network unit 300 is a communication unit of the start-stop synchronization system, for example.
【0004】また、図10において、“Req”は汎用
機器200からPC100への要求データの流れを、
“Ans”はPC100から汎用機器200への応答デ
ータの流れを示している。In FIG. 10, “Req” indicates the flow of request data from the general-purpose device 200 to the PC 100.
“Ans” indicates the flow of response data from the PC 100 to the general-purpose device 200.
【0005】図11は、ネットワークユニット300の
ハードウェア構成を示している。ネットワークユニット
300は、MPU301と、送受信データの格納エリア
であるワークRAM302と、PC100との交信窓口
で、PC100のMPU(図示せず)とネットワークユ
ニット300のMPU301の両方がアクセスできるエ
リアである2ポートRAM303と、通信インタフェー
スケーブル(伝送媒体)400を接続する通信インタフ
ェース部304とを有している。FIG. 11 shows a hardware configuration of the network unit 300. The network unit 300 is a communication window between the MPU 301, the work RAM 302 that is a storage area for transmission / reception data, and the PC 100, and is a 2-port area that can be accessed by both the MPU (not shown) of the PC 100 and the MPU 301 of the network unit 300. It has a RAM 303 and a communication interface unit 304 for connecting a communication interface cable (transmission medium) 400.
【0006】一定周期で、PC100側のデータを汎用
機器200へ通知する方法には、従来より二通りの方法
がある。1つ目の方法は、PC100側にて伝文フレー
ムを作成して一定の間隔で汎用機器200へデータを送
信するシーケンスプログラムをユーザが作成する方法で
ある。There are two methods of notifying the data of the PC 100 to the general-purpose device 200 at regular intervals. The first method is a method in which a user creates a sequence program for creating a message frame on the PC 100 side and transmitting data to the general-purpose device 200 at regular intervals.
【0007】図12は、PC100からネットワークユ
ニット300へ送信要求を送り、PC内のデータを読み
出すデータ送信用のシーケンスプログラム例を示してい
る。このシーケンスプログラムでは、ステップS101
でタイマの処理、ステップS102〜ステップS104
でデータ送信の処理、ステップS105、ステップS1
06でデータ受信の処理をそれぞれ行っている。FIG. 12 shows an example of a data transmission sequence program for transmitting a transmission request from the PC 100 to the network unit 300 and reading data in the PC. In this sequence program, step S101
, The processing of the timer, steps S102 to S104
, Data transmission processing, step S105, step S1
At step 06, data reception processing is performed.
【0008】ネットワークユニット300は、2ポート
RAM303から要求を受けると、ワークRAM302
へその内容を転送する。そしてMPU301で要求を解
析し、送信データに加工して通信インタフェース部30
4より汎用機器200へ送信する。一定周期でなくてP
C100の内部に登録されているデバイスの値を監視
し、ユーザが指定した任意の条件とデバイス値がと一致
した時に汎用機器200へデータを送信する場合には、
シーケンスプログラムによって一定の間隔でデバイスの
値を解読し、条件が一致すればPC100からネットワ
ークユニット300に送信要求を発行する必要がある。When the network unit 300 receives a request from the two-port RAM 303, the work unit 302
Transfer the contents of the navel. The MPU 301 analyzes the request, processes the request into transmission data, and processes the transmission data.
4 to the general-purpose device 200. P
When monitoring the value of a device registered in the C100 and transmitting data to the general-purpose device 200 when the device value matches an arbitrary condition specified by the user,
It is necessary to decode the device value at regular intervals by a sequence program, and issue a transmission request from the PC 100 to the network unit 300 if the conditions match.
【0009】さらに、これらのPCデータ通信におい
て、図13に示されているように、一つのネットワーク
上に複数の汎用機器A、B、C(100)が接続されて
いる場合には、シーケンスプログラムはその送信相手を
考慮した構成とする必要があり、送信要求を送る際にネ
ットワークユニット300の2ポートRAM303に送
信相手先を設定する必要がある。Further, in these PC data communications, when a plurality of general-purpose devices A, B, and C (100) are connected on one network as shown in FIG. Needs to be configured in consideration of the transmission destination, and it is necessary to set the transmission destination in the two-port RAM 303 of the network unit 300 when transmitting a transmission request.
【0010】もう一つの方法は、汎用機器200側にて
要求伝文フレームを作成して一定の間隔でネットワーク
ユニット300にデータ読み出し要求を送信するプログ
ラムをコンピュータの汎用言語を用いてユーザが作成す
る方法である。In another method, a user creates a program for creating a request message frame on the general-purpose device 200 side and transmitting a data read request to the network unit 300 at regular intervals by using a general-purpose language of a computer. Is the way.
【0011】図14は、BASICで作成したプログラ
ム例を示している。このプログラムの作成は汎用機器2
00にて行い、汎用機器200よりネットワークユニッ
ト300に送信する。このプログラムにおいて、1行目
から5行目の記述はデータ送信のためのパラメータ設定
であり、6行目から9行目の記述は実際の送信部分であ
る。なお、このプログラムでは、上述の記述以外に、プ
ロパティによるタイマ間隔の設定、送信データ作成、受
信処理のための記述が必要である。FIG. 14 shows an example of a program created by BASIC. This program is created for general equipment 2
00, and is transmitted from the general-purpose device 200 to the network unit 300. In this program, the description in the first to fifth lines is a parameter setting for data transmission, and the description in the sixth to ninth lines is an actual transmission part. In this program, in addition to the above description, a description for setting a timer interval by a property, creating transmission data, and receiving processing is required.
【0012】図15は、汎用機器200より送信される
要求伝文のフォーマットの一例を示している。aには要
求アドレス等の相手先情報(ヘッダ)、bには読み出し
や書き込みなど要求内容(コマンド)、cにはデバイス
の種類(デバイス名)、dにはアクセスするデバイスの
先頭番号(アドレス)、eにはアクセスするデバイスの
点数、fには伝文の終わりを示す情報(フッタ)が入
る。FIG. 15 shows an example of a format of a request message transmitted from the general-purpose device 200. a indicates destination information such as a request address (header), b indicates a request content (command) such as reading or writing, c indicates a device type (device name), and d indicates a head number (address) of a device to be accessed. , E contain the number of devices to be accessed, and f contains information (footer) indicating the end of the message.
【0013】ネットワークユニット300は通信インタ
フェース部304に伝文を受信すると、MPU301が
その伝文をワークRAM302へ格納する。伝文の受信
が完了すると、MPU302がPC100への要求デー
タに変換し、2ポートRAM303を経由してPC10
0へ要求する。PC100は2ポートRAM303の要
求を受け付け、応答データを2ポートRAM303に書
き込む。その後、PC100からの読み出しデータを2
ポートRAM303で受けると、ワークRAM302に
その内容を格納し、MPU301によって送信データに
加工して通信インタフェース部304により汎用機器2
00へ送信する。When network unit 300 receives a message at communication interface unit 304, MPU 301 stores the message in work RAM 302. When the reception of the message is completed, the MPU 302 converts the data into request data for the PC 100, and transmits the request data to the PC 10 via the two-port RAM 303.
Request to 0. The PC 100 receives the request from the two-port RAM 303 and writes the response data to the two-port RAM 303. After that, the read data from the PC 100 is
When received by the port RAM 303, the contents are stored in the work RAM 302, processed into transmission data by the MPU 301, and transmitted to the general-purpose device 2 by the communication interface unit 304.
Send to 00.
【0014】図16は、汎用機器200にて要求伝文フ
レーム(要求データ)を作成して一定周期でネットワー
クユニット300へ要求データを送信する場合のデータ
の流れを示しており、図17はシーケンスプログラムに
より一定間隔で汎用機器200へデータ送信する場合に
データの流れを示している。要求データDr、応答デー
タDa、送信データDsは伝送媒体400に流れる汎用
機器200からネットワークユニット300へ要求され
る伝文を示し、A、BはPC100とネットワークユニ
ット300の間でやり取りされるデータを示している。FIG. 16 shows a data flow in the case where a request message frame (request data) is created in the general-purpose device 200 and the request data is transmitted to the network unit 300 at regular intervals. The flow of data is shown when data is transmitted to the general-purpose device 200 at regular intervals by a program. The request data Dr, the response data Da, and the transmission data Ds indicate a message requested from the general-purpose device 200 flowing to the transmission medium 400 to the network unit 300, and A and B represent data exchanged between the PC 100 and the network unit 300. Is shown.
【0015】[0015]
【発明が解決しようとする課題】従来、一定周期でPC
から汎用機器へデータを送信する場合や、一定周期でデ
バイスの値を監視する場合には、ユーザがPC100に
それらの処理を行うシーケンスプログラムを作成する必
要がある。このため、PC100では、シーケンスプロ
グラムのサイズの増大、シーケンススキャン増加という
現象が発生し、さらにはPC100がシーケンスプログ
ラムの実行、状態の監視、汎用機器200へのデータ送
信の管理などをすべての処理を行っていたため、本来、
PC100が行うべきシーケンス処理以外の処理に対し
てPC100の能力を裂かれるという問題が生じてい
た。[0006] Conventionally, a PC has
When transmitting data from a PC to a general-purpose device, or when monitoring device values at regular intervals, it is necessary for the user to create a sequence program in the PC 100 for performing these processes. For this reason, in the PC 100, a phenomenon of an increase in the size of the sequence program and an increase in the sequence scan occur. In addition, the PC 100 performs all processes such as executing the sequence program, monitoring the status, and managing data transmission to the general-purpose device 200. Originally,
There has been a problem that the ability of the PC 100 is broken for processing other than the sequence processing to be performed by the PC 100.
【0016】また、汎用機器200からデータ送信制御
を行う場合には、図16に示されている要求データDr
のように、読み出し要求データを送信する必要があり、
ネットワークユニット300は受信した要求伝文に従
い、データの動きAによってPC100よりデータを読
み出し、応答データDaのように伝送媒体400によっ
てネットワークユニット300から汎用機器200に対
して応答データを送信しなければならない。When data transmission control is performed from the general-purpose device 200, the request data Dr shown in FIG.
It is necessary to transmit the read request data as in
In accordance with the received request message, the network unit 300 must read data from the PC 100 according to the data movement A, and transmit response data from the network unit 300 to the general-purpose device 200 via the transmission medium 400 as response data Da. .
【0017】これに対し、PC100のシーケンスプロ
グラムによって送信制御を行う場合には、図17に示さ
れているデータの流れBのように、PC100側からネ
ットワークユニット300に対し送信要求が発生し、送
信データDsのようにネットワークユニット300から
汎用機器200へ送信データDsが送信されるのみであ
る。On the other hand, when the transmission is controlled by the sequence program of the PC 100, a transmission request is generated from the PC 100 to the network unit 300 as shown in a data flow B shown in FIG. Only transmission data Ds is transmitted from network unit 300 to general-purpose device 200 like data Ds.
【0018】従って、汎用機器200からデータ送信制
御を行う場合には、PC100のシーケンスプログラム
にて送信制御を行う場合と比較して、要求伝文を必要と
する分、ネットワークユニット300側での受信処理が
必要となり、システムに対する負荷が高くなり、レスポ
ンスの送信が遅くなるなどと云った問題が生じていた。Therefore, when the data transmission control is performed from the general-purpose device 200, compared with the case where the transmission control is performed by the sequence program of the PC 100, the reception on the network unit 300 side corresponds to the required request message. This requires processing, which increases the load on the system and slows down the response transmission.
【0019】この発明は、上述の如き問題点を解消する
ためになされたもので、PCより汎用機器へのデータ送
信を、このデータ送信のためのPCでのシーケンスプロ
グラム、汎用機器側でのプログラムや、汎用機器よりの
要求伝文の繰り返しの受信処理を必要とすることなく行
うことができ、シーケンスプログラムを格納するPCの
メモリエリアの使用量の低減、PCのシーケンススキャ
ンタイムの短縮、PC負荷の軽減を行うことができ、ま
たシステムの変更などにより送信相手先の汎用機器が変
更されたことに対してもプログラムの書き換えを必要と
することなく容易に対応することができるプログラマブ
ルコントローラ用のネットワークユニットを得ることを
目的としている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. A data transmission from a PC to a general-purpose device includes a sequence program on the PC for the data transmission, and a program on the general-purpose device side. It can also be performed without the need to repeatedly receive a request message from a general-purpose device, reducing the use of the PC memory area for storing sequence programs, reducing the PC sequence scan time, and reducing the PC load. Network for programmable controllers that can reduce the number of general-purpose devices at the transmission destination due to system changes, etc. without having to rewrite programs. The aim is to get a unit.
【0020】[0020]
【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラ用の
ネットワークユニットは、プログラマブルコントローラ
と汎用機器との間のデータ通信のためのプログラマブル
コントローラ用のネットワークユニットにおいて、読み
出し対象のデバイス名を含むデバイス情報とデータ読み
出しの周期時間を登録される登録エリアを含む記憶手段
と、タイマ手段とを有し、前記登録エリアに登録される
周期時間毎に前記登録エリアに登録される読み出し対象
のデバイス名のデータを読み出し、ネットワーク接続さ
れている汎用機器へデータを周期的に自動送信するもの
である。To achieve the above object, a network unit for a programmable controller according to the present invention is provided in a network unit for a programmable controller for data communication between the programmable controller and general-purpose equipment. Storage means including a registration area in which device information including a device name to be read and a cycle time of data reading are registered, and a timer means, and the registration area is stored in the registration area for each cycle time registered in the registration area. It reads the data of the registered device name to be read, and automatically transmits the data periodically to general-purpose devices connected to the network.
【0021】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットは、プログラマブルコン
トローラと汎用機器との間のデータ通信のためのプログ
ラマブルコントローラ用のネットワークユニットにおい
て、読み出し対象のデバイス名を含むデバイス情報とデ
ータ読み出し条件値とデータ読み出しの周期時間を登録
される登録エリアを含む記憶手段と、タイマ手段とを有
し、前記登録エリアに登録される周期時間毎に前記登録
エリアに登録される読み出し対象のデバイス名のデータ
を読み出し、前記登録エリアに登録されるデータ読み出
し条件値と一致すれば、ネットワーク接続されている汎
用機器へデータを自動送信するものである。A network unit for a programmable controller according to the next invention is a network unit for a programmable controller for data communication between a programmable controller and a general-purpose device, wherein device information including a device name to be read and data read conditions are included. A storage unit including a registration area for registering a value and a cycle time for reading data; and a timer unit, and a device name of a device to be read registered in the registration area for each cycle time registered in the registration area. The data is read out, and if it matches the data reading condition value registered in the registration area, the data is automatically transmitted to a general-purpose device connected to the network.
【0022】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットは、前記登録エリアは送
信先情報の登録エリアを含み、前記登録エリアに登録さ
れるデータ読み出し条件値と一致すれば、ネットワーク
接続されている複数個の汎用機器のうち前記登録エリア
に登録されている送信先情報により指定された汎用機器
へデータを自動送信するものである。In the network unit for a programmable controller according to the next invention, the registration area includes a registration area of transmission destination information, and if a data read condition value registered in the registration area matches, a plurality of network-connected devices are connected. Data is automatically transmitted to general-purpose devices designated by destination information registered in the registration area among the general-purpose devices.
【0023】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットは、前記登録エリアに対
する情報登録はネットワーク接続されている汎用機器よ
りの登録伝文を受信することにより行われるものであ
る。In the network unit for a programmable controller according to the next invention, information registration in the registration area is performed by receiving a registration message from a general-purpose device connected to the network.
【0024】[0024]
【発明の実施の形態】以下に添付の図を参照してこの発
明に係るプログラマブルコントローラ用のネットワーク
ユニットの実施の形態を詳細に説明する。なお、以下に
説明するこの発明の実施の形態において上述の従来例と
同一構成の部分は、上述の従来例に付した符号と同一の
符号を付してその説明を省略する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a network unit for a programmable controller according to the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments of the present invention described below, the same components as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof will be omitted.
【0025】実施の形態1.図1〜図4はこの発明によ
るプログラマブルコントローラ用のネットワークユニッ
トの実施の形態1を示している。図1に示されているよ
うに、ネットワークユニット300は、従前のMPU3
01とワークRAM302と2ポートRAM303、通
信インタフェース部304に加えて、一定周期送信の条
件を登録するRAM(記憶手段)による登録エリア30
5と、サイクリック送信ための一定周期をカウントする
タイマ306とを有している。ネットワークユニット3
00は汎用機器200で作成された登録伝文を受信し、
その登録伝文の内容に従って登録エリア305に一定周
期送信の条件を登録する。Embodiment 1 1 to 4 show a first embodiment of a network unit for a programmable controller according to the present invention. As shown in FIG. 1, the network unit 300
01, a work RAM 302, a two-port RAM 303, a communication interface unit 304, and a registration area 30 of a RAM (storage means) for registering a condition of a fixed period transmission.
5 and a timer 306 that counts a fixed period for cyclic transmission. Network unit 3
00 receives the registration message created by the general-purpose device 200,
According to the contents of the registration message, a condition for transmission at regular intervals is registered in the registration area 305.
【0026】図2は、一定周期送信のための登録伝文の
フォーマットの一例を示している。登録伝文は、ヘッダ
g、一定周期送信登録を示すコマンドhと、PC100
からネットワークユニット300がデータを読み出す周
期時間iと、PC100より読み出すデバイス名(読み
出し対象デバイス名)jと、そのデバイスの先頭番号
(アドレス)kと、読み出すデバイスの点数lと、フッ
タmとにより構成されており、h〜lが登録エリア30
5に対する登録情報であり、j〜lが読み出しデバイス
情報である。なお、コマンドhは一定周期送信を示す番
号のもので、一定周期送信の登録手段に基づき、新たに
作成された番号である。FIG. 2 shows an example of the format of a registration message for transmission at a fixed period. The registration message includes a header g, a command h indicating registration for transmission at a fixed period, and the PC 100.
From the network unit 300 to read data from the PC 100, a device name (read target device name) j to be read from the PC 100, a head number (address) k of the device, a point 1 of the device to be read, and a footer m. H to l are registered areas 30
5, and j to l are read device information. Note that the command h is a number indicating a fixed-cycle transmission, and is a newly created number based on the registration means for the fixed-cycle transmission.
【0027】登録エリア305は、一定周期送信登録を
示すコマンドhの登録エリア305aと、PC100か
らネットワークユニット300がデータを読み出す周期
時間(タイマ306のセット時間)iの登録エリア30
5bと、PC100より読み出すデバイス名jの登録エ
リア305cと、そのデバイスの先頭番号(アドレス)
kの登録エリア305dと、読み出すデバイスの点数l
の登録エリア305eとを画定されている。なお、タイ
マ306のセット時間はタイマ306自体に登録するこ
とも可能である。The registration area 305 includes a registration area 305a for a command h indicating a fixed period transmission registration and a registration area 30 for a cycle time i (set time of the timer 306) for the network unit 300 to read data from the PC 100.
5b, a registration area 305c of a device name j read from the PC 100, and a head number (address) of the device
k registration area 305d and the number l of devices to be read
And a registration area 305e. Note that the set time of the timer 306 can be registered in the timer 306 itself.
【0028】上述のように、一定周期送信のデータは一
定周期送信制御を司るネットワークユニット300の登
録エリア305に登録保持されるから、汎用機器200
からネットワークユニット300に対する一定周期送信
の登録データの送信は、一定周期送信開始時に一度だけ
行われればよく、一定周期送信の内容が変更されない限
り、一定周期送信の登録データをネットワークユニット
300に送信する必要はない。このことは、この発明に
よるネットワークユニットの一つの特徴的事項である。As described above, the data of the fixed-cycle transmission is registered and held in the registration area 305 of the network unit 300 that controls the fixed-cycle transmission.
The transmission of the registration data of the fixed period transmission to the network unit 300 only needs to be performed once at the start of the fixed period transmission, and the registration data of the fixed period transmission is transmitted to the network unit 300 unless the contents of the fixed period transmission are changed. No need. This is one characteristic of the network unit according to the present invention.
【0029】図3は、ネットワークユニット300の一
定周期送信処理の手順を示すフローチャートである。汎
用機器200から図2に示されているようなフォーマッ
トによる登録伝文をネットワークユニット300が通信
インタフェース部304にて受信すると、そのデータを
MPU301で解析し、周期時間、読み出しデバイス情
報を登録エリア305に格納する(ステップS10、S
11)。タイマ306は時間のチェックを行い、登録さ
れた周期時間(指定された時間)が経過すれば(ステッ
プS12肯定)、MPU301へ動作要求を行う。FIG. 3 is a flowchart showing the procedure of the transmission processing of the network unit 300 at a fixed period. When the network unit 300 receives a registration message in a format as shown in FIG. 2 from the general-purpose device 200 at the communication interface unit 304, the data is analyzed by the MPU 301, and the cycle time and the read device information are registered in the registration area 305. (Steps S10 and S10)
11). The timer 306 checks the time, and when the registered cycle time (specified time) has elapsed (Yes at Step S12), the timer 306 issues an operation request to the MPU 301.
【0030】MPU301は、登録エリア305に登録
されたデバイス名jがPC100内のデータならば(ス
テップS13肯定)、2ポートRAM303を通ってP
C100内のデータの読み出しを行い(ステップS1
4)、読み出したデータをMPU301にて伝文フレー
ムの形式に加工し、通信インタフェース部304より汎
用機器200へ送信する(ステップS15)。送信が完
了すると、ステップS12に戻り、タイマ306による
時間チェックを行い、以降、同様に、登録エリア305
の登録内容を参照して一定周期送信を繰り返す。If the device name j registered in the registration area 305 is data in the PC 100 (Yes at step S13), the MPU 301
The data in C100 is read (step S1).
4) The read data is processed by the MPU 301 into a message frame format, and transmitted from the communication interface unit 304 to the general-purpose device 200 (step S15). When the transmission is completed, the process returns to step S12 to check the time by the timer 306.
The transmission is repeated for a fixed period with reference to the registered contents of.
【0031】なお、登録エリア305に登録されたデバ
イス名jがネットワークユニット300の2ポートRA
M303のデータである場合には(ステップS13否
定)、同様に伝文作成処理により2ポートRAM303
からデータの読み出しを行い(ステップS16)、読み
出したデータをMPU301にて伝文フレームの形式に
加工し、通信インタフェース部304より汎用機器20
0へ送信する(ステップS15)。The device name j registered in the registration area 305 is the two-port RA of the network unit 300.
If the data is M303 data (No at step S13), the two-port RAM 303 is similarly processed by the message creation process.
(Step S16), the read data is processed into a message frame format by the MPU 301, and the general-purpose device 20 is transmitted from the communication interface unit 304.
0 (step S15).
【0032】この場合も、送信が完了すると、ステップ
S12に戻り、タイマ306による時間チェックを行
い、以降、同様に、登録エリア305の登録内容を参照
して一定周期送信を繰り返す。In this case as well, when the transmission is completed, the process returns to step S12, where the time is checked by the timer 306, and thereafter, the transmission is repeated for a fixed period with reference to the registration contents of the registration area 305.
【0033】図4は、上述のネットワークユニット30
0を使用して一定周期送信を行う場合のデータの流れを
示している。図4は図16と同様にPC100とネット
ワークユニット300との間、ネットワークユニット3
00と汎用機器200との間のデータの流れを示した図
であり、Dsrは汎用機器200からネットワークユニ
ット300へ送信される一定周期送信の登録データ(登
録伝文)、Cは汎用機器200からの登録データDsr
に基づくネットワークユニット300内の登録エリア3
05に対する一定周期送信情報の登録、DはPC100
とネットワークユニット300の間でやりとりされるデ
ータ、Dsはネットワークユニット300から汎用機器
200へ送信されるデータを示している。FIG. 4 shows the network unit 30 described above.
9 shows a data flow when transmission is performed at a fixed period using 0. FIG. 4 shows the network unit 3 between the PC 100 and the network unit 300 as in FIG.
FIG. 5 is a diagram showing a flow of data between the general-purpose device 200 and the general-purpose device 200, where Dsr is registration data (registration message) transmitted at a fixed period transmitted from the general-purpose device 200 to the network unit 300; Registration data Dsr
Area 3 in network unit 300 based on
Registration of fixed period transmission information with respect to PC05, PC 100
And Ds indicates data transmitted from the network unit 300 to the general-purpose device 200.
【0034】上述のように、一定周期送信のデータは一
定周期送信制御を司るネットワークユニット300の登
録エリア305に登録保持されるから、汎用機器200
からネットワークユニット300に対する一定周期送信
の登録データの送信は、一定周期送信開始時に一度だけ
行われればよく、一定周期送信の内容が変更されない限
り、一定周期送信の登録データをネットワークユニット
300に送信する必要はない。このことは、この発明に
よるネットワークユニットの一つの特徴的事項である。As described above, the data of the fixed-cycle transmission is registered and held in the registration area 305 of the network unit 300 that controls the fixed-cycle transmission.
The transmission of the registration data of the fixed period transmission to the network unit 300 only needs to be performed once at the start of the fixed period transmission, and the registration data of the fixed period transmission is transmitted to the network unit 300 unless the contents of the fixed period transmission are changed. No need. This is one characteristic of the network unit according to the present invention.
【0035】実施の形態2.図5〜図9はこの発明によ
るプログラマブルコントローラ用のネットワークユニッ
トの実施の形態2を示している。なお、図5〜9におい
て、図1〜4に対応する部分は、図1に付した符号と同
一の符号を付けて、その説明を省略することがある。Embodiment 2 5 to 9 show a second embodiment of a network unit for a programmable controller according to the present invention. In FIGS. 5 to 9, parts corresponding to FIGS. 1 to 4 are denoted by the same reference numerals as those in FIG. 1, and the description thereof may be omitted.
【0036】この実施の形態でも、図5に示されている
ように、ネットワークユニット300は、従前のMPU
301とワークRAM302と2ポートRAM303、
通信インタフェース部304に加えて、デバイス監視自
動送信の条件を登録するRAMによる登録エリア307
と、送信周期(一定周期送)をカウントするタイマ30
6とを有している。ネットワークユニット300は、汎
用機器200で作成された登録伝文を受信し、その登録
伝文の内容に従って登録エリア307にデバイス監視自
動送信の条件を登録する。Also in this embodiment, as shown in FIG. 5, the network unit 300
301, a work RAM 302, a two-port RAM 303,
In addition to the communication interface unit 304, a registration area 307 by a RAM for registering conditions for device monitoring automatic transmission.
And a timer 30 for counting the transmission period (constant period transmission)
6. The network unit 300 receives the registration message created by the general-purpose device 200, and registers conditions for automatic device monitoring transmission in the registration area 307 according to the content of the registration message.
【0037】図6は、デバイス監視自動送信のための登
録伝文のフォーマットの一例を示している。登録伝文
は、ヘッダn、デバイス監視自動送信登録を示すコマン
ドoと、データ読み出しの周期時間pと、PC100よ
り読み出すデバイス名qと、そのデバイスの先頭番号
(アドレス)rと、データ送信のトリガとなるデバイス
値(データ読み出し条件値)sと、送信先を指定する送
信先情報tと、フッタuとにより構成されており、o〜
tが登録エリア306に対する登録情報であり、j〜l
が読み出しデバイス情報である。なお、コマンドoはデ
バイス監視自動送信を示す番号のもので、デバイス監視
自動送信の登録手段に基づき、新たに作成された番号で
ある。送信先情報tは、図13で示したように、一つの
システムにおいて汎用機器が複数個存在する場合に、送
信先の汎用機器を指定するものである。FIG. 6 shows an example of the format of a registration message for automatic device monitoring transmission. The registration message includes a header n, a command o indicating device monitoring automatic transmission registration, a data read cycle time p, a device name q read from the PC 100, a head number (address) r of the device, and a data transmission trigger. It is composed of a device value (data read condition value) s, destination information t specifying a destination, and a footer u.
t is registration information for the registration area 306, and j to l
Is read device information. The command o is a number indicating the device monitoring automatic transmission, and is a newly created number based on the device monitoring automatic transmission registration unit. As shown in FIG. 13, when there are a plurality of general-purpose devices in one system, the transmission destination information t specifies the general-purpose device of the transmission destination.
【0038】登録エリア307は、デバイス監視自動送
信を示すコマンドoの登録エリア307aと、データ読
み出し周期時間(タイマ306のセット時間)pの登録
エリア307bと、デバイス名qの登録エリア307c
と、そのデバイスの先頭番号(アドレス)rの登録エリ
ア307dと、データ読み出しの条件値sの登録エリア
307eと、送信先情報tの登録エリア307fを画定
されている。The registration area 307 includes a registration area 307a for a command o indicating device monitoring automatic transmission, a registration area 307b for a data read cycle time (set time of the timer 306) p, and a registration area 307c for a device name q.
A registration area 307d for the head number (address) r of the device, a registration area 307e for the condition value s for data reading, and a registration area 307f for the destination information t are defined.
【0039】図7は、ネットワークユニット300のデ
バイス監視自動送信を処理の手順を示すフローチャート
である。汎用機器200から図6に示されているような
フォーマットによる登録伝文をネットワークユニット3
00が通信インタフェース部304にて受信すると、そ
のデータをMPU301で解析し、周期時間、読み出し
条件値を含む読み出しデバイス情報を登録エリア307
に格納する(ステップS20、S21)。FIG. 7 is a flowchart showing a procedure of processing for automatic transmission of device monitoring by the network unit 300. A registration message in a format as shown in FIG.
When 00 is received by the communication interface unit 304, the data is analyzed by the MPU 301, and read device information including a period time and a read condition value is registered in the registration area 307.
(Steps S20 and S21).
【0040】タイマ306は時間のチェックを行い、登
録された周期時間(指定された時間)が経過すれば(ス
テップS22肯定)、MPU301へ動作要求を行う。
MPU301は、登録エリア307に登録されたデバイ
ス名qがPC100内のデータならば(ステップS23
肯定)、2ポートRAM303を通ってPC100内の
データの読み出しを行う(ステップS24)。The timer 306 checks the time, and when the registered cycle time (specified time) has elapsed (Yes at step S22), the timer 306 issues an operation request to the MPU 301.
The MPU 301 determines that the device name q registered in the registration area 307 is data in the PC 100 (step S23).
(Affirmative) Data is read from the PC 100 through the two-port RAM 303 (step S24).
【0041】つぎに、そのデータのデバイス値と登録エ
リア307の条件値登録エリア307eに登録された条
件値sとを比較する(ステップS25)。条件一致であ
れば(ステップS25b肯定)、読み出したデータをM
PU301にて伝文フレームの形式に加工し、通信イン
タフェース部304より汎用機器200へ送信する(ス
テップS26)。送信が完了すると、ステップS22に
戻り、タイマ306による時間チェックを行い、以降、
同様に、登録エリア307の登録内容を参照してデバイ
ス監視自動送信を繰り返す。Next, the device value of the data is compared with the condition value s registered in the condition value registration area 307e of the registration area 307 (step S25). If the condition matches (Yes at step S25b), the read data is stored in M
The message is processed into a message frame format by the PU 301 and is transmitted from the communication interface unit 304 to the general-purpose device 200 (step S26). When the transmission is completed, the process returns to step S22, and the time is checked by the timer 306.
Similarly, the device monitoring automatic transmission is repeated with reference to the registration contents of the registration area 307.
【0042】なお、登録エリア307に登録されたデバ
イス名qがネットワークユニット300の2ポートRA
M303のデータである場合には(ステップS23否
定)、同様に伝文作成処理により2ポートRAM303
からデータの読み出しを行い(ステップS27)、その
データのデバイス値と登録エリア307の条件値登録エ
リア307eに登録された条件値sとを比較し(ステッ
プS25)、条件一致であれば(ステップS25b肯
定)、読み出したデータをMPU301にて伝文フレー
ムの形式に加工し、通信インタフェース部304より汎
用機器200へ送信する(ステップS26)。この場合
も、送信が完了すると、ステップS22に戻り、タイマ
306による時間チェックを行い、以降、同様に、登録
エリア307の登録内容を参照してデバイス監視自動送
信を繰り返す。The device name q registered in the registration area 307 is the two-port RA of the network unit 300.
If the data is M303 data (No at step S23), the two-port RAM 303 is similarly processed by the message creation process.
Is read (step S27), the device value of the data is compared with the condition value s registered in the condition value registration area 307e of the registration area 307 (step S25), and if the conditions match (step S25b) (Affirmative), the read data is processed by the MPU 301 into a message frame format, and transmitted from the communication interface unit 304 to the general-purpose device 200 (step S26). Also in this case, when the transmission is completed, the process returns to step S22 to check the time by the timer 306, and thereafter, the device monitoring automatic transmission is repeated with reference to the registered contents of the registration area 307.
【0043】この実施の形態の使用例として、デバイス
名q、アドレスrに、エラーを格納するデバイスを指定
すれば、該当するエリアにエラーコードをセットするユ
ニットのエラー発生時に汎用機器200へデータを送信
することが可能であり、また、デバイス名q、アドレス
rに現在時刻を格納するデバイスを指定すれば、定時に
なった時に汎用機器200へデータを送信することが可
能である。As an example of use of this embodiment, if a device for storing an error is specified in the device name q and the address r, data is sent to the general-purpose device 200 when an error occurs in a unit that sets an error code in a corresponding area. If the device that stores the current time is specified in the device name q and the address r, the data can be transmitted to the general-purpose device 200 at the scheduled time.
【0044】図8は、上述のネットワークユニット30
0を使用してデバイス監視自動送信を行う場合のデータ
の流れを示している。図8は図16と同様にPC100
とネットワークユニット300との間、ネットワークユ
ニット300と汎用機器200との間のデータの流れを
示した図であり、Dsrは汎用機器200からネットワ
ークユニット300へ送信されるデバイス監視自動送信
の登録データ(登録伝文)、Cは汎用機器200からの
登録データDsrに基づくネットワークユニット300
内の登録エリア307に対するデバイス監視自動送信を
の登録、DはPC100とネットワークユニット300
の間でやりとりされるデータ、Dsはネットワークユニ
ット300から汎用機器200へ送信されるデータを示
している。FIG. 8 shows the network unit 30 described above.
0 shows the flow of data when device monitoring automatic transmission is performed using 0. FIG. 8 shows the PC 100 as in FIG.
FIG. 3 is a diagram showing a data flow between the network unit 300 and the network unit 300, and between the network unit 300 and the general-purpose device 200, where Dsr is registration data (for device monitoring automatic transmission) transmitted from the general-purpose device 200 to the network unit 300; Registration message), C is a network unit 300 based on registration data Dsr from the general-purpose device 200.
Registration of device monitoring automatic transmission to the registration area 307 in the PC, D is the PC 100 and the network unit 300
Ds indicates data transmitted from the network unit 300 to the general-purpose device 200.
【0045】上述のように、デバイス監視自動送信をの
データはデバイス監視自動送信を制御を司るネットワー
クユニット300の登録エリア307に登録保持される
から、汎用機器200からネットワークユニット300
に対するデバイス監視自動送信の登録データの送信は、
デバイス監視自動送信開始時に一度だけ行われればよ
く、デバイス監視自動送信の内容が変更されない限り、
デバイス監視自動送信の登録データをネットワークユニ
ット300に送信する必要はない。このことは、この発
明によるネットワークユニットの一つの特徴的事項であ
る。As described above, the data for the device monitoring automatic transmission is registered and held in the registration area 307 of the network unit 300 that controls the device monitoring automatic transmission.
The transmission of registration data for device monitoring automatic transmission to
It only needs to be performed once at the start of device monitoring automatic transmission, and unless the content of device monitoring automatic transmission is changed,
It is not necessary to transmit registration data for device monitoring automatic transmission to the network unit 300. This is one characteristic of the network unit according to the present invention.
【0046】また、デバイス監視自動送信登録において
送信先情報tを設定することにより、データの送信相手
先を任意に指定できる。この場合には、図7のステップ
S26におけるデータ送信処理は、図9に示されている
送信相手機器指定処理に従って行われる。この送信相手
機器指定処理では、どの条件が一致したかの判別を行う
(ステップS30)。これによりネットワークユニット
300が、一致した条件によって送信相手機器を判断
し、MPU301で作成する伝文フレーム内のヘッダに
それぞれの送信相手機器情報をつけて送信する(ステッ
プS31〜S33)。Further, by setting the destination information t in the device monitoring automatic transmission registration, the destination of data transmission can be arbitrarily specified. In this case, the data transmission process in step S26 in FIG. 7 is performed according to the transmission destination device designation process shown in FIG. In this transmission destination device designation process, it is determined which condition is matched (step S30). Accordingly, the network unit 300 determines the transmission destination device based on the matched condition, and attaches the transmission destination device information to the header in the message frame created by the MPU 301 and transmits the message (steps S31 to S33).
【0047】図13で示したような例では、条件2が成
立すれば、たとえばネットワークユニット300にエラ
ーが発生したとすれば、そのことを汎用機器Bへ通知
し、条件3が成立すれば、たとえば毎日8時には、汎用
機器Cへデータを送信する。In the example as shown in FIG. 13, if the condition 2 is satisfied, for example, if an error occurs in the network unit 300, the fact is notified to the general-purpose device B, and if the condition 3 is satisfied, For example, at 8:00 every day, data is transmitted to the general-purpose device C.
【0048】このように、条件に応じた機器へのデータ
送信をすれば、必要な汎用機器だけに通知することがで
き、システム全体としての効率が上がる。As described above, if data is transmitted to the device according to the condition, only the necessary general-purpose device can be notified, and the efficiency of the entire system increases.
【0049】[0049]
【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラ用のネットワーク
ユニットによれば、読み出し対象のデバイス名を含むデ
バイス情報とデータ読み出しの周期時間がネットワーク
ユニットに内蔵されている記憶手段の登録エリアに登録
され、その登録エリアの登録内容に基づいてデータ送信
制御、すなわち登録エリアに登録される周期時間毎に、
登録エリアに登録される読み出し対象のデバイス名のデ
ータを読み出して汎用機器へデータを周期的に自動送信
するから、シーケンスプログラムを作成する必要がなく
一定周期送信を行うことができ、シーケンスプログラム
を格納するPCメモリエリアの使用量が低減し、シーケ
ンススキャンタイムが短くなると云う効果が得られる。
データ送信をネットワークユニットが制御するから、P
Cの負荷が減り、本来、シーケンスプログラムの実行に
使用されるべきPCの能力を十分に活用できるようにな
る。また、汎用機器側でのプログラムや、汎用機器より
の要求伝文の繰り返しの受信処理を必要としないから、
システムに対する負荷が軽減され、レスポンスの送信が
迅速に行われるようになる。As can be understood from the above description, according to the network unit for a programmable controller according to the present invention, the device information including the device name to be read and the data read cycle time are built in the network unit. Registered in the registration area of the storage means, based on the registered content of the registration area data transmission control, that is, for each periodic time registered in the registration area,
Since the data of the device name to be read registered in the registration area is read and the data is automatically transmitted periodically to the general-purpose device, it is possible to perform the transmission at regular intervals without creating a sequence program and store the sequence program. This reduces the amount of PC memory area used and reduces the sequence scan time.
Since data transmission is controlled by the network unit, P
The load on C is reduced, and the ability of the PC that should be used to execute the sequence program can be fully utilized. In addition, since there is no need for the program on the general-purpose device or the repetitive reception processing of the request message from the general-purpose device,
The load on the system is reduced, and the response can be transmitted quickly.
【0050】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットによれば、読み出し対象
のデバイス名を含むデバイス情報とデータ読み出し条件
値データ読み出しの周期時間とがネットワークユニット
に内蔵されている記憶手段の登録エリアに登録され、そ
の登録エリアの登録内容に基づいてデータ送信制御、す
なわち登録エリアに登録される周期時間毎に、登録エリ
アに登録される読み出し対象のデバイス名のデータを読
み出し、登録エリアに登録されるデータ読み出し条件値
と一致すれば、汎用機器へデータを周期的に自動送信す
るから、シーケンスプログラムを作成する必要がなくデ
バイス監視自動送信を行うことができ、シーケンスプロ
グラムを格納するPCメモリエリアの使用量が低減し、
シーケンススキャンタイムが短くなると云う効果が得ら
れる。データ送信をネットワークユニットが制御するか
ら、PCの負荷が減り、本来、シーケンスプログラムの
実行に使用されるべきPCの能力を十分に活用できるよ
うになる。また、汎用機器側でのプログラムや、汎用機
器よりの要求伝文の繰り返しの受信処理を必要としない
から、システムに対する負荷が軽減され、レスポンスの
送信が迅速に行われるようになる。According to the network unit for the programmable controller according to the next invention, the device information including the device name to be read and the cycle time for reading the data read condition value data are stored in the registration area of the storage means built in the network unit. Data transmission control based on the registered contents of the registration area, that is, for each cycle time registered in the registration area, reads out the data of the device name to be read registered in the registration area, and registers in the registration area If the data read condition value matches the data, the data is automatically transmitted periodically to the general-purpose device. Therefore, it is possible to perform the device monitor automatic transmission without creating a sequence program, and the PC memory area for storing the sequence program is stored. Usage is reduced,
The effect of shortening the sequence scan time is obtained. Since the data transmission is controlled by the network unit, the load on the PC is reduced, and the ability of the PC that should be used for executing the sequence program can be fully utilized. Further, since there is no need for a program on the general-purpose device or a process of repeatedly receiving a request message from the general-purpose device, the load on the system is reduced, and the response can be transmitted quickly.
【0051】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットによれば、送信先情報も
ネットワークユニットに内蔵されている記憶手段の登録
エリアに登録され、登録エリアに登録されるデータ読み
出し条件値と一致すれば、登録エリアに登録されている
送信先情報により指定された汎用機器へデータを自動送
信するから、システムの変更などにより送信相手先機器
が変わった場合、シーケンスプログラムを修正する必要
がなく、送信先情報の登録内容を変更するだけで済むよ
うになる。According to the network unit for the programmable controller according to the next invention, the destination information is also registered in the registration area of the storage means built in the network unit, and coincides with the data read condition value registered in the registration area. For example, data is automatically transmitted to the general-purpose device specified by the destination information registered in the registration area, so if the destination device changes due to a system change, etc., there is no need to modify the sequence program, and Only the registered contents of the destination information need be changed.
【0052】つぎの発明によるプログラマブルコントロ
ーラ用のネットワークユニットによれば、登録エリアに
対する情報登録はネットワーク接続されている汎用機器
よりの登録伝文を受信することにより行われるから、汎
用機器における登録伝文の作成により、ネットワークユ
ニットを複雑なものにすることなく登録エリアに対する
情報登録が変更可能に行われるようになる。According to the network unit for a programmable controller according to the next invention, information registration in the registration area is performed by receiving a registration message from a general-purpose device connected to the network. The information registration in the registration area can be changed without making the network unit complicated.
【図1】 この発明よるプログラマブルコントローラ用
のネットワークユニットの実施の形態1のハードウェア
構成を示すブロック線図である。FIG. 1 is a block diagram showing a hardware configuration of a network unit for a programmable controller according to a first embodiment of the present invention;
【図2】 一定周期送信を行う場合の汎用機器からの登
録伝文のフォーマットを示す説明図である。FIG. 2 is an explanatory diagram showing a format of a registration message from a general-purpose device when a fixed period transmission is performed.
【図3】 この発明によるネットワークユニットが行う
一定周期送信処理の手順を示すフローチャートである。FIG. 3 is a flowchart showing a procedure of a fixed-cycle transmission process performed by the network unit according to the present invention.
【図4】 この発明によるネットワークユニットによっ
てPC側から汎用機器へ一定周期でデータを送信する場
合のデータ流れのタイムチャートである。FIG. 4 is a time chart of a data flow when data is transmitted from a PC to a general-purpose device at a constant period by a network unit according to the present invention.
【図5】 この発明よるプログラマブルコントローラ用
のネットワークユニットの実施の形態2のハードウェア
構成を示すブロック線図である。FIG. 5 is a block diagram showing a hardware configuration of a network unit for a programmable controller according to a second embodiment of the present invention;
【図6】 デバイス監視自動送信を行う場合の汎用機器
からの登録伝文のフォーマットを示す説明図である。FIG. 6 is an explanatory diagram showing a format of a registration message from a general-purpose device when performing device monitoring automatic transmission.
【図7】 この発明によるネットワークユニットが行う
デバイス監視自動送信処理の手順を示すフローチャート
である。FIG. 7 is a flowchart showing a procedure of a device monitoring automatic transmission process performed by the network unit according to the present invention.
【図8】 この発明によるネットワークユニットによっ
てPC側から汎用機器へデバイス監視状態でデータを送
信する場合のデータ流れのタイムチャートである。FIG. 8 is a time chart of a data flow when data is transmitted from the PC to the general-purpose device in the device monitoring state by the network unit according to the present invention.
【図9】 この発明によるネットワークユニットが行う
データ送信先指定処理の手順を示すフローチャートであ
る。FIG. 9 is a flowchart illustrating a procedure of a data transmission destination specification process performed by the network unit according to the present invention.
【図10】 PCと汎用機器をネットワークユニットを
介してデータ通信を行う場合の一般的なシステム構成を
示す図である。FIG. 10 is a diagram illustrating a general system configuration when performing data communication between a PC and a general-purpose device via a network unit.
【図11】 従来におけるネットワークユニットのハー
ドウェア構成を示すブロック線図である。FIG. 11 is a block diagram showing a hardware configuration of a conventional network unit.
【図12】 PCから一定周期で汎用機器へデータを送
信するためのシーケンスプログラム例を示すラダー図で
ある。FIG. 12 is a ladder diagram illustrating an example of a sequence program for transmitting data from a PC to a general-purpose device at a constant cycle.
【図13】 PCと複数個の汎用機器をネットワークユ
ニットを介してデータ通信を行う場合の一般的なシステ
ム構成を示す図である。FIG. 13 is a diagram showing a general system configuration when data communication is performed between a PC and a plurality of general-purpose devices via a network unit.
【図14】 汎用機器から一定周期でPCのデータを読
み出すための汎用機器側のプログラム例を示すプログラ
ムリスト図である。FIG. 14 is a program list diagram showing a program example of a general-purpose device for reading data of a PC from a general-purpose device at a constant cycle.
【図15】 汎用機器から従来のネットワークユニット
を介してPCとデータ通信を行う際の伝文フォーマット
の一例を示す説明図である。FIG. 15 is an explanatory diagram showing an example of a message format when performing data communication from a general-purpose device to a PC via a conventional network unit.
【図16】 汎用機器側から一定周期でPCのデータを
読み出す場合のデータ流れのタイムチャートである。FIG. 16 is a time chart of a data flow when data of a PC is read from the general-purpose device at a constant cycle.
【図17】 PC側から汎用機器へ一定周期でデータを
送信する場合のデータ流れのタイムチャートである。回
線上に流れるデータ図である。FIG. 17 is a time chart of a data flow when data is transmitted from a PC to a general-purpose device at a constant cycle. FIG. 6 is a diagram of data flowing on a line.
100 PC、200 汎用機器、300 ネットワー
クユニット、301MPU、302 ワーク、303
2ポートRAM、304 通信インタフェース部、30
5 登録エリア、306 タイマ、307 登録エリ
ア、400 伝送媒体。100 PC, 200 general equipment, 300 network unit, 301 MPU, 302 work, 303
2 port RAM, 304 communication interface unit, 30
5 registration area, 306 timer, 307 registration area, 400 transmission medium.
Claims (4)
との間のデータ通信のためのプログラマブルコントロー
ラ用のネットワークユニットにおいて、 読み出し対象のデバイス名を含むデバイス情報とデータ
読み出しの周期時間を登録される登録エリアを含む記憶
手段と、タイマ手段とを有し、前記登録エリアに登録さ
れる周期時間毎に前記登録エリアに登録される読み出し
対象のデバイス名のデータを読み出し、ネットワーク接
続されている汎用機器へデータを周期的に自動送信する
ことを特徴とするプログラマブルコントローラ用のネッ
トワークユニット。1. A network unit for a programmable controller for data communication between a programmable controller and a general-purpose device, comprising a registration area for registering device information including a device name to be read and a cycle time of data reading. A storage unit, and a timer unit, which reads data of a device name to be read registered in the registration area for each cycle time registered in the registration area, and periodically transmits the data to a general-purpose device connected to a network. A network unit for a programmable controller characterized by automatic transmission.
との間のデータ通信のためのプログラマブルコントロー
ラ用のネットワークユニットにおいて、 読み出し対象のデバイス名を含むデバイス情報とデータ
読み出し条件値とデータ読み出しの周期時間を登録され
る登録エリアを含む記憶手段と、タイマ手段とを有し、
前記登録エリアに登録される周期時間毎に前記登録エリ
アに登録される読み出し対象のデバイス名のデータを読
み出し、前記登録エリアに登録されるデータ読み出し条
件値と一致すれば、ネットワーク接続されている汎用機
器へデータを自動送信することを特徴とするプログラマ
ブルコントローラ用のネットワークユニット。2. A network unit for a programmable controller for data communication between the programmable controller and a general-purpose device, wherein device information including a device name to be read, a data read condition value, and a data read cycle time are registered. Storage means including a registration area, and timer means,
The data of the device name to be read registered in the registration area is read out at each cycle time registered in the registration area. If the data matches the data reading condition value registered in the registration area, the general-purpose network-connected A network unit for a programmable controller, which automatically transmits data to a device.
アを含み、前記登録エリアに登録されるデータ読み出し
条件値と一致すれば、ネットワーク接続されている複数
個の汎用機器のうち前記登録エリアに登録されている送
信先情報により指定された汎用機器へデータを自動送信
することを特徴とする請求項2に記載のプログラマブル
コントローラ用のネットワークユニット。3. The registration area includes a registration area of transmission destination information, and, if a data reading condition value registered in the registration area matches, the registration area of a plurality of general-purpose devices connected to a network. The network unit for a programmable controller according to claim 2, wherein data is automatically transmitted to a general-purpose device specified by registered destination information.
トワーク接続されている汎用機器よりの登録伝文を受信
することにより行われることを特徴とする請求項1〜3
のいずれか一つに記載のプログラマブルコントローラ用
のネットワークユニット。4. The information registration in the registration area is performed by receiving a registration message from a general-purpose device connected to a network.
A network unit for a programmable controller according to any one of the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10673398A JP3373150B2 (en) | 1998-04-16 | 1998-04-16 | Network unit for programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10673398A JP3373150B2 (en) | 1998-04-16 | 1998-04-16 | Network unit for programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11305810A true JPH11305810A (en) | 1999-11-05 |
| JP3373150B2 JP3373150B2 (en) | 2003-02-04 |
Family
ID=14441144
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10673398A Expired - Lifetime JP3373150B2 (en) | 1998-04-16 | 1998-04-16 | Network unit for programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3373150B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006301886A (en) * | 2005-04-19 | 2006-11-02 | Omron Corp | Programmable controller |
| JP2010109832A (en) * | 2008-10-31 | 2010-05-13 | Mitsubishi Electric Corp | Log communication system |
| WO2012117500A1 (en) * | 2011-02-28 | 2012-09-07 | 三菱電機株式会社 | Communication device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62117006A (en) * | 1985-11-18 | 1987-05-28 | Omron Tateisi Electronics Co | Programmable controller |
| JPH086614A (en) * | 1994-06-22 | 1996-01-12 | Omron Corp | Programmable controller |
| JPH09108998A (en) * | 1995-10-18 | 1997-04-28 | Kubota Corp | Equipment history management method in production system |
-
1998
- 1998-04-16 JP JP10673398A patent/JP3373150B2/en not_active Expired - Lifetime
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62117006A (en) * | 1985-11-18 | 1987-05-28 | Omron Tateisi Electronics Co | Programmable controller |
| JPH086614A (en) * | 1994-06-22 | 1996-01-12 | Omron Corp | Programmable controller |
| JPH09108998A (en) * | 1995-10-18 | 1997-04-28 | Kubota Corp | Equipment history management method in production system |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006301886A (en) * | 2005-04-19 | 2006-11-02 | Omron Corp | Programmable controller |
| JP2010109832A (en) * | 2008-10-31 | 2010-05-13 | Mitsubishi Electric Corp | Log communication system |
| WO2012117500A1 (en) * | 2011-02-28 | 2012-09-07 | 三菱電機株式会社 | Communication device |
| DE112011104975T5 (en) | 2011-02-28 | 2013-12-12 | Mitsubishi Electric Corporation | communication device |
| JP5490307B2 (en) * | 2011-02-28 | 2014-05-14 | 三菱電機株式会社 | Communication device |
| KR101447845B1 (en) * | 2011-02-28 | 2014-10-13 | 미쓰비시덴키 가부시키가이샤 | Communication device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3373150B2 (en) | 2003-02-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20090083589A1 (en) | Systems, devices, and/or methods for managing communications | |
| JP2004511845A (en) | PLC executed by an integrated web server | |
| JP2001100809A (en) | controller | |
| JP6502908B2 (en) | Slave device | |
| CN107819657A (en) | A kind of method based on central controlled dynamic analysis Modbus agreements, things-internet gateway equipment and system | |
| CN104615067B (en) | control device and control method | |
| CN118784474A (en) | Baud rate adjustment method, device, equipment and storage medium | |
| CA2356056C (en) | Control station, apparatus and network system | |
| WO2012056537A1 (en) | Programmable controller | |
| JPH11305810A (en) | Network unit for programmable controller | |
| JP4297768B2 (en) | Monitoring data collection device and monitoring data collection method for multiple programmable controllers | |
| CN110750478A (en) | Multi-serial port communication method and system | |
| JP2005202518A (en) | adapter | |
| US12085904B2 (en) | Engineering device, engineering method, and information storage medium | |
| CN117201635A (en) | Data processing system and method | |
| JPWO2000072099A1 (en) | Programmable controller peripherals | |
| KR101810196B1 (en) | Communication module in inverter | |
| KR100917542B1 (en) | How to set communication protocol of slave device | |
| CN114326928B (en) | Time synchronization method, device, control device and computer readable storage medium | |
| JP4032198B2 (en) | PLC system and remote terminal | |
| JP2022011697A (en) | Production system, master control device, control device, communication method and program | |
| CN106105095B (en) | Apparatus and method capable of reducing energy consumption of interconnected devices | |
| CN114328002B (en) | Data sampling method in encoder, single chip microcomputer and storage medium | |
| CN213342280U (en) | Communication system | |
| JP2003006394A (en) | Computers and computer systems that link workflows |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071122 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081122 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081122 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091122 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091122 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101122 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111122 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121122 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121122 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131122 Year of fee payment: 11 |
|
| 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 |
|
| EXPY | Cancellation because of completion of term |