JPH0411881B2 - - Google Patents

Info

Publication number
JPH0411881B2
JPH0411881B2 JP57042337A JP4233782A JPH0411881B2 JP H0411881 B2 JPH0411881 B2 JP H0411881B2 JP 57042337 A JP57042337 A JP 57042337A JP 4233782 A JP4233782 A JP 4233782A JP H0411881 B2 JPH0411881 B2 JP H0411881B2
Authority
JP
Japan
Prior art keywords
input
memory
output
message
abnormality
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
JP57042337A
Other languages
Japanese (ja)
Other versions
JPS58159109A (en
Inventor
Toshimi Matsura
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP57042337A priority Critical patent/JPS58159109A/en
Priority to US06/467,377 priority patent/US4592053A/en
Priority to DE3305807A priority patent/DE3305807A1/en
Publication of JPS58159109A publication Critical patent/JPS58159109A/en
Publication of JPH0411881B2 publication Critical patent/JPH0411881B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0216Human interface functionality, e.g. monitoring system providing help to the user in the selection of tests or in its configuration
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13037Tracing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13128Relay ladder diagram, RLL RLD KOP
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14074Signature analysis, recorded states, zones are compared to actual
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14097Display of error messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 この発明は、プログラマブル・コントローラに
係り、特にシーケンスの論理異常が発生した場合
の異常表示制御に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a programmable controller, and particularly to abnormality display control when a logical abnormality occurs in a sequence.

入出力機器等の不良によつてシーケンス制御に
異常が発生した場合、その異常を表示することの
できるプログラマブル・コントローラは、例えば
特開昭57−45611号公報に示すように従来公知で
ある。
When an abnormality occurs in sequence control due to a defect in input/output equipment, a programmable controller capable of displaying the abnormality is conventionally known, as disclosed in, for example, Japanese Patent Application Laid-Open No. 57-45611.

しかしながら、上記の如き従来の表示装置は故
障した要素ロケーシヨンおよび要素名を表示する
ために、プログラマブル・コントロールに接続し
たメンテナンス表示装置の中で条件照合トレース
を行わなければならず、そのため条件照合トレー
ス回路および条件照合トレースの処理手順を記憶
するための記憶回路、すなわちROMが必要とな
るため、コスト高、重量化は避けられず、かつ広
い設置スペースを要する。
However, in order to display the faulty element location and element name, conventional displays such as those described above require condition matching traces to be performed in a maintenance display connected to the programmable control, which requires a condition matching trace circuit. Since a memory circuit, ie, ROM, is required to store the processing procedure of the condition matching trace, high cost and weight are unavoidable, and a large installation space is required.

また、上記のような表示装置によれば、異常を
検出する処理手順を変更する場合には、回路の修
正が必要となり、容易に変更できない等の問題点
があつた。
Further, according to the display device as described above, when changing the processing procedure for detecting an abnormality, there is a problem that the circuit needs to be modified and cannot be easily changed.

この発明は従来のこのような問題点に鑑みてな
されたもので、その目的とするところは、異常フ
ラグのセツトがユーザプログラムで自由に行な
え、しかも、異常フラグの各番号に対応つけて制
御対象の種類やそれに対して取るべき処置等の任
意のメツセージを設定できるようにし、熟練者で
はなくでも容易に故障等への対応ができ、しかも
条件照合トレースを行なうことなく、異常が発生
した制御対象の種類やそれに対して取るべき処置
等をメツセージの形で表示し、それにより低コス
ト化、軽量化および省スペース化を図るととも
に、異常を検出する処理手順に変更が生じた場合
にもその変更が容易にできる使い勝手の優れたプ
ログラマブル・コントローラを提供することで、
以下、この発明の実施例を添付図面に基づいて詳
細に説明する。
This invention was made in view of the above-mentioned conventional problems, and its purpose is to allow the user program to freely set abnormality flags, and to set control targets in correspondence with each abnormality flag number. By making it possible to set arbitrary messages such as the type of error and the action to be taken in response, even non-experts can easily respond to failures, etc., and can easily identify the control object where an abnormality has occurred without performing condition matching tracing. The type of abnormality and the action to be taken in response to it are displayed in the form of a message, thereby reducing cost, weight, and space, as well as allowing changes to be made in the event of a change in the processing procedure for detecting an abnormality. By providing an easy-to-use programmable controller that makes it easy to
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

第1図はこの発明に係るプログラマブル・コン
トローラの概略構成を示すブロツク図である。こ
のプログラマブル・コントローラは、この発明に
係る故障診断プログラムを含むユーダプログラム
が格納されるユーザプログラムメモリ1と、外部
入力信号が与えられる入力回路2と、外部出力信
号を送出する出力回路3と、上記入力回路2およ
び出力回路3に対応した入出力データのバツフア
メモリとなる入出力メモリ4と、上記ユーザプロ
グラムメモリ1の各命令を順次高速で実行し、上
記入出力メモリ4のデータに基づいて演算処理を
し、その処理結果で上記入出力メモリ4の出力デ
ータを書換える命令実行手段と、上記入力回路2
の入力データを上記入出力メモリ4の所定エリア
に書込む入力更新手段と、上記入出力メモリ4の
所定エリアの出力データを上記出力回路3にセツ
トする出力更新手段とを基本的に有し、ユーザが
後述するこの発明に係る異常フラグFR(N)の各
番号(N=O〜M)毎に対応付けて予め設定した
それぞれの故障診断プログラムに関するメツセー
ジを格納するメツセージメモリ6と、上記メツセ
ージメモリ6に所定のメツセージを設定するため
のキーボード7およびこの発明に係る各種の表示
をする表示部8とを有した操作表示部9とを備え
ている。上記命令実行手段、入力更新手段および
出力更新手段はいわゆるマイクロプロセツサで構
成されるCPU(中央処理ユニツト)5によつて実
現される。CPU5は命令実行手段および入出力
更新手段としての制御動作の他、定時割込を受け
て表示部8にこの発明に係るメツセージを表示す
るルーチン等を含んだ後述する各種のOS処理
(オペレーテイング・システム)を実行するもの
で、その際にRAMであるメモリ10がワーキン
グメモリとして使用される。なお、メツセージメ
モリ6には停電補償をするための電源11が設け
られている。
FIG. 1 is a block diagram showing a schematic configuration of a programmable controller according to the present invention. This programmable controller includes a user program memory 1 in which a UDA program including a failure diagnosis program according to the present invention is stored, an input circuit 2 to which an external input signal is applied, an output circuit 3 to send an external output signal, and the above-mentioned The input/output memory 4 serves as a buffer memory for input/output data corresponding to the input circuit 2 and the output circuit 3, and each instruction in the user program memory 1 is sequentially executed at high speed, and arithmetic processing is performed based on the data in the input/output memory 4. and an instruction execution means for rewriting the output data of the input/output memory 4 with the processing result, and the input circuit 2.
basically comprises an input updating means for writing the input data of the input/output memory 4 into a predetermined area of the input/output memory 4, and an output updating means for setting the output data of the predetermined area of the input/output memory 4 in the output circuit 3, A message memory 6 for storing messages related to respective failure diagnosis programs that are preset in association with each number (N=O to M) of abnormality flags FR (N) according to the present invention, which will be described later by the user, and the message memory 6; 6, an operation display section 9 having a keyboard 7 for setting a predetermined message, and a display section 8 for displaying various displays according to the present invention. The above-mentioned instruction execution means, input updating means and output updating means are realized by a CPU (central processing unit) 5 constituted by a so-called microprocessor. In addition to control operations as an instruction execution means and input/output updating means, the CPU 5 performs various OS processing (operating and system), and at that time the memory 10, which is RAM, is used as working memory. Note that the message memory 6 is provided with a power source 11 for compensating for power outages.

上記ユーザプログラムメモリ1にユーザプログ
ラムの一部として任意に設定される故障診断プロ
グラムの出力命令は、そのオペレーシヨンコード
部のニーモニツクFALで特定され、またそのオ
ペランド部で異常フラグFR(N)の番号(N=O
〜M)を指定するようになつている。
The output command of the fault diagnosis program arbitrarily set as part of the user program in the user program memory 1 is specified by the mnemonic FAL in its operation code section, and the number of the abnormality flag FR (N) in its operand section. (N=O
~M).

第2図は上記キーボード7のキー配列の概略を
示す図である。このキーボード7は、上記メツセ
ージメモリ6に片仮名コードの形で設定されるメ
ツセージを作成するテンキーと、所定のメツセー
ジをメツセージメモリ6に設定する際に使用され
るメツセージキーMSGと、上記表示部8への後
述する繰り返し表示を停止させ、特定の異常フラ
グの番号とそれに対応するメツセージを継続表示
されるめのホールドスイツチキーHLDと、表示
部8の各表示をリセツトし、当該装置をイニシヤ
ライズするためのリセストスイツチキーRSTと、
その他のキー群とを備えている。
FIG. 2 is a diagram schematically showing the key arrangement of the keyboard 7. As shown in FIG. This keyboard 7 includes a numeric keypad for creating a message to be set in the message memory 6 in the form of a katakana code, a message key MSG used to set a predetermined message in the message memory 6, and a message key MSG for creating a message to be set in the message memory 6 in the form of a katakana code. A hold switch key HLD is used to stop the repeated display described later and continue to display a specific abnormality flag number and its corresponding message, and a hold switch key HLD is used to reset each display on the display section 8 and initialize the device. Reset switch key RST and
It also has other key groups.

第3図は上記表示部8への表示態様を示す図で
ある。この表示部8は上段と下段に分れており、
上段は故障が発生したことを示すメツセージ「コ
シヨウアリ」を表示する故障表示部8Aと、ユー
ザプログラムの一巡実行中に発生した故障の総数
を表示する個数表示部8Bと、異常状況を呈した
制御対象の番号を表示する番号表示部8Cとから
なり、番号表示部8Cには異常フラグを示す記号
FRと、その番号Nが表示され、この番号Nは自
動的に一定の間隔で順番に繰り返し表示される。
また、下段は上記番号Nに対応したメツセージを
片仮名で表示するメツセージ表示部8Dとなつて
おり、このメツセージ表示部8Dはこの実施例で
16個の片仮名文字が表示でき、これら16個の片仮
名文字は上述したテンキーによつてユーザがコー
ドの形で上記メツセージメモリ6に任意に設定し
たもので、図示の例では異常フラグFR01に対
応したメツセージが「コンベアモータドウジオ
ン」であることを示している。なお、故障表示部
8Aと個数表示部8bの表示態様は上記リセツト
スイツチキーRSTでリセツトされるまでは変化
することなく表示され、番号表示部8Cとメツセ
ージ表示部8Dとは自動的に一定の間隔で更新表
示される。
FIG. 3 is a diagram showing the display mode on the display section 8. This display section 8 is divided into an upper stage and a lower stage.
The upper row shows a failure display section 8A that displays the message "Koshiyouari" indicating that a failure has occurred, a number display section 8B that displays the total number of failures that occurred during one round of execution of the user program, and a control object that has exhibited an abnormal situation. The number display part 8C displays a number, and the number display part 8C has a symbol indicating an abnormality flag.
FR and its number N are displayed, and this number N is automatically and repeatedly displayed in order at regular intervals.
Further, the lower part is a message display section 8D that displays the message corresponding to the number N in katakana, and this message display section 8D is in this embodiment.
16 katakana characters can be displayed, and these 16 katakana characters are arbitrarily set in the message memory 6 in the form of a code by the user using the numeric keypad described above, and in the example shown, they correspond to the abnormal flag FR01. Indicates that the message is "conveyor motor transfer". The display modes of the failure display section 8A and the number display section 8b remain unchanged until they are reset using the reset switch key RST, and the display modes of the number display section 8C and the message display section 8D are automatically set at a fixed interval. will be updated and displayed.

第4図は、CPU5がこの発明に係る各種の表
示制御を実行するために、ワーキングメモリ10
に設けられるフラグ等を示すものである。このワ
ーキングメモリ10には、上記命令実行手段の動
作中において、上記故障診断プログラムの命令を
実行することにより、任意の入出力データ間の任
意の論理演算の結果でもつて個々にセツトまたは
リセツトされ、各別の番号N(N=0〜M)が割
当られたM個の異常フラグFR(N)と、上記命令
実行手段に一巡実行毎に異常フラグFR(N)をN
=1からN=MまでアドレツシングしてFR(N)
=1にたつている異常フラグを検出するととも
に、CPU5が定時割込を受付ける度毎に、FR
(N)=1になつている異常フラグの番号Nを若い
順から表示対象レジスタDCRに格納させ、これ
を順次上記番号表示部8Cに自動的に繰り返し表
示させるためのアドレスカウンタADCと、上記
アドレツシングの結果、FR(N)=1になつてい
る異常フラグFR(N)が検出された時セツトされ
て上記故障表示部8にメツセージ「コシヨウア
リ」を表示させ、上記リセツトスイツチキー
RSTの操作でリセツトされる故障表示フラグF
と、上記アドレツシングの結果検出されたFR
(N)=1になつている異常フラグの総数を検出
し、その個数を上記個数表示部8Bに表示させる
エラーカウンタERCと、上記ホールドスイツチ
キーHLDの操作毎に反転動作をし、CPU5が定
時割込を受付けたとき、番号表示部8Cとメツセ
ージ表示部8Dとの表示を更新表示するか否かの
制御を行なうたのホールドフラグHFと、番号表
示部8Cに表示されている異常フラグの番号に対
応してメツセージ表示部8Dに表示すべきメツセ
ージを格納するメツセージ記憶部WDM(この実
施例では16ワードのメモリ領域が用意されてい
る)と、CPU5が定時割込を受付ける度毎に、
番号表示部8Cに表示される異常フラグの番号に
対応して、メツセージ表示部8Dに表示すべきメ
ツセージが格納されている上記メツセージメモリ
6のアドレスを指定して、これをアドレツシング
し、上記メツセージ記憶部WDMに16ワードの片
仮名コードを転送するための転送ワードカウンタ
TWCとがそれぞれ設けられている。
FIG. 4 shows a working memory 10 in which the CPU 5 executes various display controls according to the present invention.
This shows the flags etc. set in the . During the operation of the instruction execution means, the results of arbitrary logical operations between arbitrary input and output data are individually set or reset in the working memory 10 by executing the instructions of the fault diagnosis program. M abnormality flags FR(N) to which different numbers N (N=0 to M) are assigned, and abnormality flags FR(N) are sent to the above-mentioned instruction execution means every round of execution.
Addressing from =1 to N=M and FR(N)
In addition to detecting the abnormality flag that is set to =1, the FR
An address counter ADC for storing the numbers N of abnormality flags with (N) = 1 in the display target register DCR in descending order and automatically repeatedly displaying them in the number display section 8C in order; As a result, when the abnormality flag FR(N) with FR(N) = 1 is detected, it is set to display the message "Failure" on the fault display section 8 and press the reset switch key.
Failure display flag F reset by RST operation
and the FR detected as a result of the above addressing
The error counter ERC detects the total number of abnormality flags with (N) = 1 and displays the number on the number display section 8B, and the CPU 5 performs a reversal operation every time the hold switch key HLD is operated. When an interrupt is accepted, the hold flag HF controls whether or not to update the display on the number display section 8C and the message display section 8D, and the number of the abnormality flag displayed on the number display section 8C. A message storage unit WDM (in this embodiment, a 16-word memory area is prepared) stores a message to be displayed on the message display unit 8D corresponding to the message display unit 8D, and each time the CPU 5 receives a scheduled interrupt,
Corresponding to the number of the abnormality flag displayed on the number display section 8C, the address of the message memory 6 storing the message to be displayed on the message display section 8D is designated and addressed, and the message storage is performed. Transfer word counter for transferring 16 words of katakana code to part WDM
TWC and TWC are provided respectively.

第5図は、ユーザプログラムの一部である故障
診断プログラムの一例を継電器ラダーの時の形式
で表現したものである。
FIG. 5 shows an example of a fault diagnosis program that is part of the user program, expressed in the form of a relay ladder.

図中Aの部分は、LDX1,ANDX2,LDX
3,ORLD,ANDX4の各論理演算を順次実行
したのちFAL01を実行し、演算レジスタの内容
によつて異常フラグFR(01)がセツトまたはリ
セツトされることを示し、またBの部分は、この
FAL01の実行結果がOUT10の入力条件にな
つており、これによつて例えばブザーを駆動する
ことを示している。このように、この発明に係る
ユーザプログラムには任意にFAL命令が設けら
れている。
Part A in the diagram is LDX1, ANDX2, LDX
After sequentially executing each logical operation of 3, ORLD, ANDX4, FAL01 is executed, indicating that the abnormality flag FR (01) is set or reset depending on the contents of the operation register.
The execution result of FAL01 is the input condition for OUT10, which indicates that, for example, a buzzer will be driven. In this way, the user program according to the present invention is optionally provided with the FAL instruction.

第6図A,Bは、CPU5によつて実行される
システムプログラムの概要をこの発明に係る表示
制御動作を中心にして示すフローチヤートで、同
図Aはユーザプログラムに一巡実行の過程におけ
る異常検出動作を、また同図bは定時割込によつ
て番号表示部8Cに各異常フラグFR(N)の番号
Nと、メツセージ表示部8Dにその番号Nに対応
したメツセージをそれぞれ自動的に更新して、こ
れを繰り返し表示する表示制御動作をそれぞれ示
している。
6A and 6B are flowcharts showing an overview of the system program executed by the CPU 5, focusing on the display control operation according to the present invention, and FIG. The operation is also shown in FIG. 2B, which automatically updates the number N of each abnormal flag FR(N) in the number display section 8C and the message corresponding to the number N in the message display section 8D by a scheduled interrupt. and display control operations for repeatedly displaying this.

同図Aにおいて、最初のステツプ100では、電
源投入を受けて周知の各種イニシヤル処理が行な
われ、表示部8の各表示およびワーキングメモリ
10の各フラグやカウン等がリセツトされる。
In FIG. 1A, in the first step 100, various well-known initial processes are performed upon power-on, and each display on the display section 8 and each flag, counter, etc. in the working memory 10 are reset.

ステツプ101では、入力回路2に与えられてい
る外部入力信号を入出力メモリ4の所定エリアに
取込む入力更新動作を行なう。続くステツプ102
以降がユーザプログラムの実行ルーチンである。
In step 101, an input update operation is performed to input the external input signal applied to the input circuit 2 into a predetermined area of the input/output memory 4. Next step 102
The following is the user program execution routine.

まずステツプ102ではユーザプログラムメモリ
1の先頭アドレスから1命令を読出す。読出した
ユーザ命令がFAL命令やEND命令の何れでもな
い場合には、ステツプ103→104→105と進み、こ
のステツプ105でその命令を実行し、ステツプ109
でプログラムカウンタを歩進してステツプ102に
戻り、ユーザプログラムメモリ1から次のユーザ
命令を読出す。以上の動作が繰り返し高速で実行
され、各ユーザ命令による演算結果が演算レジス
タに残る。
First, in step 102, one instruction is read from the starting address of the user program memory 1. If the read user instruction is neither a FAL instruction nor an END instruction, the process proceeds to steps 103→104→105, executes the instruction in step 105, and then proceeds to step 109.
Then, the program counter is incremented and the process returns to step 102, where the next user command is read from the user program memory 1. The above operations are repeatedly executed at high speed, and the operation results of each user instruction remain in the operation register.

そして、ステツプ102で読出されたユーザ命令
がFAL命令であると、ステツプ103でこれが検出
され、ステツプ106に進む。ステツプ106はFAL
命令に係る制御対象に異常があつたか否かを判断
するルーチンで、それは演算レジスタの内容で判
断される。つまり、演算結果が1であればステツ
プ107に進み、異常表示フラグFR(N)をセツト
し、また演算結果が1でなければ、ステツプ108
で異常表示フラグFR(N)をリセツトする。次い
で、ステツプ109でプログラムカウンタを歩進し
てステツプ102に戻り、次のユーザ命令をユーザ
プログラムメモリ1から読出す。
If the user command read in step 102 is a FAL command, this is detected in step 103 and the process advances to step 106. Step 106 is FAL
This is a routine that determines whether or not there is an abnormality in the control target related to the instruction, and this is determined based on the contents of the operation register. That is, if the calculation result is 1, proceed to step 107 and set the abnormality display flag FR(N), and if the calculation result is not 1, proceed to step 108.
Reset the abnormality display flag FR(N) with . Then, in step 109, the program counter is incremented and the process returns to step 102, where the next user command is read from the user program memory 1.

つまり、ユーザプログラムの最後に挿入されて
いるEND命令がステツプ104で検出されるまで、
ステツプ102からステツプ109まで繰り返し高速で
実行され、所定の論理演算が行なわれるととも
に、適宜に実行されるFAL命令によつて論理異
常が検出される。以上が命令実行手段の動作であ
る。
In other words, until the END instruction inserted at the end of the user program is detected in step 104,
Steps 102 to 109 are repeatedly executed at high speed, predetermined logical operations are performed, and logical abnormalities are detected by the FAL instruction executed as appropriate. The above is the operation of the instruction execution means.

次いで、ステツプ104でEND命令が検出される
と、ステツプ110で命令実行手段の動作によつて
実行された各命令の実行結果に従つて入出力メモ
リ4の出力データを書換え(出力更新手段の動
作)、ステツプ111でプログラムカウンタをリセツ
トすることでユーザプログラムの周知の一巡実行
が完了する。
Next, when the END command is detected in step 104, the output data of the input/output memory 4 is rewritten according to the execution results of each instruction executed by the operation of the instruction execution means (operation of the output update means) in step 110. ), the program counter is reset in step 111, completing the well-known round execution of the user program.

次のステツプ112では、故障表示フラグFが既
にセツトされているか否かが判断され、その結果
がNOであれば、ステツプ113から117までの各ル
ーチンが実行される。このルーチンでは、異常フ
ラグFR(N)の番号Nを0〜Mまでアドレスカウ
ンADCでアドレツシングし、FR(N)=1になつ
ている異常フラグFR(N)の個数をエラーカウン
タERCで計数する。
In the next step 112, it is determined whether the failure display flag F has already been set, and if the result is NO, each routine from steps 113 to 117 is executed. In this routine, the address counter ADC addresses the number N of the abnormality flag FR(N) from 0 to M, and the number of abnormality flags FR(N) with FR(N) = 1 is counted using the error counter ERC. .

その結果、ステツプ118でエラーカウンタERC
が難も計数していなければステツプ101に戻り、
ユーザプログラムを実行する準備が行なわれる。
そして、エラーカウンタERCがFR(N)=1であ
る異常フラグを検出していれば、ステツプ119→
120と進み、故障表示フラグFをセツトするとも
もに、表示部8の故障表示ランプ8Aを点灯し、
個数表示部8BにエラーカウンタERCの計数値
を表示する。次いでステツプ121でアドレスカウ
ンタADCとホールドフラグHFをリセツトし、ス
テツプ122の操作員のスイツチ操作に備える。な
お、ステツプ112の判断結果、YESであれば同様
にステツプ122に進む。
As a result, in step 118 the error counter ERC
However, if it is not counted, return to step 101.
Preparations are made to execute the user program.
Then, if the error counter ERC detects an abnormality flag with FR(N)=1, step 119→
120, sets the failure indication flag F, and lights up the failure indication lamp 8A of the display section 8.
The counted value of the error counter ERC is displayed on the number display section 8B. Next, in step 121, the address counter ADC and the hold flag HF are reset in preparation for the operator's switch operation in step 122. Note that if the determination result in step 112 is YES, the process similarly proceeds to step 122.

ステツプ122はホールドスイツチHSWが操作さ
れたか否かを検出するルーチンで、ホールドスイ
ツチHSWが操作されると、ステツプ123でホール
ドフラグHFの状態がチエツクされ、ホールドフ
ラグHFがリセツトされていればステツプ124で
それをセツトし、またホールドフラグHFがセツ
トされていれば、ステツプ125でこれをリセツト
する。つまり、ステツプ122でホールドスイツチ
HSWの操作が検出される度に、ホールドフラグ
HFは反転動作をさせられる。このホールドスイ
ツチHSWの操作は、後述の定時割込処理で表示
される異常フラグFR(N)の番号の自動更新表示
を停止させ、同一番号を継続表示にするか否かを
操作員で判断して行なうものである。
Step 122 is a routine to detect whether or not the hold switch HSW has been operated. When the hold switch HSW is operated, the state of the hold flag HF is checked in step 123, and if the hold flag HF has been reset, the routine returns to step 124. If the hold flag HF is set, it is reset in step 125. In other words, in step 122 the hold switch is
Hold flag every time HSW operation is detected
HF is made to operate in reverse. The operation of this hold switch HSW stops the automatic update display of the abnormality flag FR (N) number displayed in the scheduled interrupt processing described later, and the operator decides whether or not to continue displaying the same number. This is what we do.

次のステツプ126はリセツトスイツチRSWが操
作されたか否かを判断するルーチンで、次のステ
ツプ127に進み、上記各種フラグ等のリセツト処
理が行なわれ、ステツプ101に戻る。
The next step 126 is a routine for determining whether or not the reset switch RSW has been operated, and the process advances to the next step 127, where the various flags and the like are reset, and the process returns to step 101.

次に同図Bにおいて、CPU5が定時割込の中
の1つの割込を受付けると、まずステツプ130で
故障表示フラグFがセツトされているか否かを判
断する。その判断結果がNOであれば、当該装置
の制御対象が正常であるから、CPU5は割込受
付け前のプログラムに復帰する。また、その判断
結果がYESであればステツプ131でホールドフラ
グHFの状態をチエツクする。その結果、ホール
ドフラグHFがHF=0であればステツプ132→
133→134→131→132の各ルーチンが実行され、ア
ドレスカウンタADCのアドレツシングによつて
FR(N)=1になつている異常フラグの中で一番
若い番号を検出し、ステツプ135でその番号Nを
表示対象レジスタDCRにセツトするとともに、
ステツプ136でその番号を番号表示部8Cに表示
し、ステツプ137でアドレスカウンタADCを歩進
する。次いでステツプ138でその番号に対応した
メツセージが格納されているメツセージメモリ
(MGM)6のアドレスを指定するとともに、ス
テツプ139で転送ワードカウンタTWCをリセツト
し、ステツプ140→141→142の各ルーチンによつ
て転送ワードカウンタTWCを更新しながらメツ
セージ記憶部WDMに片仮名コードで構成さるメ
ツセージの各ワードを16ワードまで転送する。そ
して、メツセージ記憶部WDMに転送された所定
のメツセージをステツプ143でメツセージ表示部
8Dに表示し、CPU5は割込受付前のプログラ
ムに復帰する。
Next, in FIG. 5B, when the CPU 5 receives one of the scheduled interrupts, it first determines in step 130 whether or not the failure display flag F is set. If the determination result is NO, the control target of the device is normal, and the CPU 5 returns to the program before accepting the interrupt. Further, if the judgment result is YES, the state of the hold flag HF is checked in step 131. As a result, if the hold flag HF is HF=0, step 132→
The routines 133 → 134 → 131 → 132 are executed, and the address counter ADC addresses
The lowest number among the abnormality flags with FR(N)=1 is detected, and in step 135 that number N is set in the display target register DCR.
In step 136, the number is displayed on the number display section 8C, and in step 137, the address counter ADC is incremented. Next, in step 138, the address of the message memory (MGM) 6 where the message corresponding to that number is stored is specified, and in step 139, the transfer word counter TWC is reset, and the routines of steps 140→141→142 are executed. While updating the transfer word counter TWC, each word of the message consisting of katakana codes is transferred to the message storage unit WDM up to 16 words. Then, in step 143, the predetermined message transferred to the message storage section WDM is displayed on the message display section 8D, and the CPU 5 returns to the program before accepting the interrupt.

CPU5が次の割込を受付けると、ステツプ130
を介してステツプ131に進む。その結果ホールド
フラグHFがHF=1であれば、番号表示部8C
とメツセージ表示部8Dにそれぞれ表示されてい
る番号と、それに対応するメツセージを更新する
ことなく、CPU5は割込受付前のプログラムに
復帰する。そして、ホールドフラグHFがHF=
0であれば、ステツプ132→133→134→131→132
の各ルーチンの実行によつて、FR(N)=1にな
つている異常フラグのうち、前回表示した異常フ
ラグの次に若い番号を検出し、その番号をステツ
プ135、136で番号表示部8Cに表示するととも
に、ステツプ138から143までの各ルーチンによつ
て所定のメツセージがメツセージ表示部8Dに表
示される。
When CPU5 accepts the next interrupt, step 130
Proceed to step 131 via . As a result, if the hold flag HF is HF=1, number display section 8C
The CPU 5 returns to the program before accepting the interrupt without updating the numbers displayed on the message display section 8D and the corresponding messages. And hold flag HF is HF=
If it is 0, step 132 → 133 → 134 → 131 → 132
By executing each routine, the number next to the last displayed abnormality flag is detected among the abnormality flags with FR(N)=1, and that number is displayed on the number display section 8C in steps 135 and 136. At the same time, a predetermined message is displayed on the message display section 8D by each routine from steps 138 to 143.

そして、ステツプ134でFR(N)=1になつてい
る異常フラグの全数が全て検出されると、ステツ
プ144でアドレスカウンタADCをリセツトとし、
ステツプ131に戻る。
When all the abnormality flags with FR(N)=1 are detected in step 134, the address counter ADC is reset in step 144.
Return to step 131.

以上のようにCPU5が定時割込を受付ける度
毎に番号表示部8Cには、セツトされている異常
フラグFR(N)の番号が若い順に自動的に更新さ
れて表示され、それが繰り返されるとともに、メ
ツセージ表示部8Dには異常フラグFR(N)の番
号に対応したメツセージを同様に自動更新されて
繰り返し表示される。また、ホールドスイツチキ
ーHLDの操作によつて、番号表示部8Cに表示
される番号およびメツセージ表示部8Dに表示さ
れるメツセージは自動更新が停止され、同一の番
号それに対応した同一のメツセージが継続して表
示される。
As described above, each time the CPU 5 accepts a scheduled interrupt, the numbers of the abnormality flags FR(N) that have been set are automatically updated and displayed on the number display section 8C in ascending order of the number, and this is repeated. , the message corresponding to the number of the abnormality flag FR(N) is similarly automatically updated and repeatedly displayed on the message display section 8D. In addition, by operating the hold switch key HLD, automatic updating of the number displayed on the number display section 8C and the message displayed on the message display section 8D is stopped, and the same message corresponding to the same number continues. will be displayed.

以上詳細に説明したように、この発明によれ
ば、ユーザプログラムの一部としてユーザプログ
ラムメモリに任意に設定された故障診断プログラ
ムを実行することにより、任意の入出力データ間
の任意の論理演算の結果でもつて、個々にセツト
またはリセツトされ、各別の番号が割当られた複
数の異常フラグを有するワーキングメモリと、 ユーザが上記異常フラグの各番号に対応つけて
制御対象の種類やそれに対して取るべき処置等の
任意のメツセージをメツセージメモリに設定する
メツセージ設定手段と、 上記ユーザプログラム内の故障診断プログラム
により異常を検出して異常フラグをセツトする故
障診断手段と、 上記故障診断手段によりセツトされている異常
フラグを検出する検出手段と、 上記検出手段により異常フラグがセツトされて
いることを検出したとき、予め上記メツセージ設
定手段によりメツセージメモリに設定されたメツ
セージのうちセツトされている異常フラグに対応
するメツセージを読み出して表示する表示手段と
を備えたので、ユーザサイドでセツトするユーザ
プログラムによつて異常フラグのセツトが自由に
行なえ、しかも異常フラグの各番号に対応つけて
任意のメツセージを設定できるようになり、した
がつて、たとえば故障が発生した場合に、故障箇
所がユーザサイドに適した情報で即座に認識で
き、かつ、その故障箇所に対応して取るべき処理
を表示手段で確認できるとともに、その表示手段
に表示されたメツセージを見れば、熟練者でなく
ても容易に故障等の対応ができるので、その分ユ
ーザサイドの使い勝手の向上を図ることができ
る。
As described in detail above, according to the present invention, by executing a fault diagnosis program arbitrarily set in the user program memory as part of the user program, any logical operation between any input and output data can be performed. As a result, there is a working memory that has a plurality of abnormality flags that are individually set or reset and each assigned a different number, and a user associates each of the abnormality flag numbers with the type of control target and the actions to be taken against it. a message setting means for setting an arbitrary message such as what action should be taken in the message memory; a failure diagnosis means for detecting an abnormality and setting an abnormality flag by a failure diagnosis program in the user program; a detection means for detecting an abnormality flag that is set in the message memory; Since the system is equipped with a display means for reading out and displaying messages to be displayed, abnormality flags can be set freely by a user program set on the user side, and any message can be set in association with each abnormality flag number. Therefore, when a failure occurs, for example, the failure location can be immediately recognized using information suitable for the user side, and the actions to be taken in response to the failure location can be confirmed on the display means. By looking at the message displayed on the display means, even non-experts can easily deal with failures, etc., thereby improving usability on the user side.

また、従来の如く条件照合トレースを行うこと
なく異常が発生した制御対象の種類やそれに対し
て取るべき処置等がメツセージの形で表示される
ので、条件照合トレース回路および条件照合トレ
ースの処理手順を記憶する記憶回路(ROM)が
不要となり、従つて低コスト化、軽量化および省
スペース化を図ることができる。
In addition, the type of control target in which an abnormality has occurred and the measures to be taken in response to it are displayed in the form of a message, without performing condition matching tracing as in the past, so you can easily understand the condition matching trace circuit and the processing procedure of condition matching tracing. A memory circuit (ROM) for storing data is not required, and therefore cost reduction, weight reduction, and space saving can be achieved.

また、ユーザプログラムの一部として、ユーザ
プログラム設定された故障診断プログラムにより
異常を検出するため、入出力の変更があつてもユ
ーザプログラムメモリの変更により異常を検出す
る処理手順の変更を容易に行うことができるの
で、使い勝手の優れたプログラマブル・コントロ
ーラを提供できる等の効果を有する。
In addition, as part of the user program, abnormalities are detected by a fault diagnosis program set by the user program, so even if input/output is changed, the processing procedure for detecting abnormalities can be easily changed by changing the user program memory. Therefore, it is possible to provide a programmable controller that is easy to use.

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

第1図はこの発明に係るプログラマブル・コン
トローラの概略構成を示すブロツク図、第2図は
キーボードのキー配列を示す概略図、第3図は表
示部の表示態様を示す概略図、第4図はワーキン
グメモリに設けられるこの発明に係るフラグ等を
示す概略図、第5図はこの発明に係る故障診断プ
ログラムを継電器ラダー図の形式で示す概略図、
第6図A,Bは上記プログラマブル・コントロー
ラのこの発明に係る表示制御動作の概要を示すフ
ローチヤートで、同図Aはユーザプログラム一巡
実行における異常検出動作を、また同図Bは定時
割込によつて異常フラグの各番号とその番号に対
応した各メツセージを自動的に更新してこれを繰
り返し表示する表示制御動作をそれぞれ示してい
る。 1……ユーザプログラムメモリ、2……入力回
路、3……出力回路、4……入出力メモリ、5…
…CPU、6……メツセージメモリ、7……キー
ボード、8……表示部、8D……メツセージ表示
部、FR(N)……異常フラグ、ADC……アドレ
スカウンタ、ERC……エラーカウンタ、DCR…
…表示対象レジスタ、F……故障表示フラグ、
HF……ホールドフラグ、TWC……転送ワード
カウンタ、WDM……メツセージ記憶部。
FIG. 1 is a block diagram showing the schematic configuration of a programmable controller according to the present invention, FIG. 2 is a schematic diagram showing the key arrangement of the keyboard, FIG. 3 is a schematic diagram showing the display mode of the display section, and FIG. A schematic diagram showing flags etc. according to the present invention provided in the working memory, FIG. 5 is a schematic diagram showing a fault diagnosis program according to the present invention in the form of a relay ladder diagram,
FIGS. 6A and 6B are flowcharts showing an overview of the display control operation of the programmable controller according to the present invention, in which FIG. 6A shows the abnormality detection operation during one round of user program execution, and FIG. Therefore, each number of the abnormality flag and each message corresponding to the number are automatically updated and the display control operation for repeatedly displaying the same is shown. 1... User program memory, 2... Input circuit, 3... Output circuit, 4... Input/output memory, 5...
...CPU, 6...Message memory, 7...Keyboard, 8...Display section, 8D...Message display section, FR(N)...Error flag, ADC...Address counter, ERC...Error counter, DCR...
...Display target register, F...Failure display flag,
HF...Hold flag, TWC...Transfer word counter, WDM...Message storage unit.

Claims (1)

