JPH11220509A - Communication equipment - Google Patents

Communication equipment

Info

Publication number
JPH11220509A
JPH11220509A JP10019889A JP1988998A JPH11220509A JP H11220509 A JPH11220509 A JP H11220509A JP 10019889 A JP10019889 A JP 10019889A JP 1988998 A JP1988998 A JP 1988998A JP H11220509 A JPH11220509 A JP H11220509A
Authority
JP
Japan
Prior art keywords
control device
processing
output
node
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10019889A
Other languages
Japanese (ja)
Inventor
Toshiya Morita
敏哉 森田
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.)
Azbil Corp
Original Assignee
Azbil Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Azbil Corp filed Critical Azbil Corp
Priority to JP10019889A priority Critical patent/JPH11220509A/en
Publication of JPH11220509A publication Critical patent/JPH11220509A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute quickly and surely update of an output, when the update of an output of a specific control device is required in a communication system in which a signal is communicated between a host controller and plural control devices, to which an address is given respectively via a communication channel. SOLUTION: This communication equipment 1 used between a host controller 2 and plural control devices 4 is provided with a storage means 1a that stores a numeral denoting an address received from the host controller 2 and other information and with a processing means 1b that conducts write/read of a numeral to/from the storage means and update processing of output from the control devices 4. When the host controller 1 designates the address of a specific control device 4, the processing means 1b interrupts the normal output update processing to execute the output update processing of the specific control device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、上位の制御装置
(コントローラ)と各々アドレスを付与された複数の制
御機器との間で通信路を介して信号の送受を行う通信シ
ステムにおいて上位の制御装置と複数の制御機器との間
に用いられる通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a higher-level control device in a communication system for transmitting and receiving signals via a communication path between a higher-level control device (controller) and a plurality of control devices each assigned an address. The present invention relates to a communication device used between the control device and a plurality of control devices.

【0002】[0002]

【従来の技術】上記通信システムの例として、“CAN
(Controller Area Network) プロトコル”と称する特定
のプロトコル(通信規約)を使用した“SDS(Smart
Distributed System)”と称する通信システムが知られ
ている。このシステム(SDS)は、CANプロトコル
に従って通信を行う。CANプロトコルは、以下のよう
な特性を有し、伝送速度が速く、ノイズにも強く、耐環
境性も高い。
2. Description of the Related Art As an example of the above communication system, "CAN"
(Controller Area Network) protocol using a specific protocol (communication protocol) called "SDS (Smart
A communication system called "Distributed System)" is known. This system (SDS) performs communication according to a CAN protocol. The CAN protocol has the following characteristics, a high transmission speed, and a high resistance to noise. High environmental resistance.

【0003】CANプロトコルによる回線形態は、2線
式のバス型であり、2線をそれぞれCAN−H,CAN
−Lとしたとき、信号は、H−L間が2Vのとき論理レ
ベル0,H−L間が0Vのとき論理レベル1である。バ
ス上で論理レベル0と論理レベル1がかちあったとき
は、論理レベル0が優先される。バスの使用効率が高
く、数ミリ秒レベルの信号伝送が可能である。CANの
データフレームには、"Short Form"と"Long Form" が定
義され、"Long Form" で規定されているデータフレーム
におけるデータフィールドは、0〜8バイトのデータ長
を持っている。
[0003] The line form according to the CAN protocol is a two-wire bus type, and the two lines are respectively CAN-H and CAN.
When -L is set, the signal is at logic level 0 when the voltage between HL and 2V is 2V, and is at logic level 1 when the voltage between HL and 0L is 0V. When the logical level 0 and the logical level 1 are close on the bus, the logical level 0 has priority. The use efficiency of the bus is high, and signal transmission on the order of several milliseconds is possible. "Short Form" and "Long Form" are defined in the CAN data frame, and the data field in the data frame defined by "Long Form" has a data length of 0 to 8 bytes.

【0004】バス上の各ノード(接続機器)は、上記デ
ータフレームにおける "Arbitration Field"(バスの使
用権獲得のための優先順位の指定領域)で自分の送信デ
ータとバス上のデータとを比較し、両データが異なって
いると、自分より優先順位の高い他のノードが送信中で
あることを認識し、送信を停止する。そして、データフ
レームを監視し、“CRC(Cyclic Redundancy Chec
k)”と称するチェックビットにより正常と判定される
と、"ACK Field"(受信認識領域)の1ビット目を論理レ
ベル0にする。
Each node (connecting device) on the bus compares its own transmission data with the data on the bus in the "Arbitration Field" (designated area of priority for acquiring the right to use the bus) in the data frame. If the two data are different, it recognizes that another node having a higher priority than itself is transmitting, and stops transmitting. Then, the data frame is monitored and “CRC (Cyclic Redundancy Checker)
k), if it is determined to be normal by the check bit, the first bit of the "ACK Field" (reception recognition area) is set to the logical level 0.

【0005】上記のCANプロトコルを利用したSDS
は、1本のバス上に、バスマスタや最大 126台のセン
サ、アクチュエータ等のノードを接続できる。そして、
センサやアクチュエータのレベルではデータフレームが
小さいので、SDSは、工業製品の生産設備においてマ
スフロー・コントローラ、真空ゲージ、センサ、或いは
バルブ等のアクチュエータのような各種スレーブ機器
を、複数のノードとしての制御機器に接続し、上位コン
トローラから通信インタフェースを介して、高速で各ノ
ードに指令を送ったり、各ノードから出力される各種情
報を取り込んだりする通信システムとして、好適であ
る。
[0005] SDS using the above CAN protocol
Can connect nodes such as a bus master and up to 126 sensors and actuators on a single bus. And
Since the data frame is small at the level of sensors and actuators, SDS is used to control various slave devices such as mass flow controllers, vacuum gauges, sensors, or actuators such as valves in industrial equipment, as control devices as multiple nodes. , And is suitable as a communication system for transmitting commands to each node at a high speed from a higher-level controller via a communication interface, and taking in various information output from each node.

