Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2547106B2 - Sequence controller - Google Patents
[go: Go Back, main page]

JP2547106B2 - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JP2547106B2
JP2547106B2 JP2010008A JP1000890A JP2547106B2 JP 2547106 B2 JP2547106 B2 JP 2547106B2 JP 2010008 A JP2010008 A JP 2010008A JP 1000890 A JP1000890 A JP 1000890A JP 2547106 B2 JP2547106 B2 JP 2547106B2
Authority
JP
Japan
Prior art keywords
output
clock
control device
sequence control
program
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
JP2010008A
Other languages
Japanese (ja)
Other versions
JPH03214205A (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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2010008A priority Critical patent/JP2547106B2/en
Publication of JPH03214205A publication Critical patent/JPH03214205A/en
Application granted granted Critical
Publication of JP2547106B2 publication Critical patent/JP2547106B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明はシーケンス制御装置に関し、特にそのクロ
ックパルスの出力に関するものである。
The present invention relates to a sequence control device, and more particularly to the output of its clock pulse.

[従来の技術] 第5図に、従来のシーケンス制御装置の1のブロック
図を示す。入力端子I1〜I8には、センサ等の出力が与え
られる。出力端子01〜08には、制御対象となる負荷が接
続される。表示部2は、シーケンス制御装置の動作状態
を表示するためのものであり、LED等を備えている。ROM
4には、オペレティングシステム(OS)のプログラムが
記憶されている。OSは、基本的なプログラムであって変
更されずに使用されるのが前提であるため、書き換え不
可能なROM4に記憶されている。ユーザーの作成したプロ
グラムやデータは、RAM6およびPROM30に記憶されてい
る。CPU8は、ROM4のOSおよびRAM6のプログラムに従っ
て、バスライン12を介して、各部を制御する。なお、CP
U8は、発振回路45から供給されるシステムクロックによ
って動作する。
[Prior Art] FIG. 5 shows a block diagram of a conventional sequence control device 1. The input terminal I 1 ~I 8, the output of the sensor or the like is given. Loads to be controlled are connected to the output terminals 0 1 to 0 8 . The display unit 2 is for displaying the operating state of the sequence control device, and includes an LED and the like. ROM
In 4, the operating system (OS) program is stored. The OS is stored in the non-rewritable ROM 4 because it is a basic program and is used without any change. Programs and data created by the user are stored in the RAM 6 and PROM 30. The CPU 8 controls each unit via the bus line 12 according to the OS of the ROM 4 and the program of the RAM 6. Note that CP
U8 operates according to the system clock supplied from the oscillation circuit 45.

入力端子I1〜I8に入力されたセンサからの信号は、入
力回路10を介して、バスライン12に与えられる。バスラ
イン12は、アドレスバス、データバス、制御ラインから
構成されているが、図面では省略している。CPU8は、バ
スライン12上からこの信号を取り込み、ユーザープログ
ラムに従って演算を行う。この演算結果により、バスラ
イン12を介して出力回路14を制御し、出力端子01〜08
HまたはLにする。これにより、出力端子01〜08に接続
された負荷が、動作もしくは停止を行う。
The signals from the sensors input to the input terminals I 1 to I 8 are supplied to the bus line 12 via the input circuit 10. The bus line 12 includes an address bus, a data bus, and a control line, but is omitted in the drawing. The CPU 8 takes in this signal from the bus line 12 and performs an operation according to the user program. Based on this calculation result, the output circuit 14 is controlled via the bus line 12 to set the output terminals 0 1 to 0 8 to H or L. As a result, the loads connected to the output terminals 0 1 to 0 8 operate or stop.

すなわち、ユーザープログラムに規定されたとおり、
センサの出力に応じて負荷の動作を制御することができ
る。
That is, as specified in the user program,
The operation of the load can be controlled according to the output of the sensor.

なお、ユーザプログラム作成の便宜のため、シーケン
ス制御装置1内にはタイマ(ハードウエアもしくはソフ
トウエアシミュレーションによる)が設けられ、ユーザ
プログラムにより、スタート、ストップを命じることが
できるようになっている。
For the convenience of creating a user program, a timer (by hardware or software simulation) is provided in the sequence control device 1 so that start and stop can be commanded by the user program.

ユーザープログラムの作成やデバッグには、プログラ
ムコンソール100を用いる。プログラムコンソール100
は、RAM106、ROM104、CPU108、表示部102、メモリカー
ドリーダ140、指示キー150、接続用インターフェイス11
6を備えている。シーケンス制御装置1とプログラムコ
ンソール100との間は、ケーブル200によって接続され
る。
The program console 100 is used for creating and debugging a user program. Program console 100
Is RAM 106, ROM 104, CPU 108, display unit 102, memory card reader 140, instruction key 150, connection interface 11
Equipped with 6. A cable 200 connects the sequence control device 1 and the program console 100.

ユーザプログラムの作成は、指示キー150を用いて行
われる。指示キー150には、各種命令に対応するキーが
設けられている。作成されたユーザプログラムは、I/F1
16を介して、ケーブル200に送り出される。シーケンス
制御装置1は、これを受け取ってRAM6に記憶する。
The user program is created using the instruction key 150. The instruction key 150 is provided with keys corresponding to various commands. The created user program is I / F1
It is sent out to the cable 200 via 16. The sequence control device 1 receives this and stores it in the RAM 6.

プログラムコンソール100の指令キー150から実行指令
が出されると、RAM6のユーザプログラムの実行が始る。
When an execution command is issued from the command key 150 of the program console 100, the execution of the user program in RAM6 starts.

ところで、従来のシーケンス制御装置においては、ク
ロックパルスを出力するための回路が用意されておら
ず、またその命令も用意されていない。このため、出力
端子01〜08からクロックパルスを得るためには、複雑な
プログラムを作成する必要があった。このようなプログ
ラムの一例を第6図Aにラダー図で示す。
By the way, in the conventional sequence control device, a circuit for outputting a clock pulse is not prepared, and its instruction is not prepared. Therefore, in order from the output terminal 0 1-0 8 derive clock pulses, it is necessary to create complex programs. An example of such a program is shown in the ladder diagram in FIG. 6A.

一行目では、タイマTMR1の出力がオフであれば、タイ
マTMR0が計時動作を開始するように記述されている。こ
のタイマTMR0の計時時間は、0.1Secと設定されている。
The first line describes that if the output of the timer TMR1 is off, the timer TMR0 starts the time counting operation. The time measured by this timer TMR0 is set to 0.1 Sec.

二行目では、タイマTMR0の出力がオンであれば、タイ
マTMR1が計時動作を開始するように記述されている。こ
のタイマTMR1の計時時間は、0.1Secと設定されている。
The second line describes that the timer TMR1 starts the time counting operation when the output of the timer TMR0 is on. The time measured by the timer TMR1 is set to 0.1 Sec.

三行目では、タイマTMR0の出力をそのまま出力500
(出力端子01〜05の何れかが割当てられている)に出す
ように記述されている。
In the 3rd line, the output of timer TMR0 is output as it is 500
It is described to be output to (any one of the output terminals 0 1 to 0 5 is assigned).

このプログラムが実行されると、最初はタイマTMR1の
出力がオフであるため、一行目の記述により、タイマTM
R0が計時動作を開始する(第6図Bのα参照)。次に、
シーケンス制御装置は、二行目の実行に移る。ここで
は、タイマTMR0の出力がオフであるため、タイマTMR1を
スタートさせない。次に、三行目の実行を行う。ここで
も、タイマTMR0の出力がオフであるため、出力500をL
にしている。
When this program is executed, the output of timer TMR1 is initially off.
R0 starts the timing operation (see α in FIG. 6B). next,
The sequence control device moves to execution of the second line. Here, since the output of the timer TMR0 is off, the timer TMR1 is not started. Next, the third line is executed. Again, the output of timer TMR0 is off, so output 500
I have to.

三行目の実行が終ると、再び、一行目の実行に戻っ
て、上記の操作を繰り換す。0.1Secが経過すると、タイ
マTMR0の出力がオンとなる(第6図Bのβ参照)。その
後はじめて、二行目が実行されると、タイマTMR1がスタ
ートさせられる(第6図Bのγ参照)。次に、三行目に
おいて出力500がHにされる(第6図Bのδ参照)。
When the execution of the third line is completed, the operation is returned to the execution of the first line and the above operation is repeated. When 0.1 sec has elapsed, the output of the timer TMR0 turns on (see β in FIG. 6B). Only after that, when the second line is executed, the timer TMR1 is started (see γ in FIG. 6B). Next, the output 500 is set to H in the third line (see δ in FIG. 6B).

時点γから0.1Secが経過すると、タイマTMR1の出力が
オンとなる(第6図Bのε参照)。その後はじめて、一
行目が実行されると、タイマTMR0がリセットされる(第
6図Bのζ参照)。次に、二行目が実行されると、タイ
マTMR0の出力がオフであるため、タイマTMR1もリセット
される(第6図Bのη参照)。次に、三行目が実行され
ると、出力500はLとされる(第6図Bのθ参照)。
When 0.1 sec has elapsed from the time point γ, the output of the timer TMR1 is turned on (see ε in FIG. 6B). Only after that, when the first line is executed, the timer TMR0 is reset (see ζ in FIG. 6B). Next, when the second line is executed, the output of the timer TMR0 is off, so the timer TMR1 is also reset (see η in FIG. 6B). Next, when the third line is executed, the output 500 is set to L (see θ in FIG. 6B).

以後、同様の動作が繰り返され、出力500からほぼ0.1
Secのクロックパルスを得ることができる。
After that, the same operation is repeated, and from output 500 to almost 0.1
A clock pulse of Sec can be obtained.

[発明が解決しようとする課題] しかしながら、上記のような従来のシーケンス制御装
置においては、次のような問題点があった。
[Problems to be Solved by the Invention] However, the conventional sequence control device as described above has the following problems.

第一に、クロックパルスを出力するためには複雑な記
述のプログラムを作成する必要があり、容易にクロック
パルスを得ることができなかった。また、プログラムが
複雑であるため、メモリを消費する上、プログラム実行
のスキャンタイム(1つのルーチンを実行する時間)が
長くなってしまう原因にもなっていた。
First, in order to output a clock pulse, it was necessary to create a program with a complicated description, and the clock pulse could not be easily obtained. Further, since the program is complicated, it consumes memory and causes a long scan time (time to execute one routine) for program execution.

第二に、第6図Bからも明らかなように、スキャンタ
イムの影響で、得られたクロックに若干の誤差が生じて
いた。この誤差は、累積されるので、場合によっては誤
動作の原因ともなっていた。
Secondly, as is clear from FIG. 6B, a slight error occurred in the obtained clock due to the influence of the scan time. Since this error is accumulated, it may cause a malfunction in some cases.

第三に、スキャンタイムより周期の短いクロックパル
スを得ることは、原理的に不可能であった。
Thirdly, it was impossible in principle to obtain a clock pulse having a period shorter than the scan time.

この発明は上記のような問題点を解決して、正確なク
ロックパルスを容易に得ることのできるシーケンス制御
装置を提供することを目的とする。
An object of the present invention is to solve the above problems and to provide a sequence control device capable of easily obtaining an accurate clock pulse.

[課題を解決するための手段] 請求項1のシーケンス制御装置は、クロック出力命令
を設けるとともに、クロック出力命令に基づいて中央処
理手段が演算して得た分周率に従って、前記クロック発
振回路の出力を分周する分周回路を設けたことを特徴と
している。
[Means for Solving the Problem] The sequence control device according to claim 1 is provided with a clock output instruction, and according to a frequency division ratio obtained by calculation by the central processing means based on the clock output instruction, It is characterized in that a frequency dividing circuit for dividing the output is provided.

請求項2のシーケンス制御装置においては、前記分周
回路を、 比較器からのワンショットパルスによりリセットさ
れ、クロック発振回路の出力クロックを計数するカウン
タ、 所望の分周率を達成できるよう演算されたカウントア
ップ値を中央処理手段から受け取り、カウンタの計数値
とカウントアップ値とを比較して、一致した時、ワンシ
ョットパルスを出力する比較器、 比較器の出力するワンショットパルスにより、その出
力を交互にHレベルとLレベルに変える出力制御回路、 を備えたものとしたことを特徴としている。
In the sequence control device according to claim 2, the frequency dividing circuit is reset by a one-shot pulse from a comparator, a counter for counting the output clock of the clock oscillation circuit, and a calculation for achieving a desired frequency dividing ratio. It receives the count-up value from the central processing means, compares the count value of the counter with the count-up value, and outputs a one-shot pulse by a comparator that outputs a one-shot pulse when they match. It is characterized in that it is provided with an output control circuit for alternately changing over to an H level and an L level.

請求項3のシーケンス制御装置においては、クロック
出力命令を、所定のタイマに対するタイマ動作命令に割
当てたことを特徴としている。
According to another aspect of the sequence control device of the present invention, the clock output instruction is assigned to a timer operation instruction for a predetermined timer.

[作用] 請求項1および請求項2に係るシーケンス制御装置で
は、クロック発振回路の出力を分周することにより所望
のクロックを得るようにしている。したがって、正確な
クロックを容易に得ることができる。
[Operation] In the sequence control device according to the first and second aspects, a desired clock is obtained by dividing the output of the clock oscillation circuit. Therefore, an accurate clock can be easily obtained.

請求項3に係るシーケンス制御装置では、クロック出
力命令を、所定のタイマに対するタイマ動作命令に割当
てている。したがって、従来のシーケンス制御装置との
互換性を保つことができる。
In the sequence control device according to the third aspect, the clock output instruction is assigned to the timer operation instruction for the predetermined timer. Therefore, compatibility with the conventional sequence control device can be maintained.

[実施例] 第2図に、この発明の一実施例によるシーケンス制御
装置の外観を示す。筐体20の上部には、入力端子I1〜I8
が設けられており、下部には出力端子01〜08(図示せ
ず)が同様に設けられている。筐体20の前面部には、装
置の動作状態等を表示するためのLED22が配置されてい
る。また、筐体20の後部には、DINレール係合用の凹部2
4が設けられている。
[Embodiment] FIG. 2 shows an appearance of a sequence control device according to an embodiment of the present invention. At the top of the case 20, the input terminals I 1 to I 8
Is provided, and output terminals 0 1 to 0 8 (not shown) are similarly provided on the lower portion. An LED 22 for displaying the operating state of the device and the like is arranged on the front surface of the housing 20. In addition, a recess 2 for engaging the DIN rail is provided at the rear of the housing 20.
4 are provided.

このシーケンス制御装置のユーザプログラムを作成し
たり、デバッグ等を行う際には、第3図に示すプログラ
ムコンソール100を接続する。接続は、両者に設けられ
たコネクタ(図示せず)をケーブル(図示せず)によっ
て接続することにより行う。第3図に示すように、プロ
グラムコンソール100の前面には、表示部102を構成する
液晶ディスプレイ103が設けられるとともに、多数の指
令キー150が設けられている。ユーザプログラムの作成
には、この指令キー150を用いる。また、内部には、メ
モリカードリーダ140が設けられており、メモリカード3
00を挿入するための挿入口142が側面に設けられてい
る。この、メモリカード300にユーザプログラムを記憶
しておくこともできる。
The program console 100 shown in FIG. 3 is connected when the user program of this sequence control device is created or debugged. The connection is performed by connecting a connector (not shown) provided on both sides with a cable (not shown). As shown in FIG. 3, on the front surface of the program console 100, a liquid crystal display 103 constituting the display unit 102 is provided, and a large number of command keys 150 are provided. This command key 150 is used to create a user program. In addition, a memory card reader 140 is provided inside the memory card 3
An insertion port 142 for inserting 00 is provided on the side surface. The user program can be stored in the memory card 300.

第1図に、第2図、第3図のシーケンス制御装置1お
よびプログラムコンソール100のブロック図を示す。基
本的構成および動作は、第5図のものと同様である。こ
の実施例においては、中央処理手段であるCPU8に与えら
れるシステムクロックが、カウンタ35にも与えられてい
る。カウンタ35は、このシステムクロックを計数して、
計数値を比較器25に与えられる。比較器25は、CPU8から
与えられるカウントアップ値と、カウンタ35からの計数
値とを比較して両者が一致した時、コンペアマッチ出力
125を出す。このコンペアマッチ出力125は、ワンショッ
トパルスである。
FIG. 1 is a block diagram of the sequence control device 1 and the program console 100 shown in FIGS. 2 and 3. The basic structure and operation are the same as those in FIG. In this embodiment, the system clock given to the CPU 8 which is the central processing means is also given to the counter 35. The counter 35 counts this system clock,
The count value is given to the comparator 25. The comparator 25 compares the count-up value given from the CPU 8 with the count value from the counter 35, and when they match, a compare match output
Issue 125. This compare match output 125 is a one shot pulse.

このコンペアマッチ出力125は、カウンタ35のリセッ
ト入力CLRに与えられている。したがって、コンペアマ
ッチ出力125は、システムクロックのカウントアップ値
ごとに出力される。
The compare match output 125 is supplied to the reset input CLR of the counter 35. Therefore, the compare match output 125 is output for each count-up value of the system clock.

さらに、コンペアマッチ出力125は、出力制御回路で
あるコントロールロジック55にも与えられている。コン
トロールロジック55は、例えばJKフリップフロップによ
って構成され、コンペアマッチ出力125が与えられるご
とに、出力をH→L→H→L・・と変化させる。
Further, the compare match output 125 is also given to the control logic 55 which is an output control circuit. The control logic 55 is composed of, for example, a JK flip-flop, and changes the output H → L → H → L ... Each time the compare match output 125 is given.

したがって、コントロールロジックの出0Cからは、CP
U8の指示する分周率(カウントアップ値)によってシス
テムクロックを分周したクロックパルスが得られる。得
られたクロックパルスは、出力回路14に与えられ、CPU8
の制御によって、何れかの出力端子01〜08より出力され
る。
Therefore, from the output 0C of the control logic, CP
A clock pulse obtained by dividing the system clock by the division ratio (count-up value) specified by U8 is obtained. The obtained clock pulse is given to the output circuit 14, and the CPU 8
Is output from any one of the output terminals 0 1 to 0 8 .

この実施例のシーケンス制御装置において、600μSec
周期のクロックパルスを得る場合には、第4図Aにラダ
ー図を示すようなプログラムを作成するだけでよい。こ
の実施例においては、タイマー20に対する動作指令を、
クロックパルスの出力命令とみなすようにしている。第
4図Aのプログラムは、入力1000(何れかの入力端子I1
〜I8が割当てられる)がHがレベルであれば、出力500
から600μSecのクロックパルスを出力するように記述し
ている。
In the sequence controller of this embodiment, 600 μSec
In order to obtain a clock pulse with a period, it is only necessary to create a program as shown in the ladder diagram of FIG. 4A. In this embodiment, the operation command for the timer 20 is
It is considered as a clock pulse output command. The program of FIG. 4A is input 1000 (any input terminal I 1
~ I 8 is assigned), if H is level, output 500
To 600 μSec clock pulse is output.

この命令が実行され、CPU8がこれを受け取ると、まず
入力1000がHであるか否かを判断する。Hレベルであれ
ば、タイマ動作命令を実行する。しかし、ここでは、タ
イマTMR20に対する命令であることから、これをクロッ
クパルス出力命令であると判断する。
When this instruction is executed and the CPU 8 receives it, it is first determined whether or not the input 1000 is H. If it is at the H level, the timer operation instruction is executed. However, here, since it is an instruction for the timer TMR20, it is determined that this is a clock pulse output instruction.

このプログラムでは、クロックパルスの設定値が600
μSec周期となっている。CPU8は、この設定周期600μSe
cと、システムクロック(すなわち発振回路45の出力)
と周期とを比較して、その比を比較器25にカウントアッ
プ値として与える。例えば、システムクロックの周期が
0.1μSecであれば、カウントアップ値を6000とする。こ
れにより、第4図Bに示すように、コントロールロジッ
ク55の出力OCから、正確に600μSec周期のクロックパル
スを得ることができる。
In this program, the clock pulse setting is 600
It is a μSec cycle. CPU8 uses this setting cycle of 600 μSe
c and the system clock (ie the output of oscillator circuit 45)
And the cycle are compared, and the ratio is given to the comparator 25 as a count-up value. For example, if the system clock cycle is
If it is 0.1 μSec, set the count-up value to 6000. As a result, as shown in FIG. 4B, it is possible to accurately obtain a clock pulse of 600 μSec cycle from the output OC of the control logic 55.

なお、上記の比較器25、カウンタ35、発振回路45は、
CPU8の内部に設けられたものを用いることもできる。
In addition, the comparator 25, the counter 35, the oscillation circuit 45,
It is also possible to use the one provided inside the CPU 8.

また、CPU8は入出力ポート93の端子P1を介してコント
ロールロジックのイネーブル端子を制御することによ
り、クロックパルスOCの出力を停止させることもでき
る。
Further, the CPU 8 can also stop the output of the clock pulse OC by controlling the enable terminal of the control logic via the terminal P1 of the input / output port 93.

さらに、CPU8からカウンタ35に対し、初期値を設定
し、カウントアップ値を変えずに、クロックパルスの周
期を変えることも可能である。
Furthermore, it is also possible to set an initial value from the CPU 8 to the counter 35 and change the cycle of the clock pulse without changing the count-up value.

また、上記実施例では、特定のタイマに対するタイマ
動作指令をクロック出力命令とみなしている。したがっ
て、プログラムコンソール100の指令キー150に新たな命
令キーを追加する必要がない。すなわち、従来のプログ
ラムコンソール100との互換性を保ちつつ、クロック出
力命令を新たに設けることができる。
Further, in the above embodiment, the timer operation command for the specific timer is regarded as the clock output command. Therefore, it is not necessary to add a new command key to the command key 150 of the program console 100. That is, a clock output command can be newly provided while maintaining compatibility with the conventional program console 100.

なお、従来の機器との互換性を保つ必要が無い場合に
は、クロック出力のために新たな命令を設けてもよい。
If it is not necessary to maintain compatibility with conventional equipment, a new command may be provided for clock output.

なお、上記実施例では、中央処理手段としてCPUを用
いたものを示したが、その一部または全部をハードロジ
ックによって構成したものにも適用できる。
In the above embodiment, the CPU is used as the central processing means, but a part or all of the CPU is also applicable to the hardware logic.

[発明の効果] 請求項1および請求項2に係るシーケンス制御装置で
は、クロック発振回路の出力を分周することにより所望
のクロックを得るようにしている。したがって、正確な
クロックを簡単なプログラムで得ることができる。
[Effect of the Invention] In the sequence control device according to the first and second aspects, a desired clock is obtained by dividing the output of the clock oscillation circuit. Therefore, an accurate clock can be obtained with a simple program.

請求項3に係るシーケンス制御装置では、クロック出
力命令を、所定のタイマに対するタイマ動作命令に割当
てている。したがって、従来のシーケンス制御装置との
互換性を保つことができる。
In the sequence control device according to the third aspect, the clock output instruction is assigned to the timer operation instruction for the predetermined timer. Therefore, compatibility with the conventional sequence control device can be maintained.

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

第1図はこの発明の一実施例によるシーケンス制御装置
のブロック図、 第2図はシーケンス制御装置の外観図、 第3図はプログラムコンソールの外観図、 第4図Aはクロック出力プログラムを示すラダー図、 第4図Bは第4図Aのプログラムを実行した時得られる
クロックパルスを示す図、 第5図は従来のシーケンス制御装置のブロック図、 第6図Aは従来のシーケンス制御装置において、クロッ
クパルスを出力するために作成されたプログラムの一例
を示すラダー図、 第6図Bは第6図Aのプログラムを実行した場合の各部
の波形を示す図である。 1……シーケンス制御装置 8……CPU 25……比較器 35……カウンタ 45……発振回路 55……コントロールロジック
FIG. 1 is a block diagram of a sequence control device according to an embodiment of the present invention, FIG. 2 is an external view of the sequence control device, FIG. 3 is an external view of a program console, and FIG. 4A is a ladder showing a clock output program. FIG. 4B is a diagram showing clock pulses obtained when the program of FIG. 4A is executed, FIG. 5 is a block diagram of a conventional sequence control device, and FIG. 6A is a conventional sequence control device. FIG. 6 is a ladder diagram showing an example of a program created to output a clock pulse, and FIG. 6B is a diagram showing waveforms of respective parts when the program of FIG. 6A is executed. 1 sequence controller 8 CPU 25 comparator 35 counter 45 oscillator circuit 55 control logic

フロントページの続き (72)発明者 植木 健五 大阪府高槻市明田町2目13号 株式会社 キーエンス内 審査官 菅澤 洋二 (56)参考文献 特開 昭61−278905(JP,A)Front page continued (72) Inventor Kengo Ueki 2-13, Akita-cho, Takatsuki-shi, Osaka KEYENCE CORPORATION Examiner Yoji Sugazawa (56) References JP-A-61-278905 (JP, A)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラムの命令を解析し実行する中央処
理手段、 中央処理手段にクロックを供給するクロック発振回路、 を備えたシーケンス制御装置において、 クロック出力命令を設け、 クロック出力命令に基づいて中央処理手段が演算して得
た分周率に従って、前記クロック発振回路の出力を分周
する分周回路を設けたことを特徴とするシーケンス制御
装置。
1. A sequence control device comprising a central processing means for analyzing and executing instructions of a program, and a clock oscillating circuit for supplying a clock to the central processing means, wherein a clock output instruction is provided and the central processing is performed based on the clock output instruction. A sequence control device comprising a frequency divider circuit for dividing the output of the clock oscillation circuit according to a frequency division ratio calculated by the processing means.
【請求項2】請求項1のシーケンス制御装置において、 前記分周回路は、 比較器からのワンショットパルスによりリセットされ、
クロック発振回路の出力クロックを係数するカウンタ、 所望の分周率を達成できるよう演算されたカウントアッ
プ値を中央処理手段から受け取り、カウンタの計数値と
カウントアップ値とを比較して、一致した時、ワンショ
ットパルスを出力する比較器、 比較器の出力するワンショットパルスにより、その出力
を交互にHレベルとLレベルに変える出力制御回路、 を備えたものであることを特徴とするシーケンス制御装
置。
2. The sequence control device according to claim 1, wherein the frequency dividing circuit is reset by a one-shot pulse from a comparator,
A counter that counts the output clock of the clock oscillation circuit, receives a count-up value calculated so as to achieve a desired frequency division ratio from the central processing means, compares the count value of the counter with the count-up value, and when they match. A sequence control device comprising: a comparator that outputs a one-shot pulse; and an output control circuit that alternately changes the output to an H level and an L level according to the one-shot pulse output from the comparator. .
【請求項3】請求項1のシーケンス制御装置において、 クロック出力命令を、所定のタイマに対するタイマ動作
命令に割当てたことを特徴とするもの。
3. The sequence control device according to claim 1, wherein the clock output instruction is assigned to a timer operation instruction for a predetermined timer.
JP2010008A 1990-01-18 1990-01-18 Sequence controller Expired - Fee Related JP2547106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010008A JP2547106B2 (en) 1990-01-18 1990-01-18 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010008A JP2547106B2 (en) 1990-01-18 1990-01-18 Sequence controller

Publications (2)

Publication Number Publication Date
JPH03214205A JPH03214205A (en) 1991-09-19
JP2547106B2 true JP2547106B2 (en) 1996-10-23

Family

ID=11738374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010008A Expired - Fee Related JP2547106B2 (en) 1990-01-18 1990-01-18 Sequence controller

Country Status (1)

Country Link
JP (1) JP2547106B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3232489B2 (en) * 1992-11-16 2001-11-26 義一 久世 Read-only sequence controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS553020A (en) * 1978-06-20 1980-01-10 Nippon Telegr & Teleph Corp <Ntt> Microprogram control system
JPH06100927B2 (en) * 1985-06-03 1994-12-12 株式会社日立製作所 Programmable controller
JPS63131616A (en) * 1986-11-20 1988-06-03 Mitsubishi Electric Corp Programmable clock frequency divider

Also Published As

Publication number Publication date
JPH03214205A (en) 1991-09-19

Similar Documents

Publication Publication Date Title
US4821229A (en) Dual operating speed switchover arrangement for CPU
US5631592A (en) Pulse generation/sensing arrangement for use in a microprocessor system
EP3196717B1 (en) Emulated industrial control
US5059834A (en) Circuit device for eliminating noise from an input signal independent of time of arrival of noise or noise width
EP0115178B1 (en) Digital controller
JP2547106B2 (en) Sequence controller
JP2752514B2 (en) Program execution method of CNC device
JPH11305812A (en) Synchronization method for distributed CPU system
JP2742642B2 (en) Oscillation-synchronous frequency change measurement method and apparatus
JP3112862B2 (en) Information processing device
JP4345200B2 (en) Programmable controller I/O unit
JP2631541B2 (en) Programmable controller
JPH0322103A (en) Axis control system for numerical controller
US5325514A (en) Program executive timing apparatus for ensuring that state changes of a reference clock signal used to time the execution of the program are not missed
KR950013602B1 (en) Frequency measuring device
JPS6348989Y2 (en)
JP3158425B2 (en) Microcomputer
JPS5892824A (en) Digital display system for residual quantity of fuel
JP2718402B2 (en) Time measurement circuit for built-in in-circuit emulator
Henry et al. Ladder logic for sequence generation—a methodology
JP3224554B2 (en) Schedule control device
JP2001092692A (en) Circuit and method for measuring time
JP2696811B2 (en) Electronic preset counter
JP3386081B2 (en) Programmable control device
JPH09198280A (en) Real-time operating system with system monitoring pulse generation method and monitoring pulse generation function

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees