JPH03289323A - Controlling method for serial circuit - Google Patents

Controlling method for serial circuit

Info

Publication number
JPH03289323A
JPH03289323A JP2089073A JP8907390A JPH03289323A JP H03289323 A JPH03289323 A JP H03289323A JP 2089073 A JP2089073 A JP 2089073A JP 8907390 A JP8907390 A JP 8907390A JP H03289323 A JPH03289323 A JP H03289323A
Authority
JP
Japan
Prior art keywords
abnormality
serial line
data
line control
control method
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
JP2089073A
Other languages
Japanese (ja)
Inventor
Mitsuaki Kobayashi
光明 小林
Hiromasa Yamaoka
弘昌 山岡
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2089073A priority Critical patent/JPH03289323A/en
Publication of JPH03289323A publication Critical patent/JPH03289323A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

PURPOSE:To automatically decide the process to a device which is restored from an abnormal state so as to reduce the work of the operator by transmitting abnormality information to another device along with communication data when the abnormal state occurs. CONSTITUTION:For example, a plurality of devices 2-4 are connected with each other by means of a serial circuit 1 and the devices 2-4 are controlled from each other by utilizing process data. A process controlling section 11 controls a motor and a working machine and processes transmitting data to other devices in accordance with the data 12b and abnormality code 12a received from a device by a circuit controlling section 12 and inputs of a start switch, sensor, etc., directly inputted to its own device. When abnormality occurs, the section 11 transmits the state of the device which causes the abnormality to another device in the same system along with normal data. Therefore, no manual adjustment is required, because the state of the device immediately before the abnormality occurs can be recognized by the another device and the control can be restarted from the recognized state when the device is restored.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、シリアル回線の制御方法に係り、とくに回線
制御装置及びそれに接続された装置の電源停電時の制御
方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of controlling a serial line, and particularly to a method of controlling a line control device and devices connected thereto during a power outage.

〔従来の技術〕[Conventional technology]

分散して配置された装置の各々に回線制御装置を接続し
、その各回線制御装置をシリアル伝送路で接続して各装
置を制御するようにしたシステムにおいて、1つの装置
又は回線制御装置に異常、とくに停電が発生した場合に
、その装置に対して送信を行い応答を待っている方の装
置は、該当する回線制御装置からの応答が所定時間をこ
えてもないことによりその異常を検出し、異常処理を行
っていた。
In a system where a line control device is connected to each of the distributed devices and each line control device is connected via a serial transmission path to control each device, an abnormality occurs in one device or the line control device. In particular, when a power outage occurs, the device that is transmitting to that device and waiting for a response will detect an abnormality if there is no response from the corresponding line control device for a predetermined period of time. , abnormal processing was performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

1つの装置あるいは回線制御装置に異常が発生したとき
に、そこへメツセージあるいは制御信号等の情報を送信
したい側の装置は、異常処理のために異常発生装置の直
前の状態を把握する必要がある場合がある0例えば、あ
る部品の加工プロセスに於いて、制御装置側から加工機
側へシリアル回線を通して加工指令を出し、加工機はそ
の指令に基づいて加工を行い、加工終了後に終了報告を
シリアル回線を通して制御装置側へ返すシステムを考え
る。このシステムで加工指令と終了報告の間に加工機側
で停電が起こった場合、制御装置側では加工終了か否か
に応じて復電の際の処理を決定する必要がある。しかし
従来技術ではこれがわからないために、人手を介して制
御装置へ判別指令を与える必要があった。シリアル回線
を用いた分散制御システムでは、制御装置と被制御装置
との距離が数−゛にも及ぶこともあり、これは大きな問
題点であった。このために、各装置の電源を二重化する
などして高信頼化を図る方法もあるが、これではシステ
ムコストが増大するという問題がある。
When an abnormality occurs in one device or line control device, the device that wants to send information such as messages or control signals to it needs to know the state immediately before the abnormality occurred in order to handle the abnormality. For example, in the machining process of a certain part, a machining command is sent from the control device to the machining machine through a serial line, the machining machine performs machining based on the command, and after the machining is completed, it sends a completion report serially. Consider a system that returns data to the control device through a line. In this system, if a power outage occurs on the processing machine side between a machining command and a completion report, the control device needs to decide what to do when power is restored depending on whether machining has been completed or not. However, in the prior art, since this cannot be determined, it is necessary to manually give a determination command to the control device. In distributed control systems using serial lines, the distance between the control device and the controlled device can be several inches, which is a major problem. For this reason, there is a method of increasing reliability by duplicating the power supply of each device, but this has the problem of increasing system cost.

本発明の目的は、装置の停電又は異常時に、そのときの
装置の状態を他の装置へ電送することのできるシステム
回線制御方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a system line control method that can electrically transmit the current status of a device to other devices when the device is out of power or abnormal.

〔課題を解決するための手段〕[Means to solve the problem]

上記の目的は、各回線制御装置が異常検出手段を有し、
異常発生時に対応回線制御装置が通常のデータとともに
異常情報を他装置へ送信することにより達成され、また
回線制御装置に、停電検出時に一定時間その動作を保持
するための動作保持手段を設けることにより達成される
The above purpose is that each line control device has an abnormality detection means,
This is achieved by the corresponding line control device transmitting abnormality information along with normal data to other devices when an abnormality occurs, and by providing the line control device with an operation retention means to maintain its operation for a certain period of time when a power outage is detected. achieved.

〔作 用〕[For production]

異常発生時にその異常を発生した装置の状態を通常デー
タとともにシステム内の他装置へ送信することにより、
異常発生直前の状態を他装置が認識でき、復電のときに
その状態から制御を続行すれば良く、人手による補正は
不要となる。また、回線制御装置の電源が停電した場合
は、その直前の状態を送信できなくなるが、動作保持手
段を設けたことにより上記送信が可能となって、電源の
二重化等の高価な対策を必要としない。
When an error occurs, the status of the device that caused the error is sent to other devices in the system along with normal data.
Other devices can recognize the state immediately before the abnormality occurs and continue control from that state when power is restored, eliminating the need for manual correction. In addition, if the line control device's power supply fails, it will no longer be possible to transmit the state immediately before that, but by providing an operation retention means, the above transmission will be possible, eliminating the need for expensive measures such as duplication of power supplies. do not.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を参照して説明する。第
2図は部品加工プロセス制御システムの構成例を示すも
ので、装置2.装置3.装置4(これらが回線制御装置
の機能を有する)をシリアル回線1により接続し、互い
にプロセスデータを利用して制御を行っている。スター
トスイッチ15がオンされると、装置2はモータ8をオ
ンしてコンベア7を駆動する。その上に載った部品6が
加工機51のセンサ141の下部に到達するとそのこと
が装置3から装置2へ送られ、これによって装置2はモ
ータ8をオフとし、コンベア7を停止させ、加工機51
による加工を開始させるように信号を装W3を介して送
る。加工が完了すると装置3はその終了を装W2へ送信
し、これにより装W2は加工ずみの部品6をとり出し位
置(例えば図の右端)へ送るようにモータ8を起動する
。加工機52の制御も同様にして装置2が行う。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 2 shows an example of the configuration of a parts processing process control system. Device 3. Devices 4 (which have the function of a line control device) are connected via a serial line 1, and are mutually controlled using process data. When the start switch 15 is turned on, the device 2 turns on the motor 8 to drive the conveyor 7. When the part 6 placed on it reaches the lower part of the sensor 141 of the processing machine 51, this information is sent from the device 3 to the device 2, which causes the device 2 to turn off the motor 8, stop the conveyor 7, and 51
A signal is sent via the device W3 to start processing. When the machining is completed, the device 3 transmits the completion information to the processing unit W2, and the processing unit W2 starts the motor 8 so as to send the processed part 6 to the take-out position (for example, to the right end of the figure). The device 2 also controls the processing machine 52 in the same manner.

第1図は装置2(装置3,4も同じ)の詳細構成図であ
る。電源部9は、入力電源98の電圧が低下し、ある一
定電圧より低くなると停電信号9cを出力する。入力電
源9aが低下しても出力9bを一定時間安定させるため
に電圧保持部10が設けられており、これは異常データ
を送信するのに十分な時間だけ出力9bを保持すること
のできる容量のコンデンサを内蔵している。プロセス制
御部11は1回線制御部12で受診した装置からの受信
データ12b、異常コード12aや、自装置に直接入力
されるスタートスイッチ、センサ等の入力に応して、モ
ータや加工機の制御、他装置への送信データ出力等の処
理を行う。電源部9からの停電信号9C及びプロセス制
御部11からの装置異常信号11bはデコーダ13によ
りコード化され送信異常コード13aとして1回線制御
部12へ渡される。この異常コードの内容としては、異
常の内容、即ち停電とかその他の異常、あるいは異常の
ないことを示すコードが送られる。
FIG. 1 is a detailed configuration diagram of device 2 (devices 3 and 4 are also the same). The power supply unit 9 outputs a power outage signal 9c when the voltage of the input power supply 98 decreases and becomes lower than a certain constant voltage. A voltage holding unit 10 is provided to stabilize the output 9b for a certain period of time even if the input power source 9a decreases, and this has a capacity that can hold the output 9b for a sufficient period of time to transmit abnormal data. It has a built-in capacitor. The process control unit 11 controls motors and processing machines in response to data 12b received from the device inspected by the single-line control unit 12, an error code 12a, and inputs from a start switch, sensor, etc. directly input to the device itself. , performs processing such as outputting transmission data to other devices. The power outage signal 9C from the power supply section 9 and the device abnormality signal 11b from the process control section 11 are encoded by the decoder 13 and passed to the one-line control section 12 as a transmission abnormality code 13a. The contents of this abnormality code include the contents of the abnormality, that is, a power outage, other abnormality, or a code indicating that there is no abnormality.

第3図に回線制御部12の詳細を示す。前述のコード化
された送信異常コード13aは、プロセス制御部11を
介さずにデータ転送コントローラ17に直接波される。
FIG. 3 shows details of the line control section 12. The encoded transmission abnormality code 13a described above is directly transmitted to the data transfer controller 17 without going through the process control section 11.

これはプロセス制御部11を通すと、プロセス制御部の
異常時に他の異常を回線制御部12へ渡せなくなるから
である。一方、プロセス制御部11からの送信データl
laは送信バッファ20に蓄えられ、これと入力された
送信異常コード13aはデータ転送コントローラ17に
より第4図に示すようなフォーマットの送信データにま
とめられ、他装置へ送信される。また、シリアル回線か
らの受信データは、−旦受信バッファ19に蓄えられ、
必要な時にプロセス制御部11に読み出される。他装置
からの受信データ中に異常発生を示す異常コードがあり
、これをデータ転送コントローラ17が認識すると、た
だちに異常バッファ18にその異常コードを格納し、異
常割り込み12cをプロセス制御部11へ発行する。こ
れを受けた制御部11は、異常バッファ18より異常コ
ードを読み出し、該当の受信データ12bと照合し、そ
のデータが使用可能かどうか判断する。もし、使用可能
と判断するとその後の制御のバックアップデータとして
用いることができ、異常発生時の人手の介在を省くこと
ができる。
This is because if the information is passed through the process control unit 11, other abnormalities cannot be passed to the line control unit 12 when the process control unit is abnormal. On the other hand, the transmission data l from the process control unit 11
la is stored in the transmission buffer 20, and this and the input transmission abnormality code 13a are combined into transmission data in the format shown in FIG. 4 by the data transfer controller 17, and transmitted to another device. Further, the data received from the serial line is stored in the reception buffer 19 for -1 days.
It is read out to the process control unit 11 when necessary. There is an error code indicating the occurrence of an error in the data received from another device, and when the data transfer controller 17 recognizes this, it immediately stores the error code in the error buffer 18 and issues an error interrupt 12c to the process control unit 11. . Upon receiving this, the control unit 11 reads the abnormality code from the abnormality buffer 18, compares it with the corresponding received data 12b, and determines whether the data can be used. If it is determined that it can be used, it can be used as backup data for subsequent control, and manual intervention can be omitted when an abnormality occurs.

なお、第2図のシステムではどの装置も他装置を制御す
ることができるものとしたが、これを例えば装置2のみ
が他装置を制御するマスタ装置とし、他はマスタ装置に
より制御されるスレーブ装置とし、スレーブ装置対廣の
回線制御装置が異常時に異常装置の状態をマスタ装置へ
報告するようにしてもよいことは明らかである。
In addition, in the system shown in Fig. 2, any device can control other devices, but for example, only device 2 is a master device that controls other devices, and the others are slave devices controlled by the master device. It is clear that the line control device for the slave device may report the status of the abnormal device to the master device when an abnormality occurs.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、異常発生時に通信データと一緒に異常
情報を他装置へ渡せるので、これを受信した装置は異常
発生直前の状態を参照して異常回復後の該当装置に対す
る処理を自動的に決めることができ、運転員の作業を大
幅に軽減できるという効果があり、また高価な二重化電
源を用いなくても上記異常情報を送信できるという効果
がある。
According to the present invention, when an abnormality occurs, abnormality information can be passed along with communication data to another device, so that the device that receives this information refers to the state immediately before the abnormality occurred and automatically performs processing for the corresponding device after the abnormality has been recovered. This has the effect that the operator's work can be significantly reduced, and the abnormality information can be transmitted without using an expensive redundant power source.

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

第1図は本発明を実現する装置の一実施例を示すブロッ
ク図、第2図はプロセス制御システムの構成例を示す図
、第3図は回線制御部の詳細構成を示す図、第4図はシ
リアル回線に送出されるシリアルデータのフレームフォ
ーマットを示す図である。 1・・・シリアル回線、9・・・電源部、 10・・・
電圧保持部、11・・・プロセス制御部、12・・・回
線制御部、13・・・デコーダ、18・・・異常バッフ
ァ。 第1図 第 2 図 ■ 第 図 ■ 第 図
FIG. 1 is a block diagram showing an embodiment of a device that implements the present invention, FIG. 2 is a diagram showing an example of the configuration of a process control system, FIG. 3 is a diagram showing a detailed configuration of a line control section, and FIG. 4 1 is a diagram showing a frame format of serial data sent to a serial line. 1... Serial line, 9... Power supply section, 10...
Voltage holding unit, 11... Process control unit, 12... Line control unit, 13... Decoder, 18... Abnormality buffer. Figure 1 Figure 2 ■ Figure ■ Figure

Claims (1)