【0006】上記SDSのような通信システムにおいて
は、各ノードにそれぞれ独自のアドレスが割り当てら
れ、それらのアドレスを指定することにより、各ノード
への制御指令の送信や各ノードからの情報収集などの作
業を行う。このような作業は本来、システムコントロー
ラの仕事であるが、生産設備の高度化・複雑化に伴い、
分散制御或いはコントローラの負担軽減の観点から、シ
ステムコントローラのような上位制御装置とノードとの
間にインタフェースモジュールと称する通信装置を設
け、これに上記作業を分担させることが知られている。
In a communication system such as the SDS described above, each node is assigned a unique address, and by specifying those addresses, transmission of control commands to each node and collection of information from each node are performed. Do the work. Such work is essentially the work of the system controller, but with the sophistication and complexity of production equipment,
From the viewpoint of decentralized control or reducing the load on the controller, it is known to provide a communication device called an interface module between a higher-level control device such as a system controller and a node, and to share the work with the communication device.

【0007】この場合、通信装置は、複数のノードに対
して入出力処理を行うため、各ノードのアドレスについ
て優先順位が設定されている。そして、各ノードに対し
て上記のような作業を行うときには、通信装置は、優先
順位の高いアドレスを有するノードから順番に、必要な
処理を行うようにしている。このため、例えばノードか
らの出力を更新する場合でも、各ノードのアドレスの優
先順位に従って出力更新が行われる。ここで、出力更新
とは、ノードから出力された既存の情報を新たな情報に
入れ替えることである。
In this case, the communication device performs input / output processing on a plurality of nodes, and therefore, priorities are set for the addresses of the respective nodes. Then, when performing the above-described operation for each node, the communication device performs necessary processing in order from the node having the address with the highest priority. Therefore, for example, even when updating the output from a node, the output is updated in accordance with the priority of the address of each node. Here, the output update is to replace existing information output from the node with new information.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記の
ような出力更新は、優先順位にかかわらず、特定のノー
ドに対して迅速に行いたい場合がある。例えば、センサ
による検出内容に応じてアクチュエータを作動させるシ
ステムの場合、センサを接続したノードから送られた検
出データ(既存の情報)を、新たな検出データが発生し
た時点で、その新たなデータに書き換える(データを更
新する)必要がある。このような場合、従来の技術によ
ると、先順位のアドレスを有するノードについて、出力
データに変化がなければ更新の必要がないにもかかわら
ず、そのノードの持つ情報について変化がないかどうか
をチェックする過程を経なければならない。
However, there is a case where it is desired to update the output as described above quickly for a specific node regardless of the priority. For example, in the case of a system that operates an actuator in accordance with the content detected by a sensor, detection data (existing information) sent from a node to which the sensor is connected is converted to new data when new detection data is generated. It needs to be rewritten (updated data). In such a case, according to the conventional technology, it is checked whether or not the information of the node having the first-order address has no change even if the output data does not need to be updated if there is no change. Must go through the process of doing.

【0009】実際、ノードからの出力を更新する場合に
は、更新すべき特定のノードからの出力データを既存の
データと比較しなければならず、上記のように優先順位
に従って高順位のノードから順に比較判断して特定のノ
ードを検出するため、時間がかかっていた。例えば、上
位ノードから下位ノードまでの出力更新時間が、長いも
ので数十秒から数分もかかる場合もある。
In fact, when updating the output from a node, the output data from the specific node to be updated must be compared with the existing data. It takes time to compare and judge in order to detect a specific node. For example, the output update time from the upper node to the lower node may be as long as tens of seconds to several minutes.

【0010】特に、半導体製造装置や電子部品組立装置
などの製造設備における通信システムでは、一連の処理
動作において同時に多くのノードの出力情報を更新する
ことは殆どなく、特定のノードに対して優先的に更新処
理を行いたい場合が多い。
In particular, in a communication system in a manufacturing facility such as a semiconductor manufacturing apparatus or an electronic component assembling apparatus, output information of many nodes is hardly updated simultaneously in a series of processing operations, and priority is given to a specific node. In many cases, you want to perform an update process.

【0011】そこで、上記SDSでは、割り込みにより
更新処理を行うようにしている。しかし、ノードからの
受信要求(メッセージ)に対応する割り込み処理は、頻
度が高い(例えば、最速60マイクロ秒間隔で行われ
る)ので、従来の更新処理では下位のノードに対する出
力更新を達成するのが困難であった。
Therefore, in the SDS, the updating process is performed by interruption. However, interrupt processing corresponding to a reception request (message) from a node is frequent (for example, is performed at the fastest interval of 60 microseconds). Therefore, in the conventional update processing, output update for a lower node is achieved. It was difficult.

【0012】本発明の目的は、上記のような通信システ
ムにおいて特定のノードについて出力更新の必要が生じ
たとき、それを迅速かつ的確に実行可能とする通信装置
を提供することである。
It is an object of the present invention to provide a communication apparatus capable of promptly and accurately executing an output update for a specific node in a communication system as described above when the output needs to be updated.

【0013】[0013]

【課題を解決するための手段】本発明の第1の態様は、
上位の制御装置と各々アドレスを付与された複数の制御
機器との間で通信路を介して信号の送受を行う通信シス
テムにおいて上位の制御装置と複数の制御機器との間に
用いられる通信装置であって、上位制御装置から入力さ
れたアドレスを示す数値その他の情報を記憶する記憶手
段と、該記憶手段への数値の書き込みや記憶手段からの
読み出し、及び制御機器からの出力更新処理を行う処理
手段とを備え、上位の制御装置から特定の制御機器のア
ドレスを指定されたとき、上記処理手段により、通常の
出力更新処理に割り込んで該特定の制御機器の出力更新
処理を行うように構成したことを特徴とする。
According to a first aspect of the present invention, there is provided:
A communication device used between a higher-level control device and a plurality of control devices in a communication system for transmitting and receiving signals via a communication path between a higher-level control device and a plurality of control devices each having an address. Storage means for storing a numerical value or other information indicating an address input from a higher-level control device, and processing for writing a numerical value to the storage means, reading from the storage means, and updating output from a control device Means, when an address of a specific control device is designated by a higher-level control device, the processing unit interrupts a normal output update process and performs an output update process of the specific control device. It is characterized by the following.

【0014】第2の態様は、上記記憶手段に格納される
情報として、優先的に出力更新処理を行う制御機器を特
定する情報、及び割り込み処理の実行を要求する情報を
含んでいる。
According to a second aspect, the information stored in the storage means includes information for specifying a control device which performs output update processing with priority and information for requesting execution of interrupt processing.

【0015】第3の態様は、上記処理手段とは別に、通
常の出力更新処理に割り込んで特定の制御機器の出力更
新を行うように上位の制御装置から出された要求に対す
る処理を行う割込み発生/検出部を備えている。
In a third mode, an interrupt is generated, which is separate from the above processing means, and performs processing in response to a request issued from a higher-level control device so as to interrupt normal output update processing and update output of a specific control device. / Detection unit.

【0016】第4の態様は、上位の制御装置から特定の
制御機器のアドレス及びその加算値Nを指定することに
より、特定の制御機器とこの制御機器から前又は後のN
番目までのアドレスを有する制御機器とについて優先的
に出力更新処理を行うことを特徴とする。
In a fourth mode, an address of a specific control device and an added value N thereof are designated by a higher-level control device, whereby the specific control device and the N before or after this control device are specified.
The output update process is preferentially performed with respect to the control device having the first address.

【0017】[0017]

【作用及び効果】本発明の第1の態様によれば、特定の
制御機器のアドレスを指定すると、通常の出力更新処理
の途中に割り込んで、その特定の制御機器について優先
的に出力更新処理が行われる。このため、優先順位の高
いアドレスを有するノードから順に処理する従来の方式
より、はるかに処理時間が少なくて済む。
According to the first aspect of the present invention, when the address of a specific control device is specified, the output update process is interrupted in the middle of the normal output update process, and the output update process is preferentially performed for the specific control device. Done. For this reason, the processing time is much shorter than in the conventional method in which the processing is performed sequentially from the node having the address with the higher priority.

【0018】第2の態様によれば、記憶手段には、優先
的に出力更新を行う制御機器を特定する情報及び割り込
み実行を要求する情報が格納されるので、ユーザーは、
それらの情報を上位制御装置に入力さえすれば、通信装
置は、その記憶手段に書き込まれた情報に従い、必要に
応じて特定のノードに対する出力更新処理を迅速に実行
する。
According to the second aspect, the storage means stores the information for specifying the control device which performs the output update with priority and the information for requesting the execution of the interrupt.
As long as the information is input to the higher-level control device, the communication device promptly executes the output update process for a specific node as needed according to the information written in the storage means.

【0019】第3の態様によれば、優先的に出力更新す
べき制御機器を特定する処理と更新すべきデータの検出
処理は、処理手段で実行されるが、割り込み処理につい
ては、別途設けた割り込み発生/検出部が、上位制御装
置からの要求に応じて実行する。これにより、処理手段
での処理手順が簡潔になり、且つ全体の処理も迅速に行
われる。
According to the third aspect, the processing for specifying the control device to be preferentially updated and the processing for detecting the data to be updated are executed by the processing means, but the interrupt processing is provided separately. The interrupt generation / detection unit executes in response to a request from the host control device. Thereby, the processing procedure in the processing means is simplified, and the entire processing is performed quickly.

【0020】第4の態様によれば、特定の制御機器とそ
の前又は後のN番目までのアドレスを有する制御機器と
について、通常の出力更新処理に割り込んで優先的に出
力更新処理が行われるので、同時に複数の制御機器を指
定して出力情報を更新したい場合でも、ユーザーは容易
にそれを達成することができる。
According to the fourth aspect, for a specific control device and a control device having an N-th address before or after the specific control device, the output update process is preferentially performed by interrupting the normal output update process. Therefore, even when the user wants to update the output information by specifying a plurality of control devices at the same time, the user can easily achieve the update.

【0021】[0021]

【発明の実施の形態】図1は、前記SDSのような通信
システムにおいて本発明を適用する通信装置の基本的構
成を示すブロック図である。
FIG. 1 is a block diagram showing a basic configuration of a communication apparatus to which the present invention is applied in a communication system such as the SDS.

【0022】図1において、通信装置1は、本発明に従
って後述の出力更新処理を行うために必要な記憶手段1
a及び処理手段1bと、外部装置との通信処理のために
必要な通信インタフェース1cとを含んでいる。
In FIG. 1, a communication device 1 includes a storage unit 1 necessary for performing an output update process described later according to the present invention.
a and a processing means 1b, and a communication interface 1c required for communication processing with an external device.

【0023】記憶手段1aは数値データの格納部であ
り、読み出し及び書き込み可能に構成されている。この
ような記憶手段としては、例えば“SDS”では、書き
込むデータの入口と読み出したデータの出口が共用にな
っていて、書き込みか読み出しかを指定する制御信号に
より、いずれか一方が選択されるように構成されたデュ
アルポートRAMが、一般的に用いられている。処理手
段1bは、演算装置であるCPUやROM(読み出し専
用の記憶装置)等で構成されている。通信インタフェー
ス1cは、バッファを含む信号変換回路から成る送受信
部を有する。
The storage unit 1a is a storage unit for numerical data, and is configured to be readable and writable. As such storage means, for example, in the case of "SDS", the entry of the data to be written and the exit of the read data are shared, and either one is selected by a control signal designating write or read. Is generally used. The processing means 1b is constituted by a CPU or a ROM (read-only storage device) as an arithmetic device. The communication interface 1c has a transmission / reception unit including a signal conversion circuit including a buffer.

【0024】図1の通信システムでは、上位のコントロ
ーラ2と複数の制御機器(前述のノード)4との間に通
信装置1が介在している。前述のCANプロトコルに基
づき、複数の通信装置或いは通信機能を有する制御装置
を共通バス(幹線)5aに接続し、この共通バス5aか
ら分岐した分岐バス(支線)5bを介して、通信機能を
有する複数のノード4を接続する。すなわち、通信装置
1は、その通信インタフェース1cに接続したバス5a
及び5bを介して、各ノード4に接続されている。
In the communication system shown in FIG. 1, a communication device 1 is interposed between a host controller 2 and a plurality of control devices (the above-mentioned nodes) 4. Based on the above-mentioned CAN protocol, a plurality of communication devices or control devices having a communication function are connected to a common bus (main line) 5a, and have a communication function via a branch bus (branch line) 5b branched from the common bus 5a. A plurality of nodes 4 are connected. That is, the communication device 1 is connected to the bus 5a connected to the communication interface 1c.
And 5b are connected to each node 4.

【0025】コントローラ2は、SDSのマスタコント
ローラとして機能するシステムコントローラ、或いはそ
のような機能を実現するようにプログラムされたパーソ
ナルコンピュータから成る。いずれにしても、ユーザー
が指令や数値を入力するための入力手段を有するもので
あればよい。これに入力された数値等は、通信装置1に
送信され、その記憶手段1aに格納される。そして、処
理手段1bで出力更新等の処理が行われる。通信インタ
フェース1cは、これに接続した各ノード4との間で、
通信装置1で処理された制御命令等の送信、各ノード4
からの出力情報の受信等を行う。
The controller 2 comprises a system controller functioning as a master controller of the SDS, or a personal computer programmed to realize such a function. In any case, any device may be used as long as it has input means for the user to input commands and numerical values. The numerical values and the like input thereto are transmitted to the communication device 1 and stored in the storage unit 1a. Then, processing such as output updating is performed by the processing means 1b. The communication interface 1c communicates with each node 4 connected thereto.
Transmission of control commands and the like processed by the communication device 1, each node 4
It receives output information from the server.

【0026】この通信システムにおいて、各ノード4に
はそれぞれアドレスが設定されており、通常は、予め記
憶手段1aに格納されたアドレスの優先順位に従って、
各ノード4の出力更新処理等が行われる。
In this communication system, an address is set for each node 4, and usually, according to the priority of the address stored in the storage means 1a in advance.
The output update processing of each node 4 is performed.

【0027】ここで、ある特定のノード4について、通
常の出力更新処理に割り込んで出力更新を行いたい場
合、そのための情報をコントローラ2から送信して通信
装置1の記憶手段1aに格納させる。その時、処理手段
1bは、システム立ち上げ時及びリセット時に認識して
記憶手段1aに格納してあるノード情報(各ノードの出
力データやアドレス値)と出力更新のための情報とを比
較判定することにより、ノードを特定して出力更新処理
を行う。
Here, when it is desired to update the output by interrupting the normal output update processing for a specific node 4, information for that is transmitted from the controller 2 and stored in the storage means 1a of the communication apparatus 1. At that time, the processing unit 1b compares the node information (output data and address value of each node) stored in the storage unit 1a, which is recognized at the time of system startup and at the time of reset, with information for output update. , An output update process is performed by specifying a node.

【0028】図2は、別の実施形態の通信装置1’を含
む通信システムの基本構成を表わすブロック図である。
ここでは、通信装置1’は、図1の構成に加え、記憶手
段1a及び処理手段1bに接続した割り込み発生/検出
部1dを備えている。
FIG. 2 is a block diagram showing a basic configuration of a communication system including a communication device 1 'of another embodiment.
Here, the communication device 1 ′ includes an interrupt generation / detection unit 1d connected to the storage unit 1a and the processing unit 1b in addition to the configuration of FIG.

【0029】この割り込み発生/検出部1dは、処理手
段1bの処理を高速化するため、割り込み実行を要求す
る信号を発生させる。この割込実行要求信号は、コント
ローラ2から記憶手段1aへノード4のノードアドレス
特定情報を書き込むと同時に、その特定情報が記憶手段
1aに書き込まれたことを割り込み発生/検出部1dが
検出することにより発生し、処理手段1bに送られる。
従って、ユーザは、コントローラ2から記憶手段1aへ
の書き込みを行わせるだけで、割り込み発生/検出部1
dから、割り込み実行を要求する信号を発生させること
ができる。
The interrupt generation / detection unit 1d generates a signal requesting execution of an interrupt in order to speed up the processing of the processing unit 1b. This interrupt execution request signal is obtained by writing the node address specifying information of the node 4 from the controller 2 to the storage means 1a, and at the same time, detecting that the specific information has been written to the storage means 1a by the interrupt generation / detection unit 1d. And is sent to the processing means 1b.
Therefore, the user only has to write data from the controller 2 to the storage unit 1a, and the interrupt generation / detection unit 1
From d, a signal requesting execution of an interrupt can be generated.

【0030】ノード4の特定や既存データと更新内容と
の比較判定は、処理手段1bと記憶手段1aとの間で実
行される一方、割り込み発生/検出部1dから発生した
割り込み要求に従い、処理手段1bで通常の出力更新処
理に割り込んで特定の出力制御機器について優先的に出
力更新処理が行われる。これにより、処理手段1bでの
処理手順が簡潔になり、全体の処理も迅速に行われる。
The identification of the node 4 and the comparison between the existing data and the updated contents are executed between the processing means 1b and the storage means 1a, while the processing means responds to the interrupt request generated from the interrupt generation / detection section 1d. In 1b, the normal output update processing is interrupted, and the output update processing is preferentially performed for a specific output control device. Thereby, the processing procedure in the processing means 1b is simplified, and the entire processing is performed quickly.

【0031】上記割込実行要求信号は、割り込み発生/
検出部1dでの検出によって発生するが、コントローラ
2からの指令によって発生させてもよい。すなわち、図
3に示すように、コントローラ2から記憶手段1aへノ
ード4のノードアドレス特定情報を書き込んだ後、コン
トローラ2からの指令により、通信装置1”の割り込み
発生/検出部1dが割込実行要求信号を発生し、処理手
段1bに送る。
The interrupt execution request signal indicates that an interrupt /
Although it is generated by detection by the detection unit 1d, it may be generated by a command from the controller 2. That is, as shown in FIG. 3, after writing the node address specifying information of the node 4 from the controller 2 to the storage unit 1a, the interrupt generation / detection unit 1d of the communication device 1 ″ executes the interrupt execution in response to a command from the controller 2. A request signal is generated and sent to the processing means 1b.

【0032】図3の通信装置1”においても、ノード4
の特定や既存データと更新内容との比較判定は、処理手
段1bと記憶手段1aとの間で実行される一方、上記の
ように割り込み発生/検出部1dから発生した割り込み
要求に従い、処理手段1bで通常の出力更新処理に割り
込んで特定の出力制御機器について優先的に出力更新処
理が行われる。
In the communication device 1 ″ of FIG.
Is specified between the processing means 1b and the storage means 1a, while the processing means 1b is operated in accordance with the interrupt request generated by the interrupt generation / detection unit 1d as described above. Then, the normal output update processing is interrupted, and the output update processing is preferentially performed for a specific output control device.

【0033】図4は、記憶手段1aに格納される情報の
内容を示す概念図である。すなわち、記憶手段1aの格
納領域においては、割り込み要求の情報11、ノード情
報(入出力データ)13、その他の情報12が、それぞ
れ所定の場所に格納される。なお、その他の情報12
は、出力更新以外の処理を行う際に使用される。
FIG. 4 is a conceptual diagram showing the contents of information stored in the storage means 1a. That is, in the storage area of the storage unit 1a, the information 11 of the interrupt request, the node information (input / output data) 13, and the other information 12 are stored at predetermined locations. In addition, other information 12
Is used when performing processing other than output updating.

【0034】次に、図5を参照して、図1のシステム構
成におけるノード4の出力更新の手順を説明する。図中
のS1,S2,・・・ は、手順(ステップ)の番号を示
す。
Next, the procedure for updating the output of the node 4 in the system configuration of FIG. 1 will be described with reference to FIG. S1, S2,... In the figure indicate the number of the procedure (step).

【0035】通信装置1がコントローラ2から特定のノ
ードに対して出力更新の権利を割り込ませる要求とし
て、数値データが送信された場合、処理手段1bは、S
1において、その数値データを記憶手段1aに格納す
る。そして、S2において、特定のノードに対して優先
的に出力更新する割り込みの要求があるかどうかを、定
期的に記憶手段1aのデータにアクセスして判断する。
要求が無い場合は、S3において、通常の出力更新を行
うが、割り込み要求が有る場合は、S4において、割り
込み要求の処理に移行する。
When the communication device 1 transmits numerical data as a request from the controller 2 to interrupt the right of output update to a specific node, the processing means 1b executes
In step 1, the numerical data is stored in the storage unit 1a. Then, in S2, it is determined whether or not there is an interrupt request for preferentially updating the output to a specific node by accessing data in the storage unit 1a periodically.
If there is no request, normal output update is performed in S3, but if there is an interrupt request, the process proceeds to the interrupt request processing in S4.

【0036】割り込み要求の処理は、S5において、割
り込み要求の内容が適正かどうかの判断がされ、適正で
ない場合は割り込み要求不可として、S6において、割
り込み処理が終了する。割り込み要求の内容が適正であ
れば、割り込み要求の実行を決定し、S7において、優
先的に出力更新すべきノードのアドレス等の情報につい
て記憶手段1aに記憶されている既存のノード情報にア
クセスしながら、特定のノードのアドレスを決定する。
そして、S8において、その特定のノードについての出
力更新を要求する出力データが既存のデータに対して変
化しているかどうかの判別がなされる。ここで、変化が
無ければ、S6において割り込み処理が終了し、変化が
あれば、S9において、出力更新要求のフレームが作成
され、S10において、そのフレームが通信インタフェ
ース1cを介して特定のノードに送信され、出力更新が
実行される。そして、実行終了後、通常の出力更新処理
(S3)に戻る。
In the processing of the interrupt request, it is determined in S5 whether or not the content of the interrupt request is appropriate. If the content of the interrupt request is not appropriate, the interrupt request is disabled and the interrupt processing ends in S6. If the content of the interrupt request is appropriate, the execution of the interrupt request is determined, and in S7, the existing node information stored in the storage unit 1a is accessed for information such as the address of the node to be output updated preferentially. While determining the address of a specific node.
Then, in S8, it is determined whether or not the output data requesting the output update for the specific node has changed from the existing data. Here, if there is no change, the interrupt processing ends in S6, and if there is a change, a frame of an output update request is created in S9, and the frame is transmitted to a specific node via the communication interface 1c in S10. Then, the output is updated. Then, after the execution is completed, the process returns to the normal output update process (S3).

【0037】次に、図6を参照して、図2のシステム構
成におけるノードの出力更新の手順を説明する。
Next, the procedure for updating the output of the node in the system configuration of FIG. 2 will be described with reference to FIG.

