JP3356077B2 - How to make the output interval constant when setting the constant scan of the programmable controller - Google Patents

How to make the output interval constant when setting the constant scan of the programmable controller

Info

Publication number
JP3356077B2
JP3356077B2 JP27499098A JP27499098A JP3356077B2 JP 3356077 B2 JP3356077 B2 JP 3356077B2 JP 27499098 A JP27499098 A JP 27499098A JP 27499098 A JP27499098 A JP 27499098A JP 3356077 B2 JP3356077 B2 JP 3356077B2
Authority
JP
Japan
Prior art keywords
interrupt
fixed
constant
refresh
time
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
Application number
JP27499098A
Other languages
Japanese (ja)
Other versions
JP2000105604A (en
Inventor
昇 坂本
博行 林
裕行 加賀美
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 JP27499098A priority Critical patent/JP3356077B2/en
Publication of JP2000105604A publication Critical patent/JP2000105604A/en
Application granted granted Critical
Publication of JP3356077B2 publication Critical patent/JP3356077B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は産業機器等で使用さ
れるプログラマブルコントローラにおけるCPUユニッ
トのコンスタントスキャン設定時の出力制御のばらつき
削減に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to reduction of variation in output control when a constant scan of a CPU unit is set in a programmable controller used in industrial equipment or the like.

【0002】[0002]

【従来の技術】コンスタントスキャン機能とは、例えば
特開平1−119804号公報に示されるように、シー
ケンスプログラムの0ステップ目からEND処理までの
実行に要するプログラム実行時間(T1)及び入出力リ
フレッシュ時間(T2)の和で示されるスキャンタイム
(T1+T2)を一定化させる機能であり、通常、入出
力のばらつきにより制御に支障をもたらすシステムで有
効な機能である。
2. Description of the Related Art A constant scan function is a program execution time (T1) and an input / output refresh time required for executing a sequence program from a 0th step to an END process as disclosed in Japanese Patent Application Laid-Open No. 1-119804. This is a function for stabilizing the scan time (T1 + T2) represented by the sum of (T2), and is generally an effective function in a system in which control is hindered by input / output variations.

【0003】従来のCPUユニットにおけるコンスタン
トスキャン機能の処理方式を、図6〜図9に基づいて説
明する。なお、従来技術のコンスタントスキャン機能の
設定条件として、A、B、CはCPUチップに内蔵され
る汎用レジスタ、コンスタントスキャン設定時間は10
msec、定周期割込み間隔は5ms間隔で定周期割込
みが発生するように設定してあるものとする。ここで、
定周期割込みとは、CPUユニット内のクロック回路か
らの信号によって作られる処理であり、バッテリの電源
電圧低下をチェックするなど毎END処理には実行不要
で、かつ、定期的に処理する必要のあるものである。
A processing method of a constant scan function in a conventional CPU unit will be described with reference to FIGS. A, B, and C are general-purpose registers built into the CPU chip, and the constant scan setting time is 10 times.
It is assumed that the fixed-cycle interrupt interval is set such that a fixed-cycle interrupt occurs at an interval of 5 ms. here,
The periodic interrupt is a process generated by a signal from a clock circuit in the CPU unit, and is not required to be executed for every END process such as checking for a drop in the power supply voltage of a battery and needs to be processed periodically. Things.

【0004】図6は、CPUユニットのシステム構成を
示すシステム構成図である。図において、1はCPUユ
ニットであり、OS−ROM7Aに記述されたプログラ
ムを実行したり、シーケンスプログラムを解読および実
行するCPUチップ2と、ユーザにより周辺機器14で
プログラミングされたシーケンスプログラムを受信する
周辺機器I/F部3と、受信したシーケンスプログラム
を格納するシーケンスプログラムメモリ4と、シーケン
スプログラムの実行結果を格納するデバイスメモリ5
と、一時的なデータ退避などに使用されるワークメモリ
6と、スイッチなどの入力機器からの情報を取得するた
めの入力部11と、ランプなどの出力機器に演算結果を
出力するための出力部12と、シーケンスプログラムの
実行および停止をユーザにより操作変更可能とするため
のRUN/STOP切換えスイッチ13と、クロック回
路8からのパルスをカウントし、カウント値によりCP
Uチップ2に対し割込みを発生させる定周期割込み発生
回路9と、CPUユニット1が時間計測に用いるTMR
レジスタ10を装備している。ここで、定周期割込み発
生回路9とTMRレジスタ10は、クロック回路8から
のパルス信号を受ける限り動作し続ける。
FIG. 6 is a system configuration diagram showing the system configuration of the CPU unit. In the figure, reference numeral 1 denotes a CPU unit which executes a program described in the OS-ROM 7A, decodes and executes a sequence program, and a peripheral which receives a sequence program programmed by the user on the peripheral device 14. A device I / F unit 3, a sequence program memory 4 for storing received sequence programs, and a device memory 5 for storing execution results of the sequence programs
A work memory 6 used for temporary data saving, an input unit 11 for acquiring information from an input device such as a switch, and an output unit for outputting a calculation result to an output device such as a lamp. 12, a RUN / STOP switch 13 for enabling the user to change the execution and stop of the sequence program, and counts the pulses from the clock circuit 8, and counts the CP from the count value.
A fixed-cycle interrupt generation circuit 9 for generating an interrupt for the U chip 2 and a TMR used by the CPU unit 1 for time measurement
A register 10 is provided. Here, the fixed cycle interrupt generation circuit 9 and the TMR register 10 continue to operate as long as the pulse signal from the clock circuit 8 is received.

【0005】図7は、定周期割込み処理を示すフローチ
ャートである。図8は、コンスタントスキャンが設定さ
れている場合におけるCPUユニットの電源ON以降の
処理を示すフローチャートである。図9は、定周期割込
みと出力リフレッシュのタイミングを示す図である。
FIG. 7 is a flow chart showing a fixed period interrupt process. FIG. 8 is a flowchart showing processing after the power of the CPU unit is turned on when the constant scan is set. FIG. 9 is a diagram illustrating timings of the periodic interrupt and the output refresh.

【0006】次に、従来の動作について図6〜図9を用
いて説明する。CPUユニット1には、バッテリ電源電
圧の低下チェック(以下バッテリチェック)、周辺機器
装着チェック、ワークメモリ故障チェック等、さまざま
な動作状態チェック機能を装備しており、この動作状態
チェック機能は定周期割込み発生回路9からの割り込み
のタイミングで、その割り込みのカウンタ値に応じた動
作状態チェックを1種類ずつ処理する。これら動作状態
チェックは、各動作状態チェック機能毎に処理時間が異
なっており、また、チェックOK/NG時でも処理時間
は変化する。
Next, a conventional operation will be described with reference to FIGS. The CPU unit 1 is equipped with various operation state checking functions such as a battery power supply voltage drop check (hereinafter referred to as a battery check), a peripheral device installation check, and a work memory failure check. At the timing of the interrupt from the generation circuit 9, the operation status check corresponding to the counter value of the interrupt is processed one by one. The processing time of these operation state checks differs for each operation state check function, and the processing time changes even when the check is OK / NG.

【0007】まず、定周期割込みを行う際の内部処理に
ついて、図7を用いて説明する。はじめに、ステップS
51において、どの動作状態チェック機能の実施をさせ
るかを決定する定周期割込み発生カウンタの値が、動作
状態チェック機能の個数(この場合は例えばn)を越え
ているかをチェックする。ステップS51におけるチェ
ックの結果、越えている(例えばn+1の)場合は、n
+1に対応したチェック機能が存在しないため、定周期
割込み発生カウンタの値を0に初期化(ステップS5
2)後、ステップS53に移行する。一方、ステップS
51におけるチェックの結果、超えていない(例えば
1)場合は、そのままステップS53に移行する。
[0007] First, an internal process when a fixed period interrupt is performed will be described with reference to FIG. First, step S
At 51, it is checked whether the value of the fixed-cycle interrupt occurrence counter for determining which operation state check function is to be executed exceeds the number of operation state check functions (in this case, for example, n). As a result of the check in step S51, if the number exceeds (for example, n + 1), n
Since the check function corresponding to +1 does not exist, the value of the fixed-cycle interrupt occurrence counter is initialized to 0 (step S5).
2) Then, the process proceeds to step S53. On the other hand, step S
As a result of the check in 51, if the number does not exceed (for example, 1), the process directly proceeds to step S53.

【0008】ステップS53では、定周期割込み発生カ
ウンタの値を判別し、カウンタの値に応じた動作状態チ
ェックを行う。例えば、定周期割込み発生カウンタの値
が、「0」ならばバッテリチェック(ステップS5
4)、「1」ならば周辺機器の装着チェック(ステップ
S55)、「n」ならばワークメモリ故障チェック(ス
テップS56)などのように動作状態チェック機能を実
施する。
In step S53, the value of the fixed-cycle interrupt occurrence counter is determined, and an operation state check according to the value of the counter is performed. For example, if the value of the fixed cycle interrupt occurrence counter is "0", the battery is checked (step S5).
4) If "1", an operation status check function such as a peripheral device mounting check (step S55), if "n", a work memory failure check (step S56), etc.

【0009】動作状態チェック機能を実施後は、ステッ
プS57において、定周期割込み発生カウンタに1を加
算し、次回の定周期割込み発生時に備えて、定周期割込
みを終了する。上記のような処理を行なうことにより各
動作状態チェック機能を定周期毎に実施することが可能
となる。
After executing the operation state check function, in step S57, 1 is added to the fixed cycle interrupt occurrence counter, and the fixed cycle interrupt is terminated in preparation for the next fixed cycle interrupt occurrence. By performing the above-described processing, it becomes possible to execute each operation state check function at regular intervals.

【0010】次に、図8を用いて、従来のコンスタント
スキャン設定時のCPUユニットの電源ON以降の処理
について説明する。CPUユニット1を立ちあげると、
初めに、ステップS61にて、CPUユニット1が動作
するための初期設定を行なう。なお、この初期設定で
は、定周期割込みの発生間隔の設定などをCPU2がO
S−ROM7Aに記述されたプログラムによって行な
う。
Next, a description will be given of processing after turning on the power of the CPU unit when the conventional constant scan is set, with reference to FIG. When the CPU unit 1 is started,
First, in step S61, initialization for operating the CPU unit 1 is performed. In this initial setting, the CPU 2 sets the interval of the periodic interrupt occurrence and the like.
This is performed by a program described in the S-ROM 7A.

【0011】続いてステップS62にて、CPUユニッ
ト1がRUNモードかSTOPモードかを判断すべく、
RUN/STOP切換えスイッチ13の判断を行なう。
ここで、RUN/STOP切換えスイッチ13が、ST
OP側を向いていた場合は、ステップS73に移行し
て、通常CPUユニット1の動作を停止するために出力
を全てOFFするSTOP処理を行なった後、再びRU
N/STOP切換えスイッチ13の判断を行い(ステッ
プS62)、これを繰り返す。
Subsequently, in step S62, in order to determine whether the CPU unit 1 is in the RUN mode or the STOP mode,
The RUN / STOP switch 13 is determined.
Here, the RUN / STOP switch 13 is set to ST
If it is turned to the OP side, the process shifts to step S73 to perform a STOP process of turning off all outputs in order to stop the operation of the normal CPU unit 1, and then to the RU again.
A determination is made by the N / STOP switch 13 (step S62), and this is repeated.

【0012】一方、RUN/STOP切換えスイッチ1
3が、RUN側を向いていた場合は、ステップS63に
移行し、現在のTMRレジスタ値をコンスタントスキャ
ン待ち開始TMR値としてワークメモリ6に格納する。
ここでワークメモリ6に格納したTMRレジスタ値は、
コンスタントスキャン設定時間まで到達したかどうかを
判断するときに用いる。
On the other hand, a RUN / STOP switch 1
If No. 3 faces the RUN side, the process proceeds to step S63, and the current TMR register value is stored in the work memory 6 as the constant scan wait start TMR value.
Here, the TMR register value stored in the work memory 6 is
This is used to determine whether the time has reached the constant scan set time.

【0013】続いて、ステップS64にて、出力リフレ
ッシュ処理を行い、シーケンスプログラムによる演算結
果を格納するデバイスメモリ5(出力)のデータをラン
プなど出力機器に出力するために、出力部12に書込
む。ステップS65では、入力リフレッシュ処理を行
い、スイッチなどの入力機器の情報を入力部11からデ
バイスメモリ5(入力)に読み出す。
Subsequently, in step S64, output refresh processing is performed, and data in the device memory 5 (output) for storing the operation result of the sequence program is written to the output unit 12 in order to output the data to an output device such as a lamp. . In step S65, input refresh processing is performed, and information on input devices such as switches is read from the input unit 11 to the device memory 5 (input).

