JPS61121107A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS61121107A
JPS61121107A JP24478484A JP24478484A JPS61121107A JP S61121107 A JPS61121107 A JP S61121107A JP 24478484 A JP24478484 A JP 24478484A JP 24478484 A JP24478484 A JP 24478484A JP S61121107 A JPS61121107 A JP S61121107A
Authority
JP
Japan
Prior art keywords
counter
target value
comparator
value
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP24478484A
Other languages
Japanese (ja)
Inventor
Shigeru Hayashi
茂 林
Katsunori Kawabe
河辺 勝則
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.)
KOYO DENSHI KOGYO KK
Koyo Electronics Industries Co Ltd
Original Assignee
KOYO DENSHI KOGYO KK
Koyo Electronics Industries Co Ltd
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 KOYO DENSHI KOGYO KK, Koyo Electronics Industries Co Ltd filed Critical KOYO DENSHI KOGYO KK
Priority to JP24478484A priority Critical patent/JPS61121107A/en
Publication of JPS61121107A publication Critical patent/JPS61121107A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • G05B19/4142Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by the use of a microprocessor
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path
    • G05B19/21Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path using an incremental digital measuring device
    • G05B19/23Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path using an incremental digital measuring device for point-to-point control

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To secure the accurate and stable control of positioning, etc. by performing the interruption processing when the coincidence is secured between the set target value and the count value of a counter. CONSTITUTION:A CPU11 reads a sequence program set by a user out of a RAM13 and executes it. A pulse P1 is supplied to a counter 15a of a counting part 15 in response to the shift amount of an object, and a reset pulse P2 is supplied at an end point, etc. of the course of the traveling object. A comparator 15b compares the set target value with the count value of the counter 15a and sends a signal D1 to an interruption terminal 11a of the CPU11 when the coincidence of comparison is obtained. Then the CPU11 executes an interruption processing program, and the control output is delivered from an interface 14. At the same time, the next target value is written to the comparator 15b.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラマブルコントローラに関し、例えば移
動物の停止位置制御を高精度で行わしめ得るプログラマ
ブルコントローラを提案するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller, and proposes a programmable controller that can control the stop position of a moving object with high precision, for example.

〔従来技術〕[Prior art]

プログラマブルコントローラにて移動物の停止位置の位
置決め制御をする場合は、コントローラ内のカウンタに
移動距離に相当する数値をセットし、移動体の移動に伴
って発せられるカウント入力を前記カウンタに与えて、
計数値がセット値に一致したときに得られるカウンタの
一致信号出力にて、直接に、又は間接に停止制御出力を
得ることとしていた。
When controlling the positioning of the stop position of a moving object using a programmable controller, a value corresponding to the moving distance is set in a counter in the controller, and a count input generated as the moving object moves is given to the counter,
The stop control output was directly or indirectly obtained by outputting a coincidence signal from the counter obtained when the counted value coincided with the set value.

第2図は上述の如き方法による位置決め制御を行うプロ
グラマブルコントローラのブロック図である。CPU 
(中央処理装置)21はROM (続出専用メモリ)2
2に書込まれているシステムプログラムに従って動作し
、RAM (随時読出書込メモリ)23に使用者にて設
定されたシーケンスプログラムを読出し、インターフェ
ース24を介してカウントプリセット値を計数部25の
カウンタ25aに設定し、また目標値を同じく比較器2
5bに設定する。例えばカウントプリセット値は移動物
の設定時の位置情報であり、目標値は移動物を停止させ
るべき位置の情報である。カウンタ25aには移り」物
の一定距離の移動に応じたパルスP1が計数入力として
与えられる、比較器25bはパルスPiの入力によって
変化していくカウンタ25aの計数値を目標値と比較し
て比較結果が一致した場合に所定のレヘルの信号口1を
発する。この信号01はインターフェース24を介して
CPII 21に読取られる。CPt121はこの信号
Dlを受けて開動信号等の制御出力をインターフェース
24を介して出力する。
FIG. 2 is a block diagram of a programmable controller that performs positioning control using the method described above. CPU
(Central processing unit) 21 is ROM (memory for continuous use) 2
It operates according to the system program written in the system program 2, reads the sequence program set by the user to the RAM (random read/write memory) 23, and calculates the count preset value via the interface 24 to the counter 25a of the counting section 25. and set the target value to comparator 2 as well.
Set to 5b. For example, the count preset value is position information at the time of setting the moving object, and the target value is information on the position at which the moving object should be stopped. The counter 25a receives a pulse P1 corresponding to the movement of the object a certain distance as a counting input, and the comparator 25b compares the counted value of the counter 25a, which changes depending on the input of the pulse Pi, with a target value. If the results match, signal port 1 of a predetermined level is emitted. This signal 01 is read by the CPII 21 via the interface 24. The CPt 121 receives this signal Dl and outputs a control output such as an opening signal via the interface 24.

以上の如きプログラマブルコントローラにおいては(:
PU 21はシステムプログラムに従ってサイクリック
に動作するので、CPt121の比較器25b出力の読
取りは周期的なものとなる。従ってCPt121が計数
部25の比較結果の出力信号Diを確実に読み込むため
には少なくともそのスキャン時間の1周期を必要とする
。換言すれば信号D1の出力タイミングとCPU 21
のこれを読込むタイミング又は制御出力のタイミングと
はその都度異なることとなり、そのために位置決め精度
は良好とは言えない。
In the above programmable controller (:
Since the PU 21 operates cyclically according to the system program, reading the output of the comparator 25b of the CPt 121 is periodic. Therefore, in order for the CPt 121 to reliably read the output signal Di of the comparison result of the counting section 25, at least one cycle of the scan time is required. In other words, the output timing of the signal D1 and the CPU 21
The timing of reading this or the timing of control output differs each time, and therefore the positioning accuracy cannot be said to be good.

第3図は位置決め精度を高めた他の従来例を示している
。第2図と同様のものには同番号を付しである。比較結
果メモリ27は、カウントプリセット値及び目標値をそ
れらが計数部25に設定された時点での比較結果、つま
り比較器25b出力を記憶する。パルスPiが入力され
ていくとやがて比較器25b出力は大−一致、小又は小
−一致、大と変化するが、この時に比較結果メモリ27
は制御出力コントローラ28に直接働きかけて制御出力
をこれから発せしめる構成としである。このため制御出
力のオン、オフはCPII 21のサイクリック動作の
影響を受けず、比較結果の一致信号01と、制御出力と
の間での遅れが解消される。
FIG. 3 shows another conventional example with improved positioning accuracy. Components similar to those in FIG. 2 are given the same numbers. The comparison result memory 27 stores the comparison result at the time when the count preset value and the target value are set in the counting section 25, that is, the output of the comparator 25b. As the pulse Pi continues to be input, the output of the comparator 25b changes to large-coincidence, small or small-coincidence, and large, but at this time, the comparison result memory 27
is configured to act directly on the control output controller 28 to cause it to issue a control output. Therefore, the on/off of the control output is not affected by the cyclic operation of the CPII 21, and the delay between the comparison result match signal 01 and the control output is eliminated.

ところで$3図に示す如き構成のものであっても2力所
以上の位置決めを行う場合(目標値が2つ以上設定され
る場合)には次のような不都合がある。即ちカウンタ2
5aの計数値が各目標値に達する都度次の目標値を比較
器25bに設定する必要があるが、第3図のものにおい
てもカウントプリセット値、目標値の設定、更にはこれ
らの設定時における比較器25bの比較結果のメモリ2
7への書込は02口21のサイクリック動作によって行
われていく。つまりスキャンタイムの遅れをもって読取
った比較結果に従って次の目標値を書込むのである。
By the way, even with the configuration shown in Figure $3, there are the following disadvantages when positioning is performed at two or more force points (when two or more target values are set). That is, counter 2
Each time the count value of 5a reaches each target value, it is necessary to set the next target value in the comparator 25b, but in the case of FIG. Memory 2 for comparison results of comparator 25b
Writing to 7 is performed by the cyclic operation of the 02 port 21. In other words, the next target value is written in accordance with the comparison result read with a scan time delay.

従って2つの目標値が接近している場合には、次の目標
値を書込むよりも先にカウンタ25aの計数値が上記次
の目標値を超え、その結果それに対応する位置での制御
が行われないという問題点がある。
Therefore, if two target values are close to each other, the count value of the counter 25a will exceed the next target value before writing the next target value, and as a result, control will be performed at the corresponding position. The problem is that it is not possible.

第4図はその1例を示し、カウントプリセント値が10
00、第1目標値2000にて減速制御、第2目標値2
100にて停止制御を行わせんとするモータの発停制御
の場合であって、カウントパルスの周波数が1 kHz
であり、CPU21のスキャンタイムが100111s
ec以上であるものとする。 1000が設定されると
共にモータ駆動出力が発せられ、カウンタ25aの計数
値が2000になるとメモリ27の働きにより制御出力
カウントローラ28からは直ちに減速出力が発せられる
ことになる。計数値が2000から2100になる窓に
は100m5e+:を要するが、計数値が2000にな
った時点からCPU 21がそれを検知する迄には10
0m5ec以上を要する場合がある。そうすると比較器
25bに第2の目標値を設定した時点では計数値は21
00を超えており比較器25bはこの目標値についての
一致信号を出力しない。なお第4図では4桁のカウンタ
25aのフルカウント値9999にて安全のために停止
出力を出すようにした例を示している。
Figure 4 shows one example, where the count precent value is 10.
00, deceleration control at first target value 2000, second target value 2
This is a case of motor start/stop control where the stop control is to be performed at 100 kHz, and the frequency of the count pulse is 1 kHz.
and the scan time of CPU21 is 100111s
It shall be equal to or higher than ec. When 1000 is set, a motor drive output is generated, and when the count value of the counter 25a reaches 2000, the control output count roller 28 immediately generates a deceleration output due to the function of the memory 27. The window where the count value goes from 2000 to 2100 requires 100m5e+:, but it takes 10m5e+: from the time the count value reaches 2000 until the CPU 21 detects it.
0m5ec or more may be required. Then, when the second target value is set in the comparator 25b, the count value is 21.
00, and the comparator 25b does not output a coincidence signal for this target value. FIG. 4 shows an example in which a stop output is issued for safety when the four-digit counter 25a reaches a full count value of 9999.

以上のように従来のプログラマブルコントローラにあっ
てはCPUのスキャン時間に起因する制約があった。
As described above, conventional programmable controllers have limitations due to the scan time of the CPU.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は斯かる問題点を解決するためになされたもので
あって、計数部の比較器が一致を検出した場合にはCP
Uに対し割込をかける構成として、高速応答性を有し、
また多段設定に対応できるプログラマブルコントローラ
を提供することを目的とする。
The present invention was made to solve this problem, and when the comparator of the counting section detects a match, the CP
As a configuration that interrupts U, it has high-speed response,
Another object of the present invention is to provide a programmable controller that can handle multi-stage settings.

本発明に係るプログラマブルコントローラは、カウンタ
と、該カウンタの計数値を設定値と比較し、両者の一致
により一致信号を発する比較器と、該比較器に順次的に
設定すべき複数の目標値を記憶しておくメモリと、前記
一致信号が入力されると割込処理ルーチンを実行し、入
力された一致信号に対応する制御出力を発すると共に、
比較器の設定値を更新するプロセッサとを具備すること
を特徴とする。
The programmable controller according to the present invention includes a counter, a comparator that compares the count value of the counter with a set value and issues a match signal when the two match, and a plurality of target values to be sequentially set in the comparator. a memory for storing the same, and when the coincidence signal is input, executes an interrupt processing routine and issues a control output corresponding to the input coincidence signal;
and a processor that updates the set value of the comparator.

〔実施例〕〔Example〕

第1図は本発明品の基本的構成を示すブロック図である
FIG. 1 is a block diagram showing the basic configuration of the product of the present invention.

CPU 11はROM 12に書込まれているシステム
プログラムに従い、RAM 13に使用者によって設定
されたシーケンスプログラムを読出し、これを実行する
。計数部15のカウンタ15a及び比較器15bには従
来装置と同様にCPU 11によってカウントプリセッ
ト値及び目標値が各設定される。
The CPU 11 reads out a sequence program set by the user in the RAM 13 and executes it according to the system program written in the ROM 12. A count preset value and a target value are respectively set in the counter 15a and comparator 15b of the counting section 15 by the CPU 11 as in the conventional device.

カウンタ15aには移動物の移動量に応じたパルスP1
が計数対象として入力され、また移動物の行程の終了点
等においてリセットパルスP2が入力される。比較器1
5bは設定された目標値とカウンタ15aの計数値を當
に比較しており、比較結果が一致すると信号Dlを出力
し、これをCPU itの割込端子11aに与える。
The counter 15a has a pulse P1 corresponding to the amount of movement of the moving object.
is input as the object to be counted, and a reset pulse P2 is input at the end point of the moving object's travel. Comparator 1
5b compares the set target value with the counted value of the counter 15a, and when the comparison results match, outputs a signal Dl, which is applied to the interrupt terminal 11a of the CPU it.

CPU 11は割込端子に信号りが入力される迄の間は
ROM 12のプログラムに従って一定のサイクリック
動作を行っており、信号りが入力されると、本発明品の
CPU 11は割込処理に入りそのプログラムを実行す
る。この割込処理プログラムはサイクル時間又はスキャ
ン時間に比して十分高速で実行され、この実行により極
めて迅速にインターフェース14から制御出力が発せら
れ、また比較器15bに対して、次の目標値の書込みが
行われる。
The CPU 11 performs a certain cyclic operation according to the program in the ROM 12 until a signal is input to the interrupt terminal, and when the signal is input, the CPU 11 of the present invention performs interrupt processing. and run the program. This interrupt processing program is executed at a sufficiently high speed compared to the cycle time or scan time, and as a result of this execution, a control output is issued from the interface 14 very quickly, and the next target value is written to the comparator 15b. will be held.

第5図は本発明の他の実施例を示している。この実施例
はリセットパルスP2をCPU 11の他の割込端子1
1bに与え、これが与えられた場合にはリセットの割込
処理を行いカウンタL5aのリセット等を行う点が第1
図のものと異なる。
FIG. 5 shows another embodiment of the invention. In this embodiment, the reset pulse P2 is sent to another interrupt terminal 1 of the CPU 11.
1b, and when this is given, a reset interrupt process is performed and the counter L5a is reset etc.
Different from the one shown.

次にCPIJ 11の処理内容又はROM 12のプロ
グラムの内容を表わすフローチャートに基づき本発明品
の構成、動作を更に詳しく説明する。
Next, the configuration and operation of the product of the present invention will be explained in more detail based on a flowchart showing the processing contents of the CPIJ 11 or the contents of the program in the ROM 12.

第6図はメインルーチンを示し、電源が投入されると、
RAM 13中の命令を検索し、前述の如き位置決め制
御等のように高速での計数処理を含む高速力・クンドブ
ログラムを確認する。次に高速カウントプログラムの目
標値を小さい順にRAM 13の所定エリア(ワーキン
グエリア)又はCPU 11のレジスタに記憶する。そ
して最も小さい第1の目標値を比較器15bに設定する
Figure 6 shows the main routine, when the power is turned on,
The commands in the RAM 13 are searched and a high-speed force/kundo program including high-speed counting processing such as positioning control as described above is confirmed. Next, the target values of the high-speed counting program are stored in a predetermined area (working area) of the RAM 13 or a register of the CPU 11 in descending order. Then, the smallest first target value is set in the comparator 15b.

次に人出力の転送を行い、またRAM 13のシーケン
スプログラム内容を読みとり、これを実行する。
Next, the human output is transferred, and the contents of the sequence program in the RAM 13 are read and executed.

以下この転送とシーケンスプログラムの実行を反復する
Thereafter, this transfer and execution of the sequence program are repeated.

このような反復実行の間にあって割込端子11aに比較
器i5bから目標値とカウンタ15aの計数値との一致
を示す信号りが入力されるとCPU 11は第7図に示
す一致割込処理ルーチンに入る。このプログラムではま
ず各種の入力信号を読込む等の入力処理を行い、次いで
高速カウントプログラムを実行する。
During such repeated execution, when a signal indicating coincidence between the target value and the counted value of the counter 15a is input from the comparator i5b to the interrupt terminal 11a, the CPU 11 executes the coincidence interrupt processing routine shown in FIG. to go into. This program first performs input processing such as reading various input signals, and then executes a high-speed counting program.

そして比較一致したことによって出力すべき制御信号を
RAM 13の所定エリア(入出カニリア)に出力し、
次にこれを外部に出力するための出力処理を行う。そし
て次の目標値を比較器15bに設定する。
Then, when a comparison is made, a control signal to be output is output to a predetermined area (input/output canister) of the RAM 13,
Next, output processing is performed to output this to the outside. Then, the next target value is set in the comparator 15b.

そしてカウンタ15aの計数値と、新たな目標値との比
!結果をaべ、メインルーチンへ戻る。上記一致割込処
理は極めて短時間に行われるが、次の目標値が著しく前
の目標値に近く、この間′に上記次の目標値を計数値が
上回るような事態が発生する場合はこの一致割込処理ル
ーチンが再度実行されることになる。
And the ratio between the counted value of the counter 15a and the new target value! Check the results and return to the main routine. The coincidence interrupt processing described above is performed in an extremely short time, but if the next target value is extremely close to the previous target value and a situation occurs during which the counted value exceeds the next target value, this coincidence occurs. The interrupt handling routine will be executed again.

第8図は第5図に示す実施例においてリセットパルスP
2が割込端子11bに入力された場合に実行されるリセ
ット割込処理ルーチンであり、カウンタ15aの計数値
をリセットし、目標値を最も小さい値に設定し、入出力
処理をtテってメインルーチンへ戻る。
FIG. 8 shows the reset pulse P in the embodiment shown in FIG.
This is a reset interrupt processing routine that is executed when 2 is input to the interrupt terminal 11b, and resets the count value of the counter 15a, sets the target value to the smallest value, and performs input/output processing. Return to main routine.

次に以上の処理を具体例に基づいて説明する。Next, the above processing will be explained based on a specific example.

第9図は本発明品に行わせるべきシーケンス制御の内容
の一部を示すラダー図であり、IIAM 13には該当
内容が書込まれている。このプログラムには4桁の高速
カウンタ15aを含む高速カウントプログラムが含まれ
ており、その計数値に応じて制御出力30のセントによ
り移動物の前進(目標値はioo > 、制御出力31
のセットにより減速(目標値は250 ) 、制御出力
32のセットにより停止(目標値300)が行われる。
FIG. 9 is a ladder diagram showing part of the contents of the sequence control to be performed by the product of the present invention, and the relevant contents are written in IIAM 13. This program includes a high-speed counting program including a 4-digit high-speed counter 15a, and according to the counted value, the moving object moves forward with a control output of 30 cents (target value is ioo >, control output 31
Setting the control output 32 causes deceleration (target value is 250), and setting the control output 32 causes stopping (target value 300).

而して電源投入によりRAM 13中の命令検索が行わ
れて高速カウントプログラムが確認され、その目標値の
100,250.300がこの順にワーキングエリアに
セットされ、次いでカウンタ15aには“0000”が
、また比較器15bには第1目標“0100”がセント
される。CPU 11は入出力の転送、RAM 13の
内容の実行を繰り返す。この間にあってカウンタ15a
にカウントイネーブル信号2が与えられると、カウンタ
15aが計数を開始する。第1011iUは計数開始前
の各値を示している。
When the power is turned on, instructions in the RAM 13 are searched, the high-speed count program is confirmed, and the target values of 100, 250.300 are set in the working area in this order, and then "0000" is set in the counter 15a. , and the first target "0100" is sent to the comparator 15b. The CPU 11 repeats input/output transfer and execution of the contents of the RAM 13. During this time, the counter 15a
When the count enable signal 2 is applied to the counter 15a, the counter 15a starts counting. The 1011th iU shows each value before the start of counting.

計数値が100になると比較器15bが一致信号を発し
、これにより一致割込処理ルーチンに入り、制御出力3
0を出力して、iIJ進制御出力がセットされる。また
比較器には第2の目標値” 0250”がセットされる
。このセットの終了時点では第11図に示すように計数
416は“0100+α”と100より少し大きくなっ
ている。ここにαは計数値が1ooとなって一致割込が
かかってから第2の目標値250が比較器15bに書込
まれるまでの時間にカウンタ15aによって計数された
値である。
When the count value reaches 100, the comparator 15b issues a match signal, which enters the match interrupt processing routine and outputs the control output 3.
0 is output and the iIJ hex control output is set. Further, a second target value "0250" is set in the comparator. At the end of this set, the count 416 is "0100+α", which is slightly larger than 100, as shown in FIG. Here, α is the value counted by the counter 15a during the time from when the count value becomes 1oo and a coincidence interrupt is applied until the second target value 250 is written to the comparator 15b.

第2の目標値が書込まれた時点で100+α〈250で
ある場合はもとのメインルーチンに戻りサイクリック処
理を実行し、次の割込信号P1又はP2の入力を待つ。
If 100+α<250 at the time when the second target value is written, the program returns to the original main routine and executes cyclic processing, waiting for the input of the next interrupt signal P1 or P2.

そして計数値が250になると前述したところと同様に
して制御出力31を出力して減速出力がセットされ、第
3の目標値“0300”が比較器15bに書込まれる。
When the count value reaches 250, the control output 31 is output in the same manner as described above, the deceleration output is set, and the third target value "0300" is written into the comparator 15b.

この書込時点でのカウンタL5aの計数値を250+β
とすると(第12図)、250+β<300である場合
はメインルーチンに戻るが、300≦250+βである
場合は再度一致割込処理が実行され、制御出力32を出
力して停止出力がセットされることとなる。メインルー
チンに戻った場合も計数値が300になると同様に制御
出力32が出力される。
The count value of counter L5a at the time of writing is 250+β
(Fig. 12), if 250+β<300, the process returns to the main routine, but if 300≦250+β, the coincidence interrupt process is executed again, the control output 32 is output, and the stop output is set. That will happen. When returning to the main routine, the control output 32 is similarly output when the count value reaches 300.

なお第9図において33は移動物が前進物に位置したこ
とを検知した入力であり、iiJ進の制御出力30がリ
セットされる。また1は非常停止入力であり、制御出力
32をセントする。また3はカウンタ15aのリセット
入力である。
In FIG. 9, reference numeral 33 is an input that detects that the moving object is located at the forward object, and the control output 30 in iiJ base is reset. Further, 1 is an emergency stop input, which sends the control output 32 to the center. Further, 3 is a reset input of the counter 15a.

更に通常プログラムは制御対象の移動物の自動運転を指
示する入力10があると自動運転を表示する出力34及
び自動運転のための内部リレーを作動せしめる出力35
をセットする内容を示している。
Further, the normal program includes an output 34 that displays automatic operation when there is an input 10 that instructs automatic operation of a moving object to be controlled, and an output 35 that activates an internal relay for automatic operation.
Indicates the contents to be set.

〔効果〕〔effect〕

以上の如き本発明品による場合は設定した目標値とカウ
ンタの計数値との一致を検出すると割込処理を実行させ
ることとしているので、スキャン時間の影響を受けるこ
とがなく、従って位置決め等の制御精度は正確になり、
また安定化する。また複数の目標値を順次的に設定する
場合は先の目標値と計数値との一致を検出してから後の
目標値を設定するまでの時間が極めて短いので後の目標
値での所要の制御が行われないなどの不都合を生じない
。特に上述の実施例の如く、新たな目標値を設定した後
、直ちに計数値と比較して既に計数値が目標値を上回っ
ている場合にはメインルーチンに戻ることなく割込処理
を再度実行することとする場合は前後の目標値が極めて
接近しているときにおいても制御上の支障を来すことが
ない。
In the case of the product of the present invention as described above, the interrupt processing is executed when a match between the set target value and the count value of the counter is detected, so it is not affected by the scan time, and therefore the control of positioning etc. Accuracy becomes accurate;
It also stabilizes. In addition, when setting multiple target values sequentially, the time from detecting the match between the first target value and the count value to setting the next target value is extremely short, so the required No inconveniences such as lack of control occur. In particular, as in the above embodiment, after setting a new target value, it is immediately compared with the counted value, and if the counted value already exceeds the target value, the interrupt process is executed again without returning to the main routine. In this case, there will be no problem in control even when the previous and subsequent target values are very close to each other.

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

第1図は本発明の一実施例を示すブロック図、第2,3
図は従来例、のブロック図、第4図は第3図のものの問
題点を説明するためのタイミングチャート、第5図は本
発明の他の実施例を示すブロック図、第6〜8図は本発
明品の制御内容を表わすフローチャート、第9図はRA
Mの内容を示すラダー図、第10〜第12図は第9図の
制御を行う場合の計数値、目標値の変化を示す説明図で
ある。 Ll・・・CPU  12・・・ROと 13・・・R
A?I  14・・・インターフェース 15・・・t
tG部 L5a・・・カウンタ15b・・・比較器 特 許 出願人  光洋電子工業株式会社代理人 弁理
士  河  野  登  夫第 7(21 鴇 9 図 第 IQ  図 第 ++  [21 第 12  図 手Vi補正書(自発) 昭和59年12月14日 昭和59年特許願第244784号 2、発明の名称 プログラマブルコントローラ 3、補正をする者 事件との関係 特許出願人 所在地 東京都小平市天神町1丁目171番地名 称 
光洋電子工業株式会社 代表者森田俊夫 4、代理人 住 所 ■543大阪市天王寺区四天王寺1丁目14番
22号 日進ビル207号明細書の「発明の詳細な説明
」の欄及び図面6−1  明細書の1発明の詳細な説明
」の欄(1)  明細書第8頁1行目及び3行目に「信
号D」とあるのを「信号D+Jと訂正する。 (2)  明m薔第9頁12行目に「信号D」とあるの
を「信号DIJと訂正する。 (3)  明細書第9頁14〜15行目に「各種の入力
信号を読込む等の入力処理を行い、次いで」とあるのを
削除する。 (4)  明細書第10頁13行目に「入力処理を行っ
て」とあるのを削除する。 6−2  図面 第8図及び第9図を添付訂正図面の如くに訂正する。 7、 添付書類の目録 (1)訂正図面            1通第8図 第9図
Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 and 3 are block diagrams showing one embodiment of the present invention.
The figure is a block diagram of a conventional example, FIG. 4 is a timing chart for explaining the problem of the one in FIG. 3, FIG. 5 is a block diagram showing another embodiment of the present invention, and FIGS. A flowchart showing the control details of the product of the present invention, FIG. 9 is RA
A ladder diagram showing the contents of M, and FIGS. 10 to 12 are explanatory diagrams showing changes in the count value and target value when performing the control shown in FIG. 9. Ll...CPU 12...RO and 13...R
A? I 14...Interface 15...t
tG section L5a... Counter 15b... Comparator patent Applicant: Koyo Electronics Industry Co., Ltd. Agent Patent attorney: Noboru Kono No. 7 (21 Toki 9 Figure IQ Figure ++ [21 Figure 12 Vi correction) (Spontaneous) December 14, 1980 Patent Application No. 244784 2, Name of the invention Programmable Controller 3, Relationship with the person making the amendment Patent applicant Address: 1-171 Tenjin-cho, Kodaira-shi, Tokyo Name
Koyo Electronics Co., Ltd. Representative: Toshio Morita 4, Agent Address ■543 1-14-22 Shitennoji, Tennoji-ku, Osaka Nisshin Building No. 207 "Detailed description of the invention" column and drawing 6-1 1. Detailed explanation of the invention in the specification" column (1) "Signal D" in the 1st and 3rd lines of page 8 of the specification is corrected to "Signal D+J. "Signal D" on page 9, line 12 is corrected to "signal DIJ." (3) On page 9, lines 14-15 of the specification, "input processing such as reading various input signals is performed, "Then," should be deleted. (4) Delete "Perform input processing" on page 10, line 13 of the specification. 6-2 Figures 8 and 9 will be corrected as shown in the attached corrected drawings. 7. List of attached documents (1) Corrected drawings 1 copy Figure 8 Figure 9

Claims (1)

【特許請求の範囲】[Claims] 1、カウンタと、該カウンタの計数値を設定値と比較し
、両者の一致により一致信号を発する比較器と、該比較
器に順次的に設定すべき複数の目標値を記憶しておくメ
モリと、前記一致信号が入力されると割込処理ルーチン
を実行し、入力された一致信号に対応する制御出力を発
すると共に、比較器の設定値を更新するプロセッサとを
具備することを特徴とするプログラマブルコントローラ
1. A counter, a comparator that compares the count value of the counter with a set value and issues a match signal when the two match, and a memory that stores a plurality of target values to be sequentially set in the comparator. , a processor that executes an interrupt processing routine when the coincidence signal is input, issues a control output corresponding to the input coincidence signal, and updates the set value of the comparator. controller.
JP24478484A 1984-11-19 1984-11-19 Programmable controller Pending JPS61121107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24478484A JPS61121107A (en) 1984-11-19 1984-11-19 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24478484A JPS61121107A (en) 1984-11-19 1984-11-19 Programmable controller

Publications (1)

Publication Number Publication Date
JPS61121107A true JPS61121107A (en) 1986-06-09

Family

ID=17123870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24478484A Pending JPS61121107A (en) 1984-11-19 1984-11-19 Programmable controller

Country Status (1)

Country Link
JP (1) JPS61121107A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH032904A (en) * 1989-05-31 1991-01-09 Hitachi Ltd Programmable controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55166705A (en) * 1979-06-12 1980-12-26 Koyo Denshi Kogyo Kk Sequence controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55166705A (en) * 1979-06-12 1980-12-26 Koyo Denshi Kogyo Kk Sequence controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH032904A (en) * 1989-05-31 1991-01-09 Hitachi Ltd Programmable controller

Similar Documents

Publication Publication Date Title
US4323832A (en) System for controlling the speed of a magnetic tape transport motor
US4489260A (en) Method of driving a stepping motor and a drive circuit thereof
US5014196A (en) Vector operation instruction activation controller for vector arithmetic units having arithmetic functions with different numbers of pipeline stages
US6543000B1 (en) Interrupt management system with timers and controller able to detect the interrupt missed and generate appropriate warning signal for error handling
JPS61121107A (en) Programmable controller
JPH0546920Y2 (en)
JPS60181812A (en) Keyboard controller
JPS6148178B2 (en)
JPH0716553B2 (en) Sewing machine controller
JP3008686B2 (en) Timer system
JPH03233739A (en) Output system for maintenance information
JPH02126307A (en) Motor speed control system
JPH02128287A (en) Microcomputer
JPS63269239A (en) Processor load measuring system
JPH0683652A (en) Microcomputer system
JPS56168254A (en) Advance control system for input/output control unit
JP3985588B2 (en) Counting device and counting system
JPS61257690A (en) Controller for sewing machine
JPH05128281A (en) Microcomputer
JPH01216626A (en) Pulse count circuit
WO1990013071A1 (en) Programmable controller
JP2005086962A (en) Control circuit for stepping motor
JPH10161908A (en) Detection of run-away of microcomputer
JPH039486B2 (en)
JPH01122864A (en) Automatic original feeding device