【特許請求の範囲】 1、複数の位置を1つのシリアル回線で接続して各装置
間でデータの通信を行うためのシリアル回線制御方法に
おいて、各装置に当該装置の異常を検出する異常検出手
段を設け、該手段により異常を検出した装置は、その異
常内容を示す情報をデータとともに他装置へ送信するこ
とを特徴とするシリアル回線制御方法。 2、装置へ供給される電源が停電したときに当該装置へ
一定時間以上電力を供給することのできる電圧保持手段
を設け、停電発生後の上記一定時間の間に停電が発生し
たことを前記異常内容を示す情報として他装置へ送信す
ることを特徴とする請求項1記載のシリアル回線制御方
法。 3、前記電圧保持手段は、通常時に充電され停電時に放
電するコンデンサを用いて構成されたことを特徴とする
請求項2記載のシリアル回線制御方法。 4、マスタ又はスレーブ通信装置とプロセス制御装置と
により構成される装置の組が1つのシリアル回線上に複
数組接続されて成る分散化制御システムでのシリアル回
線制御方法において、異常のあった装置の組のスレーブ
通信装置は、正常時の通信データと異常情報とをシリア
ル回線を介して同時にマスタ通信装置に報告することを
特徴とするシリアル回線制御方法。 5、前記スレーブ通信装置へ供給される電源が停電した
ときに当該スレーブ通信装置へ一定時間以上電力を供給
することのできる電圧保持手段を設け、停電発生後の上
記一定時間の間に停電発生を前記異常情報として前記マ
スタ通信装置へ報告することを特徴とする請求項4記載
のシリアル回線制御方法。
[Claims] 1. In a serial line control method for connecting a plurality of locations via one serial line and communicating data between each device, an abnormality detection means for detecting an abnormality in each device. A serial line control method characterized in that a device detecting an abnormality by the means transmits information indicating the details of the abnormality together with data to another device. 2. Provide a voltage holding means that can supply power to the device for more than a certain period of time in the event of a power outage to the device, and detect that the power outage has occurred during the specified period of time after the power outage occurs. 2. The serial line control method according to claim 1, wherein the information indicating the content is transmitted to another device. 3. The serial line control method according to claim 2, wherein the voltage holding means is constructed using a capacitor that is charged during normal operation and discharged during a power outage. 4. In a serial line control method in a distributed control system in which multiple sets of devices each consisting of a master or slave communication device and a process control device are connected on a single serial line, it is possible to A serial line control method characterized in that a slave communication device of a set simultaneously reports normal communication data and abnormality information to a master communication device via a serial line. 5. Provide a voltage holding means capable of supplying power to the slave communication device for a certain period of time or more when the power supply to the slave communication device is interrupted, and prevent the power outage from occurring during the certain period of time after the power outage occurs. 5. The serial line control method according to claim 4, wherein the abnormality information is reported to the master communication device.
JP2089073A 1990-04-05 1990-04-05 Controlling method for serial circuit Pending JPH03289323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2089073A JPH03289323A (en) 1990-04-05 1990-04-05 Controlling method for serial circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2089073A JPH03289323A (en) 1990-04-05 1990-04-05 Controlling method for serial circuit

Publications (1)

Publication Number Publication Date
JPH03289323A true JPH03289323A (en) 1991-12-19

Family

ID=13960680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2089073A Pending JPH03289323A (en) 1990-04-05 1990-04-05 Controlling method for serial circuit

Country Status (1)

Country Link
JP (1) JPH03289323A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7260437B2 (en) 2001-09-18 2007-08-21 Denso Corporation Network system using management frames for supervising control units
JP2008154407A (en) * 2006-12-20 2008-07-03 Juki Corp Serial communication device for controlling motor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7260437B2 (en) 2001-09-18 2007-08-21 Denso Corporation Network system using management frames for supervising control units
JP2008154407A (en) * 2006-12-20 2008-07-03 Juki Corp Serial communication device for controlling motor

Similar Documents

Publication Publication Date Title
US4963763A (en) Load control system and method for disconnecting sub-bus from main-bus
JP2754922B2 (en) Transmission system and transmission method
JP4525593B2 (en) Control system by serial communication
JPH03289323A (en) Controlling method for serial circuit
EP1353271A2 (en) Controller with fail-safe function
JP2519918B2 (en) Facsimile terminal equipment
JP4042234B2 (en) FA network and robot controller
JPS62226736A (en) Data equalizing method for duplicated system
JP3196256B2 (en) Communication error handling method for distributed process control device
JPH09244740A (en) Remote monitor and control equipment
JPS644705B2 (en)
JPH03148799A (en) Power source controller for sales data processor for oil station
JP2002108423A (en) Machine tool controller
JPS6279554A (en) Data communication system
JP3105025B2 (en) Redundant controller
US7843152B2 (en) Motor control apparatus
JP2807406B2 (en) Remote I / O device
JPH037177B2 (en)
JPS58169623A (en) Program loading system of communication control processor
JPS63262382A (en) Detector for abnormality of power supply for elevator
JPH08339220A (en) Nc controller for machine tool
JPS59202509A (en) Detector for abnormality of tool
JPH04297917A (en) Input device interface system
JPS5912657A (en) Transmission line protecting system of multidrop type information transmission system
JPH0479639A (en) Data transmitting device