【0014】続いて、ステップS66にて、デバイスメ
モリ5(入力)の情報を元に、シーケンスプログラムを
実行して入力条件に基づいた演算結果をデバイスメモリ
5(出力)に出力し、ステップS67にて、主に周辺機
器14との交信を行なうEND処理を行なう。
Subsequently, in step S66, a sequence program is executed based on the information in the device memory 5 (input) to output an operation result based on the input condition to the device memory 5 (output). Then, an END process for mainly communicating with the peripheral device 14 is performed.

【0015】そして、ステップS68〜71にて、コン
スタントスキャン時間待ち処理を行なう。まず、現在の
TMRレジスタ10の値をレジスタBに読み出す(ステ
ップS68)。続いて、レジスタBからコンスタントス
キャン待ち開始TMR値を減算し、結果をレジスタCに
格納する(ステップS69)。したがって、レジスタC
には、コンスタントスキャン待ちを開始してからの経過
時間が格納されることになる。
In steps S68 to S71, a constant scan time waiting process is performed. First, the current value of the TMR register 10 is read into the register B (step S68). Subsequently, the constant scan wait start TMR value is subtracted from the register B, and the result is stored in the register C (step S69). Therefore, register C
Stores the time elapsed since the start of the constant scan wait.

【0016】続いて、ステップS70にて、コンスタン
トスキャン設定時間とレジスタCを比較し、レジスタC
がコンスタントスキャン設定時間(10msec)未満
のときは、再びステップS68へ戻る。一方、レジスタ
Cがコンスタントスキャン設定時間(10msec)以
上のときは、ステップS71に移行して、レジスタBを
コンスタントスキャン待ち開始TMR用のワークメモリ
6に格納し、次のコンスタントスキャン待ち処理のため
の準備を行なう。
Subsequently, in step S70, the constant scan set time is compared with the register C, and
Is less than the constant scan set time (10 msec), the process returns to step S68. On the other hand, if the value of the register C is equal to or longer than the constant scan set time (10 msec), the process proceeds to step S71, where the register B is stored in the constant scan wait start TMR work memory 6, and the next constant scan wait process is performed. Prepare.

【0017】コンスタントスキャン待ち処理終了後、再
びRUN/STOP切換えスイッチ13の判断を行ない
(ステップS72)、STOP側を向いていた場合はS
TOP処理(ステップS73)を行なった後、ステップ
S62に移行して、再びRUN/STOP切換えスイッ
チ13の判断を行い、これを繰り返す。一方、RUN側
を向いていた場合はステップS64以降の処理を行い、
以下これを繰り返す。
After the end of the constant scan waiting process, the RUN / STOP switch 13 is judged again (step S72).
After performing the TOP process (step S73), the process proceeds to step S62, where the determination of the RUN / STOP switch 13 is made again, and this is repeated. On the other hand, if the player is facing the RUN side, the process from step S64 is performed.
This is repeated below.

【0018】なお、定周期割込みの発生周期は、通常は
電源投入時やリセット直後からのクロック回路8のパル
ス信号を定周期割込み発生回路より発生し、定周期割込
みが発生するタイミングは、電源投入時やリセット直後
と同期している。
The period of generation of the periodic interrupt is generally such that the pulse signal of the clock circuit 8 is generated from the periodic interrupt generating circuit at power-on or immediately after resetting. Synchronized with time or immediately after reset.

【0019】[0019]

【発明が解決しようとする課題】上述のように定周期割
込みは、電源投入時やリセット直後と同期している。す
なわち、定周期割込みの発生タイミングが、RUN/S
TOP切換えスイッチのSTOP→RUNへの切換えと
同期していないため、RUN/STOP切換えスイッチ
をSTOP→RUNと切換えると、図9に示すように、
例えば出力リフレッシュ中に定周期割込みが発生する可
能性がある。ここで、入出力リフレッシュは、システム
の構成上、定周期間隔毎に実行されているが、上述した
如く、出力リフレッシュ中に定周期割込みが発生する場
合、出力リフレッシュの処理間隔が一定化しなくため、
コンスタントスキャン設定による出力間隔の一定化がで
きなくなるという問題が生じる。
As described above, the fixed-period interrupt is synchronized with power-on and immediately after reset. That is, the generation timing of the periodic interrupt is RUN / S
Since the TOP switch is not synchronized with the switch from STOP to RUN, when the RUN / STOP switch is switched from STOP to RUN, as shown in FIG.
For example, a periodic interrupt may occur during output refresh. Here, the input / output refresh is executed at regular intervals due to the configuration of the system. However, as described above, when a periodic interrupt occurs during output refresh, the processing interval of output refresh is not fixed. ,
There is a problem that the output interval cannot be made constant by the constant scan setting.

【0020】本発明は、上記問題点を解決するためにな
されたものであり、定周期割込みをRUN/STOP切
換えスイッチをSTOP→RUNまたは電源投入後→R
UNと同期させることにより、コンスタントスキャン設
定による出力間隔を一定化を可能としたCPUユニット
を提供しようとするものである。
The present invention has been made in order to solve the above-mentioned problem. In order to solve the above-mentioned problem, a fixed-period interrupt is executed by setting a RUN / STOP switch to STOP → RUN or after power-on → R
An object of the present invention is to provide a CPU unit capable of stabilizing an output interval by constant scan setting by synchronizing with UN.

【0021】[0021]

【課題を解決するための手段】この本発明にかかるプロ
グラマブルコントローラのコンスタントスキャン設定時
の出力間隔の一定化方法は、所定のシーケンスプログラ
ムを実行するためのプログラム実行時間と、リフレッシ
ュに要するリフレッシュ時間との和であるスキャンタイ
ムを一定化すべく、コンスタントスキャン待ち処理を行
うプログラマブルコントローラにおいて、リフレッシュ
中の定周期割込みの発生を防止すべく、リフレッシュ処
理直前に強制的に定周期割込みを発生させるものであ
る。
According to the present invention, a method for stabilizing an output interval when a constant scan is set in a programmable controller according to the present invention includes a program execution time for executing a predetermined sequence program and a refresh time required for refreshing. In order to stabilize the scan time, which is the sum of the above, in a programmable controller that performs a constant scan wait process, a periodic interrupt is forcibly generated immediately before the refresh process in order to prevent the occurrence of a periodic interrupt during the refresh. .

【0022】[0022]

【0023】また、リフレッシュ中の定周期割込みを発
生を防止すべく、リフレッシュ処理直前に強制的に定周
期割込みを発生させた後、リフレッシュ処理に移行する
までの誤差調整時間を設け、待ち時間処理を行うもので
ある。
Further, in order to prevent the occurrence of a periodic interrupt during refresh, an error adjustment time is provided from when a periodic interrupt is forcibly generated immediately before the refresh process to when the process shifts to the refresh process. Is what you do.

【0024】さらに、RUN/STOP切換えスイッチ
にて、RUN動作に変更した際に、直ちに定周期割込み
発生の微調整を行うものである。
Further, when the operation is changed to the RUN operation by the RUN / STOP switch, fine adjustment of the occurrence of the periodic interrupt is immediately performed.

【0025】[0025]

【発明の実施の形態】実施の形態1.本発明の請求項に
ついての実施例を図1〜図5を用いて説明する。図1
は、CPUユニットのシステム構成を示すシステム構成
図である。図において、1はCPUユニットであり、O
S−ROM7に記述されたプログラムを実行したり、シ
ーケンスプログラムを解読および実行するCPUチップ
2と、ユーザにより周辺機器14でプログラミングされ
たシーケンスプログラムを受信する周辺機器I/F部3
と、受信したシーケンスプログラムを格納するシーケン
スプログラムメモリ4と、シーケンスプログラムの実行
結果を格納するデバイスメモリ5と、一時的なデータ退
避などに使用されるワークメモリ6と、スイッチなどの
入力機器からの情報を取得するための入力部11と、ラ
ンプなどの出力機器に演算結果を出力するための出力部
12と、シーケンスプログラムの実行および停止をユー
ザにより操作変更可能とするためのRUN/STOP切
換えスイッチ13と、クロック回路8からのパルスをカ
ウントし、カウント値によりCPUチップ2に対し割込
みを発生させる定周期割込み発生回路9と、CPUユニ
ット1が時間計測に用いるTMRレジスタ10を装備し
ている。ここで、定周期割込み発生回路9とTMRレジ
スタ10は、クロック回路8からのパルス信号を受ける
限り動作し続ける。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Embodiments of the present invention will be described with reference to FIGS. FIG.
FIG. 1 is a system configuration diagram showing a system configuration of a CPU unit. In the figure, reference numeral 1 denotes a CPU unit;
A CPU chip 2 for executing a program described in the S-ROM 7 or for decoding and executing a sequence program; and a peripheral device I / F unit 3 for receiving a sequence program programmed in the peripheral device 14 by a user.
And a sequence program memory 4 for storing the received sequence program, a device memory 5 for storing the execution result of the sequence program, a work memory 6 used for temporary data saving, etc., and input devices such as switches. An input unit 11 for acquiring information, an output unit 12 for outputting a calculation result to an output device such as a lamp, and a RUN / STOP switch for enabling a user to change the execution and stop of the sequence program 13, a fixed-cycle interrupt generation circuit 9 for counting pulses from the clock circuit 8 and generating an interrupt for the CPU chip 2 based on the count value, and a TMR register 10 used by the CPU unit 1 for time measurement. Here, the fixed cycle interrupt generation circuit 9 and the TMR register 10 continue to operate as long as the pulse signal from the clock circuit 8 is received.

【0026】図2は、定周期割込み処理を示すフローチ
ャートである。図3は、本発明におけるコンスタントス
キャン設定時のCPUユニット電源ON以降処理を示す
フローチャートである。図4は、本発明の実施の形態に
おける定周期割込み発生タイミング微調整処理を示すフ
ローチャートである。図5は、本発明の実施の形態にお
けるコンスタントスキャン設定時の定周期割込みと、出
力リフレエッシュのタイミングを示す図である。
FIG. 2 is a flowchart showing the periodic interrupt processing. FIG. 3 is a flowchart showing processing after turning on the CPU unit power when constant scan is set in the present invention. FIG. 4 is a flowchart showing the fixed-period interrupt occurrence timing fine adjustment processing according to the embodiment of the present invention. FIG. 5 is a diagram showing a periodic interrupt and a timing of an output refresh when a constant scan is set in the embodiment of the present invention.

【0027】CPUユニット1には、バッテリ電源電圧
の低下チェック(以下バッテリチェック)、周辺機器装
着チェック、ワークメモリ故障チェック等、さまざまな
動作状態チェック機能を装備しており、この動作状態チ
ェック機能は定周期割込み発生回路9からの割り込みの
タイミングで、その割り込みのカウンタ値に応じた動作
状態チェックを1種類ずつ処理する。これら動作状態チ
ェックは、各動作状態チェック機能毎に処理時間が異な
っており、また、チェックOK/NG時でも処理時間は
変化する。
The CPU unit 1 is equipped with various operation status check functions such as a battery power supply voltage drop check (hereinafter referred to as a battery check), a peripheral device attachment check, and a work memory failure check. At the timing of the interruption from the fixed-period interruption generating circuit 9, an operation state check corresponding to the counter value of the interruption is processed one by one. The processing time of these operation state checks differs for each operation state check function, and the processing time changes even when the check is OK / NG.

【0028】まず、バッテリ電源電圧の低下チェック
(以下バッテリチェック)、周辺機器装着チェック、ワ
ークメモリ故障チェック等、さまざまな動作状態チェッ
ク機能を行うべく、定周期割込みを行う際の内部処理に
ついて図2を用いて説明する。ここで、動作状態チェッ
ク機能は定周期割込み発生回路9からの割り込みのタイ
ミングで、その割り込みのカウンタ値に応じた動作状態
チェックを1種類ずつ処理する。また、これら動作状態
チェックは、各動作状態チェック機能毎に処理時間が異
なっており、また、チェックOK/NG時でも処理時間
は変化する。
First, an internal process when a periodic interrupt is performed in order to perform various operation state checking functions such as a battery power supply voltage drop check (hereinafter referred to as a battery check), a peripheral device mounting check, and a work memory failure check is shown in FIG. This will be described with reference to FIG. Here, the operation state check function performs an operation state check in accordance with the counter value of the interrupt one by one at the timing of an interrupt from the periodic interrupt generation circuit 9. The processing time of these operation state checks differs for each operation state check function, and the processing time changes even when the check is OK / NG.

