JPH0785561B2 - Series controller - Google Patents

Series controller

Info

Publication number
JPH0785561B2
JPH0785561B2 JP1336888A JP33688889A JPH0785561B2 JP H0785561 B2 JPH0785561 B2 JP H0785561B2 JP 1336888 A JP1336888 A JP 1336888A JP 33688889 A JP33688889 A JP 33688889A JP H0785561 B2 JPH0785561 B2 JP H0785561B2
Authority
JP
Japan
Prior art keywords
data
frame signal
node
actuator
main controller
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.)
Expired - Lifetime
Application number
JP1336888A
Other languages
Japanese (ja)
Other versions
JPH03196735A (en
Inventor
慎 武部
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.)
Komatsu Ltd
Original Assignee
Komatsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP1336888A priority Critical patent/JPH0785561B2/en
Priority to EP96106642A priority patent/EP0726665A2/en
Priority to EP91901533A priority patent/EP0507947B1/en
Priority to US07/861,862 priority patent/US5461617A/en
Priority to DE69030816T priority patent/DE69030816T2/en
Priority to PCT/JP1990/001707 priority patent/WO1991010306A1/en
Priority to KR1019920701477A priority patent/KR960013967B1/en
Publication of JPH03196735A publication Critical patent/JPH03196735A/en
Priority to US08/436,931 priority patent/US5587995A/en
Publication of JPH0785561B2 publication Critical patent/JPH0785561B2/en
Priority to US08/751,796 priority patent/US5784308A/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Selective Calling Equipment (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はプレス、工作機械、建設機械、船舶、航空機
等の各種機械の集中管理システムおよび無人搬送装置、
無人倉庫等の集中管理システムに採用して好適な直列制
御装置に関し、特にメインコントローラおよび複数のノ
ードを閉ループ状に直列接続し、各ノードにはそれぞれ
データを出力する1乃至複数のセンサ類とデータが入力
される1乃至複数のアクチュエータ類を接続するように
した直列制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a centralized control system and an unmanned conveyance device for various machines such as presses, machine tools, construction machines, ships, and aircraft.
The present invention relates to a serial controller suitable for use in a centralized management system such as an unmanned warehouse, and in particular, a main controller and a plurality of nodes are connected in series in a closed loop, and each node outputs data to one or a plurality of sensors and data. The present invention relates to a serial control device configured to connect one to a plurality of actuators to which is input.

〔従来の技術〕[Conventional technology]

プレス、工作機械、建設機械、船舶、航空機、無人搬送
装置、無人倉庫等を集中管理する場合、装置各部の状態
を検出する多数のセンサおよび装置各部の状態を制御す
る多数のアクチュエータが必要となる。このセンサおよ
びアクチュエータの数は例えばプレスと考えた場合3000
以上にも及び、他の装置においては更に多数となるもの
もある。
When centrally managing presses, machine tools, construction machines, ships, aircraft, unmanned conveyors, unmanned warehouses, etc., many sensors that detect the status of each part of the equipment and many actuators that control the status of each part of the equipment are required. . The number of sensors and actuators is, for example, 3000 when considered as a press.
In addition to the above, there are more devices in other devices.

従来、この種の装置を集中管理する集中管理システムと
して、複数のノードを直列に接続するとともに各ノード
に1乃至複数のセンサおよびアクチュエータを接続し、
これらノードをメインコントローラを介して環状に接続
し、このメインコントローラからの信号によって各ノー
ドを制御するようにした構成が考えられている。
Conventionally, as a centralized management system for centrally managing this type of device, a plurality of nodes are connected in series and one or more sensors and actuators are connected to each node,
A configuration is conceived in which these nodes are connected in a ring shape via a main controller and each node is controlled by a signal from the main controller.

このようにノードを直列に接続する構成をとる場合、各
センサの出力の同時性および各アクチュエータの制御の
同時性をいかにして確保するかが問題となる。例えば、
各ノードにアドレスを割当て、このアドレスにもとづき
各ノードを制御する構成を考えると、このアドレス処理
のための時間遅れが問題となり、各センサの出力の収集
および各アクチュエータの制御に関して満足すべき同時
性を確保することはできない。
In such a configuration in which nodes are connected in series, how to ensure the simultaneity of output of each sensor and the simultaneity of control of each actuator becomes a problem. For example,
Considering the configuration that assigns an address to each node and controls each node based on this address, the time delay for this address processing becomes a problem, and the simultaneity that should be satisfied regarding the collection of the output of each sensor and the control of each actuator Cannot be secured.

そこで、発明者等は、ノードを直列に接続する構成をと
りながらも各ノードにアドレスを割当てるという発想を
捨て、各ノードをその接続の順番によって識別するよう
にし、これによってアドレス処理を不要にするとともに
アドレス処理に伴う時間遅れを解消し、更にはノードの
構成を大幅に簡略化できるようにした直列制御装置を提
案している。
Therefore, the inventors have abandoned the idea of assigning an address to each node while adopting a configuration in which nodes are connected in series, and identify each node by the order of connection, thereby making address processing unnecessary. At the same time, we have proposed a serial control device that eliminates the time delay associated with address processing and further greatly simplifies the node configuration.

この装置によれば、メインコントローラはセンサデータ
用の第1のスタートコードとアクチュエータデータ用の
第2のスタートコードと前記アクチュエータデータを含
むデータフレーム信号を送出する。一方、前記各ノード
では、当該ノードに接続されるセンサの検出データを前
段ノードから送られてきた前記データフレーム信号の前
記第1のスタートコードの後に付加し、当該ノードに接
続されるアクチュエータ用のデータを前段ノードから送
られてきたデータフレーム信号の前記第2のスタートコ
ードの後から抜き取るようしている。このような処理が
各ノードで実行されることにより、メインコントローラ
から送出されたデータフレーム信号は各ノードでデータ
が挿入および削除された後メインコントローラに戻され
る。
According to this device, the main controller sends a data frame signal including a first start code for sensor data, a second start code for actuator data, and the actuator data. On the other hand, in each of the nodes, the detection data of the sensor connected to the node is added after the first start code of the data frame signal sent from the preceding node, and the data for the actuator connected to the node is added. The data is extracted after the second start code of the data frame signal sent from the preceding node. By executing such processing in each node, the data frame signal sent from the main controller is returned to the main controller after data is inserted and deleted in each node.

かかる構成によれば、各ノードにはアドレスは全く不要
となり、また、アドレス処理が不要となるため各ノード
における時間遅れは非常に小さいものとなり、またノー
ドの構成も非常に簡単なものとなる。
With such a configuration, no address is required for each node, and since address processing is not required, the time delay in each node is very small, and the node configuration is also very simple.

ところで上記構成において、従来、前記データフレーム
信号の送出周期(あるデータフレーム信号の送出開始時
刻から次のデータフレーム信号の送出開始時刻までの時
間、以下サンプリングタイムという)は、システムの規
模すなわちシステム内のセンサの数およびアクチュエー
タの数に関係なく、どのシステムでも常に一定としてい
た。そして、この一定であるサンプリングタイムは、通
常、センサの数およびアクチュエータの数の最も多いシ
ステムに合わせて入力設定されるようになっていた。
By the way, in the above configuration, conventionally, the transmission cycle of the data frame signal (the time from the transmission start time of one data frame signal to the transmission start time of the next data frame signal, hereinafter referred to as sampling time) is the scale of the system Regardless of the number of sensors and actuators in the system, it was always constant in any system. Then, this constant sampling time is usually input and set in accordance with the system having the largest number of sensors and actuators.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

このように、従来装置においては、サンプリングタイム
は最もセンサの数およびアクチュエータの数の多いシス
テムに合わせて一定値に設定されていたので、センサ数
およびアクチュエータ数の、少ないシステムになればな
るほど、データフレーム信号と次のデータフレーム信号
との間に存在するインターバル時間が長くなり、データ
の伝送効率が下がってリアルタイム制御性を損なうとい
う問題がある。また、従来装置においては、データフレ
ーム信号中の出力データ長DOはシステムの規模に関係な
く、最もアクチュエータの多いシステムに合わせて設定
するようにしていたので、アクチュエータの少ないシス
テムでは、データの伝送効率が下がってリアルタイム制
御性を損なうという問題があった。
In this way, in the conventional device, the sampling time was set to a constant value in accordance with the system having the largest number of sensors and actuators. Therefore, the smaller the number of sensors and actuators, the more data There is a problem that the interval time existing between the frame signal and the next data frame signal becomes long, the data transmission efficiency decreases, and the real-time controllability is impaired. Also, in the conventional device, the output data length DO in the data frame signal was set according to the system with the most actuators, regardless of the system scale. However, there was a problem in that the real-time controllability was deteriorated.

この発明はこのような事情に鑑みてなされたもので、シ
ステムの規模に関係なく常に伝送効率の良いデータ伝送
をなし得る直列制御装置を提供しようとするものであ
る。
The present invention has been made in view of such circumstances, and an object thereof is to provide a serial control device that can always perform data transmission with good transmission efficiency regardless of the scale of the system.

〔課題を解決するための手段〕[Means for Solving the Problems]

この発明では、1乃至複数のセンサ及び1乃至複数のア
クチュエータを接続したノードを直列接続し、該複数の
ノードをメインコントローラを含んで閉ループ状に接続
するとともに、前記メインコントローラは第1の特殊コ
ードと第2の特殊コードと前記アクチュエータへの出力
データを含むデータフレーム信号を送出し、前記各ノー
ドは当該ノードに接続されるセンサからのデータを前記
第1の特殊コードの後に付加し、当該ノードに接続され
るアクチュエータへの出力データを前記第2の特殊コー
ドの後から抜き取るようにした直列制御装置において、 前記データフレーム信号の送出に先立って、前記第1の
特殊コードと第2の特殊コードとアクチュエータ数検出
用のデータを含む初期フレーム信号を送出する送出手段
と、前記複数のノードを経て入力された前記初期フレー
ム信号に基づき前記センサの全ビット数および前記アク
チュエータの全ビット数を検出する端末ビット数検出手
段と、この端末ビット数検出手段の検出値に応じて前記
データフレーム信号の送出間隔を可変制御する制御手段
と、を前記メインコントローラに具えるようにする。
According to the present invention, nodes connecting one to a plurality of sensors and one to a plurality of actuators are connected in series, and the plurality of nodes are connected in a closed loop including a main controller, and the main controller is a first special code. And a data frame signal including a second special code and output data to the actuator, and each node adds data from a sensor connected to the node after the first special code, In a serial control device in which output data to an actuator connected to the second special code is extracted after the second special code, the first special code and the second special code are provided prior to the transmission of the data frame signal. And a transmitting means for transmitting an initial frame signal including data for detecting the number of actuators, and a plurality of the plurality of nodes. Terminal bit number detecting means for detecting the total number of bits of the sensor and the total number of bits of the actuator based on the initial frame signal input via the mode, and the data according to the detection value of the terminal bit number detecting means. The main controller is provided with control means for variably controlling the transmission interval of the frame signal.

〔作用〕[Action]

メインコントローラは、データフレーム信号の送出に先
立って、第1の特殊コード、第2の特殊コード、および
アクチュエータ数検出用の信号を含む初期フレーム信号
を出力する。
The main controller outputs an initial frame signal including a first special code, a second special code, and a signal for detecting the number of actuators, before sending the data frame signal.

各ノードはこの初期フレーム信号を受信すると、第1の
特殊コードと第2の特殊コードの間に当該ノードに接続
されたセンサのデータ信号を付加するとともに、第2の
特殊コードの後から当該ノードに接続されたアクチュエ
ータへのデータ信号を抜き取る。
When each node receives this initial frame signal, it adds the data signal of the sensor connected to the node between the first special code and the second special code, and the node concerned after the second special code. Extract the data signal to the actuator connected to.

このようにして全てのノードを通過した初期フレーム信
号をメインコントローラは受信し、第1の特殊コードの
後の信号のデータ数から全センサ数を検出する。また、
第2の特殊コードの後の信号のデータ数から全アクチュ
エータ数を検出する。
In this way, the main controller receives the initial frame signal that has passed through all the nodes, and detects the total number of sensors from the data number of the signal after the first special code. Also,
The total number of actuators is detected from the data number of the signal after the second special code.

そして、メインコントローラでは、検出したセンサ数お
よびアクチュエータ数に応じて前記データフレーム信号
の送出間隔を可変制御するようにする。すなわち、セン
サ数およびアクチュエータ数が小さい場合は前記送出間
隔を短くし、センサ数およびアクチュエータ数が大きい
場合は送出間隔を長くする。
Then, the main controller variably controls the transmission interval of the data frame signal according to the detected number of sensors and the number of actuators. That is, when the number of sensors and the number of actuators is small, the delivery interval is shortened, and when the number of sensors and actuators is large, the delivery interval is lengthened.

〔実施例〕〔Example〕

以下、添付図面を参照してこの発明の一実施例を詳細に
説明する。
An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

第2図はこの発明が適用される直列制御装置の全体構成
を示したものである。この直列制御装置は例えばプレス
の集中制御システムに適用されるものである。この直列
制御装置において、メインコントローラ100は例えば図
示しないプレスのコントローラ部に配設されプレス各部
を統轄管理するものである。センサ群1−1,1−2,…1
−Nはプレスの各部に配設され、プレスの各部の状態を
検出するものである。アクチュエータ群2−1,2−2,…
2−Nはプレスの各部に配設され、プレスの各部を駆動
するものである。この構成において、センサ群1−1と
アクチュエータ群2−1はノード10−1に接続され、セ
ンサ群1−2とアクチュエータ群2−2はノード10−2
に接続され、センサ群1−3とアクチュエータ群2−3
はノード10−3に接続され、以下同様にセンサ群1−4,
1−5,…1−Nおよびアクチュエータ群2−4,2−5,…2
−Nはノード10−4,10−5,…10−Nにそれぞれ接続され
る。
FIG. 2 shows the overall configuration of a serial controller to which the present invention is applied. This serial control device is applied to, for example, a centralized control system of a press. In this serial control device, the main controller 100 is arranged in, for example, a controller unit of a press (not shown), and controls and manages each unit of the press. Sensor group 1-1, 1-2, ... 1
-N is arranged in each part of the press and detects the state of each part of the press. Actuator group 2-1, 2-2, ...
2-N is arranged in each part of the press and drives each part of the press. In this configuration, the sensor group 1-1 and the actuator group 2-1 are connected to the node 10-1, and the sensor group 1-2 and the actuator group 2-2 are connected to the node 10-2.
Connected to the sensor group 1-3 and actuator group 2-3
Is connected to the node 10-3, and so on.
1-5, ... 1-N and actuator groups 2-4, 2-5, ... 2
-N is connected to nodes 10-4, 10-5, ... 10-N, respectively.

これらノード10−1〜10−Nおよびメインコントローラ
100はループ状に直列接続されている。
These nodes 10-1 to 10-N and main controller
100 are connected in series in a loop.

このシステムにおいて、センサ群1−1,1−2,…1−N
の各センサから出力されたプレス各部の状態を示す信号
は各ノード10−1,10−2,…10−Nを介してメインコント
ローラ100に送出され、メインコントローラ100において
収集処理される。
In this system, sensor groups 1-1, 1-2, ... 1-N
The signals indicating the state of each part of the press output from the respective sensors are sent to the main controller 100 via the nodes 10-1, 10-2, ... 10-N, and are collected and processed in the main controller 100.

アクチュエータ群2−1,2−2,…2−Nの各アクチュエ
ータに対する信号はメインコントローラ100において生
成され、各ノード10−1,10−2,…10−Nを介して各アク
チュエータ群2−1,2−2,…2−Nに送出され、これに
より各アクチュエータ群2−1,2−2…2−Nの各アク
チュエータが制御される。
A signal for each actuator of the actuator groups 2-1, 2-2, ... 2-N is generated in the main controller 100, and each actuator group 2-1 is sent via each node 10-1, 10-2, ... 10-N. , 2-2, ... 2-N, whereby each actuator of each actuator group 2-1, 2-2 ... 2-N is controlled.

第3図は、ノードの数Nを5とした場合の当該システム
で用いられるデータ信号のフレーム構成を示すもので、
このデータフレーム信号はメインコントローラ100から
送出され、ノード10−1、10−2、……10−Nを経由し
た後、メインコントローラ100に戻される。なお、同第
3図(a)はメインコントローラ100から出力された直
後のデータフレーム信号を、同図(b)、(c)、
(d)、(e)はノード10−1、10−2、10−3、10−
4から出力されるデータフレーム信号を、同図(f)は
ノード10−5から出力される信号(N=5の場合はメイ
ンコントローラ100へ帰還入力される信号)をそれぞれ
示している。
FIG. 3 shows a frame structure of a data signal used in the system when the number N of nodes is 5.
This data frame signal is sent from the main controller 100, passed through the nodes 10-1, 10-2, ... 10-N and then returned to the main controller 100. In addition, FIG. 3 (a) shows the data frame signal immediately after being output from the main controller 100, in FIG. 3 (b), (c),
(D) and (e) are nodes 10-1, 10-2, 10-3, 10-.
4 shows the data frame signal output from the node 4, and FIG. 4F shows the signal output from the node 10-5 (the signal fed back to the main controller 100 when N = 5).

第3図のフレーム構成における各信号の内容を以下に示
す。
The contents of each signal in the frame structure of FIG. 3 are shown below.

STI;入力データ(センサデータ)DIの先頭位置を示す第
1のスタートコード DI;入力データ(センサデータ DIq;第q番目のノードに接続されたセンサからの入力デ
ータ STO;出力データ(アクチュエータ駆動データ)の先頭位
置を示す第2のスタートコード DO;出力データ(アクチュエータ駆動データ) DOq;第q番目のノードに接続されたアクチュエータへの
出力データ SP;データ列の終端位置を示すストップコード CRC;各ノードでのCRCエラーチェックのためのコード
(エラー内容を示すエラ) ERR;エラー内容およびエラー位置を示すコード 第2図に示した各ノード10−1〜10−Nでは、第3図
(b)〜(f)に示すように、スタートコードSTIとス
タートコードSTOの間に当該ノードに接続されたセンサ
1の検出データDIqを付加するとともに、スタートコー
ドSTOの後から当該ノードに接続されたアクチュエータ
2への出力データDOqを抜き取るよう動作する。
STI: First start code DI that indicates the start position of input data (sensor data) DI; Input data (sensor data DIq; Input data from the sensor connected to the qth node STO; Output data (actuator drive data ) Second start code DO; output data (actuator drive data) DOq; output data SP to the actuator connected to the q-th node; stop code CRC indicating the end position of the data string; each Code for CRC error check at node (error indicating error content) ERR; Code indicating error content and error position In each node 10-1 to 10-N shown in FIG. 2, FIG. 3 (b) As shown in (f), the detection data DIq of the sensor 1 connected to the node is added between the start code STI and the start code STO, and the start code is added. Operable to extract the output data DOq the STO to the actuator 2 connected to the node from the following.

したがって、このシステムでは、メインコントローラ10
0からノード10−1に対して第3図(a)に示すような
アクチュエータ制御データDOを含むデータフレーム信号
を送出すれば、このデータフレーム信号がノード10−1
→ノード10−2→ノード10−3→ノード10−4→10−5
へと順次伝播されることにより上記データフレーム信号
中のアクチュエータ制御データDOを該当するノードへ割
り振るとともに、各ノードで得たセンサ群の検出データ
を同データフレーム信号中へ取り込むようにしている。
この結果、上記データフレーム信号がメインコントロー
ラ100へ帰還されたときには、第3図(f)に示すよう
に、アクチュエータ制御データDOは全てなくなり、セン
サ群の検出データが同フレーム信号中に含まれることに
なる。かかる動作を行うノード10−1〜10−Nの構成
は、本案の要部ではないので、その説明は省略する。
Therefore, in this system, the main controller 10
When a data frame signal including actuator control data DO as shown in FIG. 3A is transmitted from 0 to the node 10-1, this data frame signal is transmitted to the node 10-1.
→ node 10-2 → node 10-3 → node 10-4 → 10-5
The actuator control data DO in the data frame signal is allocated to the corresponding node by being sequentially propagated to the node, and the detection data of the sensor group obtained at each node is taken into the data frame signal.
As a result, when the data frame signal is returned to the main controller 100, as shown in FIG. 3 (f), all the actuator control data DO disappears and the detection data of the sensor group is included in the same frame signal. become. The configuration of the nodes 10-1 to 10-N performing such an operation is not an essential part of the present invention, and thus its description is omitted.

第1図はメインコントローラ100の概略的な内部構成を
示すものである。
FIG. 1 shows a schematic internal configuration of the main controller 100.

第1図において、ノーマル送受信回路20は各ノードに接
続されたセンサ群1−1,1−2,…1−Nおよびアクチュ
エータ群2−1,2−2,…2−Nの制御等の通常の動作を
実行するものである。すなわち、ノーマル送受信回路20
は各ノードに接続されたアクチュエータ群2−1,2−2,
…2−Nをそれぞれ制御するデータDOを含む前記データ
フレーム信号(第3図(a)参照)を発生し、このデー
タフレーム信号をスイッチSW1の接点B−Aを介して各
ノード10−1,10−2,…10−Nに順次送出する。なお、ノ
ーマル送受信回路20の詳細もこの発明の要旨ではないの
で、これ以上の説明は省略する。
In FIG. 1, the normal transmission / reception circuit 20 is a normal control unit for controlling the sensor groups 1-1, 1-2, ... 1-N and the actuator groups 2-1, 2-2 ,. The operation of is executed. That is, the normal transceiver circuit 20
Is a group of actuators 2-1, 2-2, connected to each node.
The data frame signal (see FIG. 3 (a)) including the data DO for controlling each 2-N is generated, and this data frame signal is sent to each node 10-1, through the contact B-A of the switch SW1. 10-2, ... 10-N are sequentially transmitted. Since the details of the normal transmission / reception circuit 20 are not the subject matter of the present invention, further description will be omitted.

電源オン検出回路30は電源オンによるシステムの立上げ
を検出し、該検出により初期フレーム生成回路40を動作
させるとともに、スイッチSW1の接点をA−C側に切り
替える。
The power-on detection circuit 30 detects the start-up of the system when the power is turned on, operates the initial frame generation circuit 40 by the detection, and switches the contact of the switch SW1 to the AC side.

初期フレーム生成回路40は、電源オン検出回路30から検
出信号が入力されると、第4図に示すような、初期フレ
ーム信号を発生し、これをスイッチSW1の接点A−Cを
介して送出する。この初期フレーム信号は、第3図に示
したデータフレーム信号同様、第1のスタートコードST
I、第2のスタートコードSTO、出力点数検出データD
O′、ストップコードSP、CRCコード、ERRコードから成
っている。ただし、出力点数検出データDO′は、各ノー
ドでアクチュエータが動作しないようにmビットの
「0」データから成っている。ここでmはこのシステム
で用いられる全アクチュエータの数よりも充分多いビッ
ト数に設定されている。またエラーコードERRは、各ノ
ードでエラーを検出した場合、そのノードで所定のエラ
ーコードを出力させるために設けたものであり、メイン
コントローラ100からは全て“0"レベルのエラーコードE
RRが発生される。
When the detection signal is input from the power-on detection circuit 30, the initial frame generation circuit 40 generates an initial frame signal as shown in FIG. 4, and sends this out through the contacts A-C of the switch SW1. . This initial frame signal is the same as the data frame signal shown in FIG.
I, second start code STO, output point detection data D
It consists of O ', stop code SP, CRC code and ERR code. However, the output point detection data DO 'is composed of m-bit "0" data so that the actuator does not operate at each node. Here, m is set to a bit number sufficiently larger than the number of all actuators used in this system. The error code ERR is provided to output a predetermined error code at each node when an error is detected at that node.
RR is generated.

この初期フレーム信号は、先に説明したデータフレーム
信号同様、ノード10−1→ノード10−2→ノード10−3
→ノード10−4→10−5へと順次伝播されることにより
初期フレーム信号中の出力点数検出データDO′を該当す
るノードへ割り振るとともに、各データで得たセンサ群
の検出データを同初期フレーム信号中へ取り込むように
している。すなわち、各ノード10−1,10−2,…10−Nに
おいては、入力された初期フレーム信号の第1のスター
トコードSTIのあとに当該ノードに接続されるセンサ群
1−1,1−2,…1−NのノードDIが付加され、第2のス
タートコードSTOのあとに続くデータDOから当該ノード
に接続されるアクチュエータ群2−1,2−2,…2−Nに
対するデータが抜き取られる。
This initial frame signal is the same as the data frame signal described above, that is, node 10-1 → node 10-2 → node 10-3
→ Nodes 10-4 → 10-5 are sequentially propagated to allocate the output point detection data DO ′ in the initial frame signal to the corresponding node, and the detection data of the sensor group obtained by each data is also transferred to the same initial frame. I am trying to take it into the signal. That is, in each of the nodes 10-1, 10-2, ... 10-N, the sensor groups 1-1, 1-2 connected to the node after the first start code STI of the input initial frame signal. , ... 1-N node DI is added, and data for the actuator groups 2-1, 2-2, ... 2-N connected to the relevant node is extracted from the data DO following the second start code STO. .

そして、ノード10−1,10−2,…10−(N−1)を経て、
ノード10−Nから出力される初期フレーム信号は、第5
図に示すような状態となってメインコントローラ100の
入力回路50に入力される 入力回路50は、入力された初期フレーム信号に対して所
定の復調処理を加えた後、該信号をSW2に入力する。
Then, via nodes 10-1, 10-2, ... 10- (N-1),
The initial frame signal output from the node 10-N is the fifth
The input circuit 50 is input to the input circuit 50 of the main controller 100 in the state as shown in the figure. The input circuit 50 applies a predetermined demodulation process to the input initial frame signal and then inputs the signal to SW2. .

ここで、初期フレーム信号がメインコントローラ100の
受信側に入力されたときには、スイッチSW2は状態(A
−C)側に切替っており、入力された初期フレーム信号
は入力点数検出部60および出力点数検出部70へ入力され
る。
Here, when the initial frame signal is input to the receiving side of the main controller 100, the switch SW2 is in the state (A
The input initial frame signal is switched to the −C) side and is input to the input point detection unit 60 and the output point detection unit 70.

入力点数検出部60は入力された初期フレーム信号中の第
1のスタートコードに続くデータDIのビット数LIをカウ
ントし、このカウント結果LIをサンプリングタイム生成
回路80に入力する。このカウント値LIはノード10−1〜
10−Nに接続された全てのセンサ数を表している。
The input point detection unit 60 counts the number of bits LI of the data DI following the first start code in the input initial frame signal, and inputs the count result LI to the sampling time generation circuit 80. This count value LI is for nodes 10-1 to 10-1.
It represents the total number of sensors connected to 10-N.

出力点数検出部60は入力された初期フレーム信号中の第
2のスタートコードSTOに続くデータDOのビット数lを
計数し、この計数値lを第4図に示した初期フレーム送
出時の出力点数検出データDO′のビット数mから減算
し、この減算結果LO(=m−l)をノーマル送受信回路
20およびサンプリングタイム生成回路80に入力する。こ
のカウント値LOはノード10−1〜10−Nに接続された全
てのアクチュエータ数を表している。
The output point detection unit 60 counts the bit number 1 of the data DO following the second start code STO in the input initial frame signal, and the counted value 1 is the output point at the time of initial frame transmission shown in FIG. The detection result DO ′ is subtracted from the bit number m, and the subtraction result LO (= m−1) is used for the normal transmission / reception circuit.
20 and the sampling time generation circuit 80. This count value LO represents the number of all actuators connected to the nodes 10-1 to 10-N.

ノーマル送受信回路20は入力された出力点数LOから第3
図に示した通常データフレーム信号中のアクチュエータ
駆動データDOの長さを認知する。
The normal transmitter / receiver circuit 20 is the third from the input output point LO.
The length of the actuator drive data DO in the normal data frame signal shown in the figure is recognized.

サンプリングタイム生成回路80では、入力された入力点
数LIに基ずきノーマル送受信回路20から出力される通常
データフレーム信号の送出周期T(サンプリングタイ
ム)を決定し(第6図参照)、該決定したサンプリング
タイムTでデータフレーム信号の送出が行われるように
ノーマル送受信回路20でのデータ送出を制御する。すな
わち、サンプリングタイム生成回路80には、入力された
入力点数LIの値が小さくなればなるほど、データフレー
ム信号と次のデータフレーム信号との間のインターバル
時間tを短くする所定の関係式が予め設定されており、
サンプリングタイム生成回路80は入力された入力点数LI
に対応するインターバル時間tを取り出す。さらに、サ
ンプリングタイム生成回路80には出力点数LOも入力され
ており、入力された出力点数LOから送出すべきデータフ
レーム信号の信号長Lを決定し、該信号長Lに前記求め
たインターバル時間tを加え、t+Lをサンプリング周
期Tとして決定する。
The sampling time generation circuit 80 determines the transmission cycle T (sampling time) of the normal data frame signal output from the normal transmission / reception circuit 20 based on the input number LI of inputs (see FIG. 6). The data transmission in the normal transmission / reception circuit 20 is controlled so that the data frame signal is transmitted at the sampling time T. That is, the sampling time generation circuit 80 is preset with a predetermined relational expression that shortens the interval time t between the data frame signal and the next data frame signal as the value of the input input points LI becomes smaller. Has been done,
Sampling time generation circuit 80 is the number of input points LI
The interval time t corresponding to is taken out. Further, the number of output points LO is also input to the sampling time generation circuit 80, the signal length L of the data frame signal to be transmitted is determined from the input number of output points LO, and the obtained interval time t is set to the signal length L. And t + L is determined as the sampling period T.

そして、サンプリングタイム生成回路80は、ノーマル送
受信回路20によるデータフレーム信号の送出の際、上記
求めたサンプリング周期Tに同期したクロック信号Csを
ノーマル送受信回路20に入力することで、ノーマル送受
信回路20からデータフレーム信号を上記求めたサンプリ
ング周期Tで送出させるようにする。勿論、ノーマル送
受信回路20によるデータフレーム信号の送出時には、ス
イッチSW1およびSW2の接点は、状態(A−B)側に切り
替わっている。
Then, the sampling time generation circuit 80 inputs the clock signal Cs synchronized with the above-obtained sampling period T to the normal transmission / reception circuit 20 when the normal transmission / reception circuit 20 transmits the data frame signal, The data frame signal is transmitted at the sampling period T obtained above. Of course, when the normal transmission / reception circuit 20 transmits the data frame signal, the contacts of the switches SW1 and SW2 are switched to the state (AB) side.

このようにこの実施例によれば、システム内のセンサの
全ビット数に応じてデータフレーム信号の送出周期を可
変するようにしたので、入出力点数の少ないシステムの
場合も効率良いデータ伝送を成し得るようになると共
に、データフレーム信号長を自動的に決定することがで
きる。
As described above, according to this embodiment, the transmission cycle of the data frame signal is variable according to the total number of bits of the sensor in the system, so that efficient data transmission is achieved even in a system with a small number of input / output points. In addition, the data frame signal length can be automatically determined.

なお、上記実施例は適宜の変更を加え得るものであり、
例えば、入出力点数の検出の際、複数回の検出結果が一
致したときにのみ、その検出データを正しいデータとし
て取り込むようにしてもよい。
It should be noted that the above-mentioned embodiment can be appropriately modified.
For example, when detecting the number of input / output points, the detected data may be taken in as correct data only when the detection results of a plurality of times match.

また、上記実施例においては、インターバル時間tを入
力点数LIによって決定するようにしたが、インターバル
時間tを出力点数LOによって、あるいは入力点数LIおよ
び出力点数LOによって検定するようにしてもよい。
Further, in the above embodiment, the interval time t is determined by the input score LI, but the interval time t may be verified by the output score LO or by the input score LI and the output score LO.

[発明の効果] 以上説明したようにこの発明によれば、装置内の端末数
に応じてデータフレーム信号の送出周期を可変するよう
にしたので、端末数が少なくなればなるほど伝送効率が
低下することがなくなり、小さなシステムでもリアルタ
イム制御が可能になった。またこの発明では、データフ
レーム信号中の出力データのデータ長は初期フレーム信
号を用いて検出した実際のアクチュエータの全ビット数
に応じて決定されるので、伝送効率が低下することもな
くなり、小さなシステムでもリアルタイム制御が可能に
なる。
[Effects of the Invention] As described above, according to the present invention, the transmission cycle of the data frame signal is varied according to the number of terminals in the device, so that the transmission efficiency decreases as the number of terminals decreases. No longer, real-time control is possible even with small systems. Further, in the present invention, since the data length of the output data in the data frame signal is determined according to the total number of bits of the actual actuator detected by using the initial frame signal, the transmission efficiency is not lowered and a small system is used. But real-time control is possible.

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

第1図はこの発明の実施例を示すブロック図、第2図は
この発明の直列制御装置の全体構成を示すブロック図、
第3図はデータフレーム信号の伝播態様を示す図、第4
図および第5図は初期フレーム信号を示す図、第6図は
サンプリング周期の説明図である。 1……センサ群、2……アクチュエータ群 10……ノード、20……ノーマル送受信回路 40……初期フレーム生成回路、80……サンプリングタイ
ム生成回路
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing the overall configuration of a serial control device of the present invention.
FIG. 3 is a diagram showing a propagation mode of a data frame signal, and FIG.
FIG. 5 and FIG. 5 are diagrams showing the initial frame signal, and FIG. 6 is an explanatory diagram of the sampling period. 1 …… Sensor group, 2 …… Actuator group 10 …… Node, 20 …… Normal transmission / reception circuit 40 …… Initial frame generation circuit, 80 …… Sampling time generation circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】1乃至複数のセンサ及び1乃至複数のアク
チュエータを接続したノードを直列接続し、該複数のノ
ードをメインコントローラを含んで閉ループ状に接続す
るとともに、前記メインコントローラは第1の特殊コー
ドと第2の特殊コードと前記アクチュエータへの出力デ
ータを含むデータフレーム信号を送出し、前記各ノード
は当該ノードに接続されるセンサからのデータを前記第
1の特殊コードの後に付加し、当該ノードに接続される
アクチュエータへの出力データを前記第2の特殊コード
の後から抜き取るようにした直列制御装置において、 前記メインコントローラは、 前記データフレーム信号の送出に先立って、前記第1の
特殊コードと第2の特殊コードとアクチュエータ数検出
用のデータを含む初期フレーム信号を送出する送出手段
と、 前記複数のノードを経て入力された前記初期フレーム信
号に基づき前記センサの全ビット数および前記アクチュ
エータの全ビット数を検出する端末ビット数検出手段
と、 この端末ビット数検出手段の検出値に応じて前記データ
フレーム信号の送出間隔を可変制御する制御手段と、 を具える直列制御装置。
1. A node in which one or a plurality of sensors and one or a plurality of actuators are connected is connected in series, and the plurality of nodes are connected in a closed loop including a main controller, and the main controller is a first special device. A data frame signal including a code, a second special code, and output data to the actuator is transmitted, and each node adds data from a sensor connected to the node after the first special code, In the serial controller configured to extract the output data to the actuator connected to the node from after the second special code, the main controller may be configured to output the first special code before sending the data frame signal. And sends an initial frame signal including the second special code and data for detecting the number of actuators. Sending means, terminal bit number detecting means for detecting the total number of bits of the sensor and the total number of bits of the actuator based on the initial frame signal input via the plurality of nodes, and detection of the terminal bit number detecting means A serial control device comprising: a control unit that variably controls a transmission interval of the data frame signal according to a value.
【請求項2】1乃至複数のセンサ及び1乃至複数のアク
チュエータを接続したノードを直列接続し、該複数のノ
ードをメインコントローラを含んで閉ループ状に接続す
るとともに、前記メインコントローラは第1の特殊コー
ドと第2の特殊コードと前記アクチュエータへの出力デ
ータを含むデータフレーム信号を送出し、前記各ノード
は当該ノードに接続されるセンサからのデータを前記第
1の特殊コードの後に付加し、当該ノードに接続される
アクチュエータへの出力データを前記第2の特殊コード
の後から抜き取るようにした直列制御装置において、 前記メインコントローラは、 前記データフレーム信号の送出に先立って、前記第1の
特殊コードと第2の特殊コードとアクチュエータ数検出
用のデータを含む初期フレーム信号を送出する送出手段
と、 前記複数のノードを経て入力された前記初期フレーム信
号に基づき前記センサの全ビット数および前記アクチュ
エータの全ビット数を検出する端末ビット数検出手段
と、 この端末ビット数検出手段によって検出されたアクチュ
エータの全ビット数に基づき前記データフレーム信号中
のアクチュエータへの出力データのデータ長を決定する
手段と、 を具える直列制御装置。
2. A node in which one or a plurality of sensors and one or a plurality of actuators are connected is connected in series, and the plurality of nodes are connected in a closed loop including a main controller, and the main controller is a first special device. A data frame signal including a code, a second special code, and output data to the actuator is transmitted, and each node adds data from a sensor connected to the node after the first special code, In the serial controller configured to extract the output data to the actuator connected to the node from after the second special code, the main controller may be configured to output the first special code before sending the data frame signal. And sends an initial frame signal including the second special code and data for detecting the number of actuators. Sending means, terminal bit number detecting means for detecting the total bit number of the sensor and the total bit number of the actuator based on the initial frame signal input via the plurality of nodes, and the terminal bit number detecting means for detecting And a means for determining the data length of the output data to the actuator in the data frame signal based on the total number of bits of the generated actuator.
JP1336888A 1989-12-26 1989-12-26 Series controller Expired - Lifetime JPH0785561B2 (en)

Priority Applications (9)

Application Number Priority Date Filing Date Title
JP1336888A JPH0785561B2 (en) 1989-12-26 1989-12-26 Series controller
PCT/JP1990/001707 WO1991010306A1 (en) 1989-12-26 1990-12-26 Serial controller
EP91901533A EP0507947B1 (en) 1989-12-26 1990-12-26 Serial controller
US07/861,862 US5461617A (en) 1989-12-26 1990-12-26 Serial controller
DE69030816T DE69030816T2 (en) 1989-12-26 1990-12-26 SERIAL CONTROL UNIT
EP96106642A EP0726665A2 (en) 1989-12-26 1990-12-26 Serial controller
KR1019920701477A KR960013967B1 (en) 1989-12-26 1990-12-26 Serial control device
US08/436,931 US5587995A (en) 1989-12-26 1995-05-08 Serial controller
US08/751,796 US5784308A (en) 1989-12-26 1996-11-18 Binary subtraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1336888A JPH0785561B2 (en) 1989-12-26 1989-12-26 Series controller

Publications (2)

Publication Number Publication Date
JPH03196735A JPH03196735A (en) 1991-08-28
JPH0785561B2 true JPH0785561B2 (en) 1995-09-13

Family

ID=18303579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1336888A Expired - Lifetime JPH0785561B2 (en) 1989-12-26 1989-12-26 Series controller

Country Status (1)

Country Link
JP (1) JPH0785561B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2566110B1 (en) * 2011-08-30 2014-10-01 Siemens Aktiengesellschaft Method for transmitting telegrams in an automation system
JP6291337B2 (en) * 2014-04-28 2018-03-14 株式会社東芝 Data collection system and data collection method

Also Published As

Publication number Publication date
JPH03196735A (en) 1991-08-28

Similar Documents

Publication Publication Date Title
KR960013967B1 (en) Serial control device
WO1991010301A1 (en) Error display device of data transmission system
JPH0785561B2 (en) Series controller
US5450419A (en) Error checking apparatus and method for a serial signal transmission system
JP2562703B2 (en) Data input controller for serial controller
JP3550442B2 (en) Encoder signal communication method
JPH0785560B2 (en) Device for detecting the number of terminals in a serial controller
JPH0817399B2 (en) Series controller
JPS63138826A (en) Data transmission system
JPS586636A (en) Data transmission system of remote monitoring controller
JPH0785559B2 (en) Device for detecting the number of terminals in a serial controller
JPH0258448A (en) Serial controller
JP2500865B2 (en) Controller failure diagnosis device for data transmission system
JPH04329098A (en) Remote monitor
JP2561120B2 (en) Alarm monitoring controller
JPH0828735B2 (en) Multiple data link
JPS6076840A (en) Transmission system of state change information
JPS61214840A (en) Monitor information transferring system
JPH02120946A (en) Control system for distributed file
JPS6028458B2 (en) Data collection method
JPS62216452A (en) Serial transmission equipment
JPS5838808B2 (en) Data transfer method in multiprocessor system
JPS61177836A (en) Two-way data transmitting system
JPS63314939A (en) Line abnormality detecting system
JPH088581B2 (en) Multiple data link