JPH02301339A - Bus type information transmitter - Google Patents

Bus type information transmitter

Info

Publication number
JPH02301339A
JPH02301339A JP1122129A JP12212989A JPH02301339A JP H02301339 A JPH02301339 A JP H02301339A JP 1122129 A JP1122129 A JP 1122129A JP 12212989 A JP12212989 A JP 12212989A JP H02301339 A JPH02301339 A JP H02301339A
Authority
JP
Japan
Prior art keywords
output
information
slave station
station
master station
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
JP1122129A
Other languages
Japanese (ja)
Inventor
Yoshibumi Hara
義文 原
Masakazu Nakajima
正和 中島
Tsutomu Sakurai
努 桜井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1122129A priority Critical patent/JPH02301339A/en
Publication of JPH02301339A publication Critical patent/JPH02301339A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To direct the operating direction of an output actuator or the like in the slave station of an automatic machine in the safety side by storing output definition information at a faulty state sent in advance from a master station in an output slave station, storing the level of an output terminal of the output slave station into the state before the generation of a fault at the faulty state according to the storage content or resetting the storage content. CONSTITUTION:The transmission format of serial information by one frame is constituted of a header part, an address part designating a specific slave station, a mode part, a data bit and a reply bit in total 10 and several bits. Depending on the content of the mode part, the case is distinguished into the case of inputting the information from the master station to the slave station, the case of outputting the information to the slave station, and the case of the output whether it is kept to the state before the fault detection or released when the slave station detects the fault of the transmission line. Thus, whether an actuator or the like connecting to the output terminal of the output slave station is held to the state before detection or released when the slave station detects the fault of the transmission line according to the mode part. Thus, the mechanism of the automatic machine is operated in a safe state.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は親局と複数の子局を1本の伝送路にていもする
式に接続し、シリアル情報で親局と子局とが1ビットの
入出力情報を相互に伝達し合うバス型情報伝送装置に関
する。
[Detailed Description of the Invention] Industrial Application Field The present invention connects a master station and a plurality of slave stations through a single transmission path, and uses serial information to communicate between the master station and slave stations using one bit. The present invention relates to a bus-type information transmission device that mutually transmits input and output information.

従来の技術 近年、産業用自動機械では機能が高度化し使用するセン
サーやアクチュエータの数が100点を超えるものが珍
しくない。また工場内で自動機械がライン化され相互の
情報交換も必ずといってよいほど必要となる。このよう
な設備内あるいは設備間の配線を減らすため、設備内の
あちこちにリモートI10と呼ばれる入出力用の制御ユ
ニットを子局として配置し、この子局へセンサーやアク
チュエータへの配線をする一方で、設備の総合的な制御
を行うマイクロコンピュータとつながる親局へ、1本の
ケーブルで子局へ接続し情報をシリアル伝送することに
より省配線化する方法が実用化段階に入ってきた。
Conventional Technology In recent years, industrial automatic machines have become more sophisticated, and it is not uncommon for machines to use more than 100 sensors and actuators. In addition, automatic machines are organized into lines within factories, and mutual information exchange is almost always necessary. In order to reduce wiring within or between equipment, input/output control units called remote I10s are placed throughout the equipment as slave stations, and the wiring to sensors and actuators is connected to these slave stations. A method of reducing wiring by serially transmitting information by connecting a master station connected to a microcomputer that performs comprehensive control of equipment to a slave station with a single cable has entered the practical stage.

バ・ス型の伝送方式として米国のインテル社のBITB
USといろ方式が実用化されている。第12図はBIT
BUS応用した省配線システムの図である。1はセンサ
ー、2は電磁バルブなどのアクチュエータ、3及び3a
は入力用の子局、4は出力用の子局である。5は親局で
、これらの子局3,4.3aと伝送路6を介して情報の
やり取りをして子局3,4.3aにつながるセンサー1
.1aの状態やアクチュエータ2を制御する。′伝送路
6はディファレンシャル方式のR8485を採用してお
り、各子局3.4,3aへの接続はツイストペアケーブ
ルを使用している。その1フレ一ム分の伝送フォーマッ
トは第13図に示すように5DLCとなっている。
Intel Corporation's BITB in the United States is a bus-type transmission system.
The US Toiro system has been put into practical use. Figure 12 is BIT
It is a diagram of a wiring-saving system using BUS. 1 is a sensor, 2 is an actuator such as a solenoid valve, 3 and 3a
is an input slave station, and 4 is an output slave station. Reference numeral 5 denotes a master station, which exchanges information with these slave stations 3, 4.3a via a transmission line 6, and connects a sensor 1 to the slave stations 3, 4.3a.
.. The state of 1a and the actuator 2 are controlled. 'The transmission line 6 employs a differential type R8485, and connections to each slave station 3, 4, and 3a are made using twisted pair cables. The transmission format for one frame is 5DLC as shown in FIG.