【0029】はじめに、ステップS1において、どの動
作状態チェック機能の実施をさせるかを決定する定周期
割込み発生カウンタの値が、動作状態チェック機能の個
数(この場合は例えばn)を越えているかをチェックす
る。ステップS1におけるチェックの結果、越えている
(例えばn+1の)場合は、n+1に対応したチェック
機能が存在しないため、定周期割込み発生カウンタの値
を0に初期化(ステップS2)後、ステップS3に移行
する。一方、ステップS1におけるチェックの結果、超
えていない(例えば1)場合は、そのままステップS3
に移行する。
First, in step S1, it is checked whether the value of the fixed-cycle interrupt occurrence counter for determining which operation state check function is to be executed exceeds the number of operation state check functions (in this case, for example, n). I do. If the result of the check in step S1 exceeds (eg, n + 1), there is no check function corresponding to n + 1, so that the value of the fixed-cycle interrupt occurrence counter is initialized to 0 (step S2), and then to step S3. Transition. On the other hand, if the result of the check in step S1 does not exceed (for example, 1), the process proceeds to step S3.
Move to

【0030】ステップS3では、定周期割込み発生カウ
ンタの値を判別し、カウンタの値に応じた動作状態チェ
ックを行う。例えば、定周期割込み発生カウンタの値
が、「0」ならばバッテリチェック(ステップS4)、
「1」ならば周辺機器の装着チェック(ステップS
5)、「n」ならばワークメモリ故障チェック(ステッ
プS6)などのように動作状態チェック機能を実施す
る。
In step S3, the value of the fixed-cycle interrupt occurrence counter is determined, and an operation state check according to the value of the counter is performed. For example, if the value of the fixed-cycle interrupt occurrence counter is "0", a battery check is performed (step S4).
If "1", check the attachment of peripheral devices (step S
5) If "n", an operation state check function such as a work memory failure check (step S6) is performed.

【0031】動作状態チェック機能を実施後は、ステッ
プS7において、定周期割込み発生カウンタに1を加算
し、次回の定周期割込み発生時に備えて、定周期割込み
を終了する。上記のような処理を行なうことにより各動
作状態チェック機能を定周期毎に実施することが可能と
なる。
After executing the operation state check function, in step S7, 1 is added to the fixed-cycle interrupt occurrence counter, and the fixed-cycle interrupt is terminated in preparation for the next fixed-cycle interrupt occurrence. By performing the above-described processing, it becomes possible to execute each operation state check function at regular intervals.

【0032】次に、本発明におけるコンスタントスキャ
ン設定時のCPUユニット電源ON以降処理の動作につ
いて、図3を用いて説明する。なお、本渡宇佐は、OS
−ROM7に格納されたプログラムに基づき動作する。
Next, the operation after the CPU unit is turned on when the constant scan is set in the present invention will be described with reference to FIG. In addition, Usato Hondo is an OS
-Operate based on a program stored in the ROM 7.

【0033】CPUユニットの電源をONし、CPUユ
ニット1を立ちあげると、初めに、ステップS11に
て、CPUユニット1が動作するための初期設定を行な
う。なお、この初期設定では、定周期割込みの発生間隔
の設定などを行なう。
When the power of the CPU unit is turned on and the CPU unit 1 is started, first, in step S11, initialization for operating the CPU unit 1 is performed. In this initial setting, setting of an interval of occurrence of a fixed-cycle interrupt and the like are performed.

【0034】続いてステップS12にて、CPUユニッ
ト1がRUNモードかSTOPモードかを判断すべく、
RUN/STOP切換えスイッチ13の判断を行なう。
ここで、RUN/STOP切換えスイッチ13が、ST
OP側を向いていた場合はステップS24に移行して、
通常CPUユニット1の動作を停止するために出力を全
てOFFするSTOP処理を行なった後、再びRUN/
STOP切換えスイッチ13の判断を行い(ステップS
12)、これを繰り返す。
Subsequently, in step S12, in order to determine whether the CPU unit 1 is in the RUN mode or the STOP mode,
The RUN / STOP switch 13 is determined.
Here, the RUN / STOP switch 13 is set to ST
If the player is facing the OP side, the process proceeds to step S24,
After performing a STOP process for turning off all outputs to stop the operation of the normal CPU unit 1, RUN /
The STOP switch 13 is determined (step S
12) Repeat this.

【0035】一方、RUN/STOP切換えスイッチ1
3が、RUN側を向いていた場合は、ステップS13に
移行し、従来技術と異なる定周期割込み発生タイミング
微調整処理を行なう。
On the other hand, a RUN / STOP switch 1
If No. 3 is directed to the RUN side, the process proceeds to step S13, where a fixed-period interrupt generation timing fine adjustment process different from the related art is performed.

【0036】従来技術で示したごとく、図8におけるR
UN/STOP切換えスイッチ判別(ステップS62)
後、RUN動作を行う場合、直ちに出力リフレッシュ処
理が発生してしまう。しかしながら、ここでRUN動作
を実施したのでは、出力リフレッシュ中に定周期割込み
が発生し、外部機器への出力がばらついてしまう場合が
あるため、本実施の形態では、図3におけるステップS
13(定周期割込み発生タイミング微調整処理)を行
う。
As shown in the prior art, R in FIG.
UN / STOP switch determination (step S62)
Thereafter, when performing the RUN operation, the output refresh processing occurs immediately. However, if the RUN operation is performed here, a periodic interrupt may occur during output refresh and the output to the external device may vary, so in the present embodiment, step S in FIG.
13 (periodic interrupt generation timing fine adjustment processing).

【0037】ここで、定周期割込み発生タイミング微調
整処理に関して、図4を用いて説明する。ステップS3
1にて、定周期割込みが発生する度に、0、1、2・・
nのようにカウントアップする定周期割込み発生カウン
タの値をレジスタAに読み出す。
Here, the fixed-period interrupt generation timing fine adjustment processing will be described with reference to FIG. Step S3
Each time a fixed-cycle interrupt occurs, 0, 1, 2,.
The value of the fixed cycle interrupt occurrence counter which counts up like n is read out to the register A.

