JPH01287709A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH01287709A
JPH01287709A JP63117106A JP11710688A JPH01287709A JP H01287709 A JPH01287709 A JP H01287709A JP 63117106 A JP63117106 A JP 63117106A JP 11710688 A JP11710688 A JP 11710688A JP H01287709 A JPH01287709 A JP H01287709A
Authority
JP
Japan
Prior art keywords
output
input
program
abnormality
decision
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
JP63117106A
Other languages
Japanese (ja)
Inventor
Junichi Hamano
順一 浜野
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 JP63117106A priority Critical patent/JPH01287709A/en
Publication of JPH01287709A publication Critical patent/JPH01287709A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To easily trace the cause of abnormality in case of generating the abnormality due to an unknown cause by providing an analysis means to retrieve the decision equation of a program and to decide the truth/false of an input/output value when the abnormality is generated, a storage means to store the specification of input/output and a retrieval content at the time of performing analysis, and a display means to display a storage content. CONSTITUTION:The analysis means 5 performs the decision of the truth/false of a decision text in the program when the abnormality is generated in a mechanical device. At this time, when the said internal input is set as false due to the non-execution of an output text, it means that the decision text which performs condition establishment waiting before the output text exists and execution is interrupted at that point. Therefore, by repeating the decision and the retrieval of the decision text, all of the external input can be found finally. In other words, either the external input represents the cause of the abnormality. In such a way, by displaying the analyzing process and the input value at that time on the display means 7, it is possible to trace the cause of the abnormality easily.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシーケンス制御装置に係シ、特にプログラム実
行において異常が発生した時に、その異常原因の追求を
容易に行なうのに好適なシーケンス制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a sequence control device, and particularly to a sequence control device suitable for easily investigating the cause of an abnormality when an abnormality occurs in program execution. Regarding.

〔従来の技術〕[Conventional technology]

シーケンス制御装置は、一般にその制御対象である機械
装置に対し何らかの電気的または機械的指令を与える出
力式と、同機械装置の状態を判定する判定式からなるプ
ログラムを実行する。また、動作指令によって出される
出力は、機械装置に直接与えられる外部出力と、状態保
持や一時記憶に用いられる内部出力からなシ、入力も同
様に、機械装置よシ直接読み出される外部入力と、前記
−時記憶の値等を読み出す内部入力からなる〇そして、
プログラムの開始命令が与えらnると、前記判定式及び
出力式を逐次交互に実行していく〇その実行途上におい
て、ある条件判定の段階で異常が発生した場合には、例
えば特開昭61−156407号公報に記載の様に、シ
ーケンスを停止した時の内容を表示することによシ、機
械装置を回復させるための情報を使用者に与えるように
なっている。
A sequence control device generally executes a program consisting of an output formula for giving some kind of electrical or mechanical command to a mechanical device to be controlled, and a determination formula for determining the state of the mechanical device. In addition, the outputs issued by operation commands include external outputs that are directly given to the mechanical device, and internal outputs that are used for state maintenance and temporary storage.Similarly, the inputs include external inputs that are directly read out from the mechanical device. It consists of an internal input that reads out the value of the time memory, etc., and,
When a program start command is given, the above-mentioned judgment formula and output formula are sequentially and alternately executed.During the execution, if an abnormality occurs at a certain condition judgment stage, for example, JP-A-61 As described in Japanese Patent No. 156407, information for restoring the mechanical device is provided to the user by displaying the contents when the sequence is stopped.

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

上記従来技術は、異常原因が事前にわかっているものに
ついてはその異常原因を全てリストアツブしてこれを制
御装置に記憶させておき、異常発生時にその異常原因を
リストの中から選らび出して表示することは可能である
。しかし、原因が未知の場合は、上記方法では対応がと
れず、結局、使用者がプログラムリストと機械状態を表
す外部入力値を細部にわたシーつ一つ調べることとなる
In the above conventional technology, if the cause of an abnormality is known in advance, all the causes of the abnormality are restored and stored in the control device, and when an abnormality occurs, the cause of the abnormality is selected from the list and displayed. It is possible to do so. However, if the cause is unknown, the above method cannot be used, and the user ends up checking the program list and external input values representing the machine status in detail one by one.

