JPH0625927B2 - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH0625927B2
JPH0625927B2 JP60230100A JP23010085A JPH0625927B2 JP H0625927 B2 JPH0625927 B2 JP H0625927B2 JP 60230100 A JP60230100 A JP 60230100A JP 23010085 A JP23010085 A JP 23010085A JP H0625927 B2 JPH0625927 B2 JP H0625927B2
Authority
JP
Japan
Prior art keywords
processing
program
sequence
executed
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60230100A
Other languages
Japanese (ja)
Other versions
JPS6290707A (en
Inventor
正興 高木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Information and Control Systems Inc
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, Hitachi Information and Control Systems Inc filed Critical Hitachi Ltd
Priority to JP60230100A priority Critical patent/JPH0625927B2/en
Publication of JPS6290707A publication Critical patent/JPS6290707A/en
Publication of JPH0625927B2 publication Critical patent/JPH0625927B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はシーケンスコントローラに係り、特にプログラ
マブルコントローラ(Programablecontrollor)の演算
処理の高速化を図ることのできるシーケンス制御方法及
び装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence controller, and more particularly to a sequence control method and apparatus capable of speeding up arithmetic processing of a programmable controller.

〔発明の背景〕[Background of the Invention]

半導体素子の開発が進につれてプログラマブルコントロ
ーラは多くの分野で利用されるようになってきている。
With the development of semiconductor devices, programmable controllers have come to be used in many fields.

例えばプログラムの編集をCRT表示装置を用いておこ
なう例としてIEConference Record1971,Oct.18−
21,pp1043〜1051がある。
For example, as an example of editing a program using a CRT display device, IE 3 Conference Record1971, Oct. 18-
21, pp1043-1051.

またシーケンスブロツクの検索と表示にはU.S.A.
Pat.No.3964026,さらにシーケンスの故障診断技術
としてはU.S.A.Pat.No.4183462などがある。
Also, to search and display the sequence block, U. S. A.
Pat. No. 3964026, and U.S. S. A. Pat. There is No.4183462.

従来、半導体デイジタル論理回路を採用したプログラマ
ブルコントローラ(以下、PCsと略記する)は第16
図に示すごとく、PCsのシーケンスプログラム記憶2
0に記憶したシーケンスプログラム10を、シーケンス
プログラム先頭アドレス11からシーケンスプログラム
終了命令14が出るまで、シーケンス制御用プロセツサ
が逐次実行する。すなわち、処理しようとする記憶部2
0のアドレスの値、すなわち、プログラムカウンタ13
の値を更新しながら、その該当アドレスに記憶している
シーケンス制御命令15を処理していく。一般にシーケ
ンス制御命令は全て1wordで構成されているためプ
ログラムカウンタ13の値はシーケンスプログラム実行
中1つずつインクリメントされる。そして、プログラム
カウンタ13の示す該当アドレスの内容として、プログ
ラムカウンタの値をシーケンスプログラムの先頭アドレ
スに設定させるシーケンスプログラム終了命令14が出
てくると、プログラムカウンタ13の値として、シーケ
ンスプログラムの先頭アドレス11をセットする。
Conventionally, a programmable controller (hereinafter abbreviated as PCs) that employs a semiconductor digital logic circuit is the 16th.
As shown in the figure, the sequence program memory 2 of the PCs is stored.
The sequence control processor sequentially executes the sequence program 10 stored in 0 until the sequence program end instruction 14 is issued from the sequence program start address 11. That is, the storage unit 2 to be processed
The value of the address of 0, that is, the program counter 13
While updating the value of, the sequence control instruction 15 stored at the corresponding address is processed. Generally, all sequence control instructions are composed of 1 word, so the value of the program counter 13 is incremented by 1 during execution of the sequence program. When a sequence program end instruction 14 for setting the value of the program counter to the start address of the sequence program is output as the content of the corresponding address indicated by the program counter 13, the start address 11 of the sequence program is set as the value of the program counter 13. Set.

このように、通常のPCsでは、シーケンスプログラム
の先頭アドレスから、シーケンスプログラム終了命令が
出てくるまで遂次、シーケンスプログラム命令を実行
し、そしてまたシーケンスプログラムの先頭にもどると
いつた具合に、サイクリツクに、無限ループ的にシーケ
ンス演算を行つている。
As described above, in normal PCs, the sequence program command is sequentially executed from the start address of the sequence program until the end command of the sequence program is issued, and when the program is returned to the start of the sequence program, the cycle is repeated. In addition, the sequence operation is performed in an infinite loop.

また、特開昭59−205605号公報に、上記した無
限ループ的なシーケンス演算を回避して、シーケンス処
理を高速化する提案がなされている。これによれば、シ
ーケンス処理プログラムを、プロセスの工程ごとに分割
された複数のシーケンス工程処理プログラムを含んでな
る工程処理プログラム群と、この工程処理プログラム群
の中の各工程処理プログラムを実行すべきか否かを判定
する複数の工程処理実行判定命令を含んでなるシーケン
ス制御を統括する工程歩進プログラムとに分離し、それ
ぞれプログラムメモリに記憶する。また、プセス入出力
信号と、その入出力信号に基づいて判定する工程処理実
行判定命令の判定結果が対応する工程処理プログラムを
実行すべきであるときオン、このオンに基づいて実行さ
れた工程処理プログラムの実行が終了したときオフとな
る歩進信号とを、複数の工程処理プログラムごとにリン
クして入出力バッファメモリに格納するようにする。そ
して、工程歩進プログラムを所定の周期で起動し、その
プログラム中の工程処理実行判定命令を順次読み出して
実行し、判定結果が対応する工程処理プログラムを実行
すべきであるとき、前記歩進信号をオンにして対応する
工程処理プログラムを実行させ、その工程処理プログラ
ムの実行が終了したときその歩進信号をオフにする処理
をシーケンス処理手段により実行させる。これにより、
工程処理プログラムのうちで実行条件が成立しないプロ
グラムは読み出しを含めて実行されないから、その分だ
けシーケンス処理を高速化できる。
In addition, Japanese Patent Laid-Open No. 59-205605 proposes to avoid the above-mentioned infinite loop sequence operation and speed up the sequence processing. According to this, the sequence processing program should include a process processing program group including a plurality of sequence process processing programs divided for each process step, and whether each process processing program in the process processing program group should be executed. It is separated into a process step program that supervises sequence control including a plurality of process process execution determination commands for determining whether or not, and each is stored in a program memory. Further, the process input / output signal and the process process execution determination command that is determined based on the input / output signal are ON when the corresponding process process program should be executed, and the process process executed based on this ON. A step signal that turns off when the execution of the program is completed is linked to each of the plurality of process processing programs and stored in the input / output buffer memory. When the process step program is started at a predetermined cycle, the process process execution determination commands in the program are sequentially read and executed, and the process process program corresponding to the determination result should be executed, the step signal Is turned on to execute the corresponding process processing program, and when the execution of the process processing program is completed, the sequence processing means executes the process of turning off the step signal. This allows
Among the process processing programs, the programs that do not meet the execution conditions are not executed including the reading, so the sequence processing can be speeded up accordingly.

また、上記の歩進信号は対応する工程処理プログラムが
実行中であることを示すから、なんらかの理由により必
要以上に長い間、歩進信号がオンのときはシーケンスが
渋滞していることを意味する。そこで、進歩信号のオン
状態が予め定めた時間を超えたとき、その歩進信号に対
応する工程処理プログラムに係る工程が異常と判定して
報知することにより、制御対象の異常を速やかに知るこ
とができる。
Further, since the above step signal indicates that the corresponding process processing program is being executed, it means that the sequence is congested when the step signal is on for a reason longer than necessary for some reason. . Therefore, when the ON state of the progress signal exceeds a predetermined time, the process related to the process processing program corresponding to the step signal is determined to be abnormal, and the alarm is notified to promptly know the abnormality of the control target. You can

しかし、上記従来の技術は、シーケンス制御の対象プロ
セスに応じてた配慮がなされていないことから、処理の
高速化及び異常検出の的確さに欠けるという問題があ
る。
However, in the above-mentioned conventional technique, since consideration is not given according to the target process of sequence control, there is a problem that speedup of processing and accuracy of abnormality detection are lacking.

〔発明の目的〕[Object of the Invention]

本発明の目的は、シーケンス処理を高速化するととも
に、制御対象の異常を的確に検出できるシーケンス制御
装置を提供することにある。
An object of the present invention is to provide a sequence control device capable of speeding up sequence processing and accurately detecting an abnormality in a control target.

〔発明の概要〕[Outline of Invention]

本発明は、上記従来のシーケンス制御装置において、プ
ロセスの工程が並行して実行される独立した複数の処理
ステージを含み、該処理ステージはそれぞれ少なくとも
1つの前記工程処理プログラムを含み、その工程処理プ
ログラムが対応する工程をさらに細分化した工程に対応
させてなる複数のサブプログラムと、この複数のサブプ
ログラムの中の任意のサブプログラムを実行するか否か
を入出力信号に基づいて判定し、その判定結果に基づい
てそのサブプログラムの起動を制御する実行判定命令と
を含むものとし、さらに処理ステージ単位で異常を判定
することを特徴とする。
The present invention, in the above-mentioned conventional sequence control device, includes a plurality of independent processing stages in which process steps are executed in parallel, and the processing stages each include at least one of the process processing programs. Of a plurality of sub-programs corresponding to the process corresponding to the sub-process, and whether to execute any sub-program in the plurality of sub-programs is determined based on the input / output signal, An execution determination instruction for controlling the activation of the subprogram based on the determination result is included, and the abnormality is further determined for each processing stage.

すなわち、本発明は、制御対象のプロセスが、例えば1
つの加工ステージで複数種類の加工対象物の加工を行う
ような場合に好適である。つまり、ある加工対象物に必
要な工程処理プログラムであっても、他の加工対象物に
は不要な工程処理プログラムが存在する場合がある。こ
のような場合に、1つの加工ステージで処理する対象物
の種類に応じて工程処理プログラムを複数のサブプログ
ラムに分け、対象物の種類に応じて変化するプロセス入
力信号に応じて各サブプログラムの実行の可否を判定し
て実行するようにしたのである。したがって、不要な処
理を含めて全部実行する場合に比べ、本発明によればさ
らにシーケンス処理を高速化できる。
That is, in the present invention, the process to be controlled is, for example, 1
This is suitable when a plurality of types of processing objects are processed on one processing stage. That is, even if a process processing program is necessary for a certain processing target object, an unnecessary process processing program may be present for another processing target object. In such a case, the process program is divided into a plurality of subprograms according to the type of the object to be processed in one processing stage, and each subprogram of the subprogram is changed according to the process input signal that changes according to the type of the object. It is decided whether or not it can be executed. Therefore, according to the present invention, the sequence processing can be further speeded up as compared with the case where all the processing including unnecessary processing is executed.

また、それぞれ複数の工程処理プログラムからなる複数
の加工ステージが、独立にかつ並列に実行されるプロセ
スの場合、1つのステージの中の工程処理プログラムに
かかる制御対象が異常か否かを判定するよりも、ステー
ジ単位で判定する方が便利である。そこで、本発明はス
テージ単位で異常を判定することにより、プロセスに対
応させて的確に異常を判定するようにしたのである。
Further, in the case of a process in which a plurality of machining stages each consisting of a plurality of process processing programs are executed independently and in parallel, rather than determining whether the control target related to the process processing program in one stage is abnormal or not. Also, it is more convenient to judge by stage. Therefore, according to the present invention, the abnormality is judged on a stage-by-stage basis, so that the abnormality is accurately judged in correspondence with the process.

〔発明の実施例〕Example of Invention

以下、本発明の実施例について説明する。 Examples of the present invention will be described below.

第1図に本発明のシーケンス制御方法の実施例を示す。
この例では、タイマー起動等により工程歩進メインプロ
グラム10をサイクリツクに実行し、メインプログラム
10の各ステップは、被制御システムから所望の情報を
入力し対応する細分化された工程処理プログラムを実行
すべきか否かを判定し、実行すべきと判定したときは割
込み信号を発生してその工程処理プログラムを実行す
る。例えばメインプログラム10の第n工程処理実行判
定命令70で割込み信号発生すると、第nシーケンス工
程処理プログラム78が起動される。第nシーケンス工
程処理プログラム78が終了するとメインプログラム1
0に戻り、第n+1工程処理実行判定命令79を実行す
る。同様にして第n次シーケンス工程処理プログラム7
8内で、さらに細分化された工程処理を有する複数のサ
ブプログラムのうちの1つ170を実行すべきかどうか
の判定を行うステツプ78−nを設け、このステツプ7
8−nで実行すべきとの判定結果が出たとき該当するサ
ブプログラム78−nを実行するようにしてもよい。
FIG. 1 shows an embodiment of the sequence control method of the present invention.
In this example, the step progress main program 10 is cyclically executed by activating a timer or the like, and each step of the main program 10 is executed by inputting desired information from the controlled system and executing a corresponding subdivided process processing program. If it is determined to be executed, an interrupt signal is generated and the process processing program is executed. For example, when an interrupt signal is generated by the nth step process execution determination command 70 of the main program 10, the nth sequence step process program 78 is activated. When the nth sequence process processing program 78 ends, the main program 1
Returning to 0, the n + 1th step process execution determination command 79 is executed. Similarly, the nth sequence process processing program 7
8 is provided with a step 78-n for determining whether to execute one 170 out of the plurality of subprograms having the further subdivided process processing.
The corresponding subprogram 78-n may be executed when it is determined that the subprogram 78-n should be executed in 8-n.

さてここで、本発明による複数の工程処理プログラムを
作成する様子について見てみる。
Now, let's look at how to create a plurality of process processing programs according to the present invention.

本発明の方式では、システムイニシヤルライズ時に、シ
ーケンスプログラムの処理単位の数より若干の余裕を持
たせたシーケンス工程処理プログラム終了命令141…
14Nがセツトされている。これを第2図に示す。すな
わち、この状態はどの工程処理プログラムも登録してい
ないことを示している。更に、各シーケンス工程処理プ
ログラムのトツプアドレスは、プログラムトツプアドレ
スレジスタ90に、各々の工程プログラムに対する先頭
アドレスの値91〜91Nがセツトされている。
According to the method of the present invention, at the time of system initialization, a sequence process processing program end command 141 ... With a slight margin from the number of processing units of the sequence program.
14N is set. This is shown in FIG. That is, this state indicates that no process processing program is registered. Further, the top addresses of the respective sequence process processing programs are set in the program top address register 90 with the head address values 91 to 91N for the respective process programs.

今、プログラム作成者が第I番目のシーケンス工程処理
プログラムを作ろうとすると、プログラムトツプアドレ
ステーブル90の中から、指定された工程ナンバーの工
程処理プログラムの先頭アドレス9iを知ることによつ
て、工程処理プログラムメモリ10′の中から指定され
た工程ナンバーの、シーケンス工程処理プログラムの最
終命令のアドレスを知り、そこに、新たに組まれた工程
処理プログラムの容量分だけのすき間を作り、そこに、
新工程処理プログラムを登録,記憶させる。この時、第
I番目以降の新プログラムの語数だけ、後方に、全命令
が移動させられると共に、それに伴つて、第I番目以降
のプログラムトツプアドレステーブル90の先頭アドレ
スの内容も新プログラムの語数分ずつ、自動的に、加算
される。このような加算は単純な処理であり、工程処理
プログラムの登録によるアドレスの変更に応じてアドレ
ステーブル90の先頭アドレスのみを機械的に変更すれ
ばよい。また工程処理プログラムの登録もごく簡単な処
理となる。すなわち、プログラム作成者は、登録しよう
とするシーケンス工程処理プログラムの工程ナンバー
を、まず指定した後各工程処理プログラムを入力してい
けばよい(第3図)。本発明では、修正時の命令語の増
減に伴つた変更を、修正したプログラムナンバーより大
きいプログラムの先頭アドレステーブル90の値につい
て、行えばよい。もし第1図の破線で示すようなサブプ
ログラム170を含む場合は、複数のサブプログラムと
それらのアドレスとの対応をこのアドレステーブル90
に一緒に記憶させておく。
Now, when the program maker tries to create the I-th sequence process processing program, by knowing the start address 9i of the process processing program of the specified process number from the program top address table 90, the process processing is performed. From the program memory 10 ', the address of the final instruction of the sequence process program of the specified process number is known, and a space is created therein for the capacity of the newly assembled process process program.
Register and store the new process program. At this time, all the instructions are moved backward by the number of words of the new program after the I-th program, and along with that, the contents of the start address of the program top address table 90 after the I-th program also correspond to the number of words of the new program. Each is automatically added. Such addition is a simple process, and only the start address of the address table 90 needs to be mechanically changed according to the change of the address due to the registration of the process program. Further, the registration of the process processing program is a very simple process. That is, the program creator may first specify the process number of the sequence process processing program to be registered and then input each process processing program (FIG. 3). According to the present invention, the change associated with the increase or decrease of the command word at the time of modification may be performed for the value of the head address table 90 of the program larger than the modified program number. If the subprogram 170 shown by the broken line in FIG. 1 is included, the correspondence between a plurality of subprograms and their addresses is shown in this address table 90.
I will remember it together.

さて次に、シーケンスの工程歩進の全体コントロールを
つかさどる工程歩進メインプログラム10の作成につい
て見てみると。このメインプログラム10も、基本的に
は、CRT画面上に表示されるリレー回路図イメージで
作成されていく。登録されるメインプログラムは第1図
の10で示されるような複数のステップから成り、本発
明の実施例では第3図に示すようにシーケンスプログラ
ムメモリ100において工程処理プログラム10′の先
頭に格納されている。また第1図の170のようなサブ
プログラムがある場合は同様に工程処理プログラム1
0′に格納される。
Now, let's take a look at the creation of the process step main program 10 which controls the overall process step sequence. The main program 10 is also basically created by the relay circuit diagram image displayed on the CRT screen. The main program to be registered consists of a plurality of steps as shown by 10 in FIG. 1. In the embodiment of the present invention, as shown in FIG. 3, it is stored at the beginning of the process program 10 'in the sequence program memory 100. ing. If there is a subprogram 170 such as shown in FIG.
It is stored in 0 '.

以上各項目について、その処理内容と動作について個別
に述べたが、これら各項目の機能を適用して作られた本
発明の実施構成例であるシーケンス制御の全体構成を第
4図に示す。
The processing contents and operation of each item have been individually described above. FIG. 4 shows the overall configuration of sequence control, which is an example of the embodiment configuration of the present invention made by applying the functions of these items.

本発明ではシーケンスプログラム記憶部100の中のプ
ログラムとしては処理単位に分割された細分化プログラ
ム群10′(すなわち、シーケンス工程処理プログラム
群)とこれらのシーケンス工程処理プログラム群10′
の中から必要なシーケンス工程処理プログラムだけに起
動をかけプログラムの全体を総括的に制御している工程
歩進メインプログラム10とに分かれて格納されてい
る。ここで工程歩進メインプログラム10は周期起動タ
イマ213により発生したサクリツクタイマ信号216
によつて、一定周期間隔ごとに全メインプログラム命令
10を従来のPCsのように総なめ的にスキヤンし、各
ステツプでどのシーケンス工程処理プログラムに起動を
かけるかを判定している。この周期起動タイマ値はシー
ケンス演算処理装置(S−P)130によりあらかじめ
周期起動タイマ213に設定される。S−P130は簡
単な構造のためデイジタル論理回路で組立てられてい
る。そして工程歩進メインプログラム10の中にでてく
るあるシーケンス工程処理実行判定命令判定結果が真で
あると、待機中プログラム記憶レジスタ215にプログ
ラムカウンタの値を格納した後シーケンス演算処理装置
130から割込信号230が半導体集積回路(LSI)
で構成されるシーケンス管理プロセツサ(CPU)20
0に対して出される。その結果CPU200はプログラ
ムOS214を起動し、割込信号と共に出される識別情
報信号に基づいてどのシーケンス工程処理プログラムに
対して起動要求があつたかを知り、シーケンス工程処理
プログラムトツプアドレステーブル90より、起動すべ
きシーケンス工程処理プログラムが格納されている先頭
アドレスを知り、この内容をシーケンスプロセツサのプ
ログラムカウンタ13にセツトし、この工程処理プログ
ラムを処理する用にシーケンス演算処理装置130に起
動をかける。そして、起動がかけられたシーケンス工程
処理プログラムの処理が進み、シーケンス終了命令が実
行されるとシーケンス演算処理装置130からCPU2
00へ割込信号218がはいり、さきほど中断していた
工程歩進メインプログラム10の中断時のアドレスの次
アドレスがプログラムカウンタ13に入り処理を再開す
る。
In the present invention, as the programs in the sequence program storage unit 100, a subdivided program group 10 '(that is, a sequence step processing program group) divided into processing units and these sequence step processing program groups 10'.
Among them, only the necessary sequence process processing program is started and the program is separately stored in the process step progress main program 10 which generally controls the entire program. Here, the process step main program 10 causes the cycle timer signal 216 generated by the cycle start timer 213.
Thus, all the main program instructions 10 are sweeped like a conventional PCs at regular intervals, and it is determined which sequence process processing program is activated at each step. This cycle start timer value is set in the cycle start timer 213 in advance by the sequence arithmetic processing unit (SP) 130. The SP 130 has a simple structure and is constructed of digital logic circuits. When a certain sequence step process execution decision command decision result in the step step main program 10 is true, the value of the program counter is stored in the waiting program storage register 215 and then the sequence operation processing device 130 divides it. The embedded signal 230 is a semiconductor integrated circuit (LSI)
Sequence management processor (CPU) 20
Issued for 0. As a result, the CPU 200 activates the program OS 214, knows to which sequence process processing program the activation request is made based on the identification information signal issued together with the interrupt signal, and activates it from the sequence process processing program top address table 90. Knowing the start address where the sequence process processing program to be stored is stored, the contents are set in the program counter 13 of the sequence processor, and the sequence arithmetic processing unit 130 is activated to process this process processing program. Then, when the processing of the started sequence process processing program proceeds and the sequence end command is executed, the sequence operation processing device 130 causes the CPU 2 to
The interrupt signal 218 is input to 00, and the address next to the address at the time of the interruption of the process step main program 10, which was interrupted earlier, enters the program counter 13 and restarts the processing.

第6図に示したようなリレー回路図で、第1工程処理の
シーケンス工程処理プログラムを起動するかどうかの判
定条件120を、外部入出力接点、及びタイマー、カウ
ンター、その他の内部処理機能接点で記述し、この結果
を第1工程のシーケンス工程処理命令出力コイル121
として表現する。実際には、PCsの主要部のハード構
成は、第5図のようになつている。ここで、プロセス入
出力コントローラ131には、第6図に示すシーケンス
命令入出力バツフアメモリ140が1アドレス1ビツト
で、外部入出力、補助リレー、ラツチリレー等の内部補
助機能(シーケンス工程歩進命令の各ビツトも含む)等
の、全ての接点、及び出力のオンオフ状態がこのメモリ
140に反映されている。すなわち、外部からの入力信
号のオンオフ状態はバツフアメモリ140の外部入力部
の該当アドレス141に、そして第5図のシーケンス命
令処理装置130により、シーケンスプログラム記憶部
100に記憶されたシーケンス命令により演算された外
部出力のオンオフ指令は、バツフアメモリ140の外部
出力部の該当アドレス142に、オンまたはオフのいず
れかを書き込めば、自動的に第5図のプロセス入出力装
置131により、外部に対して、オンまたはオフの信号
として出力される。ここで各シーケンス工程処理命令の
オンオフ状態すなわち実行状態も、シーケンス演算結果
に従つて、この入出力バツフアメモリ140の、シーケ
ンス工程処理命令の該当アドレス部144に表示する。
In the relay circuit diagram as shown in FIG. 6, the determination condition 120 for activating the sequence process program of the first process is determined by the external input / output contact, the timer, the counter, and other internal processing function contacts. Described and the result is the sequence step processing command output coil 121 of the first step.
Express as. Actually, the hardware configuration of the main part of the PCs is as shown in FIG. Here, in the process input / output controller 131, the sequence command input / output buffer memory 140 shown in FIG. 6 has one address and one bit, and internal auxiliary functions such as external input / output, auxiliary relay, and latch relay (each of the sequence process step-by-step commands). The on / off state of all contacts and outputs (including bits) are reflected in this memory 140. That is, the on / off state of the input signal from the outside is calculated at the corresponding address 141 of the external input section of the buffer memory 140, and by the sequence command processing unit 130 of FIG. 5 according to the sequence command stored in the sequence program storage section 100. As for the external output ON / OFF command, if either ON or OFF is written in the corresponding address 142 of the external output section of the buffer memory 140, the process input / output device 131 of FIG. It is output as an off signal. Here, the on / off state, that is, the execution state of each sequence process instruction is also displayed in the corresponding address portion 144 of the sequence process instruction of the input / output buffer memory 140 according to the result of the sequence operation.

ここでは、説明を簡略にするために、各シーケンス工程
命令は、リレー回路で言えば、ラツチ式のセツト・リセ
ツト型の素子イメージ型のものを用いる(これは、ラツ
チタイプに限られなくては実現できないという訳ではな
く、通常の補助リレー的な接点又は、コイルであつても
自己保持をとりさえすれば、同一の機能を果たせるので
その機能を限定するものではない)。よつて第1シーケ
ンス工程処理セツトコイルが一旦、励磁されると第1シ
ーケンス工程処理リセツトコイル入力がはいるまでは、
第1工程処理コイル、すなわちシーケンス工程処理
(1)1441は、オン状態であるのでメインプログラムが
スキヤンされ、第1シーケンス工程処理命令がオンであ
ることがチエツクされるたびに、CPU200に割り込
みがはいり、OS214により、プログラムトツプアド
レステーブル90より、第1シーケンス工程処理プログ
ラムトツプアドレス91が、プログラムカウンタ値とし
てセツトされ、第1工程処理のシーケンス処理が、行わ
れる。そして、第1工程のシーケンス処理が終了する
と、シーケンス終了命令により、再びCPU200に割
り込みがはいり、OS214の優先度判定により、再び
工程歩進メインプログラムに処理がもどり、第1シーケ
ンス工程処理命令コイルの次の命令語から、処理が再開
される。
Here, for simplification of explanation, each sequence process instruction uses a latch type set / reset type element image type in terms of a relay circuit (this is not limited to the latch type and is realized. This is not to say that normal auxiliary relay contacts or coils can fulfill the same function as long as they are self-holding, so that function is not limited). Therefore, once the first sequence process processing set coil is excited, until the first sequence process processing reset coil input is applied,
Since the first step processing coil, that is, the sequence step processing (1) 1441 is in the ON state, the main program is skipped, and an interrupt is sent to the CPU 200 every time the first sequence step processing instruction is checked to be ON. The OS 214 sets the first sequence process processing program top address 91 from the program top address table 90 as the program counter value, and the sequence process of the first process processing is performed. When the sequence process of the first step is completed, the CPU 200 is interrupted again by the sequence end command, the process returns to the process step main program again by the priority determination of the OS 214, and the first sequence process command coil The process is restarted from the next command word.

また、本方式では、工程歩進メインプログラム(第3図
10)、1スキヤン時に処理される工程数は、特に制限
はなく、必要に応じて、一もしくは、複数個の工程処理
を同時に、走らせることができる。
Further, in this method, the number of steps to be processed in one step advance program (FIG. 3, FIG. 10) and one scan is not particularly limited, and one or a plurality of step processes can be simultaneously executed if necessary. You can

また今まで処理してきた工程の処理が不要となつて、次
の工程の処理を開始したい場合は、工程歩進メインプロ
グラム10の中の、停止したい工程のシーケンス工程処
理リセツト命令コイルを励磁するようにすれば、自動的
に該当工程処理のスキヤンを止めるし、次に開始したい
シーケンス工程処理セツト命令コイルを励磁してやれば
よい。
If the process of the process that has been processed up to now is unnecessary and the process of the next process is to be started, the sequence process process reset command coil of the process to be stopped in the process step main program 10 is excited. In this case, the scanning of the corresponding process is automatically stopped and the sequence command set command coil to be started next is excited.

本発明での処理を述べる。シーケンスインターロツク制
御の場合、制御対象機器に、故障もしくは異常が発生し
た場合、現在処理中の、工程より次の工程へ移行する工
程歩進条件がととのわないで、ほとんどの場合、シーケ
ンス制御が停止してしまう。そのため、各工程には、本
来正常であれば、当然その工程が完了すべき時間より、
やや長めの時間に設定した工程渋滞チエツクタイマーが
かけられている。そのため、故障が起きると、その工程
渋滞チエツクタイマーが、動作し、どの工程で異常が発
生したか、判別である。故障工程を知るには、このよう
に工程渋滞チエツクタイマーでとらえて判別する方法も
あるが、本発明の場合には、タイムアウトエラーが発生
すると、シーケンス演算のワークエリアとなつているシ
ーケンス工程処理命令の接点状態がオン、すなわち、依
然として工程処理中である工程のナンバーを検索する。
そしてその工程名称を表示すると共に、工程歩進メイン
プログラムの中より、該当工程ナンバーの工程歩進出力
名を持つシーケンスリレーラダー図の工程歩進条件を、
CRTデイスプレスー上に表示し、かつ、その場合のリ
レーラダーを構成する各接点類のオンオフ状態、ならび
に、+コモン線に印加された電圧が、リレーラダー図で
は、どこまで活線状態になつているかを、CRT画面上
に、自動表示すれば、どの工程の、どの工程歩進条件
が、成立しないため、その工程処理が渋滞したのか、そ
の原因となつた制御回路のどの部品が異常であるかを、
判別することができる。
The processing in the present invention will be described. In the case of sequence interlock control, when a failure or abnormality occurs in the control target equipment, the process step condition for transitioning from one process to the next is currently in process, and in most cases, the sequence Control stops. Therefore, if each process is normally normal, it will naturally
The process congestion check timer is set to a slightly longer time. Therefore, when a failure occurs, the process congestion check timer operates to determine in which process the abnormality has occurred. In order to know the failure process, there is also a method of making a determination by using the process congestion check timer in this way, but in the case of the present invention, when a time-out error occurs, a sequence process processing command that is a work area of the sequence operation is executed. The contact state of is ON, that is, the process number that is still in process processing is searched.
Then, while displaying the process name, from the process step main program, the step step condition of the sequence relay ladder diagram having the step step output name of the corresponding step number,
It is displayed on the CRT display, and the on / off state of each contact that constitutes the relay ladder in that case, and how much the voltage applied to the + common line is in the live line state in the relay ladder diagram , If the process is automatically displayed on the CRT screen, which process step condition does not hold, so the process processing is congested, and which part of the control circuit that caused the error is abnormal. ,
Can be determined.

そこで第7図の異常工程検索部222はPCs本体の中
に格納されているシーケンスプログラム100の中から
先ほどON状態となつていたプロセスコイルのつれあい
として動作するプロセスリセツトコイルを出力としても
つプログラムを検索する。この出力をもつ回路の信号が
出ないから工程が渋滞しているわけであるから、このリ
セツト出力回路がどうして出ないかが分れば故障原因を
つきとめることができる。
Therefore, the abnormal process search unit 222 shown in FIG. 7 searches the sequence program 100 stored in the PCs for a program having as an output a process reset coil that operates as a connection of the process coil that has been turned ON. To do. Since the process is congested because the signal of the circuit having this output is not output, the cause of the failure can be determined by knowing why the reset output circuit does not output.

プログラム記憶部100に格納されたシーケンスプログ
ラムをシーケンス演算処理装置130で実行していたと
き、プロセス入出力装置226を介してシーケンス命令
入出力バツフアメモリ131に現場機器227のオンオ
フ状態に応じて、この場合では、“0”の信号を書き込
む。
When the sequence program stored in the program storage unit 100 is being executed by the sequence arithmetic processing unit 130, the sequence command input / output buffer memory 131 is transferred to the sequence command input / output buffer memory 131 via the process input / output unit 226 according to the on / off state of the field device 227. Then, the signal of "0" is written.

そこで、異常工程検索部222はプログラム格納されて
いる工程歩進メインプログラム中より、工程渋滞を起し
て、次ステツプに移れないシーケンス工程処理リセツト
出力命令に関つているシーケンスロジツク回路ブロツク
を一回路分検索し、その命令語群をリレー回路図変換部
223に送り、リレー回路図に変換し、その回路内にあ
らわれてくる全ての接点、出力のオンオフ信号229を
とりこみ、各接点、出力のオンオフ状態および回路のど
の部分が活線状態であるかを編集し、CRT表示部に転
送し、配線部および回路素子を太線、細線によつて信号
のオンオフ及び活線部をCRT画面225に回路図イメ
ージで自動表示する。
Therefore, the abnormal process search unit 222 sets the sequence logic circuit block relating to the sequence process processing reset output command which causes the process congestion and cannot move to the next step from the process step main program stored in the program. The circuit is searched, the command word group is sent to the relay circuit diagram conversion unit 223, converted into the relay circuit diagram, and all contacts and output on / off signals 229 appearing in the circuit are taken in, and each contact, output Edit the on / off state and which part of the circuit is in the hot line state, and transfer it to the CRT display section. The wiring section and the circuit elements are displayed on the CRT screen 225 by the thick line and the thin line to turn the signal on and off and the live line section. Automatically displayed as a diagram image.

これは故障が発生した部分に関わる次工程への遷移条件
そのものであるからどの遷移条件がととのわないため工
程渋滞しているか直ちに判読できる。
Since this is the transition condition itself to the next process related to the part where the failure has occurred, it is immediately recognizable as to which process condition is congested because which transition condition is not relevant.

次に故障診断の見体的例について述べる。第7図はシー
ケンス制御装置の主要部のみを示している。第8図にP
Csの制御対象となる製造ラインを示す。この製造ライ
ンには一定距離問隔をおいて、集中的加工を行う加工ス
テージ(301,302…)が並べてある。第1加工ス
テージ301では部品A群、部品B群のとりつけ加工が
行われ、第2加工エステージでは部品C群のとりつけ加
工が行われる。なおこの製造ラインでは各加エステージ
(301,302…)間の間隔距離だけ往復運動し加工
対象物(311,312…)を次加工ステージに一定ピ
ツチで送り出す搬送設備350で結合されている。各加
工ステージ(301,302…)の加工が全て終了する
と、各加工ステージで加工終了している加工対象物(3
11,312…)は搬送設備350によつて次加工ステ
ージへ移動される。そして各加工対象物は第9図のよう
になり、各加工ステージで新たな加工が行われる。とこ
ろでこの製造ラインには複数種の加工対象物が流れてお
り、各加工ステージは送られてきた各加工物に応じて取
りつけ部品が変つたり、加工法が変る。この状態を第8
図,第9図により説明する。
Next, an apparent example of failure diagnosis will be described. FIG. 7 shows only the main part of the sequence control device. P in FIG.
The manufacturing line used as the control object of Cs is shown. On this manufacturing line, processing stages (301, 302, ...) Performing intensive processing are lined up at a fixed distance. In the first processing stage 301, the mounting processing of the component A group and the component B group is performed, and in the second processing stage, the mounting processing of the component C group is performed. Incidentally, in this manufacturing line, the conveying equipment 350 is connected by reciprocating motion by the distance between the respective processing stages (301, 302 ...) And sending the processing object (311, 312 ...) To the next processing stage with a constant pitch. When the processing of all the processing stages (301, 302 ...) Is completed, the processing target object (3
11, 312 ...) are moved to the next processing stage by the transfer facility 350. Then, each processing object is as shown in FIG. 9, and new processing is performed at each processing stage. By the way, a plurality of types of processing objects flow in this manufacturing line, and each processing stage has different parts to be mounted or a different processing method depending on the respective processing objects sent to it. This state is the 8th
This will be described with reference to FIGS.

第8図では第1加工ステージ301は加工対象物311
に応じて部品供給設備340から該当部品の自動供給を
うける。第1加工ステージ301に対して部品A群スト
レージ321−Aおよび部品B群ストレージ321−B
よりは部品が供給される。ところで部品A群ストレージ
321−Aには部品A1(321−A1),部品A2
(321−A2),部品A3(321−A3)といつた
複数種の部品が格納されている。これらの3種の部品A
群の中より、加工対象物311に対してどの部品を供給
すべきかPCsが判断し、部品供給切替装置330によ
り部品選択切替を行う。部品供給切替装置330が該当
部品をピツクアツプするように切替動作が完了すると部
品送出装置331が動作し、第1加工ステージ301に
必要とする部品が供給される。
In FIG. 8, the first processing stage 301 is the processing object 311.
Accordingly, the parts supply facility 340 automatically receives the corresponding parts. Parts A group storage 321-A and parts B group storage 321-B for the first processing stage 301
Than parts are supplied. By the way, the parts A1 (321-A1) and the parts A2 are stored in the parts A group storage 321-A.
(321-A2), component A3 (321-A3), and a plurality of types of components are stored. These three parts A
From the group, the PCs determine which component should be supplied to the processing object 311, and the component supply switching device 330 switches the component selection. When the switching operation is completed so that the component supply switching device 330 picks up the corresponding component, the component delivery device 331 operates and the required component is supplied to the first processing stage 301.

これらの動作をタイムチヤト式にえがいたものが第10
図である。この製造ラインでは加工対象物が間欠的に送
られ各加工ステージに送られてきた加工対象に対して停
止状態にして集中加工を行うものである。この加工対象
物の搬送から加工終了までを一サイクルとしてサイクリ
ツクに動作する。まず搬送設備が加工対象物を次加工ス
テージに送る搬送動作400が行われる。搬送動作40
0が終ると各加工ステージごとの処理が一斉に始まる。
これらの処理を各ステージごとにみてみると将棋倒し的
に第1工程、第2工程、第3工程と順序よくシーケンシ
ヤルに動作していく。ところが各加工ステージ相互間の
加工については全くインタロツクがないため各々の加工
進行は完全に独立して並列進行していく。すなわち第1
加工ステージ処理の第1工程401の動作終了タイミン
グと第2加工ステージ処理の第1工程411の終了ダイ
ミングはどちらが早く終ろうが全くかまわない。すなわ
ち第1加工ステージの加工と第2加工ステージの加工は
全く独立したものであるから、お互いに何の因果関係も
ない訳であるから何の問題もないわけである。
The 10th type of operation is a time chat method.
It is a figure. In this manufacturing line, an object to be machined is intermittently sent, and the object to be machined sent to each of the machining stages is brought into a stopped state to perform concentrated machining. The cycle from the conveyance of the object to be processed to the end of processing is cyclically operated. First, the transport operation 400 is performed in which the transport facility sends the workpiece to the next processing stage. Transport operation 40
When 0 ends, the processing for each processing stage starts all at once.
When these processes are examined for each stage, they are operated in a sequential manner in the order of shogi, the first process, the second process, and the third process. However, since there is no interlocking between the machining stages, the machining progresses independently and in parallel. Ie the first
It does not matter which of the operation end timing of the first step 401 of the processing stage processing and the end dimming of the first step 411 of the second processing stage processing ends earlier. That is, since the processing of the first processing stage and the processing of the second processing stage are completely independent from each other, there is no causal relationship with each other, and there is no problem.

ただし各加工ステージセ内での進行は各加工工程ごと
に、ステツプを歩進させるためのインタロツクがとられ
ており整然とシーケンシヤルに進められていく。ここで
重要なのは各加工ステージごとの加工進行はプログラム
で規定された工程を整然と進行していくため、その工程
の進行すなわちPCsの入出力の状態遷移をあらかじめ
テイーチングしておけば、設備に故障が発生すると、ど
の工程ステツプで異常が発生したのかを自動的に検知診
断することができる。ところが実際には種々の加工が各
ステージごとに並列進行しているため、単なるPCsの
入出力の遷移状態を実加工ラインについて実動させ、こ
れを自動的に分析記憶させることによつて、あらかじめ
その遷移状態を正常時の標準パターンとしてテイーチン
グさせておき、設備を実動させるとき、このテイーチン
グさせておいた正常時の標準パターンとパターンマツチ
ング照合をとりながら加工を進めようとすると、故障で
も異常でもないのに設備異常であるとして誤診断される
ことが頻発し実用上は活用できない。また同様に何らか
の異常が発生した時、あらかじめ準備していた正常時の
標準パターンと比較照合することによつて故障診断を行
うこともできない。これは先ほど述べたように各加工ス
テージ間の処理は全く独立しており因果関係がないた
め、ミクロ的な観点にたつてみれば、機械的な潤滑度に
よつて生じる各部品の微細な動作時間のばらつきや、マ
クロ時には機械設備の経年変化による各加工時間の変化
などによりPCsの入出力遷移条件は常時変動していて
定まることがない。さらにこれまでの説明ではのべなか
つたが、実際の製造ラインに複数種の加工対象物が流れ
る場合、加工対象物によつて加工方法が異なるため、ど
の加工法がとられるかによつてPCsの入出力状態遷移
がそのつど変るため標準入出力パターンをあらかじめと
つておくことによつて故障診断を行うことはできない。
すなわちこの様な例では何が標準動作パターンで、どれ
が異常であるのかを自動的に区分しテイーチングするた
めの手だてはないといえる。
However, in each processing stage, each processing step has an interlock for advancing a step, and the steps are carried out in a systematic and sequential manner. What is important here is that the machining progress for each machining stage proceeds in an orderly manner according to the program. Therefore, if the teaching of the progress of the process, that is, the input / output state transition of PCs, is performed in advance, the equipment will not fail. When it occurs, it is possible to automatically detect and diagnose at which process step the abnormality has occurred. However, in reality, various processes are progressing in parallel at each stage, so by simply operating the transition state of input / output of PCs on the actual process line and automatically analyzing and storing this, If the transition state is taught as a standard pattern for normal operation and the equipment is put into actual operation, if the pattern matching with the standard pattern for normal operation that was taught is tried to proceed with machining, even if there is a failure, Although it is not an abnormality, it is often misdiagnosed as an equipment abnormality and cannot be practically used. Similarly, when some kind of abnormality occurs, failure diagnosis cannot be performed by comparing and collating with a standard pattern prepared in advance for normal operation. This is because the processing between each processing stage is completely independent and has no causal relationship as described above, so from a microscopic point of view, minute movements of each part caused by mechanical lubricity The input / output transition conditions of the PCs are constantly fluctuating and are not settled due to variations in time or changes in each machining time due to secular changes in mechanical equipment during macro. Furthermore, although it has not been explained so far, when a plurality of types of processing objects flow in the actual manufacturing line, the processing method differs depending on the processing objects, and therefore PCs depends on which processing method is used. Since the input / output state transition of No. 1 changes each time, it is not possible to carry out the failure diagnosis by preparing the standard input / output pattern in advance.
That is, in such an example, it can be said that there is no means for automatically classifying and teaching what is the standard operation pattern and which is abnormal.

つぎに本発明による設備異常診断について説明する。第
11図に本発明を活用したシーケンスラダープログラム
の例を示す。第8,9,10図で述べてきた全加工ステ
ージの加工が終了していると搬送機加工対象物一斉移動
コイル510が励磁され各加工対象物は次加工ステージ
へと移動される。そして各加工ステージの準備条件52
0の条件が整うと、第1,第2,第3加工ステージの加
工開始のプロセスコイル(512,513,514)お
よび工程渋滞チエツクタイマ515が一斉に励磁され
る。これらの加工プロセスコイル(ここではラツチ式と
する。そのためプロセスコイルは一旦励磁されると、そ
れに対応するプロセスリセツトコイルが励磁され、その
プロセスコイルの接点がOFFする迄そのプロセスコイ
ル接点はON状態のままとなる。)は毎シーケンナスサ
イクルごとにプロセスコイル演算命令512が実行され
る。該当プロセスコイル512の演算命令が実行される
時、ハードウエアはそのプロセスコイルの接点がONが
OFFかをチエツクし、もしそのプロセスコイルの接点
がONであると該当サブルーチン612ヘジヤンプし、
そのプログラムを実行する、そのサブルーチン612が
終了すると主制御プログラム500の次の命令プロセス
コイル513が実行される。これも接点ONであるから
サブルーチン613ヘジヤンプし処理終了すると主制御
プログラム500の次の命令であるプロセスコイル51
4を実行する。
Next, the equipment abnormality diagnosis according to the present invention will be described. FIG. 11 shows an example of a sequence ladder program utilizing the present invention. When the processing of all the processing stages described in FIGS. 8, 9 and 10 is completed, the conveyor machine object simultaneous movement coil 510 is excited and each processing object is moved to the next processing stage. And the preparation conditions 52 for each processing stage
When the condition of 0 is satisfied, the process coils (512, 513, 514) and the process congestion check timer 515 for starting the processing of the first, second, and third processing stages are excited all at once. These machining process coils (latches are used here. Therefore, once the process coil is excited, the corresponding process reset coil is excited, and the process coil contact remains in the ON state until the process coil contact turns OFF. The process coil operation instruction 512 is executed every sequential cycle. When the operation command of the process coil 512 is executed, the hardware checks whether the contact of the process coil is ON or OFF, and if the contact of the process coil is ON, the corresponding subroutine 612 is jumped,
When the subroutine 612 that executes the program is completed, the next instruction process coil 513 of the main control program 500 is executed. Since this is also the contact ON, when the subroutine 613 is jumped to complete the process, the process coil 51, which is the next command of the main control program 500, is issued.
Execute 4.

ここでマクロ的な観点から、このプログラムの動作をみ
てゆくと搬送機により加工対象物の一斉移動が行われる
と、第1,第2,第3加工ステージのプロセスコイルが
励磁され、これらの各加工ステージの加工が実行され
る。ここで通常の稼動パターンであれば第1加工ステー
ジは23秒、第2加工ステージでは32秒、第3加工ス
テージでは27秒の処理時間を要するとしよう。
From a macro point of view, when looking at the operation of this program, when the workpieces are simultaneously moved by the carrier machine, the process coils of the first, second and third machining stages are excited and Processing of the processing stage is executed. Here, in the case of a normal operation pattern, the processing time of the first processing stage is 23 seconds, the processing time of the second processing stage is 32 seconds, and the processing time of the third processing stage is 27 seconds.

第1,第2,第3加工ステージのプロセスコイル51
2,513,514が励磁され該当ステージの処理プロ
グラムであるサブルーチン612,613,614のプ
ログラムシーケンスプログラムスキヤンごとに実行され
る。それと同時に工程渋滞チエツクタイマ515がセツ
トされ動作しはじめる。
Process coil 51 for the first, second, and third processing stages
2, 513 and 514 are excited and executed for each program sequence program scan of subroutines 612, 613 and 614 which are processing programs of the corresponding stage. At the same time, the process congestion check timer 515 is set and starts to operate.

このタイマには通常の加工サイクルタイム32秒より若
干余裕をもつた40秒が設定されている、加工時間が進
行し23秒が経過すると第1加工ステージの処理を完結
する条件602が整い、第1加工ステージのプロセスリ
セツトコイル512が励磁され以後、第1加工ステージ
の加工プログラム612には起動がかからなくなる。さ
らに加工経過時間が27秒になると第3加工ステージ加
工完了条件604がととのい第3加工ステージのプロセ
スリセツトコイル514が励磁され、サブルーチン61
4の実行は止まる。さらに32秒後には第2加工ステー
ジの加工も終了してしまう。
This timer is set to 40 seconds, which is slightly longer than the normal processing cycle time of 32 seconds. When the processing time advances and 23 seconds elapse, the condition 602 for completing the processing of the first processing stage is set, After the process reset coil 512 of the first machining stage is excited, the machining program 612 of the first machining stage is not activated. When the machining elapsed time further reaches 27 seconds, the process reset coil 514 of the third machining stage is excited when the machining completion condition 604 of the third machining stage is completed, and the subroutine 61
Execution of 4 stops. Further, after 32 seconds, the processing on the second processing stage ends.

ここで第13図に示す如く第3加工ステージのリミツト
スイツチが故障した場合を考える。搬送機により一斉に
次加工ステージに加工対象物が移動すると第1,第2,
第3加工ステージの加工が始まる。加工開始より23秒
が経過すると第1加工ステージの処理が終り、他のステ
ージの処理が終了するのをまつ。しかしながら正常時と
ちがつて27秒が経過しても第3加工ステージのプロセ
スリセツトコイル514は励磁されない。これは第3加
工ステージでリミツトスイツチが故障し、工程を歩進さ
せるための条件604が成立しないためである。そして
32秒が経過すると第2加工ステージの処理が終了す
る。しかしながら第3加工ステージの処理は完了しなた
め搬送設備は一斉動作することができず、そのまま時間
が経過していく。そして40秒が経過すると工程渋滞チ
エツクタイマ515がタイムアツプし作業者に異常状態
であることをしらせる。そこで作業者は設備故障診断装
置に対して生産設備のどこが異常であるかを調べるよう
に指示する。故障診断装置は第14図に示すプロセス入
出力コントローラ131の中にあるシーケンス命令入出
力バツフアメモリ140のプロセスコイル接点エリアで
ONになつているのはどこかを第7図図示故障部検索装
置220がサーチする。そしてその異常工程ナンバー2
28を異常工程検索部222に通知する。ここでプロセ
スコイル接点がONのままになつているということは工
程起動はかかつているが何らかの理由で工程終了させる
該当プロセスリセツトコイル信号が出ないでいるという
ことを示している。すなわち、ここに故障の原因がある
と判断することができる。ところで故障の原因はその工
程を起動するシーケンス回路にあるのではなく、この工
程を終了させ次の工程に移行させる役割をもつ工程リセ
ツト回路に重大な意味すなわち故障の自動診断を行う鍵
がある。そこで、なぜその工程が終了できないのでいる
かを調べればその原因をつきとめることができる。
Here, consider the case where the limit switch of the third processing stage fails as shown in FIG. When the workpieces are moved to the next processing stage all at once by the carrier,
Processing of the third processing stage begins. After 23 seconds have passed from the start of processing, the processing of the first processing stage ends and the processing of the other stages ends. However, unlike the normal state, the process reset coil 514 of the third processing stage is not excited even after 27 seconds have elapsed. This is because the limit switch fails in the third processing stage, and the condition 604 for advancing the process is not satisfied. When 32 seconds have passed, the processing of the second processing stage ends. However, since the processing of the third processing stage is not completed, the transfer equipment cannot operate at the same time, and the time elapses. When 40 seconds have passed, the process congestion check timer 515 times up and makes the operator know that it is in an abnormal state. Therefore, the operator instructs the equipment failure diagnosis device to check which part of the production equipment is abnormal. The fault diagnosing device has a fault part searching device 220 shown in FIG. 7 which is turned on in the process coil contact area of the sequence command input / output buffer memory 140 in the process input / output controller 131 shown in FIG. Search. And the abnormal process number 2
28 is notified to the abnormal process search unit 222. Here, the fact that the process coil contact is still ON means that the process has been started but the process reset coil signal for ending the process has not been output for some reason. That is, it can be determined that there is a cause of failure here. By the way, the cause of the failure is not in the sequence circuit that activates the process, but in the process reset circuit that has the role of terminating this process and shifting to the next process, there is a key meaning, that is, the automatic diagnosis of the failure. Therefore, by investigating why the process cannot be completed, the cause can be identified.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、シーケンスプロ
グラム処理時間が、極めて高速になつたことである。従
来は、無駄であるとわかつていながら該当工程外の処理
プログラム部分も、総なめ的に処理していたのに対し、
本発明では極めて限定された部分のみを、スキヤンすれ
ばよいため処理の高速化が計れる。一般的には、1プラ
ントで、60〜120の工程があると言われており、同
時に動いている工程が、例えば、常時3工程、動作する
と考えれば(工程歩進メインプログラム10の、スキヤ
ンに要する時間は無視する)1/20から1/40の処
理時間で済むことになる。OSのオーバーベツド、工程
歩進メインプログラム処理時間を勘案しても、1/10
から1/20の処理時間で済む。このことは、シーケン
スサイクルが短くなり、位置決め等の処理は従来、PC
sでは処理不能だつたため、オプシヨン機能として、マ
イクロプロセツサ、もしくは、専用のカウンター等を搭
載した専用ハードウエアで実現していたものも、PCs
本体で処理できるようなつたということができる訳であ
る。
As described above, according to the present invention, the sequence program processing time is extremely fast. In the past, while it was known to be wasteful, the processing program part outside the relevant process was also processed as a whole.
In the present invention, only a very limited portion needs to be scanned, so that the processing speed can be increased. Generally, it is said that there are 60 to 120 processes in one plant, and if it is assumed that the processes that are moving at the same time are, for example, 3 processes at all times (in the scan step main program 10, (The required time is ignored.) Processing time of 1/20 to 1/40 will be sufficient. 1/10 even considering OS overbed and process time main program processing time
To 1/20 the processing time. This shortens the sequence cycle, and the processing such as positioning is conventionally performed on a PC.
Since it is not possible to process with s, PCs that have been realized with dedicated hardware equipped with a microprocessor or a dedicated counter etc. as an option function, PCs
It is a translation that can be processed by the main body.

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

第1図は本発明のシーケンス制御方法の第2の例を説明
する流れ図、第2図は第1図図示の本発明のシーケンス
制御方法においてイニシヤルライズ時の先頭アドレステ
ーブルと細分化された工程処理プログラムメモリ領域と
の状態を説明する図、第3図は第1図図示のシーケンス
制御方法において細分化された工程処理プログラムおよ
びメインプログラムを作成,登録した状態を説明する
図、第4図は本発明になる第1図図示のシーケンス制御
方法を実施するシーケンス制御装置の具体的構成例を示
す概略図、第5図はシーケンス制御要プロセツサの概略
構成を示すブロツク図、第6図は第5図におけるプロセ
ス入出力コントローラのレジスタ内容を示す図、第7図
は本発明になるシーケンス制御方法を実施するシーケン
ス制御装置の他の具体的構成例を示す概略図、第8図,
第9図はPCsの制御対象となる製造ラインを示す図、
第10図は第8図、第9図の動作タイムチヤート、第1
1図,第12図,第13図はシーケンスラダープログラ
ム、第14図はプロセス入出力コントローラを示す図、
第15図は第11図の異常状態を示す図、第16図は従
来の一般的なシーケンス制御方式を説明する図である。
FIG. 1 is a flow chart for explaining a second example of the sequence control method of the present invention, and FIG. 2 is a subdivided process from the start address table at the time of initialization in the sequence control method of the present invention shown in FIG. FIG. 3 is a diagram for explaining the state of the processing program memory area, FIG. 3 is a diagram for explaining a state in which a process processing program and a main program subdivided by the sequence control method shown in FIG. 1 are created and registered, and FIG. FIG. 5 is a schematic diagram showing a concrete configuration example of a sequence control device for carrying out the sequence control method shown in FIG. 1, according to the present invention, FIG. 5 is a block diagram showing a schematic configuration of a sequence control processor, and FIG. FIG. 7 is a diagram showing register contents of the process input / output controller, and FIG. 7 is another component of the sequence control device for implementing the sequence control method according to the present invention. Schematic, Figure 8 showing the example configuration,
FIG. 9 is a diagram showing a production line controlled by PCs,
FIG. 10 is the operation time chart of FIG. 8 and FIG.
1, 12, and 13 are sequence ladder programs, and FIG. 14 is a diagram showing a process input / output controller.
FIG. 15 is a diagram showing the abnormal state of FIG. 11, and FIG. 16 is a diagram for explaining a conventional general sequence control method.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プロセスの工程ごとに分割された複数のシ
ーケンス工程処理プログラムを含んでなる工程処理プロ
グラム群と、該工程処理プログラム群の中の各工程処理
プログラムに対応して設定され、対応する工程処理プロ
グラムを実行すべきか否かを判定する複数の工程処理実
行判定命令を含んでなるシーケンス制御を統括する工程
歩進プログラムとを記憶するプログラムメモリと、 プログラム入出力信号と、該入出力信号に基づいて判定
する前記工程処理実行判定命令の判定結果が対応する前
記工程処理プログラムを実行すべきであるときオン、該
オンに基づいて実行された工程処理プログラムの実行が
終了したときオフとなる歩進信号とを、前記複数の工程
処理プログラムごとにリンクして格納する入出力バッフ
ァメモリと、 前記工程歩進プログラムを所定の周期で起動し、該プロ
グラム中の前記工程処理実行判定命令を順次読み出して
実行し、該判定結果が対応する工程処理プログラムを実
行すべきであるとき、前記入出力バッファメモリの対応
する前記歩進信号をオンにして対応する工程処理プログ
ラムを実行させ、該工程処理プログラムの実行が終了し
たとき該歩進信号をオフにする処理を実行するシーケン
ス処理手段と、 前記歩進信号の中の少なくとも1つのオン状態が予め定
めた時間を超えたとき、該歩進信号に対応する工程処理
プログラムに係る工程が異常と判定して報知するシーケ
ンス監視手段とを備えたシーケンス制御装置において、 前記プロセスの工程が並行して実行される独立した複数
の処理ステージを含み、該処理ステージはそれぞれ少な
くとも1つの前記工程処理プログラムを含み、 前記工程処理プログラムが、対応する前記工程をさらに
細分化した工程に対応させてなる複数のサブプログラム
と、該複数のサブプログラムの中の任意のサブプログラ
ムを実行するか否かを前記入出力信号に基づいて判定
し、該判定結果に基づいて当該サブプログラムの起動を
制御する実行判定命令とを含み、 前記シーケンス監視手段は前記処理ステージ単位で異常
を判定することを特徴とするシーケンス制御装置。
1. A process processing program group including a plurality of sequence process processing programs divided for each process step, and set and corresponded to each process processing program in the process processing program group. A program memory for storing a process step program that controls a sequence control including a plurality of process process execution determination commands for determining whether to execute the process process program, a program input / output signal, and the input / output signal It is turned on when the process processing program corresponding to the determination result of the process processing execution determination command to be executed should be executed, and is turned off when the execution of the process processing program executed based on the ON is completed. An input / output buffer memory that stores a step-up signal by linking each of the plurality of process processing programs, When the step program is started in a predetermined cycle, the process processing execution determination commands in the program are sequentially read and executed, and the process processing program corresponding to the determination result should be executed, the input / output buffer memory Sequence processing means for turning on the corresponding step signal for executing the corresponding step processing program, and executing processing for turning off the step signal when the execution of the step processing program is completed; A sequence control device provided with a sequence monitoring means for determining that the process according to the process processing program corresponding to the step signal is abnormal when at least one ON state of the signals exceeds a predetermined time. In, the method includes a plurality of independent processing stages in which the steps of the process are performed in parallel, each processing stage comprising at least one And a plurality of subprograms corresponding to the steps obtained by further subdividing the corresponding steps, and the subprograms of the plurality of subprograms. Whether or not it is determined based on the input / output signal, and an execution determination command that controls activation of the subprogram based on the determination result, wherein the sequence monitoring unit determines abnormality in each processing stage. Sequence control device characterized by.
JP60230100A 1985-10-16 1985-10-16 Sequence controller Expired - Lifetime JPH0625927B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60230100A JPH0625927B2 (en) 1985-10-16 1985-10-16 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60230100A JPH0625927B2 (en) 1985-10-16 1985-10-16 Sequence controller

Publications (2)

Publication Number Publication Date
JPS6290707A JPS6290707A (en) 1987-04-25
JPH0625927B2 true JPH0625927B2 (en) 1994-04-06

Family

ID=16902552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60230100A Expired - Lifetime JPH0625927B2 (en) 1985-10-16 1985-10-16 Sequence controller

Country Status (1)

Country Link
JP (1) JPH0625927B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0255305U (en) * 1988-10-13 1990-04-20

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5720807A (en) * 1980-07-15 1982-02-03 Hitachi Ltd Sequence controller
JPS57136206A (en) * 1981-02-17 1982-08-23 Toshiba Corp Sequence controller
JPS59205613A (en) * 1983-05-06 1984-11-21 Toyoda Mach Works Ltd Sequence monitor device
JPS59205605A (en) * 1983-05-07 1984-11-21 Hitachi Ltd Sequence controller
JPS60218107A (en) * 1984-04-13 1985-10-31 Mitsubishi Electric Corp Sequence controller

Also Published As

Publication number Publication date
JPS6290707A (en) 1987-04-25

Similar Documents

Publication Publication Date Title
KR900001033B1 (en) Sequence controller
CN100460161C (en) Device and method for controlling robot
CN107315689B (en) Automatic regression testing method based on Git code file retrieval granularity
JP5819061B2 (en) How to create NC programs for machine tools
KR101472697B1 (en) Logging setup device, logging setup method and recordable medium
RU2405183C2 (en) Method of controlling robotic workstation and robotic workstation
US20120324415A1 (en) System Comprising Development Environments And Machine Controls
US5742624A (en) Fault detecting apparatus and method
JPH0625927B2 (en) Sequence controller
US5239476A (en) Multi-level state language controller for multi-threaded machine control
JP2532357B2 (en) Control method of operation sequence
JP4112433B2 (en) Numerical control device for machine tool and numerical control method for machine tool
JP3312519B2 (en) Manufacturing process generation system
JP3460747B2 (en) Numerical control unit
JP2533373B2 (en) Control program creation method
US5162714A (en) Numerical control device for transfer machines
US12001186B2 (en) Information processing method, information processing apparatus, production system and article manufacturing method
JPH06318113A (en) Method and device for grouping objects of diagnosis for fault diagnosis
JP2004199524A (en) Apparatus and method for control program generation, and program product
JPH0359703A (en) Failure diagnostic device for sequence controller
JP2533372B2 (en) Control program creation method
JP2001209415A (en) Method of generating standard pattern for fault diagnosis and fault diagnosis equipment
JPH10149215A (en) Device and method for monitoring abnormality of equipment
US6912430B2 (en) Execution device and debug device for motion program
EP0538482A1 (en) Method for debugging sequential program