【0038】続いて、ステップS32にて、レジスタA
の値と、現在の定周期割込み発生カウンタの値を比較
し、一致していた場合は、ステップS31以降に新たな
定周期割込みは発生していないので、定周期割込みが発
生するまで時間待ちを行なうために再びステップS32
の処理を行なう。一方、レジスタAの値と、現在の定周
期割込み発生カウンタの値を比較し、不一致の場合は、
ステップS31以降に定周期割込みが発生したため、ス
テップS33に移行し、次の処理を行なう。
Subsequently, at step S32, the register A
Is compared with the current value of the fixed-cycle interrupt generation counter. If the values match, a new fixed-cycle interrupt has not occurred since step S31, so that time waiting is performed until a fixed-cycle interrupt occurs. Step S32 again to perform
Is performed. On the other hand, the value of the register A is compared with the current value of the fixed-period interrupt occurrence counter.
Since a fixed-period interrupt has occurred after step S31, the flow shifts to step S33 to perform the following processing.

【0039】ステップS33では、TMRレジスタ10
を読み出しレジスタBへ格納する。なお、本実施の形態
におけるTMRレジスタ10は、CPUユニット1の電
源ONからカウントを始め、例えば100μS毎に、
0、1、2・・65565、0のように変化を繰り返
す。
In step S33, the TMR register 10
Is stored in the read register B. Note that the TMR register 10 in the present embodiment starts counting when the power of the CPU unit 1 is turned on.
The change is repeated like 0, 1, 2,... 65565,0.

【0040】続いて、ステップS34にて、現在のTM
Rレジスタ10の値からレジスタBの値を減算し、レジ
スタCへ格納する。すなわち、レジスタCには、ステッ
プS32にて定周期割込み発生を確認してからの時間が
格納されることになる。
Subsequently, in step S34, the current TM
The value of the register B is subtracted from the value of the R register 10 and stored in the register C. That is, the time after the occurrence of the periodic interrupt has been confirmed in step S32 is stored in the register C.

【0041】ここで、割り込み処理内容により、定周期
割込みに要する処理時間は変化してしまう。そのため、
この定周期割込み処理(定周期割込み発生タイミング)
がリフレッシュ時間にかからないように、定周期割込み
処理が終了した後、リフレッシュ処理に入るまでに所定
の誤差調整時間を設ける。
Here, the processing time required for the periodic interrupt changes depending on the content of the interrupt processing. for that reason,
This fixed-cycle interrupt processing (fixed-cycle interrupt generation timing)
After the fixed-period interrupt process is completed, a predetermined error adjustment time is provided before the refresh process is started so that the refresh time is not taken.

【0042】そのため、ステップS35では、定周期割
込み処理時間が延び、リフレッシュ時間にかからないよ
うに調整するための誤差調整時間と、レジスタCの時間
とを比較する。比較の結果、レジスタCの値が誤差調整
時間より小さい場合、すなわち、定周期割込みが発生し
た後、該割込み処理時間が伸びる可能性のある時間分経
過していない場合は、ステップS34に戻り、レジスタ
Cの値が、誤差調整時間以上となるための処理を繰り返
す。一方、比較の結果、レジスタCの値が誤差調整時間
以上となった場合は、誤差調整時間分、待ちを行なった
ため、定周期割込みの処理時間が延びたとしても、リフ
レッシュ時間にはかからないことになるので、定周期割
込み発生タイミング微調整処理を終了し、図3における
ステップS14に移行する。
Therefore, in step S35, the time of the register C is compared with the error adjustment time for adjusting so that the fixed period interrupt processing time is extended and the refresh time is not required. As a result of the comparison, if the value of the register C is smaller than the error adjustment time, that is, if the time during which the interrupt processing time is likely to increase after the occurrence of the fixed-period interrupt has not elapsed, the flow returns to step S34. The processing for making the value of the register C equal to or longer than the error adjustment time is repeated. On the other hand, if the result of the comparison indicates that the value of the register C is equal to or longer than the error adjustment time, the processing waits for the error adjustment time, so that even if the processing time of the periodic interrupt is extended, it does not take the refresh time. Therefore, the fixed-period interrupt generation timing fine adjustment processing is ended, and the routine goes to Step S14 in FIG.

【0043】図2に戻り、ステップS14にて、現在の
TMRレジスタ値をコンスタントスキャン待ち開始TM
R値としてワークメモリ6に格納する。ここでワークメ
モリ6に格納したTMRレジスタ値は、コンスタントス
キャン設定時間まで到達したかどうかを判断するときに
用いる。
Returning to FIG. 2, in step S14, the current TMR register value is set to the constant scan wait start TM
It is stored in the work memory 6 as an R value. Here, the TMR register value stored in the work memory 6 is used to determine whether or not the time has reached the constant scan set time.

【0044】続いて、ステップS15にて、出力リフレ
ッシュ処理を行い、シーケンスプログラムによる演算結
果を格納するデバイスメモリ5(出力)のデータをラン
プなど出力機器に出力するために、出力部12に書込
む。ステップS16では、入力リフレッシュ処理を行
い、スイッチなどの入力機器の情報を入力部11からデ
バイスメモリ5(入力)に読み出す。
Subsequently, in step S15, output refresh processing is performed, and data of the device memory 5 (output) for storing the operation result of the sequence program is written to the output unit 12 in order to output the data to an output device such as a lamp. . In step S16, input refresh processing is performed, and information on input devices such as switches is read from the input unit 11 to the device memory 5 (input).

【0045】続いて、ステップS17にて、デバイスメ
モリ5(入力)の情報を元に、シーケンスプログラムを
実行して入力条件に基づいた演算結果をデバイスメモリ
5(出力)に出力し、ステップS18にて、主に周辺機
器14との交信を行なうEND処理を行なう。
Subsequently, in step S17, a sequence program is executed based on the information in the device memory 5 (input), and an operation result based on the input condition is output to the device memory 5 (output). Then, an END process for mainly communicating with the peripheral device 14 is performed.

【0046】そして、ステップS19〜22にて、コン
スタントスキャン時間待ち処理を行なう。まず、現在の
TMRレジスタ10の値をレジスタBに読み出す(ステ
ップS19)。続いて、レジスタBからコンスタントス
キャン待ち開始TMR値を減算し、結果をレジスタCに
格納する(ステップS20)。したがって、レジスタC
には、コンスタントスキャン待ちを開始してからの経過
時間が格納されることになる。
Then, in steps S19 to S22, a constant scan time waiting process is performed. First, the current value of the TMR register 10 is read into the register B (step S19). Subsequently, the constant scan wait start TMR value is subtracted from the register B, and the result is stored in the register C (step S20). Therefore, register C
Stores the time elapsed since the start of the constant scan wait.

