JP2905051B2 - Programmable controllers and peripherals - Google Patents
Programmable controllers and peripheralsInfo
- Publication number
- JP2905051B2 JP2905051B2 JP5196400A JP19640093A JP2905051B2 JP 2905051 B2 JP2905051 B2 JP 2905051B2 JP 5196400 A JP5196400 A JP 5196400A JP 19640093 A JP19640093 A JP 19640093A JP 2905051 B2 JP2905051 B2 JP 2905051B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- programmable controller
- condition
- stored
- sequence program
- 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 - Fee Related
Links
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Programmable Controllers (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、シーケンシャルファ
ンクションチャート(以下、SFCという)プログラム
の各ステップ、トランジションに使用されているデバイ
スを記憶するか、あるいはシーケンスプログラムにより
関連するデバイスをグループ化し、対応するON/OF
F状態を記憶することにより、プログラマブルコントロ
ーラにおいて制御されている装置の故障を検出するプロ
グラマブルコントローラおよび周辺装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the storage of devices used for each step and transition of a sequential function chart (hereinafter referred to as "SFC") program, or the grouping of related devices by a sequence program. ON / OF
The present invention relates to a programmable controller and a peripheral device that detect a failure of a device controlled by the programmable controller by storing an F state.
【0002】[0002]
【従来の技術】図21は、従来におけるプログラマブル
コントローラの故障診断システムの概略構成を示すブロ
ック図であり、図において、1Cは従来における構成の
プログラマブルコントローラ(PC)、3はプログラマ
ブルコントローラ1Cにより制御される制御対象、2B
はプログラマブルコントローラ1Cと接続されている周
辺装置、4は制御対象3とプログラマブルコントローラ
1Cとの間における入出力信号である。2. Description of the Related Art FIG. 21 is a block diagram showing a schematic configuration of a conventional fault diagnosis system for a programmable controller. In FIG. 21, reference numeral 1C denotes a programmable controller (PC) having a conventional configuration, and 3 denotes a controller controlled by the programmable controller 1C. Control object, 2B
Is a peripheral device connected to the programmable controller 1C, and 4 is an input / output signal between the control target 3 and the programmable controller 1C.
【0003】プログラマブルコントローラ1Cは、入出
力信号4を制御する制御実行部5と、SFCプログラム
の現在実行中におけるステップ番号を格納する実行ステ
ップテーブル5Aと、プログラマブルコントローラ1C
を制御するためのプログラム(シーケンスプログラム)
を格納する制御プログラム記憶部6と、周辺装置2Bと
の通信を行う通信部10とから構成されている。The programmable controller 1C includes a control execution unit 5 for controlling the input / output signal 4, an execution step table 5A for storing a step number of the SFC program currently being executed, and a programmable controller 1C.
For controlling the program (sequence program)
And a communication unit 10 for communicating with the peripheral device 2B.
【0004】周辺装置2Bは、プログラマブルコントロ
ーラ1Cと通信を行う通信部11と、プログラマブルコ
ントローラ1Cを制御するプログラムを作成するための
プログラム編集部12と、プログラマブルコントローラ
1の状態等を表示するモニタ部13と、画面/キー入力
部15とから構成されている。The peripheral device 2B includes a communication section 11 for communicating with the programmable controller 1C, a program editing section 12 for creating a program for controlling the programmable controller 1C, and a monitor section 13 for displaying the state of the programmable controller 1 and the like. And a screen / key input unit 15.
【0005】図22は、プログラマブルコントローラ1
Cにより制御される制御対象3の構成例を示す説明図で
ある。図において、20はクランプ、21はワーク、2
2はワーク21を加工するドリル、23はクランプ20
の上端を検出するリミットスイッチLS1、24はクラ
ンプ20の下端を検出するリミットスイッチLS0、2
5はワーク21の設定を検出するリミットスイッチLS
100、26はドリル22の左端を検出するリミットス
イッチLS10、27はドリル22の右端を検出するリ
ミットスイッチLS11、28はクランプ20を上に動
作させる信号Y1、29はクランプ20を下に動作させ
る信号Y0、29Aはドリル22を左に動作させる信号
Y10、29Bはドリル22を右に動作させる信号Y1
1である。[0005] FIG.
It is explanatory drawing which shows the example of a structure of the controlled object 3 controlled by C. In the figure, 20 is a clamp, 21 is a work, 2
2 is a drill for processing the work 21, 23 is a clamp 20
The limit switches LS1 and LS2 for detecting the upper end of the clamp 20 are limit switches LS0 and LS2 for detecting the lower end of the clamp 20, respectively.
5 is a limit switch LS for detecting the setting of the work 21.
100 and 26 are limit switches LS10 and LS11 for detecting the left end of the drill 22. 27 are limit switches LS11 and 28 for detecting the right end of the drill 22. Signals Y1 and 29 for operating the clamp 20 upward are signals for operating the clamp 20 downward. Y0 and 29A are signals Y10 and 29B for operating the drill 22 to the left, and Y1 and 29B are signals Y1 for operating the drill 22 to the right.
It is one.
【0006】図23は、制御対象3を制御するSFCプ
ログラムの構成例を示す説明図である。図23におい
て、30は図22に示した制御対象3を制御するための
SFCプログラムであり、このSFCプログラム30
は、プログラマブルコントローラ1Cの制御プログラム
記憶部6に格納されている。SFCプログラム30は、
ワーク21がセットされると、クランプ20とドリル2
2を動作させる制御プログラムである。FIG. 23 is an explanatory diagram showing a configuration example of an SFC program for controlling the control target 3. In FIG. 23, reference numeral 30 denotes an SFC program for controlling the control target 3 shown in FIG.
Are stored in the control program storage unit 6 of the programmable controller 1C. The SFC program 30
When the work 21 is set, the clamp 20 and the drill 2
2 is a control program for operating the control program 2.
【0007】図24は、制御対象3を制御するSFCプ
ログラムのプログラムテーブルである。このプログラム
テーブルは、SFCプログラム30のステップに対応し
てその動作内容を示すステップ動作プログラムテーブル
40と、SFCプログラム30の移行に対応して移行条
件を示す移行条件プログラムテーブル41とを含み、こ
れらは制御プログラム記憶部6に格納されている。FIG. 24 is a program table of an SFC program for controlling the control target 3. This program table includes a step operation program table 40 indicating the contents of the operation corresponding to the steps of the SFC program 30 and a transfer condition program table 41 indicating the transfer conditions corresponding to the transfer of the SFC program 30. It is stored in the control program storage unit 6.
【0008】図25は、従来における制御実行部5の処
理動作を示すフローチャートであり、図26は、従来に
おけるステップ動作プログラムテーブル40および移行
条件プログラムテーブル41を作成するための周辺装置
2Bの表示画面例を示している。FIG. 25 is a flowchart showing the processing operation of the conventional control execution unit 5, and FIG. 26 is a display screen of the peripheral device 2B for creating the conventional step operation program table 40 and transition condition program table 41. An example is shown.
【0009】つぎに、動作について説明する。プログラ
マブルコントローラ1Cは、制御実行部5が制御プログ
ラム記憶部6に記憶されている制御プログラムの内容に
基づいて、入出力信号4を制御し、制御対象3を動作さ
せる。Next, the operation will be described. In the programmable controller 1C, the control execution unit 5 controls the input / output signal 4 based on the contents of the control program stored in the control program storage unit 6 to operate the control target 3.
【0010】制御プログラム記憶部6に格納されている
SFCプログラムは、周辺装置2Bにより作成される。
周辺装置2Bでは、プログラム編集部12により、SF
Cプログラム30を編集する。その後、図26に示され
ているような表示画面により、SFCプログラム30の
ステップおよび移行内容を入力し、ステップ動作プログ
ラムテーブル40および移行条件プログラムテーブル4
1を作成する。The SFC program stored in the control program storage section 6 is created by the peripheral device 2B.
In the peripheral device 2B, the program editing unit 12
Edit the C program 30. Then, on the display screen as shown in FIG. 26, the step and the transition contents of the SFC program 30 are input, and the step operation program table 40 and the transition condition program table 4 are inputted.
Create 1.
【0011】これらの作成完了後に、周辺装置2Bは作
成したSFCプログラムを通信部11によってプログラ
マブルコントローラ1Cへ送信する。プログラマブルコ
ントローラ1Cの通信部10は、このSFCプログラム
を受信すると、該SFCプログラムを制御プログラム記
憶部6に格納する。After completion of the creation, the peripheral device 2B transmits the created SFC program to the programmable controller 1C by the communication unit 11. When receiving the SFC program, the communication unit 10 of the programmable controller 1C stores the SFC program in the control program storage unit 6.
【0012】制御実行部5は、プログラマブルコントロ
ーラ1Cの電源入力により起動され、図25に示すフロ
ーチャートに基づいてシーケンス制御処理を行う。この
シーケンス制御処理では、まず、実行ステップテーブル
5Aに格納されているステップ番号を取り出す(ステッ
プS250)。そして、電源入力時、S0が格納されて
いたとすると、つぎに、ステップ動作プログラムテーブ
ル40の該当ステップ番号にあるプログラムを実行する
(ステップS251)。この場合、例えば、電源入力
時、実行ステップテーブル5AにS0が格納されていた
とすると、S0のプログラムを実行する。The control execution unit 5 is started by power input of the programmable controller 1C, and performs a sequence control process based on a flowchart shown in FIG. In this sequence control process, first, the step number stored in the execution step table 5A is extracted (step S250). Assuming that S0 is stored when the power is turned on, the program corresponding to the corresponding step number in the step operation program table 40 is executed (step S251). In this case, for example, if S0 is stored in the execution step table 5A when the power is turned on, the program of S0 is executed.
【0013】つぎに、SFCプログラム30より、該当
ステップの下の移行番号T0を取り出し(ステップS2
52)、移行条件プログラムテーブル41の該当移行番
号T0にあたるプログラム“LD LS100”を実行
し(ステップS253)、この後に移行条件が成立した
か否かを判断する(ステップS254)。Next, a transition number T0 below the corresponding step is extracted from the SFC program 30 (step S2).
52), the program “LD LS100” corresponding to the corresponding transfer number T0 in the transfer condition program table 41 is executed (step S253), and thereafter, it is determined whether or not the transfer condition is satisfied (step S254).
【0014】ステップS254において、LS100
は、ワーク21がセットされると、成立する。したがっ
て、条件が成立したと、判断した場合には、SFCプロ
グラムより、該当移行番号T0の下のステップ番号S1
とS5を取り出す(ステップS255)。その後、実行
ステップテーブル5Aに対しステップ番号S1とS5を
格納し(ステップS256)、ステップS250に戻
り、同様の処理を繰り返し実行する。In step S254, LS100
Is established when the work 21 is set. Therefore, when it is determined that the condition is satisfied, the step number S1 under the corresponding transition number T0 is determined by the SFC program.
And S5 are taken out (step S255). After that, the step numbers S1 and S5 are stored in the execution step table 5A (step S256), and the process returns to step S250 to repeat the same processing.
【0015】これに対し、ステップS254において、
条件が成立していないと判断した場合には、ステップS
250に戻って同様の処理を繰り返し実行する。このと
き、例えば、LS10が故障してONしない場合、SF
Cプログラム30は、移行T4の条件である“LD L
S0”が成立しないので、S5で停止する。On the other hand, in step S254,
If it is determined that the condition is not satisfied, step S
Returning to step 250, the same processing is repeatedly executed. At this time, for example, if the LS 10 fails and does not turn on, the SF
The C program 30 executes “LD L”, which is the condition of the transition T4.
Since S0 "is not established, the operation stops at S5.
【0016】この状態は、周辺装置2Bのモニタ部13
により、実行ステップテーブル5Aの内容を読み出せ
ば、実行ステップS5が取り出せる。そして、SFCプ
ログラム30よりS5の移行条件は、T4であり、該T
4の処理内容は、移行条件プログラムテーブル41よ
り、“LD LS0”であることが判るので、LS10
が故障の原因と判断することができる。This state is determined by the monitor unit 13 of the peripheral device 2B.
By reading the contents of the execution step table 5A, the execution step S5 can be extracted. The transition condition of S5 from the SFC program 30 is T4.
The processing content of No. 4 is “LD LS0” from the transition condition program table 41.
Can be determined to be the cause of the failure.
【0017】その他、この発明に関連する参考技術文献
として、特開平3−91005号公報に開示されている
「プログラマブル・コントローラ用モニタ装置」があ
る。As another technical reference related to the present invention, there is a "monitor for a programmable controller" disclosed in Japanese Patent Application Laid-Open No. Hei 3-91005.
【0018】[0018]
【発明が解決しようとする課題】しかし、LS10が故
障してONのままの状態になったとき、SFCプログラ
ム30において、S5は、T4が成立しているので、直
ちにS6へ移行してしまい、M0はOFFになる。これ
により、T1の条件である“LD M0”が成立しない
ため、SFCプログラム30は、S1のまま移行しなく
なる。すなわち、周辺装置2Bの移行成立条件はM0の
ため、LS0が原因であるとは、直接結び付かない。However, when the LS 10 fails and remains in the ON state, the S5 in the SFC program 30 immediately shifts to S6 because T4 is satisfied. M0 is turned off. As a result, since “LD M0”, which is the condition of T1, is not satisfied, the SFC program 30 does not shift to S1. That is, since the transition establishment condition of the peripheral device 2B is M0, it cannot be directly linked to the cause of LS0.
【0019】上述の例のように、プログラムのステップ
間において関連するデバイスを使用していたとき、停止
したステップから故障のデバイスを特定して判断するこ
とが困難であり、故障診断効率が悪いという問題点があ
った。As in the above-described example, when related devices are used between the steps of the program, it is difficult to identify and determine the faulty device from the stopped step, and the fault diagnosis efficiency is low. There was a problem.
【0020】この発明は、上述の如き問題点を解消する
ためになされたもので、SFCプログラムを含むシーケ
ンスプログラムのステップ間において関連するデバイス
を使用した場合にあっても、故障のデバイスを特別なプ
ログラムを作成せずに、的確且つ容易に判断(特定)す
ることができて効率のよい故障診断を行うことができ、
また故障診断で使用するデータテーブルを人手を煩わす
ことなく的確に自動作成するユーザフレンドリなプログ
ラマブルコントローラおよび周辺装置を得ることを目的
としている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. Even when a related device is used between steps of a sequence program including an SFC program, a faulty device is specially replaced. Without making a program, it is possible to judge (specify) accurately and easily, and to perform an efficient failure diagnosis.
Another object of the present invention is to provide a user-friendly programmable controller and a peripheral device that automatically and accurately create a data table used for failure diagnosis without any trouble.
【0021】[0021]
【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラは、
シーケンシャルファンクションチャートで記述されたシ
ーケンスプログラムを実行するプログラマブルコントロ
ーラにおいて、シーケンシャルファンクションチャート
の各ステップ毎に、次ステップへの移行条件で使用して
いるデバイスを記憶すると共に、そのデバイスを他のス
テップで使用している場合には、そのステップより次ス
テップへの移行条件で使用しているデバイスを併せて記
憶したデバイス条件テーブルを格納するデバイス条件記
憶手段と、制御対象に故障が発生したとき、前記デバイ
ス条件記憶手段に記憶されているデバイスに基づいて故
障箇所を検出する故障検出手段とを有しているものであ
る。To achieve the above object, a programmable controller according to the present invention comprises:
In the programmable controller that executes the sequence program described in the sequential function chart, the device used in the transition condition to the next step is stored for each step of the sequential function chart, and the device is used in other steps Device condition storage means for storing a device condition table that also stores the devices used in the transition condition from the step to the next step; and Fault detecting means for detecting a fault location based on the device stored in the condition storing means.
【0022】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラの周辺装置は、
上述の発明によるプログラマブルコントローラの周辺装
置において、シーケンシャルファンクションチャートの
各ステップ毎に、次ステップへの移行条件で使用してい
るデバイスをデバイス条件テーブルに書き込み、そのデ
バイスを他のステップで使用しているか否かを調査し、
他のステップで使用している場合には、そのステップよ
り次ステップへの移行条件で使用しているデバイスを併
せてデバイス条件テーブルに書き込んでデバイス条件テ
ーブルを自動作成するデバイス条件作成手段を有してお
り、前記デバイス条件作成手段によって作成されたデバ
イス条件テーブルを通信手段によってプログラマブルコ
ントローラに送信するものである。In order to achieve the above object, a peripheral device of a programmable controller according to the present invention comprises:
In the peripheral device of the programmable controller according to the above invention, for each step of the sequential function chart, a device used in a condition for transition to the next step is written in a device condition table, and the device is used in another step. Investigate whether or not
If it is used in another step, it has a device condition creation means for automatically creating a device condition table by writing the device used in the transition condition from that step to the next step together in the device condition table. The device condition table created by the device condition creating means is transmitted to the programmable controller by the communication means.
【0023】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラは、シーケンス
プログラムを実行するプログラマブルコントローラにお
いて、シーケンスプログラムのデバイスを動作に関連す
るものどうしでグループ分けされていて、その各グルー
プ毎にデバイスを記憶したデバイス条件テーブルを格納
するデバイス条件記憶手段と、前記デバイス条件記憶手
段に格納されているデバイス条件テーブルに記憶された
グループ毎のデバイスの正常時のON/OFF状態の組
合せを記憶するON/OFF状態テーブルを格納するO
N/OFF状態記憶手段と、前記ON/OFF状態記憶
手段に記憶されているON/OFF状態の組合せに基づ
いて故障箇所を検出する故障検出手段とを有しているも
のである。According to another aspect of the present invention, there is provided a programmable controller for executing a sequence program, wherein devices of the sequence program are grouped according to operation. A combination of device condition storage means for storing a device condition table storing devices for each group, and a normal ON / OFF state of devices for each group stored in the device condition table stored in the device condition storage means O that stores an ON / OFF state table that stores
It has N / OFF state storage means, and failure detection means for detecting a failure location based on a combination of ON / OFF states stored in the ON / OFF state storage means.
【0024】つぎの発明によるプログラマブルコントロ
ーラは、シーケンスプログラムの正常実行下において、
グループ指定されたデバイスを含むステップの実行時
に、当該デバイスのON/OFF状態とそのデバイスと
同一グループの他のデバイスのON/OFF状態を検索
し、グループ毎のデバイスの正常時のON/OFF状態
の組合せを検出してON/OFF状態テーブルを自動作
成するものである。According to the next aspect of the present invention, the programmable controller can execute the sequence program under normal execution.
When a step including a device specified by a group is executed, the ON / OFF state of the device and the ON / OFF state of another device in the same group as the device are searched, and the ON / OFF state of the device for each group in a normal state. And automatically creates an ON / OFF state table.
【0025】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラの周辺装置は、
上述の発明によるプログラマブルコントローラの周辺装
置において、シーケンスプログラムの全命令をスキャン
し、命令に指定されたデバイスにグループ指定記号が付
記されているか否かを判断し、同一のグループ指定のデ
バイスをデバイス条件テーブルにグループ分け登録し、
デバイス条件テーブルを自動作成するデバイス条件作成
手段を有しており、前記デバイス条件作成手段によって
作成されたデバイス条件テーブルを通信手段によってプ
ログラマブルコントローラに送信するものである。In order to achieve the above object, a peripheral device of a programmable controller according to the present invention comprises:
In the peripheral device of the programmable controller according to the above invention, all the instructions of the sequence program are scanned, and it is determined whether or not a device designated by the instruction has a group designation symbol added thereto. Register the grouping in the table,
There is provided a device condition creating means for automatically creating a device condition table, and the device condition table created by the device condition creating means is transmitted to the programmable controller by the communication means.
【0026】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラは、シーケンス
プログラムを実行するプログラマブルコントローラにお
いて、動作に関連するデバイス毎にシーケンスプログラ
ムが作成されていて、各シーケンスプログラム毎にデバ
イスを記憶したデバイス条件テーブルを格納するデバイ
ス条件記憶手段と、前記デバイス条件記憶手段に格納さ
れているデバイス条件テーブルに記憶されたシーケンス
プログラム毎のデバイスの正常時のON/OFF状態の
組合せを記憶するON/OFF状態テーブルを格納する
ON/OFF状態記憶手段と、前記ON/OFF状態記
憶手段に記憶されているON/OFF状態の組合せに基
づいて故障箇所を検出する故障検出手段とを有している
ものである。According to another aspect of the present invention, there is provided a programmable controller for executing a sequence program, wherein a sequence program is created for each device related to an operation. A device condition storage unit for storing a device condition table storing devices, and a combination of a normal ON / OFF state of the device for each sequence program stored in the device condition table stored in the device condition storage unit. ON / OFF state storage means for storing an ON / OFF state table to be executed, and failure detection means for detecting a failure location based on a combination of ON / OFF states stored in the ON / OFF state storage means. Is what it is.
【0027】つぎの発明によるプログラマブルコントロ
ーラは、各シーケンスプログラムの正常実行下におい
て、各デバイスのON/OFF状態とそのデバイスと同
一のシーケンスプログラムにおける他のデバイスのON
/OFF状態を検索し、シーケンスプログラム毎のデバ
イスの正常時のON/OFF状態の組合せを検出してO
N/OFF状態テーブルを自動作成するものである。In the programmable controller according to the next invention, the ON / OFF state of each device and the ON / OFF state of another device in the same sequence program as the device under normal execution of each sequence program
/ OFF state is searched, and the ON / OFF state combination of the device at the normal time for each sequence program is detected and
The N / OFF state table is automatically created.
【0028】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラの周辺装置は、
上述の発明によるプログラマブルコントローラの周辺装
置において、各シーケンスプログラムの全命令をスキャ
ンし、命令に指定されたデバイスを各シーケンスプログ
ラム毎に登録し、デバイス条件テーブルを自動作成する
デバイス条件作成手段を有しており、前記デバイス条件
作成手段によって作成されたデバイス条件テーブルを通
信手段によってプログラマブルコントローラに送信する
ものである。In order to achieve the above object, a peripheral device of a programmable controller according to the present invention comprises:
In the peripheral device of the programmable controller according to the above-mentioned invention, the peripheral device of the programmable controller has device condition creating means for scanning all instructions of each sequence program, registering a device designated by the instruction for each sequence program, and automatically creating a device condition table. The device condition table created by the device condition creating means is transmitted to the programmable controller by the communication means.
【0029】また、上述の目的を達成するために、この
発明によるプログラマブルコントローラの周辺装置は、
上述の発明による複数のプログラマブルコントローラが
固有の番号付けされて通信可能に接続され、プログラマ
ブルコントローラよりの故障箇所の通知により、通知元
のプログラマブルコントローラの番号と故障箇所を表示
するモニタ手段を有しているものである。In order to achieve the above object, a peripheral device of a programmable controller according to the present invention comprises:
A plurality of programmable controllers according to the above-described invention are communicably connected by being assigned unique numbers, and have monitor means for displaying the number of the programmable controller as the notification source and the failure location by notification of the failure location from the programmable controller. Is what it is.
【0030】[0030]
【作用】この発明によるプログラマブルコントローラで
は、SFC言語で記述されたシーケンスプログラムのス
テップ間において関連するデバイスのデータとして、シ
ーケンシャルファンクションチャートの各ステップ毎
に、次ステップへの移行条件で使用しているデバイスを
記憶すると共に、そのデバイスを他のステップで使用し
ている場合には、そのステップより次ステップへの移行
条件で使用しているデバイスを併せて記憶したデバイス
条件テーブルをデバイス条件記憶手段を格納しており、
制御対象に故障が発生したとき、デバイス条件テーブル
に記憶されているデバイスに基づいて故障検出手段が故
障箇所を検出する。In the programmable controller according to the present invention, the device used as the data of the device related between the steps of the sequence program described in the SFC language for each step of the sequential function chart under the transition condition to the next step When the device is used in another step, the device condition table storing the device used in the transition condition from the step to the next step is also stored in the device condition storage means. And
When a failure occurs in the control target, the failure detection means detects a failure location based on the device stored in the device condition table.
【0031】つぎの発明によるプログラマブルコントロ
ーラの周辺装置では、デバイス条件作成手段が、シーケ
ンシャルファンクションチャートの各ステップ毎に、次
ステップへの移行条件で使用しているデバイスをデバイ
ス条件テーブルに書き込み、そのデバイスを他のステッ
プで使用しているか否かを調査し、他のステップで使用
している場合には、そのステップより次ステップへの移
行条件で使用しているデバイスを併せてデバイス条件テ
ーブルに書き込んでデバイス条件テーブルを自動作成
し、デバイス条件作成手段が作成したデバイス条件テー
ブルを通信手段によってプログラマブルコントローラに
送信する。In the peripheral device of the programmable controller according to the next invention, the device condition creating means writes, in each step of the sequential function chart, a device used as a condition for transition to the next step in a device condition table, and writes the device condition table. Investigate whether is used in another step, and if it is used in another step, write the device used in the transition condition from that step to the next step together in the device condition table Automatically creates a device condition table, and transmits the device condition table created by the device condition creation means to the programmable controller by the communication means.
【0032】つぎの発明によるプログラマブルコントロ
ーラでは、ラダー言語等で記述されたシーケンスプログ
ラムのステップ間において関連するデバイスのデータと
して、シーケンスプログラムのデバイスを動作に関連す
るものどうしでグループ分けされていて、その各グルー
プ毎にデバイスを記憶したデバイス条件テーブルがデバ
イス条件記憶手段に格納され、デバイス条件記憶手段に
格納されているデバイス条件テーブルに記憶されたグル
ープ毎のデバイスの正常時のON/OFF状態の組合せ
を記憶するON/OFF状態テーブルがON/OFF状
態記憶手段に格納され、ON/OFF状態記憶手段に記
憶されているON/OFF状態の組合せに基づいて故障
検出手段が故障箇所を検出する。In the programmable controller according to the next invention, the devices of the sequence program are grouped into those related to the operation as the data of the devices related between the steps of the sequence program described in a ladder language or the like. A device condition table storing devices for each group is stored in the device condition storage means, and a normal ON / OFF state combination of devices for each group stored in the device condition table stored in the device condition storage means Is stored in the ON / OFF state storage means, and the failure detection means detects a failure location based on the combination of the ON / OFF states stored in the ON / OFF state storage means.
【0033】つぎの発明によるプログラマブルコントロ
ーラでは、シーケンスプログラムの正常実行下におい
て、グループ指定されたデバイスを含むステップの実行
時に、当該デバイスのON/OFF状態とそのデバイス
と同一グループの他のデバイスのON/OFF状態を検
索し、グループ毎のデバイスの正常時のON/OFF状
態の組合せを検出してON/OFF状態テーブルを自動
作成する。In the programmable controller according to the next invention, when a step including a device designated by a group is executed under normal execution of a sequence program, the ON / OFF state of the device and the ON / OFF of another device in the same group as the device are performed. An ON / OFF state table is automatically created by detecting a combination of ON / OFF states of devices in each group in a normal state.
【0034】つぎの発明によるプログラマブルコントロ
ーラの周辺装置では、デバイス条件作成手段が、シーケ
ンスプログラムの全命令をスキャンし、命令に指定され
たデバイスにグループ指定記号が付記されているか否か
を判断し、同一のグループ指定のデバイスをデバイス条
件テーブルにグループ分け登録し、デバイス条件テーブ
ルを自動作成し、デバイス条件作成手段が作成したデバ
イス条件テーブルを通信手段によってプログラマブルコ
ントローラに送信する。In the peripheral device of the programmable controller according to the next invention, the device condition creating means scans all the instructions of the sequence program and determines whether or not the device designated by the instruction has a group designation symbol added thereto. The devices designated by the same group are registered in the device condition table by grouping them, the device condition table is automatically created, and the device condition table created by the device condition creating means is transmitted to the programmable controller by the communication means.
【0035】つぎの発明によるプログラマブルコントロ
ーラでは、動作に関連するデバイス毎にシーケンスプロ
グラムが作成されていて、各シーケンスプログラム毎に
デバイスを記憶したデバイス条件テーブルがデバイス条
件記憶手段に格納され、デバイス条件記憶手段に格納さ
れているデバイス条件テーブルに記憶されたシーケンス
プログラム毎のデバイスの正常時のON/OFF状態の
組合せを記憶するON/OFF状態テーブルがON/O
FF状態記憶手段に格納され、ON/OFF状態記憶手
段に記憶されているON/OFF状態の組合せに基づい
て故障検出手段が故障箇所を検出する。In the programmable controller according to the next invention, a sequence program is created for each device related to the operation, and a device condition table storing devices for each sequence program is stored in device condition storage means. An ON / OFF state table for storing a combination of ON / OFF states of the devices in a normal state for each sequence program stored in the device condition table stored in the means is ON / O.
The failure detection means detects a failure location based on a combination of ON / OFF states stored in the FF state storage means and stored in the ON / OFF state storage means.
【0036】つぎの発明によるプログラマブルコントロ
ーラでは、各シーケンスプログラムの正常実行下におい
て、各デバイスのON/OFF状態とそのデバイスと同
一のシーケンスプログラムにおける他のデバイスのON
/OFF状態を検索し、シーケンスプログラム毎のデバ
イスの正常時のON/OFF状態の組合せを検出してO
N/OFF状態テーブルを自動作成する。In the programmable controller according to the next invention, under normal execution of each sequence program, the ON / OFF state of each device and the ON / OFF of other devices in the same sequence program as that device
/ OFF state is searched, and the ON / OFF state combination of the device at the normal time for each sequence program is detected and
Automatically create an N / OFF state table.
【0037】つぎの発明によるプログラマブルコントロ
ーラの周辺装置では、デバイス条件作成手段が、各シー
ケンスプログラムの全命令をスキャンし、命令に指定さ
れたデバイスを各シーケンスプログラム毎に登録し、デ
バイス条件テーブルを自動作成し、デバイス条件作成手
段が作成したデバイス条件テーブルを通信手段によって
プログラマブルコントローラに送信する。In the peripheral device of the programmable controller according to the next invention, the device condition creating means scans all the instructions of each sequence program, registers the device specified by the instruction for each sequence program, and automatically updates the device condition table. The device condition table created by the device condition creating unit is created and transmitted to the programmable controller by the communication unit.
【0038】つぎの発明によるプログラマブルコントロ
ーラの周辺装置では、複数のプログラマブルコントロー
ラが固有の番号付けされて通信可能に接続され、プログ
ラマブルコントローラよりの故障箇所の通知により、モ
ニタ手段に通知元のプログラマブルコントローラの番号
と故障箇所を表示する。In the peripheral device for a programmable controller according to the next invention, a plurality of programmable controllers are connected to each other with unique numbers and are communicable with each other. Displays the number and fault location.
【0039】[0039]
【実施例】以下に添付の図を参照してこの発明の実施の
形態を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the accompanying drawings.
【0040】〔実施例1〕 図1は実施例1にかかるプログラマブルコントローラの
故障診断システムの概略構成を示すブロック図である。First Embodiment FIG. 1 is a block diagram showing a schematic configuration of a failure diagnosis system for a programmable controller according to a first embodiment.
【0041】図1において、1はプログラマブルコント
ローラ、2はプログラマブルコントローラ1の周辺装
置、3はプログラマブルコントローラ1により制御され
る制御対象、4は入出力信号である。In FIG. 1, 1 is a programmable controller, 2 is a peripheral device of the programmable controller 1, 3 is a controlled object controlled by the programmable controller 1, and 4 is an input / output signal.
【0042】プログラマブルコントローラ1は、入出力
信号を制御する制御実行部5と、SFCプログラムの現
在実行中であるステップ番号を格納する実行ステップテ
ーブル5Aと、プログラマブルコントローラ1を制御す
るためのプログラムを格納する制御プログラム記憶部6
と、故障が発生したことを判断する故障モニタ部7と、
故障モニタ部7による故障判定時に故障箇所(故障の可
能性がある箇所)のデバイスを関連付けて判断するため
のデバイス条件テーブルを格納するデバイス条件記憶部
9と、周辺装置2と通信を行う通信部10と、デバイス
条件記憶部9に格納されたデバイス条件テーブルの内部
データにより示される故障箇所のデバイスの状態を格納
する故障デバイス記憶部16とから構成されている。The programmable controller 1 stores a control execution unit 5 for controlling input / output signals, an execution step table 5A for storing a currently executed step number of the SFC program, and a program for controlling the programmable controller 1. Control program storage unit 6
A failure monitor 7 for determining that a failure has occurred;
A device condition storage unit 9 for storing a device condition table for associating and determining a device at a failure location (potentially a failure location) at the time of failure determination by the failure monitor unit 7, and a communication unit for communicating with the peripheral device 2 10 and a failed device storage unit 16 that stores the state of the device at the failure location indicated by the internal data of the device condition table stored in the device condition storage unit 9.
【0043】周辺装置2は、プログラマブルコントロー
ラ1と通信を行う通信部11と、プログラマブルコント
ローラ1を制御するプログラムを作成するプログラム編
集部12と、プログラマブルコントローラ1内部の状態
を表示するモニタ部13と、故障を判断するデバイス条
件テーブルを作成するデバイス条件作成部14と、画面
/キー入力部15とから構成されている。The peripheral device 2 includes a communication unit 11 for communicating with the programmable controller 1, a program editing unit 12 for creating a program for controlling the programmable controller 1, a monitor unit 13 for displaying the internal state of the programmable controller 1, It comprises a device condition creation unit 14 for creating a device condition table for determining a failure, and a screen / key input unit 15.
【0044】制御対象3は、従来と同様に図22の構成
例を用いる。すなわち、図22は、上記プログラマブル
コントローラ1が制御する制御対象3の構成例を示す説
明図である。図において、20はクランプ、21はワー
ク、22はワーク21を加工するドリル、23はクラン
プ20の上端を検出するリミットスイッチLS1、24
はクランプ20の下端を検出するリミットスイッチLS
0、25はワーク21の設定を検出するリミットスイッ
チLS100、26はドリル22の左端を検出するリミ
ットスイッチLS10、27はドリル22の右端を検出
するリミットスイッチLS11、28はクランプ20を
上に動作させる信号Y1、29はクランプ20を下に動
作させる信号Y0、29Aはドリル22を左に動作させ
る信号Y10、29Bはドリル22を右に動作させる信
号Y11である。As the control target 3, the configuration example shown in FIG. That is, FIG. 22 is an explanatory diagram illustrating a configuration example of the control target 3 controlled by the programmable controller 1. In the figure, reference numeral 20 denotes a clamp, 21 denotes a work, 22 denotes a drill for processing the work 21, and 23 denotes limit switches LS1 and 24 for detecting the upper end of the clamp 20.
Is a limit switch LS for detecting the lower end of the clamp 20.
0, 25 are limit switches LS100, 26 for detecting the setting of the work 21; 26 are limit switches LS10, 27 for detecting the left end of the drill 22; 27 are limit switches LS11, 28 for detecting the right end of the drill 22; The signals Y1, 29 are signals Y0, 29A for operating the clamp 20 downward, the signals Y10, 29B for operating the drill 22 to the left, and the signal Y11 for operating the drill 22 to the right.
【0045】制御対象3を制御するSFCプログラムの
構成例を従来と同様に図23を用いて説明する。図23
において、30は図22に示した制御対象2を制御する
ためのSFCプログラムであり、SFCプログラム30
は制御プログラム記憶部6に格納される。また、制御対
象3を制御するSFCプログラム30のプログラムテー
ブルを従来と同様に図24を用いて説明する。図24に
おいて、40はステップ動作プログラムテーブルを、4
1は移行条件プログラムテーブルを示している。An example of the configuration of the SFC program for controlling the control target 3 will be described with reference to FIG. FIG.
Is an SFC program for controlling the control target 2 shown in FIG.
Are stored in the control program storage unit 6. The program table of the SFC program 30 for controlling the control target 3 will be described with reference to FIG. In FIG. 24, reference numeral 40 denotes a step operation program table;
Reference numeral 1 denotes a transition condition program table.
【0046】図2はデバイス条件記憶部9に格納される
デバイス条件テーブル50を示している。デバイス条件
テーブル50は、故障モニタ部7による故障判定時に故
障箇所(故障の可能性がある箇所)のデバイスを関連付
けて判断するためのデータテーブルであり、図2に示さ
れているように、シーケンシャルファンクションチャー
トの各ステップ毎に、次ステップへの移行条件で使用し
ているデバイスを記憶すると共に、そのデバイスを他の
ステップで使用している場合には、そのステップより次
ステップへの移行条件で使用しているデバイスを併せて
記憶している。FIG. 2 shows a device condition table 50 stored in the device condition storage section 9. The device condition table 50 is a data table for associating and determining a device at a failure location (potential failure location) when the failure monitor 7 determines a failure, and as shown in FIG. For each step in the function chart, the device used in the transition condition to the next step is stored, and if the device is used in another step, the condition is used in the transition condition from that step to the next step. The device used is also stored.
【0047】図3は周辺装置2におけるデバイス条件作
成部14の処理動作を示すフローチャートであり、図4
はプログラマブルコントローラ1における故障モニタ部
7の処理動作を示すフローチャートである。FIG. 3 is a flowchart showing the processing operation of the device condition creation unit 14 in the peripheral device 2, and FIG.
5 is a flowchart showing a processing operation of the failure monitor unit 7 in the programmable controller 1.
【0048】つぎに、動作について説明する。Next, the operation will be described.
【0049】周辺装置2では、従来における処理と同様
の処理によってプログラム編集部12により、SFCプ
ログラム30、ステップ動作プログラムテーブル40、
移行条件プログラムテーブル41を作成する。In the peripheral device 2, the SFC program 30, the step operation program table 40,
A transition condition program table 41 is created.
【0050】つぎに、デバイス条件作成部14によりデ
バイス条件テーブル50を作成する。このデバイス条件
作成部14による処理を図3に示すフローチャートに基
づいて説明する。Next, a device condition table 50 is created by the device condition creating unit 14. The processing by the device condition creation unit 14 will be described with reference to the flowchart shown in FIG.
【0051】図3において、処理が開始されると、ま
ず、全ステップのデバイス条件テーブル50の作成処理
が完了したか否かを判断する(ステップS60)。ステ
ップS60において、全ステップのデバイス条件テーブ
ル50の作成処理が完了したと判断した場合には、デバ
イス条件テーブル50の作成処理を終了する。In FIG. 3, when the process is started, first, it is determined whether or not the creation process of the device condition table 50 in all steps is completed (step S60). If it is determined in step S60 that the creation of the device condition tables 50 in all the steps has been completed, the creation of the device condition tables 50 ends.
【0052】これに対し、ステップS60において、全
ステップのデバイス条件テーブル50の作成処理が完了
していないと判断した場合には、SFCプログラム30
より処理を行うステップを上から順(降順)に取り出す
(ステップS61)。つぎに、現在取り出しているステ
ップのつぎの移行番号を取り出し(ステップS62)、
該当する移行番号に使用されているデバイスを移行条件
プログラムテーブル41から取り出し、デバイス条件テ
ーブル50における処理中のステップ番号の位置に格納
する(ステップS63)。On the other hand, if it is determined in step S60 that the creation of the device condition tables 50 in all the steps has not been completed, the SFC program 30
Steps for further processing are taken out from the top (downward order) (step S61). Next, the next transition number of the currently extracted step is extracted (step S62).
The device used for the corresponding transfer number is extracted from the transfer condition program table 41 and stored at the position of the step number being processed in the device condition table 50 (step S63).
【0053】その後、ステップ動作プログラムテーブル
40より、他のステップ番号により格納したデバイスが
使用されているかを調べる(ステップS64)。換言す
れば、ステップS63で処理中のステップ番号の位置に
格納したデバイスを他のステップで使用しているか否か
を調査し、他のステップ番号により格納したデバイスが
使用されているか否かを判断する(ステップS65)。Thereafter, it is checked from the step operation program table 40 whether a device stored by another step number is used (step S64). In other words, it is checked whether or not the device stored at the position of the step number being processed in step S63 is being used in another step, and it is determined whether or not the device stored by another step number is being used. (Step S65).
【0054】ステップS65において、他のステップ番
号で格納したデバイスが使用されていると判断した場合
には、すなわち、ステップS63で処理中のステップ番
号の位置に格納したデバイスを他のステップで使用して
いる場合には、そのステップより次ステップへの移行番
号を取り出し(ステップS66)、移行条件プログラム
テーブル41より、該当する移行番号で使用しているデ
バイスを取り出し、デバイス条件テーブル50における
処理中のステップ番号の位置へ格納する(ステップS6
7)。If it is determined in step S65 that the device stored in another step number is used, that is, the device stored in the position of the step number being processed in step S63 is used in another step. If so, the transition number to the next step is extracted from the step (step S66), the device used by the corresponding transition number is extracted from the transition condition program table 41, and the device being processed in the device condition table 50 is processed. It is stored in the position of the step number (step S6
7).
【0055】その後、ステップS60に戻って同様の処
理を繰り返し実行する。なお、ステップS65におい
て、他のステップ番号により格納したデバイスが使用さ
れていないと判断した場合にも、ステップS60に戻っ
て同様の処理を繰り返し実行する。Thereafter, the flow returns to step S60, and the same processing is repeatedly executed. In step S65, even when it is determined that the device stored by another step number is not used, the process returns to step S60 and the same processing is repeatedly executed.
【0056】上述の処理より、周辺装置2は、シーケン
シャルファンクションチャートの各ステップ毎に、次ス
テップへの移行条件で使用しているデバイスをデバイス
条件テーブルに書き込み、そのデバイスを他のステップ
で使用しているか否かを調査し、他のステップで使用し
ている場合には、そのステップより次ステップへの移行
条件で使用しているデバイスを併せてデバイス条件テー
ブルに書き込んでデバイス条件テーブル50を自動作成
する。According to the above-described processing, the peripheral device 2 writes the device used in the transition condition to the next step in the device condition table for each step of the sequential function chart, and uses the device in another step. It is checked whether or not the device condition table 50 is used in another step, and the device used in the transition condition from that step to the next step is also written in the device condition table, and the device condition table 50 is automatically updated. create.
【0057】上述のように、全ステップのデバイス条件
テーブル50の作成処理が完了し、デバイス条件テーブ
ル50が作成されると、周辺装置2の通信部11によ
り、SFCプログラム30、ステップ動作プログラムテ
ーブル40、移行条件プログラムテーブル41、デバイ
ス条件テーブル50をプログラマブルコントローラ1に
対して送信する。As described above, when the creation process of the device condition table 50 in all steps is completed and the device condition table 50 is created, the communication unit 11 of the peripheral device 2 causes the SFC program 30 and the step operation program table 40 , The transfer condition program table 41 and the device condition table 50 are transmitted to the programmable controller 1.
【0058】プログラマブルコントローラ1にあって
は、それらを通信部10が受信し、SFCプログラム3
0、ステップ動作プログラムテーブル40、移行条件プ
ログラムテーブル41を制御プログラム記憶部6に格納
し、デバイス条件テーブル50をデバイス条件記憶部9
に格納する。In the programmable controller 1, these are received by the communication unit 10 and the SFC program 3
0, the step operation program table 40, and the transition condition program table 41 are stored in the control program storage unit 6, and the device condition table 50 is stored in the device condition storage unit 9.
To be stored.
【0059】プログラマブルコントローラ1は、上記処
理を実行した後、制御実行部5および制御プログラムの
内容に基いた処理が実行する。このとき、外部機器の故
障によりステップが一定時間移行しないとき、制御実行
部5は故障モニタ部7を起動する。After executing the above processing, the programmable controller 1 executes processing based on the contents of the control execution unit 5 and the control program. At this time, when the step does not shift for a predetermined time due to the failure of the external device, the control execution unit 5 activates the failure monitoring unit 7.
【0060】この場合、故障モニタ部7は、図4に示す
フローチャートに基づいて処理を実行する。故障モニタ
部7が起動されると、まず、実行ステップテーブル5A
より実行中のステップ番号を取り出す(ステップS7
0)。このステップが停止ステップである。In this case, the failure monitor 7 executes a process based on the flowchart shown in FIG. When the failure monitor unit 7 is started, first, the execution step table 5A
The step number being executed is extracted (step S7).
0). This step is a stop step.
【0061】つぎに、デバイス条件テーブル50より、
取り出したステップ番号の位置の関連デバイスを取り出
し(ステップS71)。さらに、デバイスの状態を調べ
て(ステップS72)、該デバイスの状態を故障デバイ
ス記憶部16に格納する(ステップS73)。Next, from the device condition table 50,
The related device at the position of the taken out step number is taken out (step S71). Further, the status of the device is checked (step S72), and the status of the device is stored in the failed device storage unit 16 (step S73).
【0062】したがって、周辺装置2のモニタ部13に
より、通信部11を介して故障デバイス記憶部16のデ
ータを読み出すことにより、停止したステップに関連す
るデバイスを確認することができる。Therefore, by reading the data in the failed device storage unit 16 via the communication unit 11 by the monitor unit 13 of the peripheral device 2, it is possible to confirm the device associated with the stopped step.
【0063】例えば、LS0が故障してONのままの状
態になったとき、SFCプログラム30において、S5
(加工開始フラグ)の移行T4はLS0が移行条件であ
るので、S5を実行するときは既に成立しており、直ち
にS6(ドリル左)に移行する。このため、M0はOF
Fになる。S1の移行T1(加工開始フラグ)におい
て、移行条件M0はOFFであるので、移行条件が成立
せず、SFCプログラム30はS1から移行しない。For example, when LS0 breaks down and remains ON, the SFC program 30
Since the transition T4 of the (machining start flag) is LS0 as the transition condition, it is already established when executing S5, and the routine immediately proceeds to S6 (drill left). Therefore, M0 is OF
It becomes F. At the transition T1 (machining start flag) of S1, the transition condition M0 is OFF, so the transition condition is not satisfied, and the SFC program 30 does not transition from S1.
【0064】上記の場合、故障モニタ部7は、ステップ
が一定時間移行しないと、故障が発生したとみなし、S
1の関連デバイスM0,LS0を故障デバイス記憶部1
6に格納する。このとき、周辺装置2により故障デバイ
ス記憶部16を読み出すと、停止しているステップS1
に関連するデバイスがM0とLS0であることが容易に
判明する。In the above case, the failure monitor 7 determines that a failure has occurred if the steps do not shift for a certain period of time.
1 related devices M0 and LS0 are stored in the faulty device storage unit 1.
6 is stored. At this time, when the peripheral device 2 reads the faulty device storage unit 16, the stopped step S1 is stopped.
Are easily found to be M0 and LS0.
【0065】〔実施例2〕 図5は実施例2にかかるプログラマブルコントローラの
故障診断システムの概略構成を示すブロック図である。Second Embodiment FIG. 5 is a block diagram showing a schematic configuration of a fault diagnosis system for a programmable controller according to a second embodiment.
【0066】図5において、1Aはこの実施例にかかる
プログラマブルコントローラ、2はプログラマブルコン
トローラ1Aの周辺装置、3は制御対象、4は入出力信
号である。In FIG. 5, 1A is a programmable controller according to this embodiment, 2 is a peripheral device of the programmable controller 1A, 3 is an object to be controlled, and 4 is an input / output signal.
【0067】プログラマブルコントローラ1Aは、制御
実行部5と、実行ステップテーブル5Aと、制御プログ
ラム記憶部6と、故障モニタ部7と、故障が発生したこ
とを判断する故障モニタ部7と、制御実行時(正常実行
時)のデバイスのON/OFF状態の組合せ記憶するO
N/OFF状態テーブルを格納するON/OFF状態記
憶部8と、故障モニタ部7による故障判定時に故障箇所
(故障の可能性がある箇所)のデバイスを関連付けて判
断するためのデバイス条件テーブルを格納するデバイス
条件記憶部9と、周辺装置2との通信部10と、故障デ
バイス記憶部16とから構成されている。The programmable controller 1A includes a control execution section 5, an execution step table 5A, a control program storage section 6, a failure monitor section 7, a failure monitor section 7 for determining that a failure has occurred, and a control execution section. O to store the combination of device ON / OFF status (during normal execution)
An ON / OFF state storage unit 8 for storing an N / OFF state table and a device condition table for associating and determining a device at a failure location (potential failure location) when the failure monitor unit 7 determines a failure. The communication device 10 includes a device condition storage unit 9 for performing communication, a communication unit 10 for communicating with the peripheral device 2, and a failed device storage unit 16.
【0068】周辺装置2は、第1の実施例と同様に、プ
ログラマブルコントローラ1Aと通信を行う通信部11
と、プログラマブルコントローラ1Aを制御するための
プログラムを作成するプログラム編集部12と、プログ
ラマブルコントローラ1A内部の状態を表示するモニタ
部13と、故障を判断するデバイス条件を作成するデバ
イス条件作成部14と、画面/キー入力部15とから構
成されている。なお、この実施例にかかる制御対象3の
構成例については、上記第1の実施例において説明した
図22に示したものと同様の構成を用いる。As in the first embodiment, the peripheral device 2 includes a communication unit 11 for communicating with the programmable controller 1A.
A program editing unit 12 for creating a program for controlling the programmable controller 1A, a monitor unit 13 for displaying a state inside the programmable controller 1A, a device condition creating unit 14 for creating a device condition for determining a failure, And a screen / key input unit 15. The configuration example of the control target 3 according to this embodiment uses the same configuration as that shown in FIG. 22 described in the first embodiment.
【0069】図6は制御プログラム記憶部6に格納され
ているシーケンスプログラムの一例と内部テーブルを示
している。図6において、90は図22に示した制御対
象3を制御するためのラダー形式でのシーケンスプログ
ラムであり、関連するデバイスであることを示すグルー
プの指定91が命令に指定されたデバイスに付記されて
いる。この指定91は、“¥G整数”、たとえば、“¥
G1”の記述で行われる。FIG. 6 shows an example of a sequence program stored in the control program storage section 6 and an internal table. 6, reference numeral 90 denotes a ladder format sequence program for controlling the control target 3 shown in FIG. 22, and a group designation 91 indicating a related device is added to the device designated by the instruction. ing. The designation 91 is “¥ G integer”, for example, “¥
G1 ".
【0070】また、図6において、92はグループに関
連するデバイスを登録するデバイス条件テーブルであ
り、デバイス条件テーブル92は各グループ毎にデバイ
スを記憶してデバイス条件記憶部9に格納されている。In FIG. 6, reference numeral 92 denotes a device condition table for registering devices related to groups. The device condition table 92 stores devices for each group and stores them in the device condition storage unit 9.
【0071】また、、図6において、93はグループに
関連しているデバイスの正常状態でのON/OFF状態
の組合せを登録するON/OFF状態テーブルであり、
ON/OFF状態テーブル93は、ON/OFF状態記
憶部8に格納されている。このON/OFF状態テーブ
ル93は、デバイス条件テーブル92に記憶されたグル
ープ毎、たとえば、“G1”に所属しているデバイス
(M0とLS0)の正常時のON/OFF状態の組合せ
(この実施例では3通り)を記憶する。In FIG. 6, reference numeral 93 denotes an ON / OFF state table for registering a combination of ON / OFF states of devices related to the group in a normal state.
The ON / OFF state table 93 is stored in the ON / OFF state storage unit 8. The ON / OFF state table 93 is a combination of the ON / OFF states of the devices (M0 and LS0) belonging to “G1” in the normal state for each group stored in the device condition table 92 (this embodiment). Then, three types are stored.
【0072】この実施例でのプログラマブルコントロー
ラ1Aは、シーケンスプログラムの正常実行下におい
て、グループ指定されたデバイスを含むステップの実行
時に、当該デバイスのON/OFF状態とそのデバイス
と同一グループの他のデバイスのON/OFF状態を検
索し、グループ毎のデバイスの正常時のON/OFF状
態の組合せを検出して上述のON/OFF状態テーブル
93を自動作成する。The programmable controller 1A in this embodiment, when executing a step including a device designated by a group under normal execution of a sequence program, sets the ON / OFF state of the device and other devices in the same group as the device. The ON / OFF state of the device is searched for, the combination of the ON / OFF state of the device in each group in the normal state is detected, and the above ON / OFF state table 93 is automatically created.
【0073】図7は周辺装置2のデバイス条件作成部1
4による処理動作を示すフローチャートであり、図8お
よび図9は、プログラマブルコントローラ1Aにおける
ON/OFF状態テーブルの作成処理動作および故障モ
ニタ部7による処理動作を示すフローチャートである。FIG. 7 shows the device condition creation unit 1 of the peripheral device 2.
8 and FIG. 9 are flowcharts showing an ON / OFF state table creation processing operation and a processing operation by the failure monitor unit 7 in the programmable controller 1A.
【0074】つぎに、動作について説明する。Next, the operation will be described.
【0075】周辺装置2では、プログラム編集部12に
よりシーケンスプログラム90を作成する。このシーケ
ンスプログラム90の作成時において、デバイス番号と
共に動作に関連するデバイスを示すため、グループ分け
対象のデバイスにグループの指定90を付けて入力す
る。In the peripheral device 2, a sequence program 90 is created by the program editing unit 12. When the sequence program 90 is created, in order to indicate the devices related to the operation together with the device number, the device to be grouped is input with the designation 90 of the group.
【0076】つぎに、デバイス条件作成部14によりデ
バイス条件テーブル92を図7に示したフローチャート
に基づいて作成する。Next, a device condition table 92 is created by the device condition creating section 14 based on the flowchart shown in FIG.
【0077】図7において、処理が開始されると、ま
ず、全命令が完了したか否かを判断する(ステップS1
00)。ステップS100において、全命令が完了して
いると判断した場合には、そのまま本処理を終了とす
る。In FIG. 7, when the processing is started, first, it is determined whether or not all the instructions have been completed (step S1).
00). If it is determined in step S100 that all the instructions have been completed, the process ends.
【0078】これに対し、ステップS100において、
全命令が完了していないと判断した場合には、シーケン
スプログラム90より処理を行う命令を取り出し、命令
に指定されているデバイスを取り出す(ステップS10
1)。つぎに、取り出したデバイスにグループの指定9
1があるか否かを判断する(ステップS102)。On the other hand, in step S100,
If it is determined that all instructions have not been completed, an instruction to be processed is extracted from the sequence program 90, and a device specified by the instruction is extracted (step S10).
1). Next, specify the group to the extracted device 9
It is determined whether or not 1 is present (step S102).
【0079】このステップS102において、取り出し
たデバイスにグループの指定91があると判断した場合
には、デバイス条件テーブル92の該当グループに関連
デバイスとしてデバイス番号を格納する(ステップS1
03)。If it is determined in step S102 that the extracted device has a group designation 91, the device number is stored as a related device in the corresponding group of the device condition table 92 (step S1).
03).
【0080】この後に、ステップS100に戻って同様
の処理を繰り返し実行する。なお、ステップS102に
おいて、取り出したデバイスにグループの指定91がな
いと判断した場合にも、ステップS100に戻って同様
の処理を繰り返し実行する。Thereafter, the flow returns to step S100 to repeat the same processing. If it is determined in step S102 that the extracted device does not have the group designation 91, the process returns to step S100 to repeatedly execute the same processing.
【0081】上述の処理により、周辺装置2は、シーケ
ンスプログラムの全命令をスキャンし、命令に指定され
たデバイスにグループ指定記号“¥G整数”が付記され
ているか否かを判断し、同一のグループ指定のデバイス
をデバイス条件テーブル92にグループ分け登録し、デ
バイス条件テーブル92を自動作成する。With the above-described processing, the peripheral device 2 scans all the instructions of the sequence program, determines whether or not the device designated by the instruction has the group designation symbol “$ G integer” added thereto, The device designated by the group is registered in the device condition table 92 by grouping, and the device condition table 92 is automatically created.
【0082】上述のように、全ステップが完了し、デバ
イス条件テーブル92が作成されると、通信部11によ
りシーケンスプログラム90、デバイス条件テーブル9
2をプログラマブルコントローラ1Aに対して送信す
る。As described above, when all the steps are completed and the device condition table 92 is created, the sequence program 90 and the device condition table 9
2 to the programmable controller 1A.
【0083】プログラマブルコントローラ1Aでは、通
信部10により受信され、シーケンスプログラム90を
制御プログラム記憶部6に格納し、デバイス条件テーブ
ル92をデバイス条件記憶部9に格納する。In the programmable controller 1A, the sequence program 90 received by the communication unit 10 is stored in the control program storage unit 6, and the device condition table 92 is stored in the device condition storage unit 9.
【0084】プログラマブルコントローラ1Aが制御処
理を開始すると、制御実行部5および制御プログラム記
憶部6の内容に基づいて処理を実行する。When the programmable controller 1A starts the control processing, the processing is executed based on the contents of the control execution section 5 and the control program storage section 6.
【0085】このとき、故障モニタ部7は、ON/OF
F状態記憶部8にON/OFF状態テーブル93が格納
されていないと、図8に示したフローチャートに基づい
てON/OFF状態テーブル作成の処理を実行する。O
N/OFF状態テーブル作成の処理では、まず、実行ス
テップテーブル5Aより実行中のステップを取り出す
(ステップS110)。つぎに、シーケンスプログラム
90より該当するステップのデバイスを調べ、グループ
の指定91があるか否かを判断する(ステップS11
1)。ステップS111において、グループの指定91
があると判断した場合には、デバイス条件テーブル92
より、該当するグループに一致する関連デバイスを取り
出す(ステップS112)。At this time, the failure monitor unit 7 turns ON / OF
If the ON / OFF state table 93 is not stored in the F state storage unit 8, the processing for creating the ON / OFF state table is executed based on the flowchart shown in FIG. O
In the process of creating the N / OFF state table, first, the step being executed is extracted from the execution step table 5A (step S110). Next, the device of the corresponding step is checked from the sequence program 90, and it is determined whether or not there is a group designation 91 (step S11).
1). In step S111, designation of a group 91
If it is determined that there is a
Then, a related device matching the corresponding group is extracted (step S112).
【0086】その後、同一グループに属する全てのデバ
イスの状態を調べ(ステップS113)、この同一グル
ープのデバイスのON/OFF状態の組合わせををON
/OFF状態テーブル93の該当グループの位置に格納
する(ステップS114)。Thereafter, the states of all the devices belonging to the same group are checked (step S113), and the combination of the ON / OFF states of the devices of the same group is set to ON.
It is stored in the position of the corresponding group in the / OFF state table 93 (step S114).
【0087】これに対し、ステップS111において、
グループの指定91がないと判断した場合には、本処理
を終了する。On the other hand, in step S111,
If it is determined that there is no group designation 91, the process ends.
【0088】これにより、シーケンスプログラムの正常
実行下において、グループ指定されたデバイスを含むス
テップの実行時に、当該デバイスのON/OFF状態と
そのデバイスと同一グループの他のデバイスのON/O
FF状態を検索し、グループ毎のデバイスの正常時のO
N/OFF状態の組合せを検出してON/OFF状態テ
ーブル93を自動作成することが行われる。Thus, under normal execution of the sequence program, when the step including the device designated by the group is executed, the ON / OFF state of the device and the ON / OFF of another device in the same group as the device are performed.
Search the FF status and find the O
An ON / OFF state table 93 is automatically created by detecting a combination of N / OFF states.
【0089】上述のようにして、ON/OFF状態テー
ブル93が作成されると、故障モニタ部7は、図9に示
したフローチャートに基づいて処理を実行する。制御実
行部5は、シーケンスプログラム90の命令を一つ実行
するときに、故障モニタ部7を起動する。故障モニタ部
7は起動されると、まず、ON/OFF状態テーブル9
3よりグループを取り出し(ステップS120)、全グ
ループが完了したか否かを判断する(ステップS12
1)。ステップS121において、全グループが完了し
たと判断した場合には、本処理を終了する。When the ON / OFF state table 93 is created as described above, the failure monitor 7 executes processing based on the flowchart shown in FIG. The control execution unit 5 activates the failure monitor unit 7 when executing one instruction of the sequence program 90. When the failure monitor 7 is started, first, the ON / OFF state table 9
3 is extracted (step S120), and it is determined whether all groups have been completed (step S12).
1). If it is determined in step S121 that all groups have been completed, the process ends.
【0090】これに対し、ステップS121において、
全グループが完了していないと判断した場合には、関連
デバイスの現在のON/OFF状態を調べる(ステップ
S122)。その後、該関連デバイスのON/OFF状
態とON/OFF状態テーブル93に格納されているデ
バイスのON/OFF状態(正常値)とを比較し(ステ
ップS123)、その結果、異なる状態のデバイスがあ
るときには、その異なる状態のデバイスを故障デバイス
記憶部16に格納し(ステップS124)、ステップS
121に戻り、同様の処理を繰り返し実行する。On the other hand, in step S121,
If it is determined that all the groups have not been completed, the current ON / OFF state of the related device is checked (step S122). Thereafter, the ON / OFF state of the related device is compared with the ON / OFF state (normal value) of the device stored in the ON / OFF state table 93 (step S123). As a result, there is a device in a different state. In some cases, the device in the different state is stored in the failed device storage unit 16 (step S124), and
Returning to 121, the same processing is repeatedly executed.
【0091】したがって、周辺装置2のモニタ部13に
より、故障デバイス記憶部16のデータを読み出すこと
により、異なる状態のデバイスのデータがあれば、故障
が発生していることが判る。例えば、LS10が故障し
てONのままになったとき、ON/OFF状態テーブル
93では、M0がONになったとき、LS0はOFFで
あるはずなので、LS0を故障デバイスであると判断す
る。このとき、周辺装置2により故障デバイス記憶部1
6をモニタすると、故障のデバイスが、LS0であるこ
とが判るので、容易に故障の原因が判明する。Therefore, by reading data from the faulty device storage unit 16 by the monitor unit 13 of the peripheral device 2, if there is data of a device in a different state, it is known that a fault has occurred. For example, when LS10 is broken down and remains ON, in the ON / OFF state table 93, when M0 is ON, LS0 should be OFF, so LS0 is determined to be a failed device. At this time, the peripheral device 2 stores the failed device storage unit 1
By monitoring No. 6, the faulty device is found to be LS0, so that the cause of the fault can be easily found.
【0092】〔実施例3〕 つぎに、第3の実施例について説明する。この実施例に
かかるプログラマブルコントローラの故障診断システム
の構成は、図8(第2の実施例)に示した構成と同一の
ものを用い、さらに、制御対象3についても図22に示
した構成例を用いる。Third Embodiment Next, a third embodiment will be described. The configuration of the fault diagnosis system for the programmable controller according to this embodiment uses the same configuration as that shown in FIG. 8 (second embodiment), and the control target 3 has the configuration example shown in FIG. Used.
【0093】図10は、制御プログラム記憶部6に格納
されている制御プログラムを示す説明図である。図10
において、130はシーケンスプログラム1、131は
シーケンスプログラム2を示している。また、図10に
おいて、132はデバイス条件テーブルであり、デバイ
ス条件記憶部9に格納されている。また、図10におい
て、133はON/OFF状態テーブルであり、ON/
OFF状態記憶部8に格納されている。FIG. 10 is an explanatory diagram showing a control program stored in the control program storage section 6. FIG.
In the figure, 130 indicates a sequence program 1 and 131 indicates a sequence program 2. In FIG. 10, a device condition table 132 is stored in the device condition storage unit 9. In FIG. 10, reference numeral 133 denotes an ON / OFF state table.
It is stored in the OFF state storage unit 8.
【0094】この実施例では、動作に関連するデバイス
毎にシーケンスプログラム1、2が作成されており、デ
バイス条件テーブル132はその各シーケンスプログラ
ム毎にデバイスを記憶する。In this embodiment, sequence programs 1 and 2 are created for each device related to the operation, and the device condition table 132 stores a device for each sequence program.
【0095】ON/OFF状態テーブル133は、デバ
イス条件テーブル132に記憶されたシーケンスプログ
ラム毎のデバイスの正常時のON/OFF状態の組合せ
を記憶する。The ON / OFF state table 133 stores a combination of the ON / OFF state of the device in the normal state for each sequence program stored in the device condition table 132.
【0096】この実施例でのプログラマブルコントロー
ラ1Aは、各シーケンスプログラムの正常実行下におい
て、各デバイスのON/OFF状態とそのデバイスと同
一のシーケンスプログラムにおける他のデバイスのON
/OFF状態を検索し、シーケンスプログラム毎のデバ
イスの正常時のON/OFF状態の組合せを検出して上
述のON/OFF状態テーブル132を自動作成する。The programmable controller 1A in this embodiment, under the normal execution of each sequence program, turns on / off each device and turns on other devices in the same sequence program as that device.
The ON / OFF state table 132 is automatically created by retrieving the ON / OFF state, detecting the combination of the ON / OFF state of the device in the normal state for each sequence program.
【0097】図11は周辺装置2のデバイス条件作成部
14による処理動作を示すフローチャートであり、図1
2および図13は、プログラマブルコントローラ1Aに
おけるON/OFF状態テーブルの作成処理動作および
故障モニタ部7による処理動作を示すフローチャートで
ある。FIG. 11 is a flow chart showing the processing operation by the device condition creation unit 14 of the peripheral device 2, and FIG.
FIG. 2 and FIG. 13 are flowcharts showing the processing operation of creating the ON / OFF state table in the programmable controller 1A and the processing operation by the failure monitor unit 7.
【0098】つぎに、動作について説明する。Next, the operation will be described.
【0099】周辺装置2では、プログラム編集部12に
より、図10に示したシーケンスプログラム130およ
び131を作成する。なお、シーケンスプログラム13
0および131は、それぞれ分けて作成される。In the peripheral device 2, the program editing unit 12 creates the sequence programs 130 and 131 shown in FIG. The sequence program 13
0 and 131 are separately created.
【0100】つぎに、デバイス条件作成部14により、
デバイス条件テーブル132を図11に示したフローチ
ャートに基づいて作成する。デバイス条件テーブルの作
成処理では、まず、全プログラムが完了したか否かを判
断する(ステップS140)。ステップS140におい
て、全プログラムが完了したと判断した場合には、本処
理を終了する。Next, the device condition creation unit 14
The device condition table 132 is created based on the flowchart shown in FIG. In the process of creating the device condition table, first, it is determined whether or not all programs have been completed (step S140). If it is determined in step S140 that all programs have been completed, the process ends.
【0101】これに対し、ステップS140において、
全プログラムが完了していないと判断した場合には、該
当するシーケンスプログラムの全条件命令が完了したか
否かを判断する(ステップS141)。On the other hand, in step S140,
When it is determined that all the programs have not been completed, it is determined whether or not all the conditional instructions of the corresponding sequence program have been completed (step S141).
【0102】ステップS141において、該当するシー
ケンスプログラムの全条件命令が完了したと判断した場
合には、ステップS140に戻って同様の処理を繰り返
し実行する。If it is determined in step S141 that all the conditional instructions of the corresponding sequence program have been completed, the process returns to step S140 and the same processing is repeated.
【0103】これに対し、ステップS141において、
該当するシーケンスプログラムの全条件命令が完了して
いないと判断した場合には、条件命令に指定されている
デバイスを取り出す(ステップS142)。その後、デ
バイス条件テーブル132の該当プログラムグループに
関連デバイスとしてデバイスを格納し(すてS14
3)、ステップS141に戻り、同様の処理を繰り返し
実行する。On the other hand, in step S141,
When it is determined that all the conditional instructions of the corresponding sequence program have not been completed, the device designated by the conditional instruction is taken out (step S142). Thereafter, the device is stored as a related device in the corresponding program group of the device condition table 132 (step S14).
3) Returning to step S141, the same processing is repeatedly executed.
【0104】これにより、各シーケンスプログラムの正
常実行下において、各デバイスのON/OFF状態とそ
のデバイスと同一のシーケンスプログラムにおける他の
デバイスのON/OFF状態を検索し、シーケンスプロ
グラム毎のデバイスの正常時のON/OFF状態の組合
せを検出してON/OFF状態テーブル132が自動作
成される。As a result, under normal execution of each sequence program, the ON / OFF state of each device and the ON / OFF state of other devices in the same sequence program as that device are searched, and the normal state of each device for each sequence program is searched. The ON / OFF state table 132 is automatically created by detecting the ON / OFF state combination at the time.
【0105】上述のように、全シーケンスプログラムが
完了し、デバイス条件テーブル132が作成されると、
周辺装置2の通信部11によりシーケンスプログラム1
30および131、デバイス条件テーブル132をプロ
グラマブルコントローラ1Aに対して送信する。As described above, when all the sequence programs are completed and the device condition table 132 is created,
Sequence program 1 by the communication unit 11 of the peripheral device 2
30 and 131 and the device condition table 132 are transmitted to the programmable controller 1A.
【0106】プログラマブルコントローラ1Aにあって
は、デバイス条件テーブル132を通信部10が受信
し、シーケンスプログラム130および131を制御プ
ログラム記憶部6に格納し、デバイス条件テーブル13
2はデバイス条件記憶部9に格納する。In the programmable controller 1 A, the communication unit 10 receives the device condition table 132, stores the sequence programs 130 and 131 in the control program storage unit 6, and
2 is stored in the device condition storage unit 9.
【0107】プログラマブルコントローラ1Aが制御処
理を開始すると、制御実行部5および制御プログラム記
憶部6の内容に基づいて各処理を実行する。When the programmable controller 1A starts the control processing, it executes each processing based on the contents of the control execution section 5 and the control program storage section 6.
【0108】このとき、故障モニタ部7は、ON/OF
F状態記憶部8にON/OFF状態テーブル133が格
納されていないと、図12に示したフローチャートに基
づいてON/OFF状態テーブル作成の処理を実行す
る。ON/OFF状態テーブル作成の処理では、まず、
実行ステップテーブル5Aより実行中のステップを取り
出し(ステップS150)、該当するステップのプログ
ラムグループを取得する(ステップS151)。つぎ
に、デバイス条件テーブル132より、該当するプログ
ラムグループに一致する関連デバイスを取り出し(ステ
ップS152)、デバイスのON/OF状態を調べ(ス
テップS153)、そのデバイスのON/OF状態をO
N/OFF状態テーブル133の該当グループの位置に
書き込む(ステップS154)。At this time, the failure monitor unit 7 turns ON / OF
If the ON / OFF state table 133 is not stored in the F state storage unit 8, the ON / OFF state table creation processing is executed based on the flowchart shown in FIG. In the process of creating the ON / OFF state table, first,
The step being executed is extracted from the execution step table 5A (step S150), and the program group of the corresponding step is acquired (step S151). Next, a related device that matches the corresponding program group is extracted from the device condition table 132 (step S152), the ON / OF state of the device is checked (step S153), and the ON / OF state of the device is set to O.
The data is written to the position of the corresponding group in the N / OFF state table 133 (step S154).
【0109】これにより、各シーケンスプログラムの正
常実行下において、各デバイスのON/OFF状態とそ
のデバイスと同一のシーケンスプログラムにおける他の
デバイスのON/OFF状態を検索し、シーケンスプロ
グラム毎のデバイスの正常時のON/OFF状態の組合
せを検出してON/OFF状態テーブルを自動作成する
ことが行われる。Thus, under normal execution of each sequence program, the ON / OFF state of each device and the ON / OFF state of other devices in the same sequence program as that device are searched, and the normal state of each device for each sequence program is searched. An ON / OFF state table is automatically created by detecting a combination of ON / OFF states at the time.
【0110】このようにして、ON/OFF状態テーブ
ル133が作成されると、故障モニタ部7は、図13に
示したフローチャートに基づいて処理を実行する。すな
わち、制御実行部5は、シーケンスプログラムの命令を
一つ実行するときに、故障モニタ部7を起動する。故障
モニタ部7は、起動されると、ON/OFF状態テーブ
ル133より該当プログラムグループを取り出し(ステ
ップS160)、関連デバイスの現在のON/OFF状
態を調べる(ステップS161)。つぎに、該関連デバ
イスのON/OFF状態てON/OFF状態テーブル1
33に格納されているデバイスのON/OFF状態(正
常値)とを比較し(S162)、その結果、異なる状態
のデバイスがあるなら、その異なる状態のデバイスを故
障デバイス記憶部16に格納する(ステップ163)。When the ON / OFF state table 133 is created in this way, the failure monitor 7 executes processing based on the flowchart shown in FIG. That is, the control execution unit 5 activates the failure monitoring unit 7 when executing one instruction of the sequence program. When activated, the failure monitor unit 7 retrieves the corresponding program group from the ON / OFF state table 133 (step S160) and checks the current ON / OFF state of the related device (step S161). Next, the ON / OFF state of the related device and the ON / OFF state table 1
The ON / OFF state (normal value) of the device stored in the device 33 is compared with the normal state (S162). As a result, if there is a device in a different state, the device in the different state is stored in the failed device storage unit 16 ( Step 163).
【0111】したがって、周辺装置2のモニタ部13上
で、故障デバイス記憶部16のデータをモニタすれば、
停止したステップに関連する故障デバイスを直ちに確認
することができる。例えば、LS10が故障してONの
ままの状態になったとき、ON/OFF状態テーブル1
33では、M0がONになったとき、LS0はOFFで
あるはずなので、LS0を故障デバイスであると判断す
る。このとき、周辺装置2で故障デバイス部16をモニ
タすると、故障のデバイスが、LS0であることが判る
ため、容易に故障の原因が判明する。Therefore, if the data of the faulty device storage unit 16 is monitored on the monitor unit 13 of the peripheral device 2,
The failed device associated with the stopped step can be immediately identified. For example, when the LS 10 breaks down and remains in the ON state, the ON / OFF state table 1
In M33, when M0 is turned on, LS0 should be off, so LS0 is determined to be a failed device. At this time, when the faulty device unit 16 is monitored by the peripheral device 2, it is found that the faulty device is LS0, so that the cause of the fault can be easily found.
【0112】〔実施例4〕 つぎに、第4の実施例について説明する。この実施例に
かかるプログラマブルコントローラの故障診断システム
の構成は、図5(第2の実施例)に示した構成と同一の
ものを用い、さらに、制御対象3についても、図22に
示した構成例を用いる。Fourth Embodiment Next, a fourth embodiment will be described. The configuration of the fault diagnosis system for the programmable controller according to this embodiment uses the same configuration as that shown in FIG. 5 (second embodiment), and the control target 3 also has the configuration example shown in FIG. Is used.
【0113】図14は、制御プログラム記憶部6に格納
されているシーケンスプログラム例を示す説明図であ
る。図において、170はシーケンスプログラム、17
1はグループ指定したシーケンスプログラム、172は
グループ指定を示している。FIG. 14 is an explanatory diagram showing an example of a sequence program stored in the control program storage section 6. In the figure, 170 is a sequence program, 17
Reference numeral 1 denotes a sequence program designated by a group, and 172 denotes a group designation.
【0114】また、図14において、173はデバイス
条件テーブルであり、デバイス条件記憶部9に格納され
ており、さらに、174はON/OFF状態テーブルで
あり、ON/OFF状態記憶部8に格納されている。In FIG. 14, reference numeral 173 denotes a device condition table, which is stored in the device condition storage unit 9, and 174 denotes an ON / OFF state table, which is stored in the ON / OFF state storage unit 8. ing.
【0115】図15は、デバイス条件作成部14の処理
動作を示すフローチャートであり、図16および図17
は、故障モニタ部7の処理動作を示すフローチャートで
ある。FIG. 15 is a flowchart showing the processing operation of the device condition creation unit 14, and FIGS.
5 is a flowchart showing a processing operation of the failure monitor unit 7.
【0116】つぎに、動作について説明する。Next, the operation will be described.
【0117】周辺装置2では、プログラム編集部12に
より、図14に示したシーケンスプログラム170を作
成する。このシーケンスプログラム170を作成した
後、該シーケンスプログラム170の任意のデバイス番
号にグループの指定172を入力し、シーケンスプログ
ラム171を作成する。これは、グループ指定をプログ
ラム入力後、換言すれば、完成済みのシーケンスプログ
ラムに設定できることを意味する。さらに、デバイス条
件作成部14によりデバイス条件テーブル173を図1
5のフローチャートに基づいて作成する。In the peripheral device 2, the sequence editor 170 shown in FIG. 14 is created by the program editor 12. After creating the sequence program 170, the group designation 172 is input to an arbitrary device number of the sequence program 170, and the sequence program 171 is created. This means that the group designation can be set to a completed sequence program after the program is input, in other words, to a completed sequence program. Further, the device condition table 173 is stored in the device condition creation unit 14 in FIG.
5 is created based on the flowchart of FIG.
【0118】図15において、処理が開始されると、ま
ず、全命令が完了したか否かを判断する(ステップS1
80)。ステップS180において、全命令が完了して
いると判断した場合には、そのまま本処理を終了とす
る。In FIG. 15, when the process is started, first, it is determined whether or not all instructions have been completed (step S1).
80). If it is determined in step S180 that all instructions have been completed, the process ends.
【0119】これに対し、ステップS180において、
全命令が完了していないと判断した場合には、シーケン
スプログラム171より処理を行う命令を取り出し、命
令に指定されているデバイスを取り出す(ステップS1
81)。つぎに、取り出したデバイスにグループの指定
172があるか否かを判断する(ステップS182)。On the other hand, in step S180,
If it is determined that all the instructions have not been completed, an instruction to be processed is extracted from the sequence program 171 and the device specified by the instruction is extracted (step S1).
81). Next, it is determined whether or not the extracted device has a group designation 172 (step S182).
【0120】このステップS182において、取り出し
たデバイスにグループの指定172があると判断した場
合には、デバイス条件テーブル173の該当グループに
関連デバイスとしてデバイス番号を格納する(ステップ
S183)。If it is determined in step S182 that the extracted device has the group designation 172, the device number is stored as a related device in the corresponding group of the device condition table 173 (step S183).
【0121】この後に、ステップS180に戻って同様
の処理を繰り返し実行する。なお、ステップS182に
おいて、取り出したデバイスにグループの指定172が
ないと判断した場合にも、ステップS180に戻って同
様の処理を繰り返し実行する。Thereafter, the flow returns to step S180 to repeatedly execute the same processing. If it is determined in step S182 that the extracted device does not have the group designation 172, the process returns to step S180 to repeatedly execute the same processing.
【0122】上述の処理により、周辺装置2は、シーケ
ンスプログラムの全命令をスキャンし、命令に指定され
たデバイスにグループ指定記号“¥G整数”が付記され
ているか否かを判断し、同一のグループ指定のデバイス
をデバイス条件テーブル92にグループ分け登録し、デ
バイス条件テーブル173を自動作成する。By the above-described processing, the peripheral device 2 scans all the instructions of the sequence program, determines whether or not the device designated by the instruction has a group designation symbol “$ G integer” added thereto, The device designated by the group is registered as a group in the device condition table 92, and the device condition table 173 is automatically created.
【0123】上述のように、全ステップが完了し、デバ
イス条件テーブル173が作成されると、通信部11に
よりシーケンスプログラム171、デバイス条件テーブ
ル173をプログラマブルコントローラ1Aに対して送
信する。As described above, when all the steps are completed and the device condition table 173 is created, the communication unit 11 transmits the sequence program 171 and the device condition table 173 to the programmable controller 1A.
【0124】プログラマブルコントローラ1Aでは、通
信部10により受信され、シーケンスプログラム171
を制御プログラム記憶部6に格納し、デバイス条件テー
ブル173をデバイス条件記憶部9に格納する。In the programmable controller 1A, the sequence program 171
Is stored in the control program storage unit 6, and the device condition table 173 is stored in the device condition storage unit 9.
【0125】プログラマブルコントローラ1Aが制御処
理を開始すると、制御実行部5および制御プログラム記
憶部6の内容に基づいて処理を実行する。When the programmable controller 1A starts the control processing, it executes the processing based on the contents of the control execution section 5 and the control program storage section 6.
【0126】このとき、故障モニタ部7は、ON/OF
F状態記憶部8にON/OFF状態テーブル174が格
納されていないと、図16に示したフローチャートに基
づいてON/OFF状態テーブル作成の処理を実行す
る。ON/OFF状態テーブル作成の処理では、まず、
実行ステップテーブル5Aより実行中のステップを取り
出す(ステップS190)。つぎに、シーケンスプログ
ラム90より該当するステップのデバイスを調べ、グル
ープの指定172があるか否かを判断する(ステップS
191)。ステップS191において、グループの指定
172があると判断した場合には、デバイス条件テーブ
ル92より、該当するグループに一致する関連デバイス
を取り出す(ステップS192)。At this time, the failure monitor unit 7 turns ON / OF
If the ON / OFF state table 174 is not stored in the F state storage unit 8, processing for creating the ON / OFF state table is executed based on the flowchart shown in FIG. In the process of creating the ON / OFF state table, first,
The step being executed is extracted from the execution step table 5A (step S190). Next, the device of the corresponding step is checked from the sequence program 90, and it is determined whether or not there is a group designation 172 (step S).
191). If it is determined in step S191 that there is a group designation 172, a related device matching the corresponding group is extracted from the device condition table 92 (step S192).
【0127】その後、同一グループに属する全てのデバ
イスの状態を調べ(ステップS193)、この同一グル
ープのデバイスのON/OFF状態をON/OFF状態
テーブル174の該当グループの位置に格納する(ステ
ップS194)。Thereafter, the states of all the devices belonging to the same group are checked (step S193), and the ON / OFF states of the devices of the same group are stored in the ON / OFF state table 174 at the corresponding group positions (step S194). .
【0128】なお、ステップS191において、グルー
プの指定172がないと判断した場合には、本処理を終
了する。If it is determined in step S191 that there is no group designation 172, the present process is terminated.
【0129】これにより、シーケンスプログラムの正常
実行下において、グループ指定されたデバイスを含むス
テップの実行時に、当該デバイスのON/OFF状態と
そのデバイスと同一グループの他のデバイスのON/O
FF状態を検索し、グループ毎のデバイスの正常時のO
N/OFF状態の組合せを検出してON/OFF状態テ
ーブル174を自動作成することが行われる。Thus, under normal execution of the sequence program, when a step including a device designated by a group is executed, the ON / OFF state of the device and the ON / OFF of another device in the same group as that device are performed.
Search the FF status and find the O
An ON / OFF state table 174 is automatically created by detecting a combination of N / OFF states.
【0130】上述のようにして、ON/OFF状態テー
ブル174が作成されると、故障モニタ部7は、図17
に示したフローチャートに基づいて処理を実行する。制
御実行部5は、シーケンスプログラム171の命令を一
つ実行するときに、故障モニタ部7を起動する。故障モ
ニタ部7は起動されると、まず、ON/OFF状態テー
ブル174よりグループを取り出し(ステップS20
0)、全グループが完了したか否かを判断する(ステッ
プS201)。ステップS201において、全グループ
が完了したと判断した場合には、本処理を終了する。When the ON / OFF state table 174 is created as described above, the failure monitor 7
The processing is executed based on the flowchart shown in FIG. The control execution unit 5 activates the failure monitor unit 7 when executing one instruction of the sequence program 171. When the failure monitor unit 7 is started, first, the group is extracted from the ON / OFF state table 174 (step S20).
0), it is determined whether all groups have been completed (step S201). If it is determined in step S201 that all groups have been completed, the process ends.
【0131】これに対し、ステップS201において、
全グループが完了していないと判断した場合には、関連
デバイスの現在のON/OFF状態を調べる(ステップ
S202)。その後、該関連デバイスのON/OFF状
態とON/OFF状態テーブル174に格納されている
デバイスのON/OFF状態(正常値)とを比較し(ス
テップS203)、その結果、異なる状態のデバイスが
あるときには、その異なる状態のデバイスを故障デバイ
ス記憶部16に格納し(ステップS204)、ステップ
S201に戻り、同様の処理を繰り返し実行する。On the other hand, in step S201,
If it is determined that all the groups have not been completed, the current ON / OFF state of the related device is checked (step S202). Thereafter, the ON / OFF state of the related device is compared with the ON / OFF state (normal value) of the device stored in the ON / OFF state table 174 (step S203). As a result, there is a device in a different state. In some cases, the devices in the different states are stored in the failed device storage unit 16 (step S204), and the process returns to step S201 to repeat the same processing.
【0132】したがって、周辺装置2のモニタ部13に
より、故障デバイス記憶部16のデータを読み出すこと
により、異なる状態のデバイスのデータがあれば、故障
が発生していることが判る。例えば、LS10が故障し
てONのままになったとき、ON/OFF状態テーブル
174では、M0がONになったとき、LS0はOFF
であるはずなので、LS0を故障デバイスであると判断
する。このとき、周辺装置2により故障デバイス記憶部
16をモニタすると、故障のデバイスが、LS0である
ことが判るので、容易に故障の原因が判明する。Therefore, by reading data from the faulty device storage unit 16 by the monitor unit 13 of the peripheral device 2, if there is data of a device in a different state, it can be determined that a fault has occurred. For example, when LS10 fails and remains ON, in the ON / OFF state table 174, when M0 turns ON, LS0 turns OFF.
Therefore, LS0 is determined to be a failed device. At this time, when the faulty device storage unit 16 is monitored by the peripheral device 2, it is found that the faulty device is LS0, so that the cause of the fault can be easily found.
【0133】〔実施例5〕 つぎに、第5の実施例について説明する。図18は、こ
の実施例にかかるプログラマブルコントローラの故障診
断システムの概略構成を示すブロック図である。Embodiment 5 Next, a fifth embodiment will be described. FIG. 18 is a block diagram illustrating a schematic configuration of a failure diagnosis system for a programmable controller according to this embodiment.
【0134】図18において、1Bはプログラマブルコ
ントローラ(PC1〜PCn)であり、上述の第1〜第
4の実施例の何れかのプログラマブルコントローラと同
様の構成をなしている。2Aはネットワークにより接続
された複数のプログラマブルコントローラ1〜n(1
B)と接続して、それらを制御する周辺装置、11はプ
ログラマブルコントローラ1〜n(1B)との通信部、
12はプログラム編集部、13Aはモニタ部、14はデ
バイス条件作成部、15は画面/キー入力部である。こ
の場合、プログラマブルコントローラ1〜n(1B)は
固有の番号(1〜n)付けされて周辺装置2Aと通信可
能に接続される。In FIG. 18, reference numeral 1B denotes a programmable controller (PC1 to PCn) which has the same configuration as any of the programmable controllers of the first to fourth embodiments. 2A is a plurality of programmable controllers 1 to n (1
B) a peripheral device connected to and controlling them, 11 is a communication unit with the programmable controllers 1 to n (1B),
12 is a program editing unit, 13A is a monitor unit, 14 is a device condition creation unit, and 15 is a screen / key input unit. In this case, the programmable controllers 1 to n (1B) are assigned unique numbers (1 to n) and communicably connected to the peripheral device 2A.
【0135】図19はモニタ部13Aの処理動作を示す
フローチャートであり、図20は故障時における周辺装
置2Aが表示する表示画面の例を示す。なお、この実施
例における制御対象は図22に示した構成と同様のもの
とする。FIG. 19 is a flowchart showing the processing operation of the monitor unit 13A, and FIG. 20 shows an example of a display screen displayed by the peripheral device 2A at the time of failure. The control target in this embodiment is the same as the configuration shown in FIG.
【0136】つぎに、動作について説明する。Next, the operation will be described.
【0137】この実施例において、プログラマブルコン
トローラ1〜n(1B)は、上述の第1〜4の実施例に
おいて説明した何れかの処理に基づいて、シーケンスプ
ログラムおよびON/OFF状態テーブルを作成され
る。そして、この状態において、プログラマブルコント
ローラ1〜n(1B)は制御処理を実行する。In this embodiment, the programmable controllers 1 to n (1B) create a sequence program and an ON / OFF state table based on any of the processes described in the first to fourth embodiments. . Then, in this state, the programmable controllers 1 to n (1B) execute control processing.
【0138】周辺装置2Aは、モニタ部13Aが通信部
11を介して図19に示したフローチャートに基づいて
プログラマブルコントローラ1〜n(1B)の故障をモ
ニタする。すなわち、図19のフローチャートにおい
て、まず、プログラマブルコントローラnの故障デバイ
ス記憶部16のデータを読み出し(ステップS22
0)、データがあるか否かを判断する(ステップS22
1)。In the peripheral device 2A, the monitor unit 13A monitors the programmable controllers 1 to n (1B) via the communication unit 11 based on the flowchart shown in FIG. That is, in the flowchart of FIG. 19, first, the data in the failed device storage unit 16 of the programmable controller n is read (step S22).
0), it is determined whether or not there is data (step S22)
1).
【0139】このステップS221において、データが
あると判断した場合には、そのデータを画面に表示する
(ステップS222)。なお、この場合における画面表
示は、例えば、図20に示すような画面であり、故障P
C番号、故障デバイス、デバイスの故障状態をそれぞれ
表示する。If it is determined in step S221 that there is data, the data is displayed on the screen (step S222). The screen display in this case is, for example, a screen as shown in FIG.
The C number, the failure device, and the failure state of the device are displayed.
【0140】つぎに、nの番号をつぎのPC番号にした
後(ステップS223)、ステップS220に戻って同
様の処理を繰り返し実行する。Next, after the number of n is set to the next PC number (step S223), the process returns to step S220 and the same processing is repeatedly executed.
【0141】これに対し、ステップS221において、
データがないと判断した場合には、ステップS223に
進んで、同様の処理を繰り返し実行する。On the other hand, in step S221,
If it is determined that there is no data, the process proceeds to step S223, and the same processing is repeatedly executed.
【0142】上述の処理により、例えば、プログラマブ
ルコントローラ1のLS0がONしているとき、周辺装
置2Aの画面には、図20のような表示がなされるた
め、接続されているどのプログラマブルコントローラの
どこのデバイスが故障しているかが、一台の周辺装置2
Aにより容易に判断することができる。According to the above-described processing, for example, when LS0 of the programmable controller 1 is ON, a display as shown in FIG. 20 is displayed on the screen of the peripheral device 2A. One of the peripheral devices 2
A can be easily determined.
【0143】[0143]
【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラによれば、SFC
言語で記述されたシーケンスプログラムのステップ間に
おいて関連するデバイスのデータとして、シーケンシャ
ルファンクションチャートの各ステップ毎に、次ステッ
プへの移行条件で使用しているデバイスを記憶すると共
に、そのデバイスを他のステップで使用している場合に
は、そのステップより次ステップへの移行条件で使用し
ているデバイスを併せて記憶したデバイス条件テーブル
を使用し、制御対象に故障が発生したとき、デバイス条
件テーブルに記憶されているデバイスに基づいて故障検
出手段が故障箇所を検出するから、プログラムのステッ
プ間において関連するデバイスを使用したときにも、故
障のデバイスを特別なプログラムを作成せずに容易に判
断することができる。As can be understood from the above description, according to the programmable controller of the present invention, the SFC
For each step in the sequential function chart, the device used in the transition condition to the next step is stored as device data related between the steps of the sequence program described in the language, and the device is stored in another step. If a failure occurs in the control target, use the device condition table that stores the devices used in the transition condition from that step to the next step. Since the failure detection means detects a failure location based on the device that has been used, it is easy to determine a failed device without creating a special program even when a related device is used between steps of a program. Can be.
【0144】つぎの発明によるプログラマブルコントロ
ーラの周辺装置によれば、デバイス条件作成手段が、シ
ーケンシャルファンクションチャートの各ステップ毎
に、次ステップへの移行条件で使用しているデバイスを
デバイス条件テーブルに書き込み、そのデバイスを他の
ステップで使用しているか否かを調査し、他のステップ
で使用している場合には、そのステップより次ステップ
への移行条件で使用しているデバイスを併せてデバイス
条件テーブルに書き込んでデバイス条件テーブルを自動
作成するから、デバイス条件テーブルが、人手を煩わす
ことなく、しかも間違いなく作成され、正確な故障検出
を行うことができる。According to the peripheral device of the programmable controller according to the next invention, the device condition creation means writes, in each step of the sequential function chart, a device used under the condition for shifting to the next step in the device condition table, Investigate whether the device is used in another step, and if it is used in another step, add the device used in the transition condition from that step to the next step together with the device condition table To automatically create the device condition table, the device condition table can be created without any trouble and without mistake, and accurate failure detection can be performed.
【0145】つぎの発明によるプログラマブルコントロ
ーラによれば、ラダー言語等で記述されたシーケンスプ
ログラムのステップ間において関連するデバイスのデー
タとして、シーケンスプログラムのデバイスを動作に関
連するものどうしでグループ分けされていて、その各グ
ループ毎にデバイスを記憶したデバイス条件テーブルが
デバイス条件記憶手段に格納され、デバイス条件テーブ
ルに記憶されたグループ毎のデバイスの正常時のON/
OFF状態の組合せを記憶するON/OFF状態テーブ
ルがON/OFF状態記憶手段に格納され、ON/OF
F状態記憶手段に記憶されているON/OFF状態の組
合せに基づいて故障検出手段が故障箇所を検出するか
ら、プログラムのステップ間において関連するデバイス
を使用したときにも、故障のデバイスを特別なプログラ
ムを作成せずに容易に判断することができる。According to the programmable controller of the next invention, the device of the sequence program is grouped by the devices related to the operation as the data of the device related between the steps of the sequence program described in the ladder language or the like. The device condition table storing the device for each group is stored in the device condition storage means, and the normal ON / OFF state of the device for each group stored in the device condition table is stored.
An ON / OFF state table storing the combination of OFF states is stored in the ON / OFF state storage means,
Since the failure detecting means detects the failure location based on the combination of the ON / OFF states stored in the F state storage means, even when the related device is used between the steps of the program, the failure device is specially identified. It can be easily determined without creating a program.
【0146】つぎの発明によるプログラマブルコントロ
ーラによれば、シーケンスプログラムの正常実行下にお
いて、グループ指定されたデバイスを含むステップの実
行時に、当該デバイスのON/OFF状態とそのデバイ
スと同一グループの他のデバイスのON/OFF状態を
検索し、グループ毎のデバイスの正常時のON/OFF
状態の組合せを検出してON/OFF状態テーブルを自
動作成するから、ON/OFF状態テーブルが、人手を
煩わすことなく、しかも間違いなく作成され、正確な故
障検出を行うことができる。According to the programmable controller of the next invention, when a step including a device designated by a group is executed under normal execution of a sequence program, the ON / OFF state of the device and other devices in the same group as the device The ON / OFF status of the device is searched, and the ON / OFF status of the device for each group in the normal state
Since the ON / OFF state table is automatically created by detecting the combination of states, the ON / OFF state table is created without any trouble and without mistake, and accurate failure detection can be performed.
【0147】つぎの発明によるプログラマブルコントロ
ーラの周辺装置によれば、デバイス条件作成手段が、シ
ーケンスプログラムの全命令をスキャンし、命令に指定
されたデバイスにグループ指定記号が付記されているか
否かを判断し、同一のグループ指定のデバイスをデバイ
ス条件テーブルにグループ分け登録し、デバイス条件テ
ーブルを自動作成するから、デバイス条件テーブルが、
人手を煩わすことなく、しかも間違いなく作成され、正
確な故障検出を行うことができる。According to the peripheral device of the programmable controller according to the next invention, the device condition creating means scans all the instructions of the sequence program and determines whether or not the device designated by the instruction has a group designation symbol added thereto. Then, the device specified by the same group is registered as a group in the device condition table, and the device condition table is automatically created.
It can be created without any trouble and without mistake, and accurate failure detection can be performed.
【0148】つぎの発明によるプログラマブルコントロ
ーラによれば、動作に関連するデバイス毎にシーケンス
プログラムが作成されていて、各シーケンスプログラム
毎にデバイスを記憶したデバイス条件テーブルがデバイ
ス条件記憶手段に格納され、デバイス条件記憶手段に格
納されているデバイス条件テーブルに記憶されたシーケ
ンスプログラム毎のデバイスの正常時のON/OFF状
態の組合せを記憶するON/OFF状態テーブルがON
/OFF状態記憶手段に格納され、ON/OFF状態記
憶手段に記憶されているON/OFF状態の組合せに基
づいて故障検出手段が故障箇所を検出するから、プログ
ラムのステップ間において関連するデバイスを使用した
ときにも、故障のデバイスを特別なプログラムを作成せ
ずに容易に判断することができる。According to the programmable controller of the next invention, a sequence program is created for each device related to the operation, and a device condition table storing devices for each sequence program is stored in the device condition storage means. An ON / OFF state table that stores a combination of ON / OFF states of the devices at normal times for each sequence program stored in the device condition table stored in the condition storage unit is ON.
Since the failure detection means detects a failure location based on a combination of ON / OFF states stored in the ON / OFF state storage means, the related device is used between steps of the program. In this case, the faulty device can be easily determined without creating a special program.
【0149】つぎの発明によるプログラマブルコントロ
ーラによれば、各シーケンスプログラムの正常実行下に
おいて、各デバイスのON/OFF状態とそのデバイス
と同一のシーケンスプログラムにおける他のデバイスの
ON/OFF状態を検索し、シーケンスプログラム毎の
デバイスの正常時のON/OFF状態の組合せを検出し
てON/OFF状態テーブルを自動作成するから、ON
/OFF状態テーブルが、人手を煩わすことなく、しか
も間違いなく作成され、正確な故障検出を行うことがで
きる。According to the programmable controller of the next invention, under normal execution of each sequence program, the ON / OFF state of each device and the ON / OFF state of other devices in the same sequence program as that device are searched. The ON / OFF state table is automatically created by detecting the normal ON / OFF state combination of devices for each sequence program.
The / OFF state table is created without any trouble and without mistake, and accurate failure detection can be performed.
【0150】つぎの発明によるプログラマブルコントロ
ーラの周辺装置によれば、デバイス条件作成手段が、各
シーケンスプログラムの全命令をスキャンし、命令に指
定されたデバイスを各シーケンスプログラム毎に登録
し、デバイス条件テーブルを自動作成するから、デバイ
ス条件テーブルが、人手を煩わすことなく、しかも間違
いなく作成され、正確な故障検出を行うことができる。According to the peripheral device of the programmable controller according to the next invention, the device condition creating means scans all the instructions of each sequence program, registers the device designated by the instruction for each sequence program, and registers the device condition table. Is automatically created, the device condition table is created without any trouble and without mistake, and accurate failure detection can be performed.
【0151】つぎの発明によるプログラマブルコントロ
ーラの周辺装置によれば、複数のプログラマブルコント
ローラが固有の番号付けされて通信可能に接続され、プ
ログラマブルコントローラよりの故障箇所の通知によ
り、モニタ手段に通知元のプログラマブルコントローラ
の番号と故障箇所を表示するから、接続されているどの
プログラマブルコントローラのどこのデバイスが故障し
ているかが、一台の周辺装置により容易に判断すること
ができる。According to the peripheral device of the programmable controller according to the next invention, a plurality of programmable controllers are connected to each other with a unique number and are communicable with each other. Since the controller number and the failure location are displayed, it is possible to easily determine which device of which connected programmable controller has failed by using one peripheral device.
【図1】 この発明にかかるプログラマブルコントロー
ラの故障診断システムの概略構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a schematic configuration of a failure diagnosis system for a programmable controller according to the present invention.
【図2】 この発明にかかるシーケンスコントローラの
内部テーブルを示す説明図である。FIG. 2 is an explanatory diagram showing an internal table of a sequence controller according to the present invention.
【図3】 この発明にかかるシーケンスコントローラに
よるデバイス条件作成部の処理動作を示すフローチャー
トである。FIG. 3 is a flowchart showing a processing operation of a device condition creation unit by a sequence controller according to the present invention.
【図4】 この発明にかかるシーケンスコントローラに
よる故障モニタ部の処理動作を示すフローチャートであ
る。FIG. 4 is a flowchart showing a processing operation of a failure monitor unit by a sequence controller according to the present invention.
【図5】 この発明にかかるプログラマブルコントロー
ラの故障診断システムの他の概略構成を示すブロック図
である。FIG. 5 is a block diagram showing another schematic configuration of the failure diagnosis system for the programmable controller according to the present invention.
【図6】 この発明にかかる制御プログラム記憶部に格
納されている制御プログラムの一例と内部テーブルを示
す説明図である。FIG. 6 is an explanatory diagram showing an example of a control program stored in a control program storage unit and an internal table according to the present invention.
【図7】 この発明にかかるデバイス条件作成部による
処理動作を示すフローチャートである。FIG. 7 is a flowchart showing a processing operation by a device condition creation unit according to the present invention.
【図8】 この発明にかかる故障モニタ部による処理動
作を示すフローチャートである。FIG. 8 is a flowchart showing a processing operation by a failure monitor unit according to the present invention.
【図9】 この発明にかかる故障モニタ部による処理動
作を示すフローチャートである。FIG. 9 is a flowchart showing a processing operation by a failure monitor unit according to the present invention.
【図10】 この発明にかかる制御プログラム記憶部に
格納されている制御プログラムを示す説明図である。FIG. 10 is an explanatory diagram showing a control program stored in a control program storage unit according to the present invention.
【図11】 この発明にかかるデバイス条件作成部の処
理動作を示すフローチャートである。FIG. 11 is a flowchart illustrating a processing operation of a device condition creation unit according to the present invention.
【図12】 この発明にかかる故障モニタ部の処理動作
を示すフローチャートである。FIG. 12 is a flowchart showing a processing operation of a failure monitor unit according to the present invention.
【図13】 この発明にかかる故障モニタ部の処理動作
を示すフローチャートである。FIG. 13 is a flowchart showing a processing operation of a failure monitor unit according to the present invention.
【図14】 この発明にかかる制御プログラム記憶部に
格納されている制御プログラム例を示す説明図である。FIG. 14 is an explanatory diagram illustrating an example of a control program stored in a control program storage unit according to the present invention.
【図15】 この発明にかかるデバイス条件作成部の処
理動作を示すフローチャートである。FIG. 15 is a flowchart showing a processing operation of a device condition creation unit according to the present invention.
【図16】 この発明にかかる故障モニタ部の処理動作
を示すフローチャートである。FIG. 16 is a flowchart showing a processing operation of a failure monitor unit according to the present invention.
【図17】 この発明にかかる故障モニタ部の処理動作
を示すフローチャートである。FIG. 17 is a flowchart showing a processing operation of a failure monitor unit according to the present invention.
【図18】 この発明にかかるプログラマブルコントロ
ーラの故障診断システムの他の概略構成を示すブロック
図である。FIG. 18 is a block diagram showing another schematic configuration of the failure diagnosis system for the programmable controller according to the present invention.
【図19】 この発明にかかるモニタ部の処理動作を示
すフローチャートである。FIG. 19 is a flowchart showing a processing operation of a monitor unit according to the present invention.
【図20】 この発明にかかる故障時における周辺装置
が表示する表示画面を示す説明図である。FIG. 20 is an explanatory diagram showing a display screen displayed by a peripheral device at the time of failure according to the present invention.
【図21】 従来におけるプログラマブルコントローラ
の故障診断システムの概略構成を示すブロック図であ
る。FIG. 21 is a block diagram showing a schematic configuration of a conventional fault diagnosis system for a programmable controller.
【図22】 プログラマブルコントローラが制御する制
御対象の構成例を示す説明図である。FIG. 22 is an explanatory diagram showing a configuration example of a control target controlled by a programmable controller.
【図23】 制御対象を制御するSFCプログラムの構
成例を示す説明図である。FIG. 23 is an explanatory diagram illustrating a configuration example of an SFC program that controls a control target.
【図24】 制御対象を制御するSFCプログラムのプ
ログラムテーブルを示す説明図である。FIG. 24 is an explanatory diagram showing a program table of an SFC program for controlling a control target.
【図25】 従来における制御実行部の処理動作を示す
フローチャートである。FIG. 25 is a flowchart illustrating a processing operation of a conventional control execution unit.
【図26】 従来におけるステップ動作プログラムおよ
び移行条件プログラムテーブルを作成するための周辺装
置の表示画面を示す説明図である。FIG. 26 is an explanatory diagram showing a display screen of a peripheral device for creating a conventional step operation program and transition condition program table.
1,1A,1B プログラマブルコントローラ、2,2
A 周辺装置、3 制御対象、7 故障モニタ部、8
ON/OFF状態記憶部、9 デバイス条件記憶部、1
2 プログラム編集部、14 デバイス条件作成部、3
0 SFCプログラム、90,130,131,17
0,171 シーケンスプログラム、91グループの指
定、172 グループ指定。1, 1A, 1B Programmable controller, 2, 2
A Peripheral device, 3 control target, 7 failure monitor section, 8
ON / OFF state storage unit, 9 device condition storage unit, 1
2 Program editor, 14 Device condition generator, 3
0 SFC program, 90, 130, 131, 17
0,171 Sequence program, 91 group designation, 172 group designation.
Claims (9)
で記述されたシーケンスプログラムを実行するプログラ
マブルコントローラにおいて、 シーケンシャルファンクションチャートの各ステップ毎
に、次ステップへの移行条件で使用しているデバイスを
記憶すると共に、そのデバイスを他のステップで使用し
ている場合には、そのステップより次ステップへの移行
条件で使用しているデバイスを併せて記憶したデバイス
条件テーブルを格納するデバイス条件記憶手段と、 制御対象に故障が発生したとき、前記デバイス条件記憶
手段に記憶されているデバイスに基づいて故障箇所を検
出する故障検出手段と、 を有していることを特徴とするプログラマブルコントロ
ーラ。1. A programmable controller for executing a sequence program described in a sequential function chart, wherein, for each step of the sequential function chart, a device used under a condition for transition to the next step is stored, and the device is stored in a memory. If it is used in another step, a device condition storage means that stores a device condition table that also stores the devices used in the transition condition from that step to the next step, and a failure occurs in the control target And a failure detection means for detecting a failure location based on the device stored in the device condition storage means.
ローラの周辺装置において、 シーケンシャルファンクションチャートの各ステップ毎
に、次ステップへの移行条件で使用しているデバイスを
デバイス条件テーブルに書き込み、そのデバイスを他の
ステップで使用しているか否かを調査し、他のステップ
で使用している場合には、そのステップより次ステップ
への移行条件で使用しているデバイスを併せてデバイス
条件テーブルに書き込んでデバイス条件テーブルを自動
作成するデバイス条件作成手段を有しており、 前記デバイス条件作成手段によって作成されたデバイス
条件テーブルを通信手段によってプログラマブルコント
ローラに送信することを特徴とするプログラマブルコン
トローラの周辺装置。2. The peripheral device for a programmable controller according to claim 1, wherein a device used in a transition condition to a next step is written in a device condition table for each step of the sequential function chart, and the device is stored in another device condition table. Investigate whether or not it is used in the step, and if it is used in another step, write the device used in the transition condition from that step to the next step together with the device condition table and write it to the device condition table A peripheral device for a programmable controller, comprising: device condition creation means for automatically creating a condition table; and transmitting the device condition table created by the device condition creation means to the programmable controller by a communication means.
ラマブルコントローラにおいて、 シーケンスプログラムのデバイスを動作に関連するもの
どうしでグループ分けされていて、その各グループ毎に
デバイスを記憶したデバイス条件テーブルを格納するデ
バイス条件記憶手段と、 前記デバイス条件記憶手段に格納されているデバイス条
件テーブルに記憶されたグループ毎のデバイスの正常時
のON/OFF状態の組合せを記憶するON/OFF状
態テーブルを格納するON/OFF状態記憶手段と、 前記ON/OFF状態記憶手段に記憶されているON/
OFF状態の組合せに基づいて故障箇所を検出する故障
検出手段と、 を有していることを特徴とするプログラマブルコントロ
ーラ。3. A programmable controller for executing a sequence program, wherein device devices of the sequence program are grouped into groups related to operation, and a device condition table storing a device condition table storing devices for each group is stored. Means; and an ON / OFF state storage for storing an ON / OFF state table for storing a combination of ON / OFF states of devices in a normal state for each group stored in a device condition table stored in the device condition storage means. And ON / OFF stored in the ON / OFF state storage means.
A fault detecting means for detecting a fault location based on a combination of OFF states.
いて、グループ指定されたデバイスを含むステップの実
行時に、当該デバイスのON/OFF状態とそのデバイ
スと同一グループの他のデバイスのON/OFF状態を
検索し、グループ毎のデバイスの正常時のON/OFF
状態の組合せを検出してON/OFF状態テーブルを自
動作成することを特徴とする請求項3に記載のプログラ
マブルコントローラ。4. Under normal execution of a sequence program, when executing a step including a device designated by a group, the ON / OFF state of the device and the ON / OFF state of another device in the same group as the device are searched. ON / OFF of devices in each group during normal operation
4. The programmable controller according to claim 3, wherein a combination of states is detected and an ON / OFF state table is automatically created.
ルコントローラの周辺装置において、 シーケンスプログラムの全命令をスキャンし、命令に指
定されたデバイスにグループ指定記号が付記されている
か否かを判断し、同一のグループ指定のデバイスをデバ
イス条件テーブルにグループ分け登録し、デバイス条件
テーブルを自動作成するデバイス条件作成手段を有して
おり、 前記デバイス条件作成手段によって作成されたデバイス
条件テーブルを通信手段によってプログラマブルコント
ローラに送信することを特徴とするプログラマブルコン
トローラの周辺装置。5. The peripheral device of the programmable controller according to claim 3, wherein all instructions of the sequence program are scanned, and it is determined whether or not a device designated by the instruction has a group designation symbol added thereto. Device condition creating means for automatically creating a device condition table by registering devices designated by the same group in the device condition table, and programming the device condition table created by the device condition creating means by communication means A peripheral device for a programmable controller, which is transmitted to the controller.
ラマブルコントローラにおいて、 動作に関連するデバイス毎にシーケンスプログラムが作
成されていて、各シーケンスプログラム毎にデバイスを
記憶したデバイス条件テーブルを格納するデバイス条件
記憶手段と、 前記デバイス条件記憶手段に格納されているデバイス条
件テーブルに記憶されたシーケンスプログラム毎のデバ
イスの正常時のON/OFF状態の組合せを記憶するO
N/OFF状態テーブルを格納するON/OFF状態記
憶手段と、 前記ON/OFF状態記憶手段に記憶されているON/
OFF状態の組合せに基づいて故障箇所を検出する故障
検出手段と、 を有していることを特徴とするプログラマブルコントロ
ーラ。6. A programmable controller for executing a sequence program, wherein a sequence program is created for each device related to an operation, and device condition storage means for storing a device condition table storing a device for each sequence program; O for storing a combination of the normal ON / OFF states of the devices for each sequence program stored in the device condition table stored in the device condition storage means
ON / OFF state storage means for storing an N / OFF state table; and ON / OFF state information stored in the ON / OFF state storage means.
A fault detecting means for detecting a fault location based on a combination of OFF states.
おいて、各デバイスのON/OFF状態とそのデバイス
と同一のシーケンスプログラムにおける他のデバイスの
ON/OFF状態を検索し、シーケンスプログラム毎の
デバイスの正常時のON/OFF状態の組合せを検出し
てON/OFF状態テーブルを自動作成することを特徴
とする請求項6に記載のプログラマブルコントローラ。7. Under normal execution of each sequence program, an ON / OFF state of each device and an ON / OFF state of another device in the same sequence program as the device are searched, and when each device of each sequence program is normal. 7. The programmable controller according to claim 6, wherein an ON / OFF state table is automatically created by detecting a combination of ON / OFF states of the controller.
ルコントローラの周辺装置において、 各シーケンスプログラムの全命令をスキャンし、命令に
指定されたデバイスを各シーケンスプログラム毎に登録
し、デバイス条件テーブルを自動作成するデバイス条件
作成手段を有しており、 前記デバイス条件作成手段によって作成されたデバイス
条件テーブルを通信手段によってプログラマブルコント
ローラに送信することを特徴とするプログラマブルコン
トローラの周辺装置。8. The peripheral device for a programmable controller according to claim 3, wherein all instructions of each sequence program are scanned, a device specified by the instruction is registered for each sequence program, and a device condition table is automatically set. A peripheral device for a programmable controller, comprising device condition creating means for creating, and transmitting the device condition table created by the device condition creating means to the programmable controller by communication means.
複数のプログラマブルコントローラが固有の番号付けさ
れて通信可能に接続され、プログラマブルコントローラ
よりの故障箇所の通知により、通知元のプログラマブル
コントローラの番号と故障箇所を表示するモニタ手段を
有していることを特徴とするプログラマブルコントロー
ラの周辺装置。9. A plurality of programmable controllers according to claim 1, 2, 3, 6, or 7, each of which is uniquely numbered and communicably connected to each other. A peripheral device for a programmable controller, comprising monitor means for displaying a controller number and a failure location.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5196400A JP2905051B2 (en) | 1993-08-06 | 1993-08-06 | Programmable controllers and peripherals |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5196400A JP2905051B2 (en) | 1993-08-06 | 1993-08-06 | Programmable controllers and peripherals |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0749705A JPH0749705A (en) | 1995-02-21 |
| JP2905051B2 true JP2905051B2 (en) | 1999-06-14 |
Family
ID=16357243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5196400A Expired - Fee Related JP2905051B2 (en) | 1993-08-06 | 1993-08-06 | Programmable controllers and peripherals |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2905051B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2020024681A (en) * | 2018-07-31 | 2020-02-13 | キヤノン株式会社 | Production system and article manufacturing method |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5970944B2 (en) * | 2012-05-08 | 2016-08-17 | 株式会社ジェイテクト | Sequence circuit confirmation device |
-
1993
- 1993-08-06 JP JP5196400A patent/JP2905051B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2020024681A (en) * | 2018-07-31 | 2020-02-13 | キヤノン株式会社 | Production system and article manufacturing method |
| JP7328031B2 (en) | 2018-07-31 | 2023-08-16 | キヤノン株式会社 | Information processing device, information processing system, display device, display control method, information processing system, information processing system control method, article manufacturing method, program and recording medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0749705A (en) | 1995-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5107500A (en) | Diagnostic expert system | |
| KR900001033B1 (en) | Sequence controller | |
| EP0401816A2 (en) | Plant operation supporting method | |
| KR100312355B1 (en) | Self-diagnosis method and its control device | |
| JP5039428B2 (en) | Programmable controller and PLC system | |
| CA1231422A (en) | Method and apparatus for recovering normality in moving sequence of machinery | |
| US4425630A (en) | Sequence instruction display system | |
| JP2608593B2 (en) | Failure diagnosis method | |
| EP1624352B1 (en) | Manual restart learning process and manual restart process for an automated system | |
| JP2905051B2 (en) | Programmable controllers and peripherals | |
| EP0198170A2 (en) | A monitor circuit | |
| HK1006043A1 (en) | Sequence controller including error correction and method therefor | |
| EP0435139B1 (en) | A programmable controller for executing SFC language programs | |
| JP3359562B2 (en) | Display screen creation method for programmable display device | |
| HK1007011B (en) | A programmable controller for executing sfc language programs | |
| JPH0577143A (en) | Failure diagnosis device for automated line | |
| JPH07210683A (en) | Image processing device | |
| US5263170A (en) | Monitor circuit for detecting noise conditions through input output coincidence comparison | |
| JP3734379B2 (en) | Display panel | |
| JPS6184712A (en) | programmable controller | |
| JPH09160702A (en) | Method and device for reproducing operation of supervisory control program | |
| JPH0371209A (en) | Abnormality detector for numerical control program | |
| JP2001005517A (en) | Control program monitoring method and device | |
| JP3514168B2 (en) | Monitoring control device, monitoring control method, and recording medium storing monitoring program | |
| JPH09222911A (en) | NC machine tool failure diagnosis method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |