JPS62100802A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPS62100802A JPS62100802A JP24117285A JP24117285A JPS62100802A JP S62100802 A JPS62100802 A JP S62100802A JP 24117285 A JP24117285 A JP 24117285A JP 24117285 A JP24117285 A JP 24117285A JP S62100802 A JPS62100802 A JP S62100802A
- Authority
- JP
- Japan
- Prior art keywords
- power
- program
- break
- user
- circuit
- 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
- 230000004044 response Effects 0.000 claims abstract description 7
- 230000015654 memory Effects 0.000 description 29
- 238000000034 method Methods 0.000 description 11
- 238000001514 detection method Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 230000003936 working memory Effects 0.000 description 4
- 239000002737 fuel gas Substances 0.000 description 3
- 239000007789 gas Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 238000002485 combustion reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
Landscapes
- Safety Devices In Control Systems (AREA)
Abstract
Description
【発明の詳細な説明】
(発明の分野)
この発明は、電断時における被制御対象の動作を、ユー
ザプログラムで規定できるようにしたプログラマブル・
コントローラに関する。DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention provides a programmable system that enables the operation of a controlled object in the event of a power outage to be defined by a user program.
Regarding the controller.
(発明の概要)
この発明では、電断による割込要求が発せられてから、
DC電源がダウンするまでの間において、電断時専用の
ユーザプログラムを割込で実行させるように構成し、こ
の電断時専用のユーザプログラムとしてユーザが任意の
シーケンスプログラムを作成することによって、電断時
にあける被制御対象機器の動作を、ユーザプログラムで
規定できるようにしたものでおる。(Summary of the invention) In this invention, after an interrupt request due to a power outage is issued,
Until the DC power supply goes down, a user program dedicated to power outages is configured to be executed with an interrupt, and the user can create an arbitrary sequence program as the user program dedicated to power outages. This allows the user program to specify the operation of the controlled device when it is turned off.
(従来技術とその問題点)
従来、この種のプログラマブル・コントローラにおいて
、電断か発生した場合には、電断による割込要求が発せ
られてから、DC電源がダウンするまでの間において、
電断時専用のシステムプログラム、即ちユーザ側で任意
に書換えることのできない固定プログラムを割込で実行
させることによって、電断時における被制御対象機器の
動作を規定するようにしていた。(Prior art and its problems) Conventionally, in this type of programmable controller, when a power outage occurs, from the time an interrupt request is issued due to the power outage until the DC power supply goes down,
By executing a system program dedicated to power outages, that is, a fixed program that cannot be arbitrarily rewritten by the user, using an interrupt, the operation of the controlled device in the event of a power outage is defined.
このため、ユーザ側の制御仕様によっては、電断時にお
いて必ずしも充分な対応を取ることができないという問
題があった。即ち、一般にシステムプログラムによる電
断処理では、出力状態を全て強制的にオフさせるのであ
るが、例えばボイラ用の制御装置等の場合、燃料ガスの
供給弁、排気ガスの排出弁などが同時にプログラマブル
・コントローラの出力で遮断された場合、合弁の作動タ
イミングのずれで、ボイラ内の内部圧力差等により排気
カスか燃料ガス側へ逆流したり、或いは燃料ガスの供給
弁の閉じるのが遅くて、点火がされなければ燃焼炉にガ
スか充満して爆発する虞れも生ずる。For this reason, there is a problem in that, depending on the user's control specifications, it is not always possible to take sufficient measures in the event of a power outage. In other words, power-off processing using a system program generally forces all output states to be turned off, but in the case of a control device for a boiler, for example, the fuel gas supply valve, exhaust gas discharge valve, etc. may be programmably turned off at the same time. If the controller's output shuts off, the timing of the joint venture's operation may be incorrect, causing the exhaust gas to flow back to the fuel gas side due to internal pressure differences within the boiler, or the fuel gas supply valve may close too late, resulting in ignition. If this is not done, there is a risk of the combustion furnace filling with gas and causing an explosion.
(発明の目的)
この発明の目的は、電断時における対応策を、各ユーザ
側の制御仕様に併せてきめ細かくとることが可能なプロ
グラマブル・コントローラを提供することにある。(Objective of the Invention) An object of the present invention is to provide a programmable controller that can take detailed countermeasures in the event of a power outage in accordance with the control specifications of each user.
・(発明の構成及び効果)
この発明は上記の目的を達成するために、電断に応答し
て割込要求を発する割込要求発生手段と、割込要求が発
せられてから、DC電源がダウンするまでの間において
、電断時専用のユーザプログラムを割込で実行させるプ
ログラム実行手段と、を具備することを特徴とするもの
である。- (Structure and Effects of the Invention) In order to achieve the above object, the present invention includes an interrupt request generating means that issues an interrupt request in response to a power outage, and a means for generating an interrupt request that causes the DC power to be turned off after the interrupt request is issued. The apparatus is characterized by comprising a program execution means for executing a user program exclusively for power outage by interruption until the apparatus goes down.
口のような構成によれば、予めユーザプログラムメモリ
内に、電断時専用のユーザプログラムを作成、記憶させ
ることによって、各ユーザ仕様に対応して、きめ細かな
電断対策をとることが可能となる。According to this configuration, by creating and storing a user program specifically for power outages in the user program memory in advance, it is possible to take detailed measures against power outages in accordance with each user's specifications. Become.
(実施例の説明)
第1図はこの発明が適用されるプログラマブル・コント
ローラ及びその周辺装置のハードウェア構成を示すブロ
ック図でおる。(Description of Embodiments) FIG. 1 is a block diagram showing the hardware configuration of a programmable controller and its peripheral devices to which the present invention is applied.
同図において、CPU1はマイクロプロセッサを主体と
して構成され、システムプログラムメモリ2に格納され
た各種のシステムプログラムを実行することによって、
プログラマブル・コントローラとしての基本的機能の他
に、各種のサービス機能を実現するようになされている
。In the figure, a CPU 1 is mainly composed of a microprocessor, and executes various system programs stored in a system program memory 2.
In addition to the basic functions as a programmable controller, it is designed to realize various service functions.
ここで、プログラマブル・コントローラとしての基本的
機能とは、外部入出力装置3から取込まれた入力データ
で、入出カメモリ4の入カニリアを書換える入力更新機
能、入出カメモリ4の入出力データを参照して、ユーザ
プログラムメモリ5から読み出されたユーザ命令を実行
し、その実行結果で入出カメモリ4の出力データを書換
える命令実行は能、及び命令実行の結果書換えられた入
出力メモ1ノ4内の出力データを、外部入出力装置3か
ら外部へと送出する出力更新機能などである。Here, the basic functions as a programmable controller include an input update function that rewrites the input canister of the input/output memory 4 using input data taken in from the external input/output device 3, and an input/output function that refers to the input/output data of the input/output memory 4. It is possible to execute an instruction to execute a user instruction read from the user program memory 5 and rewrite the output data of the input/output memory 4 with the execution result. This includes an output update function that sends output data from the external input/output device 3 to the outside.
また、システムサービス機能の代表的なものと17では
、プログラムコンソール6からキー人力されるユーザプ
ログラムを、ユーザプログラムメモリ5内に書込むプロ
グラム機能、ユーザプログラムメモリ5の指定されたプ
ログラム部分の入出力データを、入出カメモリ4から読
み出し、これをプログラムコンソール6の表示器に表示
させるモニタ機能などを挙げることができる。Typical system service functions 17 include a program function for writing a user program manually entered from the program console 6 into the user program memory 5, and an input/output function for a designated program portion of the user program memory 5. Examples include a monitor function that reads data from the input/output memory 4 and displays it on the display of the program console 6.
ワーキングメモリ7は、以上述べた各種のシステムプロ
グラムを実行する際に、演算途中結果の−・時記憶エリ
ア等として利用されるものである。The working memory 7 is used as a storage area for intermediate calculation results when executing the various system programs described above.
電源装’748 LJ、ACloovに基イテ、DC5
Vを形成Y65VR生回路8aと、AolooVに電断
か生じた場合、電断信号を発生する電断検知回路8bと
から構成されている。Power supply unit '748 LJ, based on ACloov, DC5
It is composed of a Y65VR generation circuit 8a that forms a V, and a power failure detection circuit 8b that generates a power failure signal when a power failure occurs in AolooV.
5V発生回路8aの出力電圧は、CPU 1 、システ
ムプログラムメモリ2.外部入出力装置3゜入出カメモ
リ4.ユーザプログラムメモリ5.プログラムコンソー
ル6、ワーキングメモリ7にそれぞれ電源として供給さ
れている。The output voltage of the 5V generation circuit 8a is supplied to the CPU 1, the system program memory 2. External input/output device 3゜input/output memory 4. User program memory5. Power is supplied to the program console 6 and working memory 7, respectively.
そし−C1良く知られているように、5v発生回路8a
の出力電圧は、AClooVが電断じても、直ちにOv
に落ちることはなく、内部コンデンサの作用で一定時間
保持された後、許容ifi以下にダウンするものである
。So-C1 As is well known, the 5v generation circuit 8a
Even if AClooV is cut off, the output voltage of
It never drops below the allowable ifi, but after being maintained for a certain period of time by the action of the internal capacitor, it drops below the allowable ifi.
電断割込回路9は、電断検知回路8bから電断検知信号
が与えられると、これに応答して電断割込信号を発生し
、これをCPU1の割込要求端子IRQ1に供給する。When the power failure interrupt circuit 9 receives the power failure detection signal from the power failure detection circuit 8b, it generates a power failure interrupt signal in response to the power failure detection signal, and supplies the generated power failure interrupt signal to the interrupt request terminal IRQ1 of the CPU 1.
また、リセット回路10は、電断検知回路8bから電断
検知信号か到来した場合、D05Vが許容値以下に低下
するまでの電源保持時間を考慮して一定時間遅れて、D
C5Vがダウンする前にリセット信号を発生する。この
リセット信号は、CPUIのリセット端子RESETに
供給される。In addition, when a power failure detection signal arrives from the power failure detection circuit 8b, the reset circuit 10 resets the D
Generate a reset signal before C5V goes down. This reset signal is supplied to the reset terminal RESET of the CPUI.
また、タイマ回路11は内蔵クロックで自動歩進される
プリセットカウンタで構成され、CPLJlから与えら
れたプリセットデータをカウントすると共に、カウント
終了信号(タイマ割込信号)を発生する。このカウント
終了信号は、CPU 1の割込要求端子IRQOに供給
される。Further, the timer circuit 11 is composed of a preset counter that is automatically incremented by a built-in clock, and counts the preset data given from CPLJl, and generates a count end signal (timer interrupt signal). This count end signal is supplied to the interrupt request terminal IRQO of the CPU 1.
次に、第2図〜第4図のフローチャート、第5図及び第
6図のメモリマツプ、第7図のタイムチャートをそれぞ
れ参照しながら、本発明に係る電断時の処理について説
明する。Next, with reference to the flowcharts shown in FIGS. 2 to 4, the memory maps shown in FIGS. 5 and 6, and the time chart shown in FIG. 7, the processing at the time of power cut-off according to the present invention will be explained.
第6図に示す如く、ユーザプログラムメモリ内には先頭
アドレスooooから順に通常プログラムが所定の20
8語で例えばラダー図に対応して格納され、その通常プ
ログラムの最終アドレスにはEND命令が格納される。As shown in FIG. 6, there are 20 normal programs in the user program memory in order from the start address oooo.
For example, eight words are stored corresponding to a ladder diagram, and an END instruction is stored at the final address of the normal program.
ここまでは、従来のプログラマブル・コントローラにお
いても同様である。Up to this point, the same applies to conventional programmable controllers.
これに対して、本発明のプログラマブル・コントローラ
におっては、END命令に続くエリア内に、電断時専用
の電断処理プログラムを所定のPC言語でやはりラダー
図等に対応させて記憶させ、最終アドレスにはPEND
END命令する。On the other hand, in the programmable controller of the present invention, in the area following the END command, a power outage processing program dedicated to power outages is stored in a predetermined PC language, also corresponding to a ladder diagram, etc. PEND for final address
Give the END command.
尚、ユーザプログラムメモリ内にユーザプログラムを書
込む制御については、この種のプログラマブル・コント
ローラにおいて既に良く知られた手法が確立されている
ため、詳細には説明しないが、要するにプログラムコン
ソール6においてプログラムモードに相当するモード設
定を行った後、命令キー、数値キー、書込みキー等を操
作して、順次各命令語を入力し、これをユーザプログラ
ムメモリ5内の指定されたプログラムアドレスに書込む
ものである。Regarding the control of writing the user program into the user program memory, a well-known method has already been established for this type of programmable controller, so it will not be explained in detail. After setting the mode corresponding to , the command keys, numeric keys, write keys, etc. are operated to sequentially input each command word, and this is written to a designated program address in the user program memory 5.
次いで、プログラムコンソール6において運転モードに
相当するモード設定操作を行うと、前述−した如く、ユ
ーザプログラムメモリの先頭アドレスからEND命令ま
での通常プログラムがサイクリックに実行され、その都
度入力更新、出力更新処理が行われる。Next, when a mode setting operation corresponding to the operation mode is performed on the program console 6, the normal program from the start address of the user program memory to the END command is cyclically executed, and the input and output are updated each time, as described above. Processing takes place.
この状態において、いま仮に第7図に示される如く、A
C100V電源に電断カ階生じたと仮定すると、電断に
よるAC波形の欠落に応答して、電断検知信号が電断検
知回路8bから出力される。In this state, as shown in FIG.
Assuming that a power outage occurs in the C100V power supply, a power outage detection signal is output from the power outage detection circuit 8b in response to a drop in the AC waveform due to the power outage.
そして、第7図に示す如く、電断検知信号の立下りに応
答して、電断割込回路9から電断割込信号が出力され、
これがCPU1の割込要求端子■RQ1に供給されるこ
とによって、それまで行われていた通常プログラムの実
行は中断され、その代り第2図に示される電断処理が割
込で開始される。Then, as shown in FIG. 7, in response to the fall of the power failure detection signal, the power failure interrupt circuit 9 outputs a power failure interrupt signal.
When this signal is supplied to the interrupt request terminal -RQ1 of the CPU 1, the execution of the normal program that has been in progress is interrupted, and instead, the power cutoff process shown in FIG. 2 is started by the interrupt.
すると、先ず電断割込信号の状態を読込むことによって
、実際に電断により割込が掛ったのか、おるいはノイズ
による割込が掛ったのかの確認を行ったのち(ステップ
201>、ノイズによる誤った割込要求と判定されれば
(ステップ202否定)、割込処理を行うことなく、直
ちに元の処理への復帰を行う。Then, by first reading the state of the power interruption interrupt signal, it is confirmed whether the interruption was actually caused by a power interruption or by noise (step 201>). If it is determined that the interrupt request is erroneous due to noise (No in step 202), the process immediately returns to the original process without performing the interrupt process.
これに対して、実際に電源断でおると確認されると(ス
テップ202肯定)、第5図に示す如く、ワーキングメ
モリ内に設けられた特殊フラグエリアの電断発生フラグ
をセットする(ステップ203)。この処理は、電源が
回復した場合、電断発生フラグの状態に応じて、最適な
電源回復時の処理を可能とするためで必る。On the other hand, if it is confirmed that the power has actually been cut off (step 202, affirmative), a power cut-off occurrence flag is set in a special flag area provided in the working memory, as shown in FIG. 5 (step 203). ). This process is necessary in order to enable optimal processing when power is restored, depending on the state of the power outage occurrence flag, when the power is restored.
次いで、タイマ回路11に、ユーザプログラムの実行許
容時間であるβ秒をプリセットしくステップ204>、
その後タイマ回路11を起動する(ステップ205)。Next, in step 204, the timer circuit 11 is preset to β seconds, which is the allowable execution time of the user program.
Thereafter, the timer circuit 11 is activated (step 205).
これにより、以後β秒が経過すると、CPU1に対して
タイマ割込がかかることとなる。As a result, a timer interrupt is applied to the CPU 1 after β seconds have elapsed.
以後、第3図に示されるユーザプログラム中の電断処理
プログラムの実行を繰返す(ステップ206)。Thereafter, the execution of the power cut processing program in the user program shown in FIG. 3 is repeated (step 206).
この処理では、先ず入力更新処理によって、外部入出力
装置3から取込まれた入力データを、入出カメモリ4の
入カニリアに書込んだ後(ステップ2061) 、プロ
グラムカウンタPCの値を第6図に示されるEND命令
格納アドレスの次のアドレスにセットしくステップ20
62> 、以後プログラムカウンタPCの(直を+1更
新してはくステップ2066> 、該当するプログラム
アドレスの命令を順次読出しくステップ2063) 、
続出された命令がPENDEND命令まで(ステップ2
064否定)、読み出された各命令を実行し、その実行
結果で入出カメモリ4の出力データの書換えを行う(ス
テップ2065)。In this process, first, the input data taken in from the external input/output device 3 is written to the input canister of the input/output memory 4 by the input update process (step 2061), and then the value of the program counter PC is changed to the value shown in FIG. Set it to the address next to the indicated END instruction storage address in step 20.
62>, thereafter update the program counter PC by +1 (Step 2066>, read out the instructions at the corresponding program address sequentially Step 2063),
The instructions issued one after another until the PENDEND instruction (step 2
064 (No), each read instruction is executed, and the output data of the input/output memory 4 is rewritten with the execution results (step 2065).
そして、最終的にPENDEND命令出しが解読される
と(ステップ20644定)、出力更新処理によって書
換えが終了した入出カメモリ4内の出力データを、外部
入出力装置3から外部へと送出する(ステップ2067
)。When the PENDEND instruction is finally decoded (step 20644), the output data in the input/output memory 4 that has been rewritten by the output update process is sent out from the external input/output device 3 (step 2067).
).
以上の処理を、前述したタイマ割込が発生するまで繰返
すわけである。The above process is repeated until the above-mentioned timer interrupt occurs.
このため、電断処理プログラムとして、予め各出力状態
が互いに一定の時間差をもってオフするように設定して
おけば、電断が生じた場合、従来装置のように全ての出
力を同時に強制的にオフ状態とすることなく、ユーザ側
の仕様に適合するように、一定の順序でオフさせること
もできる他、公知の各種の命令語を使用して、様々な電
断時対策を取ることができるわけである。Therefore, if you set the power outage processing program in advance so that each output state turns off with a certain time difference from each other, when a power outage occurs, all outputs will be forcibly turned off at the same time like in conventional devices. In addition to being able to turn off the power in a certain order to meet the user's specifications without having to turn it off, various known commands can be used to take various measures against power outages. It is.
次いで、β秒が経過して、タイマ割込が発生すると、ユ
ーザプログラム中の電断処理プログラムの実行は中断さ
れ、その代り第4図に示されるタイマ割込処理が開始さ
れる。Next, when β seconds have elapsed and a timer interrupt occurs, the execution of the power cut processing program in the user program is interrupted, and instead, the timer interrupt processing shown in FIG. 4 is started.
すると、先ずタイマ割込信号の状態を読込んで、ノイズ
による誤った割込でないことを確認した後(ステップ4
01,402N定)、外部入出力装置3を構成するラッ
チ回路に対して強制的にクリアをかけ、出力状態を全て
オフ状態に設定しくステップ403)、その後入出力に
は影響のないアイドリンク動作を行って、自己ループ状
態となる(ステップ404〉。Then, first read the state of the timer interrupt signal and confirm that it is not an erroneous interrupt due to noise (step 4).
01,402N constant), the latch circuit that constitutes the external input/output device 3 is forcibly cleared, and all output states are set to the OFF state (step 403), after which an idle link operation that does not affect input/output is performed. and enters a self-loop state (step 404).
次いで、γ秒が経過して、リセット信号が到来すると、
CPU1を構成するマイクロプロセッサは、強制的にハ
ードウェアでリセットが掛けられ、CPU1の動作は停
止する。Then, when γ seconds have elapsed and a reset signal arrives,
The microprocessor constituting the CPU 1 is forcibly reset by hardware, and the operation of the CPU 1 is stopped.
このように、第7図のタイムチャートから明らかなよう
に、従来の電断時処理の場合、電断割込信号の到来から
リセット信号の到来に至るy秒の時間を全て使って、シ
ステムプログラム中の電断処理を実行し、この間に全て
の出力状態を同時にオフさせるようにしていたのに対し
、この実施例では上述のy秒の中で最初のα秒をステッ
プ201〜205に至るユーザプログラム実行準備のた
めのシステムプログラム中の電断処理に当て、次のβ秒
をステップ206に示すユーザプログラム中の電断処理
に当て、残りのγ秒をシステムダウン準備のためのシス
テムプログラム中の電断処理に当てるようにしているの
である。In this way, as is clear from the time chart in Figure 7, in the case of conventional power failure processing, the system program In contrast, in this embodiment, the first α seconds of the above y seconds are performed by the user leading to steps 201 to 205. The next β seconds are used for power cut processing in the system program to prepare for program execution, the next β seconds are used for power cut processing in the user program shown in step 206, and the remaining γ seconds are used for power cut processing in the system program to prepare for system down. This is done to deal with the power outage.
この結果、予めユーザプログラムメモリ中に、END命
令に続いて各ユーザ側の仕様に適合すべき最適な電断処
理プログラムを格納し、最終アドレスにPENDEND
命令んでおきされすれば、電断が生じた場合にも、−律
に出力状態をオフさせることなく、予め設定された手順
で出力状態をオフさせたり、あるいは電断時特有の信号
を外部へ発して、通常電源から非常用電源への切換えを
行わせたり、I10メモリ内のデータの一部を、外部の
不揮発性メモリに転送したり、等々さまざまな電断時対
策を取ることが可能となるのでおる。As a result, following the END command, an optimal power outage processing program that conforms to each user's specifications is stored in the user program memory in advance, and the PENDEND command is stored at the final address.
If a command is given, even if a power outage occurs, the output state can be turned off according to a preset procedure without automatically turning off the output state, or a signal specific to a power outage can be sent to the outside. It is possible to take various measures in the event of a power outage, such as switching from normal power supply to emergency power supply by issuing a power supply, or transferring part of the data in I10 memory to external non-volatile memory. I will be there.
尚、以上の実施例では、電断時専用のユーザプログラム
をユーザプログラムメモリ内に記憶させ、これを電断時
にのみ実行させるために、END命令とPENDEND
命令断処理プログラムを特定するように構成したが、こ
れに代えて予め電断処理プログラム専用のアドレス空間
を用意し、電断処理の開始においてプログラムカウンタ
の値を強制的に該当アドレス空間の先頭アドレスに飛ば
しても良いことは勿論である。In the above embodiment, the END command and the PENDEND command are used to store a user program dedicated to power outages in the user program memory and execute it only at power outages.
Although the configuration was configured to specify the instruction power outage processing program, instead of this, an address space dedicated to the power outage processing program is prepared in advance, and the value of the program counter is forcibly set to the start address of the corresponding address space at the start of the power outage processing. Of course, you can also skip to
また、以上の実施例では、入力更新、出力更新を、EN
D命令の実行終了の度に行う所謂ENDリフレッシュ方
式のコントローラで説明したが、命令実行の度にその都
度入力更新、出力更新を行う所謂都度リフレッシュ方式
のコントローラにも同様に適用できることは勿論である
。In addition, in the above embodiment, input update and output update are performed using EN
Although the description has been made using a so-called END refresh type controller that performs each execution of the D instruction, it is of course applicable to a so-called refresh type controller that updates input and output each time an instruction is executed. .
第1図は本発明が適用されるプログラマブル・コントロ
ーラ全体及び周辺装置のハードウェア構成を示ずブロッ
ク図、第2図は電断割込で実行される電断処理の詳細を
示すフローチャート、第3図はユーザプログラム中の電
断処理プログラムの実行に関する詳細を示すフローチャ
ート、第4図はタイマ割込で実行されるタイマ割込処理
の詳細を示すフローチャート、第5図はワーキングメモ
リ内に設けられた電断発生フラグを示すメモリマツプ、
第6図はユーザプログラムメモリ内に格納された通常プ
ログラム及び電断処理プログラムの状態を示すメモリマ
ツプ、第7図は各部の信号状態を示すタイムチャートで
ある。
1・・・CPU
2・・・システムプログラムメモリ
3・・・外部入出力装置
4・・・入出カメモリ
5・・・ユーザプログラムメモリ
6・・・プログラムコンソール
7・・・ワーキングメモリ
8・・・電源装置
8a・・・5V発生回路
8b・・・電断検知回路
9・・・電断割込回路
10・・・リセット回路
11・・・タイマ回路
第3図
第5図FIG. 1 is a block diagram showing the hardware configuration of the entire programmable controller and peripheral devices to which the present invention is applied, FIG. 2 is a flowchart showing details of power interruption processing executed in response to a power interruption The figure is a flowchart showing the details of the execution of the power cut processing program in the user program, Figure 4 is the flowchart showing the details of the timer interrupt processing executed by the timer interrupt, and Figure 5 is the flowchart showing the details of the timer interrupt processing executed by the timer interrupt. Memory map showing power outage flag,
FIG. 6 is a memory map showing the states of the normal program and the power-off processing program stored in the user program memory, and FIG. 7 is a time chart showing the signal states of each part. 1... CPU 2... System program memory 3... External input/output device 4... Input/output memory 5... User program memory 6... Program console 7... Working memory 8... Power supply Device 8a...5V generation circuit 8b...Power failure detection circuit 9...Power failure interrupt circuit 10...Reset circuit 11...Timer circuit Figure 3 Figure 5
Claims (1)
段と、 割込要求が発せられてから、DC電源がダウンするまで
の間において、電断時専用のユーザプログラムを割込で
実行させるプログラム実行手段と、を具備することを特
徴とするプログラマブル・コントローラ。(1) An interrupt request generating means that issues an interrupt request in response to a power outage, and a means for interrupting a user program dedicated to power outages from when the interrupt request is issued until the DC power supply goes down. A programmable controller comprising: program execution means for executing a program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24117285A JPS62100802A (en) | 1985-10-28 | 1985-10-28 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24117285A JPS62100802A (en) | 1985-10-28 | 1985-10-28 | Programmable controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62100802A true JPS62100802A (en) | 1987-05-11 |
Family
ID=17070314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24117285A Pending JPS62100802A (en) | 1985-10-28 | 1985-10-28 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62100802A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63265779A (en) * | 1987-04-23 | 1988-11-02 | Honda Motor Co Ltd | Method of assembling automobile |
-
1985
- 1985-10-28 JP JP24117285A patent/JPS62100802A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63265779A (en) * | 1987-04-23 | 1988-11-02 | Honda Motor Co Ltd | Method of assembling automobile |
JPH0578467B2 (en) * | 1987-04-23 | 1993-10-28 | Honda Motor Co Ltd |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0588795A (en) | Data processor | |
JPH1049246A (en) | Computer system and its starting method | |
JPS62100802A (en) | Programmable controller | |
KR100265793B1 (en) | Method and apparatus for diagnosing real time clock in computer system | |
JPS6234260A (en) | Access system for nonvolatile memory | |
EP0782074B1 (en) | Game apparatus and method for debugging game program | |
JP2005128613A (en) | Image forming device | |
JPH0373015B2 (en) | ||
JP4251914B2 (en) | Projection-type image display apparatus and discharge lamp information storage method thereof | |
JPS63298654A (en) | Microcomputer | |
JP2006079229A (en) | Method and device for maintaining data integrity for flash memory microcomputer | |
JP3678269B2 (en) | Control device | |
JP4061911B2 (en) | Memory check method, method, and memory check program | |
JPH02125303A (en) | Programmable controller | |
JPH0588794A (en) | System for controlling automatic display off function | |
JPS63157238A (en) | computer | |
JPS62100801A (en) | Programmable controller | |
JPH05204682A (en) | Method for forcedly stopping information processor | |
JPH02139614A (en) | Ac driven personal computer | |
JP2669143B2 (en) | Programmable controller programming device | |
JPH06195210A (en) | Program exchange system | |
JPH0218739B2 (en) | ||
JPS6230392B2 (en) | ||
JPH02299046A (en) | Blocking/start processing method for computer system | |
CN110060726A (en) | The program detecting method and implantable medical device of flash memory |