【0047】続いて、ステップS21にて、コンスタン
トスキャン設定時間とレジスタCを比較し、レジスタC
がコンスタントスキャン設定時間(例えば、10mse
c)未満のときは、再びステップS19へ戻る。一方、
レジスタCがコンスタントスキャン設定時間(例えば、
10msec)以上のときは、ステップS22に移行し
て、レジスタBをコンスタントスキャン待ち開始TMR
用のワークメモリ6に格納し、次のコンスタントスキャ
ン待ち処理のための準備を行なう。
Subsequently, in step S21, the constant scan set time is compared with the register C, and
Is a constant scan set time (for example, 10 msec
If less than c), the process returns to step S19. on the other hand,
When the register C has a constant scan set time (for example,
If it is 10 msec) or more, the process proceeds to step S22, and the register B is set to the constant scan wait start TMR.
And prepares for the next constant scan waiting process.

【0048】コンスタントスキャン待ち処理終了後、再
びRUN/STOP切換えスイッチ13の判断を行ない
(ステップS23)、STOP側を向いていた場合はS
TOP処理(ステップS24)を行なった後、ステップ
S12に移行して、再びRUN/STOP切換えスイッ
チ13の判断を行い、これを繰り返す。一方、RUN側
を向いていた場合はステップS15以降の処理を行い、
以下これを繰り返す。
After completion of the constant scan waiting process, the RUN / STOP switch 13 is judged again (step S23).
After performing the TOP process (step S24), the process proceeds to step S12, where the determination of the RUN / STOP switch 13 is performed again, and this is repeated. On the other hand, if the player is facing the RUN side, the process from step S15 is performed.
This is repeated below.

【0049】定周期割込みの発生周期は、「電源投入後
→RUNおよびSTOP→RUN」のタイミングにおい
て微調整を行なうことにより、「電源投入後→RUNお
よびSTOP→RUN」と同期することになる。つま
り、定周期割込みの発生タイミングは図5のように出力
リフレッシュ時間を外した形で定周期割込みが発生する
ことになる。そのため、本実施の形態によれば、入出力
リフレッシュの際に定周期割込みが発生せず、コンスタ
ントスキャン設定時間は安定し、出力間隔の誤差をTM
Rレジスタの誤差分(例えば、TMRレジスタの最小単
位=±100μS)に抑える事ができるため、外部機器
の制御が安定する。
The period of occurrence of the fixed-period interrupt is synchronized with “after power-on → RUN and STOP → RUN” by performing fine adjustment at the timing of “after power-on → RUN and STOP → RUN”. That is, as shown in FIG. 5, the fixed-period interrupt occurs at a timing that excludes the output refresh time. Therefore, according to the present embodiment, a fixed-cycle interrupt does not occur at the time of input / output refresh, the constant scan set time is stabilized, and the error of the output interval is reduced by TM.
Since the error of the R register (for example, the minimum unit of the TMR register = ± 100 μS) can be suppressed, the control of the external device is stabilized.

【0050】[0050]

【発明の効果】この発明は、以上に説明したように構成
されているので、以下に記載されるような効果を奏す
る。
Since the present invention is configured as described above, it has the following effects.

【0051】本発明によれば、リフレッシュ処理中に発
生する定周期割込み処理を防止でき、コンスタントスキ
ャン設定時に出力間隔の誤差をTMRレジスタの誤差分
に抑える事ができるため、外部機器の制御が安定する。
また、定周期割込み処理の処理時間が変動したとして
も、確実にリフレッシュ処理中での発生を防止すること
ができる。
According to the present invention, it is possible to prevent a periodic interruption process occurring during the refresh process, and to suppress the error of the output interval to the error of the TMR register when the constant scan is set. I do.
Further, even if the processing time of the periodic interrupt processing varies, it is possible to reliably prevent the occurrence during the refresh processing.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の実施の形態におけるシステムCPU
ユニットのシステム構成図である。
FIG. 1 shows a system CPU according to an embodiment of the present invention.
It is a system configuration diagram of a unit.

【図2】 本発明の実施の形態における定周期割込み処
理を示すフローチャートである。
FIG. 2 is a flowchart showing a periodic interrupt process according to the embodiment of the present invention.

【図3】 本発明の実施の形態におけるコンスタントス
キャン設定時のCPUユニットの電源ON以降処理を示
すフローチャートである。
FIG. 3 is a flowchart showing processing after power-on of a CPU unit when a constant scan is set in the embodiment of the present invention.

【図4】 本発明の実施の形態における定周期割込み発
生タイミング微調整処理を示すフローチャートである。
FIG. 4 is a flowchart showing a fixed-period interrupt occurrence timing fine adjustment process according to the embodiment of the present invention.

【図5】 本発明の実施例におけるコンスタントスキャ
ン設定時の定周期割込みと、出力リフレッシュのタイミ
ングを示す図である。
FIG. 5 is a diagram showing a fixed-period interruption when a constant scan is set and an output refresh timing in the embodiment of the present invention.

【図6】 従来のシステムCPUユニットのシステム構
成図である。
FIG. 6 is a system configuration diagram of a conventional system CPU unit.

【図7】 従来の定周期割込み処理を示すフローチャー
トである。
FIG. 7 is a flowchart showing conventional fixed-cycle interrupt processing.

【図8】 従来のコンスタントスキャン設定時のCPU
ユニットの電源ON以降処理を示すフローチャートであ
る。
FIG. 8 shows a conventional CPU when a constant scan is set.
It is a flowchart which shows a process after power-on of a unit.

【図9】 従来のコンスタントスキャン設定時の定周期
割込みと出力リフレッシュのタイミングを示す図であ
る。
FIG. 9 is a diagram illustrating a conventional fixed-cycle interrupt and a timing of output refresh when constant scan is set.

【符号の説明】[Explanation of symbols]

1 CPUユニット、2 CPU、3 周辺機器I/F
部、4 シーケンスプログラムメモリ、5 デバイスメ
モリ、6 ワークメモリ、7 OS−ROM、8 クロ
ック回路、9 定周期割込み発生回路、10 TMRレ
ジスタ、11入力部、12 出力部、13 RUN/S
TOP切換えスイッチ、14 周辺機器。
1 CPU unit, 2 CPU, 3 peripheral device I / F
Section, 4 sequence program memory, 5 device memory, 6 work memory, 7 OS-ROM, 8 clock circuit, 9 fixed-cycle interrupt generation circuit, 10 TMR register, 11 input section, 12 output section, 13 RUN / S
TOP switch, 14 peripheral devices.

フロントページの続き (72)発明者 加賀美 裕行 東京都千代田区丸の内二丁目2番3号 三菱電機株式会社内 (56)参考文献 特開 平1−119804(JP,A) 特開 平2−8906(JP,A) 特開 昭63−170703(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 Continuation of front page (72) Inventor Hiroyuki Kagami 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Mitsubishi Electric Corporation (56) References JP-A-1-119804 (JP, A) JP-A-2-8906 ( JP, A) JP-A-63-170703 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/04-19/05

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定のシーケンスプログラムを実行する
ためのプログラム実行時間と、リフレッシュに要するリ
フレッシュ時間との和であるスキャンタイムを一定化す
べく、コンスタントスキャン待ち処理を行うプログラマ
ブルコントローラにおいて、リフレッシュ中の定周期割
込みの発生を防止すべく、リフレッシュ処理直前に強制
的に定周期割込みを発生させることを特徴とするプログ
ラマブルコントローラのコンスタントスキャン設定時の
出力間隔の一定化方法。
1. A programmable controller that performs a constant scan waiting process to stabilize a scan time, which is a sum of a program execution time for executing a predetermined sequence program and a refresh time required for a refresh, includes: Periodic schedule
Forced immediately before refresh processing to prevent
A method for stabilizing an output interval when a constant scan is set in a programmable controller, characterized by periodically generating a periodic interrupt .
【請求項2】 リフレッシュ中の定周期割込みの発生を
防止すべく、リフレッシュ処理直前に強制的に定周期割
込みを発生させた後、リフレッシュ処理に移行するまで
の誤差調整時間を設け、待ち時間処理を行うことを特徴
とする請求項1に記載のプログラマブルコントローラの
コンスタントスキャン設定時の出力間隔の一定化方法。
2. The method according to claim 1 , wherein a periodic interrupt is generated during refresh.
In order to prevent this, forcibly set a fixed period immediately before the refresh processing.
From the occurrence of the
It is characterized by providing an error adjustment time for
2. The method according to claim 1, wherein the output interval is set to be constant when the constant scan is set in the programmable controller.
【請求項3】 RUN/STOP切換えスイッチにて、
RUN動作に変更した際に、直ちに定周期割込み発生の
微調整を行うことを特徴とする請求項1または2の何れ
かに記載のプログラマブルコントローラのコンスタント
スキャン設定時の出力間隔の一定化方法。
3. A RUN / STOP switch,
When changing to RUN operation, a fixed-cycle interrupt
3. The method according to claim 1, wherein fine adjustment is performed.
The method for stabilizing the output interval when the constant scan is set in the programmable controller according to the above item (1).
JP27499098A 1998-09-29 1998-09-29 How to make the output interval constant when setting the constant scan of the programmable controller Expired - Fee Related JP3356077B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27499098A JP3356077B2 (en) 1998-09-29 1998-09-29 How to make the output interval constant when setting the constant scan of the programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27499098A JP3356077B2 (en) 1998-09-29 1998-09-29 How to make the output interval constant when setting the constant scan of the programmable controller

Publications (2)

Publication Number Publication Date
JP2000105604A JP2000105604A (en) 2000-04-11
JP3356077B2 true JP3356077B2 (en) 2002-12-09

Family

ID=17549377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27499098A Expired - Fee Related JP3356077B2 (en) 1998-09-29 1998-09-29 How to make the output interval constant when setting the constant scan of the programmable controller

Country Status (1)

Country Link
JP (1) JP3356077B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4901775B2 (en) * 2008-02-04 2012-03-21 三菱電機株式会社 Programmable controller
JP2010170536A (en) * 2008-12-26 2010-08-05 Omron Corp Programmable controller
JP4894961B1 (en) 2011-03-15 2012-03-14 オムロン株式会社 PLC CPU unit, PLC system program, and recording medium storing PLC system program
JP5845629B2 (en) * 2011-05-24 2016-01-20 オムロン株式会社 PLC CPU unit, PLC system program, and recording medium storing PLC system program
US8706262B2 (en) 2011-03-15 2014-04-22 Omron Corporation CPU unit of PLC, system program for PLC, and recording medium storing system program for PLC
JP4752983B1 (en) 2011-03-15 2011-08-17 オムロン株式会社 PLC CPU unit, PLC system program, and recording medium storing PLC system program
JP5099251B1 (en) 2011-07-15 2012-12-19 オムロン株式会社 PLC CPU unit, PLC system program, recording medium storing PLC system program, PLC system, PLC support device, PLC support program, and recording medium storing PLC support program
JP6812726B2 (en) 2016-09-30 2021-01-13 オムロン株式会社 Control unit, data refresh method, data refresh program

Also Published As

Publication number Publication date
JP2000105604A (en) 2000-04-11

Similar Documents

Publication Publication Date Title
US5367550A (en) Break address detecting circuit
JP3356077B2 (en) How to make the output interval constant when setting the constant scan of the programmable controller
US6886120B2 (en) Memory control circuit
JP4393954B2 (en) Microcomputer
JP3056131B2 (en) System reset method
JP3215438B2 (en) Method for regulating the performance of application programs in digital computers
JPH09305422A (en) Cpu for preventing malfunction of program
KR20030024619A (en) Clock monitoring apparatus
JP2001350739A (en) Microcomputer
US20220415405A1 (en) Memory-control circuit and method for controlling erasing operation of flash memory
JP2978820B2 (en) Information processing device activation method
TWI655577B (en) Operation speed compensation circuit and compensation method thereof
JP2007027960A (en) Signal variation timing delay circuit, sequence signal output circuit and power failure supervisory circuit
JP2689778B2 (en) Runaway detection device for electronic control unit
JP2731386B2 (en) Control device
US20040015741A1 (en) Watchdog device operation
JPS62289012A (en) Duty control pulse generating circuit
JPS59201123A (en) Interruption processing system
JP3144811B2 (en) Monitoring timer circuit
JPH0926894A (en) Cpu-controlled electronic circuit device
EP0416330B1 (en) Programmable controller
JP3424585B2 (en) Timing pulse generation circuit and timing pulse generation method
JPS63268044A (en) Watchdog timer
JPS63133237A (en) Halt/resetting circuit for microcomputer
JPH02306306A (en) Programmable controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees