JPH0916223A - System for sorting sequence program - Google Patents

System for sorting sequence program

Info

Publication number
JPH0916223A
JPH0916223A JP16565595A JP16565595A JPH0916223A JP H0916223 A JPH0916223 A JP H0916223A JP 16565595 A JP16565595 A JP 16565595A JP 16565595 A JP16565595 A JP 16565595A JP H0916223 A JPH0916223 A JP H0916223A
Authority
JP
Japan
Prior art keywords
input
feedback
output
output data
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.)
Pending
Application number
JP16565595A
Other languages
Japanese (ja)
Inventor
Kenji Maruyama
賢治 丸山
Yoshito Fujita
好人 藤田
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP16565595A priority Critical patent/JPH0916223A/en
Publication of JPH0916223A publication Critical patent/JPH0916223A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE: To enable to make program for a logic sequence without considering the order of logics and feedback. CONSTITUTION: Input/output data (a) by the logics of the logic sequence are prepared and checked in order and when there is input/output data outputting an input as to the input, feedback is detected and the input/output name J of the detected feedback is replaced with an alias J' to prevent the same feedback from being detected. All feedback parts are retrieved and input/output data (b) by this retrieval are taken out in order; when the input is the output of the remaining input and output, the input/output data are moved to the tail and others are set in a result output list (c) to change the sequence order.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ロジックシーケンスの
プログラムの作成においてフィードバックの検索及びシ
ーケンスの順序の適正な並び換えを行うシーケンスプロ
グラムソートシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence program sort system for performing feedback retrieval and proper rearrangement of sequences in the creation of logic sequence programs.

【0002】[0002]

【従来の技術】ロジックシーケンス回路は一般にプログ
ラムで作成される。高速性を必要とするシステムにおけ
るロジックシーケンスのプログラム作成は、アセンブリ
言語等により、一般的に以下のように行っている。
2. Description of the Related Art A logic sequence circuit is generally created by a program. A logic sequence program is created in a system that requires high speed by using assembly language or the like as follows.

【0003】(1).信号をビット単位で扱う。(1). Handle signals in bit units.

【0004】(2).ロジックの出力は一括でリセット
し、各ロジックの条件成立時に各ロジックの出力をセッ
トする。
(2). The output of the logic is reset collectively, and the output of each logic is set when the condition of each logic is satisfied.

【0005】(3).フィードバック部の出力はセット
/リセットする。
(3). The output of the feedback section is set / reset.

【0006】従って、以下のことを考慮してプログラム
を作成する。
Therefore, the program is created in consideration of the following points.

【0007】(1)ロジックの順序を考慮する。(1) Consider the order of logic.

【0008】(2)フィードバックを考慮する。(2) Consider feedback.

【0009】即ち、図4に示すようなロジックシーケン
スのプログラム作成する場合、 (1)各ロジック1→2→3の順序でプログラムを作成
する。
That is, when creating a program having a logic sequence as shown in FIG. 4, (1) a program is created in the order of each logic 1 → 2 → 3.

【0010】(2)ロジック3のフィードバックを考慮
して作成する。
(2) It is created in consideration of the feedback of the logic 3.

【0011】[0011]

【発明が解決しようとする課題】ところで、図5に示す
ようなロジックシーケンスのプログラムを作成する場
合、ロジック1→2→3の順序で行うと1のANDロジ
ックの出力が遅れる。
By the way, when a program of a logic sequence as shown in FIG. 5 is created in the order of logic 1 → 2 → 3, the output of the AND logic of 1 is delayed.

【0012】また、図6に示すようなロジックシーケン
スのプログラムを作成する場合、ロジック1→2の順序
で行うと、入力Aが0,入力Bが0からAが1,Bが1
となった時ロジック1の出力が1回分出力される。
When a program having a logic sequence as shown in FIG. 6 is created in the order of logic 1 → 2, input A is 0, input B is 0 to A is 1, and B is 1.
When, the output of logic 1 is output once.

【0013】本発明は、従来のこのような問題点に鑑み
てなされたものであり、その目的とするところは、ロジ
ックシーケンスのプログラムを作成する場合、ロジック
の順序、フィードバックを考慮せずに行うことができる
シーケンスプログラムソートシステムを提供することに
ある。
The present invention has been made in view of the conventional problems as described above, and an object thereof is to create a logic sequence program without considering the logic sequence and feedback. It is to provide a sequence program sort system capable of performing.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
に、本発明におけるシーケンスプログラムソートシステ
ムは、ロジックシーケンスの各ロジック毎の入出力デー
タを作成する手段と、この作成した各ロジックシーケン
ス毎の入出力データを順次チェックし自分の入力につい
てそれを出力している入出力データがある場合フィード
バックとして検出し、検出したフィードバックの入力名
称を別名称に置き換えるフィードバック検索手段と、フ
ィードバック検索手段からの各入出力データを順次取り
出し、入力が残りの入出力の出力であれば入出力データ
を最後尾に移動し、そうでないものを結果出力リストに
セットするシーケンス順序の並び換え手段とを有するこ
とを特徴とするものである。
In order to achieve the above object, a sequence program sorting system according to the present invention comprises means for creating input / output data for each logic of a logic sequence, and for each created logic sequence. Input / output data is sequentially checked, and if there is input / output data that outputs it for its own input, it is detected as feedback, and feedback input means for replacing the input name of the detected feedback with another name, and feedback search means It has a sequence order rearranging means for sequentially extracting input / output data, moving the input / output data to the end if the input is the output of the remaining input / output, and setting the other input / output data in the result output list. It is what

【0015】[0015]

【作用】フィードバック検索手段は各入出力データから
フィードバックを検出し、フィードバックの入力名称を
名称に置き換える。このためフィードバック検出後同じ
フィードバックを検出することなくフィードバックの検
索処理できる。
The feedback search means detects feedback from each input / output data and replaces the input name of feedback with the name. Therefore, after the feedback is detected, the feedback search processing can be performed without detecting the same feedback.

【0016】シーケンス順序の並び換え手段は上記フィ
ードバック検索後各入出力データから入力が残りの入出
力の出力であればその入出力データを最後尾に移動し、
そうでないものを結果リストにセットする。このため結
果リストにはロジックの順序に従って入出力データがセ
ットされる。
After the above feedback search, the sequence order rearranging means moves the input / output data to the end if the input / output data is the output of the remaining input / output,
If not, set it in the result list. Therefore, input / output data is set in the result list according to the logic order.

【0017】[0017]

【実施例】本発明の実施例について図1〜3を参照して
説明する。図1及び図2は実施例にかかるシステムのフ
ィードバックの検索手段及びシーケンス順序の並び換え
手段の構成及び処理を説明するフロー図、図3は実施例
にかかるロジックシーケンスとそのプログラムの入出力
データを示す。以下シーケンスプログラムのソートシス
テムの構成を処理手順と共に説明する。
Embodiments of the present invention will be described with reference to FIGS. 1 and 2 are flow charts for explaining the configuration and processing of the feedback retrieval means and the sequence order rearranging means of the system according to the embodiment, and FIG. 3 shows the logic sequence according to the embodiment and the input / output data of its program. Show. The configuration of the sorting system of the sequence program will be described below together with the processing procedure.

【0018】(1).図3に示すロジックシーケンスの
各ロジックシーケンス毎の入出力データを作成する(同
図(a))。
(1). Input / output data for each logic sequence of the logic sequence shown in FIG. 3 is created ((a) in the same figure).

【0019】(2).図1のフローにより上記入出力デ
ータからフィードバック検出をする。
(2). Feedback detection is performed from the input / output data according to the flow of FIG.

【0020】まず、各入出力データを一度検査した入力
か順次チェックして、Nの場合検査済入力リストにセッ
トする(S11,S12)。
First, each input / output data is sequentially checked whether it is an input that has been inspected once, and if it is N, it is set in the inspected input list (S11, S12).

【0021】次に、この入力リストについて自分の入力
について、それを出力している入出力データがあるか検
索する(S13)。
Next, regarding the input of this input list, it is searched whether there is input / output data outputting the input (S13).

【0022】更に、その入出力データの入力について検
索することを繰り返し、以下の条件イ,ロ,ハのうち1
つが成立するまで繰り返す(S11〜S15)。
Further, the search for the input of the input / output data is repeated, and one of the following conditions a, b and c is obtained.
Repeat until one is established (S11 to S15).

【0023】イ.一度検査した入力である。A. It is an input that has been inspected once.

【0024】ロ.入力を出力している入出力データがな
い。
B. There is no input / output data outputting the input.

【0025】ハ.入力がチェック中の入出力データの出
力である。
C. The input is the output of the input / output data being checked.

【0026】上記条件ハが成立した場合がフィードバッ
ク検出となる。この場合、入力の名称を別の名称に置き
換える。これにより一度フィードバックを検出すると以
降同じフィードバックは検出されない。図3(a)の入
出力データのJがフィードバックデータであるので、J
→J′に入力名称が置換される。従って、図1のフロー
によるフィードバック検索の結果、図3(a)の入力デ
ータは同図(b)のように変わる。
Feedback is detected when the above condition C is satisfied. In this case, the input name is replaced with another name. As a result, once feedback is detected, the same feedback is not detected thereafter. Since the input / output data J in FIG. 3A is feedback data, J
→ The input name is replaced with J '. Therefore, as a result of the feedback search according to the flow of FIG. 1, the input data of FIG. 3A changes as shown in FIG.

【0027】(3).図2のフローにより各ロジックシ
ーケンスプログラムを適正な順序に並び換える。
(3). According to the flow of FIG. 2, the logic sequence programs are rearranged in an appropriate order.

【0028】まず、図3(b)の各入出力データを順次
取り出し、入出力データがあり、入力が残りの入出力デ
ータの出力でなければ、結果出力リストにセットする
(S21〜S24)。
First, each input / output data of FIG. 3B is sequentially taken out, and if there is input / output data and the input is not the output of the remaining input / output data, it is set in the result output list (S21 to S24).

【0029】もし、入出力データが別の入出力データの
出力ならば、入出力データの最後尾にに移動させる(S
23,S25)。
If the input / output data is the output of another input / output data, it is moved to the end of the input / output data (S
23, S25).

【0030】以上の処理を入出力データがなくなるまで
繰り返すことにより、適正な順序となったロジックシー
ケンスプログラムが結果出力リストに出力される。
By repeating the above processing until there is no input / output data, the logic sequence program in the proper order is output to the result output list.

【0031】以上図1、図2のフローにより、フィード
バックがある場合でも無限ループとなることはない。
According to the flow of FIGS. 1 and 2, the infinite loop does not occur even if there is feedback.

【0032】図3に示すロジックシーケンスプログラム
の場合の結果出力リストは同図(c)に示すようにな
る。即ち、図3のロジックシーケンスのプログラムは結
果出力リストの順で作成すればよいことになる。
The result output list in the case of the logic sequence program shown in FIG. 3 is as shown in FIG. That is, the program of the logic sequence of FIG. 3 may be created in the order of the result output list.

【0033】以上のように入出力データを作成し、図
1、図2のフローにより結果出力リストを得ることで、
ロジックシーケンスのプログラムを作成する際、ロジッ
クの順序,フィードバックを考慮せずに行うことが可能
となる。
By creating the input / output data as described above and obtaining the result output list by the flow of FIGS. 1 and 2,
When creating a logic sequence program, it can be performed without considering the logic sequence and feedback.

【0034】[0034]

【発明の効果】本発明は、上述のとおり構成されている
ので、ロジックシーケンスのプログラムを作成する際、
ロジックの順序,フィードバックを考慮することなく行
うことができる。そのためプログラム作成工数の削減お
よび品質向上となる。
Since the present invention is configured as described above, when creating a logic sequence program,
It can be done without considering the logic order and feedback. Therefore, the number of man-hours for program creation is reduced and the quality is improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】実施例にかかるフィードバック検索手段のフロ
ー図。
FIG. 1 is a flowchart of feedback search means according to an embodiment.

【図2】実施例にかかるシーケンス順序の並び換え手段
のフロー図。
FIG. 2 is a flowchart of a sequence order rearranging unit according to the embodiment.

【図3】実施例にかかるデータ説明図。FIG. 3 is an explanatory diagram of data according to the embodiment.

【図4】従来例を説明するためのロジックシーケンスプ
ログラムを示す回路図。
FIG. 4 is a circuit diagram showing a logic sequence program for explaining a conventional example.

【図5】従来例にかかるプログラム作成順序の説明図。FIG. 5 is an explanatory diagram of a program creation order according to a conventional example.

【図6】他の従来例にかかるプログラム作成順序の説明
図。
FIG. 6 is an explanatory diagram of a program creation order according to another conventional example.

【符号の説明】[Explanation of symbols]

A〜J…入力又は出力データ A to J ... Input or output data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ロジックシーケンスの各ロジック毎の入
出力データを作成する手段と、 作成した各ロジックの入出力データを順次チェックし入
力についてそれを出力している入出力データがある場合
フィードバックとして検出し、検出したフィードバック
の入力名称を別名称に置き換えるフィードバック検索手
段と、 フィードバック検索手段からの各入出力データを順次取
り出し、入力が残りの入出力の出力であれば入出力デー
タを最後尾に移動し、そうでないものを結果出力リスト
にセットするシーケンス順序の並び換え手段と、 を有することを特徴としたシーケンスプログラムソート
システム。
1. A means for creating input / output data for each logic of a logic sequence, and sequentially checking the created input / output data for each logic, and detecting the input / output data outputting the input as feedback. Then, the feedback search means for replacing the input name of the detected feedback with another name and each input / output data from the feedback search means are sequentially taken out, and if the input is the output of the remaining input / output, move the input / output data to the end A sequence program sorting system characterized by having a sequence order rearranging means for setting the other ones in the result output list.
JP16565595A 1995-06-30 1995-06-30 System for sorting sequence program Pending JPH0916223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16565595A JPH0916223A (en) 1995-06-30 1995-06-30 System for sorting sequence program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16565595A JPH0916223A (en) 1995-06-30 1995-06-30 System for sorting sequence program

Publications (1)

Publication Number Publication Date
JPH0916223A true JPH0916223A (en) 1997-01-17

Family

ID=15816490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16565595A Pending JPH0916223A (en) 1995-06-30 1995-06-30 System for sorting sequence program

Country Status (1)

Country Link
JP (1) JPH0916223A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012022425A (en) * 2010-07-13 2012-02-02 Fuji Electric Co Ltd Device and method for automatically generating program and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012022425A (en) * 2010-07-13 2012-02-02 Fuji Electric Co Ltd Device and method for automatically generating program and program

Similar Documents

Publication Publication Date Title
JPH1063707A (en) Device and method for logic circuit verification
JPH07230481A (en) Method and device for extracting net information
CN112148359B (en) Distributed code clone detection and search method, system and medium based on subblock filtering
JPH0916223A (en) System for sorting sequence program
JP3620203B2 (en) Database search processing method
US7149663B1 (en) Method and apparatus for restructuring a binary decision diagram
JPH0452967A (en) And operation processing system for set file
JPH056272A (en) Software designing device
JPH05158982A (en) System for connecting data retrieving result
JPH0744397A (en) Program processing accelerating system
JP2845478B2 (en) Logic circuit delay time analyzer
JPH04286072A (en) High speed retrieval system for table
JPH02259827A (en) Record editing system
JPH03294933A (en) Shift path control circuit
JPH08272650A (en) Retest path selection system
CN118445362A (en) Metadata information synchronization method, system and equipment
JPH02250120A (en) Automatizing system for test diagnostic program of information processing system
JP2773657B2 (en) String search device
JP3824091B2 (en) Relational database system
JPH09330322A (en) Data retrieval device
JPH05233740A (en) Net delete system
JPH02287737A (en) Automatic designing system for test item
JPH0324629A (en) Method for controlling task
JPH03276374A (en) Tracking device for logic simulation result
JPH05134879A (en) Precompile system