JPH021001A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH021001A
JPH021001A JP14215988A JP14215988A JPH021001A JP H021001 A JPH021001 A JP H021001A JP 14215988 A JP14215988 A JP 14215988A JP 14215988 A JP14215988 A JP 14215988A JP H021001 A JPH021001 A JP H021001A
Authority
JP
Japan
Prior art keywords
memory
contact
address
processing
logic
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
JP14215988A
Other languages
Japanese (ja)
Other versions
JP2692141B2 (en
Inventor
Hiroto Miyazaki
浩人 宮崎
Akio Hirahata
平畑 秋穂
Toshihiro Ide
井手 利弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP14215988A priority Critical patent/JP2692141B2/en
Publication of JPH021001A publication Critical patent/JPH021001A/en
Application granted granted Critical
Publication of JP2692141B2 publication Critical patent/JP2692141B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To execute sequence with steps whose number is equal to the number of contacts by providing a sequence executing part which processes instructions translated to five kinds of code of a ladder circuit, an OR address code, and a contact address by a compiler. CONSTITUTION:When code (st) is added, preceding contents of a line memory 10 are inputted to the OR address in the left of the contact in a memory 11 before the processing of the contact, and AND between preceding contents of the memory 10 and the logic of the contact is operated and the result is inputted to the memory 10. When code (end) is added, AND between preceding contents of the memory 10 and the logic of the contact is operated and the result is inputted to the memory 10, and OR between the logic of the memory 10 and the logic in the OR address in the right of the contact in the memory 12 is operated and the result is inputted to the same address of the memory 12.

Description

【発明の詳細な説明】[Detailed description of the invention]

産業上の利用分野 本発明はシーケンスプログラム(ラダー回路)の処理を
行うシーケンス制御装置に関する。 従来の技術 第1図は本発明の説明と従来の技術を説明するためのラ
ダー回路例である。第2図は従来の技術において、第1
図のラダー回路を実行する処理の形態を示している。 従来のシーケンス制御装置は、第1図のラダー回路にお
いて、第2図のような処理の形態をとシ−ケンスプログ
ラム(ラダー回路)の処理を行っている。 すなわち、シーケンスプログラム(ラダー回路〕内にO
R回路が存在する場合、回路を第1図の点線1〜8で示
したように一つの回路を多数のブロックに分け、ブロッ
クを−まとまりとして扱い、ブロック内で接点をAND
−ORを行い、そしてそれらのブロックをさらにAND
−ORすることでシーケンスプログラム(ラダー回路)
全体の処理を行っている。 発明が解決しようとする課題 しかし、以上のような処理形態では、シーケンスプログ
ラム(ラダー回路)をブロックとして分けて考えている
ため、1接点1ステップだけでなく、どうしても第2図
の9で示されるような処理が必要となり、高速性を要求
されるシーケンス制御において処理速度を落とす要因の
1つとなつている。 また、この処理形態では、ブロック1つに対し1つのメ
モリを持つ構成をとり、処理を行っていたため、シーケ
ンスプログラム(ラダー回路)内にOR回路が複雑に多
数出てくると、その分メモリをシーケンス制御装置に持
って置かなければならない。また、そのメモリの数はシ
ーケンス制御装置によって制限があるため、OR回路を
組む数には、シーケンス制御装置毎にハードウェアの堺
成上からくる制限があった。 そこで、本発明はラダー図の1接点を1ステツプで、す
なわちラダー回路で使用される接点数と同数のステップ
数で行い、かつOR回路をシーケンス制御装置に依存せ
ずに無制限に組み込むことの出来るようにするものであ
る。 課題を解決するための手段 上記の問題点を解決するために、5種類の接点と、OR
回路に共通のORアドレスと、6種類の接点を翻訳する
コンパイラと、前記のORアドレス毎のメモリと、コー
ド化された命令を処理するシーケンス実行部という構成
を備えたものである1゜作用 上記した構成による作用は、次のようなものである。 シーケンスプログラム(ラダー回路)において、コンパ
イラによりラダー回路を5種類のコードと、ORアドレ
スコードと、接点アドレスに翻訳された命令を処理する
シーケンス実行部は、OR命令処理においてもORアド
レス毎のメモリから処理前の情報を読みだし接点数と同
数のステップで実行できることとなる。 またORアドレス毎のメモリは全回路において共通であ
りOR回路の数の制限をなくすことができる。 実施例 次に、第3図に示す本発明の実施例装置ブロック図と第
1図に示すサンプルシーケンスプログラム(ラダー回路
)について本発明の詳細な説明する。 第3図のメモリ10は、シーケンスプログラム(ラダー
回路)内における1回路(ラダー回路図における左右の
母線の間で縦に閉じた最小の回路)において、現在処理
を行っている接点の前までの回路の論理を示している。 メモリ11は、ある接点の処理を行う前にそこまでの論
理をORアドレス毎に記憶しておくためのメモリである
。またメモリ12は、ある接点の処理を行った後にそこ
までの論理をORアドレス毎に記憶しておくためのメモ
リである。また第4図は、第1図のシーケンスプログラ
ム(ラダー回路)を本発明のシーケンス制御装置で処理
を行う場合の処理形態である。 第6図はラダー回路図におけるOFtアドレスを示して
いる。第6図は6種類のコードを示している。また第7
図は本発明を用いたシーケンス制御装置の処理の流れを
示している。 まず、第1図のようなシーケンスプログラム(ラダー回
路)を本発明のシーケンス制御装置で処理すると、第4
図のような処理順序となり、また第4図内の13の付加
コードのような3種類で6つの組合せの考えられるコー
ドを用いて処理を行う。 tiクシ−ンスプログラム(ラダー回路)内の各接点が
、どのORアドレスに接続されているかを処理を行う前
に、第6図の14で示すように付加し、シーケンス実行
部はORアドレスコードを解読して処理を行う。 処理順序は、第1図のようなシーケンスプログラム(ラ
ダー回路)において、左上から右方向に付けることを基
準にし、左上より処理順序の番号を付は始め、交点(T
、+、汁)に来るとその交点より下の線が、lや」や十
の形をした交点を持っていると、−打丁の線に移り同様
に捜査を繰り返すことにより1回路内の処理順序を決定
する。 付加コード(st、θld、ob)は、以下に示すよう
な接点に付けられる。 at   シーケンスプログラム(ラダー回路)を実際
のリレー回路に当てはめて、そ の接点の前で電流の分岐が始まる接点 に付く。 end  シーケンスプログラム(ラダー回路)を実際
のリレー回路に当てはめて、そ の接点の後ろの接点に電流が流れ込ん でくる接点に付く。 ob   OR回路ブロックの終了する接点に付く。 以上のように構成されたシーケンス制御装置において、
本発明の動作は次のようになる。 −回路の始まりにおいては、第3図のメモリ10には論
理が成立している方のビット〔1〕が入っている。また
メモリ12には、論理が不成立のビット〔o〕が入って
いるものとする。 付加コードが何も付いていない場合の処理方法は、前回
までのラインメモリ1oと、その接点の論理とのAND
Qとってメモリ1oに入力する。 (st)のコードの付いている場合の処理は、その接点
の処理を行う前に前回までのラインメモリ1oをメモ!
J11iCおいてその接点の左のORアドレスのところ
へ入力し、その後前回までのラインメモリ1oと、その
接点の論理とのANDをとってメモリ1oに入力する。 (end)のコードの付いている場合の処理は、まず前
回までのラインメモリ1oと、その接点の論理とのムN
Diとってメモリ10に入力し、その後メモリ10の論
理とメモリ12においてその接点の右のORアドレスの
ところの論理のORをとってメモリ12の同じところに
入力する。また、このコードが付加された接点の次の接
点の処理は。 まずメモリ11においてその接点の左のORアドレスの
ところの論理をメモリ1oに入力し、その後その接点に
付加されたコードに従い処理を行う。 (ob)のコードの付いている場合の処理は、まず前回
までのラインメモリ10と、その接点の論理とのAND
をとってメモリ1oに入力し、その後メモリ10の論理
とメモリ12においてその接点の右のORアドレスのと
ころの論理のORiとってメモリ10に入力する。また
その後、メモリ12においてその接点の右のORアドレ
スのところに論理不成立
INDUSTRIAL APPLICATION FIELD The present invention relates to a sequence control device that processes a sequence program (ladder circuit). BACKGROUND OF THE INVENTION FIG. 1 is an example of a ladder circuit for explaining the present invention and the prior art. Figure 2 shows that in the conventional technology, the first
It shows a form of processing for executing the ladder circuit shown in the figure. A conventional sequence control device processes a sequence program (ladder circuit) in the ladder circuit shown in FIG. 1 in the form of processing shown in FIG. 2. In other words, O in the sequence program (ladder circuit)
If an R circuit exists, one circuit is divided into many blocks as shown by dotted lines 1 to 8 in Figure 1, the blocks are treated as a group, and the contacts within the blocks are ANDed.
-OR and then AND those blocks again
-Sequence program (ladder circuit) by ORing
The entire process is being carried out. Problems to be Solved by the Invention However, in the above processing format, the sequence program (ladder circuit) is considered divided into blocks, so not only one contact and one step, but also the processing shown by 9 in Fig. 2 is inevitable. This is one of the factors that slows down the processing speed in sequence control that requires high speed. In addition, in this processing mode, each block has one memory for processing, so if a large number of complex OR circuits appear in the sequence program (ladder circuit), the memory will be reduced accordingly. Must be placed in the sequence controller. Further, since the number of memories is limited depending on the sequence control device, the number of OR circuits to be constructed is limited due to the hardware configuration of each sequence control device. Therefore, the present invention makes it possible to perform one contact in a ladder diagram in one step, that is, in the same number of steps as the number of contacts used in the ladder circuit, and to incorporate an unlimited number of OR circuits without depending on the sequence control device. It is intended to do so. Means to solve the problem In order to solve the above problems, we have developed five types of contact points and OR
It is equipped with a configuration including an OR address common to the circuit, a compiler that translates six types of contacts, a memory for each OR address, and a sequence execution unit that processes coded instructions. The effects of this configuration are as follows. In a sequence program (ladder circuit), the sequence execution unit that processes instructions translated into 5 types of codes, OR address codes, and contact addresses by the compiler converts the ladder circuit from memory for each OR address even in OR instruction processing. This means that the information before processing can be read out and executed in the same number of steps as the number of contacts. Furthermore, the memory for each OR address is common to all circuits, so there is no limit to the number of OR circuits. Embodiment Next, the present invention will be explained in detail with reference to the block diagram of an embodiment of the present invention shown in FIG. 3 and the sample sequence program (ladder circuit) shown in FIG. The memory 10 in Fig. 3 stores information up to the contact point currently being processed in one circuit (the smallest vertically closed circuit between the left and right busbars in the ladder circuit diagram) in a sequence program (ladder circuit). It shows the logic of the circuit. The memory 11 is a memory for storing the logic up to that point for each OR address before processing a certain contact point. The memory 12 is a memory for storing the logic up to that point for each OR address after processing a certain contact point. Further, FIG. 4 shows a processing form when the sequence program (ladder circuit) of FIG. 1 is processed by the sequence control device of the present invention. FIG. 6 shows OFt addresses in the ladder circuit diagram. FIG. 6 shows six types of codes. Also the 7th
The figure shows the flow of processing of a sequence control device using the present invention. First, when a sequence program (ladder circuit) as shown in FIG. 1 is processed by the sequence control device of the present invention, the fourth
The processing order is as shown in the figure, and the processing is performed using three types of codes, such as the 13 additional codes in Fig. 4, with six possible combinations. Before processing, which OR address each contact in the sequence program (ladder circuit) is connected to is added as shown at 14 in Figure 6, and the sequence execution unit writes the OR address code. Decipher and process. The processing order is based on the sequence program (ladder circuit) shown in Figure 1, where numbers are assigned from the top left to the right, and the processing order numbers start from the top left, starting at the intersection (T
, +, juice), if the line below that intersection has an intersection in the shape of an l, '' or 10, move to the line of - and repeat the search in the same way to find the area within one circuit. Determine processing order. Additional codes (st, θld, ob) are attached to the contacts as shown below. At Apply the sequence program (ladder circuit) to the actual relay circuit, and attach it to the contact point where the current branch begins before that contact point. end Apply the sequence program (ladder circuit) to the actual relay circuit, and attach it to the contact where the current flows into the contact after that contact. ob Attached to the ending contact of the OR circuit block. In the sequence control device configured as above,
The operation of the present invention is as follows. - At the beginning of the circuit, the memory 10 in FIG. 3 contains the bit [1] whose logic is established. It is also assumed that the memory 12 contains a bit [o] whose logic is not established. If no additional code is attached, the processing method is to AND the previous line memory 1o and the logic of its contact.
Take Q and input into memory 1o. If the code (st) is attached, make a note of the previous line memory 1o before processing that contact.
J11iC, it is input to the left OR address of that contact, and then the previous line memory 1o and the logic of that contact are ANDed and input to the memory 1o. When the (end) code is attached, the process begins with the difference between the previous line memory 1o and the logic of its contacts.
Di is taken and inputted to the memory 10, and then the logic of the memory 10 is ORed with the logic at the right OR address of the contact in the memory 12, and the result is inputted to the same location in the memory 12. Also, what is the process for the next contact after the one to which this code is attached? First, the logic at the left OR address of that contact in the memory 11 is input to the memory 1o, and then processing is performed according to the code added to that contact. If the code (ob) is attached, the process is to first perform an AND operation between the previous line memory 10 and the logic of its contacts.
Then, the logic of the memory 10 and the logic at the right OR address of the contact in the memory 12 are ORi, and the result is input to the memory 10. After that, in the memory 12, there is a logic failure at the OR address to the right of that contact.

〔0〕を入力する。 以上のような動作を、上記した処理順序で行うことによ
り最終的に出力を処理する時に、メモリ1o内に入って
いる論理が出力となる。 以上のように、シーケンスプログラム(ラダー回路)に
おいて、コンパイラによりラダー回路を6種類のコード
と、ORアドレスコードと、接点アドレスに翻訳された
命令を処理するシーケンス実行部はOFt命令処理にお
いてもORアドレス毎のメモリから処理前の情報を読み
だし接点数と同数のステップで実行できることとなる。 またORアドレス毎のメモリは前回路において共通であ
りOR回路の数の制限をなくすことができる。 発明の効果 以上のように、シーケンスプログラム(ラダー回路図)
の処理において、ラダー回路内の接点の処理を行う前と
後の状態を記憶するために、ラダー回路の接点間の縦方
向にORアドレスを付加し、そのORアドレス毎にメモ
リを2種類持ち、かつ接点ごとに5種類のコードを付加
することにより、ラダー回路の接点数と同数のステップ
で実行し処理速度が早くなり、かつOR回路を制限なく
組み込むことができる。
Enter [0]. By performing the above-described operations in the processing order described above, when the output is finally processed, the logic stored in the memory 1o becomes the output. As mentioned above, in a sequence program (ladder circuit), the sequence execution unit that processes instructions translated into 6 types of codes, OR address code, and contact address by the compiler converts the ladder circuit into OR address in OFt instruction processing. This means that the pre-processing information can be read from each memory and executed in the same number of steps as the number of contacts. Furthermore, the memory for each OR address is common to the previous circuit, so there is no limit to the number of OR circuits. As more than the effect of invention, sequence program (ladder circuit diagram)
In this process, in order to store the states before and after processing the contacts in the ladder circuit, an OR address is added in the vertical direction between the contacts in the ladder circuit, and two types of memory are provided for each OR address. Furthermore, by adding five types of codes to each contact point, the process is executed in the same number of steps as the number of contacts in the ladder circuit, increasing the processing speed, and OR circuits can be incorporated without restriction.

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

第」図は本発明のシーケンス制御装置の処理方法を説明
するためのシーケンスプログラムを示す図、第2図は第
1図を従来のシーケン−ス制御装置を用いて処理を行っ
た場合の処理順序と処理形態を示した図、第3図は本発
明のシーケンス制御装置のシーケンスプログラム(ラダ
ー回路)処理部分のブロック図、第4図は第1図のシー
ケンスプログラム(ラダー回路)を処理する場合の、処
理順序と処理のためのコードを示した図、第5図はラダ
ー回路図におけるORアドレスを示した図、第6図は6
種類のコードを示した図、第7図は本発明を用いたシー
ケンス制御装置の処理の流れを示した図である。 1o〜12・・・・・・メモリ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第 図 第 図 第 図 W;hsT叶 計18STEP ′! 図 ラター回洛図 第 図 寸加コード =p 処理の遣れ 欅←、の形 上!2!以外
Fig. 1 shows a sequence program for explaining the processing method of the sequence control device of the present invention, and Fig. 2 shows the processing order when Fig. 1 is processed using a conventional sequence control device. 3 is a block diagram of the sequence program (ladder circuit) processing portion of the sequence control device of the present invention, and FIG. 4 is a diagram showing the sequence program (ladder circuit) of FIG. 1. , Figure 5 is a diagram showing the processing order and code for processing, Figure 5 is a diagram showing OR addresses in the ladder circuit diagram, Figure 6 is 6
FIG. 7 is a diagram showing the types of codes, and FIG. 7 is a diagram showing the processing flow of the sequence control device using the present invention. 1o~12...Memory. Name of agent: Patent attorney Toshio Nakao and 1 other person 18 STEP'! Figure Rutter rotation Rakuzu Figure size addition code = p The processing is done ←, on the form! 2! other than

Claims (1)

【特許請求の範囲】[Claims] ラダー回路を数種類のコードと、OR回路に共通のOR
アドレスコードと、接点アドレスの機械語に翻訳するコ
ンパイラと、前記のORアドレス毎のメモリと、コード
化された命令を処理するシーケンス実行部とで構成し、
かつ前記接点数と同数のステップで実行することを特徴
とするシーケンス制御装置。
A ladder circuit with several types of codes and a common OR circuit
Consisting of a compiler that translates address codes and contact addresses into machine language, a memory for each OR address, and a sequence execution unit that processes coded instructions,
A sequence control device characterized in that the sequence control device executes the process in the same number of steps as the number of contacts.
JP14215988A 1988-06-09 1988-06-09 Sequence controller Expired - Fee Related JP2692141B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14215988A JP2692141B2 (en) 1988-06-09 1988-06-09 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14215988A JP2692141B2 (en) 1988-06-09 1988-06-09 Sequence controller

Publications (2)

Publication Number Publication Date
JPH021001A true JPH021001A (en) 1990-01-05
JP2692141B2 JP2692141B2 (en) 1997-12-17

Family

ID=15308735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14215988A Expired - Fee Related JP2692141B2 (en) 1988-06-09 1988-06-09 Sequence controller

Country Status (1)

Country Link
JP (1) JP2692141B2 (en)

Also Published As

Publication number Publication date
JP2692141B2 (en) 1997-12-17

Similar Documents

Publication Publication Date Title
JPH021001A (en) Sequence controller
JP2529429B2 (en) Programmable controller
JPH0224721A (en) Program controller
JPS6240538A (en) Data processor
JP3013619B2 (en) Programmable controller
KR930006523B1 (en) Sequence control method
JPH02228722A (en) Output code determining method by combined key input
JPS62271003A (en) Programmable controller
JPH08297583A (en) Processor and method for interruption processing
JPS63197234A (en) Information processor
JPS58225440A (en) Memory controller
JPH02162458A (en) Parallel processor
JPS59189407A (en) Sequence control device
JPS62262105A (en) Programmable controller
JPH036527B2 (en)
JPH01169607A (en) Programmable controller
JPH01223505A (en) Sequence controller
JPH01244503A (en) Sequence controller
JPH03291701A (en) Programmable controller
JPH0713761A (en) Microcomputer
JPS6227830A (en) Interruption control system
JPH03156603A (en) Programmable controller
JPH0327453A (en) Designation processing system for program
JPH0651817A (en) Programmable controller
JPH05158507A (en) Instrumentation controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees