JPS5924308A - Program timer - Google Patents
Program timerInfo
- Publication number
- JPS5924308A JPS5924308A JP13433182A JP13433182A JPS5924308A JP S5924308 A JPS5924308 A JP S5924308A JP 13433182 A JP13433182 A JP 13433182A JP 13433182 A JP13433182 A JP 13433182A JP S5924308 A JPS5924308 A JP S5924308A
- Authority
- JP
- Japan
- Prior art keywords
- data
- output
- time
- load
- address
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/10—Program control other than numerical control, i.e. in sequence controllers or logic controllers using selector switches
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
Abstract
Description
【発明の詳細な説明】
(イ)発明の分野
この発明は複数の負荷を予め設定した時刻に駆動あるい
は停止するための制御をなすプログラムタイマに関する
。DETAILED DESCRIPTION OF THE INVENTION (A) Field of the Invention The present invention relates to a program timer that controls driving or stopping a plurality of loads at preset times.
(ロ)発明の背景
一般にプログラムタイマを用いて複数の負荷の駆動・停
止制御をなす場合、同一時刻に複数のチャネ)v(複数
の負荷)を駆動制御することがある。(B) Background of the Invention In general, when a program timer is used to control the drive/stop of a plurality of loads, a plurality of channels)v (multiple loads) may be controlled to be driven at the same time.
この場合プログラムタイマよ重負荷への出力送出タイミ
ングは、a@のチャネル出力を同時に送出するため、駆
動制御する負荷が重負荷である場合に契約電力をオーバ
したり、線路の電圧が瞬時降下して他の機器に悪影響を
及ばすという問題がある。この問題を解決するためには
、出力送出タイミングを各チャネル毎に少しずつずらす
ことが望ましい。In this case, the output timing from the program timer to the heavy load is to simultaneously send out the a@ channel output, so if the load to be driven and controlled is a heavy load, the contract power may be exceeded or the line voltage may drop instantaneously. There is a problem in that it may adversely affect other devices. In order to solve this problem, it is desirable to slightly shift the output sending timing for each channel.
一方、軽負荷の場合には、上記のように出力送出タイミ
ングを各チャネル毎にわざわざずらす必要はない。それ
ゆえに複数の負荷を同時刻に駆動制御する場合でも、負
荷状況に応じて同時出力したり各チャネル毎にタイミン
グをずらして出力することが選択できれば好都合である
。On the other hand, in the case of a light load, there is no need to take the trouble to shift the output sending timing for each channel as described above. Therefore, even when driving and controlling a plurality of loads at the same time, it would be advantageous if it were possible to select simultaneous output or staggered output for each channel depending on the load situation.
(ハ)発明の目的
この発明の目的は、ユーザが、簡単に負荷の状況(軽負
荷1重負荷)に応じて、同時駆動すべき負荷への出力態
様を選択し得るプログラムタイマを提供するにある。(c) Purpose of the Invention The purpose of the present invention is to provide a program timer that allows the user to easily select the output mode to the loads to be driven simultaneously according to the load situation (light load, single load). be.
に)発明の構成と効果
上記目的を達成するためにこの発明のプログラムタイマ
は、複数の設定ステップ記憶領域を有し。B) Structure and Effect of the Invention In order to achieve the above object, the program timer of the present invention has a plurality of setting step storage areas.
各設定ステップ記憶領域に制御すべき負荷番号・駆動/
停止を示すデータおよび曜日・時分等の設定時刻情報を
記憶する手段と1時間信号を発生する手段と、この時間
信号発生手段よりの時間信号を受は曜日・時分等の現在
時刻情報を計数する手段とe nrJ記各設定時刻情報
と前記現在時刻情報とを比較して画情報の一致を確認す
る比較手段と。Load number/drive/to be controlled in each setting step storage area
Means for storing data indicating stoppage and set time information such as day of the week, hour and minute, means for generating a one-hour signal, and means for receiving the time signal from the time signal generating means and storing current time information such as day of the week, hour and minute. a counting means; and a comparison means for comparing each set time information and the current time information to confirm whether the image information matches.
前記比較手段の一致出力に基づいて対応する負荷を制御
する信号を出力する手段と、同時刻に複数の負荷が駆動
されるように設定されている場合。and means for outputting a signal for controlling a corresponding load based on the matching output of the comparing means, and a plurality of loads are set to be driven at the same time.
前記出力手段よシの複数の駆動信号を各負荷に同時に出
力するか所定のタイミングだけずらした順次出力を出す
かを切換える切換手段とで構成されている。The output means is comprised of a switching means for switching between outputting the plurality of drive signals from the output means to each load simultaneously or sequentially outputting them with a predetermined timing shift.
この発明のプログラムタイマによれば、同時刻に複数の
負荷を駆動制御する場合に、負荷の状況に応じ各負荷を
同時に駆動するか負荷チャネル毎に順次タイミングをず
らして出方し負荷を駆動するかの選択を、切換手段を操
作することにょシ簡単に行なうことができる。According to the program timer of the present invention, when driving and controlling multiple loads at the same time, each load is driven at the same time depending on the load condition, or the timing is sequentially shifted for each load channel to drive the loads. This selection can be easily made by operating the switching means.
(ホ)実施例の説明
以下9図面に示す実施例によシ、この発明をさらに詳細
に説明する。(E) Description of Embodiments The present invention will be explained in further detail with reference to embodiments shown in the following nine drawings.
第1図はこの発明の一実施例を示すプログラムタイマの
ブロック図である。同図において1は4ビツトの1チッ
プC−MOSマイクロプロセッサ(以下CPUという)
である。このCPU1は後述する処理フローに基づいて
タイマ機能を実行する。CPU1には、駆動パルス及び
時間パルスをli−与えるためクロツクパルヌ発生回路
2が接続され。FIG. 1 is a block diagram of a program timer showing one embodiment of the present invention. In the figure, 1 is a 4-bit 1-chip C-MOS microprocessor (hereinafter referred to as CPU).
It is. This CPU 1 executes a timer function based on a processing flow described later. A clock pulse generation circuit 2 is connected to the CPU 1 to provide driving pulses and time pulses.
さらに所定の周期(たとえば2.5m5)でCPU1に
割込みをかけるための割込信号発生回路6が接続されて
いる。Further connected is an interrupt signal generating circuit 6 for interrupting the CPU 1 at a predetermined period (for example, 2.5 m5).
キーボード4はCPUIに接続されておシ、数字・曜日
・チャネル番号の他に種々のデータをCPUIに入力す
るものであpCPUlに内蔵されるメモ!](RAM)
にプログラムデータを書込み。The keyboard 4 is connected to the CPUI and is used to input various data in addition to numbers, days of the week, and channel numbers to the CPUI. ] (RAM)
Write program data to.
あるいはそのデータを消去し、修正する。Or delete and modify that data.
CPU1の出力は時刻表示部5.曜日表示部6及び設定
出力モニタ7に加えられ表示されるようになっている。The output of the CPU 1 is displayed on the time display section 5. It is added to and displayed on the day of the week display section 6 and setting output monitor 7.
なお時刻表示部5は4桁の数字表示器で構成され、現在
時刻やプログラム設定時におけるチャネル番号、オン・
オフデータ及びプログラム時刻を表示する。曜日表示部
6は各曜日に対応する7個の発光素子で構成され、現在
の曜日を表示するとともにプログラム設定時の曜日表示
も行なう。設定出力モニタ7は4チャネル分の発光素子
で構成されプログラム設定時に設定したチャネル番号を
表示する。The time display section 5 consists of a 4-digit numerical display that displays the current time, channel number at program setting, and on/off.
Displays off data and program time. The day of the week display section 6 is composed of seven light emitting elements corresponding to each day of the week, and displays the current day of the week as well as the day of the week when the program is set. The setting output monitor 7 is composed of light emitting elements for four channels, and displays the channel number set at the time of program setting.
週間プログラムスイッチ8は、各曜日に対応する7個の
スイッチからなL CPU1に接続されている。この週
間プログラムスイッチ8は、″自動″の状態にあるとそ
の日はプログラムに従ってチャネルの負荷の制御が行な
われる。しかし。The weekly program switch 8 is connected to the L CPU 1, which is made up of seven switches corresponding to each day of the week. When the weekly program switch 8 is in the "auto" state, the channel load is controlled according to the program for that day. but.
°゛切″状態にあるとすべてのチャネルの負荷の制御は
行なわれないようになっている。When in the "off" state, load control of all channels is disabled.
CPU1と出力モニタ10.リレ一部11間に自動/手
動切換回路9が設けられている。自動/手動切換回路9
は、チャネル毎に「入」、「切」。CPU1 and output monitor 10. An automatic/manual switching circuit 9 is provided between the relay parts 11. Automatic/manual switching circuit 9
is "on" or "off" for each channel.
「自動」を切換え得る切換スイッチよシ構成されておシ
、各チャネルとも「自動」に設定された場合にのみCP
UIの出力が出力モニタ10やリレ一部11に伝えられ
「入」の場合にはCPUIの出力とは無関係にリレ一部
11が強制的に駆動される。リレ一部11は、このプロ
グラムタイマに接続される機器を動作(駆動)又は停止
させる4個からなるものであり、出力モニタ10は各チ
ャネル毎に負荷機器の動作状態を表示する発光素子から
成るものである。It is configured with a changeover switch that can switch between "auto" and CP only when each channel is set to "auto".
The output of the UI is transmitted to the output monitor 10 and the relay part 11, and when it is "in", the relay part 11 is forcibly driven regardless of the output of the CPU. The relay part 11 consists of four pieces that operate (drive) or stop the equipment connected to this program timer, and the output monitor 10 consists of light emitting elements that display the operating status of the load equipment for each channel. It is something.
12は出力送出のモード選択スイッチ回路であってこの
回路がオン状態にあれば、同一時刻に複数の出力を同時
に送出する(この場合を同時起動モードという)。逆に
オフ状態にある場合には同一時刻に出力すべき複数の出
力を1秒毎に順次送出する(この場合を順次起動モード
という。)すなわち出力送出モード選択スイッチ回路1
2によって同時起動モードと順次起動モードが選択設定
される。Reference numeral 12 denotes an output transmission mode selection switch circuit, and when this circuit is in an on state, a plurality of outputs are simultaneously transmitted at the same time (this case is referred to as simultaneous activation mode). Conversely, when it is in the OFF state, multiple outputs that should be output at the same time are sequentially sent out every second (this case is referred to as sequential startup mode), that is, the output sending mode selection switch circuit 1
2 selects and sets the simultaneous start mode and sequential start mode.
なお13はメイン電源よシの電圧Eを安定化し。Note that 13 stabilizes the voltage E from the main power supply.
CPU 1に電力を供給する定電圧回路、14はメイン
電源が断の状態でもこれをバックアップしてCPU1の
処理動作を実行させるバッテリである。A constant voltage circuit 14 that supplies power to the CPU 1 is a battery that backs up the circuit and allows the CPU 1 to execute processing operations even when the main power supply is turned off.
第2図及び第6図は第1図に示したグロダラムタイマの
外部ケースの表面図及び裏面図を示しており、第1図に
示すものと同一番号はそれぞれ対応するものを示してい
る。15は出力端子である。2 and 6 show a front view and a back view of the external case of the GLODARAM timer shown in FIG. 1, and the same numbers as those shown in FIG. 1 indicate corresponding parts, respectively. 15 is an output terminal.
上記実施例のプログラムカウンタのCPU1j:。CPU1j of the program counter in the above embodiment:.
記憶手段としてRAMを内蔵しておシこのRAMは第4
図に示すように、スタック及びワーキング用の記憶領域
Ml、演算用のレジスタN1.N2及び設定ステップの
データストア領域M2等に割当てられている。ここで設
定ステップのデータストア領域M2は、25の設定ステ
ップが設定可能であり、1設定ステツプ毎の記憶領域に
は、曜日・時分データ、チャネ)vf;、データ、出力
のオン・オフを示すデータが記憶されるようになってい
る。It has a built-in RAM as a storage means, and the RAM of the penis is the 4th one.
As shown in the figure, there is a stack and working storage area M1, a calculation register N1. N2 and the data store area M2 of the setting step. Here, in the data store area M2 of the setting step, 25 setting steps can be set, and the storage area for each setting step includes day of the week, hour and minute data, channel) vf;, data, and output on/off. The data shown is stored.
その1設定ステツプのデータ記憶配置を示すと第5図に
示す通シでありn番地の4ピツ)bl〜b4には1分デ
ータが、n+1番地の6ビツト分b1〜b乙には10分
データがn + 2番地の4ビツト分には1時位データ
が、n+6番地のbl・b2の2ビツトには10時位デ
ータが、同b6・b402ビットにはチャネ/v&がさ
らにn+4番地のb1〜b3の5ビツトには曜日データ
が、そして同番地のピッ)b4には出力のオン・オフを
示すデータが設定記憶される。各設定ステップのデーT
13)。そして設定ステップアドレスを1にして(ST
14)、次に25の設定ステップデータをすべてサーチ
したか判定する(ST15)。当初は判定NOなので1
次に設定ステップ1の時刻・曜日データが現在時刻と一
致したか判定する(S T16 )。The data storage arrangement for one setting step is shown in Figure 5, where 1 minute data is stored in 4 bits (4 bits at address n) bl to b4, and 1 minute data is stored in 6 bits (b1 to b) at address n+1. The 4 bits of data at address n+2 contain data at the 1 o'clock position, the 2 bits bl and b2 at address n+6 contain data at the 10 o'clock position, and the 402 bits b6 and b contain the channel/v& data at address n+4. Day of the week data is set and stored in the five bits b1 to b3, and data indicating output on/off is set and stored in the bit b4 at the same address. Data T for each setting step
13). Then set the setting step address to 1 (ST
14), then it is determined whether all 25 setting step data have been searched (ST15). Initially, the judgment was NO, so 1
Next, it is determined whether the time and day of the week data in setting step 1 match the current time (ST16).
上記例では一致するので次に設定ステップ1に記憶され
るチャネ/L/Aデータよシチャネル判別を行なう。設
定ステップ1の場合チャネ/’五データはOOであシこ
れはチャネ/L/&1を意味する。このチャネ/L/厖
1をデータ0001としてCPU1内のアキュムレータ
Accにストアする(STI 7)。続いて5T18で
設定ステップ1のn+4番地のb4ビットを参照して設
定出力がオンかオフか判定する。この場合1(オン)な
ので、5T19に移9゜N1番地のデータ1010とア
キュムレータAceのデータ0001の論理和をとシそ
の結果データ1011をN1番地にストアする(ST2
2)。そして設定ステップアドレスに+1して、2とし
く5T23)、5T15にジャンプする。In the above example, since they match, next the channel/L/A data stored in setting step 1 is used to determine the channel. For setting step 1, the channel/'5 data is OO, which means channel/L/&1. This channel/L/ku1 is stored as data 0001 in the accumulator Acc in the CPU1 (STI 7). Subsequently, in 5T18, it is determined whether the setting output is on or off by referring to the b4 bit at address n+4 in setting step 1. In this case, it is 1 (on), so move to 5T19, perform the logical sum of data 1010 at address 9N1 and data 0001 in accumulator Ace, and store the resultant data 1011 at address N1 (ST2
2). Then, add 1 to the set step address, set it to 2 (5T23), and jump to 5T15.
今度は設定ステップ2についてST15以降の動作を進
行することになる。上記例では5T15のデータをすべ
てサーチしたか?の判定NOで5T16に移9時刻・曜
日が一致したか判定するが。This time, for setting step 2, the operations from ST15 onwards will proceed. In the above example, did you search all the data for 5T15? If the determination is NO, the process moves to 5T16 and it is determined whether the time and day of the week match.
これはYES−cST17に移り設定ステップ2のチャ
ネ/’!データ01よりチャネ/v濫2を判別し。This moves to YES-cST17 and sets the channel/'! in step 2. Channel/v2 is determined from data 01.
そのデータ0010をアキュムレータAccに七ッ卜す
る。続いてオンデータか判定するが(ST18)。The data 0010 is loaded into the accumulator Acc. Next, it is determined whether the data is on (ST18).
設定ステップ2のn′+4番地のピッl−b 4は0(
オフ)でありその判定がNoとなるので設定ステップ1
の場合とは相違し、アキュムレータAceの内容001
0を反転して11o1を得、これをアキュムレータAc
eに再セットする(ST20)。次にN1番地のデータ
1011とアキュムレータAccのデータ1101の論
理積をとり(ST21)、その結果データ1001をN
1番地に再ストアする(ST22)。そして設定ステッ
プアドレスに+1して6としく5T23) 、 S T
15にジャンプする。Setting step 2 address n'+4 pick l-b 4 is 0 (
Off) and the judgment is No, so set step 1
Unlike the case of , the content of accumulator Ace is 001
0 is inverted to obtain 11o1, which is added to the accumulator Ac.
It is reset to e (ST20). Next, the data 1011 at address N1 and the data 1101 in the accumulator Acc are ANDed (ST21), and the resultant data 1001 is
Restore to address 1 (ST22). Then add +1 to the setting step address to make it 6 (5T23), S T
Jump to 15.
続いて設定ステップ3についてST15以降の動作が進
行する。この設定ステップ5の場合も5T15の判定N
O,5T16の時刻・曜日が一致したか?の判定YES
とな5ST17に移る。5T17でハ設定ステップ5の
チャネ)v泥データ10よシチャネ/I/L6を判別し
そのデータ[110,O’iアキュムレータAceにセ
ットする。続いて設定ステップ乙のn′+4番地のビッ
トb4 1よシ、オンデータか?YESの判定をしく5
T18) 、設定ステップ1の場合と同様N1番地のデ
ータとアキュムレータAceの論理和をとる( ST1
9 )。この局舎側データは1001と0100である
から結果データは1101となシこのデータがN1番地
にストアされる(ST22)。そして設定ステップアド
レスに+1して4としく5T23) 、 S T 15
にジャンプする。Subsequently, regarding setting step 3, the operations from ST15 onward proceed. Also in the case of this setting step 5, the judgment N of 5T15
O, Did the time and day of the week of 5T16 match? Judgment: YES
Move on to Tona5ST17. At 5T17, determine the channel/I/L6 from the channel data 10 of setting step 5, and set the data [110, O'i in the accumulator Ace. Next, in the setting step B, bit b4 at address n'+4 is 1, is it on data? Make a YES decision 5
T18), as in the case of setting step 1, take the logical sum of the data at address N1 and the accumulator Ace (ST1
9). Since this data on the station side is 1001 and 0100, the resultant data is 1101. This data is stored at address N1 (ST22). Then add +1 to the setting step address to make it 4 (5T23), S T 15
Jump to.
以後も設定ステップデータのすべてのサーチが完了する
まで、5T15以降の動作が繰り返されるがここで示し
た例では設定時刻・曜日が現在時刻・曜日と一致するの
は上表の6ステツプのみである。したがって5T16で
の時刻・曜日一致したか?の判定はNoとな5ST23
で、ステップアドレスの歩進だけが継続される。Thereafter, the operations from 5T15 onward are repeated until all searches of the setting step data are completed, but in the example shown here, the setting time and day of the week match the current time and day of the week only in the 6 steps in the table above. . Therefore, did the time and day of the week match on 5T16? Judgment is No 5ST23
Then, only the step address continues to advance.
(15)
データのすべてのサーチが終了すると5T15から5T
24にジャンプする。ST24ではN1番地のデータと
出力レジスタとの比較が行なわれ現在の出力とN1番地
のストア内容が一致するか判定される。もし一致してい
る場合には、すでに出力を送出していることになるので
、5T25・ST26でタイマチェック及びタイマ処理
を行ないST27に移る。(15) When all data searches are completed, 5T15 to 5T
Jump to 24. In ST24, the data at address N1 is compared with the output register to determine whether the current output matches the stored content at address N1. If they match, it means that the output has already been sent, so a timer check and timer processing are performed in 5T25 and ST26, and the process moves to ST27.
上記例ではN1番地のストアデータが1101゜出力レ
ジスタのデータが1010なので不一致でアシ、ここで
送出出力モード切換選択回路12をチェックして、同時
起動モードか、順次起動モードかの判別を行なう(ST
29)、同時起動モードに設定されている場合には、N
1番地のデータ1101をアキュムレータAceにロー
ドしく5T30 ) 。In the above example, the store data at address N1 is 1101° and the data in the output register is 1010, so there is a mismatch.The output output mode switching selection circuit 12 is checked here to determine whether the mode is simultaneous startup mode or sequential startup mode. ST
29), if set to simultaneous startup mode, N
Load data 1101 at address 1 into accumulator Ace (5T30).
さらにアキュムレータAceに71−アされたデータ1
101を出力レジスタを経て出力処理を行なう。Furthermore, the data 1 stored in the accumulator Ace is 71-
101 is outputted via an output register.
ST29で順次起動モードが設定されている場合には、
1秒タイマ(CPUI内に内蔵)が起動されているかど
うかの判定を行なう(ST32 )。1(14)
秒タイマが起動されていない場合には先ず現在の出力状
態すなわち出力レジスタの内容ID10’17−1i−
ユムレータAccにロードし1次にこのロードしたデー
タとN1番地のデータとの論理積をとシ。If sequential startup mode is set in ST29,
It is determined whether a one-second timer (built in the CPUI) is activated (ST32). 1 (14) If the second timer is not activated, first check the current output state, that is, the contents of the output register ID10'17-1i-
The data is loaded into the umulator Acc, and the logical product of this loaded data and the data at address N1 is executed as the primary.
その結果須をN2番地にストアする(Sr33 )。上
記例ではデータ1010とN1番地のデータ1101と
の論理積として1000が得られる。このデータは、出
力オン状態がなお続くチャネルを示すデータである。The result is stored at address N2 (Sr33). In the above example, 1000 is obtained as the AND of data 1010 and data 1101 at address N1. This data indicates the channel whose output is still on.
続いてN1番地とN2番地の排他的論理和演算を行ない
その結果をアキュムレータAceにストアする(Sr3
4)。上記例では1101と1000の排他的論理和で
あり、結果データとして0101が得られる。このデー
タは出力がオンに変わるチャネルを示すデータである。Next, an exclusive OR operation is performed on addresses N1 and N2, and the result is stored in accumulator Ace (Sr3
4). In the above example, it is an exclusive OR of 1101 and 1000, and 0101 is obtained as the result data. This data is data indicating the channel whose output is turned on.
すなわち1チヤネルと5チヤネルがオンに変わるもので
あることを示している。In other words, it shows that channels 1 and 5 are turned on.
5T34に続いて、アキュムレータA c cのグのビ
ット(第1ビツト)が1か否か判定しく5T35) 。Following 5T34, it is determined whether the green bit (first bit) of accumulator Acc is 1 (5T35).
1てあれば5T36に移JN2番地の内容+00O1を
N2査地に再ストアする。上記例では2°ビツトが1で
あシN2番地に1000がストアされているので、N2
番地には新たに1000+0Ocz=1oczがストア
される。次に1秒タイマを起動しく5T37)、続いて
N2番地のデータ1001′ff:アキュムレータic
eに転送しく5T38 ) 、さらにアキュムレータA
ceのデータ1001を出力レジスタを経て出力処理す
る(Sr31)。これによシ先ずチャネル1がオンされ
ることになる。そして2チヤネルはオンから万フ、3チ
ャネルはオフのまま4チヤネルはオンのままである。If it is 1, move to 5T36 and restore the contents of address JN2 +00O1 to location N2. In the above example, the 2° bit is 1 and 1000 is stored at address N2, so N2
1000+0Ocz=1ocz is newly stored at the address. Next, start the 1 second timer (5T37), then data 1001'ff at address N2: accumulator ic
5T38), and then transfer it to accumulator A.
The data 1001 of ce is outputted through the output register (Sr31). This will cause channel 1 to be turned on first. Channel 2 remains on, channel 3 remains off, and channel 4 remains on.
以後、5T27のキーフラグ=1か9NOを経て5T1
2から5T24にもどる。Sr14ではN1番地のデー
タ1101と出力レジスタの内容1001が一致しない
ので判定NOでS ’T 29に移るが、順次起動モー
ドなのでこのステップにおける判定もNoで5T32に
移り1秒タイマが起動しているか判定される。この判定
はYESなので次に1秒経過したかチェックする(Sr
25)。1秒が経過していない場合は5T27にジャン
プし。After that, after 5T27 key flag = 1 or 9NO, 5T1
Return from 2 to 5T24. In Sr14, the data 1101 at address N1 and the contents 1001 of the output register do not match, so the judgment is NO and the process moves to S'T 29.However, since it is a sequential startup mode, the judgment in this step is also No and the process moves to 5T32 to see if the 1-second timer has started. It will be judged. This judgment is YES, so next check whether 1 second has passed (Sr
25). If 1 second has not passed, jump to 5T27.
1秒が経過するまで、同様の処理が繰シ返される。Similar processing is repeated until one second has elapsed.
Sr15で1秒が経過したとの判定を得ると1秒タイマ
をヌトップすると同時にその内容をクリアする(Sr2
6)。When Sr15 determines that 1 second has elapsed, the 1-second timer is reset and its contents are cleared at the same time (Sr2
6).
Sr16以降の動作はSr17判定No−、5T12判
定No→ST24判定No−,5T29判定No−,5
T32と進行する。Sr12での1秒タイマ起動してい
るか?の判定は上記したように5T26で1秒タイマは
停止されているのでこの判定はNoとなpsT33に移
る。このステップでは出力レジスタのデータ1001と
N1番地のデータ1101の論理積をと9その結果デー
タ1001がアキュムレータAceよ!1lN2番地に
ストアされる。次にSr14でN1番地のデータ110
1とN2番地のデータ1001の排他的論理和をとりそ
の結果データ0100をアキュムレータAccにストア
する。The operation after Sr16 is Sr17 judgment No-, 5T12 judgment No->ST24 judgment No-, 5T29 judgment No-, 5
Proceed with T32. Is the 1 second timer on Sr12 running? Since the one second timer is stopped at 5T26 as described above, this determination is No and the process moves to psT33. In this step, the data 1001 of the output register and the data 1101 of address N1 are ANDed and the resultant data 1001 is stored in the accumulator Ace! Stored at address 1IN2. Next, data 110 at address N1 in Sr14
1 and the data 1001 at address N2 are exclusive-ORed and the resulting data 0100 is stored in the accumulator Acc.
アキュムレータA Ccにストアされたデータ0100
id2°ビツト、21ビツトがOで22ビツトが1であ
るので、5T35の2°ビツト=1か?の判定はNo、
5T39の判定No、5T41の判定YESとなシ、処
理は5T42に移る。5T42ではN2醤地の内容10
01と010[1が加算され。Data stored in accumulator A Cc 0100
The 2° bit of id, the 21st bit is O and the 22nd bit is 1, so is the 2° bit of 5T35 = 1? The judgment is No,
If the determination is No at 5T39 and YES at 5T41, the process moves to 5T42. In 5T42, N2 soy sauce content 10
01 and 010[1 are added.
その結果値1101が再度N2番地にストアされる。続
いてSr17に移シ1秒タイマを起動し。As a result, the value 1101 is stored again at address N2. Next, move to Sr17 and start the 1 second timer.
さらに5T38でN2番地のデータをアキュムレータA
Ccにロードし、5T31でアキュムレータAceのデ
ータ1101を出力レジスタに転送し出力処理する。こ
れによりチャネ/L/1に続いて1秒後にチャネzv3
もオンしたことになる。(チャネ/L/2はオフ、チャ
ネ)V4はオンしたまま)Sr31における出力処理後
は、5T27の判定NO−,5T120判定NOを経て
Sr14にもどるが、ここでは現在の出力レジスタの内
容1101とl′J1番地のデータは一致するのでこの
ステップにおける判定はYESとなり、1秒経過すると
1秒タイマを停止しその内容をクリアしく5T25.5
T26)、以後ST27に移る。Furthermore, data at address N2 is transferred to accumulator A at 5T38.
Cc, and at 5T31, the data 1101 of the accumulator Ace is transferred to the output register for output processing. This causes channel zv3 to appear after 1 second following channel/L/1.
This means that it is also turned on. (Channel/L/2 is off, channel V4 remains on) After the output processing in Sr31, the process returns to Sr14 through the NO-decision of 5T27 and NO of 5T120, but here, the current output register contents 1101 and Since the data at address l'J1 match, the judgment in this step is YES, and when 1 second elapses, the 1 second timer is stopped and its contents are cleared. 5T25.5
T26), then proceed to ST27.
以上のように、同時刻に負荷チャネルの複数を同時にオ
ン(駆動)出力する場合に同時起動か順次起動かを予め
設定しておくことによシ複数の出力をまったく同時にオ
ンしだシ、あるいは若干のタイミング時間(たとえば1
秒)をずらして順次オンすることができる。同時起動と
するが順次起動とするかは負荷の軽重(小太)に応じて
決定すればよい。As described above, when turning on (driving) multiple load channels at the same time, by setting in advance whether to start simultaneously or sequentially, it is possible to turn on multiple outputs at exactly the same time, or some timing time (e.g. 1
They can be turned on sequentially by staggered intervals (seconds). Whether to start them simultaneously or sequentially may be determined depending on the weight (or weight) of the load.
なお上記実施例における1秒タイマは2.5 m S毎
の割込み回数をカウントし、400回を計数すると丁度
、起動後1秒間経過したことになるので簡単に実現でき
る。このカウント回数を800回。Note that the 1-second timer in the above embodiment counts the number of interruptions every 2.5 mS, and when it counts 400 times, it means that exactly 1 second has passed after activation, so it can be easily implemented. Repeat this count 800 times.
1200回と変更してやることにより1秒タイマに代え
て、2秒タイマ、6秒タイマを得ることができるから順
次起動におけるずらしタイミング幅は任意に変えること
ができる。By changing the number to 1,200 times, a 2-second timer and a 6-second timer can be obtained instead of a 1-second timer, so the shift timing width in sequential activation can be arbitrarily changed.
第1図はこの発明の一実施例を示すプログラムタイマの
ブロック図、第2図は第1図に示すプログラムタイマの
外部ケ戸スの表面図、第6図は同裏面図、第4図は第1
図に示すプログラムタイマを(を成するCPUに内蔵さ
れるR A Mの記憶領域配@を示す図、第5図は第4
図に示すRAMの一般定ステップに割当てられる記憶領
域を示す図7第6図は出力レジスタのビット配置を示す
図、第7図は第1図に示すプログラムタイマの割込ルー
チンの処理フロー図、第8図(第8図−1,第8図−…
)は同通常ルーチンの処理フロー図である。
1:CPU、 2:クロックパルス発生回路。
6:割込発生回路、 4:キーボード。
5:時刻表示部、 6:曜日表示部、 7:設定出力
モニタ、 8:週間プログラムスイッチ。
9:自動/手動切換回路、 1o:出力モニタ。
11:リレ一部、 12:モード選択スイッチ回路、
16:定電圧回路、 14:バッテリ。
15:出力端子。
特許出願人 立石電機株式会社代理人 弁理
士 中 村 茂 信
第2層
r
褒3図
ノ5
第4図
第5目
第0反
茅7図
芽8図−エ
手続補正書(方式)
昭和57年11月 8日
特許庁長官殿
1、曲性の表示
昭和57年特許如 第 154661 号2 発明の
名称 プログラムタイマ
3 ?由j1三をする描
中性との関係 特許出願人
住 所 京都市右京区花園土堂町10番地名 称
(294) 立石電機株式会社代表者 立石孝雄
4代理人
6 補止の対象
fl) 1lJIal書の発明の詳細な説明の欄7
神正の内界
に時刻カウントを行なう(Sr1)。この時刻カウント
後は第8図に示す通常処理ルーチンにリターンする。
今ここで、設定ヌテップデータとして次表に示すものが
CPU1内のRAMに設定されており。
現在時刻が月曜日の12時64分になり、その時の出力
状態が1チヤネル・・・オフ、2チャネル・・・オン、
3チヤネル・・・オフ、4チヤネル・・・オン(出力V
ジスタの内容1010)である時を例にあげて通常処理
ルーチンの動作を説明する。
動作スタート後の5T11の初期設定に続いて。FIG. 1 is a block diagram of a program timer showing an embodiment of the present invention, FIG. 2 is a front view of the external gate of the program timer shown in FIG. 1, FIG. 6 is a back view of the same, and FIG. 1st
The program timer shown in the figure is a diagram showing the storage area arrangement of the RAM built into the CPU (which constitutes the program timer shown in the figure).
FIG. 6 shows the bit arrangement of the output register; FIG. 7 is a processing flow diagram of the program timer interrupt routine shown in FIG. 1; Figure 8 (Figure 8-1, Figure 8-...
) is a processing flow diagram of the same normal routine. 1: CPU, 2: Clock pulse generation circuit. 6: Interrupt generation circuit, 4: Keyboard. 5: Time display section, 6: Day of the week display section, 7: Setting output monitor, 8: Weekly program switch. 9: Automatic/manual switching circuit, 1o: Output monitor. 11: Relay part, 12: Mode selection switch circuit,
16: Constant voltage circuit, 14: Battery. 15: Output terminal. Patent Applicant Tateishi Electric Co., Ltd. Agent Patent Attorney Shigeru Nakamura 2nd Tier R Award 3 Figure No. 5 Figure 4 Item 5 Item 0 Anti-Kaya Figure 7 Bud Figure 8-E Procedural Amendment (Method) 1982 November 8th, Mr. Commissioner of the Japan Patent Office1, Indication of curvature Patent No. 154661 of 19822 Title of invention Program timer 3? Relationship with the depiction of neutrasexuality in the name of the person who is applying for the patent Address: 10, Hanazono Tsuchido-cho, Ukyo-ku, Kyoto City Name:
(294) Tateishi Electric Co., Ltd. Representative Takao Tateishi 4 Agent 6 Subject of supplement fl) 1l Column 7 for detailed explanation of the invention in the JIal document
Time is counted in the divine inner world (Sr1). After this time count, the routine returns to the normal processing routine shown in FIG. At this point, the setting nutep data shown in the following table is set in the RAM in the CPU 1. The current time is 12:64 on Monday, and the output status at that time is 1 channel...off, 2 channel...on,
3 channels...off, 4 channels...on (output V
The operation of the normal processing routine will be explained by taking as an example the case where the contents of the register are 1010). Following the initial setting of 5T11 after the start of operation.
Claims (1)
止制御するためのプログラム二り・リイユマであって。 複数の設定ステップ記憶領域を有し、各設定ステップ記
憶領域に制御すべき負荷番号、駆動/停止を示すデータ
および曜日・時分等の設定時刻情報を記憶する手段と1
時間信号を発生する手段と、この時間信号発生手段よシ
の時間信号を受は曜日・時分等の現在時刻情報を計数す
る手段と、前記各設定時刻情報と前記現在時刻情報とを
比較して画情報の一致を確認する比較手段と、@記比較
手段の一致出方に基づいて対応する負荷を制御する信号
を出力する手段と。 同時刻に複数の負荷が駆動されるように設定されている
場合、前記出力手段よりの複数の駆動信号を各負荷に同
時に出力するか所定のタインミングだけずらした順次高
力を出すかを切換得るようにした手段とで構成されるこ
とを特徴とするプログラムタイマ。(1) A program for controlling multiple loads to drive or stop at preset times. 1. Means having a plurality of setting step storage areas and storing load numbers to be controlled, data indicating drive/stop, and setting time information such as day of the week, hour and minute in each setting step storage area;
means for generating a time signal, means for receiving the time signal from the time signal generating means and counting current time information such as day of the week, hour and minute, and comparing each of the set time information and the current time information. and a means for outputting a signal for controlling a corresponding load based on how the comparison means matches. When a plurality of loads are set to be driven at the same time, it is possible to switch between outputting the plurality of drive signals from the output means to each load at the same time or sequentially outputting high forces shifted by a predetermined timing. A program timer characterized in that it is comprised of means as follows.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13433182A JPS5924308A (en) | 1982-07-31 | 1982-07-31 | Program timer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13433182A JPS5924308A (en) | 1982-07-31 | 1982-07-31 | Program timer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5924308A true JPS5924308A (en) | 1984-02-08 |
| JPS638481B2 JPS638481B2 (en) | 1988-02-23 |
Family
ID=15125833
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13433182A Granted JPS5924308A (en) | 1982-07-31 | 1982-07-31 | Program timer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5924308A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6392907U (en) * | 1986-12-08 | 1988-06-15 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6357876U (en) * | 1986-10-03 | 1988-04-18 |
-
1982
- 1982-07-31 JP JP13433182A patent/JPS5924308A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6392907U (en) * | 1986-12-08 | 1988-06-15 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS638481B2 (en) | 1988-02-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4224506A (en) | Electronic counter with non-volatile memory | |
| US4884254A (en) | Time display device | |
| JPS5924308A (en) | Program timer | |
| US4998229A (en) | Programmable world timepiece with automatic restoration mode | |
| JPH0748301B2 (en) | Semiconductor memory device | |
| US4888610A (en) | Display apparatus | |
| US20050062724A1 (en) | Display device and method thereof | |
| CA2249055C (en) | Time-division multiplex control unit, i/o unit, and programming system | |
| JPH0110699Y2 (en) | ||
| JP3632465B2 (en) | Vending machine control device | |
| JPS6217276B2 (en) | ||
| JPH01113682A (en) | Displaying system of voltage drop of battery | |
| JPS599790A (en) | Setting of vending machine | |
| JPS6236563B2 (en) | ||
| JP3032319B2 (en) | Vending machine control device | |
| KR950010957B1 (en) | Apparatus and method for selecting a driving mode of a video cassette recorder | |
| JPH01116706A (en) | Picture displaying method for display device of controller | |
| JPH01253087A (en) | Article selective display device for automatic vending machine | |
| JP2523507Y2 (en) | Program timer | |
| JP2560363Y2 (en) | Counter device | |
| JP2000322636A (en) | Automatic vending machine controller | |
| JPS6214799B2 (en) | ||
| JPH04181361A (en) | schedule storage device | |
| JPH0217819B2 (en) | ||
| JPH01232491A (en) | Controller for automatic vending machine |