JPH0434767B2 - - Google Patents

Info

Publication number
JPH0434767B2
JPH0434767B2 JP59221054A JP22105484A JPH0434767B2 JP H0434767 B2 JPH0434767 B2 JP H0434767B2 JP 59221054 A JP59221054 A JP 59221054A JP 22105484 A JP22105484 A JP 22105484A JP H0434767 B2 JPH0434767 B2 JP H0434767B2
Authority
JP
Japan
Prior art keywords
address
assignment
data
assigned
addresses
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 - Lifetime
Application number
JP59221054A
Other languages
Japanese (ja)
Other versions
JPS6198403A (en
Inventor
Toshiaki Ochiai
Shingo Okuyama
Yoshuki 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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP22105484A priority Critical patent/JPS6198403A/en
Publication of JPS6198403A publication Critical patent/JPS6198403A/en
Publication of JPH0434767B2 publication Critical patent/JPH0434767B2/ja
Granted 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/054Input/output

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はPC(Programmable Controller)が
実行するシーケンス制御上の構成要素を表わした
回路図面に、その構成要素であるコイル、接点に
アドレスを割付・付与することのできるPCアド
レスの自動割付・付与装置に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention assigns addresses to the coils and contacts that are the constituent elements in a circuit diagram representing the constituent elements of sequence control executed by a PC (Programmable Controller).・This relates to an automatic PC address assignment/assignment device that can be assigned.

[従来の技術] 従来、PCを用いて電気シーケンス制御装置を
構成したとき、その電気シーケンス制御装置の動
作を表現した回路図面にその回路の構成要素であ
るコイル、接点に対してPC特有のアドレスを割
付・付与して実用に供している。また、このアド
レスの割付・付与は構成要素毎に固有のもので重
複したアドレスの割付・付与が行われないように
しなければならない。
[Prior Art] Conventionally, when an electrical sequence control device is configured using a PC, a circuit diagram expressing the operation of the electrical sequence control device includes PC-specific addresses for the coils and contacts that are the components of the circuit. are assigned and assigned for practical use. Further, this address assignment/assignment must be unique to each component, and duplicate address assignment/assignment must be avoided.

[発明が解決しようとする問題点] しかしながら、PCを用いた電気シーケンス制
御装置の回路図面は極めて複雑で、その構成要素
の数も多数であるにも拘らず従来のアドレス割
付・付与は回路図面上に手作業によつて行われて
おり、作業性が低く、また作業ミスも多発してい
た。
[Problems to be Solved by the Invention] However, although the circuit diagram of an electrical sequence control device using a PC is extremely complex and has a large number of components, conventional address assignment and assignment is not possible using the circuit diagram. Moreover, the work was done manually, resulting in low work efficiency and frequent errors.

しかも、使用するPCの機種によつて割付・付
与できるアドレスの範囲、アドレスの表記法(数
字のみ又は英字+数字、8進表示、10進表示、16
進表示など)及びタイマ、カウンタ、演算命令な
どの特殊な機能をもつコイルに割付・付与するア
ドレスなどが異なることから使用するPCの機種
毎にアドレス割付・付与を行う必要があり、極め
て煩雑な作業になつていた。
In addition, the range of addresses that can be assigned and assigned depending on the model of the PC used, and the address notation (numbers only or alphanumeric characters + numbers, octal display, decimal display, 16
Since the addresses assigned and assigned to coils with special functions such as digit display, etc.) and timers, counters, and arithmetic instructions are different, it is necessary to assign and assign addresses for each model of PC used, which is extremely complicated. I was getting used to the work.

更に、上記回路図面にアドレスを割付・付与す
るに際して、特定のコイル又は接点のアドレスが
予め決定されているような場合がある。即ち制御
盤が製作済や製作中であるために、実際に製作さ
れたもののとおりにアドレス割付・付与をしなけ
ればならない場合。第2に複数台のPCを連結し
て並列運転させて制御するために他のPCに信号
を送つたり、他のPCより信号を受けたりするコ
イルや接点にある特定のアドレスを割付けなけれ
ばならない場合。第3に電池切れ接点や1秒パル
ス接点などのようにPC本体が固有に持つている
接点で、予めアドレスが固定されている場合であ
る。このようなアドレスの割付・付与を実行する
ためには上記回路図面の一部についてのみ特殊な
処理を施すことになり、一層作業能率を低下させ
る要因となつていた。
Furthermore, when assigning and assigning addresses to the circuit drawings, there are cases where the addresses of specific coils or contacts are determined in advance. In other words, because the control panel has been manufactured or is in the process of being manufactured, addresses must be assigned and assigned as actually manufactured. Second, in order to connect and control multiple PCs in parallel operation, you must assign specific addresses to the coils and contacts that send signals to and receive signals from other PCs. If not. The third type is a contact that the PC itself has, such as a dead battery contact or a one-second pulse contact, and the address is fixed in advance. In order to allocate and assign such addresses, special processing must be performed on only a portion of the circuit drawing, which further reduces work efficiency.

本発明は、上記問題点に鑑みなされたもので、
PCの電気シーケンス制御上の回路図面に、たと
えその一部に特定のアドレス割付を必要とするコ
イル又は接点が存在しようとも、その特定のアド
レス割付を変更することなく、他の構成要素に対
して重複することないアドレスの割付・付与を自
動的に実行することのできる優れたPCアドレス
の自動割付・付与装置を提供することをその目的
としている。
The present invention was made in view of the above problems, and
Even if there is a coil or contact that requires a specific address assignment in a part of the circuit diagram on the PC's electrical sequence control, the circuit diagram for other components can be used without changing the specific address assignment. The purpose of this invention is to provide an excellent automatic PC address assignment/assignment device that can automatically assign/assign addresses without duplication.

[問題点を解決するための手段] 上記問題点を解決するために本発明の構成した
手段は、第1図の基本的構成図に示すごとく、 PCの機能を表す固有のデータを記憶する固有
データ記憶手段M1と、当該PCが行うシーケン
ス制御上の構成要素の回路図面データを記憶する
回路図面データ記憶手段M2とを備え、該固有デ
ータに基づいて該回路図面データの構成要素にア
ドレスを自動的に割付及び付与するPCアドレス
の自動割付・付与装置において、 前記回路図面データの構成要素の中で、予め任
意に設定されたアドレスが割付・付与された構成
要素及び該指定アドレスを記憶する任意指定デー
タ記憶手段M3と、 該任意指定データ記憶手段M3に記憶された構
成要素については優先して上記指定アドレスを割
付・付与すると共に、該指定アドレスとの重複を
検出及び回避しつつ、前記固有データ記憶手段M
1の固有データに基づいて前記図面データの構成
要素にアドレスを割付及び付与するアドレス割
付・付与手段M4と、 を備えることを特徴とするPCアドレスの自動割
付・付与装置をその要旨としている。
[Means for Solving the Problems] The means constructed by the present invention to solve the above problems is as shown in the basic configuration diagram of FIG. It is equipped with a data storage means M1 and a circuit drawing data storage means M2 for storing circuit drawing data of the constituent elements on the sequence control performed by the PC, and automatically assigns addresses to the constituent elements of the circuit drawing data based on the specific data. In an automatic PC address assignment/assignment device that assigns and assigns PC addresses automatically, among the constituent elements of the circuit drawing data, a component to which an address arbitrarily set in advance is assigned/assigned, and an arbitrary PC address that stores the designated address. The designated data storage means M3 and the components stored in the arbitrarily designated data storage means M3 are assigned and given the designated addresses with priority, and while detecting and avoiding duplication with the designated addresses, the unique Data storage means M
The gist of the present invention is an automatic PC address assignment/assignment device comprising: an address assignment/assignment means M4 for assigning and assigning addresses to constituent elements of the drawing data based on the specific data of 1.

[作用] 本発明の固有データ記憶手段M1とは、使用す
るPCの機能を表わす固有データ、即ち入出力カ
ードの型、入出力カード1枚当たりの入出力点
数、カウンタの有無、ラツチの型、コイルに使用
できるアドレスの範囲、タイマ、カウンタ、ラツ
チ用のコイル、接点のアドレスの付け方、演算命
令の型等を示すデータを記憶するものである。こ
の固有データに従いつつ後述するアドレス割付・
付与手段が処理を実行するのである。
[Function] The unique data storage means M1 of the present invention stores unique data representing the functions of the PC to be used, that is, the type of input/output card, the number of input/output points per input/output card, the presence or absence of a counter, the type of latch, It stores data indicating the range of addresses that can be used for coils, timer, counter, latch coils, how to address contacts, types of arithmetic instructions, etc. Address allocation and
The assigning means executes the processing.

回路図面データ記憶手段M2とは、PCが実行
するシーケンス制御上の構成要素、(各種のコイ
ル及び接点)からなる回路図面を記憶するもので
ある。即ち、アドレスの割付・付与を必要とする
全ての構成要素が表わされた回路図面を記憶して
いるのである。
The circuit drawing data storage means M2 stores circuit drawings consisting of components (various coils and contacts) for sequence control executed by the PC. That is, it stores a circuit diagram showing all the components to which addresses need to be assigned and assigned.

任意指定データ記憶手段M3とは、上記回路図
面データ記憶手段M2が記憶する全ての構成要素
の中で、予め任意に指定されたアドレスが割付・
付与された構成要素及び該指定アドレスを記憶し
ているものである。この任意指定データ記憶手段
M3が記憶する特定のアドレス割付・付与は絶対
的なものであり、後述するアドレス割付・付与手
段M4ではこのデータを最優先して処理を行うの
である。
The arbitrarily specified data storage means M3 means that among all the components stored in the circuit drawing data storage means M2, an address arbitrarily specified in advance is allocated and stored.
It stores the assigned components and the designated addresses. The specific address allocation/assignment stored in the arbitrarily specified data storage means M3 is absolute, and the address allocation/assignment means M4, which will be described later, processes this data with top priority.

アドレス割付・付与手段M4は、上記各構成手
段のデータに基づき次のような処理を実行するも
のである。
The address allocation/assignment means M4 executes the following processing based on the data of the above-mentioned constituent means.

即ち、回路図面データ記憶手段M2の記憶する
構成要素(各種のコイル及び接点)の中で、特別
にアドレスが指定してあるものを任意指定データ
記憶手段M3から検索して、任意指定データ通り
のアドレスの割付・付与を実行する。そして、そ
のアドレス割付・付与の完了した構成要素以外の
構成要素について、前記固有データ記憶手段M1
によつて記憶されている固有データに則り、かつ
重複が生じるのを回避しつつアドレスの割付・付
与を実行するのである。
That is, among the components (various coils and contacts) stored in the circuit drawing data storage means M2, those whose addresses are specially designated are searched from the arbitrarily designated data storage means M3, and the components are stored according to the arbitrarily designated data. Executes address assignment/granting. Then, for the constituent elements other than the constituent elements to which the address assignment/assignment has been completed, the unique data storage means M1
Address allocation/assignment is executed in accordance with the unique data stored by the server and while avoiding duplication.

以下、本発明をより具体的に説明するために、
実施例を挙げて詳述する。
Hereinafter, in order to explain the present invention more specifically,
This will be explained in detail by giving examples.

[実施例] 第2図は本実施例であるPCアドレスの自動割
付・付与装置の構成ブロツク図であり、本装置を
使用するオペレータが実際の操作を行うキーボー
ド2、その操作の内容や操作の結果等をオペレー
タに視覚表示するCRTデイスプレイ4を備えて
いる。6は固有データ記憶手段M1、回路図面記
憶手段M2及び任意指定データ記憶手段M3とし
ての磁気デイスク装置を、8は種々の処理結果の
ハードコピーを出力するためのプリンタである。
そして、これらの各装置はアドレス割付・付与手
段M4としての機能を兼ね備えるコンピユータか
らなる中央処理装置10によりコントロールされ
ている。
[Example] Figure 2 is a block diagram of the automatic PC address assignment/assignment device according to this example. It is equipped with a CRT display 4 that visually displays results etc. to the operator. 6 is a magnetic disk device as a unique data storage means M1, a circuit diagram storage means M2, and an arbitrarily specified data storage means M3; and 8 is a printer for outputting hard copies of various processing results.
Each of these devices is controlled by a central processing unit 10 consisting of a computer that also functions as address assignment/assignment means M4.

ここで、磁気デイスク装置6に記憶されている
固有データ、回路図面データ及び任意指定データ
は次のようなものである。
Here, the unique data, circuit drawing data, and arbitrarily designated data stored in the magnetic disk device 6 are as follows.

まず固有データとは、PCの機能に基づきコイ
ル及び接点としてどの領域のアドレスの割付・付
与をすべきか、特殊な機能を有するコイル及び接
点のアドレス割付の方法等のアドレス割付の基準
となる事項である。
First, unique data refers to matters that serve as standards for address assignment, such as which area addresses should be assigned to coils and contacts based on the PC's functions, and how to assign addresses to coils and contacts with special functions. be.

回路図面データとは、第3図に示すごとく、ラ
ダーダイアグラムで表現されるPCが実現してい
る電気シーケンス回路図及びその構成要素である
コイル、接点毎の電気機器符号R2,D1,D
2,…から成るものである。
As shown in Figure 3, the circuit drawing data refers to the electrical sequence circuit diagram that the PC realizes expressed in the form of a ladder diagram, and the electrical equipment codes R2, D1, and D for each of its component coils and contacts.
It consists of 2,...

また、任意指定データとは、第4図に示すよう
な特定のアドレスの割付を必要とする電気機器符
号とその電気機器に割付したいアドレス(0010,
4000,4001,…)を1対の情報としたデータであ
る。
Additionally, the optionally specified data includes the electrical equipment code that requires specific address assignment as shown in Figure 4, and the address (0010, 0010,
4000, 4001, ...) as a pair of information.

次に、このように構成されるPCアドレスの割
付・付与装置の操作及びその操作による処理の流
れについて説明する。
Next, the operation of the PC address allocation/assignment device configured as described above and the processing flow resulting from the operation will be explained.

第5図は、処理の全体を概略的に表わしたもの
で、処理の流れとその処理によつて操作される構
成装置との関係を表わしている。ここで、磁気デ
イスク装置6に記憶されている第3図に示すよう
な回路図面データは、画像読み取り装置等のデー
タ入力装置12により予め入力されている。
FIG. 5 schematically shows the entire process, and shows the relationship between the flow of the process and the constituent devices operated by the process. Here, the circuit drawing data as shown in FIG. 3 stored in the magnetic disk device 6 is inputted in advance by a data input device 12 such as an image reading device.

まず、オペレータがキーボード2を操作してア
ドレスの割付・付与の実行を中央処理装置10に
指令すると第5図の流れ図に示すアドレス割付・
付与ルーチンの実行が開始される。そして、ステ
ツプ100にてオペレータによる図面番号の入力が
行われる。図面番号とは、多数の回路図面データ
の中からアドレス割付・付与を行いたい図面に付
与されている番号のことで、この番号が入力され
ると中央処理装置10は磁気デイスク装置6内に
記憶されている複数個の回路図面データのフアイ
ルの中から入力された図面番号の回路図面データ
を選択し、以後この選択された回路図面データへ
のアクセスを可能とする。なお、入力された図面
番号の回路図面データが磁気デイスク装置6内に
存在しなかつたときは、その由をCRTデイスプ
レイ4に表示し、再度図面番号の入力を促す。次
のステツプ200では、今回のアドレス割付・付与
に際して使用するPCの機種データ等の固有デー
タ及び、任意指定データをキーボード2から入力
する。そして、この入力されたデータは磁気デイ
スク装置のPC固有データ及び任意指定データと
して格納、記憶され、以後の処理に供されるので
ある。このステツプ200における処理の詳細を表
わしたものが、第6図の流れ図である。
First, when an operator operates the keyboard 2 to instruct the central processing unit 10 to perform address assignment/assignment, the address assignment/assignment as shown in the flowchart of FIG.
Execution of the grant routine begins. Then, in step 100, the drawing number is input by the operator. A drawing number is a number assigned to a drawing to which an address is to be assigned/assigned from among a large number of circuit drawing data. When this number is input, the central processing unit 10 stores it in the magnetic disk device 6. The circuit drawing data with the input drawing number is selected from among the plurality of files of circuit drawing data, and access to the selected circuit drawing data is made possible from now on. If the circuit drawing data with the input drawing number does not exist in the magnetic disk device 6, the reason will be displayed on the CRT display 4 and the user will be prompted to input the drawing number again. In the next step 200, unique data such as model data of the PC to be used for this address assignment/assignment, and optionally specified data are input from the keyboard 2. This input data is then stored and memorized as PC-specific data and arbitrarily specified data in the magnetic disk device, and is used for subsequent processing. The details of the processing in step 200 are shown in the flowchart of FIG.

即ち、ステツプ200へと中央処理装置10の処
理が移るとまずステツプ201が実行され、既にPC
固有データが入力済みか否かを判断し、入力が終
了していなければステツプ202にてキーボード2
からのデータ入力を促した後にステツプ203、ス
テツプ204が実行され、入力が終了していればス
テツプ205へ進む。本作業を初めて行う回路図面
データの場合はこのPC固有データは未だ入力さ
れていないのでステツプ202以後が実行されるこ
とになる。ステツプ203では回路図面データの中
にアドレスの任意指定が必要なコイル又は接点が
あるか否かをオペレータのキーボード2入力によ
つて判断し、必要がある場合にはステツプ204を
実行してそのデータの入力を待ち、必要がないと
判断すると次のステツプ250へと進む。
That is, when the processing of the central processing unit 10 moves to step 200, step 201 is executed first, and the
It is determined whether or not the unique data has been input, and if the input has not been completed, the keyboard 2 is pressed in step 202.
After prompting the user to input data, steps 203 and 204 are executed, and if the input has been completed, the process advances to step 205. In the case of circuit drawing data for which this work is being performed for the first time, this PC-specific data has not yet been input, so steps after step 202 will be executed. In step 203, it is determined by the operator's keyboard 2 input whether there is a coil or contact whose address needs to be specified arbitrarily in the circuit drawing data, and if necessary, step 204 is executed to update the data. Waits for the input, and if it is determined that it is not necessary, proceeds to the next step 250.

従つて、ステツプ205は、任意指定データをス
テツプ204で入力後又はステツプ203で任意指定デ
ータの入力の必要がないと判断したとき、あるい
はステツプ201でPC固有データが既に入力済、即
ち対象としている回路図面データについて本作業
が2回目以後にあたる場合に実行されるものであ
る。ここでは上記各ステツプで設定、入力した
PC固有データまたは任意指定データに変更が必
要か否かをオペレータのキーボード2操作によつ
て判断し、変更がなければ本ステツプ200の処理
を全て終了する。そして変更がある場合にはステ
ツプ206以後の処理が実行されるのである。
Therefore, step 205 is performed after the optionally specified data has been input in step 204, or when it is determined in step 203 that there is no need to input the optionally specified data, or if the PC-specific data has already been input in step 201, that is, it is targeted. This work is executed when this work is performed for the second time or later on the circuit drawing data. Here, the settings and input in each step above are shown.
It is determined by the operator's operation of the keyboard 2 whether or not the PC-specific data or arbitrarily designated data needs to be changed, and if there is no change, the entire process of this step 200 is terminated. If there is a change, the processes after step 206 are executed.

まずステツプ206では今回の変更がPC固有デー
タの変更を必要としているのか否かを判断し、
PC固有データの変更であればステツプ207へ進
み、PC固有データの入力を促し、それ以外、即
ち任意指定データの変更であればステツプ208へ
進み、そのデータの入力を促し再度ステツプ205
へと処理は移行するのである。
First, in step 206, it is determined whether the current change requires a change in PC-specific data or not.
If the PC-specific data is to be changed, the process advances to step 207, where the user is prompted to input the PC-specific data; otherwise, if arbitrary specified data is to be changed, the process advances to step 208, where the user is prompted to input that data, and the process returns to step 205.
The processing will then move on.

このようにPC固有データ及び任意指定データ
の入力が終了するとステツプ205の判断でNOと
なり、ステツプ300以後のアドレスの自動割付・
付与処理が実行されるのである。
When the input of the PC-specific data and optionally specified data is completed in this way, the judgment in step 205 is NO, and the address is automatically assigned after step 300.
The granting process is executed.

アドレスの自動割付・付与処理は大別してステ
ツプ300のコイル一覧表作成とエラーチエツクA、
ステツプ400のアドレス割付とエラーチエツクB、
ステツプ500のアドレス付与とエラーチエツクC、
ステツプ600のアドレス割付表出力とエラーリス
ト出力の順で処理される。以下ステツプ順に処理
内容を説明する。
The automatic address assignment/assignment process can be roughly divided into steps 300: coil list creation, error check A,
Step 400 address assignment and error check B,
Step 500 address assignment and error check C,
Processing is performed in the order of outputting the address allocation table and outputting the error list in step 600. The processing contents will be explained below in order of steps.

第7図にステツプ300の流れ図を示す。まず、
ステツプ301にて予め磁気デイスク装置6内に用
意してあるコイル一覧表の記憶エリアをクリアす
る。第8図にこのコイル一覧表14の構成を示
す。コイル一覧表14は電気機器符号欄14A、
コイル種別欄14B、ページ欄14C、ライン欄
14D、アドレス欄14E、チエツク欄14Fか
らなる。次にステツプ302にて回路図面データの
1ページ分を読み出し、その中からステツプ303
にてコイルを検索する。そして、ステツプ304の
判断がされ、コイルがなければステツプ309へ進
み、コイルが見つかればステツプ304の判断は
YESとなり、次のステツプ305にてそのコイルが
使用するPCで使用可能かどうか、正しい電気機
器符号が付けられているかどうかをチエツクす
る。これが正しければさらにステツプ306にてそ
の電気機器符号が既にコイル一覧表の中にあるか
どうか、すなわち、コイルが重複していないかど
うかをチエツクする。コイルが重複していなけれ
ばステツプ307にて、入出力・ダミー・タイマ・
カウンタ・ラツチの種別、そのコイルの存在する
ページとラインと共にその電気機器符号をコイル
一覧表に追加したうえで、次のコイルを検索する
ためにステツプ303に戻る。ステツプ305およびス
テツプ306にてエラーと判断したときにはステツ
プ308にてそのエラーの内容をエラーチエツクA
としてエラーデータフアイル16に一時的に記憶
し、ステツプ303に戻る。エラーデータフアイル
16はエラーチエツクにて検出したエラーの内容
を後述するステツプ600でエラーリストとしてプ
リンタ8に出力するために一時的に記憶しておく
ためのフアイルで、後述するステツプ400、ステ
ツプ500でのエラーチエツクでも使用し、処理が
すべて終了すれば、不要となる。
A flow diagram of step 300 is shown in FIG. first,
At step 301, the storage area of the coil list prepared in advance in the magnetic disk device 6 is cleared. FIG. 8 shows the structure of this coil list 14. The coil list 14 has an electrical equipment code column 14A,
It consists of a coil type field 14B, a page field 14C, a line field 14D, an address field 14E, and a check field 14F. Next, in step 302, one page of circuit drawing data is read out, and step 303 reads out one page of circuit drawing data.
Search for coils at . Then, a decision is made in step 304, and if there is no coil, the process proceeds to step 309, and if a coil is found, the decision in step 304 is made.
YES, and in the next step 305 it is checked whether the coil can be used with the PC to be used and whether the correct electrical equipment code has been attached. If this is correct, it is further checked in step 306 whether the electrical equipment code is already in the coil list, that is, whether the coils are duplicated. If the coils are not duplicated, in step 307, the input/output, dummy, timer,
After adding the type of counter latch, the page and line where the coil exists, and the electrical equipment code to the coil list, the process returns to step 303 to search for the next coil. If an error is determined in step 305 and step 306, an error check A is performed to check the content of the error in step 308.
This is temporarily stored in the error data file 16, and the process returns to step 303. The error data file 16 is a file for temporarily storing the contents of errors detected by the error check in order to output them as an error list to the printer 8 in step 600, which will be described later. It is also used for error checking, and becomes unnecessary once all processing is completed.

次に、そのページ内にコイルがなくなれば、ス
テツプ309にて全ページ処理が終わつたかを判断
し、終わつていなければ再びステツプ302に戻つ
て、次のページの処理に進む。全ページ終われば
ステツプ300の処理は全て終了しステツプ400へと
進む。
Next, if there are no more coils in that page, it is determined in step 309 whether all pages have been processed, and if not, the process returns to step 302 and proceeds to process the next page. When all pages are completed, the processing in step 300 is completed and the process proceeds to step 400.

第9図にステツプ400の詳細な流れ図を示す。
ステツプ400ではステツプ300で作成された第8図
のコイル一覧表14の各電気機器符号にアドレスを
割り付けアドレス欄14Eにその値を入れる処理
をする。まずステツプ401にてコイル一覧表の中
から電気機器符号を1個取り出し、ステツプ402
にてその電気機器符号がアドレスの任意指定デー
タの中にあるかどうか検索する。任意指定されて
いればステツプ403でYESに進み、ステツプ404
で指定されたアドレスをアドレス欄14Eにセツ
トし、ステツプ405でそのアドレスが任意指定さ
れたことを表わす値をチエツク欄14Fにセツト
する。任意指定されていなければ、ステツプ403
でNOに進み、ステツプ406でコイルの種別毎に
アドレスを自動割付して、そのアドレスをアドレ
ス欄14Eにセツトする。アドレスの自動割付は
PC固有データで定められているコイルの種別毎
に使用できるアドレスの範囲のうち、若い番号の
アドレスから順次割付ける。1個の電気機器符号
の割付が終わると、ステツプ407にて全部終わつ
たかどうかを判断し、終わつていなければ、再び
ステツプ401に戻つて次の電気機器符号について
処理を繰り返す。ステツプ407の判断がYESとな
る時点ではコイル一覧表17のアドレス欄14E
にはアドレスが埋まり、かつ任意指定されたもの
はチエツク欄14Fに任意指定であることを示す
値がセツトされている。さらに自動割付で使用さ
れたアドレスの範囲も求まつている。そして、次
の処理として任意指定されたアドレスが自動割付
されたアドレスの範囲に重複しているかどうかを
チエツクする。まずステツプ408にてコイル一覧
表14から電気機器符号1個分の情報を取り出
し、ステツプ409にてチエツク欄14Fの値から
任意指定されたものかどうかを判断する。任意指
定されたものであれば、ステツプ410にてそのア
ドレスが自動割付されたアドレスの範囲と重複す
るかどうかを判別し、もし重複していれば、ステ
ツプ411にてエラーとして情報をエラーチエツク
Bとしてエラーデータフアイル16に記憶する。
ステツプ412では、後のステツプ500のためにチエ
ツク欄14Fを再びクリアしておく。1個分のチ
エツクが終わるとステツプ413にて全部終わつた
かどうかを判断し、終わつていなければ、再びス
テツプ408に戻つてチエツクを繰り返す。全電気
機器符号についてチエツクが終わるとステツプ
400は終了し、次のステツプ500の処理が始められ
る。
A detailed flowchart of step 400 is shown in FIG.
In step 400, an address is assigned to each electrical equipment code in the coil list 14 of FIG. 8 created in step 300, and the value is entered in the address field 14E. First, in step 401, one electrical equipment code is extracted from the coil list, and in step 402
Search to see if the electrical equipment code is included in the optional address data. If it is optionally specified, proceed to YES in step 403, and proceed to step 404.
The specified address is set in the address column 14E, and in step 405, a value indicating that the address has been arbitrarily specified is set in the check column 14F. If not specified, step 403
The process proceeds to NO, and in step 406, an address is automatically assigned for each type of coil, and the address is set in the address column 14E. Automatic address assignment
Within the range of addresses that can be used for each type of coil specified in the PC-specific data, addresses are allocated sequentially starting from the lowest number. When one electrical equipment code has been assigned, it is determined in step 407 whether all assignments have been completed, and if not, the process returns to step 401 to repeat the process for the next electrical equipment code. When the judgment in step 407 is YES, the address column 14E of the coil list 17
If the address is filled in and the address is arbitrarily specified, a value indicating that the address is arbitrarily specified is set in the check field 14F. Furthermore, the range of addresses used in automatic allocation is also being determined. Then, as the next process, it is checked whether the arbitrarily specified address overlaps the range of automatically allocated addresses. First, in step 408, information for one electrical equipment code is extracted from the coil list 14, and in step 409, it is determined from the value in the check column 14F whether it has been arbitrarily designated. If it is arbitrarily specified, it is determined in step 410 whether the address overlaps with the automatically assigned address range, and if it is, in step 411 the information is checked as an error and checked for error. It is stored in the error data file 16 as .
In step 412, the check field 14F is cleared again for the subsequent step 500. When the check for one item is completed, it is determined in step 413 whether all the checks have been completed, and if not, the process returns to step 408 and the check is repeated. After checking all electrical equipment codes, the step
Step 400 ends and the next step 500 begins.

第10図にステツプ500の詳細な流れ図を示す。
ステツプ500では再び回路図面データを読み出し
てその中のすべてのコイル・接点に割付をしたア
ドレスを付与する処理を行う。まずステツプ501
にて回路図面データの1ページ分を読み出し、そ
の中からステツプ502にてコイルまたは接点を検
索する。コイルまたは接点が見つかれば、ステツ
プ503でYESに進み、ステツプ504にてそれがコ
イルなのか接点なのかを区別する。接点でなけれ
ば、ステツプ508へ進み、接点であればステツプ
505にてその接点が瞬時接点の場合、使用するPC
で使用可能かどうか、また正しい電気機器符号が
付けられているかどうかをチエツクする。これが
正しければさらに、ステツプ506でその電気機器
符号がコイル一覧表の中にあるかどうかをチエツ
クする。コイル一覧表の中にあればその電気機器
符号を持つ接点が存在することを示す値をチエツ
ク欄14Fにセツトし、ステツプ508でアドレス
欄14Eに割付けられているアドレスを読み出し
てある回路図面データのアドレス欄に、接点の種
類(普通の接点、瞬時接点など)に合わせて付与
する。ステツプ506にてコイル一覧表の中にない
接点の場合は、ステツプ509にてその電気機器符
号がアドレスの任意指定データの中にあるかどう
かを検索する。任意指定されていればステツプ
510でYESに進み、ステツプ511で指定されたア
ドレスを接点の種類に合わせて付与する。ステツ
プ505でエラーと判断された場合、またはステツ
プ506でコイル一覧表の中になかつた場合にはス
テツプ512にてエラー情報を書き込む。ここでス
テツプ511にてアドレスを付与した場合にもエラ
ー情報を書き込むのは、その接点に対応するコイ
ルが回路図面データ中には存在しなかつたことを
オペレータに知らせるべく、エラーリストの中に
出力するためである。一方ステツプ504にてコイ
ルであつた場合には、既にチエツクはステツプ
300にて済ませているので、コイル一覧表の中か
ら該当する電気機器符号を検索し、そのアドレス
欄14Eに割付けられているアドレスをステツプ
508で付与する。こうして1個分のコイルまたは
接点についてアドレスの付与が終われば、次のコ
イルまたは接点を検索するために再びステツプ
502に戻る。ステツプ503にてコイルまたは接点が
なくなれば、その1ページ分のアドレス付与は終
了したのでステツプ513にてその1ページ分の回
路図面データを磁気デイスク装置6の元の場所に
記憶し直す。そしてステツプ514にて全回路図面
データのページについて処理が終わつたかを判断
し、終わつていなければ、ステツプ501に戻つて
次のページのアドレス付与処理に進む。全ページ
終了した後にはコイル一覧表14のチエツク欄14
Fには接点が存在した電気機器符号にのみそのこ
とを表わす値が入つており、次の処理として対応
する接点のないコイルのチエツクを行う。まずス
テツプ515にてコイル一覧表の中から電気機器符
号1個分の情報を取り出し、ステツプ516にてチ
エツク欄14Fの値から対応する接点が存在する
かどうかを判断する。対応する接点が存在してい
なければ、ステツプ517にてエラーチエツクCの
エラーとしてその情報を書き込む。ステツプ518
にて全電気機器符号についてチエツクが終わつた
かどうかを判断し、終わつていなければ再びステ
ツプ515に戻つてチエツクを繰り返す。全電気機
器符号についてチエツクが終わるとステツプ500
は終了する。
A detailed flowchart of step 500 is shown in FIG.
In step 500, the circuit drawing data is read out again and a process of assigning assigned addresses to all the coils and contacts therein is performed. First step 501
One page of circuit drawing data is read out in step 502, and a coil or contact is searched from therein in step 502. If a coil or contact is found, the process advances to YES in step 503, and in step 504 it is determined whether it is a coil or a contact. If it is not a contact, proceed to step 508; if it is a contact, proceed to step 508.
If the contact is a momentary contact in 505, the PC used
Check to see if it can be used with the device and if it has the correct electrical equipment code. If this is correct, it is further checked in step 506 whether the electrical equipment code is in the coil list. If it is in the coil list, a value indicating that there is a contact with that electrical equipment code is set in the check field 14F, and in step 508, the address assigned to the address field 14E is read out and the circuit drawing data is read out. Assign it to the address field according to the type of contact (ordinary contact, instantaneous contact, etc.). If the contact is not included in the coil list in step 506, a search is made in step 509 to see if the electrical equipment code is included in the address arbitrary designation data. Step if optional
The process advances to YES in step 510, and the specified address is assigned in step 511 according to the type of contact. If an error is determined in step 505, or if the coil is not in the coil list in step 506, error information is written in step 512. Here, even if an address is assigned in step 511, error information is written in the error list in order to inform the operator that the coil corresponding to that contact does not exist in the circuit drawing data. This is to do so. On the other hand, if it is a coil at step 504, the check has already been completed at step 504.
300, so search for the corresponding electrical equipment code in the coil list and step through the address assigned to the address field 14E.
Granted with 508. Once the address has been assigned for one coil or contact, repeat the steps to search for the next coil or contact.
Return to 502. If the coil or contact disappears in step 503, addressing for that one page has been completed, and therefore, in step 513, the circuit diagram data for that one page is re-stored in the original location of the magnetic disk device 6. Then, in step 514, it is determined whether processing has been completed for all pages of circuit drawing data, and if it has not been completed, the process returns to step 501 and proceeds to address assignment processing for the next page. After completing all pages, check column 14 of coil list 14.
F contains a value representing only the electric equipment code in which a contact exists, and the next process is to check for coils that do not have a corresponding contact. First, in step 515, information for one electrical equipment code is extracted from the coil list, and in step 516, it is determined from the value in the check field 14F whether a corresponding contact exists. If the corresponding contact does not exist, the information is written as an error check C error in step 517. step 518
At step 515, it is determined whether or not all electrical equipment codes have been checked. If not, the process returns to step 515 and the check is repeated. Step 500 after checking all electrical equipment codes
ends.

最後に実行されるステツプ600ではコイル一覧
表14の中の情報を回路図面データの中のコイルの
位置に付けられた注釈文と共に、アドレス順の見
易い表の形式にてアドレス割付表としてプリンタ
8に出力する。さらにエラーデータフアイル16
の中に記憶されたエラー情報をページ及びライン
順に並べ替えてエラーリストとしてやはりプリン
タ8に出力してアドレスの自動割付・付与の全処
理を終了する。
In step 600, which is executed last, the information in the coil list 14 is sent to the printer 8 as an address assignment table in the form of an easy-to-read table in the order of addresses, along with annotations added to the positions of the coils in the circuit drawing data. Output. Furthermore, error data file 16
The error information stored therein is rearranged in page and line order and output as an error list to the printer 8, thereby completing the entire process of automatic address assignment and assignment.

以上説明したように本実施例のPCアドレスの
自動割付・付与装置は、複雑かつミスの多かつた
PCアドレスの割付・付与を自動的に行えること
はもちろんのこと、その割付・付与に際して予め
定められているアドレスは任意指定データとして
記憶することから製作中の制御盤やPCの並列運
転等を必要とするものに対しても使用できる優れ
た装置となるのである。しかも、回路図面中に対
応するコイルを有しない接点等の特殊な回路構成
要素は最後にプリンタ8によるハードコピーが得
られるため、関連する作業の能率までも向上させ
ることができる等効果も有するのである。
As explained above, the automatic PC address assignment/assignment device of this embodiment is complicated and prone to errors.
Not only can PC addresses be automatically assigned and assigned, but the predetermined addresses for assignment and assignment are stored as optionally specified data, which requires parallel operation of the control panel and PC being manufactured. This makes it an excellent device that can be used for any purpose. Furthermore, special circuit components such as contacts that do not have a corresponding coil in the circuit drawing can be printed in hard copy by the printer 8 at the end, which also has the effect of improving the efficiency of related work. be.

[発明の効果] 以上、実施例を挙げて詳述したごとく、本発明
のPCアドレスの自動割付・付与装置は、 PCの機能を表す固有のデータを記憶する固有
データ記憶手段と、当該PCが行うシーケンス制
御上の構成要素の回路図面データを記憶する回路
図面データ記憶手段とを備え、該固有データに基
づいて該回路図面データの構成要素にアドレスを
自動的に割付及び付与するPCアドレスの自動割
付・付与装置において、 前記回路図面データの構成要素の中で、予め任
意に指定されたアドレスが割付・付与された構成
要素及び該指定アドレスを記憶する任意指定デー
タ記憶手段と、 該任意指定データ記憶手段に記憶された構成要
素については優先して上記指定アドレスを割付・
付与すると共に該指定アドレスとの重複を検出及
び回避しつつ、前記固有データ記憶手段の固有デ
ータに基づいて前記図面データの構成要素にアド
レスを割付及び付与するアドレス割付・付与手段
とを備えることを特徴とするものである。
[Effects of the Invention] As described above in detail with reference to embodiments, the automatic PC address assignment/assignment device of the present invention includes a unique data storage means for storing unique data representing the functions of a PC, and a circuit drawing data storage means for storing circuit drawing data of components on sequence control to be performed, and automatically assigning and assigning addresses to the components of the circuit drawing data based on the unique data. In the allocation/assignment device, among the constituent elements of the circuit drawing data, a component to which an address arbitrarily designated in advance is assigned/assigned, an arbitrarily designated data storage means for storing the designated address, and the arbitrarily designated data. For the components stored in the storage means, the above specified address is assigned with priority.
and address assignment/assignment means for assigning and assigning addresses to constituent elements of the drawing data based on the unique data of the unique data storage means while detecting and avoiding duplication with the designated address. This is a characteristic feature.

従つて、従来人手による作業のため作業能率が
低く、ミスの多かつたPCアドレスの割付・付与
が自動的に実行でき大幅な能率向上が達成でき
る。
Therefore, the assignment and assignment of PC addresses, which has traditionally been done manually, resulting in low work efficiency and many errors, can be automatically executed, resulting in a significant improvement in efficiency.

また、回路図面中の構成要素の内、任意指定デ
ータ記憶手段に任意指定データとして記憶されて
いる構成要素については、優先してアドレス割
付・付与が実行され、予め指定されている指定ア
ドレスが割付・付与されるので、回路図面中に予
めアドレスの特定される構成要素や対応するコイ
ルを持たない接点等の特殊な構成要素がある場合
には、これら構成要素を任意指定データとして指
定アドレスと共に記憶しておくことにより、これ
ら構成要素のアドレスを変更することなくアドレ
ス割付・付与を実行することができる。
Furthermore, among the components in the circuit drawing, address assignment/assignment is performed with priority for components stored as arbitrarily designated data in the arbitrarily designated data storage means, and a designated address designated in advance is assigned.・Since the address is assigned, if there are special components such as components whose addresses are specified in advance or contacts that do not have corresponding coils in the circuit drawing, these components can be stored as arbitrary specified data along with the specified address. By doing so, it is possible to allocate and assign addresses without changing the addresses of these components.

また、全てのデータは記憶手段により記憶され
ているので、回路の修正等により再びアドレスの
割付・付与処理を必要とするときにも任意指定デ
ータを再入力する必要等はなく、処理実行の指示
を装置に与えるだけでよく、アドレスが付与され
た回路図面データから自動的にPCプログラムを
作成してカセツト磁気テープに書き込むことも可
能となる等その効果には大きなものがある。
In addition, since all data is stored in the storage means, there is no need to re-input arbitrary specified data even when address assignment/assignment processing is required again due to circuit modification etc. This has great effects, such as the ability to automatically create a PC program from circuit drawing data to which an address has been assigned and write it onto a cassette magnetic tape.

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

第1図は本発明の基本的構成図、第2図は実施
例の構成図、第3図はその回路図面データの説明
図、第4図はその任意指定データの説明図、第5
図はその処理のメイン流れ図、第6図はそのデー
タ入力部の流れ図、第7図はそのコイル一覧表作
成部の流れ図、第8図はコイル一覧表の説明図、
第9図はそのアドレス割付部の流れ図、第10図
はそのアドレス付与部の流れ図を示す。 M1……固有データ記憶手段、M2……回路図
面データ記憶手段、M3……任意指定データ記憶
手段、M4……アドレス割付・付与手段、2……
キーボード、4……CRTデイスプレイ、6……
磁気デイスク装置、8……プリンタ、10……中
央処理装置。
Fig. 1 is a basic configuration diagram of the present invention, Fig. 2 is a configuration diagram of an embodiment, Fig. 3 is an explanatory diagram of its circuit drawing data, Fig. 4 is an explanatory diagram of its arbitrarily specified data, and Fig. 5 is an explanatory diagram of its arbitrarily specified data.
The figure is a main flowchart of the process, Figure 6 is a flowchart of the data input section, Figure 7 is a flowchart of the coil list creation section, and Figure 8 is an explanatory diagram of the coil list.
FIG. 9 is a flowchart of the address assignment section, and FIG. 10 is a flowchart of the address assignment section. M1...Unique data storage means, M2...Circuit drawing data storage means, M3...Arbitrary specified data storage means, M4...Address allocation/giving means, 2...
Keyboard, 4...CRT display, 6...
Magnetic disk device, 8... printer, 10... central processing unit.

Claims (1)

【特許請求の範囲】 1 PCの機能を表す固有のデータを記憶する固
有データ記憶手段と、当該PCが行うシーケンス
制御上の構成要素の回路図面データを記憶する回
路図面データ記憶手段とを備え、該固有データに
基づいて該回路図面データの構成要素にアドレス
を自動的に割付及び付与するPCアドレスの自動
割付・付与装置において、 前記回路図面データの構成要素の中で、予め任
意に設定された指定アドレスが割付・付与された
構成要素及び該指定アドレスを記憶する任意指定
データ記憶手段と、 該任意指定データ記憶手段に記憶された構成要
素については優先して上記指定アドレスを割付・
付与すると共に、該指定アドレスとの重複を検出
及び回避しつつ、前記固有データ記憶手段の固有
データに基づいて前記図面データの構成要素にア
ドレスを割付及び付与するアドレス割付・付与手
段と、 を備えることを特徴とするPCアドレスの自動割
付・付与装置。
[Scope of Claims] 1. A computer system comprising: a unique data storage means for storing unique data representing the functions of a PC; and a circuit diagram data storage means for storing circuit diagram data of components for sequence control performed by the PC; In an automatic PC address assignment/assignment device that automatically assigns and assigns addresses to the constituent elements of the circuit drawing data based on the unique data, the PC address automatically assigns and assigns addresses to the constituent elements of the circuit drawing data that are arbitrarily set in advance. A component to which a designated address has been assigned and assigned, an arbitrarily designated data storage means for storing the designated address, and a component stored in the arbitrarily designated data storage means is assigned the designated address with priority.
address assignment/assignment means for assigning and assigning addresses to constituent elements of the drawing data based on the unique data of the unique data storage means while detecting and avoiding duplication with the specified address; An automatic PC address assignment/assignment device characterized by:
JP22105484A 1984-10-19 1984-10-19 Automatic allotment/application device for program controller address Granted JPS6198403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22105484A JPS6198403A (en) 1984-10-19 1984-10-19 Automatic allotment/application device for program controller address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22105484A JPS6198403A (en) 1984-10-19 1984-10-19 Automatic allotment/application device for program controller address

Publications (2)

Publication Number Publication Date
JPS6198403A JPS6198403A (en) 1986-05-16
JPH0434767B2 true JPH0434767B2 (en) 1992-06-09

Family

ID=16760768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22105484A Granted JPS6198403A (en) 1984-10-19 1984-10-19 Automatic allotment/application device for program controller address

Country Status (1)

Country Link
JP (1) JPS6198403A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5878231A (en) * 1981-11-04 1983-05-11 Toshiba Corp Program automatic generating method
JPS599769A (en) * 1982-07-08 1984-01-19 Toyota Motor Corp Automatic correcting device of drawing
JPS59153204A (en) * 1983-02-18 1984-09-01 Toyota Motor Corp Programming system of programmable controller

Also Published As

Publication number Publication date
JPS6198403A (en) 1986-05-16

Similar Documents

Publication Publication Date Title
EP0052712A2 (en) Method for identifying a process in a data processing system
JPH0434767B2 (en)
JPH025102A (en) Input system for pc rudder graphic
JP3463331B2 (en) Menu selection method
JPH0692153B2 (en) Method for clearing mathematical formulas in document processing system
JP3432324B2 (en) Program creation device
JPH03641B2 (en)
JPS63300302A (en) Program input display device for programmable controller
JPH0766374B2 (en) Document management device
JPH103417A (en) File change history management system
JPH0689299A (en) Automatic input picture setting system
JPS59177649A (en) Data processing device
JP3360965B2 (en) Circuit diagram part number assignment device
JP3047400B2 (en) Data processing device
JP3143909B2 (en) File processing device
JP2692196B2 (en) Test data editing method
JPH0720721Y2 (en) Programmable controller programmer
JPH0212303A (en) Peripheral equipment for programmable controller
JPH03264252A (en) Working slip automatic issuing system
JPS62282372A (en) Library management system
JPH04199470A (en) Circuit design device
JPH01103776A (en) System for managing library of cad system
JPH024288A (en) Image processor and method for managing its font file
JPH05298382A (en) Information display system
JPH0554046A (en) Device for preparing parts table and purchase specification