[go: up one dir, main page]

JPS62147558A - Sequencer - Google Patents

Sequencer

Info

Publication number
JPS62147558A
JPS62147558A JP28966485A JP28966485A JPS62147558A JP S62147558 A JPS62147558 A JP S62147558A JP 28966485 A JP28966485 A JP 28966485A JP 28966485 A JP28966485 A JP 28966485A JP S62147558 A JPS62147558 A JP S62147558A
Authority
JP
Japan
Prior art keywords
circuit
cpu
input
sequence
input signal
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
JP28966485A
Other languages
Japanese (ja)
Inventor
Michihiro Inamori
稲森 満弘
Hitoshi Kondo
仁 近藤
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP28966485A priority Critical patent/JPS62147558A/en
Publication of JPS62147558A publication Critical patent/JPS62147558A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To minimize the variance of answer time and to improve the accuracy of positioning control etc. by restarting a sequence arithmetic operation through a CPU at the first program address when an interruption is applied. CONSTITUTION:When the input signal of a sensor 7 connected to a synchronizing input circuit 6 is changed to an ON state from an OFF state, the circuit 6 detects the change of the external input signal and applies an interruption signal to the interruption input of a CPU 1. When receiving this interruption input, the CPU 1 cancels a cyclic sequence arithmetic operation even under process and resets the first address of a sequence program to start again the sequence arithmetic operation from the first. As a result, the answer time of a sequencer has an equal delay of a single scan regardless of the timing with respect to the change of the external input signal supplied to the circuit 6. This delay has no relation with the sampling cycle and therefore the variance of the answer time is minimized.

Description

【発明の詳細な説明】 [技術分野] 本発明はシーケンサに関するものである6[背景技術1 従来、サイクリック演算方式のシーケンサは第6図に示
すように入力回路より外部入力信号を取り込みユーザプ
ログラムに従ってシーケンス演算を行い、その後出力回
路に出力(3号を出力するようになっている。そして例
えば外部入力信号がaの時点でオフからオンに変化しで
も、bの時点でオフからオンに変化してもシーケンサの
内部のCPUがこの変化を入力して検出するりはCの時
、くとなる、よって外部入力信号の変化に対する応答時
間のばらつきとしてはシーケンサの1スキャン分の演算
時間(サンプル周期)のばらつきが生じる。
[Detailed Description of the Invention] [Technical Field] The present invention relates to a sequencer 6 [Background Art 1 Conventionally, a sequencer using a cyclic calculation system receives an external input signal from an input circuit and uses a user program as shown in FIG. Sequence calculation is performed according to the following, and then output (number 3) is output to the output circuit.For example, even if the external input signal changes from off to on at point a, it changes from off to on at point b. Even if the sequencer's internal CPU inputs and detects this change, it will be difficult to input and detect this change. variations in period) occur.

実際には更に入出力回路の応答時間のばちつきが加算さ
れる。
In reality, variations in the response times of the input/output circuits are also added.

つまり外部入力信号に対する応答時間のばらつき=(1
スキャン分の演算時間的100 m5ec)+(入出力
回路の応答時間のばらつき約数−5ec )となる。
In other words, variation in response time to external input signals = (1
The calculation time for the scan is 100 m5 ec) + (the divisor of the variation in response time of the input/output circuit - 5 ec).

シーケンサによりモータや、ソレノイドパルプを制御し
て位置決め等を行う場合に、この応答時間のばらつきが
位置決め精度に大きな影響を与えている。そこで位置決
め精度や、機械のタイミングの精度を向上するためには
この応答時間のばらつきをなるべく小さくする必要があ
る。
When positioning is performed by controlling a motor or solenoid pulp using a sequencer, variations in response time have a large effect on positioning accuracy. Therefore, in order to improve the positioning accuracy and the timing accuracy of the machine, it is necessary to reduce the variation in response time as much as possible.

[発明の目的1 本発明はある特定の入力信号に対して常に一定の応答時
間を持ち、位置決め等の制御精度が向上したシーケンサ
を提供するにある。
[Object of the Invention 1] An object of the present invention is to provide a sequencer that always has a constant response time to a certain input signal and has improved control accuracy for positioning and the like.

[発明の開示] K1九 本発明実施例は第1図に示すようにシーケンサ演算や、
システム自体の動きを制御するCPUIと、シーケンス
プログラムを格納しであるメモリ2と、センサ7等より
の外部入力信号を取り込みデータバス3を介してCPU
Iに送る為の入力回路3と、CPUIの出力信号をデー
タバス5を介して受は取り、外部の7クチユエータ(モ
ータ、ソレノイドパルプ)等を駆動する出力回路4と、
センサ7等よりの外部入力信号の変化を検知してCPU
Iの割り込み入力に割り込み信号を出力する同期入力回
路6よりなる。同期入力回路6は第2図に示すようにセ
ンサ7からの外部入力信号のチャタリング成分を除去す
るチャタリング除去回路6&と、外部入力信号を立ち上
がりを検出する立ち上がり検出回路6bと、立ち下がり
を検出する立ち下がり検出回路6cと、雨検出回路6 
b、 6 cの出力のオアを取るオアデー)6clとか
ら構成されている。
[Disclosure of the Invention] As shown in FIG.
A CPU that controls the movement of the system itself, a memory 2 that stores sequence programs, and external input signals from sensors 7 and the like are input to the CPU via a data bus 3.
an input circuit 3 for sending the CPUI output signal through the data bus 5, and an output circuit 4 for driving the external 7 actuators (motor, solenoid pulp), etc.
The CPU detects changes in external input signals from sensor 7, etc.
It consists of a synchronous input circuit 6 that outputs an interrupt signal to the interrupt input of I. As shown in FIG. 2, the synchronous input circuit 6 includes a chattering removal circuit 6& that removes chattering components of the external input signal from the sensor 7, a rising detection circuit 6b that detects the rising edge of the external input signal, and a rising edge detecting circuit 6b that detects the falling edge of the external input signal. Fall detection circuit 6c and rain detection circuit 6
b, 6cl, which takes the OR of the outputs of c).

通常、CPUIはまず入力回路3よりセンサ7等の外部
入力信号をデータバス5を介して取り込み、メモリ2に
あるシーケンスプログラムに従ってシーケンス演算を行
ない、その結果をデータバス5を介して出力回路4に出
力する0以上がサイクリック演算の1スキヤンであり、
シーケンサはこのスキャンを繰り返して行なうことで、
シーケンス制御を行なっている。そこで、今同期入力回
路6に接続されているセンサ7の入力信号がオフからオ
ンに変化したとすると、その外部入力信号の変化を同期
入力回路6が検出し、CPUIの割り込み入力に割り込
み信号を与える。CPUIはその割り込み入力を受けて
、サイクリックなシーケンス演算の途中であっても、そ
の演算をキャンセルしてシーケンスプログラムの最初の
アドレスに戻って、シーケンス演算を最初から再開する
Normally, the CPU first takes in external input signals from the sensor 7 etc. from the input circuit 3 via the data bus 5, performs sequence calculations according to the sequence program stored in the memory 2, and sends the results to the output circuit 4 via the data bus 5. The output of 0 or more is one scan of the cyclic operation,
By repeatedly performing this scan, the sequencer
Performs sequence control. Therefore, if the input signal of the sensor 7 connected to the synchronous input circuit 6 changes from OFF to ON, the synchronous input circuit 6 detects the change in the external input signal and sends an interrupt signal to the interrupt input of the CPUI. give. Upon receiving the interrupt input, the CPU cancels the operation even if it is in the middle of a cyclic sequence operation, returns to the first address of the sequence program, and restarts the sequence operation from the beginning.

つまり入力回路3より外部入力信号を取り込むところか
ら始める。従って、同期入力回路6に入力される外部入
力信号の変化に対するシーケンサの応答時間はそれがど
んなタイミングであっても、同じ1スキヤンの遅れとな
る。つまり第3図において変化時点a又はらから出力が
発生するまでの応答時間1.又はt2は入力に要する時
間とシーケンス演算の時間と出力に要する時間とだけで
すむから、外部入力信号の入力から出力発生するまでの
1スキヤンの演算時間と常に等しいのである。従って、
従来の応答時間のばらつきに大きな影響を与えていたサ
ンプリング周期とは無縁となるためばらつきは非常に小
さくなる。
In other words, the process starts with taking in an external input signal from the input circuit 3. Therefore, the response time of the sequencer to a change in the external input signal input to the synchronization input circuit 6 is the same one scan delay regardless of the timing. In other words, in FIG. 3, the response time from the change point a or a until the output is generated is 1. Alternatively, since t2 requires only the time required for input, the time required for sequence calculation, and the time required for output, it is always equal to the calculation time of one scan from the input of the external input signal to the generation of the output. Therefore,
Since the sampling period, which had a large effect on conventional response time variations, is no longer involved, the variations become extremely small.

尚第4図に示すように同期入力回路6は外部入力信号の
立ち下がり(又は立ち上がり)のみを検出する構成でも
よい。
Incidentally, as shown in FIG. 4, the synchronization input circuit 6 may be configured to detect only the fall (or rise) of the external input signal.

また第5図に示すように同期入力回路6の出力信号をC
PU1の割り込み入力とする他に瞬時出力回路8に出力
して外部アクチュエータに対する瞬時応答出力としても
よい。
Further, as shown in FIG. 5, the output signal of the synchronization input circuit 6 is
In addition to being used as an interrupt input to the PU 1, it may also be output to the instantaneous output circuit 8 as an instantaneous response output to an external actuator.

[発明の効果1 本発明はサイクリック演算方式のシーケンサであって、
外部入力信号に応じてシーケンス演算を行なって応答出
力を発生させるCPUと、外部入力信号の変化を検出し
てCPUの割り込みを与える手段とを備え、割り込みが
懸かるとCPUにおいて最初のプログラムアドレスから
シーケンス演算を再開させるので、外部入力信号の変化
が検出されると、その時点でシーケンス演算を最初から
再開させることができるものであって、そのため必ず1
スキヤンの演算時間後応答出力が出ることになって、応
答時間のばらつきが極めて小さくなり、位置決め制御等
の精度を高めることができるという効果を奏する。
[Effect of the invention 1 The present invention is a cyclic calculation type sequencer,
It is equipped with a CPU that performs sequence operations in response to external input signals and generates response outputs, and means that detects changes in external input signals and provides CPU interrupts.When an interrupt occurs, the CPU executes a sequence from the first program address. Since the calculation is restarted, when a change in the external input signal is detected, the sequence calculation can be restarted from the beginning at that point.
Since a response output is produced after the scanning calculation time, the variation in response time becomes extremely small, and the accuracy of positioning control, etc. can be improved.

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

第1図は本発明の実施例の回路構成図、第2図は同上の
同期入力回路の回路構成図、第3図は同上の動作説明図
、第4図は同上の同期入力回路の他の例の回路m成図、
第5図は本発明の他の実施例の要部の回路構成図、第6
図は従来例の動作説明図であり、1はCPU、6は同期
入力回路いある。 第2図 第3図 第4図 第6図
FIG. 1 is a circuit configuration diagram of an embodiment of the present invention, FIG. 2 is a circuit configuration diagram of the same synchronous input circuit, FIG. 3 is an explanatory diagram of the operation of the same, and FIG. Example circuit diagram,
FIG. 5 is a circuit configuration diagram of the main part of another embodiment of the present invention, and FIG.
The figure is an explanatory diagram of the operation of a conventional example, in which 1 is a CPU and 6 is a synchronization input circuit. Figure 2 Figure 3 Figure 4 Figure 6

Claims (1)

【特許請求の範囲】[Claims] (1)サイクリック演算方式のシーケンサであって、外
部入力信号に応じてシーケンス演算を行なって応答出力
を発生させるCPUと、外部入力信号の変化を検出して
CPUの割り込みを与える手段とを備え、割り込みがか
かるとCPUにおいて最初のプログラムアドレスからシ
ーケンス演算を再開させることを特徴とするシーケンサ
(1) A sequencer using a cyclic calculation method, which includes a CPU that performs sequence calculations in response to external input signals and generates a response output, and a means for detecting changes in the external input signals and providing an interrupt to the CPU. A sequencer characterized in that when an interrupt occurs, a sequence operation is restarted from the first program address in a CPU.
JP28966485A 1985-12-23 1985-12-23 Sequencer Pending JPS62147558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28966485A JPS62147558A (en) 1985-12-23 1985-12-23 Sequencer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28966485A JPS62147558A (en) 1985-12-23 1985-12-23 Sequencer

Publications (1)

Publication Number Publication Date
JPS62147558A true JPS62147558A (en) 1987-07-01

Family

ID=17746153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28966485A Pending JPS62147558A (en) 1985-12-23 1985-12-23 Sequencer

Country Status (1)

Country Link
JP (1) JPS62147558A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01102602A (en) * 1987-10-16 1989-04-20 Koyo Electron Ind Co Ltd Programmable controller
JP2009187152A (en) * 2008-02-05 2009-08-20 Yokogawa Electric Corp Programmable logic controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01102602A (en) * 1987-10-16 1989-04-20 Koyo Electron Ind Co Ltd Programmable controller
JP2009187152A (en) * 2008-02-05 2009-08-20 Yokogawa Electric Corp Programmable logic controller

Similar Documents

Publication Publication Date Title
JPH04257932A (en) Chip for emulation for digital signal processor
KR920006826A (en) Programmable Controller and Manufacturing Method
JPS62147558A (en) Sequencer
JPH0133864B2 (en)
JPH0573296A (en) Microcomputer
JPS6364588A (en) Motor digital control device
JPH01136251A (en) Self-diagnosing system
JPS6033654A (en) Inter-microprocessor data transferring system
JPH0683652A (en) Microcomputer system
JPH0418655A (en) Data processor
JPH0387790A (en) Synchronous switching circuit
JPH0236411A (en) Data input device
JPH0495102A (en) Control data transmission equipment
JPS63120320A (en) Microprocessor and microcontroller
JP2004272794A (en) Control device and control method capable of external synchronization
JPS58142427A (en) Chattering eliminating method by software
JPS6175436A (en) Microprogram controller
JPS63195781A (en) Digital input device
JPH11110231A (en) Interruption control system
JPH01137339A (en) Microprocessor
JPH02110722A (en) Oscillation control system
JP2001100804A (en) Servo controller
JPH1196019A (en) Method for controlling interruption
JPS58172761A (en) Watchdog circuit
JPH0693240B2 (en) Program synchronization circuit