上記プログラムは、一連の処理が複数本のプログラムと
して記述され、その実行も同時並列処理されるのが一般
的である◎したがって、入出力(特に内部入出力)につ
いては並列処理間でのやシとシが存在することが多く、
これらの解析には多くの手間を要することになシ、異常
原因を容易に追求することができない。
In the above programs, a series of processing is generally written as multiple programs, and their execution is also performed simultaneously in parallel. Therefore, regarding input/output (especially internal input/output), there is a slight difference in synchronization between parallel processing. and shi are often present,
These analyzes require a lot of time and effort, and the cause of the abnormality cannot be easily determined.

本発明の目的は、未知の原因で異常が発生した場合にも
、その異常原因を容易に追求することが可能なシーケン
ス制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a sequence control device that can easily identify the cause of an abnormality even when an abnormality occurs due to an unknown cause.

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

上記目的は、異常発生時にプログラムの判定式内を検索
し入出力値の真偽を判定する解析手段と、解析時の入出
力の種別及び検索内容を記憶する記憶手段と、該記憶内
容を表示する表示手段を設けることで、達成される◎ 〔作用〕 解析手段は、機械装置の異常発生時に、プログラム内の
判定文の入出力値について真偽判定を行なう0このとき
、その入出力が内部入力の場合には、その内部入力を設
定(出力)した出力文をプログラム内から検索する・そ
の出力文が未だ実行されていない為に当の内部入力が偽
となっているときには、その出力文の前に条件成立待ち
を行なっている判定文があシ、その場所で実行が中断さ
れているはずである・そこで、との判定文についても上
記判定・検索をくシ返すことによシ、最終的には全て外
部入力に行きつくことになる。すなわち、この外部入力
のいずれかが異常の原因を表わしている0従って、この
時の解析過程と入力値を表示することによシ、異常原因
の追求が容易となる。
The above purpose is to provide an analysis means that searches the judgment formula of the program and determines the truth or falsehood of input/output values when an abnormality occurs, a storage means that stores the type of input/output and search contents at the time of analysis, and a display of the storage contents. ◎ [Operation] The analysis means determines the truth or falsity of the input/output values of the judgment statement in the program when an abnormality occurs in the mechanical device. At this time, the input/output is internal. In the case of input, search the program for the output statement that set (output) the internal input. - If the internal input is false because the output statement has not been executed yet, then search for that output statement. If there is a judgment statement that waits for the condition to be met before , execution should have been interrupted at that location. Therefore, by returning the above judgment/search for the judgment statement, In the end, everything comes down to external input. That is, any of these external inputs represents the cause of the abnormality. Therefore, by displaying the analysis process and input values at this time, it becomes easier to pursue the cause of the abnormality.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を参照して説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例に係るシーケンス制御装置
のブロック構成図である。通常のシーケンサは、シーケ
ンス制御の実行内容を記憶するメモリであるプログラム
記憶手段1.その内容に従って実行を行なうシーケンス
制御用プロセッサである実行手段2、実行した結果であ
る入出力のうち内部入出力の一時記憶を行なう内部入出
力記憶手段3、そして入出力のうち外部機器に対して信
号の入出力を行なう外部入出力手段4からなっている。
FIG. 1 is a block diagram of a sequence control device according to an embodiment of the present invention. A normal sequencer has program storage means 1. which is a memory for storing execution contents of sequence control. Execution means 2 is a sequence control processor that performs execution according to the contents, internal input/output storage means 3 temporarily stores internal input/output among input/outputs that are the result of execution, and external equipment among input/outputs. It consists of external input/output means 4 for inputting and outputting signals.

実行手段2はプログラム記憶手段1にあるプログラムの
各文を、入出力手段6.4に対して読み書きしながら順
次実行を行なっていく。ここで先に述べた通シ、外部機
器に異常が生じると、外部入力はプログラムの意とする
値とは異なる為、その実行が困難となシ最悪の場合実行
停止となる。
The execution means 2 sequentially executes each statement of the program stored in the program storage means 1 while reading and writing from and to the input/output means 6.4. As mentioned above, if an abnormality occurs in the external device, the external input will be different from the value intended by the program, making it difficult to execute the program, and in the worst case, the program will stop executing.