【特許請求の範囲】 1 ユーザプログラムが格納されるユーザプログ
ラムメモリと、外部入力信号が与えられる入力回
路と、外部出力信号を送出する出力回路と、上記
入力回路および出力回路に対応した入出力データ
のバツフアメモリとなる入出力メモリと、上記ユ
ーザプログラムの各命令を順次高速に実行し、上
記入出力メモリのデータに基づいて演算処理を
し、その処理結果で上記入出力メモリの出力デー
タを書換える命令実行手段と、上記入力回路の入
力データを上記入出力メモリの所定エリア書込む
入力更新手段と、上記入出力メモリの所定エリア
の出力データを上記出力回路にセツトする出力更
新手段とを有するプログラマブル・コントローラ
において、 ユーザプログラムの一部としてユーザプログラ
ムメモリに任意に設定された故障診断プログラム
を実行することにより、任意の入出力データ間の
任意の論理演算の結果でもつて、個々にセツトま
たはリセツトされ、各別の番号が割当られた複数
の異常フラグを有するワーキングメモリと、 ユーザが上記異常フラグの各番号に対応つけて
制御対象の種類やそれに対して取るべき処置等の
任意のメツセージをメツセージメモリに設定する
メツセージ設定手段と、 上記ユーザプログラム内の故障診断プログラム
により異常を検出して異常フラグをセツトする故
障診断手段と、 上記故障診断手段によりセツトされている異常
フラグを検出する検出手段と、 上記検出手段により異常フラグがセツトされて
いることを検出したとき、予め上記メツセージ設
定手段によりメツセージメモリに設定されたメツ
セージのうちセツトされている異常フラグに対応
するメツセージを読み出して表示する表示手段
と、 を備えたことを特徴とするプログラマブル・コン
トローラ。
[Scope of Claims] 1. A user program memory in which a user program is stored, an input circuit to which an external input signal is applied, an output circuit to send out an external output signal, and input/output data corresponding to the input circuit and output circuit. The input/output memory serves as a buffer memory, and each instruction of the above user program is executed in sequence at high speed, arithmetic processing is performed based on the data of the above input/output memory, and the output data of the above input/output memory is rewritten with the processing result. A programmable device having an instruction execution means, an input updating means for writing input data of the input circuit to a predetermined area of the input/output memory, and an output updating means for setting output data of the predetermined area of the input/output memory to the output circuit. - In the controller, by executing a fault diagnosis program arbitrarily set in the user program memory as part of the user program, the results of any logical operation between any input/output data can be individually set or reset. , a working memory which has a plurality of abnormality flags to which different numbers are assigned, and a message memory in which the user can store arbitrary messages such as the type of control object and the action to be taken on it in association with each number of the abnormality flags. a message setting means for setting an abnormality flag by a fault diagnosis program in the user program; a detection means for detecting an abnormality flag set by the fault diagnosis means; a display means for reading out and displaying a message corresponding to the set abnormal flag from among the messages set in advance in the message memory by the message setting means when the detecting means detects that the abnormal flag is set; A programmable controller characterized by being equipped with the following.
JP57042337A 1982-02-19 1982-03-17 Programmable controller Granted JPS58159109A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP57042337A JPS58159109A (en) 1982-03-17 1982-03-17 Programmable controller
US06/467,377 US4592053A (en) 1982-02-19 1983-02-17 Programmable controller
DE3305807A DE3305807A1 (en) 1982-02-19 1983-02-19 PROGRAMMABLE CONTROL UNIT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57042337A JPS58159109A (en) 1982-03-17 1982-03-17 Programmable controller

Publications (2)

Publication Number Publication Date
JPS58159109A JPS58159109A (en) 1983-09-21
JPH0411881B2 true JPH0411881B2 (en) 1992-03-02

Family

ID=12633192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57042337A Granted JPS58159109A (en) 1982-02-19 1982-03-17 Programmable controller

Country Status (1)

Country Link
JP (1) JPS58159109A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63188205A (en) * 1987-01-31 1988-08-03 Fuji Electric Co Ltd Programmable controller system
JPH02253307A (en) * 1989-03-27 1990-10-12 Sharp Corp Fault diagnosing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5745611A (en) * 1980-09-01 1982-03-15 Yaskawa Electric Mfg Co Ltd Maintenance display device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5745611A (en) * 1980-09-01 1982-03-15 Yaskawa Electric Mfg Co Ltd Maintenance display device

Also Published As

Publication number Publication date
JPS58159109A (en) 1983-09-21

Similar Documents

Publication Publication Date Title
US4592053A (en) Programmable controller
JPS60262204A (en) Programmable controller
WO1991001197A1 (en) Machine operation history display method
EP0148951B1 (en) System for checking abnormality in programmable controller
JPH0411881B2 (en)
JPS63163932A (en) System monitoring system for control computer
JPS58144207A (en) Programmable controller
JP3310481B2 (en) Test mode execution device
JPS58158715A (en) Programmable controller
JPS6184712A (en) Programmable controller
JPH0430799B2 (en)
JPS5894011A (en) Programmable controller
KR100238663B1 (en) Method of self dignosis for dual robot system
JPH0152762B2 (en)
JPH10127942A (en) Error content display device for game machine
WO1990007739A1 (en) Control method for robot
JPS57187706A (en) Online monitoring system of sequence controller
JPH0413728B2 (en)
JPS5833758A (en) Programmable controller
JP2635777B2 (en) Programmable controller
JPS59205613A (en) Sequence monitor device
JPH11282721A (en) Method and device for monitoring sequence program
JPS6286406A (en) Programmable controller
JPH01162094A (en) Key telephone system
JPS631630B2 (en)