JPS60683B2 - Sequence control device - Google Patents
Sequence control deviceInfo
- Publication number
- JPS60683B2 JPS60683B2 JP12034777A JP12034777A JPS60683B2 JP S60683 B2 JPS60683 B2 JP S60683B2 JP 12034777 A JP12034777 A JP 12034777A JP 12034777 A JP12034777 A JP 12034777A JP S60683 B2 JPS60683 B2 JP S60683B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- input
- flag
- process flag
- 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.)
- Expired
Links
- 238000000034 method Methods 0.000 claims description 79
- 230000008569 process Effects 0.000 claims description 79
- 230000008676 import Effects 0.000 claims 1
- 238000004148 unit process Methods 0.000 description 98
- 230000007704 transition Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 11
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 239000002131 composite material Substances 0.000 description 1
- 230000003292 diminished effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Landscapes
- Control By Computers (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】
本発明は汎用のシーケンス制御装置に関するものである
。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a general-purpose sequence control device.
工作機械等の被制御システムを所定の工程順序で動作さ
せるように制御するシーケンス制御装置として、所要の
制御内容を書込み得るようにしたプログラム記憶部を備
え、設計・製作の標準化を図り、また被制御体の仕様変
更及び工程順序の変更等に容易に対処し得るようにした
汎用シーケンス制御装置が近時多様化される趨勢にある
。As a sequence control device that controls a controlled system such as a machine tool to operate in a predetermined process order, it is equipped with a program storage section in which the necessary control contents can be written, and is designed to standardize design and manufacturing. 2. Description of the Related Art There is a recent trend toward diversification of general-purpose sequence control devices that can easily handle changes in the specifications of a control body, changes in process order, and the like.
この種の装置に対するプログラミングは、例えばコンタ
ソールに設けた設定キーの操作により所要プログラムを
プログラム記憶部に書込むようにして行われる。ところ
が従来の装置においてはこのようなプログラミングに際
してプログラムの設定の基とするためのりレー回路の設
計が必要とされた。す0なわち、一旦有援点又は無接点
のリレーを用いてなる回路を設計し、その回路図をシン
ボルキー化、プール代数化、コード化することによって
プログラムを得ることとしていた。従って汎用シーケン
ス制御装置それ自体の設計、製作は標準化ご夕れるもの
の、被制御システム固有のプログラム作成には、リレー
を主要構成部品とした旧来のシーケンス制御装置の設計
におけると同様に、リレー回路の設計作業を要求され、
前記標準化の利点が減殺されるという問題点があった。
また需要家において動作シーケンス、被制御体の仕様変
更を行うためにプログラムを書替える場合においても同
様にリレー回路の設計が必要とされ、装置の汎用性とい
う利点が十分に享受されないといううらみがあった。更
にプログラムの容量はリレー回路の設計終了後まで算出
不能であるので、シーケンス制御装置の仕様決定にも遅
滞を釆たすという問題点があった。本発明は斯かる事情
に鑑みてなされたものであって、被制御体の動作に従っ
てプログラミングし得る構成とすることにより、上述の
問題点を解消した汎用のシーケンス制御装置を提供する
ことを目的とする。Programming for this type of device is performed, for example, by operating a setting key provided on a console to write a required program into a program storage section. However, in the conventional device, it is necessary to design a relay circuit to use as a basis for program settings when performing such programming. In other words, a program was obtained by first designing a circuit using relays with assisted points or non-contact points, and converting the circuit diagram into symbol keys, pool algebras, and codes. Therefore, although the design and manufacture of general-purpose sequence control devices themselves can be standardized, creating programs specific to controlled systems requires the use of relay circuits, just as in the design of conventional sequence control devices that use relays as main components. Design work is required,
There is a problem in that the advantages of standardization are diminished.
In addition, when a consumer rewrites a program to change the operating sequence or specifications of a controlled object, a relay circuit must be designed in the same way, and there is a problem that the versatility of the device cannot be fully enjoyed. Ta. Furthermore, since the capacity of the program cannot be calculated until after the design of the relay circuit is completed, there is a problem in that there is also a delay in determining the specifications of the sequence control device. The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a general-purpose sequence control device that solves the above-mentioned problems by having a configuration that allows programming according to the operation of the controlled object. do.
以下にまず本発明の原理を説明する。First, the principle of the present invention will be explained below.
一般に順次制御における1ステップの工程(以下単位工
程という)は第1図に示すごとく単位工程nにおいて制
御すべき被制御体、すなわち被制御システムを構成する
モータ、電磁弁等に出力信号OUTを与えると、該出力
信号OUTに応答する入力信号IN、すなわち操作スイ
ッチ、リミットスイッチ又はタイマ等の信号が得られ、
これを演算した結果に基づいて単位工程nから次の単位
工程mへ歩心するようにしている。本発明はこのような
単位工程の組合わせにより順次制御が構成されているこ
とに着目してなされたものである。Generally, one step process in sequential control (hereinafter referred to as a unit process) gives an output signal OUT to the controlled object to be controlled in the unit process n, that is, the motor, solenoid valve, etc. that constitute the controlled system, as shown in Figure 1. Then, an input signal IN responsive to the output signal OUT, that is, a signal from an operation switch, a limit switch, a timer, etc., is obtained,
Based on the result of this calculation, the center step is taken from the unit process n to the next unit process m. The present invention has been made by focusing on the fact that sequential control is configured by a combination of such unit processes.
すなわち本発明に係るシーケンス制御装置は、実行中の
単位工程に対応して、該単位工程の状態を記憶する機能
を持たせた工程フラグ記憶手段(複数)にて構成した工
程フラグ記憶部を備え、プログラム記憶部より時分割で
謙出されたプログラムの中の工程フラグ番地の内容に対
応するフラグのセット、リセット状態をチェックし、そ
のフラグがセット状態にある場合にはそのフラグに対応
する単位工程(単数又は複数)の制御を行い、各単位工
程における最後には次の単位工程を指示する内容をプロ
グラムしておき、所望の単位工程への移行を自在に行え
るようにしたものである。以下種々の場合に分けて単位
工程間の移行について説明する。That is, the sequence control device according to the present invention includes a process flag storage unit configured with process flag storage means (a plurality) having a function of storing the state of the unit process corresponding to the unit process being executed. , Check the set/reset state of the flag corresponding to the contents of the process flag address in the program extracted from the program storage unit in a time-sharing manner, and if the flag is in the set state, set the unit corresponding to the flag. The process (single or plural) is controlled, and at the end of each unit process, the contents for instructing the next unit process are programmed, so that the transition to the desired unit process can be performed freely. The transition between unit processes will be explained below in various cases.
前述の第1図は単位工程の順次移行を示している。これ
に対して第2図は単位工程nから単位工程mへのジャン
プを示している。つまり単位工程nの最後において次単
位工程を指示する内容kをプログラムしてあり、単位工
程nに書かれた移行条件が成立すると工程フラグ記憶部
のkに該当するフラグをセットし、この結果単位工程k
のプログラムが実行されることになる。図示の如くk=
m(m>n+1)とプログラムしておく場合には、単位
工程mヘジャンプして移行するし、またk=n+1とプ
ログラムしておく場合は単位工程n十1へ歩進する。そ
して工程フラグ記憶部のnに該当するフラグはリセット
され、単位工程nの制御の実行は終了する。第3図乃至
第5図は上記した移行の変形例を示している。The above-mentioned FIG. 1 shows the sequential transition of unit processes. In contrast, FIG. 2 shows a jump from unit process n to unit process m. In other words, content k that instructs the next unit process is programmed at the end of unit process n, and when the transition condition written in unit process n is met, the corresponding flag is set in k in the process flag storage section, and as a result, the unit Process k
The program will be executed. As shown in the figure, k=
If m (m>n+1) is programmed, the process jumps to the unit process m, and if k=n+1 is programmed, the process advances to the unit process n11. Then, the flag corresponding to n in the process flag storage section is reset, and the control execution of unit process n is completed. 3 to 5 show variations of the above-described transition.
即ち第3図はk=m(m<n)の場合であり単位工程n
より前の単位工程mヘジャンプする。第4図は単位工程
nより単位工程m(m>n+1)へジャンプし、次には
単位工程m+1へ歩進させて単位工程n+1〜m−1を
切離す場合を示している。第5図は単位工程nより単位
工程m(m>n+1)へ移行させ、その後、単位工程m
〜m+Qを順次実行させた後、単位工程m+Qの最後に
単位工程k′=n+1をプログラムしておきこの単位工
程n十1へ戻る場合を示している。That is, FIG. 3 shows the case where k=m (m<n), and the unit process n
Jump to the previous unit process m. FIG. 4 shows a case where a jump is made from unit process n to unit process m (m>n+1), and then step is made to unit process m+1 to separate unit processes n+1 to m-1. Figure 5 shows a transition from unit process n to unit process m (m>n+1), and then unit process m
. . m+Q are sequentially executed, then the unit process k'=n+1 is programmed at the end of the unit process m+Q, and the process returns to the unit process n11.
これは単位工程nと単位工程n十1との間に単位工程m
〜m+Qを挿入することを意味している。このようなジ
ャンプの移行と全く同様にして、分岐制御又は並行制御
、これの反対の統合制御、更に判断制御が行われる。This is the unit process m between unit process n and unit process n11.
It means to insert ~m+Q. In exactly the same way as such a jump transition, branch control or parallel control, the opposite integrated control, and further judgment control are performed.
第10図は分岐制御又は並行制御を行わせる場合の工程
図である。FIG. 10 is a process diagram when performing branch control or parallel control.
単位工程nの最後における次の単位工程を指示する内容
kとしてn十1及びmの2つがプログラムされている。
このような場合には単位工程nの移行条件が成立すると
後述するように工程フラグ記憶部の単位工程n+1、m
の夫々に割付けたフラグが同時的にセットされ、単位工
程n+1及びmが並行制御(時分割制御による)される
ことになる。つまり単位工程nから単位工程n+1及び
mへの分岐制御が行われることになる。n+1、mのフ
ラグがセットされると同時に単位工程nに割付けてある
フラグがリセットされることは前述の場合と同様である
。第11図は上述のようにして分岐された制御を統合す
る場合の工程を示しており、単位工程n及びmの次単位
工程kとして共にn+1がプログラムされている。Two contents, n11 and m, are programmed as content k that instructs the next unit process at the end of unit process n.
In such a case, if the transition condition for unit process n is satisfied, unit processes n+1 and m in the process flag storage section will be
The flags assigned to each of them are set simultaneously, and unit processes n+1 and m are controlled in parallel (by time-sharing control). In other words, branch control is performed from unit process n to unit processes n+1 and m. As in the case described above, the flag assigned to unit process n is reset at the same time as the flags n+1 and m are set. FIG. 11 shows a process for integrating the control branched as described above, in which n+1 is programmed as the next unit process k of unit processes n and m.
従って単位工程n、mにおいて夫々の移行条件が成立す
るとこれらに対応するフラグがセットされ、また単位工
程n+1に対応するフラグがセットされて、ご.の単位
工程n十1に移行する。以上の分岐又は統合は基本的に
は前述のジャンプと同様であるが、次に示す判断制御は
これらと少し内容を異にする。Therefore, when the respective transition conditions are satisfied in unit processes n and m, the corresponding flags are set, and the flag corresponding to unit process n+1 is also set. The process moves to unit process n11. The above branching or merging is basically the same as the jump described above, but the decision control shown below is slightly different in content.
即ち第9図に示すように単位工程nにおける移行条件A
の成立、不成立により単位工程n+1又はmへ移行する
。具体的には単位工程nのプログラム中に、単位工程n
+1へ行く条件と、単位工程mへ行く条件とをプログラ
ムしておき、両条件のうち先に成立した条件の単位工程
へ移行させる。例えば移行条件Aが成立した(又は単位
工程n十1への移行条件が成立した)場合はそのフラグ
がセットされ、単位工程nのフラグがリセットされ、そ
の結果単位nから単位工程n+1への移行が行われるこ
とになり、単位工程mの制御は実行されない。このよう
に本発明の装置においては単位工程を歩造させ、切離し
及び挿入を含むジャンプを行わせ、分岐させ、統合し、
更に判断による単位工程の選択を行わせるように単位工
程を組合わせることができるのである。That is, as shown in FIG. 9, transition condition A in unit process n
The process moves to unit process n+1 or m depending on whether the expression is satisfied or not. Specifically, during the program of unit process n, unit process n
A condition for going to +1 and a condition for going to unit process m are programmed, and a transition is made to the unit process with the condition that is satisfied first of both conditions. For example, if transition condition A is satisfied (or the transition condition to unit process n11 is satisfied), that flag is set, the flag of unit process n is reset, and as a result, the transition from unit n to unit process n+1 is performed, and control of unit process m is not executed. In this way, in the apparatus of the present invention, unit processes are made to walk, perform jumps including separation and insertion, branch, integrate,
Furthermore, unit processes can be combined so that selection of unit processes is performed based on judgment.
一方、被制御体の動作についてみると、この動作は上記
した単位工程の組合せとして表現できるものであり、こ
れが本発明装置においては被制御体の動作にのみ注目し
て容易にプログラミグできる理由である。そしてこのよ
うな方式で行われるプログラミングの過程においては各
単位工程の動作を実現し得るリレー回路を想定する必要
は全くないのである。次に本発明をその実施例を示す図
面に基づいて具体的に説明する。On the other hand, when looking at the movement of the controlled object, this movement can be expressed as a combination of the above-mentioned unit processes, and this is why the device of the present invention can be easily programmed by focusing only on the movement of the controlled object. . In the programming process performed in this manner, there is no need to imagine a relay circuit that can realize the operation of each unit process. Next, the present invention will be specifically explained based on drawings showing embodiments thereof.
第6図は本発明装置の一実施例を示すブロック図である
。12はプログラムカウンタであって、発振器11から
出力されるクロック信号を計数する。FIG. 6 is a block diagram showing one embodiment of the device of the present invention. A program counter 12 counts the clock signal output from the oscillator 11.
13はリードオンリーメモリ形のプログラム記憶部であ
って、プログラムカウンタ12の計数内容をアドレス選
択信号として受け取り、アドレス選択信号に対応するア
ドレスの内容を零番地から最大番地まで順次議出し得る
ようにしている。Reference numeral 13 denotes a read-only memory type program storage section, which receives the counted contents of the program counter 12 as an address selection signal and can sequentially display the contents of the address corresponding to the address selection signal from the zero address to the maximum address. There is.
第7図はこのプログラム記憶部13に格納されたプログ
ラムの1語のフオーマツトを示しており「工程フラグ番
地部PFA、命令部ORD及び番地部ADRよりなる。
そして、この工程フラグ番地部PFAの内容は工程フラ
グ読出部14へ入力される。17は動作実行中の単位工
程を記憶する機能をもった複数個のフラグを有する工程
フラグ記憶部である。FIG. 7 shows the format of one word of the program stored in the program storage section 13, which is composed of a process flag address section PFA, an instruction section ORD, and an address section ADR.
The contents of this process flag address section PFA are input to the process flag reading section 14. Reference numeral 17 denotes a process flag storage unit having a plurality of flags and having a function of storing unit processes that are being executed.
即ち前記単位工程の夫々に割付けたフラグの夫々をセッ
トすることによって実行中の単位工程を記憶する。工程
フラグ謙出部14はプログラム記憶部13から読出した
工程フラグ番地部PFAの内容に対応するフラグが工程
フラグ記憶部17中に記憶されている場合、つまり動作
実行中の単位工程に係るプログラムが読出された場合は
制御部18及び演算部19へ所定信号を送る。また命令
部ORDの内容は命令デコーダ15に入力されて解読さ
れ、解読された命令は制御部18へ転送され、制御部1
8は工程フラグ読出部14からの前記信号を受けた場合
に該命令を番地部ADRのデータ又は工程フラグ番地部
PFAのデータを参照して実行する。第1表はこの装置
で用いる命令とその機能を一覧表にしたものである。第
1表
制御部18は解読されて転送されてきた命令が出力命令
OUTである場合は指定番地(被制御機器に対応づけて
ある)へ演算部19の演算結果を与えるべく入出力部2
0を制御する。That is, the unit process being executed is stored by setting each of the flags assigned to each of the unit processes. When the process flag storage unit 17 stores a flag corresponding to the content of the process flag address field PFA read from the program storage unit 13, the process flag extraction unit 14 detects that the program related to the unit process currently being executed is If read, a predetermined signal is sent to the control section 18 and calculation section 19. Further, the contents of the instruction section ORD are input to the instruction decoder 15 and decoded, and the decoded instructions are transferred to the control section 18.
When receiving the signal from the process flag reading section 14, 8 executes the instruction by referring to the data in the address part ADR or the data in the process flag address part PFA. Table 1 lists the commands used in this device and their functions. If the command that has been decoded and transferred is an output command OUT, the control unit 18 in Table 1 sends the calculation result of the calculation unit 19 to the specified address (corresponding to the controlled device) by sending it to the input/output unit 2.
Controls 0.
命令が入力命令INである場合は指定番地の入力を演算
部19へ謙込む。命令が論理演算命令である場合は指定
番地の入力又はプログラム記憶部13から工程フラグ論
出部14へ謙出された工程フラグと演算部19の内容と
の間で演算を行い、その結果を演算部19に記憶させる
。If the command is an input command IN, the input at the specified address is input to the calculation unit 19. If the instruction is a logical operation instruction, an operation is performed between the input at the specified address or the process flag exported from the program storage unit 13 to the process flag logic output unit 14 and the contents of the operation unit 19, and the result is calculated. 19.
演算部19はこのような演算、記憶を行うものである。
命令が工程書換命令であった場合は番地部ADRの内容
に従い、工程フラグ書襖部16に対して工程フラグ記憶
部17のフラグを書換える内容のデータを送る。上記工
程フラグ書換部16は工程フラグ記憶部17のフラグを
プログラム記憶部より読出された番地に書き換えるもの
であり、また上記出力部20は複数の入出力信号の中か
ら、プログラムで指定された番地の入力又は出力を選択
して出力結果をラッチし、また入力結果を取込むもので
ある。The calculation section 19 performs such calculations and storage.
If the command is a process rewriting command, data for rewriting the flag in the process flag storage unit 17 is sent to the process flag storage unit 16 according to the contents of the address field ADR. The process flag rewriting unit 16 rewrites the flag in the process flag storage unit 17 to an address read from the program storage unit, and the output unit 20 rewrites the flag in the process flag storage unit 17 to an address specified by the program from among a plurality of input/output signals. The input or output is selected, the output result is latched, and the input result is taken in.
而して上述のように構成された本発明装置のプログラム
に使用される基本命令は第1表に示したとおりであるが
、単位工程は通常第1表の命令語を数語〜数十語用いて
構成される。第8図は本発明装置に使用されるプログラ
ムの1例を示している。The basic commands used in the program of the apparatus of the present invention configured as described above are shown in Table 1, but a unit process usually consists of several to several tens of command words in Table 1. configured using FIG. 8 shows an example of a program used in the apparatus of the present invention.
まず単位工程0に示したSTARTSTEP命令は通常
プログラムの最初に書かれ、工程フラグ書換部16に指
令を与えて番地部ADRの内容に相当する工程フラグ記
憶部17中の工程フラグをセットされる。第8図のプロ
グラム例においては番地1、b、cの工程フラグをセッ
トし、これらの単位工程1、b、cが動作実行中のもの
であるとの記憶を行わせておくのである。そしてまたこ
のプログラム例においては最初から単位工程1、b、c
に分岐させたことになり、これらの3系列の並行制御が
行われることになる。このSTARTSTEP命令の結
果単位工程1、b、cが時分割制御をすることにより並
行して実行されていくことになり、プログラム番地3〜
7の工程フラグ番地1の部分が単位工程1に、またプロ
グラム番地v、v+1の部分が単位工程cに相当する。First, the STARTSTEP command shown in unit process 0 is normally written at the beginning of the program, and gives a command to the process flag rewriting unit 16 to set the process flag in the process flag storage unit 17 corresponding to the contents of the address field ADR. In the program example shown in FIG. 8, the process flags at addresses 1, b, and c are set to store that these unit processes 1, b, and c are currently in operation. In this example program, unit processes 1, b, and c are executed from the beginning.
This means that these three systems are controlled in parallel. As a result of this STARTSTEP command, unit processes 1, b, and c are executed in parallel by time-sharing control, and program addresses 3 to 3 are executed in parallel.
The part at process flag address 1 of 7 corresponds to unit process 1, and the part at program addresses v and v+1 corresponds to unit process c.
単位工程bについては第8図には示してし、ない。時分
割制御により単位工程1、b、cの並行制御が行われる
。Unit process b is not shown in FIG. Unit processes 1, b, and c are controlled in parallel by time division control.
工程フラグ番地1の中の最初のOUT命令は番地dに出
力する指令を入出力部2川こ与える。IN命令は入力e
を選択し、これを演算部19に謙込む指令を入出力部2
0及び演算部19に与える。The first OUT command in process flag address 1 gives a command to output to address d to input/output unit 2. IN command is input e
The input/output unit 2 sends a command to select and input it to the calculation unit 19.
0 and is given to the arithmetic unit 19.
AND命令は入力fを選択してこれを演算部19に諸込
ませ、上述のようにして読込まれた入力eとの論理積演
算を行わせる指令を入出力部20及び演算部19に与え
る。The AND instruction selects the input f, causes it to be loaded into the arithmetic unit 19, and gives a command to the input/output unit 20 and the arithmetic unit 19 to perform an AND operation with the input e read as described above.
なお演算部19はその演算結果を記憶しておく。OR命
令は入力gを選択して入出力部20に読込ませ、演算部
19において、すでに記憶されている前記AND命令に
よる演算結果との論理和演算を行わせる指令を入出力部
20及び演算部19に与え、この演算結果を同様に演算
部19に記憶させておく。Note that the calculation unit 19 stores the calculation result. The OR command selects the input g, reads it into the input/output unit 20, and sends a command to the input/output unit 20 and the calculation unit to cause the calculation unit 19 to perform a logical OR operation with the calculation result obtained by the AND command that has already been stored. 19, and the result of this calculation is similarly stored in the calculation unit 19.
STEP命令は単位工程中の演算命令の演算の結果、移
行条件が成立した場合に工程フラグ書換部16へ指令を
与え、番地部の内容に従ってフラグを書き換え、書き換
えられた単位工程へ移行させる。The STEP command issues a command to the process flag rewriting unit 16 when the transition condition is satisfied as a result of the calculation of the arithmetic command in the unit process, rewrites the flag according to the contents of the address part, and causes the process to proceed to the rewritten unit process.
すなわち第8図のプログラムの単位工程1においては入
力e,f,gの論理演算の結果、移行条件が成立した場
合は単位工程mへ移行する。以上の単位工程1のプログ
ラム例においては論理演算命令としてAND、OR等、
指定番地の入力を演算対象とするものが用いられていた
が、プログラム番地z〜z十3に示す単位工程aにおい
てはANDSTEP、ORSTEP等工程フラグを演算
対象として用いる命令が含まれている。即ちこの単位工
程aにおいては、入力jと工程フラグc+dとの論理積
演算を行っている。そしてこの論理積が成立した場合は
STEP命令により単位工程a+1へ歩進するのである
。次にプログラム番地v+2〜v十4の単位工程c+1
における命令R STEPについて説明すると、この命
令はプログラムで指定された工程フラグを工程フラグ書
換部16に指令を与えて強制的にリセットする。That is, in unit process 1 of the program shown in FIG. 8, if the transition condition is satisfied as a result of the logical operation of inputs e, f, and g, the process moves to unit process m. In the program example for unit process 1 above, logical operation instructions include AND, OR, etc.
Although an instruction in which the input at a specified address is used as an operation object has been used, the unit process a shown at program addresses z-z13 includes instructions that use process flags such as ANDSTEP and ORSTEP as an operation object. That is, in this unit process a, an AND operation is performed between the input j and the process flag c+d. If this logical product is established, the STEP command causes the step to proceed to the unit process a+1. Next, unit process c+1 at program addresses v+2 to v14
To explain the command R STEP, this command gives a command to the process flag rewriting unit 16 to forcibly reset the process flag specified by the program.
図示のプログラム例の場合には単位工程cにおいて入出
力部20にERG(非常停止信号)が入力されると工程
c十1へ移行し、ここにおいて工程フラグp、q、rを
リセットしてこの単位工程p、q、rの制御を停止させ
るようにしている。すなわち単位工程cはプログラム番
地2においてSTARTSTEP命令を書いたことによ
り分岐系列として常に入力ERGを監視していたことに
なる。その他プログラム例に示されなかった否定の命令
は第1表に示すようにAND NOT、ORNOT、A
NDNOTSTEP、ORNOTSTEPの如く、他の
論理演算命令と複合した命令として使用され、入力及び
工程フラグの信号を否定論理信号に変換して所定の演算
を行う。In the case of the illustrated program example, when an ERG (emergency stop signal) is input to the input/output unit 20 in unit process c, the process moves to process c11, where process flags p, q, and r are reset and this Control of unit processes p, q, and r is stopped. In other words, by writing the STARTSTEP instruction at program address 2, unit process c is constantly monitoring input ERG as a branch sequence. Other negation instructions not shown in the program example are AND NOT, ORNOT, A, as shown in Table 1.
It is used as a composite instruction with other logic operation instructions such as NDNOTSTEP and ORNOTSTEP, and performs a predetermined operation by converting input and process flag signals into negative logic signals.
またN STEP命令は第9図に示すように移行条件A
が不成立である場合に移行させるべき単位工程を指示す
るように用いられている。In addition, the N STEP command has transition condition A as shown in Figure 9.
It is used to instruct the unit process to be transferred when the is not satisfied.
即ち第9図の場合は単位工程nの最後の部分にN ST
EP m
STEP n+1
のプログラムが用意される。In other words, in the case of Fig. 9, N ST is applied to the last part of unit process n.
A program of EP m STEP n+1 is prepared.
このように本発明に係るシーケンス制御装置では単位工
程を歩進させ、切離し及び挿入を含むジャンプを行わせ
、分岐させ、統合し、更に判断による単位工程の選択を
行わせるように単位工程を粗合せることができるので被
制御システムを構成する被制御体夫々の動作を知ること
のみにより、該動作に従ってのプログラミングが可能と
なり、また工程変更のときにも、変更内容に対応するり
レー回路の設計を行うことなくプログラムの内容変更の
みで対処し得る。In this way, the sequence control device according to the present invention advances the unit process step by step, performs jumps including separation and insertion, branches, integrates, and further selects the unit process based on judgment. By simply knowing the operation of each controlled object that makes up the controlled system, it is possible to program according to the operation, and even when there are process changes, it is possible to design relay circuits that correspond to the changes. This problem can be dealt with simply by changing the contents of the program.
このため上記被制御体の動作を実現するためのリレー回
路をプログラミング作成の際に考慮することは全く不要
となり、プログラム作成作業が著しく容易となり、また
迅速に行える。更にプログラムの命令語の種類は従来多
用されているものに比して種類が少なくプログラミング
自体も容易である。Therefore, it is completely unnecessary to consider a relay circuit for realizing the operation of the controlled object when creating a program, making the work of creating a program extremely easy and quick. Furthermore, there are fewer types of program command words than those commonly used in the past, and programming itself is easy.
またプログラムの容量は被制御システムの動作仕様に基
づいて決定可能であるのでシーケンス制御装置の仕様決
定に遅滞を来たすことがない。このように本発明はシー
ケンス制御装置のプログラム作成を容易にし、また動作
シーケンス等の変更の際のプログラム変更を容易に行わ
せ得るという優れた効果を奏する。Furthermore, since the capacity of the program can be determined based on the operating specifications of the controlled system, there is no delay in determining the specifications of the sequence control device. As described above, the present invention has excellent effects in that it is easy to create a program for a sequence control device, and it is also possible to easily change the program when changing an operation sequence or the like.
第1図は順次制御における単位工程の移行の説明図、第
2図及び第3図は夫々本発明装置により単位工程nから
先及び前の単位工程mヘジャンプさせる場合の工程図、
第4図は本発明装置により単位工程の切離し変更を行う
場合の工程図、第5図は本発明装置により単位工程の挿
入変更を行う場合の工程図、第6図は本発明装置の要部
を略示するブロック図、第7図は本発明装置に使用され
るプログラム語のフオーマツト図、第8図は本発明装置
に使用されるプログラムの1例を示す図面、第9図は本
発明装置により、移行条件の成立、不成立に基づいて移
行を行わせる場合の工程図、第10図は本発明装置によ
り分岐制御又は並行制御を行わせる場合の工程図、第1
1図は同じく統合を行わせる場合の工程図である。
11…・・・発振器、12……プログラムカゥンタ、1
3・・・・・・プログラム記憶部、14・・・・・・工
程フラグ論出部、15・…・・命令デコーダ、16・・
・・・・工程フラグ書換部、17・・・・・・工程フラ
グ記憶部「 18・・・・・・制御部、19・・・・・
・演算部、20・・・・・・入出力部。
第1図
毅2図
孫3図
第4図
務5図
繋q図
祭 ー。
図弟’1図
努6図
鍵ヮ図
箱8図FIG. 1 is an explanatory diagram of the transition of a unit process in sequential control, and FIGS. 2 and 3 are process diagrams when jumping from a unit process n to the next and previous unit process m by the apparatus of the present invention, respectively.
Figure 4 is a process diagram when separating and changing a unit process using the apparatus of the present invention, Figure 5 is a process diagram when inserting and changing a unit process using the apparatus of the present invention, and Figure 6 is a main part of the apparatus of the present invention. 7 is a format diagram of a program word used in the device of the present invention, FIG. 8 is a drawing showing an example of a program used in the device of the present invention, and FIG. 9 is a diagram showing the program language used in the device of the present invention. FIG. 10 is a process diagram for performing branching control or parallel control using the device of the present invention.
Figure 1 is a process diagram for the same case where integration is performed. 11...Oscillator, 12...Program counter, 1
3...Program storage unit, 14...Process flag logic generating unit, 15...Instruction decoder, 16...
...Process flag rewriting unit, 17...Process flag storage unit 18...Control unit, 19...
- Arithmetic unit, 20... Input/output unit. Figure 1 Tsuyoshi 2 Figure Grandson 3 Figure 4 Works 5 Tsuna q Figure Festival -. Drawing brother'1 figure Tsutomu 6 figure key figure box 8 figure
Claims (1)
ログラム記憶部と、該プログラム記憶部の内容をサイク
リツクに読出させるプログラムカウンタと、動作実行中
の工程を記憶する機能を持つ複数個のフラグを有する工
程フラグ記憶部と、前記プログラム記憶部から読出され
た工程フラグ番地に対応する工程フラグ記憶部のフラグ
の状態を読出す工程フラグ読出部と、前記工程フラグ記
憶部のフラグをプログラム記憶部より読出された番地に
書換える工程フラグ書換部と、複数の入出力信号の中か
らプログラム記憶部より読出された番地に対応する入出
力信号を選択して、出力結果をラツチし、又は入力結果
を取込む入出力部と、プログラム記憶部から読出された
命令を解読する命令デコーダと、前記入出力部及び工程
フラグ読出部から入力される信号を前記命令デコーダに
よって解読された命令に基づいて論理演算する演算部と
、プログラム記憶部から読出されて解読された命令に従
って各部に指示を与える制御部とを具備し、該制御部は
前記命令が出力命令である場合は入出力部を制御し、ま
た演算命令である場合は入出力信号又は工程フラグ読出
部からの入力信号を演算部に与えてこれを制御し、更に
工程書換命令である場合は、工程フラグ書換部を制御し
て任意の工程へのジヤンプを可能とし、或いは、工程書
簡命令により複数個の工程フラグを記憶状態にする機能
を持たせ、複数個の工程の同時制御を可能としたことを
特徴とするシーケンス制御装置。1. A process having a program storage section that stores a plurality of process flag addresses, instructions, and addresses, a program counter that cyclically reads out the contents of the program storage section, and a plurality of flags that have the function of storing a process that is currently being executed. a flag storage unit; a process flag reading unit that reads the state of a flag in the process flag storage unit corresponding to the process flag address read from the program storage unit; and a process flag reading unit that reads the flag in the process flag storage unit from the program storage unit. The process flag rewriting unit rewrites the flag to the address read from the program storage unit, and selects the input/output signal corresponding to the address read from the program storage unit from among the multiple input/output signals, and latches the output result or imports the input result. an input/output section, an instruction decoder that decodes instructions read from the program storage section, and an operation that performs a logical operation on signals input from the input/output section and the process flag reading section based on the instructions decoded by the instruction decoder. and a control unit that gives instructions to each unit according to instructions read from the program storage unit and decoded, and the control unit controls the input/output unit when the instruction is an output instruction, and also controls the input/output unit when the instruction is an output instruction. If it is a process flag rewriting command, the input/output signal or input signal from the process flag reading unit is given to the calculation unit to control it, and if it is a process rewriting command, the process flag rewriting unit is controlled to jump to an arbitrary process. A sequence control device characterized in that it is capable of simultaneously controlling a plurality of processes by having a function of storing a plurality of process flags in response to a process letter command.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12034777A JPS60683B2 (en) | 1977-10-05 | 1977-10-05 | Sequence control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12034777A JPS60683B2 (en) | 1977-10-05 | 1977-10-05 | Sequence control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5453777A JPS5453777A (en) | 1979-04-27 |
| JPS60683B2 true JPS60683B2 (en) | 1985-01-09 |
Family
ID=14783977
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP12034777A Expired JPS60683B2 (en) | 1977-10-05 | 1977-10-05 | Sequence control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60683B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS56129906A (en) * | 1980-03-14 | 1981-10-12 | Komatsu Ltd | Control system for numerical controller |
| JPS5875212A (en) * | 1981-10-27 | 1983-05-06 | Idec Izumi Corp | Stepping arithmetic system of stage stepping type sequence controller |
| JPS60160439A (en) * | 1984-01-31 | 1985-08-22 | Nippon Electric Ind Co Ltd | Address deciding method for jump with no designation of destination |
| KR900005548B1 (en) * | 1984-10-17 | 1990-07-31 | 고오요오 덴시 고오교오 가부시기 가이샤 | Programmble controller |
-
1977
- 1977-10-05 JP JP12034777A patent/JPS60683B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5453777A (en) | 1979-04-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4058711A (en) | Asynchronous dual function multiprocessor machine control | |
| US4006464A (en) | Industrial process controller | |
| CA1085058A (en) | Jump structure for a digital control system | |
| JPS60262204A (en) | Programmable controller | |
| JPH0130161B2 (en) | ||
| JPS60683B2 (en) | Sequence control device | |
| JPS6122817B2 (en) | ||
| JPS592923B2 (en) | sequence programmer | |
| JPH046004B2 (en) | ||
| JP2539264B2 (en) | Sequence controller | |
| US4885691A (en) | Microcomputer applied control unit for use in a vehicle | |
| JP3413860B2 (en) | Debug method | |
| JPS6022764B2 (en) | Sequence control device | |
| JP2813277B2 (en) | Sequence control program creation method | |
| JPS58221405A (en) | Programmable controller | |
| JP2539265B2 (en) | Sequence controller | |
| JP2731166B2 (en) | Programmable controller | |
| JPH041806A (en) | Programmable controller | |
| JPS6144328B2 (en) | ||
| JPH0682284B2 (en) | Sequence controller | |
| JPH0564372B2 (en) | ||
| KR900005548B1 (en) | Programmble controller | |
| JPH0439083B2 (en) | ||
| JPH11167409A (en) | Programmable controller running on parallel execution language | |
| JPH0319570B2 (en) |