そこで本実施例では、プログラム内の内容を解析して条
件待ち行をさがしてその条件式内の入出力変数を切シ出
し、その入力変数の真偽判定と種別判定を行なう解析手
段5と、解析中に生じた中間結果及び最終結果をスタッ
ク形式で記憶していく解析結果記憶手段6、及び解析結
果記憶手段6の内容を画面に表示する表示手段7を新た
に設け、使用者に異常である外部入力についてその変数
名及び値を提示するようにしている〇 第2図は、解析手段で実行される解析処理手順の70−
チャートである。解析手段5に起動がかかると、解析手
段5はステップS1のプログラム実行行隘読出処理を行
ない、実行手段2に対して、同時処理が行なわれている
谷プログラムが各々どの部分を実行していたかを問い合
わせる。ここで、第3図に示す様に、現在複数のプログ
ラム(第3図の例では、プログラム1とプログラム2)
が同時に実行されてお夛、例えばプログラム1では行階
3″′!で実行されていたとする。この場合、プログラ
ム1については実行行限3を読み出す0次のステップS
2のプログラム解析処理では、ステップS1にて読み出
した実行待が条件待ちであるならば、条件式内の入出力
を切夛出す。上記<3(WAIT  XOI  AND
  XO2AND  RO5)は条件待ち文であシ、外
部入力XOI、XO2及び内部入出力RO5のAND条
件の成立を待っている。
Therefore, in this embodiment, the analysis means 5 analyzes the contents of the program, searches for a condition waiting line, extracts the input/output variables in the conditional expression, and performs the truth/false determination and type determination of the input variable; An analysis result storage means 6 for storing intermediate results and final results generated during analysis in a stack format, and a display means 7 for displaying the contents of the analysis result storage means 6 on the screen are newly installed to prevent the user from seeing abnormalities. The variable name and value are presented for a certain external input. 〇Figure 2 shows 70- of the analysis processing procedure executed by the analysis means.
It is a chart. When the analysis means 5 is activated, the analysis means 5 performs a program execution line reading process in step S1, and informs the execution means 2 which part of each valley program that is being simultaneously processed is being executed. Inquire. Here, as shown in Fig. 3, there are currently multiple programs (in the example of Fig. 3, program 1 and program 2).
are executed at the same time, for example, program 1 is executed at line level 3''!.In this case, for program 1, the 0th step S to read execution line limit 3 is executed.
In the program analysis process No. 2, if the execution wait read in step S1 is a condition wait, the input/output in the conditional expression is cut out. Above <3 (WAIT XOI AND
XO2AND RO5) is a conditional wait statement, which waits for the AND condition of external inputs XOI and XO2 and internal input/output RO5 to be met.

ステップS3の入出力値読出では、ステップS2で判明
した入出力の値を内部入出力記憶手段3及び外部入出力
記憶手段4よシ順次読み出す。そして、ステップS4の
真偽判定処理にて、ステップS5で読み出した入出力値
について真偽の判定を行なう。その判定結果が真(Y)
ならばその入出力には問題は無いと判定し、次の入出力
の判定処理(ステップS9)に進む◇ステップS4での
判定結果が偽(N)の場合には次にステップS5の内部
入出力判定処理に進み、「偽」の判定が出た入出力の種
別(内部、外部)の判定を行なう。
In the input/output value reading in step S3, the input/output values found in step S2 are sequentially read from the internal input/output storage means 3 and the external input/output storage means 4. Then, in the authenticity determination process of step S4, the input/output values read out in step S5 are determined to be true or false. The judgment result is true (Y)
If so, it is determined that there is no problem with that input/output, and the process proceeds to the next input/output determination process (step S9) ◇ If the determination result in step S4 is false (N), then the internal input is determined in step S5. Proceeding to output determination processing, the type (internal, external) of the input/output for which a "false" determination has been made is determined.

ステップS5でその種別が外部入出力であると判定され
た場合には、ステップS+Oに進んでその入出力の名称
を登録する。ステップS5でその種別が内部入出力であ
ると判定された場合には、ステン、プS6のプログラム
内検索処理に進み、ステップS5にて判明した内部入出
力が他のプログラム中の他の場所で設定されてい表いか
を検索する。
If it is determined in step S5 that the type is external input/output, the process proceeds to step S+O and the name of the input/output is registered. If it is determined in step S5 that the type is internal input/output, the process proceeds to program search processing in step S6, and the internal input/output found in step S5 is found at another location in another program. Search to see if the table is set.

そして、ステップS7の設定行階登録処理では、ステッ
プS6の検索によシ見つかった内部入出力投定行のNh
(例えば第3図のプログラム2の行限20)を解析結果
記憶手段6に逐次登録していく。
Then, in the setting row floor registration process in step S7, the Nh of the internal input/output assignment row found by the search in step S6 is
(for example, the line limit 20 of the program 2 in FIG. 3) are sequentially registered in the analysis result storage means 6.

次のステップS8では、登録した設定行限よシ前の行に
条件判定の行が無いかを検索する。第3図の例では、ス
テップS8にてプログラム2の行限17が検索される。
In the next step S8, a search is made to see if there is a condition determination line in the line before the registered set line limit. In the example of FIG. 3, line limit 17 of program 2 is searched in step S8.

この検索結果の条件判定については、ステップS1から
処理を繰シ返す。
Regarding the condition determination of this search result, the process is repeated from step S1.

ステップS4から進んだステップS9の次入出力判定処
理では、条件式内に更に入出力が存在するか否かを判定
し、存在すればステップS3以降を繰シ返し実行する。
In the next input/output determination process of step S9, which is proceeding from step S4, it is determined whether or not there is any further input/output in the conditional expression, and if so, steps S3 and subsequent steps are repeatedly executed.

ステップS5から進んだステップStOの入出力名称登
録処理では、ステップS5にて判明した外部入出力名称
たとえば第3図のXO2を解析結果記憶手段6に記憶す
る。そして、このときその時点で判定している条件式の
行限も一緒に登録する(例えば第3図の例では行Nn 
5 ) 。
In the input/output name registration process of step StO that proceeds from step S5, the external input/output name determined in step S5, for example, XO2 in FIG. 3, is stored in the analysis result storage means 6. At this time, the line limit of the conditional expression being judged at that point is also registered (for example, in the example in Figure 3, line Nn
5).

ステップS9の判定で条件式内に入出力がもう存在しな
いと判定された場合にはステップS11の登録性判定処
理に進み、検索し登録された全ての行階に対し以上の処
理が行なわれたか否かを判定する。この判定で、もし残
)があると判定された場合にはステップS12の登録性
読出処理にて残シの登録付随が読み出され、ステップS
1に戻る。
If it is determined in step S9 that input/output no longer exists in the conditional expression, the process proceeds to step S11, which is a registration determination process, and checks whether the above process has been performed for all row floors that have been searched and registered. Determine whether or not. In this judgment, if it is determined that there is a remaining item, the registration attachment of the remaining item is read out in the registration property reading process of step S12, and the registration attachment of the remaining item is read out in step S12.
Return to 1.

ステップSttの判定結果によシ残シが無いとされた場
合には、ステップS[の他プログラム判定処理ヲ行ない
、他のプログラムに対してもステップS1からの処理を
実行したか否かを判定する。他のプログラムについてス
テップ81以下の処理を実行していない場合にはステッ
プS1に戻シ、他のブロクラムについてもステップ81
以下の処理を終わシ全プログラムの解析終了になると、
ステップS1に進み、解析結果を記憶手段6よシ読み出
し、これを第4図で示す様に表示手段7に表示する〇 〔発明の効果〕 本発明によれば異常時の原因追求が容易に且つ素早く行
なえるので、装置の回復が早くなシ装置停止時間の短縮
が図れる。また本発明によって提示された内容を記録し
ていくことにょシ、以後どの部分が異常になシ易いかと
いった資料となシ、装置の信頼性向上にも効果がある。
If it is determined that there is no remaining program as a result of the determination in step Stt, step S [performs other program determination processing and determines whether or not the processing from step S1 has been executed for other programs as well. do. If the processing from step 81 onwards has not been executed for other programs, return to step S1, and step 81 for other programs as well.
When the following processing is completed and the analysis of the entire program is completed,
Proceeding to step S1, the analysis result is read out from the storage means 6 and displayed on the display means 7 as shown in FIG. Since this can be done quickly, the recovery of the device is quick and the downtime of the device can be shortened. Furthermore, by recording the content presented by the present invention, it can be used as a reference for future information on which parts are likely to cause abnormalities, and is effective in improving the reliability of the device.

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

第1図は本発明の一夾施例に係るシーケンス制御装置の
ブロック構成図、第2図は第1図に示す解析手段にて実
行される解析手I’Illのフローチャート、第3図は
解析対称のプログラムを示す図、第4図は表示例を示す
図である。 1・・・プログラム記憶手段、2・・・実行手段、3・
・・内部入出力記憶手段、4・・・外部入出力記憶手段
、5・・・解析手段、6・・・解析結果記憶手段、7・
・・表示手段G 第1I¥1 jFt20
FIG. 1 is a block configuration diagram of a sequence control device according to one embodiment of the present invention, FIG. 2 is a flowchart of the analysis method I'Ill executed by the analysis means shown in FIG. 1, and FIG. 3 is an analysis FIG. 4 is a diagram showing a symmetrical program and a display example. 1... Program storage means, 2... Execution means, 3.
... Internal input/output storage means, 4. External input/output storage means, 5. Analysis means, 6. Analysis result storage means, 7.
...Display means G 1st I ¥1 jFt20

Claims (1)

【特許請求の範囲】[Claims] 1、機械装置を制御する一連の制御手順を表すプログラ
ムを格納する記憶部と、該プログラムを実行する実行部
と、前記機械装置に対する外部入出力と、外部入出力値
を格納する記憶部と、外部入出力インタフェース部と、
内部入出力値を格納する記憶部とを備え、各記憶部ある
いは外部入出力インタフェース部に対し動作指令となる
内、外出力を与える出力文と、それに対応する前記機械
装置側からの応答である外部入力及び内部記憶部から読
み出す内部入力の値を論理判定する判定文からなるプロ
グラムを実行するシーケンス制御装置において、異常発
生時にプログラムの判定式内を検索し入出力値の真偽を
判定する解析手段と、解析時の入出力の種別及び検索内
容を記憶する記憶手段と、該記憶内容を表示する表示手
段を設けたことを特徴とするシーケンス制御装置。
1. A storage unit that stores a program representing a series of control procedures for controlling a mechanical device, an execution unit that executes the program, an external input/output to the mechanical device, and a storage unit that stores external input/output values; an external input/output interface section;
It is equipped with a storage unit that stores internal input/output values, and includes an output statement that provides an external output among the operation commands for each storage unit or external input/output interface unit, and a corresponding response from the mechanical device side. In a sequence control device that executes a program consisting of judgment statements that logically judge external input and internal input values read from internal storage, analysis that searches the judgment expression of the program and determines the truth or falsehood of input/output values when an error occurs. What is claimed is: 1. A sequence control device comprising: a storage means for storing input/output types and search contents during analysis; and a display means for displaying the stored contents.
JP63117106A 1988-05-16 1988-05-16 Sequence controller Pending JPH01287709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63117106A JPH01287709A (en) 1988-05-16 1988-05-16 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63117106A JPH01287709A (en) 1988-05-16 1988-05-16 Sequence controller

Publications (1)

Publication Number Publication Date
JPH01287709A true JPH01287709A (en) 1989-11-20

Family

ID=14703551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63117106A Pending JPH01287709A (en) 1988-05-16 1988-05-16 Sequence controller

Country Status (1)

Country Link
JP (1) JPH01287709A (en)

Similar Documents

Publication Publication Date Title
JPS6231430A (en) Inductive reasoning device
JPH096628A (en) Method and device for parallel processing procedure selection
JPH01287709A (en) Sequence controller
US20060070038A1 (en) Programmable controller
US4885712A (en) Method and apparatus for partial test-cause generation
JPH0887429A (en) Programmable controller
JPH096981A (en) Drawing production and editing device
JP2921228B2 (en) Programmable controller
JPH08179966A (en) Program test device
JP2699436B2 (en) Parameter inspection processing method
JP2767608B2 (en) Membership function analyzer
JP2560545B2 (en) Interface inspection processor
JPS61131124A (en) Conversation input processing system
JP2726998B2 (en) Computer testing method
JPH0468446A (en) Debugging supporting device
JPS63174130A (en) System for detecting value unsettled variable name
JP2500385B2 (en) Input data management method
JPS6211746B2 (en)
JPH06332749A (en) Register analysis processor
JPH02100146A (en) Trace decision system
JPS5870361A (en) Input controlling system
JPH03266162A (en) Command execution system
JPS581255A (en) Control system for memroy data loading
JPH1097307A (en) Sequencer operation verification device and medium recording sequencer operation verification program
JPS63178344A (en) Batch processing completion informing system