JPH03222007A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH03222007A JPH03222007A JP2017182A JP1718290A JPH03222007A JP H03222007 A JPH03222007 A JP H03222007A JP 2017182 A JP2017182 A JP 2017182A JP 1718290 A JP1718290 A JP 1718290A JP H03222007 A JPH03222007 A JP H03222007A
- Authority
- JP
- Japan
- Prior art keywords
- error
- display
- stored
- flag
- storage section
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000004092 self-diagnosis Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Programmable Controllers (AREA)
Abstract
Description
本発明は、プログラマブルコントローラに関するもので
ある。The present invention relates to a programmable controller.
従来より、プログラムの実行中にエラーを検出したとき
に、エラーフラグをエラー記憶部に格納するとともに、
検出されたエラーの内容をエラー記憶部に格納するよう
に構成されたプログラマブルコントローラが提供されて
いる。すなわち、演算、通信、回線などにエラーが生じ
ると、プログラマブルコントローラの自己診断機能によ
って、エラーが検出されるから、このようなエラーが検
出されたときには、エラーが発生したことをエラーの内
容とともに保持するのである。また、エラーが発生した
ことを使用者に報知するために、表示灯が設けられエラ
ーフラグがエラー記憶部に格納されている間は、表示が
継続するようになっている。Conventionally, when an error is detected during program execution, an error flag is stored in the error storage section, and
A programmable controller is provided that is configured to store a detected error in an error storage. In other words, when an error occurs in calculations, communications, lines, etc., the error is detected by the self-diagnosis function of the programmable controller, so when such an error is detected, the fact that an error has occurred is retained along with the error details. That's what I do. Further, in order to inform the user that an error has occurred, an indicator light is provided, and the display continues while the error flag is stored in the error storage section.
上記構成では、たとえば、BCD演算を行うときに、入
力データがBCDではなかったとすると、エラーとして
検出され表示灯によるエラーの表示が行われる。エラー
の検出に基づいて入力データを補正すれば、エラーの原
因は除去されるが、エラーフラグがエラー記憶部に格納
されているがら、表示灯による表示は解消されないので
ある。
一方、エラーの原因を解消する処理を行ったときに、エ
ラーの原因が実際に除去されたかどうか、あるいは、元
のエラーの後に新たにエラーが発生していないかどうか
を確認したい場合がある。しかしながら、従来のプログ
ラマブルコントローラでは、プログラムの実行中にはエ
ラーフラグを消去する手段を備えていないものであった
がら、プログラムの実行を停止させることなく、表示灯
の表示のみを解消することができないという問題があっ
た。すなわち、エラーの原因を除去しても、実行を停止
させなければ、エラーの原因が除去されたかどうか、あ
るいは、別のエラーが発生していないかどうかなどの確
認ができないという問題があった。
本発明は上記問題点の解決を目的とするものであり、プ
ログラムの実行を停止させることなく、エラーの原因が
除去されたかどうか、あるいは、別のエラーが発生して
いないかどうかなどの確認ができるようにして、使い勝
手を向上させたプログラマブルコントローラを提供しよ
うとするものである。In the above configuration, for example, if the input data is not BCD when performing BCD calculation, it will be detected as an error and the error will be displayed by the indicator light. If the input data is corrected based on the detected error, the cause of the error will be removed, but although the error flag is stored in the error storage unit, the display by the indicator lamp will not be resolved. On the other hand, when performing processing to eliminate the cause of an error, you may want to check whether the cause of the error has actually been eliminated or whether a new error has occurred after the original error. However, although conventional programmable controllers do not have a means to clear error flags during program execution, it is not possible to clear only the indicator light display without stopping program execution. There was a problem. That is, even if the cause of the error is removed, there is a problem in that unless execution is stopped, it cannot be confirmed whether the cause of the error has been removed or whether another error has occurred. The present invention aims to solve the above problems, and it is possible to check whether the cause of the error has been removed or whether another error has occurred without stopping the execution of the program. The aim is to provide a programmable controller with improved usability.
本発明では、上記目的を連敗するために、プログラムの
実行中にエラーを検出するとエラーフラグとともにエラ
ーの内容をエラー記憶部に格納して実行を継続し、エラ
ー記憶部にエラーフラグが格納されている期間には表示
灯によりエラーの発生を表示するようにしたプログラマ
ブルコントローラにおいて、エラーフラグがエラー記憶
部に格納されているときに操作すると表示解消処理部を
起動するクリアスイッチを備え、表示解消処理部では、
クリアスイッチの操作時にエラー記憶部に記憶されてい
るエラーの内容を参照してエラーの発生原因が除去され
ていると判断するとエラーフラグをエラー記憶部から消
去して表示灯による表示を解消するようにしているので
ある。In the present invention, in order to achieve the above-mentioned objective, when an error is detected during program execution, the content of the error is stored in the error storage section along with the error flag, and execution continues, and the error flag is stored in the error storage section. The programmable controller is designed to use an indicator light to indicate the occurrence of an error during a period when the error flag is stored in the error storage section. In the department,
When the clear switch is operated, the contents of the error stored in the error storage section are referred to, and if it is determined that the cause of the error has been removed, the error flag is deleted from the error storage section and the display by the indicator lamp is canceled. This is what we are doing.
上記構成によれば、エラーフラグがエラー記憶部に格納
されて表示灯によるエラーの表示が行われているときに
クリアスイッチを操作すると、表示解消処理部が起動さ
れ、このときに、エラーの発生原因が解消されていれば
、エラーフラグが消去され、表示灯によるエラーの表示
が解消されるから、プログラムの実行を停止させること
なく、エラーの原因が除去されたかどうか、あるいは、
別のエラーが発生していないかどうかなどの確認ができ
るのであって、使い勝手が向上するのである。According to the above configuration, when the clear switch is operated while the error flag is stored in the error storage unit and the error is displayed by the indicator light, the display resolution processing unit is activated, and at this time, when the error If the cause of the error has been resolved, the error flag will be cleared and the error display on the indicator light will be eliminated, so you can check whether the cause of the error has been eliminated without stopping program execution, or
This allows you to check whether another error has occurred, which improves usability.
第1図に示すように、インタフェース7を介して接続さ
れる被制御機器を、あらかじめ記憶されているプログラ
ムに従う実行順序で制御する演算制御部1を備え、演算
制御部1でのプログラムの実行中に演算エラー、通信エ
ラー、回線遮断エラー等のエラー検出部2で検出可能な
自己診断エラーが発生すると、エラーフラグとともにエ
ラーの内容に対応したコードをエラー記憶部3に格納す
る。また、エラーフラグがエラー記憶部3に保持されて
いる期間に表示灯4が点灯してエラーが発生したことを
報知するようになっている。自己診断エラーが発生して
もプログラムの実行は継続され、その間に外部からの処
理によってエラーの発生原因を除去できるようになって
いる。
エラー記憶部3には、表示解消処理部5が接続されてお
り、表示解消処理部うでは、第4図に示すような処理を
行う。すなわち、クリアスイ・ンチ6が操作されたとき
に、エラー記憶部3のエラーの内容を参照し、現時点で
エラーの発生原因が除去されている場合や、エラーの内
容が消去してもよい性質のものであると判断すると、エ
ラーフラグをエラー記憶部3から消去し、これによって
、表示灯4を消灯させるようになっている。クリアスイ
ッチ6が操作されても、エラーの内容が消去できないも
のであるときには、表示灯4はそのまま点灯状態に保た
れる9以上のようにして、エラ−が解消されている場合
のように、現時点ではエラーの表示を解消してもよいと
判断される場合には、クリアスイッチ6の操作によって
表示灯4゛を消灯させることができるから、プログラム
の実行を停止させなくとも、表示灯4を消灯させること
ができるのである。
上記構成は、第2図に示すような構成を有したプログラ
マブルコントローラにおいて、ROM 11やRAM1
2に格納されたプログラムに従ってプロセッサ10が処
理を行うことにより実現することができる。プログラマ
ブルコントローラのバスには、入出力ボート13を介し
てクリアスイッチ6やインタフェース7が接続され、ま
た、通信ボート14を介して周辺機器へのインタフェー
ス7が接続される。
このプログラマブルコントローラの基本動作は、第3図
に示すようなものであって、初期化された後、プログラ
ムモードかランモードかが判定され、プログラムモード
であれば、RAM12にプログラムが書き込まれる。、
tた、ランモードであれば、第4図に示した表示解消処
理を行い、その後、被制御機器を制御する通常の演算処
理を行い、さらにツールサービスを行う、ツールサービ
スは、周辺機器より入力された制御信号により、プログ
ラマブルコントローラの実行処理とは別に、被制御機器
を制御することができるようにする処理であって、プロ
グラマブルコントローラに接続されている被制御機器を
、プログラマブルコントローラを介して任意に制御でき
るようにしているのである。As shown in FIG. 1, it is equipped with an arithmetic control unit 1 that controls controlled devices connected via an interface 7 in an execution order according to a pre-stored program. When a self-diagnosis error that can be detected by the error detection section 2, such as an arithmetic error, communication error, or line cutoff error, occurs, a code corresponding to the content of the error is stored in the error storage section 3 together with the error flag. Further, while the error flag is held in the error storage section 3, the indicator light 4 is turned on to notify that an error has occurred. Even if a self-diagnosis error occurs, program execution continues, during which time the cause of the error can be removed by external processing. A display resolution processing section 5 is connected to the error storage section 3, and the display resolution processing section performs processing as shown in FIG. 4. That is, when the clear switch 6 is operated, the contents of the error in the error storage section 3 are referred to, and if the cause of the error has been removed at this point, or the contents of the error are of a nature that can be erased. If it is determined that this is the case, the error flag is erased from the error storage section 3, and the indicator light 4 is thereby turned off. Even if the clear switch 6 is operated, if the content of the error cannot be erased, the indicator light 4 remains lit. As in the case where the error is resolved as described above, If it is determined that it is okay to eliminate the error display at this point, the indicator light 4 can be turned off by operating the clear switch 6, so the indicator light 4 can be turned off without stopping the program execution. It is possible to turn off the light. The above configuration is applicable to the programmable controller having the configuration shown in FIG.
This can be realized by the processor 10 performing processing according to a program stored in the computer 2. A clear switch 6 and an interface 7 are connected to the bus of the programmable controller via an input/output port 13, and an interface 7 to peripheral devices is also connected via a communication boat 14. The basic operation of this programmable controller is as shown in FIG. 3. After initialization, it is determined whether it is in program mode or run mode, and if it is in program mode, a program is written into the RAM 12. ,
In addition, if it is in run mode, the display cancellation process shown in Figure 4 is performed, then normal arithmetic processing for controlling the controlled device is performed, and tool service is also performed. A process that enables a controlled device to be controlled by a control signal that is connected to a programmable controller, separately from the execution process of a programmable controller, and in which a controlled device connected to a programmable controller can be controlled by an arbitrary control signal via a programmable controller. This makes it possible to control the
本発明は上述のように、プログラムの実行中にエラーを
検出するとエラーフラグとともにエラーの内容をエラー
記憶部に格納して実行を継続し、エラー記憶部にエラー
フラグが格納されている期間には表示灯によりエラーの
発生を表示するようにしたプログラマブルコントローラ
において、エラーフラグがエラー記憶部に格納されてい
るときに操作すると表示解消処理部を起動するクリアス
イッチを備え、表示解消処理部では、クリアスイッチの
操作時にエラー記憶部に記憶されているエラーの内容を
参照してエラーの発生原因が除去されていると判断する
とエラーフラグをエラー記4億部から消去して表示灯に
よる表示を解消するようにしているものであり、エラー
フラグがエラー記憶部に格納されて表示灯によるエラー
の表示が行われているときにクリアスイッチを操作する
と、表示解消処理部が起動され、このときに、エラーの
発生原因が解消されていれば、エラーフラグが消去され
、表示灯によるエラーの表示が解消されるから、プログ
ラムの実行を停止させることなく、エラーの原因が除去
されたかどうか、あるいは、別のエラーが発生していな
いかどうがなどの確認ができるのであって、使い勝手が
向上するという利点がある。その結果、プログラムの実
行を停止できないようなシステムの動作試験を行ってい
るようなときには、とくに有効なものとなる。As described above, when an error is detected during execution of a program, the present invention stores the error contents together with the error flag in the error storage section and continues execution, and during the period when the error flag is stored in the error storage section, the error flag is stored in the error storage section. A programmable controller that uses an indicator light to indicate the occurrence of an error is equipped with a clear switch that activates a display resolution processing section when operated while an error flag is stored in the error storage section. When the switch is operated, the contents of the error stored in the error storage section are referred to, and when it is determined that the cause of the error has been removed, the error flag is deleted from the error storage section and the display by the indicator light is canceled. If the clear switch is operated while the error flag is stored in the error storage section and the error is being displayed by the indicator light, the display resolution processing section is activated, and at this time, the error flag is If the cause of the error has been eliminated, the error flag will be cleared and the error display on the indicator light will be eliminated, so you can check whether the cause of the error has been eliminated or another one without stopping program execution. This has the advantage of improving usability since it can be checked to see if any errors have occurred. As a result, it is particularly effective when testing the operation of a system in which program execution cannot be stopped.
第1図は本発明の概念を示すブロック図、第2図は同上
を実現する構成を示すブロック図、第3図および第41
!lは同上の動作説明図である。
1・・・演算制御部、2・・・エラー検出部、3・・・
エラー記憶部、4・・・表示灯、5・・・表示解消処理
部、6・・・クリアスイッチ、7・・・インタフェース
。FIG. 1 is a block diagram showing the concept of the present invention, FIG. 2 is a block diagram showing a configuration for realizing the same, FIGS.
! 1 is an explanatory diagram of the same operation as above. 1... Arithmetic control section, 2... Error detection section, 3...
Error storage unit, 4... Indicator light, 5... Display cancellation processing unit, 6... Clear switch, 7... Interface.
Claims (1)
フラグとともにエラーの内容をエラー記憶部に格納して
実行を継続し、エラー記憶部にエラーフラグが格納され
ている期間には表示灯によりエラーの発生を表示するよ
うにしたプログラマブルコントローラにおいて、エラー
フラグがエラー記憶部に格納されているときに操作する
と表示解消処理部を起動するクリアスイッチを備え、表
示解消処理部では、クリアスイッチの操作時にエラー記
憶部に記憶されているエラーの内容を参照してエラーの
発生原因が除去されていると判断するとエラーフラグを
エラー記憶部から消去して表示灯による表示を解消する
ことを特徴とするプログラマブルコントローラ。(1) When an error is detected during program execution, the content of the error is stored together with the error flag in the error memory and execution continues. During the period when the error flag is stored in the error memory, an indicator light indicates the error. A programmable controller configured to display the occurrence of an error is equipped with a clear switch that activates a display resolution processing section when operated while an error flag is stored in the error storage section. A programmable controller characterized in that when it is determined that the cause of the error has been removed by referring to the error contents stored in the storage section, the error flag is erased from the error storage section and the display by the indicator light is canceled. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017182A JPH03222007A (en) | 1990-01-26 | 1990-01-26 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017182A JPH03222007A (en) | 1990-01-26 | 1990-01-26 | Programmable controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03222007A true JPH03222007A (en) | 1991-10-01 |
Family
ID=11936805
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017182A Pending JPH03222007A (en) | 1990-01-26 | 1990-01-26 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03222007A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238232A (en) * | 2009-03-12 | 2010-10-21 | Omron Corp | Industrial controller |
| JP5908171B2 (en) * | 2014-04-25 | 2016-04-26 | 三菱電機株式会社 | Programmable logic controller |
-
1990
- 1990-01-26 JP JP2017182A patent/JPH03222007A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238232A (en) * | 2009-03-12 | 2010-10-21 | Omron Corp | Industrial controller |
| JP5908171B2 (en) * | 2014-04-25 | 2016-04-26 | 三菱電機株式会社 | Programmable logic controller |
| US9798611B2 (en) | 2014-04-25 | 2017-10-24 | Mitsubishi Electric Corporation | Programmable logic controller |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03222007A (en) | Programmable controller | |
| JP3732452B2 (en) | Control device | |
| JPS60237535A (en) | Command input control system | |
| CN116483609A (en) | A method, device, and electronic equipment for troubleshooting a vehicle display screen | |
| JP6868450B2 (en) | Control system for industrial robots | |
| JPH02226307A (en) | Numerical controller | |
| JP3278215B2 (en) | Data creation support device for display control device | |
| JPS6334604A (en) | Programmable controller | |
| JP2001125614A (en) | Machine tool controller with touch panel | |
| JPH03236088A (en) | Operation display panel | |
| JP2523515Y2 (en) | Sequence controller | |
| JPH07160311A (en) | Operation display overlay display | |
| JP2982403B2 (en) | Operation display panel | |
| JPH08286734A (en) | Programmable display device | |
| JPH10105226A (en) | Programmable display device | |
| JPS6034132B2 (en) | programmable controller | |
| JPH0469904B2 (en) | ||
| JPH04283803A (en) | Programmable controller | |
| JPH05158532A (en) | Programmable controller programming device | |
| JP3015676B2 (en) | Display control device of heater | |
| JPS62162110A (en) | Self diagnosing device for controller | |
| JPS5878207A (en) | Programmable controller | |
| JPH0411881B2 (en) | ||
| JPH04191906A (en) | User program execution control system for programmable controller | |
| JPH09265411A (en) | Development support device for microcomputer application system |