JPS61235907A - Controlling method for programmable controller - Google Patents

Controlling method for programmable controller

Info

Publication number
JPS61235907A
JPS61235907A JP7650985A JP7650985A JPS61235907A JP S61235907 A JPS61235907 A JP S61235907A JP 7650985 A JP7650985 A JP 7650985A JP 7650985 A JP7650985 A JP 7650985A JP S61235907 A JPS61235907 A JP S61235907A
Authority
JP
Japan
Prior art keywords
box
token
control
output
input
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
JP7650985A
Other languages
Japanese (ja)
Inventor
Hiroshi Nagase
博 長瀬
Miki Kajita
梶田 美樹
Masahiro Shikayama
昌宏 鹿山
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 JP7650985A priority Critical patent/JPS61235907A/en
Publication of JPS61235907A publication Critical patent/JPS61235907A/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/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring

Abstract

PURPOSE:To execute a sequence control containing a control of a continuous quantity by changing an operational condition and annihilating a token, when a block for changing the operational condition is started, and generating the token in a block to be started, when a set condition is formed. CONSTITUTION:A token is annihilated by a control input for changing an operational condition, and from a control output, the token is generated. That is to say, when the token is inputted, the control input changes a data of its box, and the token which has been inputted from the control input is annihilated. That is to say, the control input becomes a sink box for erasing the token. On the other hand, when a set condition is formed in the course of executing an operation of the box, a token is generated from the control output, the box following it is started, and the control output becomes a source box for generating the token.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はプログラマブルコントローラの制御方法、とく
にアナログ量などの連続量の制御をも併用して制御する
プログラマブルコントローラの制御方法に関する6 〔発明の背景〕 最近、プログラマブルコントローラの入力表現をよりわ
かりやすく、システム的に表わすための方法が検討され
ている。ペトリネットを基準とする方法はこの一つで、
たとえば計測自動制御学会論文集昭和59年9月号84
4ページ[ペトリネットに基づく高フレキシブルFA制
御システム」に記載されている。これによると、シーケ
ンス制御上の動作や論理がわかりやすく表現でき、制御
を高速に実行できる。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a method of controlling a programmable controller, and particularly to a method of controlling a programmable controller that also controls continuous quantities such as analog quantities. [Background of the Invention] Recently, methods have been studied to express programmable controller inputs more easily and systematically. This is one method based on Petri nets,
For example, Proceedings of the Society of Instrument and Control Engineers, September 1984 issue 84
It is described on page 4 [Highly flexible FA control system based on Petri net]. According to this, the operations and logic of sequence control can be expressed in an easy-to-understand manner, and control can be executed at high speed.

しかしながら、この表現方法を用いたコントローラでサ
ーボモータなどの連続系の制御をも行おうとすると次の
問題を生じる。すなわち、ペトリネットを用いた表現方
法はシーケンス制御を行うことだけを考えているので、
連続系についてはその動作開始指示しかできず、刻々と
値の変化する制御内容そのものには関与できなかった。
However, if a controller using this expression method is used to control a continuous system such as a servo motor, the following problem will occur. In other words, since the representation method using Petri nets is only concerned with sequence control,
For continuous systems, they could only give instructions to start the operation, and could not be involved in the control contents themselves, whose values change moment by moment.

そのために、この表現方法は連続系の制御には適用でき
ないという問題がある。
Therefore, there is a problem that this expression method cannot be applied to continuous system control.

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

本発明は前記の問題点に対してなされたもので。 The present invention has been made to solve the above problems.

その目的とするところはアナログ制御などの連続量の制
御を含むシーケンス制御が容易にできるプログラマブル
コントローラの制御方法を提供することにある。
The purpose is to provide a control method for a programmable controller that can easily perform sequence control including continuous control such as analog control.

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

本発明の特徴とするところは、動作中の連続系の制御演
算に対し、その演算条件の変更やその動作状況に応じた
他の制御をするために、演算条件の変更を行うブロック
が起動されると演算条件を変更してトークンを消滅させ
ること、動作状況に応じた他の機器の制御をするために
、設定した条件が成立すると、それによって起動される
べきブロックにトークンを発生させることにある。
The feature of the present invention is that a block for changing the calculation conditions is activated for the control calculation of the continuous system in operation, in order to change the calculation conditions or perform other control according to the operation status. Then, in order to change the calculation conditions and make the token disappear, and to control other devices according to the operating status, when the set conditions are met, a token is generated in the block that should be activated by it. be.

(発明の実施例〕 第2図は本発明を適用したプログラマブルコントローラ
の表現方法の一例を示す、第2図において、Bn(nは
整数)は状態を表わすボックスで、動作の単位を示す。
(Embodiment of the Invention) FIG. 2 shows an example of a representation method of a programmable controller to which the present invention is applied. In FIG. 2, Bn (n is an integer) is a box representing a state and a unit of operation.

このボックスに図のB3に示すようなトークン(黒丸印
で示す)が入ると、そのボックスの動作が起動される。
When a token (indicated by a black circle) as shown in B3 in the figure is entered into this box, the operation of that box is activated.

トークンはボックス間の矢印に従ってボックスを次々に
移動し、トークンの存在するボックスが起動される。0
n(nは整数)はボックス間のトークンの移動を制御す
るためのゲートを表す。
The token moves from box to box following the arrows between the boxes, and the box in which the token resides is activated. 0
n (n is an integer) represents a gate for controlling movement of tokens between boxes.

第1図では、ボックスB1の出力はゲートGlを通りボ
ックスB4のコントロール入力C1に入力される。ボッ
クスB4のコントロール出力C2はゲートG2を通りボ
ックスB2に入力される。
In FIG. 1, the output of box B1 passes through gate Gl and is input to control input C1 of box B4. Control output C2 of box B4 is input to box B2 through gate G2.

さらに、ボックスB3の出力はゲートG3を通りボック
スB4に入力され、ボックスB4の出力はゲートG4を
通りボックスB5に入力されている。
Furthermore, the output of box B3 passes through gate G3 and is input into box B4, and the output of box B4 passes through gate G4 and is input into box B5.

ボックスに存在するトークンは後述するゲートの入出力
がコントロール入力Cn (nは整数)であるときを除
き1次の条件を満たせばゲートの通過が可能となる。
The tokens present in the box can pass through the gate if the first-order condition is satisfied, except when the input/output of the gate is a control input Cn (n is an integer), which will be described later.

(1)入力側のすべてのボックスにトークンが存在し、
しかもボックスの指定する動作内容(演算内容)が終了
している。
(1) There are tokens in all boxes on the input side,
Furthermore, the operation content (computation content) specified by the box has been completed.

(2)出力側のすべてのボックスにトークンが存在しな
い。
(2) There are no tokens in any boxes on the output side.

トークンがゲートを通過するとゲートの入力側のボック
スのすべてのトークンを消滅させ、出力側のすべてのボ
ックスにトークンを発生させる。
When a token passes through the gate, all tokens in the boxes on the input side of the gate disappear, and tokens are generated in all boxes on the output side of the gate.

第2図の例の場合、B3だけにトークンが存在するので
、B3の動作が終了すると84にトークンが移動し、B
4の動作が起動される。B4の動作が終了するとB4の
トークンはB5に移動する。
In the example shown in Figure 2, the token exists only in B3, so when the operation of B3 is completed, the token moves to 84, and
4 is activated. When the operation of B4 is completed, the token of B4 is moved to B5.

そして、B5の動作が起動される。このようにして、そ
れぞれのボックスの動作が実用される。
Then, the operation of B5 is activated. In this way, the operation of each box is implemented.

各ボックスが具体的にどのような演算を行うかは第3図
のようなコマンドで記述された内容に従って実行される
。第3図はその一例で、ボックスBl、B2.B3.B
5の演算は論理、数値処理で、ボックスB4の演算は連
続系すなわち、サーボモータを扱う、第2図からもわか
るように。
The specific calculations performed by each box are executed according to the contents described by commands as shown in FIG. FIG. 3 is an example of this, with boxes Bl, B2. B3. B
As can be seen from Figure 2, the calculations in box B4 involve logic and numerical processing, and the calculations in box B4 deal with continuous systems, that is, servo motors.

B4はコントロール入力C1とコントロール出力C2を
持っており、B4のデータ変更、データ出力が可能であ
る。C1と02は次のように働く。
B4 has a control input C1 and a control output C2, and it is possible to change and output data of B4. C1 and 02 work as follows.

すなわち、B1にトークンが入ると81の演算が実行さ
れ、その結果を基に84のデータが変更される。このと
き、第2図の例ではコントロール入力C1の入力ゲート
G1にはB1以外のボックスに接続されていないので、
B1の演算が終るとただちにC1を通して84のデータ
が変更されるが、他のボックスが存在するならば前記の
通過条件(1)、(2)を満たすときにB4のデータが
変更される。一方、B4の演算中にそこで設定された条
件が満たされたとき、コントロール出力C2からトーク
ンが出され、G2が通過可能ならばB2にトークンが入
り、B2の動作が実行される。
That is, when a token enters B1, the operation 81 is executed, and the data 84 is changed based on the result. At this time, in the example of FIG. 2, the input gate G1 of the control input C1 is not connected to any box other than B1, so
Immediately after the calculation of B1 is completed, the data in 84 is changed through C1, but if other boxes exist, the data in B4 is changed when the above passing conditions (1) and (2) are satisfied. On the other hand, when the condition set there during the calculation of B4 is satisfied, a token is output from the control output C2, and if G2 can be passed, the token is input to B2, and the operation of B2 is executed.

各ボックスはトークンが入ると次の演算を実行する。第
3図の場合、B1は定数Kを5に変更する。B2はコン
トロールの出力番号61の出力をオンにする。B3は入
力番号51の入力がオンになるまで待って、オンになる
と定数Kを2にする。
Each box performs the following operation when a token enters it. In the case of FIG. 3, B1 changes the constant K to 5. B2 turns on the output of control output number 61. B3 waits until the input with input number 51 turns on, and when it turns on, sets the constant K to 2.

B4はサーボの位置決めを行う演算で、サーボ軸番号1
の目標位置を500XKとして1位置決めを行う、B3
からB4にトークンが入り、目標位置を500x2=1
000として位置決めを実行中にB1にトークンが入る
と、コントロール人力C1を通して目標位置を500x
5=2500に変更して位置決めを実行する。なお1図
示のものは単に最終の目標位置だけを与えたが、これだ
けでなく速度を規定しながら位置決めを行ってもよい、
さらに、B4では次の演算を行う。現在位置Pが500
以上になったときC2をオン、すなわち、C2にトーク
ンを入れる。B5は出力番号62の出力をオフにする。
B4 is a calculation for positioning the servo, and is the servo axis number 1.
Perform one positioning with the target position of 500XK, B3
A token enters B4 from , and the target position is set to 500x2=1
If a token enters B1 while positioning is being performed as 000, the target position is set to 500x through control human power C1.
5=2500 and execute positioning. Note that in the one shown in the figure, only the final target position is given, but positioning may also be performed while specifying the speed.
Furthermore, in B4, the following calculation is performed. Current position P is 500
When the above is reached, C2 is turned on, that is, a token is put into C2. B5 turns off the output of output number 62.

第1図は第2,3図で示したプログラムを実行する制御
装置の構成を示す。コントローラ1はスイッチ2から信
号を受け、リレー3,4、及びサーボモータ5を制御す
る。ここでは、第1図、第2図に対応させて、スイッチ
、リレー、サーボモータを接続したが、システム全体で
はさらに他のスイッチ、リレー等があるのはいうまでも
ない。
FIG. 1 shows the configuration of a control device that executes the programs shown in FIGS. 2 and 3. Controller 1 receives a signal from switch 2 and controls relays 3 and 4 and servo motor 5. Here, switches, relays, and servo motors are connected in accordance with FIGS. 1 and 2, but it goes without saying that there are other switches, relays, etc. in the entire system.

コントローラ1は次のように構成される。プロセッサ1
01はシステムメモリ102に示す手順に従って起動さ
れ、プログラムメモリ103の内容に応じて演算が実行
される。演算のために必要なデータはデータメモリ10
4に格納され、必要に応じてプロセッサ101に出力さ
れる。プロセッサ101、システムメモリ102、プロ
グラムメモリ103.データメモリ104はラッチ回路
106.108,110とインタフェース105ととも
にバス114によって接続され、信号がやりとりされる
。スイッチ2の出力は入力接点51を通して入力回路1
07に入力される。入力回路107の出力はラッチ回路
106に接続され、その信号はラッチ回路106を通し
てプロセッサ101に伝えられる。プロセッサ101か
らのリレー3,4をオン、オフする信号はそれぞれラッ
チ回路108でラッチされ、その出力は出力回路109
に接続されて、それぞれ出力回路109の出力は出力接
点61を通してリレー3に、出力接点62を通してリレ
ー4に接続される。一方、サーボモータ5の目標位置は
ラッチ回路110でラッチされ、その出力は位置制御回
路111に伝えられる6位置制御回路111はサーボモ
ータ5の回転軸にとり、つけられているパルスエンコー
ダ6の出力パルスを数えて現在位置を検出し、目標位置
との偏差をとり、それに応じた速度指令信号を出力する
。位置制御回路111からの速度指令信号は速度制御回
路112に入力される。速度制御回路112はパルスエ
ンコーダ6の出力信号からサーボモータ5の回転速度を
検出して、速度指令信号との偏差をとり、それに応じて
トルク指令信号を出力する。速度制御回路112からの
トルク指令信号はパワー回路113に入力される。パワ
ー回路113はトルク指令信号に応じた電流をサーボモ
ータ5に流す。
The controller 1 is configured as follows. processor 1
01 is activated according to the procedure shown in the system memory 102, and calculations are executed according to the contents of the program memory 103. Data necessary for calculation is stored in data memory 10.
4 and output to the processor 101 as necessary. Processor 101, system memory 102, program memory 103. Data memory 104 is connected to latch circuits 106, 108, 110 and interface 105 by bus 114, and signals are exchanged. The output of switch 2 is connected to input circuit 1 through input contact 51.
07 is input. The output of the input circuit 107 is connected to the latch circuit 106, and the signal is transmitted to the processor 101 through the latch circuit 106. Signals for turning on and off relays 3 and 4 from processor 101 are latched by latch circuits 108, and their outputs are sent to output circuits 109.
The output of the output circuit 109 is connected to the relay 3 through the output contact 61 and to the relay 4 through the output contact 62, respectively. On the other hand, the target position of the servo motor 5 is latched by a latch circuit 110, and its output is transmitted to a position control circuit 111. It counts the current position, calculates the deviation from the target position, and outputs a speed command signal accordingly. A speed command signal from position control circuit 111 is input to speed control circuit 112 . The speed control circuit 112 detects the rotational speed of the servo motor 5 from the output signal of the pulse encoder 6, calculates the deviation from the speed command signal, and outputs a torque command signal accordingly. A torque command signal from speed control circuit 112 is input to power circuit 113. The power circuit 113 supplies current to the servo motor 5 according to the torque command signal.

第1図に示す装置は次のように動作する。第2図、第3
図に示すプログラムはパーソナルコンピュータ(以下、
パソコンと略す)7から入力される。パソコン7は入力
されたプログラムをコントローラ1で実行できる形に直
してインタフェース105に送る。この信号はプログラ
ムメモリ103に格納される。プロセッサ101がシス
テムメモIJ 102によって起動されるとプログラム
メモリ103に従って、第2図、第3図に示すようなプ
ログラムが実行される。ボックスB3が起動されると、
スイッチ2のオン、オフ状態が入力回路107、ラッチ
回路106を通してプロセッサ101で読みとられる。
The apparatus shown in FIG. 1 operates as follows. Figures 2 and 3
The program shown in the figure is a personal computer (hereinafter referred to as
It is input from 7 (abbreviated as PC). The personal computer 7 converts the input program into a form that can be executed by the controller 1 and sends it to the interface 105. This signal is stored in program memory 103. When the processor 101 is activated by the system memo IJ 102, programs as shown in FIGS. 2 and 3 are executed according to the program memory 103. When box B3 is activated,
The on/off state of the switch 2 is read by the processor 101 through the input circuit 107 and the latch circuit 106.

B2.B5が起動されたときはそれぞれ、オン、オフ信
号がラッチ回路108、出力回路109を通してリレー
3,4に伝えられる。B4が起動されたときは位置の目
標信号がラッチ回路110を通して位置制御回路111
に伝えられる。サーボモータ5の現在位置は位置検出回
路111からラッチ回路110を通してプロセッサ10
1に送られて、現在位置の状況の判断や、位置決めが完
了したかの判断がなされる。第1図の制御装置はこのよ
うに動作する。
B2. When B5 is activated, on and off signals are transmitted to relays 3 and 4 through latch circuit 108 and output circuit 109, respectively. When B4 is activated, the position target signal passes through the latch circuit 110 to the position control circuit 111.
can be conveyed to. The current position of the servo motor 5 is transmitted from the position detection circuit 111 to the processor 10 through the latch circuit 110.
1 to determine the status of the current position and whether positioning has been completed. The control device of FIG. 1 operates in this manner.

第1図に示すシステムを第2図、第3図の表現方法でプ
ログラムすると、その制御フローは第4図、第5図のよ
うにまとめられる0図かられかるように、コントロール
入力はトークンが入るとそのボックスのデータを変更し
、コントロール入力から入ったトークンを消滅させる。
When the system shown in Fig. 1 is programmed using the representation method shown in Figs. 2 and 3, the control flow is summarized as shown in Figs. 4 and 5. As shown in Fig. 0, the control inputs are When entered, it changes the data in that box and destroys the token entered from the control input.

すなわち、コントロール入力はトークンを消す5ink
ボックスとなる。一方、ボックスの演算を実行中に設定
した条件が成立すると、コントロール出力からトークン
が発せられ、それに続くボックスが起動される。
That is, the control input is 5ink which erases the token.
It becomes a box. On the other hand, if a set condition is met during the execution of a box operation, a token is issued from the control output and the following box is activated.

すなわち、コントロール出力はトークンを発生させる5
ourceボックスとなる。トークンに関してコントロ
ール入力、出力に上記機能を持たせた点が特徴である。
That is, the control output is 5 which generates a token.
It becomes the source box. The feature is that the control input and output of the token have the above functions.

第4図のフローを説明する。まず始めに、トークンの存
在するボックスのうちの一つを抽出する(1)0次に、
そのボックスの処理内容を演算する(2)6各ボックス
の演算内容は第3図のように指定される。そして、演算
結果、指定した論理が成立しているか、たとえば、サー
ボの位置決めが完了しているかどうか判定する(3)、
成立しているならば、次にトークンの移行が可能かどう
か、すなわち、先に示したゲートの通過条件が満たされ
るかを判定する(4)、論理が成立していない場合、移
行が可能でない場合にはそのボックスを再登録(5)し
て、再度計算を行うようにする。トークンの移行が可能
ならば行先がコントロール入力かどうか判断する(6)
。コントロール入力の場合には当然ボックスの定数等を
変更して(7)、最初に戻る。このとき、トークンは消
滅する。コントロール入力でないときはそのゲートの出
力側ボックスを新たに登録して(8)1次にそのボック
スの演算が実行できるようにする。なお、ここではゲー
トの出力側には1つのボックスあるいは1つのコントロ
ール入力がある場合のフローを示したが、複数あるとき
はそれぞれに対して(6)〜(8)をくりかえすのはい
うまでもなし)。
The flow shown in FIG. 4 will be explained. First of all, extract one of the boxes where the token exists (1)0 Next,
Calculate the processing contents of the box (2) 6 The calculation contents of each box are specified as shown in FIG. Then, as a result of the calculation, it is determined whether the specified logic is established, for example, whether the servo positioning has been completed (3),
If the logic holds true, then it is determined whether the token can be transferred, that is, whether the gate passing conditions shown earlier are satisfied (4). If the logic is not held, the transfer is not possible. If so, re-register the box (5) and perform the calculation again. If token transfer is possible, determine whether the destination is a control input (6)
. In the case of control input, of course, change the constants in the box (7) and return to the beginning. At this time, the token disappears. If it is not a control input, the output side box of that gate is newly registered (8) so that the calculation of that box can be executed in the first place. Note that here we have shown the flow when there is one box or one control input on the output side of the gate, but if there are multiple, it goes without saying that steps (6) to (8) must be repeated for each. none).

第5図は第2図、第3図のボックスB4のようなゲート
出力があるときのフローを示す、このフローは第4図の
(2)、(3)のステップに対応する。まず、演算を実
行する。B4でいえば位置指令を出力する演算に相当す
る。そしてC0DEが1かどうかを判定する。ここでC
0DEは判定条件が成立してコントロール出力からトー
クンを出した後に、またこのボックスの演算を実行した
ときに再びトークンが出されるのを防ぐためのもので、
C0DE=1はトークンを出した後であることを示す。
FIG. 5 shows a flow when there is a gate output such as box B4 in FIGS. 2 and 3. This flow corresponds to steps (2) and (3) in FIG. 4. First, perform the calculation. In terms of B4, this corresponds to a calculation that outputs a position command. Then, it is determined whether C0DE is 1 or not. Here C
0DE is to prevent the token from being issued again when the calculation in this box is executed after the judgment condition is met and the token is issued from the control output.
C0DE=1 indicates that the token has been issued.

もちろん、コントロール出力からトークンを連続的に出
す場合等地の動きをさせたいときはC0DEをいろいろ
変える必要がある。フローはC0DE=Oであれば次に
1判定条件が成立しているかどうか調べる(13) 、
判定条件としてはB4でいうと、現在位置Pが500以
上になったかどうかである0条件が成立していればコン
トロール出力からトークンが出され、それに接続されて
いるゲートが通過可能か調べる。移行が可能であればC
0DEを1として(15) 、ゲートの出力側ボックス
を第4図の(1)のステップを実行させるためにそのボ
ックスを登録する(16)。
Of course, if you want to make ground movements, such as when tokens are issued continuously from the control output, you will need to change C0DE in various ways. The flow is, if C0DE=O, then check whether 1 judgment condition is satisfied (13),
As a judgment condition, in B4, if the 0 condition, which is whether the current position P has become 500 or more, is satisfied, a token is output from the control output, and it is checked whether the gate connected to it can be passed through. C if migration is possible
0DE is set to 1 (15), and the box on the output side of the gate is registered in order to execute the step (1) in FIG. 4 (16).

こうして、コントロール出力からトークンが発せられ1
次のステップ(17)が実行される。 C0DEが1の
とき、条件不成立のとき、移行不可能のときは図示のよ
うに、(17)のステップへ飛ぶ、  (17)のステ
ップでは論理が成立しているか判断される。
Thus, a token is emitted from the control output and 1
The next step (17) is executed. When C0DE is 1, when the condition is not satisfied, or when the transition is impossible, the process jumps to step (17) as shown in the figure. In step (17), it is determined whether the logic is satisfied.

B4の例では位置決めが完了したか判断される。In the example of B4, it is determined whether positioning is completed.

成立していればC0DE&−0にして第4図の(4)の
ステップが、不成立ならば(5)のステップが実行され
る。
If it holds true, step (4) in FIG. 4 is executed, and if it does not hold, step (5) is executed.

以上示したようにすると、連続量を制御するボックスに
対し、演算条件の変更ができ、また、起動中のボックス
の状況に応じた信号と外部にとり出すことができる。ま
た、演算条件を変更するためのコントロール入力ではト
ークンが消滅し、ボックス内の状況に応じた信号を出す
コントロール出力からはトークンが発生するので、コン
トロール入力や出力に接続されているボックスの動作を
正常に行うことができる。
By doing as described above, it is possible to change the calculation conditions for the box that controls the continuous amount, and it is also possible to output a signal to the outside that corresponds to the status of the box during activation. In addition, tokens disappear when a control input is used to change calculation conditions, and a token is generated from a control output that outputs a signal according to the situation inside the box, so the operation of the box connected to the control input or output is controlled. Can be done normally.

なお、上記実施例では一つのボックスでコントロール入
力と出力の両者を持つものを示したが、コントロール入
力あるいは出力の一方だけを持ってもよい。
In the above embodiment, one box has both control input and output, but it may have only either control input or output.

第2図に示したコントロール入力C1、出力C2は表現
方法の一例であり、他の表現方法を用いてよいのは無論
である。第6図はその一例を示す。二重枠で囲んだボッ
クスB4’ 、B4’がそれぞれ第1図のC1とC2に
対応する。C1の代わりに5inkボックスB4’ 、
C2の代わり5ourceボックスB4’をおいてもよ
い、トークンがB4’に入ると、B4の演算条件が変更
される。また、B4の演算で指定した条件が成立すると
、トークンがB4’に出される。このような表現方法は
いずれにせよ、演算条件を変更するには、それを実行す
るトークンの存在するボックスに対して5ink、ボッ
クス内の演算条件から外部に出力できるように、その結
果起動されるボックスにトークンが発生するように5o
urceの役割ができればよい、さらに、84′の入力
ゲートG1にはB1のみが入力されるので、B4’で8
1の演算を実行してもよい。また同様に、84″の出力
ゲートG2はB2だけが接続されているので、B2の演
算はB4’で実行してもよい。
The control input C1 and output C2 shown in FIG. 2 are an example of the expression method, and it goes without saying that other expression methods may be used. FIG. 6 shows an example. Boxes B4' and B4' surrounded by double frames correspond to C1 and C2 in FIG. 1, respectively. 5ink box B4' instead of C1,
A 5source box B4' may be placed in place of C2. When a token enters B4', the calculation condition of B4 is changed. Further, when the condition specified in the calculation of B4 is satisfied, a token is issued to B4'. In any case, in order to change the calculation condition, use 5 ink for the box where the token to execute it exists, and the result is activated so that the calculation condition in the box can be output to the outside. 5o so that tokens appear in the box
In addition, since only B1 is input to the input gate G1 of 84', B4'
1 operation may be performed. Similarly, since only B2 is connected to the output gate G2 of 84'', the calculation of B2 may be performed by B4'.

上記の実施例ではサーボモータ用の位置の指令を出すボ
ックスに対して、コントロール入力と出力を持つように
したが、他の演算を行うボックスに対して適用すること
ができる。第7図はその一例を示す、ボックスB13は
単に出力番号71をオンする演算を実行するものである
が、Bllにトークンが入り、定数にの値が変更される
と、B13の動作が変わる。すなわち、B13が起動さ
れた後、B14で入力番号81がオンになるまでトーク
ンがB13に留っている間に、Bllにトークンが入っ
てKの値が変更されると、出力番号71はオフされる。
In the above embodiment, the box that issues a position command for the servo motor is provided with a control input and an output, but it can be applied to a box that performs other calculations. FIG. 7 shows an example of this. Box B13 simply executes an operation to turn on output number 71, but when a token is entered in Bll and the value of the constant is changed, the operation of B13 changes. That is, after B13 is activated, if a token enters Bll and the value of K is changed while the token remains in B13 until input number 81 is turned on in B14, output number 71 is turned off. be done.

こうすると、B13の動作中にその制御を変えることが
でき、さらに、B13にトークンがないときに、B11
にトークンが入っても他に影響を与えずに動作は進行さ
せることができる。
This allows you to change control of B13 while it is running, and also allows you to change control of B11 when B13 has no tokens.
Even if a token enters, the operation can proceed without affecting others.

このように、インタロツタ動作を行うものに対しても本
発明は適用できる。
In this way, the present invention can also be applied to devices that perform interrotter operations.

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

以上説明したように本発明によれば、連続的な動作を行
っている制御演算に対して、その定数の変更や状態のと
り出しが行える。その結果、本発明で示す表現方法をも
つコントローラを位置決めと論理処理を行°うような各
種モーション・コントロール機器に対して適用すること
ができる。
As described above, according to the present invention, it is possible to change the constants and extract the state of control calculations that are continuously operating. As a result, the controller having the expression method shown in the present invention can be applied to various motion control devices that perform positioning and logical processing.

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

第1図は本発明の一実施例を示す構成図、第2図、第3
図は本発明の表現方法の一例、第4図。 第5図は本発明による制御フローチャート、第6図は他
の表現方法の一例、第7図は第1図、第3図の表現方法
を他の制御演算に適用した例を示す。 B1〜B5・・・ボックス、Gl、G2・・・ゲート、
1傷! 因 ! X2図 13図 Bl :に−5 82二丁61−σ八 δ3 ; 1.kt″# X1t−an、 thenに
一2a+: st−#7ネハ tt/a−7t  P−fE、jθσ、    t/l
ea l:2−0/IB5: γΔ2−σff 14図 第5図 (りかう (4)へ        (5)へ ’Xt図 ′3T7図 (T11 δIt:  K’0 [5+2:   K雪1 δ13コ   TTf・σハ bf  1m(。 T7/雷σff M KJ/。
Fig. 1 is a configuration diagram showing one embodiment of the present invention, Fig. 2, Fig. 3
FIG. 4 is an example of the method of expressing the present invention. FIG. 5 is a control flowchart according to the present invention, FIG. 6 is an example of another representation method, and FIG. 7 is an example in which the representation methods of FIGS. 1 and 3 are applied to other control calculations. B1 to B5...Box, Gl, G2...Gate,
1 wound! Cause! X2 Figure 13 Figure Bl: ni-5 82 2-cho 61-σ8 δ3; 1. kt''# X1t-an, then 2a+: st-#7nehatt/a-7t P-fE, jθσ, t/l
ea l:2-0/IB5: γΔ2-σff Figure 14 Figure 5 (Go to Rikau (4) Go to (5)・σha bf 1m (. T7/Lightning σff M KJ/.

Claims (1)

【特許請求の範囲】[Claims] 1、被制御対象の制御システムの動作を動作単位に分割
したボックスと、それぞれのボックスを起動するトーク
ンと、トークンの動作を制御するゲートをもち、ボック
スのトークンを次々と移動させることによつて制御動作
を進めるようにしたプログラマブルコントローラにおい
て、連続して動作を行う第1ボックスの動作状態を変更
するために、その動作状態を変えるための第2ボックス
にトークンが入力されると、前記第1ボックスの動作状
態を変更した後に前記第2ボックスのトークンを消滅さ
せるようにしたことを特徴とするプログラマブルコント
ローラの制御方法。
1. It has a box that divides the operation of the control system to be controlled into operation units, a token that activates each box, and a gate that controls the operation of the token, and by moving the tokens of the box one after another. In a programmable controller configured to advance control operations, when a token is input to a second box for changing the operating state of a first box that continuously performs operations, the first A method for controlling a programmable controller, characterized in that the token in the second box disappears after changing the operating state of the box.
JP7650985A 1985-04-12 1985-04-12 Controlling method for programmable controller Pending JPS61235907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7650985A JPS61235907A (en) 1985-04-12 1985-04-12 Controlling method for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7650985A JPS61235907A (en) 1985-04-12 1985-04-12 Controlling method for programmable controller

Publications (1)

Publication Number Publication Date
JPS61235907A true JPS61235907A (en) 1986-10-21

Family

ID=13607220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7650985A Pending JPS61235907A (en) 1985-04-12 1985-04-12 Controlling method for programmable controller

Country Status (1)

Country Link
JP (1) JPS61235907A (en)

Similar Documents

Publication Publication Date Title
US3920965A (en) Method and apparatus for predictive control
JPH0348304A (en) High speed digital motion controller
US5025390A (en) Robotic workcell control system with a binary accelerator providing enhanced binary calculations
US11599081B2 (en) Method and apparatus for proxy execution and computation with an industrial controller
JPS61235907A (en) Controlling method for programmable controller
CN113067527A (en) Controller and control system adapted to perform motor control
JPH02161529A (en) Device for switching rule group
AU2016102107A4 (en) Robot control system
JPH01169605A (en) Program generating device
JPH02202604A (en) External part extending type programmable controller
JPS62102301A (en) Control method for programmable controller
Shshidhar A New Approach to Natural Language Programming For Process Control.
JPH01222301A (en) Real time inferential control system
JPH04338825A (en) Arithmetic processor
WO2014110749A1 (en) Robot control system and method thereof
JPH0552961B2 (en)
JPH07121226A (en) Robot controller
JPH02227703A (en) Programmable controller system
JPS61241806A (en) Positioning controller
JPH03109605A (en) Fuzzy sequence controller
JPH03182907A (en) Numerical controller of robot
JPS6170643A (en) Input and output arithmetic processing system of programmable controller
JPS62206601A (en) Servomotor controller
JPH0580940A (en) Dual system for auxiliary storage device
JPS61170803A (en) Sequence control method