JP3733387B2 - Control circuit hierarchy description method - Google Patents
Control circuit hierarchy description method Download PDFInfo
- Publication number
- JP3733387B2 JP3733387B2 JP24371897A JP24371897A JP3733387B2 JP 3733387 B2 JP3733387 B2 JP 3733387B2 JP 24371897 A JP24371897 A JP 24371897A JP 24371897 A JP24371897 A JP 24371897A JP 3733387 B2 JP3733387 B2 JP 3733387B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- hierarchy
- input
- terminal
- mark
- 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 - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、制御回路の階層記述方法に係り、特に、制御装置のプログラムを作成するために記述される制御回路の構成要素を階層化して記述するに好適な制御回路の階層記述方法に関する。
【0002】
【従来の技術】
制御装置のプログラムは、各種手段を用いて記述された制御回路図(以下、ブロック図と称する)の形でその機能が表現されるようになっている。このブロック図の記述方法としては、例えば、特開平7−271840号公報、特開平8−76819号公報に記載されているように、制御回路を構成する一群の制御機能をまとめて特徴づけたシンボル(以下、マクロと称する。)を用いて表現される上位ブロック図と、マクロの詳細回路が記述される下位ブロック図とで構成される階層記述手法が知られている。またマクロと下位ブロック図を部品化して登録し、これらを再利用する技術も実現されている。従来、階層記述手法は主に工程処理を行う制御分野で多く採用されており、例えば、多岐にわたる工程とその条件などを大工程−中工程−小工程のようなツリー構造にわけて整理することで、設計者やユーザが図面を作成したり、図面に作成された要素の機能を理解したりする上でアプローチしやすい形態を提供することができるようになっている。
【0003】
【発明が解決しようとする課題】
しかしながら、従来の階層記述手法では、マクロと下位ブロック図とを1対1に対応させ、マクロの数だけ下位ブロック図が存在するような記述方法を採用したり、下位ブロック図を共通化する記述手法を採用したりしているが、マクロと下位ブロック図は入力点情報および出力点情報をそれぞれ一致させることで、階層間の対応づけを行っているため、制御機能が類似しても適用先回路の目的によっては入出力点情報が1点でも相違する場合には、マクロと下位ブロック図を別々にわけて作成すること余儀なくされている。
【0004】
この結果、従来の階層記述手法では、図面の種類や枚数が増加したり、下位ブロック図にある入出力点情報が全て上位マクロに記述され、上位ブロック図が複雑化するとともに上位ブロック図に記載された要素の機能が理解しずらいという課題がある。
【0005】
本発明の目的は、ブロック図を簡潔に見やすく表現することができる制御回路の階層記述方法を提供することにある。
【0006】
【課題を解決するための手段】
前記目的を達成するために、本発明は、制御回路に関する情報を入力装置に入力し、入力装置に入力された情報をプログラミングツールで処理し、この処理結果を表示装置の画面上に表示するに際して、前記入力装置に情報を入力するときに、制御回路の構成要素をその機能により複数の階層に分割し、各階層の要素の機能を各階層に対応づけてシンボル化したマークを各要素に設定し、最上位の階層に属する要素のマークをそれぞれ最上位の階層に対応した最上位ブロック図に信号端子群及び信号線群とともに記述し、最上位より下位側の階層に属する要素については機能毎に簡略化されたマークを各階層に対応した下位側ブロック図に信号端子群及び信号線群とともに記述し、最上位の階層に属する要素のマークの各信号端子にそれぞれ信号端子の機能毎に端子識別名称又は信号識別名称を記述し、かつ同一のマークの各信号端子には信号端子の機能毎に同一の端子識別名称又は信号識別名称を記述し、最上位より下位側の階層に属する要素のマークの各信号端子には、最上位の階層に属する要素のうち機能が相互に関連する要素のマークの信号端子と相互に関連した端子識別名称又は信号識別名称あるいは自己の階層より上位の階層に属する要素のうち機能が相互に関連する要素のマークの信号端子と相互に関連した端子識別名称又は信号識別名称を各信号端子の機能毎に記述し、同一の階層に同一のマークが複数個存在しこれら複数の要素がこの階層より下位側の階層に属する要素を共用するときの論理として上位側の複数の要素が下位側の共通の要素を端子識別名称又は信号識別名称に従って相互に切り替えて用いる制御論理を設定することを特徴とする制御回路の階層記述方法を採用したものである。
【0008】
前記各制御回路の階層記述方法を採用するに際しては、以下の要素を付加することができる。
【0009】
(1)最上位ブロック図に最上位の階層に属する要素のマークを信号端子群および信号線群とともに記述し、下位側ブロック図に最上位より下位側の階層に属する要素のマークを信号端子群および信号線群とともに記述する。
【0010】
(2)最上位ブロック図に最上位の階層に属する要素のマークを入出力端子群および信号線群とともに記述し、下位側ブロック図に最上位より下位側の階層に属する要素のマークを入出力端子群および信号線群とともに記述する。
【0011】
(3)最上位ブロック図に最上位の階層に属する要素のマークを特定の信号端子および特定の信号線とともに記述し、下位側ブロック図に最上位より下位側の階層に属する要素のマークを信号端子群および信号線群とともに記述し、最上位の階層に属する要素のうち特定のマークに名称を記述し、かつ特定のマークのうち同一のマークには同一の名称を記述する。
【0012】
(4)マークに名称を記述するに際して、マークの入出力端子に端子名称または信号名称を記述する。
【0013】
(5)マークに名称を記述するに際して、マークの信号端子に端子名称または信号名称を記述する。
【0014】
(6)マークに名称を記述するに際して、特定のマークの信号端子または入出力端子に端子名称または信号名称を記述する。
【0015】
(7)上位側の複数の要素が下位側の共通の要素を名称にしたがって相互に切替える代わりに、上位側の複数の要素が下位側の共通の要素を端子名称または信号名称にしたがって相互に切替る制御論理を設定する。
【0016】
(8)下位側ブロック図に、特定の信号端子および特定の信号線から外れた信号端子および信号線の代わりとして、最上位より下位側の階層にのみ属する要素のマークを他の要素のマークと関連付けて記述する。
【0017】
(9)下位側ブロック図に、特定の入出力端子または特定の信号線から外れた信号端子または信号線の代わりとして、最上位より下位側の階層にのみ属する要素のマークを他の要素のマークと関連付けて記述する。
【0018】
(10)最上位の階層に属する要素のマークの近傍に信号の出力先を示す信号出力先端子としてそのマークと識別名称を記述するとともに、信号の入力元を示す信号入力元端子としてそのマークと識別名称を記述し、信号出力先識別名称と信号の入力元を示す信号入力元識別名称を記述し、最上位より下位側の階層に属する要素のマークの近傍には、最上位の階層に属する要素のマークの近傍に記述された信号出力先端子と相互に関連する下位側信号入力元端子としてそのマークと識別名称をそれぞれ記述するとともに、最上位の階層に属する要素のマークの近傍に記述された信号入力元端子と相互に関連する下位側信号出力先端子としてそのマークと識別名称をそれぞれ記述する。
【0019】
(11)同一の階層に属する複数のマークの近傍に同一の信号出力先端子と信号入力元端子が複数個存在しこれら複数の信号出力先端子と信号入力元端子がこの階層より下位側の階層に属する要素のマークの近傍に記述された下位側信号入力元端子と下位側信号出力先端子を共用する論理として、上位側の複数の信号出力先端子と信号入力元端子が下位側の共通の下位側信号入力元端子と下位側信号出力先端子を端子の識別名称に従って相互に切り替えて用いる制御論理を設定する。
【0020】
【発明の実施の形態】
以下、本発明の一実施形態を図面に基づいて説明する。
【0021】
図1は、本発明の一実施形態を示す図であって、制御回路の階層記述方法により作成されるブロック図の構成と、ブロック図に関する情報を入力して処理結果を表示するためのプログラミングツールとの関係を示す構成図である。
【0022】
図1において、制御装置のプログラムを生成するに際して、制御装置を構成する制御回路に関する情報が入力装置2に入力されるようになっている。この入力装置2に情報を入力するに際しては、制御回路の構成要素をその機能により複数の階層、例えば上位、中位、下位の3階層に分割し、各階層に属する要素の機能を各階層に対応づけてシンボル化したマークを各要素に設定し、各階層に属する要素のマークをそれぞれ上位ブロック図11、中位ブロック図12、下位ブロック図13に記述するようになっている。各ブロック図11〜13は複数のシートから構成されており、各シートは制御回路の構成要素を特徴的にシンボル化したマークを複数個備えている。例えば、上位ブロック図11aには、要素に関するマークとしてマクロ111(以下、大マクロと称する)が設定されている。マクロ111は、本実施形態では、マクロ111の具体的構成要素が下位ブロック図13aの演算子121で構成されているところから、大マクロと定義されている。一方、ブロック図11bには、マークとしてマクロ112(以下、階層マクロと称する。)が設定されている。このマクロ112は、本実施形態では、中位ブロック図12aに示される演算素子121によってマクロ112の具体的構成が示されるところから、階層マクロと定義されている。また、上位ブロック図11cにはマクロ112(階層マクロ)が設定されており、このマクロ112と相互に関連する要素のマークとして、中位ブロック図12bに大マクロ111が設定されている。さらに中位ブロック図12bの要素と互いに関連する要素のマークとして、大マクロ111の具体的構成を示す下位ブロック図13bに演算素子121のマークが設定されている。
【0023】
上位ブロック図11、中位ブロック図12、下位ブロック図13に制御回路の各構成要素に関する情報を記述するに際しては、各ブロック図に各構成要素のマークを記述するとともに、マークの信号端子群または入出力端子群と信号線群を記述し、最上位の階層に属する要素のマークの各信号端子(または各入出力端子)に各信号端子の機能ごとに端子名称または信号名称を記述し、かつ同一のマークの各信号端子(または入出力端子)には信号端子の機能ごとに同一の端子名称信号名称を記述し、最上位より下位側の階層に属する要素のマークの各信号端子(または入出力端子)には、最上位の階層に属する要素のうち機能が相互に関連する要素の信号端子(または入出力端子)と相互に関連した端子名称または信号名称あるいは自己の階層より上位の階層に属する要素のうち機能が相互に関連する要素のマークの信号端子(または入出力端子)と相互に関連した端子名称または信号名称を各信号端子(または入出力端子)の機能ごとに記述することとしている。
【0024】
さらに、上位ブロック図11a〜11cまたは中位ブロック図12a、12bは互いに同一の要素を有するときには、自己の属する階層よりも下位側のブロック図を共用することとしているため、同一の階層に同一のマークが複数個存在し、これら複数の要素がこの階層より下位側の階層の属する要素を共有するときの論理として、上位側の複数の要素が下位側の複数の要素を名称、例えば端子名称または信号名称にしたがって相互に切替て用いる制御論理を設定し、この制御論理を情報として入力することとしている。
【0025】
入力装置2から各ブロック図に関する情報が入力されると、入力された情報はプログラミングツール4のブロック図入力・表示処理部41で処理された後、ブロック図データベース42に格納されるとともに、処理結果が表示装置3の表示画面上に表示されるようになっている。プログラミングツール4のデータベース42にブロック図に関するデータが格納されると、制御プログラム生成処理部43でデータベース42に格納されたデータを基に制御プログラムが生成され、生成された制御プログラムが制御装置用CPU5に転送されるようになっている。CPU5は生成された制御プログラムにしたがって各種の制御を実行することができる。なお、基本的な演算素子121は演算機能が固定され、かつシンボルが固定された素子であるため、演算素子121に関するデータはブロック図データベース42にあらかじめ格納されている。
【0026】
各ブロック図に関するデータを入力するに際しては、表示装置3の表示画面上に表示された表示内容をオペレータが確認しながら、上位ブロック図11a〜11c、中位ブロック図12a、12b、下位ブロック図13a、13bの各シート単位にキーボードやマウスなどを用いて入力装置2から入力する。このときの入力手順は、機能を固定化して共通に利用する回路素子を含む下位ブロック図13a、13bまたは中位ブロック12aに関する情報を記述し、これらのデータをデータベース42に格納する。次に、下位ブロック図13a、13b、中位ブロック図12aよりも上位の階層に属するブロック図、例えば上位ブロック図11a、11b、中位ブロック図12bに関するデータとして大マクロ111、階層マクロ112に関するデータを記述し、これらの内容をデータベース42に格納する。中位ブロック図12bに関する記述が終了したあとは、上位ブロック図11cに関する情報として階層マクロ112に関する情報を記述する。
【0027】
このとき、大マクロ111または階層マクロ112の入力信号と出力信号が下位ブロック図13a、13bまたは中位ブロック図12a、12bの入出力信号と信号名称および数が一致するように記述する。これにより、大マクロ111または階層マクロ112と下位ブロック図13a、13bまたは中位ブロック図12a、12bとの階層間の信号の接続関係が確定し、大マクロ111または階層マクロ112の演算を実行するごとに、各マクロに必要な入力信号が下位ブロック図13aまたは中位ブロック図12a、12bに与えられ、この演算結果をマクロの出力信号として取り出すことができる。
【0028】
具体的には、図2に示すように、上位ブロック図11b、11cに同一の機能を有する要素のマークとして階層マクロ112a、112bを記述するときには、各階層マクロ112a、112bの入出力端子(信号端子)に名称として、同一の信号名称、例えば入力信号23、出力信号24を信号端子(入出力端子)に対応づけて記述する。そして各階層マクロ112a、112bが共通回路として中位ブロック図12bを用いるときには、中位ブロック図12bの入出力端子(信号端子)に階層マクロ112a、112bと同一の入力信号23、出力信号24を記述する。さらに中位ブロック図12bに属する大マクロ111a、111bが同一の機能を備え、各大マクロが下位ブロック図13bを共通に使用するときには、大マクロ111a、111bの入出力端子に同一の入力信号25、出力信号26を記述するとともに、下位ブロック図13bの入出力端子に大マクロ111a、111bと同一の名称である入力信号25、出力信号26を記述する。
【0029】
さらに、上位ブロック図11b、11cが中位ブロック図12bを共通に利用するための制御論理として入力切替211、出力切替221を設定し、中位ブロック図12bの大マクロ111a、111bが下位ブロック図13bを共通に利用する制御論理として入力切替212、出力切替222を設定する。
【0030】
ここで、上位ブロック図11b、11cの演算を実行するに際して、上位ブロック図11bの演算のあと上位ブロック図11cを行う場合には、上位ブロック図11bを演算するときに、階層マクロ112aの入力信号23が入力切替211を介して大マクロ111aに与えられる。大マクロ111aの入力信号25は入力切替212を介して下位ブロック図13bの入力信号25として与えられる。そして下位ブロック図13bにしたがった演算が行われると、この演算結果は出力信号26として出力回路222を介して大マクロ111aに与えられる。大マクロ111aの出力信号26が大マクロ111bの入力信号25として与えられると、大マクロ111bへの入力信号25が入力切替212を介して下位ブロック図13bの入力信号25として与えられる。そして下位ブロック図13bにしたがった演算が実行されると、この演算結果は出力信号26として出力切替222を介して大マクロ111bの出力信号26として与えられる。この出力信号26は、中位ブロック図12bにしたがった演算結果を示す信号として出力切替221を介して階層マクロ112aの出力信号24として与えられる。
【0031】
このように、共通回路に対する入力信号23、25、および出力信号24、26の切替論理は、次に上位ブロック図11cを演算する場合も同様に実行される。このように、各マクロの演算を実行するごとに、各マクロに対応する下位側のブロック図を順次演算し、この演算に使用する入力信号および演算結果を示す出力信号は、上位側のマクロの入力信号および出力信号として与えられることから、複数の上位ブロック図または中位ブロック図に共通かつ単一の中位ブロック図または下位ブロック図を有する階層記述が可能となる。
【0032】
次に、大マクロまたは階層マクロのうち特定の入出力端子に入出力信号に関する名称を記述せずに、階層間の信号接続を確定するときの実施形態を図3にしたがって説明する。
【0033】
図3において、上位ブロック図11a、11bに属する要素のうち同一の機能を有するマークとして大マクロ111a、111bを記述するに際して、大マクロ111a、111bの入出力端子(信号端子)のうち特定の入出力端子にのみ名称として入力信号27、出力信号28を記述する。さらに各大マクロ111a、111bの近傍に、信号の出力先を示す信号出力先端子として、そのマークと識別名称、例えば、マクロ素子31aを記述し、さらに信号の入力元を示す信号入力元マークとして、そのマークと識別名称、例えばマクロ素子32aを記述する。マクロ素子31a、31bは信号出力先識別名称として同一の名称で記述され、マクロ素子32a、32bは信号入力元識別名称として同一の名称で記述される。さらにマクロ素子31a、31b、32a、32bを用いて下位ブロック図13を共用するための論理として、入力切替213、出力切替223が設定されている。
【0034】
ここで、上位ブロック図11aの演算のあと上位ブロック図11bの演算を実行する場合、上位ブロック図11aを演算したときの下位ブロック図13の入力信号27は大マクロ111aへの入力信号27によって与えられ、もう一方の入力信号は、マクロ素子31aに入力された信号が入力切替213を介してマクロ素子31に入力される。そして下位ブロック図13にしたがった演算が実行されると、演算結果の一方の出力信号28は大マクロ111aの出力信号28として与えられ、他方の出力信号がマクロ素子32の出力信号として、出力切替223を介してマクロ素子32aに与えられる。
【0035】
次に、上位ブロック図11bの演算を実行するときには、大マクロ111bへの入力信号27は下位ブロック図13の入力信号27として与えられ、他方の入力信号はマクロ素子31bに入力された信号が入力切替213を介してマクロ素子31に与えられる。そして下位ブロック図13にしたがった演算が実行されると、この演算結果による出力信号のうち一方の出力信号が出力信号28として大マクロ111bの出力信号28に与えられ、他方の出力信号はマクロ素子32の出力信号として、出力切替223を介してマクロ素子32bに与えられる。
【0036】
このように、各マクロに対応する下位側のブロック図に関する演算を順次実行する過程で、上位側にあるマクロの入出力信号またはマクロ素子で規定された入出力信号を用いるようにしているため、複数の上位ブロック図または中位ブロック図に共通かつ単一の中位ブロック図または下位ブロック図を有する階層記述方法が可能になる。さらに、機能表現上から特に必要のない共通回路との取り合い信号については大マクロまたは階層マクロに直接記述することなく、特定の入出力端子に入出力信号に関する名称を記述するようにしているため、上位ブロック図11a、11bを機能中心に簡潔かつ見やすく記述することができる。
【0037】
マクロ素子を用いるに際しては、図4(a)に示すように、信号線、例えば入力信号線43に接続されたマクロ素子41のマークを記述するとともにマクロ素子41に関する名称として、出力先識別信号名411を任意の文字列や記号あるいは図形で記述することができる。さらに出力信号線44に接続されたマクロ素子42として、そのマークを記述するとともに、マクロ素子42の名称として入力元識別信号名421を任意の文字列や記号あるいは図形で記述することができる。この場合、各マクロ素子41、42の名称を番地として、この番地に入力信号線43、出力信号線44、出力先信号識別名411、入力元識別信号名421に関するデータを格納する。
【0038】
この場合、図4(b)に示すように、出力先識別信号名411と入力元識別信号名421を一致させることで、信号線を用いて接続関係を記述しなくてもマクロ素子41、42を記述することで信号の取り合いが可能となる。さらに、図(c)に示すように、マクロ素子41とマクロ素子42の名称を一致させることで、1個の回路とn個の回路に関する接続関係を信号線で記述しなくても、マクロ素子41、42を記述することで1対nに関する回路の信号の取り合いが可能になる。
【0039】
次に、上位ブロック図の共通回路となる中位ブロック図の入力信号を、上位ブロック図の大マクロでは記述を不要とするときの実施形態を図5にしたがって説明する。
【0040】
図5(a)は、上位ブロック図11の共通回路となる下位ブロック図13の入力端子に対応した入力信号52a、52bを全て記述したときの例を示している。一方、図5(b)は、上位ブロック図11の共通回路となる下位ブロック図13には大マクロ111の入力信号52aのみを記述し、大マクロ111には入力信号52bの記述を省略し、下位ブロック図13には、入力信号52bの代わりに、初期設定値54を示すマークを記述する。この初期設定値54に関するマークはスイッチを介して演算素子121に接続されている。このような記述方法を採用すると、大マクロ111で特定の入力信号および信号名称の記述を省略した場合、下位ブロック図13においては、入力信号52bの代わりに、あらかじめ設定しておいた初期設定値54を用いて演算を実行することができる。なお、下位ブロック図13で初期設定値54があらかじめ設定されていない入力信号を大マクロ111または階層マクロ側で省略したときには、エラーメッセージを出力する機能も同時に設けることができる。また、このような記述法は中位ブロック図にも適用することができる。
【0041】
本実施形態によれば、大マクロまたは階層マクロには機能上必要な入力信号だけを記述すればよいため、上位ブロック図には機能を中心としたマークのみを記述することができる。また上位ブロック図または中位ブロック図に個々の機能や入力点に多少の相違がある場合でも柔軟に対応することができ、類似機能を有する多様な回路でも1種類の大マクロまたは階層マクロで共通化することができる。
【0042】
次に、上位ブロック図または中位ブロック図の共通回路となる中位ブロック図または下位ブロック図の出力信号を、上位ブロック図または中位ブロック図の大マクロまたは階層マクロでは記述不要とするときの実施形態を図6にしたがって説明する。
【0043】
図6(a)は、上位ブロック図11の大マクロ111に、下位ブロック図13の入力信号52a、52b、出力信号53a、53bを全て記述するときの例を示している。一方、図6(b)は、上位ブロック図11の大マクロ111には、下位ブロック図13の入出力信号のうち入力信号52a、52b、出力信号53aのみを記述し、出力信号53bの記述を省略したときの例を示している。なお、このような記述法は中位ブロック図と下位ブロック図との関係においても用いることができる。
【0044】
本実施形態によれば、大マクロまたは階層マクロには機能上必要な出力信号のみを記述すればよいため、上位ブロック図または中位ブロック図に機能を中心としたマークや名称のみを記述することができる。また上位ブロック図または中位ブロック図の個々の機能や出力点に多少の相違がある場合でも、柔軟に対応することはできるため、類似機能を有する多用の回路でも、1種類の大マクロまたは階層マクロで共通化することができる。
【0045】
次に、3階層のブロック図を(3+n)階層に拡張するときの実施形態を図7にしたがって説明する。
【0046】
本実施形態においては、3階層のブロック図11、12、13にn階層からなるブロック図71、……7nを追加したものである。すなわち、3階層のブロック図のうちブロック図11を上位ブロック図として、ブロック図12を中位ブロック図として、ブロック図13を下位ブロック図として用いているときに、上位ブロック図11の上位側の階層に属するブロック図としてブロック図71〜7nを設けたものである。
【0047】
ブロック図71〜7nを設けるに際して、ブロック図71、……7nには、前述したように、上位ブロック図11の階層マクロ112と中位ブロック図12の対応関係と同様に、階層マクロ112をブロック図71に設定し、この階層マクロ112の具体的構成が、その1階層下の上位ブロック図11で表現される関係を持たせるようになっている。さらに、この階層関係を順次拡張し、ブロック図7nの階層マクロ112をその1階層下のブロック図で表現するようにしている。この場合ブロック図7nが最上位の階層に属するブロック図となり、ブロック図7n〜13により、(3+n)階層のブロック図を実現することができる。
【0048】
本実施形態によれば、上位側の階層に属する要素のうち共通のものは下位側のブロック図で表現することができるため、下位側のブロック図の図面枚数を削減することができる。
【0049】
前記各実施形態においては、上位側の階層に属するブロック図のうち共通の要素に関するものは下位側の階層に属するブロック図に最小限の要素として記述できるので、下位側の階層に属するブロック図の図面枚数を削減することができるとともに下位側のブロック図に関するデータの容量を削減することができる。
【0050】
また前記実施形態においては、制御回路の各構成要素をブロック図に記述するときの実施形態について述べたが、本発明は制御プログラムの生成方法やブロック図の表示方法にも適用することができる。
【0051】
【発明の効果】
以上説明したように、本発明によれば、上位側の階層に属する要素のうち同一のものは下位側の階層に属するブロック図で最小限の要素として記述するようにしたため、上位側の階層に属するブロック図を簡潔にかつ見やすく記述することができるとともに下位側の階層に属するブロック図の枚数を削減することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態を示す図であって、制御回路の階層記述方法により作成されるブロック図の構成と、ブロック図に関する情報を入力してその処理結果を表示するためのプログラミングツールとの関係を示す構成図である。
【図2】複数の上位ブロック図が共通回路として中位ブロック図と下位ブロック図を有するときの構成を説明するための図である。
【図3】複数の上位ブロック図と下位ブロック図の信号の接続関係を説明するための図である。
【図4】マクロ素子を用いたときの信号の接続関係を説明するための図である。
【図5】大マクロの入力信号を省略するときの記述方法を説明するための図である。
【図6】大マクロの出力信号を省略するときの記述方法を説明するための図である。
【図7】ブロック図を(3+n)階層にしたときの構成を説明するための図である。
【符号の説明】
1 ブロック図
2 入力装置
3 表示装置
4 プログラミングツール
5 CPU
11a、11b、11c 上位ブロック図
12a、12b 中位ブロック図
13a、13b 下位ブロック図
111 大マクロ
112 階層マクロ
121 演算素子[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a control circuit hierarchy description method, and more particularly, to a control circuit hierarchy description method suitable for layered description of control circuit components described for creating a control device program.
[0002]
[Prior art]
The function of the program of the control device is expressed in the form of a control circuit diagram (hereinafter referred to as a block diagram) described using various means. As a description method of this block diagram, for example, as described in JP-A-7-271840 and JP-A-8-76819, a symbol that collectively characterizes a group of control functions constituting a control circuit. There is known a hierarchical description technique composed of an upper block diagram expressed using (hereinafter referred to as a macro) and a lower block diagram describing a detailed circuit of the macro. In addition, a technique for registering macros and lower-level block diagrams as parts and reusing them is also realized. Hierarchical description methods have been widely used mainly in the control field for process processing. For example, a wide variety of processes and their conditions are organized into a tree structure such as large process, medium process, and small process. Thus, it is possible to provide a form that can be easily approached when a designer or user creates a drawing or understands the function of an element created in the drawing.
[0003]
[Problems to be solved by the invention]
However, in the conventional hierarchical description technique, a description method in which a macro and a lower block diagram are made to correspond one-to-one and there are as many lower block diagrams as the number of macros is used, or a description in which lower block diagrams are shared Although the method is adopted, the macro and lower-level block diagrams match each other by matching the input point information and output point information. Depending on the purpose of the circuit, if even one point of input / output point information is different, the macro and the lower block diagram must be created separately.
[0004]
As a result, in the conventional hierarchical description method, the type and number of drawings increase, all the input / output point information in the lower block diagram is described in the upper macro, and the upper block diagram becomes complicated and described in the upper block diagram. There is a problem that it is difficult to understand the function of the selected element.
[0005]
An object of the present invention is to provide a hierarchical description method of a control circuit capable of expressing a block diagram simply and easily.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the present invention inputs information related to a control circuit to an input device, processes the information input to the input device with a programming tool, and displays the processing result on the screen of the display device. When inputting information to the input device, the components of the control circuit are divided into a plurality of hierarchies according to their functions, and the symbolized marks corresponding to the functions of the elements of each hierarchy are set for each element. The mark of the element belonging to the highest hierarchy to the highest block diagram corresponding to the highest hierarchy respectively. Together with signal terminal group and signal line group Describe the elements belonging to the hierarchy lower than the highest level for each function. Simplified mark To the lower block diagram corresponding to each layer Together with signal terminal group and signal line group Describe and mark elements that belong to the highest level Terminal identification name or signal identification name for each signal terminal function for each signal terminal And the same mark Each signal terminal In Signal terminal Same for each function Terminal identification name or signal identification name And mark the element belonging to the hierarchy below the highest level Each signal terminal Is a mark of elements that belong to the highest hierarchy and whose functions are related to each other Signal terminals Interrelated with Terminal identification name or signal identification name or Marks of elements whose functions are related to each other among elements that are higher than the self-level Signal terminals Interrelated with The terminal identification name or signal identification name is assigned to each signal terminal. Described for each function As a logic when there are a plurality of the same marks in the same hierarchy and these elements share elements belonging to a hierarchy lower than this hierarchy, a plurality of elements on the upper side are assigned common elements on the lower side. Set control logic to be switched between each other according to terminal identification name or signal identification name The control circuit hierarchy description method is employed.
[0008]
In adopting the hierarchical description method of each control circuit, the following elements can be added.
[0009]
(1) The mark of the element belonging to the highest hierarchy is described in the highest block diagram together with the signal terminal group and the signal line group, and the mark of the element belonging to the hierarchy lower than the highest is shown in the lower block diagram And the signal line group.
[0010]
(2) Describe the mark of the element belonging to the highest hierarchy in the highest block diagram along with the input / output terminal group and signal line group, and input / output the mark of the element belonging to the hierarchy lower than the highest level in the lower block diagram It is described together with the terminal group and signal line group.
[0011]
(3) The mark of the element belonging to the highest hierarchy is described in the highest block diagram together with the specific signal terminal and the specific signal line, and the mark of the element belonging to the hierarchy lower than the highest is signaled in the lower block diagram. It is described together with the terminal group and the signal line group, a name is described in a specific mark among the elements belonging to the highest hierarchy, and the same name is described in the same mark among the specific marks.
[0012]
(4) When a name is described in a mark, a terminal name or a signal name is described in an input / output terminal of the mark.
[0013]
(5) When the name is described in the mark, the terminal name or the signal name is described in the signal terminal of the mark.
[0014]
(6) When a name is described in a mark, a terminal name or signal name is described in a signal terminal or input / output terminal of a specific mark.
[0015]
(7) Instead of multiple elements on the higher side switching the common element on the lower side according to the name, multiple elements on the higher side switch the common element on the lower side according to the terminal name or signal name. Set control logic.
[0016]
(8) In the lower block diagram, in place of a specific signal terminal and a specific signal line and a signal terminal and a signal line, the mark of an element that belongs only to the hierarchy lower than the highest level is replaced with the mark of another element. Associate and describe.
[0017]
(9) In the lower block diagram, in place of a specific input / output terminal or a specific signal line or signal line or signal line, the mark of an element belonging only to a hierarchy lower than the highest level is marked as another element mark. Describe in association with.
[0018]
(10) The mark and the identification name are described as a signal output destination terminal indicating a signal output destination in the vicinity of the mark of an element belonging to the highest hierarchy, and the mark is used as a signal input source terminal indicating a signal input source. Describe the identification name, describe the signal output destination identification name and the signal input source identification name indicating the signal input source, and belong to the highest hierarchy in the vicinity of the mark of the element belonging to the hierarchy lower than the highest hierarchy Describe the mark and identification name as a lower-level signal input source terminal that correlates with the signal output destination terminal described in the vicinity of the element mark, and describe it in the vicinity of the element mark that belongs to the highest hierarchy. The mark and the identification name are described as lower signal output destination terminals that are correlated with the signal input source terminals.
[0019]
(11) A plurality of identical signal output destination terminals and signal input source terminals exist in the vicinity of a plurality of marks belonging to the same hierarchy, and the plurality of signal output destination terminals and signal input source terminals are lower than this hierarchy. As the logic that shares the lower signal input source terminal and the lower signal output destination terminal described in the vicinity of the mark of the element belonging to, the multiple signal output destination terminals and signal input source terminals on the lower side Control logic to be used by switching the lower side signal input source terminal and the lower side signal output destination terminal to each other according to the terminal identification name is set.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0021]
FIG. 1 is a diagram showing an embodiment of the present invention, which is a programming tool for displaying a processing result by inputting information relating to the configuration of a block diagram created by the hierarchical description method of a control circuit and the block diagram. It is a block diagram which shows the relationship.
[0022]
In FIG. 1, when generating a program for a control device, information relating to a control circuit constituting the control device is input to the
[0023]
In describing the information about each component of the control circuit in the upper block diagram 11, the middle block diagram 12, and the lower block diagram 13, the mark of each component is described in each block diagram and the signal terminal group of the mark or Describe the input / output terminal group and signal line group, describe the terminal name or signal name for each function of each signal terminal in each signal terminal (or each input / output terminal) of the mark of the element belonging to the highest layer, and For each signal terminal (or input / output terminal) with the same mark, the same terminal name and signal name are described for each function of the signal terminal, and each signal terminal (or input) of the mark of the element belonging to the hierarchy lower than the highest level is described. Output terminal) is a terminal name or signal name that correlates with a signal terminal (or input / output terminal) of an element that belongs to the highest hierarchy among the elements that belong to the highest level. Among the elements belonging to higher levels, the terminal name or signal name that correlates with the signal terminal (or input / output terminal) of the element whose function is related to each other is the function of each signal terminal (or input / output terminal). It is going to be described in.
[0024]
Further, when the upper block diagrams 11a to 11c or the middle block diagrams 12a and 12b have the same elements, the block diagram on the lower side of the hierarchy to which the self belongs is shared, and therefore the same hierarchy is the same. As a logic when there are a plurality of marks and the plurality of elements share an element to which a lower hierarchy belongs, a plurality of higher elements name a plurality of lower elements, for example, terminal names or Control logic to be used by switching between each other is set according to the signal name, and this control logic is input as information.
[0025]
When information about each block diagram is input from the
[0026]
When inputting data relating to each block diagram, the operator confirms the display contents displayed on the display screen of the
[0027]
At this time, the input signal and the output signal of the large macro 111 or the
[0028]
Specifically, as shown in FIG. 2, when describing the hierarchical macros 112a and 112b as marks of elements having the same function in the upper block diagrams 11b and 11c, the input / output terminals (signals) of the hierarchical macros 112a and 112b As the names, the same signal names, for example, the
[0029]
Further, the upper block diagrams 11b and 11c set the input switching 211 and the output switching 221 as control logic for commonly using the middle block diagram 12b, and the large macros 111a and 111b in the middle block diagram 12b are lower block diagrams. Input switching 212 and output switching 222 are set as control logic that commonly uses 13b.
[0030]
Here, when performing the operations of the upper block diagrams 11b and 11c, when the upper block diagram 11c is performed after the operation of the upper block diagram 11b, the input signal of the hierarchical macro 112a is calculated when the upper block diagram 11b is calculated. 23 is given to the large macro 111a via the input switching 211. The
[0031]
As described above, the switching logic of the input signals 23 and 25 and the output signals 24 and 26 for the common circuit is executed in the same manner when the upper block diagram 11c is operated next. In this way, each time the calculation of each macro is executed, the lower block diagram corresponding to each macro is sequentially calculated, and the input signal used for this calculation and the output signal indicating the calculation result are Since it is provided as an input signal and an output signal, a hierarchical description having a single middle block diagram or lower block diagram that is common to a plurality of upper block diagrams or middle block diagrams is possible.
[0032]
Next, an embodiment in which signal connection between hierarchies is determined without describing names related to input / output signals in specific input / output terminals of large macros or hierarchical macros will be described with reference to FIG.
[0033]
In FIG. 3, when the large macros 111a and 111b are described as marks having the same function among the elements belonging to the upper block diagrams 11a and 11b, a specific input is selected from the input / output terminals (signal terminals) of the large macros 111a and 111b. The
[0034]
Here, when the operation of the upper block diagram 11b is executed after the operation of the upper block diagram 11a, the
[0035]
Next, when executing the operation of the upper block diagram 11b, the
[0036]
In this way, in the process of sequentially executing operations related to the block diagram on the lower side corresponding to each macro, the macro input / output signal on the upper side or the input / output signal defined by the macro element is used. A hierarchical description method is possible which is common to a plurality of upper block diagrams or middle block diagrams and has a single middle block diagram or lower block diagram. In addition, since the signal related to the common circuit that is not particularly necessary for functional expression is described directly in the large macro or hierarchical macro, the name related to the input / output signal is described in a specific input / output terminal. The upper block diagrams 11a and 11b can be described in a simple and easy-to-read manner with a focus on the function.
[0037]
When using a macro element, as shown in FIG. 4A, a mark of a
[0038]
In this case, as shown in FIG. 4B, by matching the output destination
[0039]
Next, an embodiment in which the description of the input signal of the middle block diagram, which is a common circuit of the upper block diagram, is not required in the large macro of the upper block diagram will be described with reference to FIG.
[0040]
FIG. 5A shows an example in which all of the input signals 52a and 52b corresponding to the input terminals of the lower block diagram 13 serving as a common circuit of the upper block diagram 11 are described. On the other hand, FIG. 5B shows only the
[0041]
According to the present embodiment, only the input signal necessary for the function needs to be described in the large macro or the hierarchical macro, and therefore only the mark centered on the function can be described in the upper block diagram. In addition, even if there is a slight difference in individual functions and input points in the upper block diagram or the middle block diagram, it is possible to flexibly cope with various types of circuits having similar functions, even in one large macro or hierarchical macro. Can be
[0042]
Next, when the output signal of the middle block diagram or lower block diagram, which is a common circuit of the upper block diagram or middle block diagram, is not required to be described in the large macro or hierarchical macro of the upper block diagram or middle block diagram The embodiment will be described with reference to FIG.
[0043]
FIG. 6A shows an example in which all the input signals 52a and 52b and the
[0044]
According to the present embodiment, only the output signals necessary for the function need be described in the large macro or the hierarchical macro, so that only the mark or name centering on the function is described in the upper block diagram or the middle block diagram. Can do. In addition, even if there are some differences in individual functions and output points of the upper block diagram or the middle block diagram, it is possible to flexibly cope with them, so even in a multipurpose circuit having similar functions, one kind of large macro or hierarchy Can be shared by macros.
[0045]
Next, an embodiment when the block diagram of the three layers is extended to the (3 + n) layer will be described with reference to FIG.
[0046]
In the present embodiment, block diagrams 71,..., 7n having n layers are added to the block diagrams 11, 12, and 13 having three layers. That is, when the block diagram 11 is used as an upper block diagram, the block diagram 12 is used as a middle block diagram, and the block diagram 13 is used as a lower block diagram among the three-layer block diagrams, Block diagrams 71 to 7n are provided as block diagrams belonging to the hierarchy.
[0047]
When providing the block diagrams 71 to 7n, the
[0048]
According to the present embodiment, the common elements among the elements belonging to the upper hierarchy can be expressed by the lower block diagram, so that the number of drawings of the lower block diagram can be reduced.
[0049]
In each of the above-described embodiments, a block diagram related to a common element among block diagrams belonging to a higher hierarchy can be described as a minimum element in a block diagram belonging to a lower hierarchy. The number of drawings can be reduced, and the data capacity related to the lower block diagram can be reduced.
[0050]
In the above-described embodiment, the embodiment in which each component of the control circuit is described in the block diagram has been described. However, the present invention can also be applied to a control program generation method and a block diagram display method.
[0051]
【The invention's effect】
As described above, according to the present invention, the same elements among the upper layers are described as the minimum elements in the block diagram belonging to the lower layers. It is possible to describe the block diagram to which it belongs in a concise and easy-to-read manner and to reduce the number of block diagrams belonging to the lower hierarchy.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating an embodiment of the present invention, a block diagram created by a control circuit hierarchy description method, and programming for inputting information about the block diagram and displaying the processing results It is a block diagram which shows the relationship with a tool.
FIG. 2 is a diagram for explaining a configuration when a plurality of upper block diagrams have a middle block diagram and a lower block diagram as a common circuit;
FIG. 3 is a diagram for explaining a connection relation of signals in a plurality of upper block diagrams and lower block diagrams.
FIG. 4 is a diagram for explaining a signal connection relationship when a macro element is used.
FIG. 5 is a diagram for explaining a description method when a large macro input signal is omitted;
FIG. 6 is a diagram for describing a description method when an output signal of a large macro is omitted.
FIG. 7 is a diagram for explaining a configuration when the block diagram is a (3 + n) hierarchy;
[Explanation of symbols]
1 Block diagram
2 input devices
3 display devices
4 Programming tools
5 CPU
11a, 11b, 11c Upper level block diagram
12a, 12b Middle block diagram
13a, 13b Lower block diagram
111 macro
112 level macro
121 arithmetic element
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24371897A JP3733387B2 (en) | 1997-09-09 | 1997-09-09 | Control circuit hierarchy description method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24371897A JP3733387B2 (en) | 1997-09-09 | 1997-09-09 | Control circuit hierarchy description method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1185824A JPH1185824A (en) | 1999-03-30 |
JP3733387B2 true JP3733387B2 (en) | 2006-01-11 |
Family
ID=17107962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24371897A Expired - Fee Related JP3733387B2 (en) | 1997-09-09 | 1997-09-09 | Control circuit hierarchy description method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3733387B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2406416A (en) | 2000-10-31 | 2005-03-30 | Advanced Risc Mach Ltd | Describing an integrated circuit configuration |
JP2005222221A (en) * | 2004-02-04 | 2005-08-18 | Hitachi Ltd | Integrated controller development tool, integrated controller and integrated controller development process |
US7469201B2 (en) * | 2005-06-17 | 2008-12-23 | Dspace Digital Signal Processing And Control Engineering Gmbh | Process and means for block-based modeling |
JP4657843B2 (en) * | 2005-07-22 | 2011-03-23 | 株式会社エー・アンド・デイ | Model design support device |
WO2011072140A1 (en) * | 2009-12-09 | 2011-06-16 | The Mathworks, Inc. | Canonicalized versions of reuse candidates in graphical state diagrams |
US9424005B1 (en) | 2009-12-09 | 2016-08-23 | The Mathworks, Inc. | Templatized component |
US10365897B1 (en) | 2012-05-23 | 2019-07-30 | The Mathworks, Inc. | Model ring component |
JP5457268B2 (en) * | 2010-05-18 | 2014-04-02 | 株式会社エー・アンド・デイ | Model creation method and system |
-
1997
- 1997-09-09 JP JP24371897A patent/JP3733387B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH1185824A (en) | 1999-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107341646A (en) | Configuration software coordination management system and method | |
JP3733387B2 (en) | Control circuit hierarchy description method | |
CN100533375C (en) | Automatic layout method and automatic layout device | |
JPS5917630A (en) | Input method of data | |
JP4277206B2 (en) | Ladder program display method and display device | |
JP2008269515A (en) | Method for dynamically generating image layout by parameter | |
JPH03196188A (en) | Display system for information processor | |
JP3736467B2 (en) | Cable management system and management method | |
JP3476688B2 (en) | Netlist generation method and netlist generation device | |
JP4588364B2 (en) | Controller screen generator | |
JP2766284B2 (en) | Layout support device for semiconductor integrated circuit | |
JP2943260B2 (en) | Sequencer / loader circuit input method | |
JP3567291B2 (en) | Information processing apparatus and item data management method | |
JPH052617A (en) | Circuit diagram generation device | |
JPH04107783A (en) | Circuit diagram input method | |
JPH05189509A (en) | Power distribution system chart producing device | |
JPH03282902A (en) | Program maintenance tool for programmable controller | |
JP3184302B2 (en) | Schematic management method for integrated circuits | |
JP2000181948A (en) | Hierarchical drawing design device | |
JPH0415873A (en) | Control method for test pattern for logical circuit simulation | |
JPH09147006A (en) | Terminal information editor | |
JP2007156584A (en) | Cad library calling method, registration method, image display device and cad program | |
JPS6129907A (en) | Programming device of programmable controller | |
JPH10232886A (en) | Circuit design supporting system | |
JP2004171401A (en) | Sequence program formation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050720 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050907 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091028 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091028 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101028 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111028 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121028 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121028 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131028 Year of fee payment: 8 |
|
LAPS | Cancellation because of no payment of annual fees |