【0038】図2のシステムでは、前述のように割り込
み発生/検出部1dで発生した信号に従って、処理手段
1bで処理が行われる。まず、図5の手順と同様に、処
理手段1bが、S1において数値データを記憶手段1a
に格納し、S2において、特定のノードに対して優先的
に出力更新する割り込みの要求があるかどうかを判断
し、要求が無い場合は、S3において通常の出力更新を
実行し、割り込み要求が有る場合は、S4において割り
込み要求の処理に移行するが、この割り込み要求以降の
処理は、処理手段1bの割り込み処理ルーチンによって
実行される。すなわち、S5において、割り込み要求の
内容が適正かどうかを判断し、適正でない場合は割り込
み要求不可として、S6において、割り込み処理を終了
する。一方、割り込み要求の内容が適正であれば、S1
1において、最優先処理の要求を設定する。最優先処理
とは、特定のノードを優先的に処理することである。
In the system shown in FIG. 2, processing is performed by the processing means 1b in accordance with the signal generated by the interrupt generation / detection unit 1d as described above. First, similarly to the procedure of FIG. 5, the processing unit 1b stores the numerical data in S1 in the storage unit 1a.
In S2, it is determined whether there is an interrupt request for preferentially updating the output to a specific node. If there is no request, normal output update is executed in S3, and there is an interrupt request. In this case, the processing shifts to the processing of the interrupt request in S4, but the processing after this interrupt request is executed by the interrupt processing routine of the processing means 1b. That is, in S5, it is determined whether or not the content of the interrupt request is appropriate. If not, it is determined that the interrupt request cannot be made, and the interrupt processing is terminated in S6. On the other hand, if the content of the interrupt request is appropriate, S1
In step 1, a request for the highest priority processing is set. The highest-priority process is to process a specific node preferentially.

【0039】最優先処理(S12)は、図5のS7〜S
10と同様の手順で行われる。すなわち、処理手段1b
は、S7において、記憶手段1aにアクセスしながら処
理すべきノードアドレスを特定する。そして、S8にお
いて、特定のノードアドレスについての出力データが既
存のデータと比較して変化しているかどうかを判断す
る。そして、出力データが既存のデータと比較して変化
していると判断されると、S9において出力更新を要求
するフレームが作成され、特定のノードにそのフレーム
が送信され、S10で出力更新が実行される。この出力
更新処理が終了すると、S20において、最優先処理の
要求をクリアし、通常の出力更新処理(S3)に移行す
る。一方、S8において、既存のデータと比較して変化
がないと判断された場合は、S20において、最優先処
理の要求がクリアされ、通常の出力更新処理(S3)に
移行する。
The highest priority processing (S12) is performed in S7 to S in FIG.
This is performed in the same procedure as in step 10. That is, the processing means 1b
Specifies the node address to be processed while accessing the storage unit 1a in S7. Then, in S8, it is determined whether the output data for the specific node address has changed by comparing with the existing data. If it is determined that the output data has changed compared to the existing data, a frame requesting output update is created in S9, the frame is transmitted to a specific node, and the output update is executed in S10. Is done. When the output update processing is completed, the request for the highest priority processing is cleared in S20, and the process proceeds to the normal output update processing (S3). On the other hand, if it is determined in S8 that there is no change compared to the existing data, the request for the highest priority processing is cleared in S20, and the process proceeds to the normal output update processing (S3).

【0040】図7は、図6の最優先処理の変形例であ
り、図2のシステム構成において、指定した複数のノー
ドに対し、通常の出力更新処理への割り込みによる連続
して出力更新を実行する場合の手順について示したフロ
ー図である。
FIG. 7 shows a modification of the highest priority processing shown in FIG. 6. In the system configuration shown in FIG. 2, output updating is continuously performed on a plurality of designated nodes by interrupting the normal output updating processing. FIG. 6 is a flowchart showing a procedure in the case of performing the operation.

【0041】この例の最優先処理S13では、S10ま
では図6の最優先処理S12と同じ手順で行われる。し
かし、S8で“NO”の場合又はS10の出力更新処理
の後、処理手段1bは、S14において、続いて処理す
べき要求があるかどうかを判断し、要求がある場合は、
S15において、優先順位が一つ下の処理に移り、S1
6において処理すべき特定のノードアドレスを読み込
み、S7に戻って以下の処理を繰り返す。一方、S14
において、要求がない、すなわち要求された連続処理を
すべて終了したと判断したときは、S20において、最
優先処理の要求がクリアされ、S3において、通常の出
力処理に戻り、処理を終了する。
In the highest priority processing S13 of this example, the processing up to S10 is performed in the same procedure as the highest priority processing S12 of FIG. However, if “NO” in S8 or after the output update process in S10, in S14, the processing unit 1b determines whether there is a request to be subsequently processed.
In S15, the processing shifts to the processing of one priority lower, and in S1
In step 6, a specific node address to be processed is read, and the process returns to step S7 to repeat the following process. On the other hand, S14
In step S20, when it is determined that there is no request, that is, when all the requested continuous processes have been completed, the request for the highest priority process is cleared in step S20, the process returns to the normal output process in step S3, and the process ends.

【0042】次に、特定のノードに対して出力更新をし
たい時、ユーザーが実際にコントローラ2から入力して
通信装置に格納する手順について説明する。
Next, a description will be given of a procedure in which when a user wants to update the output of a specific node, the user actually inputs the data from the controller 2 and stores it in the communication device.

【0043】まず、通信装置の記憶手段1aに読み込ま
せる数値データとして、最初に更新したいノードのアド
レス(以後、先頭ノードアドレスという)Xを指定す
る。例えば、指定した先頭ノードアドレスをX=16と
して記憶手段1aに書き込んだときは、アドレス16の
ノードについての出力更新処理が、通常の出力更新処理
に割り込んで行われ、その後、通常の出力更新処理に戻
される。
First, as numerical data to be read into the storage means 1a of the communication apparatus, an address (hereinafter, referred to as a head node address) X of a node to be updated first is designated. For example, when the designated start node address is written in the storage unit 1a as X = 16, the output update processing for the node at the address 16 is performed by interrupting the normal output update processing, and thereafter, the normal output update processing is performed. Is returned to.

