JP3472891B2 - Control communication system - Google Patents
Control communication systemInfo
- Publication number
- JP3472891B2 JP3472891B2 JP10228295A JP10228295A JP3472891B2 JP 3472891 B2 JP3472891 B2 JP 3472891B2 JP 10228295 A JP10228295 A JP 10228295A JP 10228295 A JP10228295 A JP 10228295A JP 3472891 B2 JP3472891 B2 JP 3472891B2
- Authority
- JP
- Japan
- Prior art keywords
- station
- master station
- slave
- data
- display
- 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 - Fee Related
Links
Landscapes
- Monitoring And Testing Of Exchanges (AREA)
- Monitoring And Testing Of Transmission In General (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば、制御用コント
ローラなどからのオンオフの制御信号を、工作機械等の
エアーバルブやアクチュエータなどの出力機器に伝送
し、あるいは、リミットスイッチや各種センサなどの入
力機器からのオンオフの状態信号を前記制御用コントロ
ーラなどに伝送するのに好適な制御通信システムに関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention transmits, for example, an on / off control signal from a control controller or the like to an output device such as an air valve or an actuator of a machine tool or a limit switch or various sensors. The present invention relates to a control communication system suitable for transmitting an on / off state signal from an input device to the control controller or the like.
【0002】[0002]
【従来の技術】このような制御通信システムにおいて、
制御用コントローラと出力機器、あるいは、制御用コン
トローラと入力機器の間を、個別に直接配線したので
は、配線構成が複雑となり、配線作業に手間がかかると
ともに、配線数が増加する分コストも高くなることにな
る。2. Description of the Related Art In such a control communication system,
Direct wiring between the control controller and output device, or between the control controller and input device, complicates the wiring configuration, requires more work for wiring, and increases the number of wires, resulting in high cost. Will be.
【0003】そこで、省配線を図った制御通信システム
として、図15に示されるように、制御用コントローラ
30に接続された親局31と、アクチュエータ等の出力
機器あるいは各種センサ等の入力機器に接続された複数
の子局321〜32nとを備え、親局31から伝送され
るオンオフの制御信号を子局321〜32nを介して出
力機器に出力したり、あるいは、入力機器からのオンオ
フの状態信号を子局321〜32nに取り込んで親局3
1に伝送するといった構成のものがある。Therefore, as a control communication system with reduced wiring, as shown in FIG. 15, a master station 31 connected to a control controller 30 and an output device such as an actuator or an input device such as various sensors are connected. is provided with a plurality of the slave station 32 1 ~32n, and outputs a control signal on-off transmitted from the master station 31 to an output device via the slave station 32 1 ~32n, or on-off from the input device The status signal is taken into the slave stations 32 1 to 32n and the master station 3
There is a configuration in which the data is transmitted to one.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、このよ
うな制御通信システムでは、断線、短絡あるいはノイズ
等による伝送路の異常が生じた場合に、その異常原因の
究明あるいは異常が生じた箇所の特定が容易ではなく、
したがって、正常な状態に復帰させるまでに長時間を要
するといった難点がある。However, in such a control communication system, when an abnormality occurs in the transmission line due to disconnection, short circuit, noise, etc., the cause of the abnormality can be investigated or the location of the abnormality can be identified. Not easy,
Therefore, there is a drawback that it takes a long time to return to a normal state.
【0005】本発明は、上述の点に鑑みて為されたもの
であって、親局と複数の子局とを備える制御通信システ
ムにおいて、断線、短絡あるいはノイズ等による伝送路
異常が生じた場合に、その異常原因を容易に検知できる
ようにするとともに、その異常が生じた箇所を比較的容
易に特定できるようにすることを目的とする。The present invention has been made in view of the above points, and in a control communication system including a master station and a plurality of slave stations, when a transmission line abnormality occurs due to disconnection, short circuit, noise, or the like. In addition, it is an object of the present invention to make it possible to easily detect the cause of the abnormality and to relatively easily identify the place where the abnormality has occurred.
【0006】[0006]
【課題を解決するための手段】本発明では、上述の目的
を達成するために、次のように構成している。In order to achieve the above-mentioned object, the present invention is constructed as follows.
【0007】すなわち、請求項1の本発明は、親局と複
数の子局とが縦続接続され、前記親局から各子局へのビ
ットデータを、コントロール信号のシフトクロックに応
答して1ビットづつ子局を順次シフトさせることによっ
て、親局側である上流側の子局から下流側の子局に伝送
し、前記各子局から親局へのビットデータを、コントロ
ール信号のシフトクロックに応答して1ビットづつ下流
側の子局から上流側の子局を順次シフトさせることによ
って前記親局に伝送する制御通信システムであって、最
も下流側の子局は、前記親局から伝送されてきたビット
データに反転処理を施したビットデータを前記親局に返
送するものであり、前記親局は、最も下流側の子局から
前記反転処理が施されたビットデータが返送されないと
きは伝送路異常であることを検知する検知手段と、前記
検知手段の検知に応じてエラー発生の表示を行う表示手
段とを備えている。That is, according to the present invention of claim 1, a master station and a plurality of slave stations are connected in cascade, and a video signal from the master station to each slave station is transmitted.
Output data to the shift clock of the control signal.
In response, by sequentially shifting the slave stations by 1 bit
Transmission from the upstream slave station, which is the master station, to the downstream slave station
Then , the bit data from each slave station to the master station is
1 bit downstream in response to the shift clock of the master signal
A control and communication system for transmitting to said master station by sequentially shifting the upstream side of the slave station from the side of the slave station, the outermost
Even the child station on the downstream side receives the bit transmitted from the parent station.
Is intended to return the bit data subjected to inversion processing in the data to the master station, the master station, the most <br/> the inversion process from the slave station of the downstream bit data subjected not returned
In this case, a detection means for detecting a transmission path abnormality and a display means for displaying an error occurrence according to the detection of the detection means are provided.
【0008】請求項2の本発明は、親局と複数の子局と
が縦続接続され、前記親局から各子局へのビットデータ
を、コントロール信号のシフトクロックに応答して1ビ
ットづつ子局を順次シフトさせることによって、親局側
である上流側の子局から下流側の子局に伝送し、前記各
子局から親局へのビットデータを、コントロール信号の
シフトクロックに応答して1ビットづつ下流側の子局か
ら上流側の子局を順次シフトさせることによって前記親
局に伝送する制御通信システムであって、最も下流側の
子局は、前記親局から伝送されてきたビットデータに反
転処理を施したビットデータを前記親局に返送するもの
であり、前記親局は、最も下流側の子局から前記反転処
理が施されたビットデータが返送されないときは伝送路
異常であることを検知する第1検知手段と、前記親局、
前記子局およびそれらの間の信号ラインの信号レベルを
監視して短絡を検知する第2検知手段と、前記両検知手
段の検知に応じてエラー発生の表示を行う表示手段とを
備えている。According to the second aspect of the present invention, a master station and a plurality of slave stations are connected in cascade , and bit data from the master station to each slave station is transmitted.
In response to the shift clock of the control signal.
By shifting the slave stations one by one, the master station side
Transmitted to the downstream side of the slave station from the upstream side of the slave station is, each
Bit data from the slave station to the master station
Is it a slave station on the downstream side bit by bit in response to the shift clock?
In the control communication system for transmitting to the master station by sequentially shifting the slave station on the upstream side from the
The slave station returns the bit data, which is the bit data transmitted from the master station, to the master station, the bit data being inverted, and the master station performs the inversion process from the most downstream slave station. If the bit data is not returned, the transmission path
First detecting means for detecting an abnormality, the master station,
The second station is provided with a second detecting means for detecting a short circuit by monitoring the signal level of the slave station and a signal line between them, and a display means for displaying an error occurrence in response to the detection of the both detecting means.
【0009】請求項3の本発明は、請求項2の制御通信
システムにおいて、前記親局は、伝送異常の原因を表示
させるために操作される操作部を備え、前記表示手段
は、動作状態を表示する複数の表示用素子を有し、前記
複数の表示用素子は、エラーの発生を表示するエラー表
示用素子を含み、該エラー表示用素子がエラー発生状態
を表示している状態で前記操作部を操作すると、前記複
数の表示用素子の少なくとも一つの表示用素子によっ
て、前記検知出力に応じて伝送路異常と短絡異常とが区
別されてその表示を行うものである。According to a third aspect of the present invention, in the control communication system according to the second aspect, the master station includes an operation unit operated to display a cause of the transmission abnormality, and the display means indicates an operating state. A plurality of display elements for displaying, wherein the plurality of display elements include an error display element for displaying an error occurrence, and the operation is performed in a state where the error display element displays an error occurrence state. When the section is operated, at least one display element of the plurality of display elements determines a transmission path abnormality and a short circuit abnormality according to the detection output.
They are separated and displayed .
【0010】請求項4の本発明は、請求項3の制御通信
システムにおいて、前記複数の表示用素子は、電源の供
給を表示する電源表示用素子と、正常動作を表示する動
作表示用素子とを含むとともに、前記電源表示用素子
は、前記エラー表示用素子がエラー発生状態を表示して
いる状態で前記操作部を操作すると、前記検知出力に応
じて伝送路異常と短絡異常とが区別されてその表示を行
うものである。According to a fourth aspect of the present invention, in the control communication system according to the third aspect, the plurality of display elements are a power source display element for displaying power supply and an operation display element for displaying normal operation. And a power display element
Indicates that the error display element displays the error occurrence status.
If the operating part is operated while the
The transmission line abnormality and short circuit abnormality are distinguished and displayed.
It is a thing .
【0011】[0011]
【0012】[0012]
【0013】請求項1の本発明によれば、断線やノイズ
等の異常の発生によって反転処理を施したデータが親局
に返送されなくなると、それが検知されて表示手段で対
応する表示が行われることになり、したがって、表示手
段の表示内容を見て異常の原因を迅速に把握できること
になる。しかも、断線やノイズ等による伝送路の異常
は、親局と前記反転処理を施す子局との間で生じている
ことになるので、その子局の接続位置を変えてみること
で、異常箇所を特定できることになる。According to the first aspect of the present invention, when the data subjected to the inversion process is not returned to the master station due to the occurrence of the abnormality such as the disconnection or the noise, it is detected and the corresponding display is displayed. Therefore, the cause of the abnormality can be quickly grasped by looking at the display content of the display means. Moreover, since an abnormality in the transmission line due to disconnection, noise, etc. occurs between the master station and the slave station that performs the inversion process , try changing the connection position of the slave station to identify the abnormal location. It will be possible to identify.
【0014】請求項2の本発明によれば、断線やノイズ
等の異常の発生によって反転処理を施したデータが親局
に返送されなくなると、第1検知手段でそれが検知され
て表示手段で対応する表示が行われ、また、短絡が生じ
たときには、第2検知手段でそれが検知されて表示手段
で対応する表示が行われることになり、したがって、表
示手段の表示内容を見て異常の原因を迅速に把握できる
ことになる。According to the second aspect of the present invention, when the data subjected to the inversion processing is not returned to the master station due to the occurrence of the abnormality such as the disconnection or the noise, the first detecting means detects it and the display means displays it. When the corresponding display is made, and when a short circuit occurs, the second detecting means detects it and the display means makes a corresponding display. Therefore, the display content of the display means causes an error. The cause can be quickly grasped.
【0015】しかも、断線やノイズ等による伝送路の異
常は、親局と前記反転処理を施す子局との間で生じてい
ることになるので、その子局の接続位置を変えてみるこ
とで、異常箇所を特定できることになる。Moreover, since the abnormality of the transmission line due to the disconnection or the noise has occurred between the master station and the slave station to which the inversion processing is performed, by changing the connection position of the slave station, The abnormal place can be specified.
【0016】請求項3または4の本発明によれば、基本
的な動作状態を表示するために一般に備えられている複
数の表示用素子、例えば、電源表示用素子、動作表示用
素子およびエラー表示用素子の少なくとも一つの表示用
素子を用いて検知手段の検知出力に応じた表示を行う、
すなわち、基本的な動作状態を表示する表示用素子で異
常原因の表示を兼用するので、別途、表示用素子を設け
る構成に比べてコストの低減および小型化を図ることが
できる。According to the present invention of claim 3 or 4, a plurality of display elements generally provided for displaying a basic operation state, for example, a power supply display element, an operation display element and an error display. Display according to the detection output of the detection means using at least one display element of the display element,
That is, since the display element for displaying the basic operation state also serves as the display of the cause of the abnormality, the cost and the size can be reduced as compared with the configuration in which the display element is separately provided.
【0017】[0017]
【0018】[0018]
【0019】[0019]
【実施例】以下、図面によって、本発明の実施例につい
て、詳細に説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0020】図1は、本発明の一実施例の制御通信シス
テムの全体構成図である。FIG. 1 is an overall configuration diagram of a control communication system according to an embodiment of the present invention.
【0021】この実施例の制御通信システムは、プログ
ラマブルコントローラ1と、親局2と、複数(この実施
例では、4台)の子局31〜34とを備えており、親局2
および4台の子局31〜34は、ケーブルを介して縦続接
続されており、親局2側が上流側とされる。The control communication system of this embodiment comprises a programmable controller 1, a master station 2, and a plurality (four in this embodiment) of slave stations 3 1 to 3 4.
And the four slave stations 3 1 to 3 4 are connected in series via a cable, and the master station 2 side is the upstream side.
【0022】この実施例では、最も下流側の子局(以下
「エンド(END)局」ともいう)34を除く各子局31
〜33に、各種センサ等の入力機器41〜43が接続され
ており、子局31〜34を制御する親局2は、子局31〜
33から伝送される入力機器41〜43のオンオフの状態
信号をプログラマブルコントローラ1に与え、プログラ
マブルコントローラ1は、それに基づいて、図示しない
工作機械等を制御する。各入力機器41〜43には、親局
1から縦続接続された各子局31〜33の電源供給ライン
を介して電源が供給されている。In this embodiment, each slave station 3 1 except the most downstream slave station (hereinafter also referred to as "end station") 3 4
To 3 3 are connected with input devices 4 1 to 4 3 such as various sensors, and the master station 2 controlling the slave stations 3 1 to 3 4 is the slave station 3 1 to.
The ON / OFF state signals of the input devices 4 1 to 4 3 transmitted from 3 3 are given to the programmable controller 1, and the programmable controller 1 controls a machine tool or the like (not shown) based on the signal. Power is supplied to each of the input devices 4 1 to 4 3 through the power supply lines of the slave stations 3 1 to 3 3 that are connected in cascade from the master station 1.
【0023】親局2のデータは、上流(親局2)側から
下流側へ順次シフトされて子局31〜34へ伝送され、子
局31〜34のデータは、下流側から上流側へ順次シフト
されて親局2に伝送されるようになっている。The data of the master station 2 is sequentially shifted from the upstream (master station 2) side to the downstream side and transmitted to the slave stations 3 1 to 3 4 , and the data of the slave stations 3 1 to 3 4 is transferred from the downstream side. The signals are sequentially shifted to the upstream side and transmitted to the master station 2.
【0024】この実施例では、上述のように、各子局3
1〜33には、各種センサ等の入力機器41〜43のみが接
続された入力専用となっており、通常の動作状態におい
ては、後述のように、入力機器41〜43から各子局31
〜33に取り込まれたデータが、親局2側に順次シフト
されて伝送され、親局2は、そのデータをプログラマブ
ルコントローラ1に与えるとともに、再びそのデータを
順次シフトさせて子局31〜34に返送するという動作を
繰り返すものである。In this embodiment, as described above, each slave station 3
1 to 3 3 are dedicated to inputs in which only input devices 4 1 to 4 3 such as various sensors are connected, and in a normal operating state, as will be described later, from input devices 4 1 to 4 3 Each slave station 3 1
The data taken in by ~ 3 3 are sequentially shifted and transmitted to the master station 2 side, and the master station 2 gives the data to the programmable controller 1 and also sequentially shifts the data again to make the slave stations 3 1 ... 3 is 4 to repeat the operation of returning to.
【0025】最も下流側の子局34は、入力機器あるい
はアクチュエータ等の出力機器は、接続されず、後述の
ように、断線等の伝送路の異常を検知するために、親局
2から伝送されたデータを、反転処理して親局2に返送
するものである。[0025] The most downstream slave station 3 4, the output device such as an input device or actuator is not connected, as described below, in order to detect the abnormality of the transmission path such as disconnection, transmitted from the master station 2 The processed data is inverted and returned to the master station 2.
【0026】図2は、図1の親局2の構成を示すブロッ
ク図である。FIG. 2 is a block diagram showing the configuration of the master station 2 of FIG.
【0027】親局2は、コントロール信号ラインに接続
されるコントロール信号用端子5と、子局31〜34との
間でデータの入出力を行うデータ信号ラインに接続され
るデータ信号用端子6と、グランド端子7とを有してい
る。The master station 2 is a data signal terminal connected to a control signal terminal 5 connected to a control signal line and a data signal line for inputting / outputting data between the slave stations 3 1 to 3 4. 6 and a ground terminal 7.
【0028】また、親局2は、接続されている子局31
〜34の台数を後述のようにして登録する台数登録回路
8と、プログラマブルコントローラ1からのデータが入
力あるいはプログラマブルコントローラ1へデータを出
力するデータ入出力回路9と、エンド局34のデータを
監視するための第1検知手段としてのエンド局チェック
レジスタ10と、データを保持する入出力レジスタ11
と、子局31〜34を制御するコマンドおよびデータを順
次シフトさせるためのシフトクロックからなるコントロ
ール信号を生成して伝送を制御するコントロール回路1
2と、各ブロックの同期をとる同期回路13と、コント
ロール信号を出力するコントロール信号出力回路14
と、子局31〜34との間でデータの入出力を行う入出力
回路15と、配線の短絡を検知する第2検知手段として
の短絡検知回路40と、親局2の基本機能および後述の
エラー原因の表示を行う表示部41と、エラーが発生し
たときに、そのエラー原因を知るために操作されるリセ
ットスイッチ42とを備えている。Further, the master station 2 is connected to the slave station 3 1
To 3 to 4 volume and number registration circuit 8 to register as described later, a data input-output circuit 9 for outputting data data to the input or the programmable controller 1 from the programmable controller 1, the data of the end station 3 4 End station check register 10 as first detecting means for monitoring, and input / output register 11 for holding data
And a control circuit 1 for controlling the transmission by generating a control signal composed of a shift clock for sequentially shifting commands and data for controlling the slave stations 3 1 to 3 4.
2, a synchronization circuit 13 for synchronizing each block, and a control signal output circuit 14 for outputting a control signal.
If, the input-output circuit 15 for inputting and outputting data to and from the slave station 3 1 to 3 4, and the short-circuit detecting circuit 40 as a second detecting means for detecting a short circuit of the wiring, the basic functions of the master station 2 and A display unit 41 for displaying an error cause, which will be described later, and a reset switch 42 that is operated to know the cause of the error when the error occurs are provided.
【0029】この実施例では、親局2とエンド局34と
の間の断線やノイズ等による伝送路の異常を、エンド局
チェックレジスタ10によって検知し、また、親局2、
子局31〜34およびそれらの間の配線の短絡を短絡検知
回路40によって検知するものである。[0029] In this embodiment, the abnormality of the transmission path due to disconnection or noise between the master station 2 and the end station 3 4 detects by the end station check register 10, also, the master station 2,
The short circuit detection circuit 40 detects a short circuit in the slave stations 3 1 to 3 4 and the wiring between them.
【0030】すなわち、エンド局チェックレジスタ10
は、親局2から伝送したデータが、エンド局34で反転
されて返送されていることをチェックするものであり、
エンド局34から反転されたデータが返送されないとき
には、親局2とエンド局34との間の断線あるいはノイ
ズ等による伝送路異常であるとしてコントロール回路1
2に検知出力を与える。That is, the end station check register 10
Is to check that the data transmitted from the master station 2 is inverted and returned by the end station 3 4 .
When inverted data from the end station 3 4 is not returned, the control circuit 1 as a line failure due to disconnection or noise or the like between the master station 2 and the end station 3 4
2 gives the detection output.
【0031】また、短絡検知回路40は、コントロール
信号ラインおよびデータ信号ラインの信号レベルを監視
して短絡を検知し、短絡が検知されたときには、コント
ロール回路12に検知出力を与える。Further, the short circuit detection circuit 40 detects the short circuit by monitoring the signal levels of the control signal line and the data signal line, and when the short circuit is detected, the control circuit 12 is provided with a detection output.
【0032】コントロール回路12によってその表示が
制御される表示部41は、図3に示されるように、基本
的な動作状態を表示するために、電源の供給(POWER OU
T)を表示する電源表示用LED43と、正常動作(RU
N)していることを表示する動作表示用LED44と、
異常の発生(ERR)を表示するエラー表示用LED45
とを有している。なお、図3は、各表示用LED43,
44,45の各状態における点灯あるいは消灯状態を示
している。The display unit 41, whose display is controlled by the control circuit 12, supplies power (POWER OU) in order to display the basic operating state, as shown in FIG.
Power supply display LED 43 that displays T) and normal operation (RU
N) an operation display LED 44 for displaying that
Error display LED45 that displays the occurrence of an error (ERR)
And have. In addition, in FIG. 3, each display LED 43,
The lighting or extinguishing state in each state of 44 and 45 is shown.
【0033】電源が供給されて正常に動作している状態
では、コントロール回路12の制御により、図3(A)
に示されるように、電源表示用LED43および動作表
示用LED44は、点灯し、エラー表示用LED45
は、消灯している。When the power is supplied and the device is operating normally, the control circuit 12 controls the operation shown in FIG.
As shown in, the power supply display LED 43 and the operation display LED 44 are turned on and the error display LED 45 is displayed.
Is off.
【0034】コントロール回路12は、エンド局チェッ
クレジスタ10あるいは短絡検知回路40から検知出力
が与えられると、異常を報知するために、図3(B)に
示されるように、表示部41の電源表示用LED43お
よび動作表示用LED44を消灯し、エラー表示用LE
D45を点灯する。When the control circuit 12 receives a detection output from the end station check register 10 or the short circuit detection circuit 40, the control circuit 12 notifies the power source of the display unit 41 as shown in FIG. LED 43 for operation and LED 44 for operation display are turned off, and LE for error display is displayed.
Turn on D45.
【0035】これによって、ユーザは、異常の発生を知
り、さらに、異常原因を把握するために、操作部として
のリセットスイッチ42を操作する。コントロール回路
12は、このリセットスイッチ42の操作に応答して、
エンド局チェックレジスタ10からの検知出力であると
き、すなわち、断線やノイズ等による異常であるときに
は、図3(C)に示されるように、電源表示用LED4
3を点灯させ、また、短絡検知回路40からの検知出力
であるとき、すなわち、短絡による異常であるときに
は、図3(D)に示されるように、電源表示用LED4
3を点灯させることなく消灯したままとする。As a result, the user operates the reset switch 42 as the operation unit in order to know the occurrence of the abnormality and to grasp the cause of the abnormality. The control circuit 12 responds to the operation of the reset switch 42 by
When the output is the detection output from the end station check register 10, that is, when there is an abnormality due to disconnection or noise, as shown in FIG.
3 is turned on, and when the output is the detection output from the short circuit detection circuit 40, that is, when there is an abnormality due to a short circuit, as shown in FIG.
Do not turn on 3 and leave it off.
【0036】したがって、ユーザは、リセットスイッチ
42を操作して電源表示用LED43が点灯すれば、断
線やノイズ等による異常であることを知ることができ、
電源表示用LED43が点灯しなければ、短絡であるこ
とを知ることができる。Therefore, when the user operates the reset switch 42 to turn on the power supply display LED 43, the user can know that there is an abnormality due to disconnection, noise, or the like.
If the power display LED 43 does not light up, it can be known that there is a short circuit.
【0037】このように、断線、短絡あるいはノイズ等
による伝送路の異常が生じた場合には、図3(B)に示
されるエラー表示がなされるので、ユーザは、異常の発
生を直ちに知ることができ、さらに、ユーザがリセット
スイッチ42を操作すると、異常原因に応じて、図3
(C)あるいは図3(D)に示される表示がなされるの
で、ユーザは、容易に異常原因を把握できることにな
り、これによって、正常な動作状態への復帰作業も、従
来例に比べて迅速に行えることになる。As described above, when an abnormality occurs in the transmission line due to disconnection, short circuit, noise, etc., the error display shown in FIG. 3B is displayed, so that the user can immediately know the occurrence of the abnormality. Then, when the user operates the reset switch 42, depending on the cause of the abnormality, as shown in FIG.
Since the display shown in (C) or FIG. 3 (D) is displayed, the user can easily understand the cause of the abnormality, and as a result, the work of returning to the normal operating state is quicker than in the conventional example. You can do it.
【0038】この実施例では、リセットスイッチ42を
操作することによって、異常原因に応じた表示を行うよ
うに構成したけれども、本発明の他の実施例として、リ
セットスイッチ42を省略するとともに、エラー表示用
素子を追加し、エラーが生じたときには、その原因に対
応してエラー表示用素子を点灯させるように構成しても
よい。In this embodiment, by operating the reset switch 42, the display is made according to the cause of the abnormality. However, as another embodiment of the present invention, the reset switch 42 is omitted and an error is displayed. It is also possible to add a display element and, when an error occurs, turn on the error display element according to the cause.
【0039】また、この実施例では、リセットスイッチ
42を操作したときの電源表示用LED43の点灯ある
いは消灯によって異常原因に応じた表示を行ったけれど
も、電源表示用LED43に代えて、あるいは、電源表
示用LED43に加えて他の表示用LED44,45を
用いてもよい。Further, in this embodiment, the display according to the cause of the abnormality is performed by turning on or off the power supply display LED 43 when the reset switch 42 is operated. However, instead of the power supply display LED 43 or the power supply display is performed. In addition to the display LED 43, other display LEDs 44 and 45 may be used.
【0040】さらに、点灯あるいは消灯だけではなく、
点滅表示等によって異常原因に応じた表示を行ってもよ
い。Furthermore, not only turning on or off,
You may display according to the cause of abnormality by blinking display.
【0041】また、この実施例では、短絡検知回路40
で短絡を検知して表示するように構成したけれども、本
発明の他の実施例として、短絡検知回路40は、省略し
てもよい。Further, in this embodiment, the short circuit detection circuit 40
However, the short-circuit detection circuit 40 may be omitted in another embodiment of the present invention.
【0042】この実施例の親局2は、最大8台の子局が
接続可能であり、入出力レジスタ11は、各子局の1ビ
ットデータを保持できるように8ビット構成となってい
る。Up to eight slave stations can be connected to the master station 2 of this embodiment, and the input / output register 11 has an 8-bit configuration so as to hold 1-bit data of each slave station.
【0043】親局から各子局に伝送されるコマンドは、
親局側から子局側へデータを伝送せよ、子局側から親局
側へデータを伝送せよ、子局のデータを子局に接続され
ている出力機器に出力せよ、子局に接続されている入力
機器のデータを子局に入力せよの4種類が存在する。The command transmitted from the master station to each slave station is
Send data from the master station side to the slave station side, send data from the slave station side to the master station side, output the slave station data to the output device connected to the slave station, and connect to the slave station. There are four types of data input from existing input devices to the slave station.
【0044】図4は、エンド局34以外の子局31〜33
の構成を示すブロック図である。FIG. 4 shows slave stations 3 1 to 3 3 other than the end station 3 4.
3 is a block diagram showing the configuration of FIG.
【0045】子局31〜33は、親局2あるいは上流側の
子局31〜32のコントロール信号ライン、データ信号ラ
インおよびグランドラインにそれぞれ接続されるコント
ロール信号用端子16u、データ信号用端子17uおよ
びグランド端子18uを有するとともに、下流側の子局
32〜34の対応するラインにそれぞれ接続される各端子
16d,17d,18dを有している。The slave station 3 1 to 3 3, the master station 2 or the upstream side of the slave station 3 1 to 3 second control signal lines, data signal lines and respectively connected thereto a control signal terminal 16u to the ground line, the data signal In addition to having a working terminal 17u and a ground terminal 18u, each terminal 16d, 17d, 18d is connected to the corresponding line of the slave stations 3 2 to 3 4 on the downstream side.
【0046】また、子局31〜33は、各種センサ等の入
力機器41〜43からのオンオフの状態信号および後述の
動作確認用のチェックスイッチ27の操作信号をラッチ
する入力ラッチ回路20と、上流側および下流側の入出
力回路21u,21dと、入出力回路21u,21dを
介してデータが書き込みあるいは読み出される1ビット
のシフトレジスタ221〜223と、シフトレジスタ22
1〜223の内容を入出力回路21dを介してラッチして
表示用LED23あるいはアクチュエータ等の出力機器
に出力する出力ラッチ回路24と、親局2からのコント
ロール信号が入力されることによってシフトレジスタ2
21〜223を制御するコントローラ25とを備えてお
り、前記シフトレジスタ221〜223は、コントローラ
25からのコマンドに連動して入出力方向の切り替えが
できるようになっている。Further, the slave stations 3 1 to 3 3 are input latch circuits for latching on / off state signals from the input devices 4 1 to 4 3 such as various sensors and operation signals of the check switch 27 for confirming the operation to be described later. 20, the upstream and downstream input / output circuits 21u and 21d, 1-bit shift registers 22 1 to 22 3 to which data is written or read via the input / output circuits 21u and 21d, and the shift register 22
An output latch circuit 24 for latching the contents of 1 to 22 3 via the input / output circuit 21d and outputting them to an output device such as the display LED 23 or an actuator, and a control signal from the master station 2 are input to the shift register Two
And a controller 25 for controlling the 2 1-22 3, the shift register 22 1 to 22 3, in conjunction with commands from the controller 25 is made to be able to switch the input and output direction.
【0047】図5は、エンド局34の構成を示すブロッ
ク図であり、図4に対応する部分には、同一の参照符号
を付す。[0047] Figure 5 is a block diagram showing the configuration of the end station 3 4, portions corresponding to FIG. 4, the same reference characters.
【0048】エンド局34は、各種センサ等の入力機器
あるいはアクチュエータ等の出力機器が接続される端子
および入力ラッチ回路を備えておらず、出力ラッチ回路
24の出力は、インバータ26を介して上流側の入出力
回路21uに与えられるようになっている。その他の構
成は、他の子局31〜33と同様である。[0048] The end station 3 4 is not provided with a terminal and an input latch circuit output devices such as an input device or an actuator such as various sensors are connected, the output of the output latch circuit 24 through an inverter 26 upstream It is adapted to be applied to the input / output circuit 21u on the side. Other configurations are similar to those of the other slave stations 3 1 to 3 3 .
【0049】この実施例の制御通信システムでは、親局
2から子局31〜34へデータを伝送するときには、親局
2の入出力レジスタ11のデータを、コントロール信号
のシフトクロックに応答して1ビットずつ上流側の子局
から下流側のエンド局34へ順次シフトさせるものであ
り、逆に、子局31〜34から親局2へデータを伝送する
ときには、各子局31〜34のシフトレジスタ221〜2
24のデータを、下流側から上流側へ順次シフトさせて
親局2の入出力レジスタ11に伝送するものである。In the control communication system of this embodiment, when data is transmitted from the master station 2 to the slave stations 3 1 to 3 4 , the data in the input / output register 11 of the master station 2 responds to the shift clock of the control signal. 1 bit at a time from the upstream slave station to the downstream end station 3 4 in sequence, and conversely, when transmitting data from the slave stations 3 1 to 3 4 to the master station 2, each slave station 3 4 1 to 3 4 shift registers 22 1 to 2
2 4 data, and transmit the output register 11 of the master station 2 by sequentially shifted from the downstream side to the upstream side.
【0050】図6および図7は、この伝送の状態を示す
タイミングチャートであり、図6は、親局2から子局3
1〜34へデータを伝送する場合の子局31〜34のコント
ロール信号ライン、上流および下流側のデータ信号ライ
ンの信号を示し、図7は、子局31〜34から親局2へデ
ータを伝送する場合の子局31〜34の各信号ラインの信
号を示している。6 and 7 are timing charts showing the state of this transmission. FIG. 6 shows the master station 2 to the slave station 3.
7 shows the control signal lines of the slave stations 3 1 to 3 4 and the data signal lines on the upstream and downstream sides when transmitting data to 1 to 3 4 , and FIG. 7 shows the slave stations 3 1 to 3 4 to the master station. 2 shows the signals of the respective signal lines of the slave stations 3 1 to 3 4 when transmitting data to No. 2.
【0051】親局2から子局31〜34へデータを伝送す
る場合には、図6(A)のコントロール信号のシフトク
ロックに応答して、図6(B)に示される上流側からの
入力データを、1ビットずつシフトさせて図6(C)に
示されるように下流側に出力するものである。When data is transmitted from the master station 2 to the slave stations 3 1 to 3 4 , in response to the shift clock of the control signal of FIG. 6A, the upstream side shown in FIG. Input data is shifted bit by bit and is output to the downstream side as shown in FIG. 6 (C).
【0052】また、子局31〜34から親局2へデータを
伝送する場合には、図7(A)のコントロール信号のシ
フトクロックに応答して、図7(B)に示される下流側
からの入力データを、1ビットずつシフトさせて図7
(C)に示されるように上流側に出力するものである。When data is transmitted from the slave stations 3 1 to 3 4 to the master station 2, in response to the shift clock of the control signal of FIG. 7A, the downstream shown in FIG. The input data from the side is shifted bit by bit, as shown in FIG.
As shown in (C), it outputs to the upstream side.
【0053】この実施例では、子局31〜34の台数の登
録を自動化し、子局のアドレス番号の設定作業や台数登
録作業を不要とするために、次のように構成している。In this embodiment, in order to automate the registration of the numbers of the slave stations 3 1 to 3 4 and to eliminate the work of setting the address numbers of the slave stations and the work of registering the numbers, the following configuration is adopted. .
【0054】図8は、この台数登録の手順を説明するた
めの親局2の入出力レジスタ11および各子局31〜34
の1ビットのシフトレジスタ221〜224を示す図であ
る。FIG. 8 shows the input / output register 11 of the master station 2 and the slave stations 3 1 to 3 4 for explaining the procedure for registering the number of units.
1 is a diagram showing 1-bit shift registers 22 1 to 22 4 .
【0055】先ず、電源投入時などのシステムの立ち上
げ時には、同図(A),(B)に示されるように親局2
の8ビットの入出力レジスタ11の各ビットに「1」が
入力される。First, when the system is started up, such as when the power is turned on, the master station 2 as shown in FIGS.
“1” is input to each bit of the 8-bit input / output register 11.
【0056】次に、親局2のデータを子局31〜34へ伝
送せよとのコマンドに引き続く8個のシフトクロックに
同期して前記入出力レジスタ11の8ビットのデータ
が、上流側から下流側に順次シフトされて同図(C)に
示されるように、各子局31〜34の1ビットのシフトレ
ジスタ221〜224に入力される。Next, the 8-bit data of the input / output register 11 is transferred to the upstream side in synchronization with the eight shift clocks following the command to transmit the data of the master station 2 to the slave stations 3 1 to 3 4 . Are sequentially shifted to the downstream side and are input to the 1-bit shift registers 22 1 to 22 4 of the respective slave stations 3 1 to 3 4 as shown in FIG.
【0057】次に、子局31〜34のデータを親局2に伝
送せよとのコマンドに引き続く8個のシフトクロックに
同期して各子局31〜34のデータが、下流側から上流側
に順次シフトされて同図(D)に示されるように、親局
2の8ビットの入出力レジスタ11に入力される。Next, in synchronization with the eight shift clocks following the command to transmit the data of the slave stations 3 1 to 3 4 to the master station 2, the data of the slave stations 3 1 to 3 4 are transferred to the downstream side. Are sequentially shifted to the upstream side and are input to the 8-bit input / output register 11 of the master station 2 as shown in FIG.
【0058】この実施例では、最大8台の子局が接続可
能な親局2に対して、4台の子局31〜34が接続されて
いるので、同図(A)に示されるように8ビットすべて
がハイレベルのデータの伝送に対して、子局31〜34か
らは、同図(D)に示されるように4ビットのみがハイ
レベルのデータが返送されてくることになる。In this embodiment, four slave stations 3 1 to 3 4 are connected to the master station 2 to which a maximum of 8 slave stations can be connected, so that it is shown in FIG. respect as in the 8-bit data for all the high level transmission, from the slave station 3 1 to 3 4, that only 4 bits sent back data the high level as shown in FIG. (D) become.
【0059】親局2は、図9に示されるように、最も上
流側の子局31から返送されてくる同図(B)のデータ
のハイレベルの期間における同図(A)のシフトクロッ
クの数を計数することにより、子局31〜34の台数を把
握して台数登録回路8に登録し、また、エンド局は、最
も下流側に配置されるので、親局2から4台目の子局が
エンド局34であることを認識し、以後、この子局34に
対応するデータを、エンド局チェックレジスタ10に与
え、エンド局34から返送されてくるデータが、常に反
転処理されているか否かを監視する。As shown in FIG. 9, the master station 2 shifts the shift clock shown in FIG. 9A in the high level period of the data shown in FIG. 9B returned from the most upstream slave station 3 1 . The number of slave stations 3 1 to 3 4 is grasped and registered in the number registration circuit 8, and the end station is arranged on the most downstream side. It recognizes that the eye slave station is the end station 3 4 , and thereafter, the data corresponding to this slave station 3 4 is given to the end station check register 10, and the data returned from the end station 3 4 is always inverted. Monitor whether or not it has been done.
【0060】このように、電源投入などのシステムの立
ち上げ時において、所定のデータを、親局2から子局3
1〜34に伝送し、親局2は、子局31〜34から返送され
るデータに基づいて、台数を求めて登録するので、従来
例のように、アドレス番号の設定作業や登録台数の設定
作業が不要となる。As described above, at the time of system startup such as power-on, predetermined data is transmitted from the master station 2 to the slave station 3.
1 to 3 4 , and the master station 2 obtains and registers the number of units based on the data returned from the slave stations 3 1 to 3 4 , so that the address number setting work and registration are performed as in the conventional example. No need to set the number of units.
【0061】この実施例では、親局2から所定のデータ
を伝送し、子局31〜34から返送されるデータに基づい
て、台数を求めたけれども、本発明の他の実施例とし
て、例えば、システムの立ち上げ時には、各子局31〜
34のシフトレジスタ221〜224に「1」を入力し、
8個のシフトクロックに応じて、子局31〜34のデータ
を、親局2へ伝送するようにし、親局2では、上述と同
様に台数を求めるようにしてもよい。In this embodiment, the predetermined number of data is transmitted from the master station 2 and the number of units is calculated based on the data returned from the slave stations 3 1 to 3 4. However, as another embodiment of the present invention, For example, when starting up the system, each slave station 3 1 ~
Input "1" into the shift registers 22 1 to 22 4 of 3 4 ,
The data of the slave stations 3 1 to 3 4 may be transmitted to the master station 2 in accordance with the eight shift clocks, and the master station 2 may determine the number as in the above.
【0062】なお、上述の実施例では、所定のデータと
してハイレベルのデータを用いて正論理で構成したけれ
ども、本発明の他の実施例として、所定のデータとして
ローレベルのデータを用いて負論理で構成してもよい。In the above-described embodiment, the high level data is used as the predetermined data and the positive logic is used. However, as another embodiment of the present invention, the low level data is used as the predetermined data and the negative data is used. It may be configured by logic.
【0063】次に、以上のようにして台数の登録が終了
した後の通常の動作手順を、図10に基づいて説明す
る。Next, a normal operation procedure after the registration of the number of vehicles is completed as described above will be described with reference to FIG.
【0064】この実施例では、先ず、入力機器41〜43
のオンオフの状態信号を各子局31〜34に入力せよとの
コマンドが伝送され、これに応じて、例えば同図(A)
に示されるように、各子局31〜33は、入力機器のデー
タを、入力部としての入力ラッチ回路20を介して1ビ
ットのシフトレジスタ221〜224にそれぞれ取り込
む。このとき、エンド局34は、入力ラッチ回路を有し
ておらず、シフトレジスタ224のデータはそのままで
ある。次に、子局31〜34のデータを親局2に伝送せよ
とのコマンドに引き続く8個のシフトクロックに同期し
て、取り込んだデータを、同図(B)に示されるよう
に、親局2の入出力レジスタ11に伝送し、親局2は、
伝送されたデータを、プログラマブルコントローラ1に
出力する。[0064] In this embodiment, first, the input device 41 to 3
A command to input the ON / OFF state signal of No. 1 to each slave station 3 1 to 3 4 is transmitted, and accordingly, for example, FIG.
As shown in, each of the slave stations 3 1 to 3 3 fetches the data of the input device into the 1-bit shift registers 22 1 to 22 4 via the input latch circuit 20 as an input unit. At this time, the end station 3 4 does not have an input latch circuit, and the data in the shift register 22 4 remains unchanged. Next, in synchronism with the eight shift clocks following the command to transmit the data of the slave stations 3 1 to 3 4 to the master station 2, the fetched data is converted into the data shown in FIG. The data is transmitted to the input / output register 11 of the master station 2, and the master station 2
The transmitted data is output to the programmable controller 1.
【0065】次に、親局2のデータを子局31に〜34
伝送せよとのコマンドに引き続く8個のシフトクロック
に同期して、同図(C)に示されるように、入出力レジ
スタ11のデータを子局31〜34に返送し、子局31
〜34のデータを出力せよとのコマンドに応じて、各子
局31〜34は、同図(C)に示されるようにシフトレ
ジスタ221〜224のデータを出力ラッチ回路24に
出力してラッチする。この実施例では、出力機器は、接
続されていないので、表示用LED23が、データに応
じて点灯あるいは消灯のままとなる。Next, the data of the master station 2 is transferred to the slave station 3 1 through 3 4
In synchronization with the eight shift clocks subsequent to a command and event transmission, as shown in FIG. (C), to return the data input and output register 11 to the slave station 3 1 to 3 4, slave station 3 1
In response to a command and should output a to 3 4 data, each slave station 3 1 to 3 4 to the output latch circuit 24 to data of the shift register 22 1 to 22 4 as shown in FIG. (C) Output and latch. In this embodiment, since the output device is not connected, the display LED 23 remains on or off depending on the data.
【0066】したがって、この表示用LED23によっ
て入力機器41〜43のオンオフ状態を把握でき、また、
入力機器41〜43のオンオフ状態に応じて、表示用LE
D23が点灯あるいは消灯するのを確認することによ
り、親局2と子局31〜33との間のデータの伝送が正常
に行われていることを確認できることになる。Therefore, the on / off state of the input devices 4 1 to 4 3 can be grasped by the display LED 23, and
Depending on the off state of the input device 41 to 3, the display LE
By confirming that D23 is turned on or off, it can be confirmed that the data transmission between the master station 2 and the slave stations 3 1 to 3 3 is normally performed.
【0067】なお、エンド局34は、子局のデータを出
力せよとのコマンドに応じて、シフトレジスタ224の
データを出力ラッチ回路24にラッチすることにより、
図5のブロック図に示されるように、ラッチされたデー
タが、インバータ26を介してシフトレジスタ224に
与えられ、これによって、同図(D)に示されるように
シフトレジスタ224のデータが反転することになる。The end station 3 4 latches the data of the shift register 22 4 in the output latch circuit 24 in response to the command to output the data of the slave station.
As shown in the block diagram of FIG. 5, the latched data is supplied to the shift register 22 4 via the inverter 26, whereby the data in the shift register 22 4 is transferred as shown in FIG. It will be reversed.
【0068】その後は、再び、同図(A)と同様に、入
力機器41〜43のデータを各子局31〜33のシフト
レジスタ221〜223に取り込んで、上述と同様の動
作を繰り返すのである。なお、入力機器41〜43のデ
ータを取り込んだ時に、エンド局34のシフトレジスタ
224のデータは、同図(D)で示された反転されたデ
ータのままとなる。この反転されたデータも他の各子局
3 1 〜3 3 のシフトレジスタ22 1 〜22 3 のデータと
ともに上流側の子局を順次シフトさせて親局の入出力レ
ジスタ11に伝送される。 [0068] Then, again, similar to FIG. (A), captures the data of the input device 41 to 3 in the shift register 22 1 to 22 3 of each slave station 3 1 to 3 3, as described above Is repeated. Incidentally, when the captured data of the input device 41 to 3, the data in the shift register 22 4 end station 3 4 will remain in the inverted data shown in FIG. (D). This inverted data is also used for each other slave station.
3 1 to 3 3 data of the shift registers 22 1 to 22 3
In both cases, the slave stations on the upstream side are sequentially shifted to input / output records of the master station.
It is transmitted to the register 11.
【0069】このように、エンド局34は、親局2から
のデータを反転して親局2に返送するものであり、親局
2は、エンド局34からのデータが常に反転されて伝送
されていることを監視しており、反転されたデータが伝
送されなかったときには、断線あるいはノイズ等による
伝送路の異常であるとして、表示部41にて上述のエラ
ー表示を行う。In this way, the end station 3 4 inverts the data from the master station 2 and sends it back to the master station 2, and the master station 2 always inverts the data from the end station 3 4. The transmission is monitored, and when the inverted data is not transmitted, it is determined that there is an abnormality in the transmission path due to disconnection or noise, and the above-mentioned error display is performed on the display unit 41.
【0070】[0070]
【0071】この実施例では、子局31〜34と親局2と
の間のデータの伝送が正常に行われているか否かを容易
に確認できるように、各子局31〜34には、チェックス
イッチ27が設けられているとともに、親局2からのデ
ータを表示する表示用LED23が設けられている。In this embodiment, in order to easily confirm whether or not the data transmission between the slave stations 3 1 to 3 4 and the master station 2 is normally performed, the slave stations 3 1 to 3 3 can be easily confirmed. The check switch 27 is provided at 4 , and the display LED 23 for displaying data from the master station 2 is provided at 4.
【0072】したがって、データの伝送が正常に行われ
ているか否かを確認する場合には、確認しようとする子
局31〜34に接続されている入力機器41〜43をオフし
ておき、チェックスイッチ27を操作する。これによっ
て、ハイレベルのモニタ用のデータが1ビットのシフト
レジスタ221〜224に取り込まれ、上述の動作に従っ
て、親局2に伝送され、さらに、親局2からそのデータ
が返送されてシフトレジスタ221〜224に与えられ、
このシフトレジスタ221〜224のハイレベルのデータ
が出力ラッチ回路24にラッチされて表示用LED23
が点灯することになる。Therefore, in order to confirm whether or not the data transmission is normally performed, the input devices 4 1 to 4 3 connected to the slave stations 3 1 to 3 4 to be confirmed are turned off. First, the check switch 27 is operated. As a result, the high-level monitor data is fetched into the 1-bit shift registers 22 1 to 22 4 and transmitted to the master station 2 according to the above-described operation, and the master station 2 returns the data and shifts the data. Given to registers 22 1 to 22 4 ,
The high level data of the shift registers 22 1 to 22 4 is latched by the output latch circuit 24 and the display LED 23
Will light up.
【0073】したがって、チェックスイッチ27を操作
して表示用LED23が点灯すれば、正常であると判断
することができる。Therefore, when the check switch 27 is operated to turn on the display LED 23, it can be determined that the LED is normal.
【0074】ここで、断線やノイズ等による伝送路の異
常が検知された場合に、その異常箇所の特定について説
明する。Here, when the abnormality of the transmission line due to the disconnection or noise is detected, the specification of the abnormal portion will be described.
【0075】先ず、エンド局チェックレジスタ10によ
って断線やノイズ等による異常が検知されると、図3
(B)に示されるエラー表示がなされ、ユーザが、異常
原因を知るために、リセットスイッチ42を操作する
と、図3(C)に示されるように電源表示用LED43
が点灯し、ユーザは、断線やノイズ等による異常である
ことを知ることができる。First, when an abnormality due to disconnection or noise is detected by the end station check register 10, FIG.
The error display shown in FIG. 3B is displayed, and when the user operates the reset switch 42 in order to know the cause of the abnormality, the power display LED 43 is displayed as shown in FIG. 3C.
Lights up, and the user can know that there is an abnormality due to disconnection or noise.
【0076】これによって、ユーザは、親局2と最も下
流側の子局34との間で断線やノイズ等による異常が発
生したことを知ることができる。そこで、その異常箇所
を特定するために、親局2からのデータを反転して返送
するエンド局34の接続位置を、上流側に変える。例え
ば、親局2から3番目の子局33を外してエンド局34を
接続して動作させてみる。この場合にも、断線やノイズ
等による異常が検知されれば、親局2と該親局2から3
番目の子局との間で異常が生じていることになり、異常
が検知されなければ、親局2から3番目の子局と最も下
流側の子局との間で異常が生じていることになる。[0076] Thus, the user can know that the abnormality due to disconnection or noise between the slave station 3 4 on the most downstream side and the master station 2 has occurred. Therefore, in order to identify the abnormal portion, the connection position of the end station 3 4 to return to invert the data from the master station 2 changes to the upstream side. For example, disconnect the third slave station 3 3 from the master station 2 and connect the end station 3 4 to operate it. Also in this case, if an abnormality due to disconnection or noise is detected, the master station 2 and the master stations 2 to 3 are detected.
An abnormality has occurred with the second slave station, and if no abnormality is detected, there is an abnormality between the third slave station from the master station 2 and the most downstream slave station. become.
【0077】このように、親局2からのデータを反転処
理して返送する子局34の接続位置を変えてみること
で、比較的容易に異常の発生箇所を特定できることにな
る。[0077] Thus, to try to change the connection position of the remote station 3 4 to return data inversion process to the from the master station 2 will be able to determine where the relative ease abnormal.
【0078】上述の実施例では、各子局31〜33に各種
センサ等の入力機器41〜43のみが接続された入力専用
の場合について説明したけれども、本発明の他の実施例
として、各子局31〜33にアクチュエータやエアバルブ
等の出力機器のみが接続された出力専用の場合および各
子局31〜33に入力機器あるいは出力機器が接続された
入出力混合の場合について説明する。In the above embodiment, the case where only the input devices 4 1 to 4 3 such as various sensors are connected to the respective slave stations 3 1 to 3 3 for input only is explained, but another embodiment of the present invention. as a sub-stations 3 1 to 3 3 to the actuator or air valve or the like output device only connected when the output-only and each slave station 3 1 to 3 3 to an input device or output device is connected the output combination of The case will be described.
【0079】なお、入力専用、出力専用および入出力混
合では、その伝送の手順が異なるので、メーカあるいは
ユーザは、親局2の図示しない設定部を操作して入力専
用、出力専用あるいは入出力混合のいずれかを初期設定
するものである。また、いずれの場合も子局の台数の登
録は、上述の実施例と同様であるので、その説明は、省
略する。Since the transmission procedure is different between the input only, the output only and the input / output mixed, the manufacturer or the user operates the setting unit (not shown) of the master station 2 to input only, output only or mix the input and output. One of these is to be initialized. Further, in any case, the registration of the number of slave stations is the same as that in the above-mentioned embodiment, and therefore its explanation is omitted.
【0080】図11は、出力専用の場合の図10に対応
する図である。FIG. 11 is a diagram corresponding to FIG. 10 in the case of output only.
【0081】先ず、入力ラッチ回路20のデータを各子
局31〜33に入力せよとのコマンドが伝送され、これに
応じて、同図(A)に示されるように、各子局31〜33
は、入力機器が接続されていない入力ラッチ回路20の
データを、1ビットのシフトレジスタ221〜223にそ
れぞれ取り込み、子局31〜34のデータを親局2に伝送
せよとのコマンドに引き続く8個のシフトクロックに同
期して、取り込んだデータを、同図(B)に示されるよ
うに、親局2の入出力レジスタ11に伝送し、親局2
は、同図(C)に示されるように、プログラマブルコン
トローラ1からのオンオフの制御信号を入出力レジスタ
11に取り込む。First, a command for inputting the data of the input latch circuit 20 to each of the slave stations 3 1 to 3 3 is transmitted, and in response thereto, as shown in FIG. 1 to 3
Is a command to fetch the data of the input latch circuit 20 to which the input device is not connected to the 1-bit shift registers 22 1 to 22 3 respectively and to transmit the data of the slave stations 3 1 to 3 4 to the master station 2. In synchronism with the eight shift clocks following, the captured data is transmitted to the input / output register 11 of the master station 2 as shown in FIG.
As shown in FIG. 2C, the on / off control signal from the programmable controller 1 is loaded into the input / output register 11.
【0082】次に、親局2のデータを子局31〜34に伝
送せよとのコマンドに引き続く8個のシフトクロックに
同期して、同図(D)に示されるように、入出力レジス
タ11のデータを子局31〜34に伝送し、子局31〜34
のデータを出力せよとのコマンドに応じて、各子局31
〜34は、同図(E)に示されるように、シフトレジス
タ221〜224のデータを出力ラッチ回路24にラッチ
してアクチュエータ等の出力機器に出力する。なお、エ
ンド局34は、子局のデータを出力せよとのコマンドに
応じて、シフトレジスタ224のデータを反転させる。Next, in synchronization with the eight shift clocks following the command to transmit the data of the master station 2 to the slave stations 3 1 to 3 4 , as shown in FIG. transmitting the data of the register 11 to the slave station 3 1 to 3 4, slave station 3 1 to 3 4
Each slave station 3 1 according to the command to output the data
To 3 4, as shown in Fig. 2 (E), and outputs the latched data in the shift register 22 1 to 22 4 to the output latch circuit 24 to an output device such as an actuator. The end station 3 4 inverts the data in the shift register 22 4 in response to the command to output the data from the slave station.
【0083】その後は、再び、同図(A)と同様に、入
力ラッチ回路20のデータを各子局31〜33のシフトレ
ジスタ221〜223に取り込んで、上述と同様の動作を
繰り返すのである。After that, the data of the input latch circuit 20 is again fetched into the shift registers 22 1 to 22 3 of the respective slave stations 3 1 to 3 3 and the same operation as described above is performed, as in the case of FIG. It repeats.
【0084】図12は、入出力混合の場合の図10に対
応する図であり、この実施例では、上流側から第1番目
および第3番目の子局31,33に入力機器が接続されて
おり、第2番目の子局32に出力機器が接続されてい
る。FIG. 12 is a diagram corresponding to FIG. 10 in the case of mixed input and output. In this embodiment, input devices are connected from the upstream side to the first and third slave stations 3 1 and 3 3. The output device is connected to the second slave station 3 2 .
【0085】先ず、入力ラッチ回路20のデータを各子
局31〜33に入力せよとのコマンドが伝送され、これに
応じて、同図(A)に示されるように、各子局31〜34
は、入力ラッチ回路20のデータを、1ビットのシフト
レジスタ221〜223にそれぞれ取り込み、子局31〜
34のデータを親局2に伝送せよとのコマンドに引き続
く8個のシフトクロックに同期して、取り込んだデータ
を、同図(B)に示されるように、親局2の入出力レジ
スタ11に伝送し、親局2は、伝送された入力機器から
のオンオフの状態信号を、プログラマブルコントローラ
1に出力し、次に、同図(C)に示されるように、プロ
グラマブルコントローラ1からのオンオフの制御信号を
入出力レジスタ11に取り込む。First, a command for inputting the data of the input latch circuit 20 to each of the slave stations 3 1 to 3 3 is transmitted, and in response thereto, as shown in FIG. 1-3 4
Captures the data of the input latch circuit 20 into the 1-bit shift registers 22 1 to 22 3 , respectively, and the slave stations 3 1 to
As shown in FIG. 2B, the input data of the master station 2 is input and output in synchronization with the eight shift clocks following the command to transmit the data of 3 4 to the master station 2. Then, the master station 2 outputs the transmitted ON / OFF state signal from the input device to the programmable controller 1, and then, as shown in FIG. The control signal is taken into the input / output register 11.
【0086】次に、親局2のデータを子局31〜34に伝
送せよとのコマンドに引き続く8個のシフトクロックに
同期して、同図(D)に示されるように、入出力レジス
タ11のデータを子局31〜34に伝送し、子局のデータ
を出力せよとのコマンドに応じて、各子局31〜34は、
同図(E)に示されるように、シフトレジスタ221〜
224のデータを出力ラッチ回路24にラッチしてアク
チュエータ等の出力機器に出力する。なお、エンド局3
4は、子局のデータを出力せよとのコマンドに応じて、
シフトレジスタ224のデータを反転させる。Next, in synchronization with the eight shift clocks following the command to transmit the data of the master station 2 to the slave stations 3 1 to 3 4 , as shown in FIG. transmitting the data of the register 11 to the slave station 3 1 to 3 4, in accordance with a command and should output the data of the slave station, the slave station 3 1 to 3 4,
As shown in FIG. 8E, the shift registers 22 1 ...
The data of 22 4 is latched by the output latch circuit 24 and output to an output device such as an actuator. In addition, end station 3
4 responds to the command to output the data of the slave station,
The data in the shift register 22 4 is inverted.
【0087】その後は、再び、同図(A)と同様に入力
ラッチ回路24のデータを各子局31〜34のシフトレジ
スタ221〜224に取り込んで、上述と同様の動作を繰
り返すのである。After that, the data of the input latch circuit 24 is fetched into the shift registers 22 1 to 22 4 of the slave stations 3 1 to 3 4 again and the same operation as described above is repeated, as in the case of FIG. Of.
【0088】上述の実施例では、親局2には、最大8台
の子局が接続可能であったけれども、本発明は、8台に
限るものではなく、16台、その他の台数が接続される
構成としてもよい。Although a maximum of eight slave stations can be connected to the master station 2 in the above-described embodiment, the present invention is not limited to eight stations, but 16 stations and other stations can be connected. May be configured.
【0089】上述の各実施例では、親局2からの電源供
給ラインを縦続接続して各子局31〜34および各子局3
1〜33に接続された入力機器41〜43に電源を供給した
けれども、図13に示されるように、子局の数が増加し
て下流側の子局までの距離が長くなると、下流側の子局
では、入力機器あるいは出力機器に十分な電源が供給さ
れず、このため、各子局毎に別途電源を設ける必要があ
る。In each of the above-described embodiments, the power supply lines from the master station 2 are connected in cascade to connect the slave stations 3 1 to 3 4 and the slave stations 3 to each other.
Although power is supplied to the input devices 4 1 to 4 3 connected to 1 to 3 3 , as shown in FIG. 13, when the number of slave stations increases and the distance to the downstream slave stations becomes long, In the slave station on the downstream side, sufficient power is not supplied to the input device or the output device. Therefore, it is necessary to separately provide a power source for each slave station.
【0090】そこで、本発明の他の実施例として、図1
4に示されるように、親局2から最も下流側の子局3n
まで縦続接続された電源供給ラインVL1とは別に、例
えば最も下流側の子局3nから親局2に直接、電源供給
ラインVL2を接続するようにしてもよい。Therefore, as another embodiment of the present invention, FIG.
4, the child station 3n on the most downstream side from the parent station 2
In addition to the power supply line VL1 cascade-connected to each other, for example, the power supply line VL2 may be directly connected from the most downstream child station 3n to the parent station 2.
【0091】これによって、2倍の伝送距離を、子局毎
に別電源を使用することなく、確保できることになる。As a result, the double transmission distance can be secured without using a separate power source for each slave station.
【0092】上述の実施例では、エンド局を最も下流側
に設けたけれども、本発明の他の実施例として、エンド
局を、その下流側にも子局を縦続接続できる構成とし、
上流側に配置する構成としてもよい。この場合には、親
局に、いずれがエンド局であるかを設定できるように構
成してもよいし、親局は、複数回のデータの伝送によっ
てデータに処理を施こしている子局をエンド局と認識す
るように構成してもよい。Although the end station is provided on the most downstream side in the above-mentioned embodiment, as another embodiment of the present invention, the end station is constructed so that the slave stations can be connected in cascade also on the downstream side thereof.
It may be arranged on the upstream side. In this case, the master station may be configured to be able to set which is the end station, and the master station may select a slave station that is processing data by transmitting data multiple times. It may be configured so that it is recognized as an end station.
【0093】さらに、エンド局に、入力機器あるいは出
力機器を接続できるように構成してもよい。Further, the end station may be configured so that an input device or an output device can be connected.
【0094】[0094]
【発明の効果】以上説明したように本発明によれば、断
線、短絡あるいはノイズ等による伝送路の異常を検知し
て表示手段で対応する表示を行うので、異常が生じたと
きには、異常の原因を迅速に把握できることになり、ま
た、断線やノイズ等による伝送路の異常は、反転処理を
施す子局の接続位置を変えてみることで、異常箇所を特
定できることになる。As described above, according to the present invention, the abnormality of the transmission line due to the disconnection, the short circuit or the noise is detected and the corresponding display is performed. Therefore, when the abnormality occurs, the cause of the abnormality is caused. Can be quickly grasped, and the abnormality of the transmission line due to disconnection, noise, etc. can be identified by changing the connection position of the slave station to which the inversion process is applied.
【0095】また、本発明によれば、基本的な動作状態
の表示用として一般に備えられている表示用素子、例え
ば電源表示用素子、動作表示用素子およびエラー表示用
素子の少なくとも一つの表示用素子を、異常原因の表示
に兼用するので、別途、表示用素子を設ける構成に比べ
てコストの低減および小型化を図ることができる。According to the present invention, a display element generally provided for displaying a basic operation state, for example, at least one of a power supply display element, an operation display element and an error display element is used for display. Since the element is also used for displaying the cause of the abnormality, the cost and the size can be reduced as compared with the configuration in which the display element is separately provided.
【0096】さらに、データに反転処理を施したうえで
返送する子局を、最も下流側の子局としているので、親
局と最も下流側の子局との間の断線やノイズ等による伝
送路の異常を検知して表示できることになる。Further, since the slave station which inverts the data and returns the data is the slave station on the most downstream side, the transmission line due to disconnection or noise between the master station and the most downstream slave station is used. It will be possible to detect and display abnormalities.
【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.
【図2】図1の親局のブロック図である。FIG. 2 is a block diagram of a master station of FIG.
【図3】各状態における表示用LEDの点灯状態を示す
図である。FIG. 3 is a diagram showing a lighting state of a display LED in each state.
【図4】図1の子局のブロック図である。4 is a block diagram of a slave station in FIG. 1. FIG.
【図5】図1のエンド局のブロック図である。5 is a block diagram of the end station of FIG. 1. FIG.
【図6】親局から子局へデータを伝送する場合の信号波
形図である。FIG. 6 is a signal waveform diagram when data is transmitted from a master station to a slave station.
【図7】子局から親局へデータを伝送する場合の信号波
形図である。FIG. 7 is a signal waveform diagram when data is transmitted from a child station to a parent station.
【図8】台数登録の際のレジスタのデータを示す図であ
る。FIG. 8 is a diagram showing register data when registering the number of vehicles.
【図9】台数の判定を説明するための信号波形図であ
る。FIG. 9 is a signal waveform diagram for explaining determination of the number of vehicles.
【図10】通常動作の際のレジスタのデータを示す図で
ある。FIG. 10 is a diagram showing register data in a normal operation.
【図11】本発明の他の実施例の通常動作の際のレジス
タのデータを示す図である。FIG. 11 is a diagram showing register data during normal operation according to another embodiment of the present invention.
【図12】本発明のさらに他の実施例の通常動作の際の
レジスタのデータを示す図である。FIG. 12 is a diagram showing register data during normal operation according to still another embodiment of the present invention.
【図13】図1の実施例の電源供給を示す図である。FIG. 13 is a diagram showing power supply in the embodiment of FIG.
【図14】本発明の他の実施例の電源供給を示す図であ
る。FIG. 14 is a diagram showing power supply according to another embodiment of the present invention.
【図15】従来例の構成図である。FIG. 15 is a configuration diagram of a conventional example.
2 親局 31〜34 子局 41〜43 入力機器 10 エンド局チェックレジスタ 40 短絡検知回路 41 表示部 42 リセットスイッチ 43 電源表示用LED 44 動作表示用LED 45 エラー表示用LED2 Master station 3 1 to 3 4 Slave station 4 1 to 4 3 Input device 10 End station check register 40 Short circuit detection circuit 41 Display section 42 Reset switch 43 Power supply display LED 44 Operation display LED 45 Error display LED
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−277397(JP,A) 特開 昭62−81131(JP,A) 特開 昭57−99846(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04B 3/46 H04M 3/24 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-2-277397 (JP, A) JP-A-62-81131 (JP, A) JP-A-57-99846 (JP, A) (58) Field (Int.Cl. 7 , DB name) H04B 3/46 H04M 3/24
Claims (4)
信号のシフトクロックに応答して1ビットづつ子局を順
次シフトさせることによって、親局側である上流側の子
局から下流側の子局に伝送し、 前記各子局から親局へのビットデータを、コントロール
信号のシフトクロックに応答して1ビットづつ下流側の
子局から上流側の子局を順次シフトさせることによって
前記親局に伝送する制御通信システムであって、最も下流側の子局は、前記親局から伝送されてきたビッ
トデータ に反転処理を施したビットデータを前記親局に
返送するものであり、 前記親局は、最も下流側の子局から前記反転処理が施さ
れたビットデータが返送されないときは伝送路異常であ
ることを検知する検知手段と、前記検知手段の検知に応
じてエラー発生の表示を行う表示手段とを備えることを
特徴とする制御通信システム。1. A master station and a plurality of slave stations are cascade-connected to control bit data from the master station to each slave station.
In response to the signal shift clock, the slave stations are moved one bit at a time
By shifting next, the child on the upstream side, which is the master station side
From each station to the slave station on the downstream side , and control the bit data from each slave station to the master station.
In response to the shift clock of the signal, bit by bit on the downstream side
In the control communication system that transmits to the master station by sequentially shifting the slave stations on the upstream side from the slave station, the slave station on the most downstream side is the bit transmitted from the master station.
And the bit data subjected to inversion processing in Todeta those returning to the master station, the master station, a line failure when the most downstream bit data in which the inversion processing has been performed from the slave station is not returned Ah
Sensing means for sensing Rukoto, response to the detection of said detecting means
And a display means for displaying an error occurrence .
信号のシフトクロックに応答して1ビットづつ子局を順
次シフトさせることによって、親局側である上流側の子
局から下流側の子局に伝送し、 前記各子局から親局へのビットデータを、コントロール
信号のシフトクロックに応答して1ビットづつ下流側の
子局から上流側の子局を順次シフトさせることによって
前記親局に伝送する制御通信システムであって、最も下流側の子局は、前記親局から伝送されてきたビッ
トデータ に反転処理を施したビットデータを前記親局に
返送するものであり、 前記親局は、最も下流側の子局から前記反転処理が施さ
れたビットデータが返送されないときは伝送路異常であ
ることを検知する第1検知手段と、前記親局、前記子局
およびそれらの間の信号ラインの信号レベルを監視して
短絡を検知する第2検知手段と、前記両検知手段の検知
に応じてエラー発生の表示を行う表示手段とを備えるこ
とを特徴とする制御通信システム。2. A master station and a plurality of slave stations are connected in cascade , and bit data from the master station to each slave station is controlled.
In response to the signal shift clock, the slave stations are moved one bit at a time
By shifting next, the child on the upstream side, which is the master station side
From each station to the slave station on the downstream side , and control the bit data from each slave station to the master station.
In response to the shift clock of the signal, bit by bit on the downstream side
In the control communication system that transmits to the master station by sequentially shifting the slave stations on the upstream side from the slave station, the slave station on the most downstream side is the bit transmitted from the master station.
And the bit data subjected to inversion processing in Todeta those returning to the master station, the master station, a line failure when the most downstream bit data in which the inversion processing has been performed from the slave station is not returned Ah
A first detecting means for detecting Rukoto, the master station, a second detecting means for detecting a short-circuit monitors the slave station and the signal level of the signal line therebetween, the detection of both detecting means
And a display unit for displaying an error occurrence according to the above .
るために操作される操作部を備え、 前記表示手段は、動作状態を表示する複数の表示用素子
を有し、前記複数の表示用素子は、エラーの発生を表示
するエラー表示用素子を含み、該エラー表示用素子がエ
ラー発生状態を表示している状態で前記操作部を操作す
ると、前記複数の表示用素子の少なくとも一つの表示用
素子によって、前記検知出力に応じて伝送路異常と短絡
異常とが区別されてその表示を行うものである請求項2
に記載の制御通信システム。3. The master station includes an operation unit that is operated to display the cause of the transmission abnormality, and the display unit has a plurality of display elements that display an operation state, and the plurality of display elements. The operation element includes an error display element that displays the occurrence of an error, and when the operation unit is operated in a state in which the error display element displays the error occurrence state, at least one of the plurality of display elements is displayed. Abnormality and short circuit of the transmission line depending on the detection output by the display element
The display is made by distinguishing from the abnormality.
The control communication system according to.
表示する電源表示用素子と、正常動作を表示する動作表
示用素子とを含むとともに、前記電源表示用素子は、前
記エラー表示用素子がエラー発生状態を表示している状
態で前記操作部を操作すると、前記検知出力に応じて伝
送路異常と短絡異常とが区別されてその表示を行うもの
である請求項3に記載の制御通信システム。4. The plurality of display elements include a power supply display element that displays a supply of power and an operation display element that displays a normal operation, and the power supply display element is a front display element.
Note that the error display element displays the error occurrence status.
When the operation part is operated in the state, the power is transmitted according to the detection output.
A display that distinguishes between a line error and a short circuit error
Control communication system according to claim 3 is.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10228295A JP3472891B2 (en) | 1995-04-26 | 1995-04-26 | Control communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10228295A JP3472891B2 (en) | 1995-04-26 | 1995-04-26 | Control communication system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08298481A JPH08298481A (en) | 1996-11-12 |
| JP3472891B2 true JP3472891B2 (en) | 2003-12-02 |
Family
ID=14323259
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10228295A Expired - Fee Related JP3472891B2 (en) | 1995-04-26 | 1995-04-26 | Control communication system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3472891B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100401424B1 (en) * | 2001-05-08 | 2003-10-17 | (주)호서텔레콤 | A tap-off which can observe the state of a drop line in the user side and a remote control system using the tap-off and the method thereof |
| JP2006202074A (en) * | 2005-01-21 | 2006-08-03 | Toshiba Mitsubishi-Electric Industrial System Corp | Plant system and method for diagnosing its transmission |
-
1995
- 1995-04-26 JP JP10228295A patent/JP3472891B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08298481A (en) | 1996-11-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6831375B1 (en) | Diagnostics, protection, and isolation system for electronic devices on a vehicle data communication bus | |
| US5079759A (en) | Multiplex transmission system for vehicles having a failure diagnosis function | |
| JPH07160600A (en) | Data transmission abnormality detection method and data transmission equipment | |
| JP3472891B2 (en) | Control communication system | |
| JP3401985B2 (en) | Control communication system | |
| JP2003124947A (en) | Daisy chain data input/output system by serial communication system | |
| JP3477983B2 (en) | Control communication system | |
| JPH11338594A (en) | Defective contact detecting circuit | |
| JPH03124141A (en) | On-vehicle communication equipment | |
| JP2907075B2 (en) | Cable wiring connection monitoring method | |
| KR970011533B1 (en) | Self-diagnosis method and device for data line and call line of multi-unit house management system | |
| JP2597702B2 (en) | Alarm receiver | |
| JPH03139094A (en) | Communication equipment for vehicle | |
| JPH08307971A (en) | Communication device | |
| JP2508580B2 (en) | Bus termination control system | |
| JPH0795666A (en) | Vehicle control data transfer device | |
| JPH0685514B2 (en) | Multiplex transmission controller | |
| JPS6367842A (en) | Load controlling system | |
| JPH1196488A (en) | Disconnection monitoring system and disconnection monitoring method | |
| JPH10313312A (en) | Network monitoring device | |
| KR100277476B1 (en) | Trunk Line Board Self Diagnosis Apparatus and Method of Private Exchange | |
| JP3030475B2 (en) | Display controller in disaster prevention display system | |
| JPH07264681A (en) | Remote monitoring control system | |
| JPH055419B2 (en) | ||
| JPH09259008A (en) | Alarm monitor system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080919 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |