JPS61807A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPS61807A
JPS61807A JP12077584A JP12077584A JPS61807A JP S61807 A JPS61807 A JP S61807A JP 12077584 A JP12077584 A JP 12077584A JP 12077584 A JP12077584 A JP 12077584A JP S61807 A JPS61807 A JP S61807A
Authority
JP
Japan
Prior art keywords
input
turned
state
operand
operands
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.)
Granted
Application number
JP12077584A
Other languages
Japanese (ja)
Other versions
JP2506070B2 (en
Inventor
Kazuo Yano
矢野 和雄
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP59120775A priority Critical patent/JP2506070B2/en
Publication of JPS61807A publication Critical patent/JPS61807A/en
Application granted granted Critical
Publication of JP2506070B2 publication Critical patent/JP2506070B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/04Program 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/056Programming the PLC

Landscapes

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

Abstract

PURPOSE:To facilitate easy programming even with a complicated sequence including the branching, the queuing, etc. by delivering a state input instruction and a state shift instruction and controlling the shifts among plural control states by means of an input condition table. CONSTITUTION:When operands R1 and R2 of state input instructions 200 and 201 are turned on at a time, both operands are registered to an input condition register table together with an output turned on. When the external input conditions X1 is turned on under such conditions, the input signal of a state shift instruction 210 is turned on. As a result, an operand R3 is turned on with operands R1 and R2 turned off. The control state is shifted to the R3 from the R1 and R2. When the R3 is turned on, the operand R3 of a state input instruction 202 is registered to the input condition table. Then the output of the table is turned on together with the external input conditions X2 or X3 turned on respectively. Then the input signal of a state shift instruction 211 or 212 is turned on. Thus an operand R4 or R5 is turned on, and the control state is changed to the R4 or R5 from the R3.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は待合せや分岐などを含む複雑なシーケンスを容
易C=ニブログ2ムきる制御機能を備えたシーケンスコ
ントローラに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a sequence controller that has a control function that allows complicated sequences including waiting, branching, etc. to be easily completed.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

7−ケンスコントローラはシーケンス制御m 作を記述
するプログラムに従って制御処理を行なうものであシ、
そのプログラム言語としては第8図(:示すようなラダ
ーダイヤグラム方式が一般に用いられている。
7. The controller performs control processing according to a program that describes sequence control operations.
As a programming language, a ladder diagram method as shown in FIG. 8 is generally used.

ラダーダイヤグラムは例えば第8図C二本すようにA接
点1、B接点2、リレーコイル3を含む有接点回路に対
応して表示されるが、制御内容(=よっては第9図また
は第10図(−示すような状態遷移表示が分シ易い場合
がある。
For example, the ladder diagram is displayed corresponding to a contact circuit including the A contact 1, the B contact 2, and the relay coil 3 as shown in Fig. A state transition display like the one shown in the figure (-) may be easy to separate.

すなわち第9図は、状態10を制御動作の基点とし、条
件aの成立によって状態11へ移行し、同様に条性b 
+ C+・・・Xの成立によって順次状態12゜13・
・・、Nl=移行し、各状態(=対応してバルブの開閉
やモータの起動停止などの動作が行われ、さらに状態I
N=戻って上記の動作が繰返される。
In other words, in FIG. 9, state 10 is used as the base point of the control operation, and when condition a is satisfied, state 11 is reached, and similarly, when condition a is established, condition b is established.
+C+...When X is established, states 12゜13・
..., Nl=transition, each state (=corresponding operations such as opening/closing the valve and starting/stopping the motor are performed, and then the state I
N=Return and the above operation is repeated.

第10図は複数の制御動作が並行して進行するシ−ケン
スを示しており、この場合は状態加の後、条件aの成立
(=よって3つの状態21 、24 、271=分岐し
、さら(=それぞれの条件に応じて並行してシーケンス
が進行する。
FIG. 10 shows a sequence in which a plurality of control operations proceed in parallel, and in this case, after the state addition, condition a is established (=therefore, three states 21, 24, 271=branch, and further (=Sequences proceed in parallel according to each condition.

また状態5.29はそれぞれ状態乙と5または状態あと
あを待会せし、それぞれ条件eおよびgが成立したとき
進行する。
Further, states 5 and 29 wait for states B and 5 or state A, respectively, and proceed when conditions e and g are satisfied, respectively.

しかしながら従来のシーケンスコントローラのプログラ
ムは第8図に示すようなラダーダイヤグ矛 ラム方式を基準としているので、上記第9図のシーケン
スをプログラムするのは容易であるが第10図(=示す
ような分岐や待合せが複雑に人シ組んだ場合はプログラ
ムが困難である。
However, since conventional sequence controller programs are based on the ladder diagram contradictory system as shown in Figure 8, it is easy to program the sequence shown in Figure 9 above, but it is easy to program the sequence shown in Figure 10. Programming is difficult if the waiting list is complex and has a large group of people.

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

本発明はラダーダイヤグラム方式のシーケンスコントロ
ーラ(−おいて、分岐や待合せを含むシーケンスでも容
易ロブログラムできる制御機能を備えたシーケンスコン
トローラを提供することを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide a ladder diagram type sequence controller (-) that has a control function that allows easy programming of sequences including branching and waiting.

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

本発明は、ラダーダイヤグラムでプログラムされるシー
ケンスコントローラ(=おいて、入力条件を指定する複
数のオペランドを登録する入力条件登録テーブルと、オ
ペランドの状態を出力信号4二反映させると共にオペラ
ンドの状態がオンのときそのオペ2ンドを上記入力条件
登録テーブルに登録する状態入力命令と、ラダーダイヤ
グラムのプログラムによる条件判定結果がオン口なった
とき指定されたオペランドをセットすると共に上記入力
条件登録テーブル(=登録されているすべてのオペラン
ドをリセットする状態遷移命令を備え、これ(=よって
複数の制御状態間の状態遷移を制御し、待合せや分岐な
どを含む複雑なシーケンスでも容易(=プログラムでき
るよう(ニしたものである。
The present invention includes an input condition registration table that registers a plurality of operands specifying input conditions in a sequence controller programmed in a ladder diagram, and an output signal 42 that reflects the operand status and turns the operand status on. When the condition input command registers the second operand in the input condition registration table above, and when the condition judgment result by the ladder diagram program is ON, the specified operand is set and the input condition registration table (= registration It is equipped with a state transition instruction that resets all operands in the control state. It is something.

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

本発明の一実施例を第1図(=示す。 An embodiment of the present invention is shown in FIG.

第1図(−おいて、ボックス200〜202はそれぞれ
シーケンスコントローラノ内部コイルR1〜R3をオペ
ランドとして持つ状態入力命令、ボックス210〜21
2はそれぞれ内部コイルR3〜R5をオペランドとして
持つ状態遷移命令、接点信号X1〜X3は状態の遷移条
件を決める外部入力条件でsb、第1図はシーケンスプ
ログラムをラダーダイヤグラムで示している。
In FIG. 1, boxes 200 to 202 are state input commands each having internal coils R1 to R3 of the sequence controller as operands, and boxes 210 to 21
2 is a state transition command each having internal coils R3 to R5 as operands, contact signals X1 to X3 are external input conditions sb for determining state transition conditions, and FIG. 1 shows a sequence program in the form of a ladder diagram.

第2図は第1図のプログラムを状態遷移形式で示したも
のであシ、R1、R2を待ち合せて外部入力条件X1で
R3へ移行し、それぞれ外部入力条件X2 、 X3で
R4、R5に分岐することを示してお]、第1図のラダ
ーダイヤグラムと全く同じシーケンスを表現している。
Figure 2 shows the program in Figure 1 in a state transition format. It waits for R1 and R2, moves to R3 under external input condition X1, and branches to R4 and R5 under external input conditions X2 and X3, respectively. ], which represents exactly the same sequence as the ladder diagram in Figure 1.

第3図は第1図1=おける状態入力命令200〜202
および状態遷移命令210〜212のワード構成を示す
もので、命令機能コード301と制御状態のアドレスを
示すオペランド302から構成されている。
FIG. 3 shows status input commands 200 to 202 in FIG.
and shows the word structure of the state transition instructions 210 to 212, which are composed of an instruction function code 301 and an operand 302 indicating the address of the control state.

シーケンスコントローラのCPUは上記命令を解読して
命令を実行する。
The CPU of the sequence controller decodes the above instruction and executes the instruction.

第4図はシーケンスコントローラのメモリ上に設けられ
た入力条件登録テーブルであシ、状態入力命令を実行す
るとき、生きている制御状態に対応するオペランドのア
ドレスが登録される。
FIG. 4 is an input condition registration table provided on the memory of the sequence controller. When a state input command is executed, addresses of operands corresponding to active control states are registered.

上記入力条件登録テーブル311の先頭の筋312は登
録のための制御フラッグでちゃ、状態入力命令実行時オ
ン、状態遷移命令実行時オフとなる。
The line 312 at the top of the input condition registration table 311 is a control flag for registration, which is turned on when a state input command is executed and turned off when a state transition command is executed.

次のCNT313はCNTの後(一つづく入力条件登録
部314(=登録されたオペランドの数を保持するカウ
ンタであシ、登録は上から順)二行われる。
The next CNT 313 is performed after the CNT (one by one input condition registration unit 314 (=a counter that holds the number of registered operands; registration is performed in order from the top).

第5図は状態入力命令なCPUが解読実行する制御機能
を示すフローチャートであシ、第1図の状態入力命令2
01を例にとると、先ずボックス左側の入力信号がオフ
のときは右側の出力信号をオフ(=する。
FIG. 5 is a flowchart showing the control function that the CPU decodes and executes as a state input command.
Taking 01 as an example, first, when the input signal on the left side of the box is off, the output signal on the right side is turned off.

左側の入力信号およびFLGがオンであ!り (FLG
がオフのときはこれをオンにすると共にCNTを0にす
る)、命令のオペランド(ここではR2)がオンであれ
ば、第4図の入力条件登録テーブル(ニオペランドのア
ドレスを登録しCNTを1ふやすと共に出力信号をオン
C二する。
The left input signal and FLG are on! ri (FLG
is off, turn it on and set CNT to 0), and if the operand of the instruction (R2 in this case) is on, register the address of the operand in the input condition registration table in Figure 4 (register the address of the operand and set CNT to 0). 1 and turn on the output signal C2.

オペランドがオフであれば出力信号をオフにする。If the operand is off, turn off the output signal.

第6図は状態遷移命令をCPUが解読実行する制御機能
を示すフローチャートであシ、第1図の状態遷移命令2
10を例(=とると、先ずFLGをオフにし、ボックス
の左側の入力信号がオンでちれば、命令のオペランド 
(ここではR3)をオン(ユすると共に、CNTの内容
が0でなければ(この場合入力信号がオンであればR1
、R2は必ずオンであり、従ってCNTは2となってい
る)入力条件登録テーブルに登録されているオペランド
(ここではR1゜R2)をオフ(ニすると共にCNTを
0にする。
FIG. 6 is a flowchart showing the control function for the CPU to decode and execute the state transition instruction.
For example, if we take 10 (=), first turn off FLG, and if the input signal on the left side of the box turns on, the operand of the instruction
(Here, R3) is turned on, and if the content of CNT is not 0 (in this case, if the input signal is on, R1
, R2 are always on, so CNT is 2).

入力信号がオフであれば、上記の動作は行わず、制御フ
ラグをオフにするだけである。
If the input signal is off, the above operation is not performed and the control flag is simply turned off.

上記の制御機能を用いると、第1図のプログラムは下記
のように実行される。
Using the above control functions, the program of FIG. 1 is executed as follows.

第1図(=おいて、状態入力命令200 、201のオ
ペランドR1、R2が共(ニオンになると第5図の手順
によってオペランドR1、R2を入力条件登録テーブル
イニ登録すると共(−出力をオン(ニする。
When the operands R1 and R2 of the state input instructions 200 and 201 are both ((=) in FIG. 1, the operands R1 and R2 are registered in the input condition registration table according to the procedure shown in FIG. d.

この状態で外部入力条件XIがオンになると、状態遷移
命令210はその入力信号がオンになるので第6図の手
順ニ従ってオペランドR3がオンとな9、同時に入力条
件登録テーブルに登録されているオペランドR1、R2
がオフ(ニされ、これζ二よって制御状態がR1、R2
からR3へ移行する。
When the external input condition XI turns on in this state, the input signal of the state transition instruction 210 turns on, so according to the procedure shown in FIG. 6, the operand R3 turns on and is simultaneously registered in the input condition registration table. Operand R1, R2
is turned off, and the control states are R1 and R2 due to this ζ2.
to R3.

R1、R2が1つでもオフになっていると状態遷移命令
2100入力信号はオフであ)、従って制御状態の移行
は起らない。
If even one of R1 and R2 is off, the state transition command 2100 input signal is off), and therefore no control state transition occurs.

R3がオンになると、R3をオペランドとする状態入力
命令202のオペランドR3が入力条件登録テーブル(
−登録されて、その出力がオンとなシ、外部入力条件X
2またはx3がオン(=なると、状態遷移命令211ま
たは212の入力信号がオン(ニなってオペ2ンドR4
またはR5がオンとなり、制御状態がR3からR4また
はR5へ移行する。
When R3 is turned on, the operand R3 of the status input instruction 202 that uses R3 as an operand is input to the input condition registration table (
- If it is registered and its output is on, external input condition
2 or x3 turns on (=, the input signal of the state transition instruction 211 or 212 turns on (turns on, and the operation 2
Alternatively, R5 is turned on and the control state shifts from R3 to R4 or R5.

以上の制御動作によって第1図のプログラムが実行され
る。
The program shown in FIG. 1 is executed by the above control operations.

第7図は本発明を用いた他のプログラムの一例を示すも
のであり、回路1では、状態R1、R2の待ち合せでな
く、何れか一方の状態がそれぞれ接点信号XI 、 X
2を条件として状態R3へ移行し、回路2では状態R3
がオンのとき接点X3を条件として状態R4,R5,R
i二同時に移行する。
FIG. 7 shows an example of another program using the present invention. In circuit 1, instead of waiting for states R1 and R2, one of the states is the contact signal XI, X, respectively.
2 to state R3, and in circuit 2, state R3
is on, states R4, R5, R with contact X3 as the condition.
i Two transitions at the same time.

また回路3では状態R4、R5が相互の接点を互(ニイ
ンタロック条件として状MR7へ移行するが、これは第
1図の回路1における状態入力命令200゜201の待
合せ機能と等価のシーケンスが別の表現形式でプログラ
ムできることを示している。
In addition, in circuit 3, states R4 and R5 switch their contacts to state MR7 as an interlock condition. It shows that it can be programmed in another representation format.

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

以上説明したように本発明C二よれは、状態入力命令お
よび状態遷移命令を設け、入力条件テーブルを用いて複
数制御状態間の遷移を制御し、これによって単純な固定
順序の推移シーケンスは勿論、待合せ1分岐、同時並列
進行などを含む複雑なシーケンスでも容易にプログラム
できる合理的なシーケンスコントローラが実現できる。
As explained above, the second aspect of the present invention is to provide a state input command and a state transition command, and use an input condition table to control the transition between multiple control states. It is possible to realize a rational sequence controller that can be easily programmed even for complex sequences including one waiting branch, simultaneous parallel progress, etc.

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

第1図は本発明の一実施例を示すプログラム図、第2図
は第1図のプログラムと等価な状態遷移図、第3図は本
発明における命令暗のワード構成な示す図、第4図は不
発明に用いられる入力条件登録テーブルの一例を示す図
、第5図および第6図はそれぞれ本発明における状態入
力命令および状態遷移命令の実行手順を示すフローチャ
ート、第7図は本発明の他の実施例を示すプログラム図
、第8図は従来のシーケンスコントロー2のプログラム
の一例を示す図、第9図およ°び第10図はそれぞれ各
種シーケンスを状態遷移で示す図である。 200〜204   状態入力命令 210〜214   状態遷移命令 300      命令語 311      人力条件登録テーブルX1〜X3 
   接点入力信号 (8733)代理人 弁理士 猪 股 祥 晃(ほか1
名)第 1 図 第  2  図 第3図 第  4 図 丁 第  5  図 第  6  図 第7図 第  8  図
FIG. 1 is a program diagram showing an embodiment of the present invention, FIG. 2 is a state transition diagram equivalent to the program in FIG. 1, FIG. 3 is a diagram showing the implicit word structure of the instructions in the present invention, and FIG. is a diagram showing an example of an input condition registration table used in the present invention, FIGS. 5 and 6 are flowcharts respectively showing the execution procedure of the state input command and state transition command in the present invention, and FIG. 7 is a diagram showing an example of the input condition registration table used in the present invention. FIG. 8 is a diagram showing an example of a program of the conventional sequence controller 2, and FIGS. 9 and 10 are diagrams each showing various sequences in terms of state transitions. 200-204 State input commands 210-214 State transition commands 300 Command words 311 Human power condition registration tables X1-X3
Contact input signal (8733) Agent: Yoshiaki Inomata, patent attorney (and 1 others)
Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8

Claims (1)

【特許請求の範囲】[Claims] ラダーダイヤグラムでプログラムされるシーケンスコン
トローラにおいて、入力条件を指定する複数のオペラン
ドを登録する入力条件登録テーブルと、オペランドの状
態を出力信号に反映させると共にオペランドの状態がオ
ンのときそのオペランドを上記入力条件登録テーブルに
登録する状態入力命令と、ラダーダイヤグラムのプログ
ラムによる条件判定結果がオンになつたとき指定された
オペランドをセットすると共に上記入力条件登録テーブ
ルに登録されているすべてのオペランドをリセットする
状態遷移命令を備え、これによつて複数の制御状態間の
状態遷移を制御することを特徴とするシーケンスコント
ローラ。
In a sequence controller programmed using a ladder diagram, there is an input condition registration table that registers multiple operands that specify input conditions, and an input condition registration table that reflects the operand status in the output signal and when the operand status is on, the operand is set to the above input condition. A state input command registered in the registration table and a state transition that sets the specified operand when the condition judgment result by the ladder diagram program turns on and resets all operands registered in the input condition registration table above. 1. A sequence controller comprising instructions for controlling state transition between a plurality of control states.
JP59120775A 1984-06-14 1984-06-14 Sequence controller Expired - Lifetime JP2506070B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59120775A JP2506070B2 (en) 1984-06-14 1984-06-14 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59120775A JP2506070B2 (en) 1984-06-14 1984-06-14 Sequence controller

Publications (2)

Publication Number Publication Date
JPS61807A true JPS61807A (en) 1986-01-06
JP2506070B2 JP2506070B2 (en) 1996-06-12

Family

ID=14794694

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59120775A Expired - Lifetime JP2506070B2 (en) 1984-06-14 1984-06-14 Sequence controller

Country Status (1)

Country Link
JP (1) JP2506070B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10518526B2 (en) 2012-03-05 2019-12-31 Landa Corporation Ltd. Apparatus and method for control or monitoring a printing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5894006A (en) * 1981-11-30 1983-06-04 Toyota Motor Corp Programming method of programmable sequence controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5894006A (en) * 1981-11-30 1983-06-04 Toyota Motor Corp Programming method of programmable sequence controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10518526B2 (en) 2012-03-05 2019-12-31 Landa Corporation Ltd. Apparatus and method for control or monitoring a printing system

Also Published As

Publication number Publication date
JP2506070B2 (en) 1996-06-12

Similar Documents

Publication Publication Date Title
JP2009526300A (en) Instruction set for microprocessors
JPS61807A (en) Sequence controller
EP0811922A1 (en) Peripheral device control
JPH03150633A (en) Instruction decoder
JPS6149209A (en) Program execution system of numerical controller
JPS6339928B2 (en)
JPS6091404A (en) Industrial robbot
JPS59218569A (en) micro computer
JPS58142464A (en) microprocessor
JPS6379144A (en) Microprocessor
KR950006585B1 (en) Micro program control apparatus and control method thereof
JPH05298088A (en) Microcomputer
JPH0731527B2 (en) Programmable controller
JPH02137028A (en) Instruction control system
JPS63280333A (en) Microprogram controller
JPS60254344A (en) Assigning method of memory address
JPS6049935B2 (en) Microprogram control method
JP2985244B2 (en) Information processing device
JP3208789B2 (en) Information processing device
JPS61221844A (en) Microcomputer
JPS61272829A (en) Microprogram controller
JPH02108106A (en) Numerical controller
JPS63223923A (en) program counter circuit
JPH04232536A (en) Diagnostic control system
JPH0269826A (en) System for controlling instruction with condition

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term