JPS61170803A - Sequence control method - Google Patents

Sequence control method

Info

Publication number
JPS61170803A
JPS61170803A JP1091185A JP1091185A JPS61170803A JP S61170803 A JPS61170803 A JP S61170803A JP 1091185 A JP1091185 A JP 1091185A JP 1091185 A JP1091185 A JP 1091185A JP S61170803 A JPS61170803 A JP S61170803A
Authority
JP
Japan
Prior art keywords
control
servo
executed
circuit
logical
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
JP1091185A
Other languages
Japanese (ja)
Inventor
Hiroshi Nagase
博 長瀬
Miki Kajita
梶田 美樹
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.)
Hitachi Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
Hitachi 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 Hitachi Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP1091185A priority Critical patent/JPS61170803A/en
Publication of JPS61170803A publication Critical patent/JPS61170803A/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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To control a sequence at a high speed by dividing the operating state of a driven process into operating elements and executing only a necessary logical operation in accordance with the state of the divided operating elements. CONSTITUTION:A read-only-memory (ROM)4, a random access memory (RAM)5, etc. are connected to an arithmetic circuit 1 through a bus 10 to control a servo motor 8 and a contact circuit 9 through a servo I/O circuit 6 and a sequence I/O circuit 7 respectively. Since the logical operation of only a necessary part is executed during parallel processing flow, an execution table 2 and an execution end table 3 are formed, an logical operation part to be executed out of logical operations alpha-gamma or the like is discriminated and the discriminated part is registered in respective tables 2, 3. The logical operations including the positional command operation of a servo motor 8, e.g. starting of the servo motor 8, are executed in the order of registration. Consequently, sequence control can be attained at a high speed without operating all the logical operations.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はプログラマブル・コントa−ラを用いてシーケ
ンス制御を行う際に、特にシーケンス制御上の命令に基
づいた連続系の制御をも併用するシーケンス制御方法に
関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to sequence control using a programmable controller, and particularly to a sequence control system that also uses continuous control based on instructions for sequence control. Regarding control method.

〔発明の背景〕[Background of the invention]

プログラマブル・コントローラ(以下、PCと略称する
)におけるプログラムの実行方法は、例えは「電気学会
誌」昭和57年4月号、第278頁に記載されているよ
うにシーケンス制御の全プログラムをスキャンしながら
実行するのが普通でおる。PCが種々の分野に応用され
るようになると、シーケンス制御を実行しながらその指
令に基づいてフィードバック制御を伴うアナログ制御な
どの連続系の制御をも扱うようになってきている。
An example of how to run a program on a programmable controller (hereinafter abbreviated as PC) is to scan the entire sequence control program as described in the April 1980 issue of the Journal of the Institute of Electrical Engineers of Japan, page 278. It is normal to run it while As PCs have come to be applied to various fields, they have come to handle continuous control such as analog control with feedback control based on commands while executing sequence control.

このとき、PCのスキャン時間穆度、あるいはスキャン
時間よシも短い時間で応答する連続系(サーボモータの
位置決め制御など)’kPC′Jk用いて制御する場合
、連続系の演算をもシーケンスの演算と同一のフロー上
で実行しようとすると、連続系の演算はシーケンス演算
よりも複雑なので演算時間が長くかかるため、シーケン
ス演算をも含む一回のスキャン時間が長くなるという問
題がある。
At this time, if a continuous system (servo motor positioning control, etc.) 'kPC'Jk that responds in a shorter time than the scanning time of the PC or scan time is used for control, continuous system calculations can also be performed as sequence calculations. If you try to execute it on the same flow as , continuous type calculations are more complex than sequence calculations and take longer to calculate, so there is a problem that the time for one scan including sequence calculations becomes longer.

また、スキャン時間、すなわち連続系からみればサンプ
リング時間が長くなる結果、これより短い時間で応答さ
せるような連続系は系を安定に制御できないという問題
も生じる。
Furthermore, as a result of the scanning time, that is, the sampling time becoming longer from the perspective of a continuous system, a problem arises in that a continuous system that responds in a shorter time cannot stably control the system.

〔発明の目的〕[Purpose of the invention]

本発明は前記欠点に対してなされたもので、その目的と
するところは連続系を高速かつ安定に制御するとともに
、シーケンス制御も高速に処理できるシーケンス制御方
法を提供することにある。
The present invention has been made to address the above-mentioned drawbacks, and its purpose is to provide a sequence control method that can control a continuous system at high speed and stably, and can also process sequence control at high speed.

〔発明の概要〕[Summary of the invention]

本発明の特徴とするところは被制御対象動作状態を把握
し、連続系の制御等を含むシーケンス制御上の論理演算
は動作状態に応じてそれに必要な論理演算だけを実行す
るようにしたことにある。
The feature of the present invention is that the operating state of the controlled object is grasped, and logical operations for sequence control, including continuous system control, are executed only according to the operating state. be.

〔発明の実施例〕[Embodiments of the invention]

第1図に本発明の一実施例を示す。 FIG. 1 shows an embodiment of the present invention.

第1図はリレーやスイッチからなる接点回路とサーボモ
ータを駆動する例を示す。
FIG. 1 shows an example of driving a contact circuit consisting of relays and switches and a servo motor.

第1図において、演算回路1はバス1(l介して実行テ
ーブル2、実行終了テーブル3、リードオンリメモリ4
、ランダムアクセスメモリ5、サーボ用入出力回路6、
シーケンス用入出力回路7に接続される。演算回路1と
してはマイクロプロセッサが用いられる。演算回路lは
リードオンリメモリ4に記憶されている命令に従って動
作し、サーボ用入出力回路6およびシーケンス用入出力
回路7t−介してそれぞれサーボモータ8と接点回路9
t−制御する。実行テーブル2および実行終了テーブル
3は後述するようにそれぞれシーケンス制御上の状態を
記憶する記憶手段で、ランダムアクセスメモリ5の一部
のアドレスをこれらにあてることもできる。リードオン
リメモリ4には演算回路1を動作させる命令が記憶され
ている。ランダムアクセスメモリ5は演算回路1の動作
に応じて、その動作に必要なデータを一時記憶する。サ
ーボ用入出力回路6は演算回路1からの信号に応じて動
作する。すなわち、サーボ用入出力回路6は位置指令と
サーボモータ8の実際位置の偏差に応じて、入出力回路
6内に設けられる図示しないアンプを駆動する。入出力
回路6のアンプの出力はサーボモータ8に接続され、モ
ータ8の回転位置が制御される。一方、シーケンス用入
出力回路      −7は演算回路1からの信号に応
じて動作する。入出力回路7は接点回路9を動作させる
出力回路と接点回路9からの信号をうける入力回路から
なる。
In FIG. 1, an arithmetic circuit 1 connects an execution table 2, an execution completion table 3, and a read-only memory 4 via a bus 1 (l).
, random access memory 5, servo input/output circuit 6,
It is connected to the sequence input/output circuit 7. As the arithmetic circuit 1, a microprocessor is used. The arithmetic circuit 1 operates according to instructions stored in the read-only memory 4, and is connected to the servo motor 8 and the contact circuit 9 via the servo input/output circuit 6 and the sequence input/output circuit 7t, respectively.
t-control. As will be described later, the execution table 2 and the execution completion table 3 are storage means for storing respective states on sequence control, and a part of the address of the random access memory 5 can be assigned to these. The read-only memory 4 stores instructions for operating the arithmetic circuit 1. Random access memory 5 temporarily stores data necessary for the operation of arithmetic circuit 1 according to its operation. The servo input/output circuit 6 operates in response to signals from the arithmetic circuit 1. That is, the servo input/output circuit 6 drives an amplifier (not shown) provided within the input/output circuit 6 in accordance with the deviation between the position command and the actual position of the servo motor 8. The output of the amplifier of the input/output circuit 6 is connected to the servo motor 8, and the rotational position of the motor 8 is controlled. On the other hand, the sequence input/output circuit -7 operates according to the signal from the arithmetic circuit 1. The input/output circuit 7 includes an output circuit that operates the contact circuit 9 and an input circuit that receives a signal from the contact circuit 9.

シーケンス入出力回路7の出力信号は接点回路9に接続
される。接点回路9は演算回路1からの信号に応じた動
作、または演算回路1へ信号を送る役割を行う。第1図
の構成は実行テーブル2、実行終了テーブル3をもって
いるのが特徴である。
The output signal of the sequence input/output circuit 7 is connected to a contact circuit 9. The contact circuit 9 operates in response to a signal from the arithmetic circuit 1 or serves to send a signal to the arithmetic circuit 1. The configuration shown in FIG. 1 is characterized by having an execution table 2 and an execution completion table 3.

次に第1図の動作を第2図〜第4図を用いて説明する。Next, the operation shown in FIG. 1 will be explained using FIGS. 2 to 4.

第1図のような制御装置によって動かされる機械は、い
くつかの動作の要素が互いに関連しながら流れを形成し
、それらが論理演算処理されるのが普通である。第2図
はこの例を示すシーケンス処理のフローである。論理α
、β・・・・・・とサーボモータ起動は各動作要素を表
わす。論理α。
In a machine operated by a control device such as the one shown in FIG. 1, several operation elements are related to each other to form a flow, and these are usually processed by logical operations. FIG. 2 is a sequence processing flow showing this example. logic α
, β... and servo motor activation represent each operating element. Logic α.

β・・・・・・は例えばポンプ起動あるいはコンベアを
起動し所定時間後に停止等の論理を実行する演算であり
、サーボ起動は例えばサーボモータをXl 25−らX
lに回転させるなどを実行する数値演算を示す。この動
作はシーケンス命令がスタートすると論理αとβの演算
が並列的に実行される。論理演算βが成立すると、論理
この演算が行われ、その論理が成立すると論理η貞ちに
θ・・・・・・の箇にWl賞が行われる。一方、論理演
算αが成立すると、サーボモータの起動と論理演算rが
さらに並列して実行される。論理rが成立すれば、次に
論理δの演算が行われる。そしてサーボモータによる位
置決めが終了し、かつ論理aが成立すれば、次に論理演
算−が実行される。
β... is a calculation that executes logic such as starting a pump or starting a conveyor and stopping it after a predetermined time, and servo starting is, for example, starting a servo motor from Xl 25- to
This shows numerical operations such as rotation to l. In this operation, when a sequence instruction starts, logical α and β operations are executed in parallel. When the logical operation β is established, this logical operation is performed, and when the logical operation is established, the Wl award is performed at the logical η and θ. On the other hand, when the logical operation α is established, the activation of the servo motor and the logical operation r are further executed in parallel. If the logic r is established, then the logic δ is calculated. Then, when positioning by the servo motor is completed and logic a is established, a logic operation - is executed next.

このような論理をもつシーケンス制御を、従来はラダー
図によって表わし、この全ステップをスギャンすること
により実行している。この場合、サーボ起動の演算、す
なわち、サーボ起動によシその時のサーボ起動からの時
間に応じ九位置指令を演算をするが、その演算実行時間
は比較的長くかかるために1シ一ケンス演算全体の実行
時間が長くなる。第3図はこれを避けるための本発明に
よる制御方法のフローを示す。第1図に示す実行テーブ
ル2、実行終了テーブル3を用いて、シーケンス制御上
の状態を把握しながら、制御を実行する点に特徴がある
。すなわち、第2図の並列処理フロー中、必要な部分の
論理演算だけを実行するために、実行テーブル、実行終
了テーブルを設け、論理演算α、β、r等のどの部分を
実行すべきかを判断する。このために演算実行してもよ
い論理演算を実行テーブル2に登録する。さらに、どの
部分の演算が終了(論理が成立)していて、次のステッ
プの命令を実行してもよいかどうかを判断するために、
演算が終了した論理を実行終了テーブル3に登録する。
Conventionally, sequence control with such logic is represented by a ladder diagram, and executed by running all the steps. In this case, the servo start calculation, that is, the 9 position command is calculated according to the time from the servo start at that time, but since the calculation execution time is relatively long, one sequence calculation is required. The execution time becomes longer. FIG. 3 shows the flow of a control method according to the present invention to avoid this. The feature is that control is executed while grasping the sequence control status using the execution table 2 and execution completion table 3 shown in FIG. That is, in order to execute only the necessary logical operations in the parallel processing flow shown in Figure 2, an execution table and an execution end table are provided, and it is determined which logical operations α, β, r, etc. should be executed. do. For this purpose, logical operations that may be executed are registered in the execution table 2. Furthermore, in order to determine which part of the operation has completed (logic is established) and whether it is okay to execute the next step instruction,
The logic whose operation has been completed is registered in the execution completion table 3.

第4図は第3図のフローを説明する図である。FIG. 4 is a diagram illustrating the flow of FIG. 3.

いま、第2図に示す動作の処理を行う場合を考える。第
4図(a)のように実行テーブル2に論理演算α、βを
行う命令が登録されているとする。まず第3図のフロー
チャートに従って、論理演算αを行う命令が実行テーブ
ル2からとり出されて、このテーブル2からαが消去さ
れ、その命令の実行終了しているかどうかが、実行終了
テーブル3から判断される。この場合は実行終了してい
ないので論理演算αが実行される〔第4図(b)〕。こ
の演算は演算回路1で行うが、演算に必要な情報はメモ
リ5やシーケンス用入出力回路7を通して接点回路8か
ら得、さらに演算の結果はメモリ5や接点回路8へ出力
される。次に、論理αが成立しているならば論理演算α
を行う命令は実行終了テーブル3に登録される〔第4図
(C)〕。次のステップでは論理αが成立したので、そ
の次のステップの命令が実行できるかどうかを判断する
。すなわち、九とえば演算αの次に進むべきステップの
命令の一つであるサーボモータ起動についてみれば、サ
ーボモータの位置決めが終っていなければ前の作業がま
だ行われていることになるので、サーボモータ起動の命
令は実行できない。次のステップの命令が実行できる場
合には演算αを行う命令は実行終了テーブル3から消去
され、次のステップのサーボ起動と論理演算rft行う
命令が実行テーブル2に登録される〔第4図(d)〕。
Now, consider a case where the operation shown in FIG. 2 is processed. Assume that instructions for performing logical operations α and β are registered in the execution table 2 as shown in FIG. 4(a). First, according to the flowchart in FIG. 3, an instruction to perform a logical operation α is taken out from the execution table 2, α is deleted from this table 2, and it is determined from the execution completion table 3 whether or not the instruction has finished executing. be done. In this case, since the execution has not ended, the logical operation α is executed [FIG. 4(b)]. This calculation is performed by the calculation circuit 1, but the information necessary for the calculation is obtained from the contact circuit 8 through the memory 5 and the sequence input/output circuit 7, and the results of the calculation are output to the memory 5 and the contact circuit 8. Next, if logical α holds, logical operation α
The command to perform this is registered in the execution completion table 3 [FIG. 4(C)]. In the next step, since logic α is established, it is determined whether the instruction in the next step can be executed. In other words, if we look at starting the servo motor, which is one of the instructions for the next step after operation α, for example, if the positioning of the servo motor has not been completed, the previous work is still being performed. The command to start the servo motor cannot be executed. If the instruction of the next step can be executed, the instruction to perform the operation α is deleted from the execution completion table 3, and the instruction to start the servo and perform the logical operation rft of the next step is registered in the execution table 2 [Fig. d)].

そして、第3図のフローチャートの最初に戻り、その状
態に応じた処理が実行される。すなわち、実行テーブル
27、bea、、s〜ヶ5゜7.2−一、。ゎ7.J実
行テーブル2から消去され、この命令の実行終了が判断
されて、演算βが実行される〔第4図(e)〕。この次
に、論理演算βが成立しているかどうかが判断され、不
成立であれば演算βを行う命令は再び実行テーブル2に
登録される。次に、実行テーブル2からサーボ起動全行
う命令がとり出されると、これが実行テーブルから消去
されて前と同様にサーボ起動が実行される〔第4図(戯
〕。すなわち、サーボモータの到達すべき最終目標位置
が演算されてサーボ用入出力回路6に送られる。
Then, the process returns to the beginning of the flowchart in FIG. 3, and processing according to the state is executed. That is, the execution table 27, bea, s~5°7.2-1.ゎ7. It is deleted from the J execution table 2, it is determined that the execution of this instruction has ended, and the operation β is executed [FIG. 4(e)]. Next, it is determined whether the logical operation β holds true, and if it does not hold, the instruction for performing the calculation β is registered in the execution table 2 again. Next, when the command to complete the servo start is retrieved from the execution table 2, this command is deleted from the execution table and the servo start is executed in the same way as before [Fig. 4 (illustration)]. The final target position is calculated and sent to the servo input/output circuit 6.

サーボ用入出力回路6はこの位置指令p*に応じてサー
ボモータ8の位置制御を行う。入出力回路6ではカウン
タ等で計測するモータ8の現在位置pを用い、偏差p”
−pに応じてそのアンプを動作させ、サーボモータ8を
動かす。位置制御はすぐには完了しない。すなわち、偏
差p” −pが零かどうかがサーボ起動の命令において
判断される。
The servo input/output circuit 6 controls the position of the servo motor 8 in accordance with this position command p*. The input/output circuit 6 uses the current position p of the motor 8 measured by a counter etc., and calculates the deviation p''
-p operates the amplifier and moves the servo motor 8. Position control is not completed immediately. That is, it is determined in the servo activation command whether the deviation p''-p is zero.

その結果、偏差p”−pは零ではないと、位置決めは終
了していないことになり、サーボ起動の命令は再び実行
テーブル2に登録される〔第4図Φ)〕。次には実行テ
ーブル2に登録されている論理演算rが実行される〔第
4図(i)〕。このようにし−命C二 −+−nlf穴
と2シイ1^1ムム晶t lrp kと実行され、動作
の70−が進行する。このとき、サーボ起動のように1
回の演算で処理が終了しな込命令は何度も繰返し実行さ
れる。以上のようにして、処理が実行され、最終的に位
置決めが終り、このときに論理δも成立していて実行終
了テーブル3に登録されていれば〔第4図(J)1、論
理δおよびサーボ起動の命令は実行終了テーブル3に登
録されるCJIE4図QC)]。次に、実行終了テーブ
ル3の情報をもとに次のステップの命令が実行でき石か
が判断されて、次のステップに進めるならば、そこで実
行すべき論理命令が実行テーブルに登録される〔第4図
(イ)〕。
As a result, if the deviation p"-p is not zero, it means that the positioning has not finished, and the servo start command is registered in the execution table 2 again [Fig. 4 Φ)]. Next, the execution table The logical operation r registered in 2 is executed [Figure 4 (i)]. In this way, - life C 2 - + - nlf hole and 2 shi 1^1 mm crystal t lrp k are executed, and the operation 70- progresses.At this time, 1 is activated like a servo activation.
The processing is completed after one operation, and the command is executed repeatedly. As described above, the process is executed and positioning is finally completed. At this time, if the logic δ is also established and registered in the execution completion table 3 [Fig. 4 (J) 1, the logic δ and The servo start command is registered in the execution end table 3 (CJIE4 diagram QC)]. Next, it is determined whether the next step instruction can be executed based on the information in the execution completion table 3, and if the next step is to proceed, the logical instruction to be executed there is registered in the execution table. Figure 4 (a)].

このようにすると、1回の演算で処理が終了しない命令
は何度も〈シかえし実行されるので、サーボ系等の連続
系の処理に適する。このとき、サーボ起動の演算は先の
説明のように最終到達目標を演算するのではなく、サー
ボ起動が最初に実行されてからの経過時間t、に応じて
、サーボ起動が実行される毎にその時間の目標位置を演
算してもよい。すなわち、位置指令が変わるべき時間間
隔を1.とすると、時間1pが(n−1)t+<tp(
nt、:(nは整数)であるならば、その時間1、にお
ける位置指令を(n  1)t+における目標値として
演算してもよい。この演算によって位置指令を出すと連
続的に滑らかな位置制御が行える。
In this way, an instruction whose processing cannot be completed in one operation will be executed repeatedly, making it suitable for processing in a continuous system such as a servo system. At this time, the calculation of servo activation is not performed by calculating the final goal as explained above, but is performed every time servo activation is performed according to the elapsed time t since the servo activation was first performed. The target position at that time may be calculated. That is, the time interval at which the position command should change is set to 1. Then, time 1p is (n-1)t+<tp(
nt, : (n is an integer), the position command at time 1 may be calculated as the target value at (n 1)t+. When a position command is issued using this calculation, continuous and smooth position control can be performed.

以上のようにして、サーボ起動等のサーボモータの位置
指令演算を含む論理演算を実行テーブル2に登録されて
いる順に実行すれば、PCで行っているスキャン方式の
ように論理判断の全部(第2図の論理演算α〜θやサー
ボ起動等)の演算を行うことなく、そのシステムの動作
の流れから必要なところだけを論理判断するので、高速
な論理演算が行える。そのために、サーボ系等の連続系
も短い周期で起動されるため、高速の連続系が安定に制
御できる。なお、第4図の実行テーブル。
As described above, if logical operations including servo motor position command operations such as servo start are executed in the order registered in the execution table 2, all logical judgments (the first Since only necessary logical decisions are made based on the flow of the system's operation without performing the logical operations α to θ shown in FIG. 2, servo activation, etc., high-speed logical operations can be performed. For this reason, continuous systems such as servo systems are also activated in short cycles, allowing stable control of high-speed continuous systems. In addition, the execution table of FIG.

実行終了テーブルには各論理演算を行う命令を登録する
ようにしたが、第2図に示す動作フローのどの部分を示
すかがこのテーブルではわかればよいので、第2図のフ
ローの各論理に記号をつけ、その記号をテーブルに登録
してどの論理を実行すべきか判断し、記号から実際に行
うべき論理を求めて、各論理演算を実行するようにして
もよい。
In the execution end table, instructions for performing each logical operation are registered, but since this table only needs to show which part of the operation flow shown in Figure 2, It is also possible to attach a symbol, register the symbol in a table, determine which logic should be executed, and then calculate the logic to be actually executed from the symbol to execute each logical operation.

さらに、プロセスの動作は第2図のようなフローチャー
トを利用して表わすだけでなく、他の方法金利用しても
よい。たとえば、ぺ) IJネット・グラフを応用した
方法を用いてもよい。第5図はその一例を示す。図示の
表示方法によれば並列処理を含む動作の状態把握を行い
やすいという特徴がある。
Furthermore, the operation of the process may not only be represented using a flowchart as shown in FIG. 2, but also other methods may be used. For example, a method applying the IJ net graph may be used. FIG. 5 shows an example. The illustrated display method is characterized in that it is easy to grasp the status of operations including parallel processing.

次に上述の例では、サーボ起動の度毎にそのときの時間
に応じた連続系の指令値、すなわち、位置指令を演算す
る例を示した。しかしサーボ起動の命令が実行される周
期がサーボ系の応答時定数と近い場合には次のようにし
て位置指令演算を行ってもよい。すなわち、サーボ起動
の命令ではサーボモータ位置指令演算のための条件だけ
を演算     シし、時間に応じた位置指令値は一定
周期毎に計算してもよい。
Next, in the above example, a continuous command value, that is, a position command, is calculated in accordance with the time at each servo activation. However, if the period in which the servo activation command is executed is close to the response time constant of the servo system, the position command calculation may be performed as follows. That is, in the servo start command, only the conditions for calculating the servo motor position command may be calculated, and the position command value depending on time may be calculated at regular intervals.

第6図はこの演算を行うフローの一例を示す。FIG. 6 shows an example of a flow for performing this calculation.

第6図(a)はサーボ起動のフロー、同図(b)は一定
周期で起動される位置制御のフローを示す。一定周期の
位置制御演算は割込演算として演算回路1で実行できる
。第6図(a)のサーボ起動は第4図で説明したように
、他の論理演算と同一レベルで実行される演算で、これ
は次のように行われる。まず、サーボ起動後に・他捷た
は自身の論理演算(時間関数として目標値が変わること
を含む)に応じた指令値演算の条件の変更があればこれ
を求め、これをメモリに格納することによって後述する
位置制御に利用する。ついで、位置制御の演算で求めら
れているサーボモータの現在位置pt読み出し、最終的
な目標位置に到達しているかを判定してこのルーチンを
終る。一方、第6図(b)の位置制御フローは一定周期
毎に演算回路1においてその割込信号として処理される
。まず、第6図(a)に示すフローで計算されている位
置指令演算の条件をメモリからとり出し、次にそれを基
にその時間における位置指令p傘を演算し、そしてサー
ボモータ8にとりつけられた位置検出器からの信号によ
り実際の位置を演算する。実際例として位置検出器にパ
ルスエンコーダを用いるときにはエンコータカらのパル
ス信号をカウンタで計数したものを現在の位置信号pと
する。信号pは入出力回路6よりうけとる。そして、位
置信号ptメモリに格納する。次に位置偏差p”−pt
演算し、これに応じた信号をサーボ用入出力回路6に出
力する。そして、このルーチンを終る。なお、入出力回
路6では偏差p”−pK応じた信号で、そのパワーアン
プを動作させ、それによって駆動されるサーボモータ8
を制御する。この制御法は周知のようにp”−pに応じ
て直接アンプを駆動しても、p本−pに応じてマイナル
ープの速度制御系を動作させてもよい。また、上記説明
では演算回路1では位置偏差p”−p’!で演算するよ
うにしたが、演算回路1では位置指令pmだけを演算す
るようにし、位置偏差p” −pの演算は入出力回路6
で行うようにしてもよい。さらに、上記例では扱う連続
系はl系統のものを示したが、l系統以上の複数のもの
を扱ってもよいのはいうまでもない。−方、連続系とし
てはサーボモータの位置決めだけでなく、定められた回
転制度に制御する速度制御でもよい。同様に、トルク制
御でもよい。また、連続系としてはサーボモータに関す
る系だけでなく、他の連続系でもよいのは勿論である。
FIG. 6(a) shows the flow of servo activation, and FIG. 6(b) shows the flow of position control activated at regular intervals. The position control calculation at a fixed period can be executed by the calculation circuit 1 as an interrupt calculation. As explained in FIG. 4, the servo activation shown in FIG. 6(a) is an operation executed at the same level as other logical operations, and is performed as follows. First, after starting the servo, if there is a change in the conditions for command value calculation according to the other machine's or its own logical calculation (including changes in the target value as a function of time), find this and store it in memory. This is used for position control, which will be described later. Next, the current position pt of the servo motor determined by the position control calculation is read out, and it is determined whether the final target position has been reached, and this routine ends. On the other hand, the position control flow shown in FIG. 6(b) is processed as an interrupt signal in the arithmetic circuit 1 at regular intervals. First, the conditions for the position command calculation calculated according to the flow shown in FIG. The actual position is calculated based on the signal from the position detector. As an actual example, when a pulse encoder is used as a position detector, the pulse signals from the encoder are counted by a counter and the current position signal p is used. The signal p is received from the input/output circuit 6. Then, the position signal pt is stored in the memory. Next, the positional deviation p"-pt
A signal corresponding to the calculation is output to the servo input/output circuit 6. Then this routine ends. In addition, in the input/output circuit 6, the power amplifier is operated with a signal corresponding to the deviation p''-pK, and the servo motor 8 is driven by the signal.
control. As is well known, in this control method, the amplifier may be driven directly according to p''-p, or the speed control system of a minor loop may be operated according to p''-p. Then, the position deviation p''-p'! However, the calculation circuit 1 calculates only the position command pm, and the calculation of the position deviation p"-p is performed by the input/output circuit 6.
You may also do this using Furthermore, in the above example, the continuous system to be handled is one of l systems, but it goes without saying that a plurality of systems of l or more systems may be handled. - On the other hand, as a continuous system, not only the positioning of the servo motor but also the speed control that controls the rotation precision to a specified level may be used. Similarly, torque control may be used. Moreover, it goes without saying that the continuous system is not limited to a system related to a servo motor, but may be any other continuous system.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、駆動されるプロセ
スの動作状態を動作要素に分割し、動作中の要素を登碌
することにより把握し、その状態に応じてそれに必要な
論理演算だけを実行するので、高速かつ安定な連続系の
制御が行え、さらに高速なシーケンス制御が行える。こ
のよりに連続系の制御とシーケンス制御が同一の演算装
置上に自由な割合で構成でき、その制御が実行できるの
で、装置全体が小型、経済的に構成できるだけでなく、
被制御対象にとられれることのないフレキシビリティの
ある制御装置を提供できる。
As explained above, according to the present invention, the operating state of a driven process is divided into operating elements, the operating elements are upgraded, and the operating state is grasped, and only the necessary logical operations are performed according to the state. This enables high-speed and stable continuous system control, and even higher-speed sequence control. This allows continuous system control and sequence control to be configured in any proportion on the same arithmetic unit, and these controls can be executed, which not only allows the entire device to be compact and economical, but also allows for
It is possible to provide a flexible control device that is not controlled by the controlled object.

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

第1図は本発明の一実施例を示す構成図、第2図は本発
明が適用されるプロセスの動作例を示す図、第3図は本
発明の制御フローチャート、第4図は本発明による動作
説明図、第5図はプロセス動作記述例、第6図は本発明
の他の実施方法を示すフローチャートである。 1・・・演算回路、2・・・実行テーブル、3・・・実
行終了テーブル、4,5・・・メモリ、6・・・サーボ
用入出力回路、7・・・シーケンス用入出力回路、8・
・・サーボモータ、9・・・接点回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of the operation of a process to which the present invention is applied, FIG. 3 is a control flowchart of the present invention, and FIG. 4 is a diagram according to the present invention. FIG. 5 is a process operation description example, and FIG. 6 is a flowchart showing another implementation method of the present invention. 1... Arithmetic circuit, 2... Execution table, 3... Execution end table, 4, 5... Memory, 6... Servo input/output circuit, 7... Sequence input/output circuit, 8・
...Servo motor, 9...Contact circuit.

Claims (1)

【特許請求の範囲】[Claims] 1、被制御対象の動作を動作要素毎に分解しそれらを結
合して予め定められた順序の動作を行わせるようにした
ものにおいて、動作要素の中から動作すべき要素のうち
の一つをとり出し、その動作要素の論理演算あるいは数
値演算を行った後に次の動作すべき要素をとり出し上記
演算を行うように、動作すべき動作要素の演算だけを順
次実行することを特徴とするシーケンス制御方法。
1. In a system that decomposes the motion of a controlled object into motion elements and combines them to perform motions in a predetermined order, select one of the motion elements to be operated. A sequence characterized in that only the operations of the operation elements to be operated are sequentially executed, such that after taking out the operation element and performing a logical operation or numerical operation on the operation element, the next element to be operated is extracted and the above operation is performed. Control method.
JP1091185A 1985-01-25 1985-01-25 Sequence control method Pending JPS61170803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1091185A JPS61170803A (en) 1985-01-25 1985-01-25 Sequence control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1091185A JPS61170803A (en) 1985-01-25 1985-01-25 Sequence control method

Publications (1)

Publication Number Publication Date
JPS61170803A true JPS61170803A (en) 1986-08-01

Family

ID=11763460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1091185A Pending JPS61170803A (en) 1985-01-25 1985-01-25 Sequence control method

Country Status (1)

Country Link
JP (1) JPS61170803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9739503B2 (en) 2015-07-23 2017-08-22 Hoval Aktiengesellschaft Heat exchanger tube and heating boiler having such a heat exchanger tube

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5352883A (en) * 1976-10-25 1978-05-13 Nippon Denso Co Ltd Central controlling method for car
JPS564803A (en) * 1979-06-25 1981-01-19 Idec Izumi Corp Sequence controller
JPS58155406A (en) * 1982-03-10 1983-09-16 Omron Tateisi Electronics Co Flow chart system programmable controller
JPS5979311A (en) * 1982-10-29 1984-05-08 Hitachi Ltd Sequence controlling device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5352883A (en) * 1976-10-25 1978-05-13 Nippon Denso Co Ltd Central controlling method for car
JPS564803A (en) * 1979-06-25 1981-01-19 Idec Izumi Corp Sequence controller
JPS58155406A (en) * 1982-03-10 1983-09-16 Omron Tateisi Electronics Co Flow chart system programmable controller
JPS5979311A (en) * 1982-10-29 1984-05-08 Hitachi Ltd Sequence controlling device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9739503B2 (en) 2015-07-23 2017-08-22 Hoval Aktiengesellschaft Heat exchanger tube and heating boiler having such a heat exchanger tube

Similar Documents

Publication Publication Date Title
US4609855A (en) Adaptive servomotor control
CA1338745C (en) Method of recording and playing back instruction data in a robot
EP0606488B1 (en) Control method for spot welding robot
JPS6261104A (en) Acceleration/deceleration control system for horizontal articulation type robot
JPH05228794A (en) Positioning method for main spindle
JPH1189291A (en) Acceleration/deceleration control method of motor
JPS61170803A (en) Sequence control method
WO1988006752A1 (en) Numerical control method capable of variably setting positioning precision
JPS6335199A (en) Drive control system for stepping motor
JPH08106320A (en) Automatic machine and control method for automatic machine
JPS61256407A (en) Numerical controller
JP2942615B2 (en) NC control method for press-fit robot
JPH11272307A (en) Motion controller
JPS6277610A (en) Robot controller equipped with step-back function
JP2653101B2 (en) Pulse generator for positioning control
JPS62224804A (en) Sequence control method
JP3743335B2 (en) Numerical controller
JP3358112B2 (en) Programmable controller
JPH11353026A (en) Control method for servo motor
KR920007641B1 (en) Numerical control discharge devices
JPH04355682A (en) Positioning device
JPS62152020A (en) Digital servo controller
JPH081564A (en) Robot control device
JPS61218380A (en) Controller of motor
WO1991013388A1 (en) Improvements in or relating to actuator control