[go: up one dir, main page]

JPS6250841B2 - - Google Patents

Info

Publication number
JPS6250841B2
JPS6250841B2 JP56058164A JP5816481A JPS6250841B2 JP S6250841 B2 JPS6250841 B2 JP S6250841B2 JP 56058164 A JP56058164 A JP 56058164A JP 5816481 A JP5816481 A JP 5816481A JP S6250841 B2 JPS6250841 B2 JP S6250841B2
Authority
JP
Japan
Prior art keywords
memory
microprocessor
output
sequence
auxiliary relay
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
Application number
JP56058164A
Other languages
Japanese (ja)
Other versions
JPS57172410A (en
Inventor
Masao Aoki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP56058164A priority Critical patent/JPS57172410A/en
Publication of JPS57172410A publication Critical patent/JPS57172410A/en
Publication of JPS6250841B2 publication Critical patent/JPS6250841B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 本発明はシーケンスコントローラの電池バツク
アツプによるシーケンスプログラムメモリの電池
電圧低下やパリテイ発生等の異状状態の検出を行
ない、その検出結果の外部出力の処理装置に関す
る。一般に、メモリを有する処理装置において、
メモリの不具合は重大故障に類し、不具合を積極
的に検出してこれを外部へ出力する必要がある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a processing device for detecting abnormal conditions such as battery voltage drop and parity occurrence in a sequence program memory due to battery backup of a sequence controller, and outputting the detection results to the outside. Generally, in a processing device having memory,
Memory defects are similar to serious failures, and it is necessary to actively detect them and output them to the outside.

従来からシーケンスコントローラにおいては、
電池バツクアツプの半導体リード・ライトメモリ
(IC―RAM)の電池電圧低下やパリテイ発生等の
異常状態の検出は、それぞれに処理を行うハード
ウエアを具備し、シーケンスコントローラの不具
合を外部へ出力する自己診断出力としていた。
Conventionally, in sequence controllers,
Detection of abnormal conditions such as battery voltage drop and parity occurrence in battery backup semiconductor read/write memory (IC-RAM) is carried out by self-diagnosis, which is equipped with hardware that performs processing for each and outputs faults in the sequence controller to the outside. It was used as output.

この従来の装置では、メモリの不具合を処理
し、外部へ出力するハードウエアを必要とするた
め、ハードウエアの増大を招き、また、特にこれ
らの処理が中央処理装置(CPU)にて行われる
ため、自己診断出力からの外来ノイズに対する特
別な対策を施さねばならない欠点を有している。
This conventional device requires hardware to handle memory defects and output them to the outside, resulting in an increase in hardware, and especially since these processes are performed by a central processing unit (CPU). However, it has the disadvantage that special measures must be taken against external noise from the self-diagnosis output.

本発明はこの欠点の解消を目的とし、外部への
自己診断結果の出力のハードウエアを最小にし、
かつノイズに対して高い耐性をもち得るととも
に、自己診断出力に接続される外部機器とのイン
ターフエースを容易にするものである。
The present invention aims to eliminate this drawback by minimizing the hardware required to output self-diagnosis results to the outside.
It also has high resistance to noise and facilitates interface with external equipment connected to the self-diagnosis output.

以下、図面により本発明の詳細を説明する。 Hereinafter, details of the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すシーケンスコ
ントローラのブロツク図である。
FIG. 1 is a block diagram of a sequence controller showing one embodiment of the present invention.

図におい1はシーケンス演算や外部入出力制御
等の処理を行うマイクロプロセツサ、2はマイク
ロプロセツサ1の処理プログラムを格納したメモ
リで、例えば半導体リードオンメモリ(ROM)、
3はマイクロプロセツサ1の処理に使うワーキン
グメモリで、例えば半導体リードライトメモリ
(RAM)、4はシーケンス演算の処理プログラム
を格納したシーケンスプログラムメモリで、電池
5により停電時のバツクアツプを行う半導体リー
ドライトメモリ、6は電池5の電圧低下を検出
し、その検出結果を後述するデータバス7へ出力
する電池電圧低下検出回路、8はシーケンスプロ
グラムメモリ4のパリテイ発生を検出しその検出
結果をデータバス7へ出力するメモリパリテイ発
生検出回路、9はシーケンス演算において直接に
外部へ演算結果を出力せず演算のみに使用される
補助リレー用メモリ、10は入力インターフエー
ス11を介して入力された外部入力機器のオン―
オフ状態を記憶する入力メモリ、12はシーケン
ス演算の結果を外部へ出力するときにその状態を
記憶しておく出力メモリ、13は出力メモリ12
と外部出力機器のインターフエースを行う出力イ
ンターフエースである。なお、上記データバス7
は各ブロツクの情報の通路たる機能を有するもの
である。
In the figure, 1 is a microprocessor that performs processing such as sequence calculations and external input/output control, and 2 is a memory that stores the processing program of the microprocessor 1, such as semiconductor read-on memory (ROM),
3 is a working memory used for processing by the microprocessor 1, such as a semiconductor read/write memory (RAM); 4 is a sequence program memory that stores processing programs for sequence calculations; Memory, 6, a battery voltage drop detection circuit that detects a voltage drop in the battery 5 and outputs the detection result to a data bus 7, which will be described later; 8, a battery voltage drop detection circuit that detects the occurrence of parity in the sequence program memory 4, and outputs the detection result to the data bus 7; 9 is an auxiliary relay memory used only for calculations without directly outputting calculation results to the outside in sequence calculations; 10 is an external input input via input interface 11; Turn on the device
12 is an input memory that stores the off state; 12 is an output memory that stores the state when outputting the results of sequence operations to the outside; 13 is the output memory 12
This is an output interface that interfaces with the external output device. Note that the data bus 7
has the function of being an information path for each block.

次に第1図により本発明の主旨を説明する。第
1図において、電池5の電圧低下は電池電圧低下
検出回路6で検出される。また、シーケンスプロ
グラムメモリ4の誤読発生たるパリテイ発生はメ
モリパリテイ検出回路8で検出される。これらの
検出結果は一連のシーケンス演算の区切り目、例
えばプログラム最終の宣言を行う命令の処理の中
で、マイクロプロセツサ1からの指令Gによりデ
ータバス7へ出力される。このデータバス7へ出
力された検出結果、即ち、電池電圧低下とパリテ
イ発生の有無はマイクロプロセツサ1に取り込ま
れて処理され、補助リレー用メモリ9に格納され
る。このとき、例えば補助リレーの記号をMとす
ると、電池電圧低下は番号M62、パリテイ発生は
番号M63と言うように、発生要因別に特定の補助
リレーの番号へ格納するようにしておく。
Next, the gist of the present invention will be explained with reference to FIG. In FIG. 1, a voltage drop in a battery 5 is detected by a battery voltage drop detection circuit 6. In FIG. Moreover, the occurrence of parity, which is an erroneous reading of the sequence program memory 4, is detected by the memory parity detection circuit 8. These detection results are output to the data bus 7 in response to a command G from the microprocessor 1 at a break in a series of sequence operations, for example, during processing of an instruction to declare the end of a program. The detection results outputted to the data bus 7, that is, the presence or absence of battery voltage drop and parity occurrence are taken into the microprocessor 1, processed, and stored in the auxiliary relay memory 9. At this time, for example, if the symbol of the auxiliary relay is M, battery voltage drop is numbered M62, parity occurrence is numbered M63, and so on, and stored in a specific auxiliary relay number for each cause of occurrence.

ここで、補助リレーは前述の様にその内容を直
接外部へ出力するものではなく、シーケンスプロ
グラムによりシーケンス演算に使われ、演算結果
として出力メモリ12と出力インターフエース1
3を介して外部出力機器へ出力されるものであ
る。なお、補助リレーは一時記憶、中間リレー、
ダミー、内部レジスタ等とも呼ばれ、いずれも同
一のものである。
Here, the auxiliary relay does not directly output its contents to the outside as described above, but is used for sequence calculations by the sequence program, and the calculation results are sent to the output memory 12 and the output interface 1.
3 to an external output device. In addition, the auxiliary relay is a temporary memory, an intermediate relay,
They are also called dummy, internal register, etc., and they are all the same thing.

次に、補助リレー用メモリ9に格納さた検出結
果は第2図のようなシーケンス演算処理によりメ
モリの自己診断結果として外部へ出力される。第
2図において、20はシーケンスプログラムの内
容をリレー回路形式で示したもの、21は前記電
池電圧低下の検出結果が格納された補助リレー用
メモリ8の内容M62、22は上記内容M62 21
の内容を外部へ出力する外部出力Am(ここで、
外部出力の記号をAとする)、23は前記パリテ
イ発生の検出結果が格納された補助リレー用メモ
リ8の内容M63、24は外部出力Anである。こ
こで、Am22、An24は第1図の出力メモリ1
2の内容に相当し、出力インターフエース13を
介して出力される。30はこの外部への出力回路
を示し、31は出力インターフエース13の外部
出力Am22の接点Amであり、この接点Am31
には例えば電池電圧低下を表示する表示灯32が
接続され、ランプ表示で出力される。また、パリ
テイ発生は出力インターフエース13の外部出力
An24の接点An33に接続された例えばブザー
34により出力される。
Next, the detection results stored in the auxiliary relay memory 9 are outputted to the outside as the self-diagnosis results of the memory through sequence calculation processing as shown in FIG. In FIG. 2, 20 shows the contents of the sequence program in a relay circuit format, 21 the contents M62 of the auxiliary relay memory 8 in which the detection result of the battery voltage drop is stored, and 22 the above contents M62 21
External output Am that outputs the contents of (here,
The external output is denoted by A), 23 is the content M63 of the auxiliary relay memory 8 in which the detection result of the parity occurrence is stored, and 24 is the external output An. Here, Am22 and An24 are output memory 1 in Figure 1.
2 and is output via the output interface 13. 30 shows this output circuit to the outside, 31 is a contact Am of the external output Am22 of the output interface 13, and this contact Am31
For example, an indicator light 32 is connected to indicate a drop in battery voltage, and output is made in the form of a lamp display. In addition, parity generation is the external output of output interface 13.
The signal is output by, for example, a buzzer 34 connected to a contact An33 of An24.

以上の様に、メモリの自己診断結果を補助リレ
ーの特定の番号へ格納しておことにより、シーケ
ンスコントローラの使用者は、シーケンスプログ
ラムにより任意の外部出力Aへ出し、さらに外部
出力機器を駆動することができる。
As described above, by storing the memory self-diagnosis result in a specific number of the auxiliary relay, the user of the sequence controller can output it to any external output A using the sequence program and further drive the external output device. be able to.

この外部出力Aを介して出力することは重要な
ことで、第1には、外部出力Aは出力インターフ
エース13の1点であり、出力インターフエース
13は外部出力機器に対する十分なノイズ対策を
施されているのが通例で、これにより自己診断出
力の耐ノイズ性が向上する。従来のように専用の
ハードウエアを介して出力する場合、ノイズに対
してデリケートなCPUでの処理のため、耐ノイ
ズ性に劣る面があつたが、外部出力機器用に設け
られた出力インターフエース13を使うので、耐
ノイズ性の面で有利である。
It is important to output via this external output A. Firstly, the external output A is one point of the output interface 13, and the output interface 13 has sufficient noise countermeasures for external output equipment. This improves the noise resistance of the self-diagnosis output. When outputting via dedicated hardware as in the past, the noise resistance was poor due to processing by the CPU, which is sensitive to noise. However, output interfaces provided for external output devices 13 is used, which is advantageous in terms of noise resistance.

第2には、シーケンスコントローラにおいて
は、出力インターフエース13には各種の定格の
電圧、電流のインターフエースが用意されている
のが通例であり、外部出力機器の定格に合せて出
力インターフエース13を選択でき、インターフ
エースが容易にできる利点をもつ。従来の方法で
はその出力形式はシーケンスコントローラ作り付
けのものであり、選択の余地が小さい欠点があつ
たが、本発明によりこれが解消できる。
Second, in a sequence controller, the output interface 13 is usually provided with interfaces for various voltage and current ratings. It has the advantage of being selectable and easy to interface. In the conventional method, the output format was built into the sequence controller, and there was a drawback that there was little room for selection, but this can be overcome by the present invention.

第3には従来方法のような自己診断結果の専用
の出力インターフエースが不要になり、ハードウ
エアがそれだけ節約できてコスト面で経済的にな
る利点を有する。
Thirdly, there is no need for a dedicated output interface for self-diagnosis results as in the conventional method, which has the advantage of saving hardware and making it economical in terms of cost.

以上の様に、本発明によれば従来の欠点を確実
に解消でき、その利するところは大である。
As described above, according to the present invention, the drawbacks of the conventional technology can be reliably overcome, and its advantages are great.

次に、本発明の主旨を実現する他の実施例を第
3図により説明する。
Next, another embodiment for realizing the gist of the present invention will be described with reference to FIG.

第3図において、第1図と同一符号は同一又は
相当部分を示すもので関係部分のみを示してい
る。
In FIG. 3, the same reference numerals as in FIG. 1 indicate the same or corresponding parts, and only related parts are shown.

第1図に示す実施例では自己診断結果はマイク
ロプロセツサ1からの指令Gによりデータバス7
に出力され、データバス7経由でマイクロプロセ
ツサ1により処理されていた。しかし、第3図に
示す実施例では、自己診断結果が有意なときマイ
クロプロセツサ1に対する割込みを行い処理する
もので、割込み信号をX,Yで示す。割込み信号
X,Yが有意になるとマイクロプロセツサに割込
みが発生し、優先的に受付けられて処理され、第
1回の例と同様補助リレー用メモリ8に結果が格
納されて第2図の形式で外部へ出力される。
In the embodiment shown in FIG.
and is processed by the microprocessor 1 via the data bus 7. However, in the embodiment shown in FIG. 3, when the self-diagnosis result is significant, an interrupt is made to the microprocessor 1 for processing, and the interrupt signals are indicated by X and Y. When the interrupt signals X and Y become significant, an interrupt is generated in the microprocessor, which is accepted and processed with priority, and the result is stored in the auxiliary relay memory 8 as in the first example, resulting in the format shown in Figure 2. is output to the outside.

この装置によれば、特にパリテイ発生時には即
時に割込み処理され、直ちにシーケンス演算を停
止させることもでき、また、外部へ出力するまで
の時間遅れも小さくてすむ。第1図の実施例で
は、パリテイが発生してもマイクロプロセツサ1
からの指令Gが出されるまでは検出できず、不正
演算を行う可能性もあるが、第3図の例ではこれ
が改良されている。
According to this device, especially when parity occurs, an interrupt is immediately processed, sequence calculations can be stopped immediately, and the time delay before outputting to the outside can be minimized. In the embodiment shown in FIG. 1, even if parity occurs, the microprocessor 1
It cannot be detected until the command G is issued from , and there is a possibility that an incorrect calculation will be performed, but this has been improved in the example shown in FIG.

以上の説明で理解される様に、メモリの自己診
断結果を補助リレーを介して外部へ出力するのが
本発明の主旨であり、前述の様に従来装置より大
きな利点を有し、進歩、改良されている。
As can be understood from the above explanation, the gist of the present invention is to output the memory self-diagnosis results to the outside via an auxiliary relay, and as mentioned above, it has great advantages over conventional devices, and has been improved and improved. has been done.

なお、本発明の主旨によれば、メモリに対する
自己診断結果だけでなく、シーケンスコントロー
ラの運転状態、内部電源電圧の異常、接続されて
いる各種周辺機器の異常、ユニツト間の接続ケー
ブルの接続不良等の自己診断結果も補助リレーを
介して外部へ出力でき、メモリの自己診断結果の
出力と同様の利点を得ることができて応用展開が
極めて広く、本発明の実施効果の大なることがわ
かる。
According to the gist of the present invention, not only the self-diagnosis results for the memory but also the operating status of the sequence controller, abnormalities in the internal power supply voltage, abnormalities in various connected peripheral devices, poor connection of connection cables between units, etc. It can be seen that the self-diagnosis results of the memory can also be outputted to the outside via the auxiliary relay, and the same advantages as the output of the self-diagnosis results of the memory can be obtained, and the application development is extremely wide, and the implementation effect of the present invention is great.

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

第1図は本発明の一実施例を示すシーケンスコ
ントローラのブロツク図、第2図は自己診断結果
の外部出力方法を示す回路図、第3図は本発明の
他の実施例を示すブロツク図である。 図中、1はマイクロプロセツサ、4はシーケン
スプログラム用メモリ、5は電池、6は電池電圧
低下検出回路、7はメモリパリテイ検出回路、8
は補助リレー用メモリ、20はシーケンスプログ
ラム部分、30は外部接続部分である。
Fig. 1 is a block diagram of a sequence controller showing one embodiment of the present invention, Fig. 2 is a circuit diagram showing an external output method of self-diagnosis results, and Fig. 3 is a block diagram showing another embodiment of the present invention. be. In the figure, 1 is a microprocessor, 4 is a sequence program memory, 5 is a battery, 6 is a battery voltage drop detection circuit, 7 is a memory parity detection circuit, and 8
20 is a sequence program portion, and 30 is an external connection portion.

Claims (1)

【特許請求の範囲】 1 マイクロプロセツサと、このマイクロプロセ
ツサの処理プログラムを格納したマイクロプロセ
ツサ処理メモリと、電池バツクアツプによるシー
ケンスプログラムメモリと、前記電池の電圧低下
を検出する電池電圧低下検出回路と、前記シーケ
ンスプログラムメモリのパリテイ発生を検出する
メモリパリテイ発生検出回路と、補助リレー用メ
モリを備えたシーケンスコントローラにおいて、
前記電池の電圧低下の検出および前記シーケンス
プログラムメモリのパリテイ発生等の異常の検出
を行い、これらの検出信号を前記マイクロプロセ
ツサと、前記マイクロプロセツサ処理メモリに格
納された処理プログラムにより処理して前記補助
リレー用メモリの特定の番号へ前記検出結果を格
納すると共に、前記シーケンスプログラムによ
り、前記補助リレー用メモリに格納された前記検
出結果を外部へ出力することを特徴とするシーケ
ンスコントローラの状態処理装置。 2 電池の電圧低下およびメモリパリテイの発生
等の異常を検出したときに、この検出信号により
マイクロプロセツサに割込みを行い、前記マイク
ロプロセツサの割込み処理により補助リレー用メ
モリの特定の番号へ検出結果を格納することを特
徴とする特許請求の範囲第1項記載のシーケンス
コントローラの状態処理装置。 3 シーケンスコントローラの自己診断結果を補
助リレー用メモリの特定の番号へ格納することを
特徴とする特許請求の範囲第1項又は第2項記載
のシーケンスコントローラの状態処理装置。
[Scope of Claims] 1. A microprocessor, a microprocessor processing memory that stores a processing program for the microprocessor, a sequence program memory based on battery backup, and a battery voltage drop detection circuit that detects a voltage drop in the battery. and a sequence controller comprising a memory parity occurrence detection circuit for detecting occurrence of parity in the sequence program memory, and an auxiliary relay memory,
Detecting a voltage drop in the battery and detecting an abnormality such as occurrence of parity in the sequence program memory, and processing these detection signals by the microprocessor and a processing program stored in the microprocessor processing memory. The state processing of the sequence controller is characterized in that the detection result is stored in a specific number of the auxiliary relay memory, and the detection result stored in the auxiliary relay memory is outputted to the outside by the sequence program. Device. 2. When an abnormality such as battery voltage drop or memory parity is detected, this detection signal interrupts the microprocessor, and the microprocessor interrupts the detection to a specific number in the auxiliary relay memory. 2. A state processing device for a sequence controller according to claim 1, wherein a result is stored. 3. A state processing device for a sequence controller according to claim 1 or 2, wherein the self-diagnosis result of the sequence controller is stored in a specific number of an auxiliary relay memory.
JP56058164A 1981-04-17 1981-04-17 State processor for sequence controller Granted JPS57172410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56058164A JPS57172410A (en) 1981-04-17 1981-04-17 State processor for sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56058164A JPS57172410A (en) 1981-04-17 1981-04-17 State processor for sequence controller

Publications (2)

Publication Number Publication Date
JPS57172410A JPS57172410A (en) 1982-10-23
JPS6250841B2 true JPS6250841B2 (en) 1987-10-27

Family

ID=13076347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56058164A Granted JPS57172410A (en) 1981-04-17 1981-04-17 State processor for sequence controller

Country Status (1)

Country Link
JP (1) JPS57172410A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61190607A (en) * 1985-02-18 1986-08-25 Toyoda Mach Works Ltd Numerically controlled machine tool provided with abnormality stop function
JPH0420147U (en) * 1989-10-23 1992-02-20

Also Published As

Publication number Publication date
JPS57172410A (en) 1982-10-23

Similar Documents

Publication Publication Date Title
EP0056060B1 (en) Data processing system
JPS60122407A (en) Programmable controller
JPS6250841B2 (en)
JPH10105422A (en) Protection device control circuit
JPS6218060B2 (en)
JP2587881B2 (en) Image forming device
JP2725680B2 (en) Bus error detection circuit
JPH05304795A (en) Servo motor control device
JPS59140519A (en) Controller for robot
JPS59200302A (en) Computer device for control
JPS6051136B2 (en) Data error detection method
JPS61163452A (en) Central controller
JPH04264930A (en) Microprogram control circuit
JPH0377546B2 (en)
JPS638956A (en) Memory diagnosing circuit
JPS61182107A (en) Digital controller
JPH04283803A (en) programmable controller
JPS59108965A (en) Electronic equipment monitoring method
JPH0333939A (en) Microprocessor
JPS5935291A (en) Abnormality diagnosing apparatus for detector
JPH05297901A (en) Process controller
JPH05324407A (en) Cpu monitor system
JPH04246735A (en) In-circuit emulator
JPS59201126A (en) Common bus control system
JPS61210441A (en) Bug detecting method for program