発明が解決しようとする課題 上記従来例の伝送方式においては1フレ一ム分が1つの
アドレスに対して少な(とも7バイトすなわち56ビッ
ト必要である。また子局からセンサーの入力情報を得よ
うとすると、まず親局から子局に対して伝送路にその子
局のアドレスをのせたフォーマットの情報を流し、子局
から同様のフォーマットで送信される情報を得て完了す
る。
Problems to be Solved by the Invention In the conventional transmission system described above, one frame is small for one address (7 bytes, or 56 bits).Also, it is difficult to obtain sensor input information from a slave station. Then, first, the master station sends information in a format containing the address of the slave station to the slave station over the transmission path, and the process is completed by obtaining information transmitted from the slave station in the same format.

従って、1ビットの情報を得るために56ビットの2倍
以上の伝送時間を必要とする。そしてその時間は8ビッ
トの情報を得るときでも同じである。
Therefore, to obtain 1 bit of information, more than twice the transmission time of 56 bits is required. And the time is the same even when obtaining 8-bit information.

産業用の自動機械では高速な動きが必要なメカニズムを
持つもの゛も多く、その動きに対応するためには上記の
ような長い伝送フォーマットにするとスピードに間に合
わなくなるため、高速伝送が必要である。産業用の自動
機械ではノイズによる誤動作を無くすことも非常に重要
であるが、高速伝送するほどノイズに弱(なるという課
題がある。
Many industrial automatic machines have mechanisms that require high-speed movement, and in order to accommodate these movements, high-speed transmission is required because the long transmission format described above would not be able to keep up with the speed. Eliminating malfunctions caused by noise is extremely important for industrial automatic machines, but the problem is that the higher the transmission speed, the more susceptible they become to noise.

一方、産業用の自動機械ではセンサーやアクチュエータ
を制御する子局との伝送路が断線すると異常な動作をす
るのでバス型の伝送路に子局が接続されているかどうか
常時監視する必要がある。そのためには上記と同様の通
信を行わなければならず、高速性がますます必要とされ
る。
On the other hand, industrial automatic machines will operate abnormally if the transmission line between them and the slave stations that control sensors and actuators is disconnected, so it is necessary to constantly monitor whether the slave stations are connected to the bus-type transmission line. For this purpose, communication similar to the above must be performed, and high speed is increasingly required.

また、自動機械の動作中に何等かの要因で伝送路が断線
するという事故が発生すると、アクチュエータの動きは
親局の制御が効かないので不安全な状態となる。
Furthermore, if an accident occurs in which the transmission line is disconnected for some reason during the operation of the automatic machine, the movement of the actuator cannot be controlled by the master station, resulting in an unsafe condition.

本発明は上記問題点に鑑み、短い伝送フォーマットにし
て伝送スピードを遅くすること、及び伝送路が断線した
ときのアクチュエータ等の出力の動作を断線直前の状態
に記憶保持するかまたはオフすることができるように制
御することができるバス型情報伝送装置を提供するもの
である。
In view of the above-mentioned problems, the present invention provides a short transmission format to reduce the transmission speed, and when the transmission line is disconnected, the output operation of the actuator, etc. is stored in the state immediately before the disconnection or is turned off. The present invention provides a bus-type information transmission device that can be controlled in a manner that enables the following.

課題を解決するための手段 上記の問題点を解消するために本発明のバス型情報伝送
装置は−11フレーム分のシリアル情報の伝送フォーマ
ットをヘッダ部と、特定の子局を指定するためのアドレ
ス部と、モード部と、データビットと応答ビットの合計
10数ビットで構成し、以下の特徴を有する。
Means for Solving the Problems In order to solve the above problems, the bus type information transmission device of the present invention has a transmission format of serial information for -11 frames in a header part and an address for specifying a specific slave station. It consists of a total of more than 10 bits: a part, a mode part, a data bit, and a response bit, and has the following characteristics.

第1の発明では、前記モード部の内容により親局が子局
から情報を入力する場合と子局に情報を出力する場合と
子局が伝送路の異常を検出したときその出力を異常検出
の前の状態を保持するかまたはオフするかを設定する場
合に区別できるようにし、子局から情報を入力する場合
には前記データビットにアドレス部で指定された子局が
入力情報をセットする手段と、出力する場合には前記デ
ータビットに親局が出力情報をセットする手段と、前記
異常を検出したときその出力を異常検出の前の状態を保
持するかまたはオフするかを設定する情報を前記データ
ピッ十に親局がセットする手段と、子局に設けた伝送路
の異常を検出する手段と、前記データビットに親局がセ
ットした情報を記憶し、前記異常を検出したときその出
力を異常検出の前の状態を保持するかまたはオフする手
段とで構成している。
In the first invention, depending on the contents of the mode section, when the master station inputs information from the slave station, when outputs information to the slave station, and when the slave station detects an abnormality in the transmission path, the output is sent to the abnormality detection. Means for distinguishing when setting whether to maintain the previous state or turning off, and for the slave station to set input information in the data bit specified by the address part when inputting information from the slave station. and means for the master station to set output information in the data bit when outputting, and information for setting whether to maintain the output in the state before the abnormality detection or turn it off when the abnormality is detected. means for setting the data bit by the master station; means for detecting an abnormality in the transmission line provided in the slave station; and storing information set by the master station in the data bit, and outputting the output when the abnormality is detected. It consists of a means to maintain the state before abnormality detection or to turn it off.

第2の発明は、前記応答ビットのタイミングでは親局は
伝送路への出力を高インピーダンス状態とする手段と、
前記応答ビットにアドレス部で指定された子局によりl
をセットする手段と、該当する子局が存在しない場合の
伝送路の電位を設定する抵抗と、親局が前記応答ビット
のタイミングで伝送路の電位を監視し子局が存在するか
どうかを判断する手段と、子局から情報を入力する場合
には前記データビットにアドレス部で指定された子局が
入力情報をセットする手段と、出力する場合には前記デ
ータビットに親局が出力情報をセットする手段とで構成
している。
A second invention is characterized in that the master station sets the output to the transmission line in a high impedance state at the timing of the response bit;
l by the slave station specified in the address field in the response bit.
a resistor for setting the potential of the transmission line when the corresponding slave station does not exist, and a master station that monitors the potential of the transmission line at the timing of the response bit and determines whether or not a slave station exists. means for the slave station to set input information in the data bits specified in the address field when inputting information from the slave station; and means for the master station to set output information to the data bits when outputting information; It consists of a means for setting.

作   用 第1の発明は上記構成により、シリアル情報の1フレ一
ム分で、アドレス部とモード部で指定された子局の情報
が即時にデータビットとして入力または出力が可能にな
るため、データの伝送時間が短か(なる。そして、モー
ド部により子局が伝送路の異常を検出した時の出力用子
局の出力端子につながるアクチュエータ等を異常検知前
の状態に保持するかオフするかが設定できるため、自動
機械のメカニズムを安全な状態に動作させることができ
る。
According to the first invention, with the above configuration, the information of the slave station specified in the address field and the mode field can be immediately input or output as data bits in one frame of serial information. Is the transmission time short (or is it?).Then, when the slave station detects an abnormality in the transmission path, the mode section determines whether the actuator, etc. connected to the output terminal of the output slave station should be kept in the state before the abnormality was detected, or whether it should be turned off. can be set, allowing automatic machine mechanisms to operate in a safe state.

第2の発明では、シリアル情報の応答ビットにはアドレ
ス部及びモード部で指定された子局が正常であれば1が
セットされているので、このタイミングで親局はどの子
局が伝送路と断線しているのか、故障しているかどうか
を即時に判断できるため、親局が他の正常な子局の出力
を安全な方向へ制御することができる。
In the second invention, the response bit of the serial information is set to 1 if the slave station specified in the address field and the mode field is normal, so at this timing the master station can determine which slave station is connected to the transmission line. Since it can be immediately determined whether there is a disconnection or a failure, the master station can control the output of other normal slave stations in a safe direction.

実施例 以下、本発明の一実施例におけるバス型情報伝送装置に
ついて、図面を参照しながら説明する。
Embodiment Hereinafter, a bus-type information transmission device according to an embodiment of the present invention will be described with reference to the drawings.

第1図は本実施例におけるバス型情報伝送装置の親局回
路構成図を示す。9は信号の伝送路となるバスへ接続す
るためのバス端子である。10はマイクロコンピュータ
で、子局のセンサーやアクチュエータの入出力情報をバ
ス端子を通して解読または制御し、その内容を上位の制
御装置との入力情報や出力情報としてやりとりする。o
po。
FIG. 1 shows a block diagram of a master station circuit of a bus-type information transmission device in this embodiment. Reference numeral 9 represents a bus terminal for connection to a bus serving as a signal transmission path. A microcomputer 10 decodes or controls the input/output information of the sensors and actuators of the slave stations through a bus terminal, and exchanges the contents as input and output information with a higher-level control device. o
po.

OPl、OF2は出力線、IPO,fPlは人力線、I
RTは割り込み線である。11は3ステート出力バツフ
アで、出力の状態をHIGH,LOW及び高インピーダ
ンスの3つの状態に制御できる。OPIの出力線がHI
GHのときOPOの状態がそのまま出力され、OPIの
出力線がLOW(=論理0)のとき高インピーダンスと
なる。12は大力バッファである。13はウィンドコン
パレータで、バス端子9の電圧レベルが−VE以上+V
l下のとき出力I P 1カHI GH(=mJ11 
)となる。(V E let V S (7)約1/3
〜1/2)従って、3ステート出力バツフア11が高イ
ンピーダンスのときバス端子9に何も接続されていない
と、バス端子9の電圧レベルは2つの抵抗R1で分圧さ
れ約Oボルトとなるため出力IPIがHIGHとなる。
OPl, OF2 are output lines, IPO, fPl are human power lines, I
RT is an interrupt line. Reference numeral 11 is a 3-state output buffer, and the output state can be controlled into three states: HIGH, LOW, and high impedance. OPI output line is HI
When GH, the state of OPO is output as is, and when the output line of OPI is LOW (=logic 0), it becomes high impedance. 12 is a large power buffer. 13 is a window comparator, when the voltage level of bus terminal 9 is -VE or more +V
When the output is below 1, the output I P 1 is HI GH (=mJ11
). (V E let V S (7) Approximately 1/3
~1/2) Therefore, when the 3-state output buffer 11 is at high impedance and nothing is connected to the bus terminal 9, the voltage level at the bus terminal 9 will be divided by the two resistors R1 and will be about O volts. Output IPI becomes HIGH.

14はインターバルタイマで、バス端子9のシリアル信
号のクロック周期と同じ周期で発振する。マイクロコン
ピュータ10の出力線OPIがHIGHで動作し、上記
周期でIPT信号を発生する。
Reference numeral 14 denotes an interval timer, which oscillates at the same cycle as the clock cycle of the serial signal at the bus terminal 9. The output line OPI of the microcomputer 10 operates at HIGH and generates the IPT signal at the above period.

第2図は本実施例における1フレ一ム分の伝送フォーマ
ットを示す。図のように、1個分のフレームは、スター
トビット、モード部2ビット、?ドレス部5ビット、デ
ータビット、パリティビット、応答ビット、ストップ3
ビットで構成される。モード部は同一アドレスに対して
、入力用の子局、出力用の子局の選択と出力用の子局に
ついて、伝送路の断線等の異常時に出力を「異常発生前
の状態を保持する」、または「出力を無条件にオフする
」のいずれかに設定できるようにするためのものである
。アドレス部は子局の番号を指定するためのもので、本
実施例では5ビット分即ち32個指定できる。第3図〜
第5図は親局からのバス端子9への信号出力波形を表す
。スタートビットは必ず「1」で、ストップ部は必ず「
0」とする。データビットは、第3図のように入力モー
ドの時、即ちモード部が「01」のときは親局の3ステ
ート出力バツフア11が高インピーダンス状態になり、
バス端子電圧は約Ovとなっている。また、第4図と第
5図の出力モードと異常時の出力定義モードにおいては
データビットは、親局のそのアドレスの出力用子局の出
力の制御信号となる。そして、モード部が「10」の時
は、データビットが「1」のとき指定した子局をオンし
、「0」のときはオフする。またモード部が「Ol」の
ときは、後述のように子局が異常を検出した時にデータ
ビットが「1」のときは無条件に出力オフ、「0」のと
きは出力を保持するように子局の内部回路を構成してい
る。パリティビットは、親局が入力モードの時は子局が
その出力レベルを決定するため、親局の前記出力バッフ
ァ11は高インピーダンス状態に制御される。また出力
モードの時は、親局がスタートビットからデータビット
までの9ビット分の奇数パリティ出力をパリティビット
としてセットする。応答ビットは子局から親局への応答
信号を表し、必ずこのタイミングでは前記出力バッファ
11は高インピーダンス状態である。したがって、前述
のように親局はウィンドコンパレータ13の出力をこの
タイミング監視することにより、指定した子局がつなが
つているかどうかを即座に判断することができる。
FIG. 2 shows the transmission format for one frame in this embodiment. As shown in the figure, one frame consists of a start bit, 2 bits in the mode part, and ? Address part 5 bits, data bit, parity bit, response bit, stop 3
Consists of bits. The mode section selects an input slave station and an output slave station for the same address, and maintains the output before the error occurs in the event of an error such as a disconnection of the transmission line. , or "turn off the output unconditionally". The address part is for specifying the number of the slave station, and in this embodiment, 5 bits, that is, 32 pieces can be specified. Figure 3~
FIG. 5 shows the signal output waveform from the master station to the bus terminal 9. The start bit must be “1” and the stop part must be “1”.
0". When the data bit is in the input mode as shown in FIG. 3, that is, when the mode part is "01", the 3-state output buffer 11 of the master station is in a high impedance state,
The bus terminal voltage is approximately Ov. Furthermore, in the output mode of FIGS. 4 and 5 and the abnormal output definition mode, the data bit becomes a control signal for the output of the slave station for outputting the address of the master station. When the mode part is "10", the specified slave station is turned on when the data bit is "1", and turned off when it is "0". Also, when the mode part is "Ol", when the slave station detects an abnormality as described later, if the data bit is "1", the output will be turned off unconditionally, and if it is "0", the output will be held. It constitutes the internal circuit of the slave station. Since the parity bit determines the output level of the slave station when the master station is in the input mode, the output buffer 11 of the master station is controlled to a high impedance state. In the output mode, the master station sets the odd parity output of 9 bits from the start bit to the data bit as the parity bit. The response bit represents a response signal from the slave station to the master station, and the output buffer 11 is always in a high impedance state at this timing. Therefore, as described above, by monitoring the output of the window comparator 13 at this timing, the master station can immediately determine whether or not the designated slave station is connected.

第6図は第3図のような信号を出力するため、マイクロ
コンピュータ10が出力線OPO,OPIと入力線ip
o、tpiを制御する順番表を示す。また第7図は第4
図に対応する順番表である。なお、図のRはバス端子の
電圧レベルを読み込むことを示す。順番表のシーケンス
番号の遷移のタイミングは、インターバルタイマ14か
らの割込信号IRTで行う。
In FIG. 6, in order to output the signals as shown in FIG. 3, the microcomputer 10 connects output lines OPO, OPI and input line ip.
The order table for controlling o and tpi is shown. Also, Figure 7 shows the 4th
It is an order table corresponding to the figure. Note that R in the figure indicates reading the voltage level of the bus terminal. The timing of the transition of the sequence number in the order table is determined by the interrupt signal IRT from the interval timer 14.

第8図は本実施例における入力用の子局の回路構成図を
示す。第9図はその制御タイミング図を示す。第8図に
おいて、9は前記と同じバス端子、15.15aは大力
バッファ、16,16a。
FIG. 8 shows a circuit configuration diagram of the input slave station in this embodiment. FIG. 9 shows the control timing diagram. In FIG. 8, 9 is the same bus terminal as above, 15.15a is a large power buffer, and 16, 16a.

16bは3ステート出力バツフア、17 +  17 
a 。
16b is a 3-state output buffer, 17 + 17
a.

17 b、 17 cは3人力のANDゲート、18は
Dフリップフロラプ回路、19はパリティ発生回路で、
8ビットの入力に対し奇数パリティ出力をする。20は
タイミング発生回路であり、バス端子9からの信号SI
Gの立上りを検出して、第9図のSFT、T、、T2.
T、、LD、という信号を発生する。21は7ビットの
シフトレジスタで前記シフトパルス信号SFTにより、
バス端子9からシリアル情報を一時記憶する。22はモ
ード判定回路で、シリアル情報のモード部(第2図参照
)の信号をデコードしてその内容が「01」の時、IN
信号を出力する。23はその子局のアドレスを指定する
スイッチ群であり、+Vccは「論理1」を示す二24
はアドレス一致検出回路で、前記スイッチ群23とシリ
アル情報のアドレス部(第2図参照)の信号とが一致す
るとき一致信号AEQが出力される。本図では子局のア
ドレスとしてスイッチ群23には’0OIIOJが設定
されている。
17 b and 17 c are three-man-powered AND gates, 18 is a D flip-flop circuit, and 19 is a parity generation circuit.
Outputs odd parity for 8-bit input. 20 is a timing generation circuit, which receives the signal SI from the bus terminal 9.
Detecting the rising edge of G, SFT, T, , T2 .
It generates signals T,,LD,. 21 is a 7-bit shift register which is controlled by the shift pulse signal SFT.
Serial information is temporarily stored from the bus terminal 9. 22 is a mode determination circuit which decodes the signal of the mode part of the serial information (see Figure 2), and when the content is "01", the IN
Output a signal. 23 is a switch group that specifies the address of the slave station, and +Vcc is 224, which indicates "logic 1".
2 is an address match detection circuit, which outputs a match signal AEQ when the signals of the switch group 23 and the address part of the serial information (see FIG. 2) match. In this figure, '0OIIOJ' is set in the switch group 23 as the address of the slave station.

第9図は親局がアドレスが’0OIIOJの子局の入力
状態を読み込むもので、同図に示すBUS信号がバス端
子9に入力されるとタイミング発生回路Aにより出力さ
れたSFTパルスにより、シフトレジスタAには、モー
ド部とアドレス部のデータがそれぞれ記憶される。する
と、この子局のアドレスと一致しているので、ア゛ドレ
ス一致検出回路24の出力AEQ信号が「論理1」とな
り、またモード判定回路22のIN信号が「論理1」と
なる。またLD、パルス信号でセンサ信号入力端子7の
信号レベルがDフリップフロップ回路18にセットされ
る。そして、T、信号が出力されるタイミングでは、セ
ンサ信号入力端子7の信号レベルを記憶しているDフリ
ップフロップ回路18の出力DIが、出力バッファ16
を介してバス端子9に出力されてデータビットとなる。
In Fig. 9, the master station reads the input state of the slave station whose address is '0OIIOJ. When the BUS signal shown in the figure is input to bus terminal 9, the SFT pulse output from timing generation circuit A causes a shift. Register A stores data in the mode section and address section, respectively. Then, since the address matches the address of this slave station, the output AEQ signal of the address coincidence detection circuit 24 becomes "logic 1", and the IN signal of the mode determination circuit 22 becomes "logic 1". Further, the signal level of the sensor signal input terminal 7 is set in the D flip-flop circuit 18 by the LD and pulse signals. Then, at the timing when the T signal is output, the output DI of the D flip-flop circuit 18 that stores the signal level of the sensor signal input terminal 7 is output from the output buffer 16.
The signal is output to the bus terminal 9 via the bus terminal 9 and becomes a data bit.

また、Dフリップフロップ18の出力DIは入力バリテ
ィ発生回路19へ入力されているので、この内容とモー
ド部、アドレス部の内容との奇数パリティ出力が次のT
2信号の出力タイミングでバス端子9に出力されてパリ
ティビットとなる。T、信号のタイミングでは、バス端
子9へ伝送路への応答ビットとして「論理IJで出力さ
れる。なおりUS信号の破線部は子局により信号レベル
が確定されているところを示す。
Furthermore, since the output DI of the D flip-flop 18 is input to the input parity generation circuit 19, the odd parity output of this content and the contents of the mode field and the address field is the next T.
It is output to the bus terminal 9 at the output timing of the two signals and becomes a parity bit. At the timing of the T signal, it is output to the bus terminal 9 as a response bit to the transmission line in the form of logic IJ.The broken line portion of the US signal indicates that the signal level has been determined by the slave station.

第10図は本実施例における出力用の子局の回路構成図
を示す。第8図と同一の番号が符しであるものは、第8
図の回路と全く同一の機能をもつもので説明は省略する
。17d、17eは3人力のANDゲート、18a、1
8bは079117077回路、25は2人力のORゲ
ート、26は2人力のNANDゲート、27は2人力の
NANDゲート付出力バッファを示す。出バッファ27
の出力をLOWレベルにすると、°rクチュエータ等を
オンできる。28はタイミング発生回路で、バス端子9
からの信号S[Gの立上りを検出して、第11図の’E
FT、T3.LD2という信号を発生ずる。29は9ビ
ットのシフトレジスタで、前工己シフトパルス信号SF
Tにより、バス端子9からのシリアル情報を一時記憶す
る。30はパリティ発生回路で、9ビットの入力情報に
対して偶数パリティ出力POUTをする。モード判定回
路22は、シリアル情報のモード部の信号をデコードし
て、その内容が「l・0」の時、OUT信号を「論理1
」とし、「11」の時はEMG信号を「論理l」とする
。31はバスレベル異常検出回路で、バス端子9の電圧
レベルが少なくとも4ビット分の伝送時間以上的OVと
なっていて、伝送路に出力用子局である自分が接続され
ていないことを検出するもので、前記ウィンドコンパレ
ータやインターバルタイマ等を使用して構成される。(
図示せず)また、この出力用子局のアドレスはスイッチ
群23により’00101 Jと設定されている。
FIG. 10 shows a circuit configuration diagram of the output slave station in this embodiment. Items marked with the same numbers as in Figure 8 are
This circuit has exactly the same function as the circuit shown in the figure, and its explanation will be omitted. 17d and 17e are 3-man AND gates, 18a and 1
8b is a 079117077 circuit, 25 is a two-manpower OR gate, 26 is a two-manpower NAND gate, and 27 is a two-manpower output buffer with a NAND gate. Output buffer 27
By setting the output to LOW level, the °r actuator etc. can be turned on. 28 is a timing generation circuit, and bus terminal 9
Detecting the rising edge of the signal S[G from 'E' in FIG.
FT, T3. A signal called LD2 is generated. 29 is a 9-bit shift register, which receives a pre-engineered shift pulse signal SF.
T temporarily stores the serial information from the bus terminal 9. 30 is a parity generation circuit which outputs an even parity output POUT for 9 bits of input information. The mode determination circuit 22 decodes the signal in the mode part of the serial information, and when the content is "l.0", the OUT signal is set to "logic 1".
”, and when it is “11”, the EMG signal is set to “logic 1”. 31 is a bus level abnormality detection circuit which detects that the voltage level of the bus terminal 9 is OV for at least 4 bits of transmission time or more and that the output slave station is not connected to the transmission path. It is constructed using the window comparator, interval timer, etc. (
(not shown) Furthermore, the address of this output slave station is set to '00101 J' by the switch group 23.

第11図について説明する。第1フレームでは、親局が
アドレス’0OIOIJの子局に対して、出力として「
1」をセットするもので、第2のフレームは同じ子局に
対して異常時出力の定義として「論理O」をセットして
いる。まず、最初のフレームの説明をするとタイミング
発生回路28によりSIG信号の立上りを検出して、シ
フトパルスSFT信号が9コ出力される。それによって
シフトレジスタ29には、モード部、アドレス部、デー
タビット、パリティビットがセットされる。シリアル情
報のアドレス部が、roololJであるから、アドレ
ス−数構出回路24の出力AEQ信号がHIGHレベル
で出力される。パリティ発生回路30の出力POUTは
シフトレジスタ29の内容は親局から送られた内容が正
しくセットされている時は、論理1のビットの合計が偶
数となるのでHIGHレベルとなる。一方、モード部が
「lO」であるからOUT信号が出力されているデータ
ビットは「l」であるので、LD2信号により、AND
ゲート17dを介して、Dフリップフロップ回路18a
に「論理1」がセットされる。
FIG. 11 will be explained. In the first frame, the master station outputs "
1", and the second frame sets "logic O" as the definition of abnormal output for the same slave station. First, explaining the first frame, the timing generation circuit 28 detects the rising edge of the SIG signal and outputs nine shift pulse SFT signals. As a result, the mode section, address section, data bit, and parity bit are set in the shift register 29. Since the address part of the serial information is roololJ, the output AEQ signal of the address-number configuration circuit 24 is output at HIGH level. When the contents of the shift register 29 sent from the master station are correctly set, the output POUT of the parity generation circuit 30 becomes a HIGH level because the sum of logical 1 bits is an even number. On the other hand, since the mode part is "lO", the data bit to which the OUT signal is output is "l", so the AND
D flip-flop circuit 18a via gate 17d
"Logic 1" is set to "Logic 1".

ノイズ等の異常信号が伝送路に入って、シフトレジスタ
29の内容が正しくないときは、パリティエラーをおこ
し、パリティ発生回路30の出力がLOWレベルとなっ
て、ANDゲート17dが開かれず、Dフリップ70ツ
ブは以前の状態を保持する。
When an abnormal signal such as noise enters the transmission path and the contents of the shift register 29 are incorrect, a parity error occurs, and the output of the parity generation circuit 30 becomes LOW level, and the AND gate 17d is not opened, causing a D flip. 70 tubes retain their previous state.

したがって、シリアル情報にパリティエラーが発見され
ると出力は以前の状態を保持したままとなる。T3信号
が出力されるとANDゲート17cの出力がHIGHレ
ベルとなって3ステート出力バツフア16bが開かれ、
バス端子9に伝送路への応答ビットとしてHrGH(=
論理l)が出力される。
Therefore, if a parity error is found in the serial information, the output remains in its previous state. When the T3 signal is output, the output of the AND gate 17c becomes HIGH level, and the 3-state output buffer 16b is opened.
HrGH (=
Logic l) is output.

第2フレームでは、シフトパルスSFTの9番目が出た
時にはモード判定回路22によりEMG信号が出力され
る。また上記第1フレームと同様に、アドレス一致信号
AEQ、パリティ出力POUTもHI G Hレベルと
なるので、ANDゲート17eが開かれ、LD2信号に
より、データビットの内容「0」がDフリップフロップ
回路18bにセットさせる。するとこの場合は、AND
ゲート2・6の出力はHIGHレベルとなり、ANDゲ
ート27により、制御される出力端子8の出力レベルは
、Dフリツプフロツプ回路18aの内容がそのまま現れ
るため、異常時出力保持モードとなる。他方、Dフリッ
プフロップ回路18bが「1」にセットされていると、
バスレベル異常検出回路31の出力がHIGHレベルの
時、即ち、子局がバス端子9と断線すると、NADゲー
ト26の出力がLOWレベルとなり、出力端子8は無条
件に出力オフになる。
In the second frame, when the ninth shift pulse SFT appears, the mode determination circuit 22 outputs an EMG signal. Also, as in the first frame, the address match signal AEQ and the parity output POUT are also at the HIGH level, so the AND gate 17e is opened and the LD2 signal changes the data bit content "0" to the D flip-flop circuit 18b. Set it to Then in this case, AND
The outputs of the gates 2 and 6 go to HIGH level, and the output level of the output terminal 8 controlled by the AND gate 27 is the same as the content of the D flip-flop circuit 18a, so that the abnormality output holding mode is set. On the other hand, if the D flip-flop circuit 18b is set to "1",
When the output of the bus level abnormality detection circuit 31 is at HIGH level, that is, when the slave station is disconnected from the bus terminal 9, the output of the NAD gate 26 becomes LOW level, and the output terminal 8 is turned off unconditionally.

以上の説明では、伝送路でのシリアル情報が親局と子局
間で正しく伝達されているかどうか検出するために、伝
送フォーマットの中にパリティビットを設けて、アドレ
ス部とモード部、データビットのすべての偶数パリティ
を計算して、エラー検出をしているが、他のエラー検出
法たとえばサムチェックやパイフェーズ符号チェックを
行うなどの伝送フォーマットに変更しても、本発明の狙
いである子局の有無チェックや、バスとの断線検出を同
様の原理で行えることは言うまでもない。
In the above explanation, in order to detect whether serial information on the transmission path is being transmitted correctly between the master station and slave stations, a parity bit is provided in the transmission format, and the address field, mode field, and data bits are Although error detection is performed by calculating all even parities, even if the transmission format is changed to other error detection methods such as sum check or pi-phase code check, the slave station which is the aim of the present invention It goes without saying that the same principle can be used to check for the presence or absence of a bus or to detect a disconnection with the bus.

発明の効果 以上のように本発明は、親局と複数の子局を1本の伝送
路にていもする式に接続し、シリアル情報で親局と子局
の入出力情報を相互に伝達しあうバス型の伝送システム
において、シリアル情報の伝送フォーマットの中にアド
レス部、モード部。
Effects of the Invention As described above, the present invention connects a master station and a plurality of slave stations through a single transmission path, and mutually transmits input/output information between the master station and slave stations using serial information. In a bus-type transmission system, the serial information transmission format includes an address section and a mode section.

データビット、応答ビットを設け、アドレス部により子
局を指定し、モード部で入力と出力と異常時の出力定義
の指定ができるようにし、出力用の子局において、あら
かじめ親局から送信された異常時の出力定義情報を記憶
させておき、その記憶内容にしたがって、異常時に出力
用子局が制御するアクチュエータ等の出力端子を異常発
生前の状態を保持するか、または無条件にオフすること
ができるようにするように内部回路が構成されている。
A data bit and a response bit are provided, and the address part specifies the slave station, and the mode part specifies input, output, and output definition in the event of an error. Output definition information in the event of an abnormality is stored, and according to the stored contents, the output terminals of actuators, etc. controlled by the output slave station in the event of an abnormality are maintained in the state before the occurrence of the abnormality, or are turned off unconditionally. The internal circuit is configured to allow this.

よって伝送路の異常等によってトラブルが発生した時、
自動機械の中の子局の出力アクチュエータ等の動作方向
安全側に動くようにすることができるという特長をもつ
Therefore, when a trouble occurs due to an abnormality in the transmission line,
It has the advantage of being able to move the output actuator of a slave station in an automatic machine in a safe direction.

一方、親局は伝送フレーム中の応答ビット出力のタイミ
ングでは伝送路を高インピーダンス状態にし、上記アド
レス部とモード部で選択された子局が上記伝送路の電圧
レベルをHIGHにするようにしているので、親局は内
蔵するウィンドコンパレータで伝送路の電圧を監視して
指定する子局が故障しているあるいは伝送路と断線状態
にあるというような異常状態を即時に検出できる。した
がちで、他の出力用子局を上記と同様に安全側となるよ
うに保持またはオフする等の制御ができることになる。
On the other hand, the master station puts the transmission line in a high impedance state at the timing of outputting the response bit in the transmission frame, and the slave station selected by the address section and mode section sets the voltage level of the transmission line to HIGH. Therefore, the master station can monitor the voltage of the transmission line using a built-in window comparator and immediately detect an abnormal condition such as a specified slave station being out of order or disconnected from the transmission line. As a result, other output slave stations can be controlled to be held or turned off on the safe side in the same way as above.

一方、本発明の伝送フレームは、従来例に比して簡単で
短かく、また親局から子局へ1フレ一ム分を送ることで
1ビットの人出力制御情報のやりとりができるので、高
速性を要求される自動機械の短時間伝送というニーズに
応えることができる。
On the other hand, the transmission frame of the present invention is simpler and shorter than the conventional example, and 1-bit human output control information can be exchanged at high speed by sending 1 frame from the master station to the slave station. It can meet the needs for short-time transmission of automatic machines that require high performance.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例におけるバス型情報図、第4
図、第5図は同伝送フォーマットにもとづき親局より出
力されるバスへの信号のタイミング図で、それぞれ、入
力モード、出力モード、異常時の出力定義モードを示し
た図、第6図は同人力モードにおける親局のマイクロコ
ンピュータの制御線の制御順番を示す図、第7図は同出
力モードにおける同制御順番を示す図、第8図は同実施
例における入力用の子局の回路構成図、第9図はその制
御タイミング図、第10図は同実施例における出力用の
子局の回路構成図、第11図はその制御タイミング図、
第12図は従来例のバス型シ9・・・・・・バス端子、
10・・・・・・マイクロコンピュータ、11・・・・
・・3ステート出力バツフア、12・・・・・・大力バ
ッファ、13・・・・・・ウィンドコンパレータ、14
・・・・・・インターバルタイマ、16.16a。 16b・・・・・・3ステート出力バツフア、18,1
88’。 18b・・・・・・Dフリツプフロツプ回路、19・・
・・・・パリティ発生回路、20・・・・・・タイミン
グ発生回路、21・・・・・・シフトレジスタ、22・
・・・・・モード判定回路、23・・・・・・アドレス
設定スイッチ、24・・・・・・アドレス−数構出回路
、28・・・・・・タイミング発生回路、29・・・・
・・シフトレジスタ、30・・・・・・パリティ発生回
路、31・・・・・・バスレベル異常検出回路、R1,
R2・・・・・・抵抗。 代理人の氏名 弁理士 粟野重孝 ほか1名第2図 第3図 第4図 パリティ 第5図 12−−一人カーダイ<)グ 第 6  図                   
   x−−−ヅ、Oいtoれt叩第7図 第 9 図 ハEQ
FIG. 1 is a bus type information diagram in one embodiment of the present invention;
Figure 5 is a timing chart of signals output from the master station to the bus based on the same transmission format, and Figure 6 is a diagram showing the input mode, output mode, and output definition mode in the event of an abnormality, respectively. A diagram showing the control order of the control lines of the microcomputer of the master station in the manual mode, FIG. 7 is a diagram showing the same control order in the same output mode, and FIG. 8 is a circuit configuration diagram of the input slave station in the same embodiment. , FIG. 9 is a control timing diagram thereof, FIG. 10 is a circuit configuration diagram of an output slave station in the same embodiment, and FIG. 11 is a control timing diagram thereof.
Figure 12 shows a conventional example of bus type 9...bus terminals,
10...Microcomputer, 11...
...3-state output buffer, 12... Large power buffer, 13... Window comparator, 14
...Interval timer, 16.16a. 16b...3-state output buffer, 18,1
88'. 18b...D flip-flop circuit, 19...
... Parity generation circuit, 20 ... Timing generation circuit, 21 ... Shift register, 22.
...Mode determination circuit, 23...Address setting switch, 24...Address-number configuration circuit, 28...Timing generation circuit, 29...
...Shift register, 30...Parity generation circuit, 31...Bus level abnormality detection circuit, R1,
R2...Resistance. Name of agent: Patent attorney Shigetaka Awano and one other person Figure 2 Figure 3 Figure 4 Parity Figure 5 Figure 12--One person card Figure 6
x---ㅅ、Otoret Figure 7 Figure 9 EQ

Claims (2)

【特許請求の範囲】[Claims] (1)親局と複数の子局を1本の伝送路でいもずる式に
接続し、シリアル情報で親局と子局とが1ビットのデジ
タル入出力情報を相互に伝達し合うバス型情報伝送装置
において、前記シリアル情報をヘッダ部と、特定の子局
を指定するためのアドレス部と、モード部と、データビ
ットとで構成し、前記モード部の内容により親局が子局
から情報を入力する場合と子局に情報を出力する場合と
子局が伝送路の異常を検出したときその出力を異常検出
の前の状態を保持するかまたはオフするかを設定する場
合に区別できるようにし、子局から情報を入力する場合
には前記データビットにアドレス部で指定された子局が
入力情報をセットする手段と、出力する場合には前記デ
ータビットに親局が出力情報をセットする手段と、前記
異常を検出したときその出力を異常検出の前の状態を保
持するかまたはオフするかを設定する情報を前記データ
ビットに親局がセットする手段と、子局に設けた伝送路
の異常を検出する手段と、前記データビットに親局がセ
ットした情報を記憶し、前記異常を検出したときその出
力を異常検出の前の状態を保持するかまたはオフする手
段とで構成されたことを特徴とするバス型情報伝送装置
(1) Bus-type information in which a master station and multiple slave stations are connected in a seamless manner through a single transmission line, and the master station and slave stations mutually transmit 1-bit digital input/output information using serial information. In the transmission device, the serial information consists of a header section, an address section for specifying a specific slave station, a mode section, and data bits, and the master station receives information from the slave station according to the contents of the mode section. It is possible to distinguish between inputting information, outputting information to a slave station, and setting whether to maintain the output state before the abnormality detection or turn off the output when the slave station detects an abnormality in the transmission path. , means for the slave station to set input information in the data bits specified by the address section when inputting information from the slave station, and means for the master station to set output information in the data bits when outputting information. and means for the master station to set information in the data bits to set the output to maintain the state before the abnormality detection or to turn off the output when the abnormality is detected, and a transmission path provided in the slave station. The device comprises means for detecting an abnormality, and means for storing information set by the master station in the data bit, and when detecting the abnormality, maintains the output in the state before the abnormality detection or turns off the output. A bus-type information transmission device featuring:
(2)親局と複数の子局を1本の伝送路でいもずる式に
接続し、シリアル情報で親局と子局とが1ビットのデジ
タル入出力情報を相互に伝達し合うバス型情報伝送装置
において、前記シリアル情報をヘッダ部と、特定の子局
を指定するためのアドレス部と、データビットと応答ビ
ットとで構成し、前記応答ビットのタイミングでは親局
は伝送路への出力を高インピーダンス状態とする手段と
、前記応答ビットにアドレス部で指定された子局により
1をセットする手段と、該当する子局が存在しない場合
の伝送路の電位を設定する抵抗と、親局が前記応答ビッ
トのタイミングで伝送路の電位を監視し子局が存在する
かどうかを判断する手段と、子局から情報を入力する場
合には前記データビットにアドレス部で指定された子局
が入力情報をセットする手段と、子局に情報を出力する
場合には前記データビットに親局が出力情報をセットす
る手段とで構成されたことを特徴とするバス型情報伝送
装置。
(2) Bus-type information in which a master station and multiple slave stations are connected in a seamless manner through a single transmission path, and the master station and slave stations mutually transmit 1-bit digital input/output information using serial information. In the transmission device, the serial information consists of a header section, an address section for specifying a specific slave station, a data bit, and a response bit, and at the timing of the response bit, the master station outputs to the transmission path. means for setting the response bit to 1 by the slave station specified in the address section; a resistor for setting the potential of the transmission line when the corresponding slave station does not exist; means for monitoring the potential of the transmission path at the timing of the response bit and determining whether a slave station exists; 1. A bus type information transmission device comprising means for setting information, and means for a master station to set output information in the data bits when outputting information to a slave station.
JP1122129A 1989-05-16 1989-05-16 Bus type information transmitter Pending JPH02301339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1122129A JPH02301339A (en) 1989-05-16 1989-05-16 Bus type information transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1122129A JPH02301339A (en) 1989-05-16 1989-05-16 Bus type information transmitter

Publications (1)

Publication Number Publication Date
JPH02301339A true JPH02301339A (en) 1990-12-13

Family

ID=14828334

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1122129A Pending JPH02301339A (en) 1989-05-16 1989-05-16 Bus type information transmitter

Country Status (1)

Country Link
JP (1) JPH02301339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4310957A1 (en) * 1992-04-02 1993-10-07 Mitsubishi Electric Corp Network system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4310957A1 (en) * 1992-04-02 1993-10-07 Mitsubishi Electric Corp Network system
DE4310957C2 (en) * 1992-04-02 1996-06-20 Mitsubishi Electric Corp network
US5581701A (en) * 1992-04-02 1996-12-03 Mitsubishi Denki Kabushiki Kaisha Factory automation network system

Similar Documents

Publication Publication Date Title
KR860002213B1 (en) Loop transmission system
CA1228168A (en) I/o scanner for an industrial control
JPH02301339A (en) Bus type information transmitter
JP2678140B2 (en) Data transmission device and its terminal unit
JPS60107944A (en) Summarized wiring system
JPH11143790A (en) Control signal inputting and outputting device
JPS6276949A (en) Loop network system
JPH02301346A (en) Fault location detection device in loop transmission equipment
JPS59224938A (en) Network system
CA1074019A (en) Loop fault location and isolation
JPH034623A (en) Serial data transmission system
KR0151910B1 (en) System automatic switching circuit
JPH0211040A (en) Trouble diagnostic method for loop-shaped data transmission system
JPH02305037A (en) Abnormality detecting system for data transmission system
JPS63131738A (en) Parity check system
JPS61154334A (en) Time slot diagnose system
JPH0324601A (en) Control method
JPS5924352A (en) Recovery processing system for fault of clock system
JPH02301340A (en) Bus type signal transmitter
JPS61267428A (en) Information communication system
JPH06164611A (en) Communication system for ring type local area network
JPH03147460A (en) Monitor test information transfer system
JPS61170848A (en) Extending device of io interface cable
JPH03201845A (en) Abnormality generating position detector for serial controller
JPH0215350A (en) Signal guarantee system for abnormal signal line