【0044】また、図7のように複数のノードを指定し
て出力更新したい場合は、先頭ノードアドレスをXと指
定し、それと同時にアドレス加算値Nを記憶手段1aに
書き込むことにより、連続的に更新処理が行われる。つ
まり、アドレスがXからX+Nまでのノードが、割り込
み更新の対象として指定される。例えば、先頭アドレス
をX=16、加算値をN=3として記憶手段1aに書き
込めば、アドレスが16,17,18,19である4つ
のノードが割り込み更新の対象として指定され、連続し
て割り込み処理がなされ、処理後、通常の出力更新処理
に戻される。
When it is desired to update the output by designating a plurality of nodes as shown in FIG. 7, the leading node address is designated as X, and at the same time, the address addition value N is written into the storage means 1a, so that the address is continuously updated. Update processing is performed. That is, a node whose address is from X to X + N is designated as an interrupt update target. For example, if the start address is written into the storage unit 1a with X = 16 and the added value is N = 3, four nodes having addresses 16, 17, 18, and 19 are designated as interrupt update targets, and are successively interrupted. The process is performed, and after the process, the process returns to the normal output update process.

【0045】次に、本発明を利用したシステムの例を説
明する。
Next, an example of a system using the present invention will be described.

【0046】図8は、例えばベルトコンベアの駆動によ
り、その上に置かれた部品が移動体20となって左方向
から右方向へ搬送されるような部品の自動組立ラインに
おいて、ベルトコンベアの駆動方向に、移動体20を検
出可能なセンサA及びセンサBを所定の間隔をおいて配
置し、センサBはセンサAよりも高い位置に設置した状
態を示す。ここでは、センサA及びセンサBを接続した
ノードのアドレスを先頭ノードアドレスとする。
FIG. 8 shows the driving of a belt conveyor in an automatic assembly line for components in which, for example, by driving the belt conveyor, the components placed thereon become a moving body 20 and are conveyed from left to right. The sensor A and the sensor B capable of detecting the moving body 20 are arranged at predetermined intervals in the direction, and the sensor B is installed at a position higher than the sensor A. Here, the address of the node connecting the sensor A and the sensor B is set as the head node address.

【0047】この構成によれば、最初にセンサAが移動
体である部品20を検出した時、センサBで直ぐに部品
20を検出できるようにノードから指示を出し、次にセ
ンサBが部品20を検出したとき、発光部(LED)2
1を点灯させることにより、その部品20を別の工程に
移す指示を出すことができる。つまり、部品20の大き
さが一定していない場合、部品20がセンサBで検出さ
れたときは、別の工程に移るように指示するLED21
を点灯する。一方、センサBにおいて部品20が検出し
ない時は、LED21を点灯せず、通常の工程に進むも
のとする。この場合、LED21を接続したノードが出
力更新の対象となる。
According to this configuration, when the sensor A first detects the component 20 as a moving body, the sensor B issues an instruction from the node so that the component B can be immediately detected. When detected, the light emitting unit (LED) 2
By turning on 1, an instruction to move the component 20 to another process can be issued. That is, when the size of the component 20 is not constant, and when the component 20 is detected by the sensor B, the LED 21 instructing to move to another process is provided.
Lights up. On the other hand, when the component 20 is not detected by the sensor B, the LED 21 is not turned on and the process proceeds to a normal process. In this case, the node to which the LED 21 is connected is a target of output update.

【0048】また、図9に示すように、制御盤30上に
表示機能を有する表示部31と停止ボタン(緊急制御ボ
タン)32等が混在する場合は、各停止ボタン等の入力
に応じた制御盤30の各出力機能についてノードアドレ
スを指定して割り込み処理を行うことにより、その機能
を果たすことができる。
As shown in FIG. 9, when a display unit 31 having a display function and a stop button (emergency control button) 32 and the like are mixed on the control panel 30, control according to the input of each stop button and the like is performed. By performing an interrupt process by designating a node address for each output function of the panel 30, that function can be achieved.

【0049】上記実施形態の通信装置は、1つのノード
を表示、出力、アナログ、デジタル等に分け切れない場
合に有効である。すなわち、割り込み処理により出力の
更新に時間がかからないので、図10に示すように、表
示用ノード41、出力用ノード42、アナログ用ノード
43、デジタル用ノード44等の機能別に、ノードを独
立させて使用できる。例えば、検出用ノード(センサ)
から表示用ノード(LED)に出力を更新する場合、図
8のようになる。
The communication apparatus of the above embodiment is effective when one node cannot be divided into display, output, analog, digital, and the like. That is, since it does not take much time to update the output due to the interrupt processing, as shown in FIG. 10, the nodes are independently provided for the functions of the display node 41, the output node 42, the analog node 43, the digital node 44, and the like. Can be used. For example, a detection node (sensor)
When the output is updated from the display node to the display node (LED), the result is as shown in FIG.

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

【図1】本発明を適用する通信装置の基本構成を示すブ
ロック図。
FIG. 1 is a block diagram showing a basic configuration of a communication device to which the present invention is applied.

【図2】本発明の別の実施形態を示すブロック図。FIG. 2 is a block diagram showing another embodiment of the present invention.

【図3】図2の実施形態の一部を改変した構成を示すブ
ロック図。
FIG. 3 is a block diagram showing a configuration in which a part of the embodiment of FIG. 2 is modified;

【図4】通信装置内の記憶手段の内部構造を示す概念
図。
FIG. 4 is a conceptual diagram showing an internal structure of a storage unit in the communication device.

【図5】図1のシステム構成におけるノードの出力更新
の手順を示すフロー図。
FIG. 5 is a flowchart showing a procedure for updating output of a node in the system configuration of FIG. 1;

【図6】図2のシステム構成におけるノードの出力更新
の手順を示すフロー図。
FIG. 6 is a flowchart showing a procedure of updating output of a node in the system configuration of FIG. 2;

【図7】図2のシステム構成における複数のノードに対
する出力更新の手順を示すフロー図。
FIG. 7 is a flowchart showing a procedure of updating output to a plurality of nodes in the system configuration of FIG. 2;

【図8】本発明の通信装置の利用例を示す図。FIG. 8 is a diagram showing a usage example of the communication device of the present invention.

【図9】別の利用例を示す図。FIG. 9 is a diagram showing another usage example.

【図10】更に別の利用例を示す図。FIG. 10 is a diagram showing still another usage example.

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

1…通信装置、1a …記憶手段、1b…処理手段、1c
…通信インタフェース、1d…割り込み発生/検出部、
2…上位コントローラ、4…ノード、5a …幹線、5b
…支線、20…移動体、21…LED、30…制御盤、
31…表示部停止ボタン、32…停止ボタン。
DESCRIPTION OF SYMBOLS 1 ... Communication apparatus, 1a ... Storage means, 1b ... Processing means, 1c
... Communication interface, 1d ... Interrupt generation / detection unit,
2 Upper controller, 4 Node, 5a Main line, 5b
... branch line, 20 ... moving body, 21 ... LED, 30 ... control panel,
31: display section stop button, 32: stop button.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】上位の制御装置と各々アドレスを付与され
た複数の制御機器との間で通信路を介して信号の送受を
行う通信システムにおいて上位の制御装置と複数の制御
機器との間に用いられる通信装置であって、前記上位の
制御装置から入力された前記アドレスを示す数値その他
の情報を格納可能な記憶手段と、該記憶手段への数値の
書き込み、該数値の読み出し、及び前記制御機器からの
出力更新処理を行う処理手段とを備え、前記上位の制御
装置から特定の制御機器のアドレスを指定されたとき、
前記処理手段により、通常の出力更新処理に割り込んで
該特定の制御機器の出力更新処理を行うように構成した
ことを特徴とする通信装置。
1. A communication system for transmitting and receiving signals via a communication path between a higher-level control device and a plurality of control devices each having an address, between a higher-level control device and a plurality of control devices. A communication device to be used, comprising: a storage unit capable of storing a numerical value and other information indicating the address input from the higher-level control device; writing a numerical value to the storage unit; reading the numerical value; Processing means for performing output update processing from the device, when the address of a specific control device is specified by the higher-level control device,
A communication device, wherein the processing unit interrupts a normal output update process and performs an output update process of the specific control device.
【請求項2】請求項1記載の通信装置において、前記記
憶手段に格納される情報は、優先的に出力更新処理を行
う制御機器を特定する情報、及び割り込み処理の実行を
要求する情報を含んでいることを特徴とする通信装置。
2. The communication device according to claim 1, wherein the information stored in the storage unit includes information for specifying a control device that performs output update processing with priority and information for requesting execution of interrupt processing. A communication device, characterized in that:
【請求項3】請求項1記載の通信装置において、前記処
理手段とは別に、通常の出力更新処理に割り込んで前記
特定の制御機器の出力更新を行うように前記上位の制御
装置から出された要求に対する処理を行う割込み発生/
検出部を備えたことを特徴とする通信装置。
3. The communication device according to claim 1, wherein said higher-level control device issues an output of said specific control device by interrupting a normal output update process separately from said processing means. Occurrence of interrupt for processing request /
A communication device comprising a detection unit.
【請求項4】請求項1乃至3のいずれか記載の通信装置
において、前記上位の制御装置から特定の制御機器のア
ドレス及びその加算値Nを指定することにより、前記特
定の制御機器と当該制御機器から前又は後のN番目まで
のアドレスを有する制御機器とについて優先的に出力更
新処理を行うことを特徴とする通信装置。
4. The communication device according to claim 1, wherein the higher-level control device designates the address of the specific control device and the added value N thereof, whereby the specific control device and the control device are controlled. A communication apparatus for performing output update processing preferentially between a device and a control device having up to N-th address before or after the device.
JP10019889A 1998-01-30 1998-01-30 Communication equipment Pending JPH11220509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10019889A JPH11220509A (en) 1998-01-30 1998-01-30 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10019889A JPH11220509A (en) 1998-01-30 1998-01-30 Communication equipment

Publications (1)

Publication Number Publication Date
JPH11220509A true JPH11220509A (en) 1999-08-10

Family

ID=12011771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10019889A Pending JPH11220509A (en) 1998-01-30 1998-01-30 Communication equipment

Country Status (1)

Country Link
JP (1) JPH11220509A (en)

Similar Documents

Publication Publication Date Title
US9170569B2 (en) Method for electing an active master device from two redundant master devices
EP1701271A1 (en) Electronic apparatus system with master node and slave node
US7486997B2 (en) Safety condition setting support device, program product and device control method for obtaining safety condition for safety network
US20130282148A1 (en) Motion controller
CN107924171B (en) Slave device, control method for slave device, and recording medium
US5941966A (en) Method and apparatus using a plural level processor for controlling a data bus
US10877803B2 (en) Control apparatus, control method and non-transitory storage medium
US7246270B2 (en) Programmable controller with CPU and communication units and method of controlling same
US5847659A (en) Electronic wiring system using automatic cyclic, communication means
JP4758276B2 (en) Power supply system and system power supply
JPH03196729A (en) Error display device for data transmission system
JPH11220509A (en) Communication equipment
US8521309B2 (en) Method for operating a system of field devices
CN113867271A (en) Production system, upper-level control device, communication method, and storage medium
JPH03201636A (en) Data input controller for serial controller
JP3884643B2 (en) Process control device
JP3702605B2 (en) Transmission system having trigger function and time interval measuring method of input / output signal thereof
US20210405597A1 (en) Engineering device, engineering method, and information storage medium
JP4117685B2 (en) Fault-tolerant computer and its bus selection control method
JPH09311716A (en) Lan device
JPH11272490A (en) Dlagnostic control system
JP2541301B2 (en) Failure detection method
JP2022094533A (en) PLC and PLC system
JPH08154277A (en) Multiple transmission load control system
JPS597971B2 (en) I/O device control method