JPH04330532A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH04330532A JPH04330532A JP3100936A JP10093691A JPH04330532A JP H04330532 A JPH04330532 A JP H04330532A JP 3100936 A JP3100936 A JP 3100936A JP 10093691 A JP10093691 A JP 10093691A JP H04330532 A JPH04330532 A JP H04330532A
- Authority
- JP
- Japan
- Prior art keywords
- diagnostic
- processing
- program
- executed
- programmable controller
- 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
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Programmable Controllers (AREA)
- Executing Machine-Instructions (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【0001】0001
【産業上の利用分野】本発明は、電子機器を自動制御す
るプログラマブルコントローラに関し、詳しくは装置の
故障診断処理を自動的に実行するプログラマブルコント
ローラに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller that automatically controls electronic equipment, and more particularly to a programmable controller that automatically performs failure diagnosis processing for equipment.
【0002】0002
【従来の技術】従来のプログラマブルコントローラはユ
ーザの作成したシーケンスプログラムを演算実行するこ
とにより電子機器の自動制御を行っている。この演算機
能を用いて、故障診断プログラムを実行し、プログラマ
ブルコントローラ装置内の構成回路の故障の有無の判定
および故障内容の識別等の故障診断を行うことができる
ようになってきた。2. Description of the Related Art Conventional programmable controllers automatically control electronic equipment by executing sequence programs created by users. Using this calculation function, it has become possible to execute a fault diagnosis program and perform fault diagnosis such as determining the presence or absence of a fault in the component circuits within the programmable controller device and identifying the details of the fault.
【0003】故障診断には、ユーザプログラムメモリの
中の記憶情報の脱落チェック処理,サムチェック処理,
バッテリ電圧チェック処理および入出力機器の故障,脱
落チェック処理が挙げられる。[0003]Fault diagnosis includes checking for omissions of information stored in the user program memory, sum checking,
Examples include battery voltage check processing and input/output device failure/dropout check processing.
【0004】故障診断を自動的に行うために、プログラ
マブルコントローラはシーケンスプログラムの実行を終
了した後この故障診断プログラムを実行している。In order to automatically perform fault diagnosis, the programmable controller executes the fault diagnosis program after completing the execution of the sequence program.
【0005】しかしながらプログラマブルコントローラ
が多機能化し、接続する周辺機器の内容も変化すると、
故障診断プログラムもユーザ毎に定められたプログラマ
ブルコントローラの仕様に合わせ作成しなければならな
いという不具合が生じていた。However, as programmable controllers become more multifunctional and the contents of connected peripherals change,
A problem has arisen in that the fault diagnosis program must also be created in accordance with the specifications of the programmable controller determined by each user.
【0006】このような不具合を解消するために、本願
出願人は故障診断プログラムを故障の種類毎に分割し、
ユーザの指示入力する故障診断処理のみを実行させる提
案を行っている。[0006] In order to eliminate such problems, the applicant of the present application divided the fault diagnosis program for each type of fault.
We are proposing to execute only the failure diagnosis process that is input by the user's instructions.
【0007】この提案では故障診断の実行の要否を情報
テーブルの形態で記憶し、自動診断を実行する毎にその
都度情報テーブルを参照し、実行“要”の故障診断処理
を決定している。[0007] In this proposal, the necessity of executing a fault diagnosis is stored in the form of an information table, and each time an automatic diagnosis is executed, the information table is referenced to determine which fault diagnosis process is "required" to be executed. .
【0008】[0008]
【発明が解決しようとする課題】しかしながら一定周期
でシーケンスプログラムおよび診断プログラムを実行さ
せる場合、周期に制限があり、故障診断処理についても
できるだけ短時間で終了させることが望まれている。上
記提案では、故障診断プログラムの処理時間の短縮化に
おいてなお、改良の余地があった。However, when a sequence program and a diagnostic program are executed at a constant cycle, there is a limit to the cycle, and it is desired that the failure diagnosis process be completed in as short a time as possible. In the above proposal, there is still room for improvement in reducing the processing time of the failure diagnosis program.
【0009】そこで、本発明の目的は、このような点に
鑑みて、所望の診断処理を選択でき、かつ、その処理時
間を短縮化することの可能なプログラマブルコントロー
ラを提供することにある。SUMMARY OF THE INVENTION In view of these points, an object of the present invention is to provide a programmable controller that can select a desired diagnostic process and shorten the processing time.
【0010】0010
【課題を解決するための手段】このような目的を達成す
るために、本発明の第1形態は、複数の診断処理プログ
ラムを演算処理することにより、装置内の複数の構成機
器についての故障診断を行うプログラマブルコントロー
ラにおいて、前記複数の診断処理プログラムの中の1以
上の診断処理プログラムについての組み合わせを複数種
予め設定し、実行対象の1以上の診断処理を指定する指
定手段と、当該指定された診断処理に対応する前記診断
プログラムの組み合わせを識別する識別手段と、当該識
別された組み合わせに従って実行対象の診断処理プログ
ラムを順次に指示する指示手段とを具えたことを特徴と
する。[Means for Solving the Problems] In order to achieve such an object, a first aspect of the present invention provides failure diagnosis for a plurality of component devices in an apparatus by processing a plurality of diagnostic processing programs. In a programmable controller that performs a programmable controller, a designating means for presetting a plurality of combinations of one or more diagnostic processing programs among the plurality of diagnostic processing programs and designating one or more diagnostic processing to be executed; The present invention is characterized in that it comprises an identifying means for identifying a combination of the diagnostic programs corresponding to a diagnostic process, and an instructing means for sequentially instructing a diagnostic processing program to be executed according to the identified combination.
【0011】本発明の第2形態は、複数の診断処理プロ
グラムを演算処理することにより、装置内の複数の構成
機器についての故障診断を行うプログラマブルコントロ
ーラにおいて、実行対象の2以上の診断処理を指定する
指定手段と、当該指定された診断処理に対応する2以上
の診断プログラムを、前記故障診断の実行に先立って1
つのプログラムに統合する統合手段と、を具えたことを
特徴とする。[0011] A second aspect of the present invention is a programmable controller that performs failure diagnosis for a plurality of component devices in a device by processing a plurality of diagnostic processing programs, and designates two or more diagnostic processing to be executed. and two or more diagnostic programs corresponding to the designated diagnostic processing, prior to execution of the failure diagnosis.
It is characterized by comprising an integration means for integrating into one program.
【0012】0012
【作用】本発明の第1形態では、実行可能な診断プログ
ラムの組み合わせを各種定めておき、ユーザが指定手段
により指定した実行対象の診断処理に対応する組み合わ
せを識別する。この識別の結果、得られる組み合わせに
従って実行すべき診断処理プログラムを指示手段が指示
して行くので、診断処理毎に実行の有無を判別する必要
はなく、診断処理の実行時間が短縮化される。[Operation] In the first embodiment of the present invention, various combinations of executable diagnostic programs are determined, and the combination corresponding to the diagnostic processing to be executed specified by the user using the specifying means is identified. As a result of this identification, the instruction means instructs the diagnostic processing program to be executed according to the obtained combination, so there is no need to determine whether or not to execute each diagnostic process, and the execution time of the diagnostic process is shortened.
【0013】本発明の第2形態では、ユーザが指定手段
により指定した診断処理についての診断プログラムを統
合して1つのプログラムにしておくことで診断プログラ
ムの実行時には実行の要否判別処理が不要となる。[0013] In the second embodiment of the present invention, the diagnostic programs for the diagnostic processing specified by the user using the specifying means are integrated into one program, so that when the diagnostic program is executed, there is no need to perform a process to determine whether execution is necessary. Become.
【0014】[0014]
【実施例】以下、図面を参照して本発明実施例を詳細に
説明する。Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
【0015】図1は本発明第1実施例の基本構成を示す
。FIG. 1 shows the basic configuration of a first embodiment of the present invention.
【0016】第1実施例のプログラマブルコントローラ
は複数の診断処理プログラムを演算処理することにより
、装置内の複数の構成機器についての故障診断を行うプ
ログラマブルコントローラである。The programmable controller of the first embodiment is a programmable controller that performs failure diagnosis for a plurality of component devices in an apparatus by processing a plurality of diagnostic processing programs.
【0017】このプログラマブルコントローラは、前記
複数の診断処理プログラムの中の1以上の診断処理プロ
グラムについての組み合わせを複数種予め設定してあり
、実行対象の1以上の診断処理を指定する指定手段11
00と、当該指定された診断処理に対応する前記診断プ
ログラムの組み合わせを識別する識別手段1200と、
当該識別された組み合わせに従って実行対象の診断処理
プログラムを順次に指示する指示手段1300とを具え
ている。This programmable controller has a plurality of combinations of one or more diagnostic processing programs among the plurality of diagnostic processing programs set in advance, and a specifying means 11 for specifying one or more diagnostic processing to be executed.
00, and identification means 1200 for identifying a combination of the diagnostic program corresponding to the specified diagnostic processing;
The apparatus further includes instruction means 1300 for sequentially instructing diagnostic processing programs to be executed according to the identified combinations.
【0018】本発明第1実施例の具体的な回路構成例を
図2に示す。FIG. 2 shows a specific example of the circuit configuration of the first embodiment of the present invention.
【0019】図2はプログラマブルコントローラの制御
系の主要部の回路構成を示す。FIG. 2 shows the circuit configuration of the main part of the control system of the programmable controller.
【0020】図2において、CPU10はシステムプロ
グラムメモリに格納された各種のプログラムを演算実行
する。In FIG. 2, a CPU 10 operates and executes various programs stored in a system program memory.
【0021】システムプログラム20には、装置全体を
制御するためのシステムプログラム,装置内の各回路の
故障診断を行う第1〜第3の診断プログラムを格納して
いる。The system program 20 stores a system program for controlling the entire device and first to third diagnostic programs for diagnosing failures of each circuit in the device.
【0022】なお、上記システムプログラムの中には図
3のイニシャル処理やベース処理および上記診断プログ
ラムを実行するための図4,図5に示すシステム制御手
順が含まれている。The system program includes the initial processing and base processing shown in FIG. 3, and the system control procedure shown in FIGS. 4 and 5 for executing the diagnostic program.
【0023】ワークメモリ30はCPU10の演算に用
いるデータを一時記憶する。The work memory 30 temporarily stores data used in calculations by the CPU 10.
【0024】ユーザプログラムメモリ40はユーザの作
成したシーケンスプログラムを格納する。The user program memory 40 stores sequence programs created by the user.
【0025】次に、プログラマブルコントローラの動作
手順を図3のフローチャートにより説明する。Next, the operating procedure of the programmable controller will be explained with reference to the flowchart shown in FIG.
【0026】電源オンによりCPU10はシステムプロ
グラムメモリ20のシステムプログラムに従って、イニ
シャル処理を実行する(図3のステップS100)。When the power is turned on, the CPU 10 executes initial processing according to the system program in the system program memory 20 (step S100 in FIG. 3).
【0027】イニシャル処理は、不図示のプログラミン
グ装置からシーケンスプログラムを受信し、ユーザプロ
グラムメモリ40に書き込む処理や、実行すべき診断処
理の種類を示す指定情報を上記プログラミング装置から
受信し、ワークメモリ30に書き込む処理が含まれてい
る。プログラミング装置が本発明の指定手段に相当する
。In the initial processing, a sequence program is received from a programming device (not shown), a process to be written into the user program memory 40, and specification information indicating the type of diagnostic process to be executed is received from the programming device, and the process is written into the work memory 30. Includes processing to write to. The programming device corresponds to the specifying means of the present invention.
【0028】本実施例の場合、実行対象の診断処理の種
類およびその個数毎に診断処理の組み合わせを予め定め
ておりその組み合わせを番号により表わす。本実施例で
は番号“1”は診断処理を全く実行しないことを示し、
番号“2”は第1診断処理のみの実行を示す。番号“3
”は第2診断処理のみの実行を示す。In this embodiment, a combination of diagnostic processes is determined in advance for each type and number of diagnostic processes to be executed, and the combinations are represented by numbers. In this embodiment, the number "1" indicates that no diagnostic processing is performed,
The number "2" indicates execution of only the first diagnostic process. Number “3”
” indicates execution of only the second diagnostic process.
【0029】番号“4”は第3診断処理のみの実行を示
す。番号“5”は第1診断処理,第2診断処理の実行を
示す。The number "4" indicates execution of only the third diagnostic process. The number "5" indicates execution of the first diagnostic process and the second diagnostic process.
【0030】番号“6”は第2診断処理,第3診断処理
の実行を示す。番号“7”は第1診断処理,第3診断処
理の実行を示す。The number "6" indicates execution of the second diagnostic process and the third diagnostic process. The number "7" indicates execution of the first diagnostic process and the third diagnostic process.
【0031】番号“8”は、第1〜第3診断処理全てを
実行することを示す。The number "8" indicates that all of the first to third diagnostic processes are executed.
【0032】イニシャル処理の後、CPU10はユーザ
プログラムメモリ40からシーケンスプログラムを読出
し、従来と同様、シーケンス演算処理を行って、制御対
象の機器に送信すべき情報信号を決定する(図3のステ
ップS200)。シーケンスプログラムの実行終了の後
、CPU10はシステム管理のためのベース処理、たと
えば制御対象機器との間で授受する入出力データ格納用
のメモリ(不図示)をリフレッシュする処理,プログラ
ミング装置との間の通信処理等および本発明に関わる診
断処理を実行する(図3のステップS300)。After the initial processing, the CPU 10 reads the sequence program from the user program memory 40, performs sequence arithmetic processing as in the conventional case, and determines the information signal to be transmitted to the device to be controlled (step S200 in FIG. 3). ). After the execution of the sequence program is completed, the CPU 10 performs base processing for system management, such as refreshing a memory (not shown) for storing input/output data exchanged with the controlled device, and processing for refreshing the memory (not shown) for storing input/output data exchanged with the controlled device. Communication processing and the like and diagnostic processing related to the present invention are executed (step S300 in FIG. 3).
【0033】この診断処理の処理手順については後述す
る。The processing procedure of this diagnostic processing will be described later.
【0034】以下、CPU10は上述のステップS20
0のシーケンスプログラムの実行処理,ステップS30
0のベース処理を電源“断”まで繰り返し実行する。[0034] Hereinafter, the CPU 10 executes the above-mentioned step S20.
0 sequence program execution process, step S30
0 base processing is repeatedly executed until the power is turned off.
【0035】上記診断処理を実行するためのシステム制
御手順を図4に示す。FIG. 4 shows a system control procedure for executing the above diagnostic processing.
【0036】このシステム制御手順には上述した番号す
なわち、実行すべき診断処理群の組み合わせについての
種類を示す番号に対応させて、これら診断プログラム群
を順次に起動させる命令(たとえば、サブルーチン実行
命令)が予め記載されている。なお、この起動命令を実
行するときのCPU10が本発明の指示手段として動作
する。This system control procedure includes an instruction (for example, a subroutine execution instruction) to sequentially start these diagnostic program groups in correspondence with the above-mentioned number, that is, a number indicating the type of combination of diagnostic processing groups to be executed. is written in advance. Note that the CPU 10 when executing this startup command operates as an instruction means of the present invention.
【0037】CPU10がこのシステム制御手順を開始
すると、まず、CPU10はイニシャル処理(図3のス
テップS100)においてワークメモリ30に格納され
ている指示情報を読出し、ユーザが要求している診断内
容を指示情報の示す番号により識別する(図4のステッ
プS301→S302)。このときのCPU10が本発
明の識別手段として動作する。When the CPU 10 starts this system control procedure, first, in the initial process (step S100 in FIG. 3), the CPU 10 reads out the instruction information stored in the work memory 30, and instructs the diagnosis content requested by the user. It is identified by the number indicated by the information (steps S301→S302 in FIG. 4). The CPU 10 at this time operates as the identification means of the present invention.
【0038】たとえば指示情報が番号“5”(V)であ
る場合、手順をステップS351へ進める。For example, if the instruction information is number "5" (V), the procedure advances to step S351.
【0039】この結果、図4に示すように、まず、第1
診断処理がプログラムに記載された起動命令により起動
される。より具体的には、システムプログラムメモリ2
0の第1診断プログラムが図5のシステム処理手順に基
き順次に終了部分まで読出され、CPU10により演算
処理される。この後、CPU10の処理手順は図4のS
352に戻り、第2診断処理が起動される。この第2診
断処理の終了の後、CPU10の制御手順は図3のベー
ス処理300に復帰する。As a result, as shown in FIG.
The diagnostic process is started by a start command written in the program. More specifically, system program memory 2
The first diagnostic program 0 is sequentially read out to the end part based on the system processing procedure shown in FIG. 5, and is processed by the CPU 10. After this, the processing procedure of the CPU 10 is S in FIG.
Returning to 352, the second diagnostic process is started. After the second diagnostic process ends, the control procedure of the CPU 10 returns to the base process 300 in FIG. 3.
【0040】以上、説明したように、本実施例ではユー
ザは実行したい診断処理の組み合わせを番号により指定
すると、プログラマブルコントローラ内のCPU10は
番号により示される診断処理プログラム群を順次に起動
させる処理手順を選択し、実行する。As explained above, in this embodiment, when the user specifies the combination of diagnostic processing that he/she wishes to execute by number, the CPU 10 in the programmable controller executes the processing procedure to sequentially start the diagnostic processing program group indicated by the number. Select and execute.
【0041】このため、ユーザの指示する診断処理の内
容の識別処理は番号識別処理1回で済む。実行の診断処
理を情報テーブルにより識別する方法では、第1の診断
プログラムについて実行の有無を情報テーブルを参照し
て決定し、実行要の場合は第1の診断プログラムを実行
する。この後、第2診断プログラムについて、実行の有
無を上記情報テーブルにより決定する。このため、診断
処理が3種ある場合は、診断処理の内容識別処理、すな
わち、情報テーブルを参照する処理は3回行なわなけれ
ばならない。[0041] Therefore, the process of identifying the content of the diagnostic process instructed by the user only needs to be performed once, including the number identification process. In the method of identifying the diagnostic process to be executed using an information table, it is determined whether or not to execute the first diagnostic program by referring to the information table, and if execution is necessary, the first diagnostic program is executed. Thereafter, whether or not to execute the second diagnostic program is determined based on the information table. Therefore, if there are three types of diagnostic processing, the content identification processing of the diagnostic processing, that is, the processing of referring to the information table, must be performed three times.
【0042】これに対し、第1実施例では診断処理の種
類の数に関わらず診断処理の種類内容は1回でよいこと
から、CPU10の演算処理時間がより短縮される。On the other hand, in the first embodiment, regardless of the number of types of diagnostic processing, the content of the type of diagnostic processing only needs to be performed once, so that the arithmetic processing time of the CPU 10 is further shortened.
【0043】次に、ユーザから各診断処理毎の実行の有
無を指定された場合、より高速な診断処理を実現する第
2実施例について説明する。Next, a second embodiment will be described which realizes faster diagnostic processing when the user specifies whether or not to execute each diagnostic processing.
【0044】第2実施例を実現するための基本構成を図
6に示す。FIG. 6 shows the basic configuration for realizing the second embodiment.
【0045】第2実施例のプログラマブルコントローラ
も複数の診断処理プログラムを演算処理することにより
、装置内の複数の構成機器についての故障診断を行うプ
ログラマブルコントローラである。The programmable controller of the second embodiment is also a programmable controller that performs failure diagnosis for a plurality of component devices in the apparatus by processing a plurality of diagnostic processing programs.
【0046】このプログラマブルコントローラは、実行
対象の2以上の診断処理を指定する指定手段2100と
、当該指定された診断処理に対応する2以上の診断プロ
グラムを、前記故障診断の実行に先立って1つのプログ
ラムに統合する統合手段とを具えている。This programmable controller has a designating means 2100 for designating two or more diagnostic processes to be executed, and two or more diagnostic programs corresponding to the designated diagnostic processes, into one system prior to executing the failure diagnosis. and an integration means for integration into the program.
【0047】第2実施例の具体的な回路構成例を図7に
示す。なお、本図の説明では第1実施例と異なる点につ
いて説明することにする。A specific example of the circuit configuration of the second embodiment is shown in FIG. In the explanation of this figure, points different from the first embodiment will be explained.
【0048】図7において、ワークメモリ70はプログ
ラムエリア71とワークエリア72に分割されている。
プログラムエリア71は実行対象の統合された診断プロ
グラムを格納しておくための領域である。ワークエリア
72はCPU50の演算データの一時格納用として用い
る。プログラミング装置(本発明の指定手段)を介して
ユーザから実行を指示された診断処理については、診断
処理の種類毎に実行の要否を示すビット情報を情報テー
ブルの形態でワークエリア72に格納する。In FIG. 7, work memory 70 is divided into a program area 71 and a work area 72. The program area 71 is an area for storing an integrated diagnostic program to be executed. The work area 72 is used for temporarily storing calculation data of the CPU 50. Regarding the diagnostic processing instructed to be executed by the user via the programming device (specifying means of the present invention), bit information indicating whether execution is necessary for each type of diagnostic processing is stored in the work area 72 in the form of an information table. .
【0049】システムプログラムメモリ60には第1実
施例のように図3の処理手順を実行するためのシステム
プログラムおよび第1〜第3の診断プログラムが格納さ
れ、システムプログラムの内容が次の処理を実行するよ
うに指定されている点が第1実施例と異なる。As in the first embodiment, the system program memory 60 stores a system program and first to third diagnostic programs for executing the processing procedure shown in FIG. This differs from the first embodiment in that it is specified to be executed.
【0050】1)電源起動時等、システム運転に先立っ
て、実行予定の診断処理の種類をプログラミング装置か
ら受付け、指示された診断処理の診断プログラムをワー
クメモリ70のプログラムエリア71にCPU50によ
り複写(コピー)する。この処理を実行するためのCP
U10の処理手順を図8に示す。1) Prior to system operation, such as when power is turned on, the type of diagnostic processing to be executed is received from the programming device, and the diagnostic program for the instructed diagnostic processing is copied into the program area 71 of the work memory 70 by the CPU 50 ( make a copy. CP for executing this process
The processing procedure of U10 is shown in FIG.
【0051】2)システム運転時にはプログラムエリア
71から診断プログラムをCPU50により読出し実行
する。なお、この処理を実行するための処理手順は図5
の制御手順を用いることができる。2) During system operation, the CPU 50 reads out the diagnostic program from the program area 71 and executes it. The processing procedure for executing this process is shown in Figure 5.
A control procedure can be used.
【0052】図7の第2実施例の回路動作を説明する。The circuit operation of the second embodiment shown in FIG. 7 will be explained.
【0053】電源投入又はシステム運転起動の指示に応
じて図3のシステム処理手順がCPU50において開始
される。CPU50はまず、図8のイニシャル処理手順
に移行する。CPU50は従来同様のイニシャル処理を
実行した後、プログラミング装置から、実行対象の診断
処理の種類情報を受け付け、ワークメモリ70のワーク
エリア72に格納する(図8のステップS101)。こ
の結果、上述したようにワークエリア72では診断処理
毎に実行の要否を示すビット情報で種類情報が格納され
る。The system processing procedure shown in FIG. 3 is started in the CPU 50 in response to an instruction to turn on the power or start up the system operation. The CPU 50 first moves to the initial processing procedure shown in FIG. After the CPU 50 executes an initial process similar to the conventional one, the CPU 50 receives information on the type of diagnostic process to be executed from the programming device, and stores it in the work area 72 of the work memory 70 (step S101 in FIG. 8). As a result, as described above, type information is stored in the work area 72 as bit information indicating whether execution is necessary for each diagnostic process.
【0054】次に、CPU50は第1の診断処理につい
ての実行の要否を上記ビット情報により判別する。判別
結果が実行“要”の場合は、システムプログラムメモリ
60の第1診断プログラムを読出し、ワークメモリ70
のプログラムエリア71に書き込むことにより第1診断
プログラムを複写する。(図8のステップS102→S
103)。Next, the CPU 50 determines whether execution of the first diagnostic process is necessary or not based on the bit information. If the determination result is that execution is “necessary”, the first diagnostic program is read from the system program memory 60 and is stored in the work memory 70.
The first diagnostic program is copied by writing it in the program area 71 of the first diagnostic program. (Step S102→S in FIG. 8
103).
【0055】以下、第2診断処理,第3診断処理につい
ても実行の要否をワークエリア72の種類情報により判
別し、実行“要”の場合、その診断プログラムを、前に
記憶の診断プログラムに引き続きプログラムエリア71
に展開的にコピー記憶する(図8のステップS104〜
S106)。Hereinafter, whether or not execution of the second diagnostic process and the third diagnostic process is necessary is determined based on the type information in the work area 72, and if execution is "necessary", the diagnostic program is replaced with the previously stored diagnostic program. Continue program area 71
(step S104 in FIG. 8)
S106).
【0056】最終の診断プログラムについての実行要否
の判別処理およびコピー処理を終了すると、プログラム
エリア中の最後尾の診断プログラムの最終部分に終了コ
ードを付加し、複数の診断プログラムの統合処理を終了
する(図8のステップS108)。When the process of determining whether execution is necessary and the copying process for the final diagnostic program are completed, an end code is added to the final part of the last diagnostic program in the program area, and the process of integrating multiple diagnostic programs is completed. (Step S108 in FIG. 8).
【0057】このときのCPU50が本発明の統合手段
として動作する。The CPU 50 at this time operates as an integrating means of the present invention.
【0058】その他イニシャル処理をCPU50が実行
すると、CPU50は図3のステップS200の処理手
順に復帰し、ユーザプログラム(シーケンスプログラム
)の実行処理,ステップS300のベース処理を繰り返
し実行する。After the CPU 50 executes other initial processing, the CPU 50 returns to the processing procedure of step S200 in FIG. 3, and repeatedly executes the user program (sequence program) execution processing and the base processing of step S300.
【0059】このベース処理における診断処理の実行に
おいて、図5の制御手順に基き、CPU50は、ワーク
メモリ70のプログラムエリア71の先頭アドレスを読
出しアドレスに初期設定した後、順次に診断プログラム
のプログラム命令を読出し、プログラム命令で指示され
る診断処理を実行して行く(図5のステップS1→S2
〜S5のループ処理)。In executing the diagnostic processing in this base processing, based on the control procedure shown in FIG. and executes the diagnostic processing instructed by the program command (steps S1→S2 in FIG. 5).
-loop processing of S5).
【0060】最後尾の診断プログラムの最終部に付加さ
れた終了命令コードが読出されると(図5のステップS
3)、CPU50は図5の制御手順を終了し、図3のス
テップS300の処理手順に復帰する。When the end instruction code added to the last part of the diagnostic program at the end is read out (step S in FIG.
3), the CPU 50 ends the control procedure of FIG. 5 and returns to the processing procedure of step S300 of FIG. 3.
【0061】本実施例では、診断処理に先立って、実行
対象の診断プログラムを1つに統合するので、実際の診
断処理の実行時には診断処理の実行の要否の判別を行う
必要がなく、ループ処理内における診断処理がより短縮
される。In this embodiment, the diagnostic programs to be executed are integrated into one prior to the diagnostic processing, so there is no need to determine whether or not to execute the diagnostic processing during the actual execution of the diagnostic processing, and a loop is eliminated. Diagnostic processing within the process is further shortened.
【0062】第1,第2実施例の他に次の例が挙げられ
る。In addition to the first and second embodiments, the following examples can be cited.
【0063】1)第1実施例では、ユーザにより選択し
た診断処理群を番号情報で表わすようにしているが、番
号に限らず“A”,“B”…のような文字情報でもよい
。1) In the first embodiment, the diagnostic processing group selected by the user is represented by number information, but the information is not limited to numbers, but character information such as "A", "B", etc. may also be used.
【0064】[0064]
【発明の効果】以上、説明したように、本発明によれば
、診断処理プログラムの実行前において、実行すべき診
断処理プログラムおよびその実行順が設定されるので、
診断処理プログラムの実行処理時間が短縮される。As described above, according to the present invention, the diagnostic processing program to be executed and its execution order are set before the diagnostic processing program is executed.
The execution processing time of the diagnostic processing program is shortened.
【図1】本発明第1実施例の基本構成を示すブロック図
である。FIG. 1 is a block diagram showing the basic configuration of a first embodiment of the present invention.
【図2】本発明第1実施例の主要構成を示すブロック図
である。FIG. 2 is a block diagram showing the main configuration of the first embodiment of the present invention.
【図3】本発明第1実施例のシステム処理手順を示すフ
ローチャートである。FIG. 3 is a flowchart showing a system processing procedure according to the first embodiment of the present invention.
【図4】本発明第1実施例のシステム処理手順を示すフ
ローチャートである。FIG. 4 is a flowchart showing a system processing procedure according to the first embodiment of the present invention.
【図5】本発明第1実施例のシステム処理手順を示すフ
ローチャートである。FIG. 5 is a flowchart showing a system processing procedure according to the first embodiment of the present invention.
【図6】本発明第2実施例の基本構成を示すブロック図
である。FIG. 6 is a block diagram showing the basic configuration of a second embodiment of the present invention.
【図7】本発明第2実施例の回路構成を示すブロック図
である。FIG. 7 is a block diagram showing the circuit configuration of a second embodiment of the present invention.
【図8】本発明第2実施例のシステム処理手順を示すフ
ローチャートである。FIG. 8 is a flowchart showing a system processing procedure according to a second embodiment of the present invention.
10,50 CPU
20,60 システムプログラムメモリ30,70
ワークメモリ10,50 CPU 20,60 System program memory 30,70
work memory
Claims (2)
することにより、装置内の複数の構成機器についての故
障診断を行うプログラマブルコントローラにおいて、前
記複数の診断処理プログラムの中の1以上の診断処理プ
ログラムについての組み合わせを複数種予め設定し、実
行対象の1以上の診断処理を指定する指定手段と、当該
指定された診断処理に対応する前記診断プログラムの組
み合わせを識別する識別手段と、当該識別された組み合
わせに従って実行対象の診断処理プログラムを順次に指
示する指示手段とを具えたことを特徴とするプログラマ
ブルコントローラ。1. A programmable controller that performs failure diagnosis for a plurality of component devices in an apparatus by processing a plurality of diagnostic processing programs, wherein one or more diagnostic processing programs among the plurality of diagnostic processing programs are provided. a specifying means for presetting a plurality of combinations of and specifying one or more diagnostic processes to be executed, an identifying means for identifying a combination of the diagnostic programs corresponding to the specified diagnostic process, and the identified combination. 1. A programmable controller comprising: instruction means for sequentially instructing a diagnostic processing program to be executed according to the instructions.
することにより、装置内の複数の構成機器についての故
障診断を行うプログラマブルコントローラにおいて、実
行対象の2以上の診断処理を指定する指定手段と、当該
指定された診断処理に対応する2以上の診断プログラム
を、前記故障診断の実行に先立って1つのプログラムに
統合する統合手段と、を具えたことを特徴とするプログ
ラマブルコントローラ。2. In a programmable controller that performs failure diagnosis for a plurality of component devices in an apparatus by arithmetic processing a plurality of diagnostic processing programs, a specifying means for specifying two or more diagnostic processes to be executed; A programmable controller comprising: integrating means for integrating two or more diagnostic programs corresponding to designated diagnostic processing into one program prior to execution of the failure diagnosis.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3100936A JPH04330532A (en) | 1991-05-02 | 1991-05-02 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3100936A JPH04330532A (en) | 1991-05-02 | 1991-05-02 | Programmable controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04330532A true JPH04330532A (en) | 1992-11-18 |
Family
ID=14287240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3100936A Pending JPH04330532A (en) | 1991-05-02 | 1991-05-02 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04330532A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004234655A (en) * | 2003-01-28 | 2004-08-19 | Fisher Rosemount Syst Inc | Integrated diagnosis in process plant equipped with process control system and safety system |
JP2010102433A (en) * | 2008-10-22 | 2010-05-06 | Fuji Xerox Co Ltd | Information processing apparatus and program |
JP2010182228A (en) * | 2009-02-09 | 2010-08-19 | Fuji Xerox Co Ltd | Maintenance control apparatus, maintenance control system and maintenance control program |
-
1991
- 1991-05-02 JP JP3100936A patent/JPH04330532A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004234655A (en) * | 2003-01-28 | 2004-08-19 | Fisher Rosemount Syst Inc | Integrated diagnosis in process plant equipped with process control system and safety system |
JP2010102433A (en) * | 2008-10-22 | 2010-05-06 | Fuji Xerox Co Ltd | Information processing apparatus and program |
JP2010182228A (en) * | 2009-02-09 | 2010-08-19 | Fuji Xerox Co Ltd | Maintenance control apparatus, maintenance control system and maintenance control program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63250702A (en) | sequence controller | |
JPH04330532A (en) | Programmable controller | |
JP3341064B2 (en) | Control program creation device | |
JP3781112B2 (en) | Programmable controller system | |
JPS6238746B2 (en) | ||
JPS6348698A (en) | Memory storage control device | |
KR100376055B1 (en) | Method for downloading input/output processor kernel | |
JPH0535322A (en) | Numerical controller | |
JPH05197439A (en) | Device with function limitation by each user | |
JP2554942B2 (en) | Information processing device | |
JPH10222361A (en) | Rom program monitor device in processor of computer or the like | |
JP2668052B2 (en) | Output control method for multiple types of plotter devices | |
JPH0773049A (en) | Program simulator device | |
JPH02244358A (en) | Physical slot switching processing method for information processing equipment | |
JPH02171802A (en) | programmable controller | |
JPH02232744A (en) | Simulator configuration control method | |
JPH041805A (en) | Method and device for controlling industrial robot | |
JPH04330503A (en) | Programming device for programmable controller | |
JPH02125303A (en) | Programmable controller | |
JPH0695710A (en) | Method for changing sequence program of programmable controller | |
JPS63198129A (en) | Input data processing method in procedure | |
JPH06110506A (en) | Program controller's comment storage method | |
JPH0462409A (en) | Measurement assisting device | |
JPS6318449A (en) | Selected initial program loading system | |
JPH052251U (en) | Information processing equipment |