JP4362777B2 - Programming device, symbol automatic registration method, program, and recording medium - Google Patents

Programming device, symbol automatic registration method, program, and recording medium Download PDF

Info

Publication number
JP4362777B2
JP4362777B2 JP2004337446A JP2004337446A JP4362777B2 JP 4362777 B2 JP4362777 B2 JP 4362777B2 JP 2004337446 A JP2004337446 A JP 2004337446A JP 2004337446 A JP2004337446 A JP 2004337446A JP 4362777 B2 JP4362777 B2 JP 4362777B2
Authority
JP
Japan
Prior art keywords
input
output
name
symbol
database
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
Application number
JP2004337446A
Other languages
Japanese (ja)
Other versions
JP2006146670A (en
Inventor
卓寿 森田
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2004337446A priority Critical patent/JP4362777B2/en
Publication of JP2006146670A publication Critical patent/JP2006146670A/en
Application granted granted Critical
Publication of JP4362777B2 publication Critical patent/JP4362777B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルコントローラのプログラミング装置およびシンボル自動登録方法に関する。   The present invention relates to a programming device for a programmable controller and a symbol automatic registration method.

従来、入出力機器の先頭アドレスにシンボル名を付与するシンボル登録は、アドレス毎にシンボル名を対応させている(例えば、非特許文献1参照)。
図8において、110は入力装置(キーボード)、120は表示装置、130は主制御部(CPU)、140は記憶領域(メモリ)、150はシンボルを管理しているシンボルデータベース、160はプログラマブルコントローラとなっている。また、121および122は、それぞれ表示装置120に表示される構成情報画面およびシンボル登録画面である。141および142は、それぞれ記憶領域(メモリ)140上の構成情報記憶領域およびンボル登録情報記憶領域である。
図8において、主制御部(CPU)130によって、シンボルデータベース150を読み込み、登録されているシンボルと対応するメモリアドレスをシンボル登録情報記憶領域142に展開する。そして、通信ケーブルで接続されたプログラマブルコントローラ160から、構成情報として定義したファイルを読み込み、構成情報記憶領域141に展開する。これら展開された情報は、表示装置120に表示される。すなわち、構成情報記憶領域141は構成情報画面121として、シンボル登録情報記憶領域142はシンボル登録画面122として表示される。
図9において、まず、入力装置(キーボード)110で、表示装置120に表示した構成情報画面121から機能モジュールの構成情報を参照し、シンボル登録画面122より、機能モジュールに対するシンボル名称と対応するメモリアドレスを入力する(Step1)。次に、入力されたシンボル名称とメモリアドレスがシンボル登録情報記憶領域142に書き込まれる(Step2)。最後に、シンボル登録画面122から保存操作を行うと、シンボル登録情報記憶領域に格納されているシンボル名称と対応するメモリアドレスがシンボルデータベース150に書き込まれる(Step3)。
このように、従来のプログラマブルコントローラのシンボル登録方法は、プログラマブルコントローラの機能モジュールの構成情報画面121を参照しながら、シンボル登録画面122を使用し、機能モジュールに対してシンボル名称と対応するメモリアドレスを手入力で入力するという手順がとられていた。
Conventionally, in symbol registration for assigning a symbol name to the head address of an input / output device, the symbol name is associated with each address (see, for example, Non-Patent Document 1).
In FIG. 8, 110 is an input device (keyboard), 120 is a display device, 130 is a main control unit (CPU), 140 is a storage area (memory), 150 is a symbol database for managing symbols, 160 is a programmable controller, It has become. Reference numerals 121 and 122 denote a configuration information screen and a symbol registration screen displayed on the display device 120, respectively. Reference numerals 141 and 142 denote a configuration information storage area and a symbol registration information storage area on the storage area (memory) 140, respectively.
In FIG. 8, the main control unit (CPU) 130 reads the symbol database 150 and expands the memory address corresponding to the registered symbol in the symbol registration information storage area 142. Then, a file defined as configuration information is read from the programmable controller 160 connected by a communication cable, and is expanded in the configuration information storage area 141. The expanded information is displayed on the display device 120. That is, the configuration information storage area 141 is displayed as the configuration information screen 121, and the symbol registration information storage area 142 is displayed as the symbol registration screen 122.
In FIG. 9, first, the configuration information of the functional module is referred to from the configuration information screen 121 displayed on the display device 120 with the input device (keyboard) 110, and the memory address corresponding to the symbol name for the functional module from the symbol registration screen 122. Is input (Step 1). Next, the input symbol name and memory address are written in the symbol registration information storage area 142 (Step 2). Finally, when a save operation is performed from the symbol registration screen 122, the memory address corresponding to the symbol name stored in the symbol registration information storage area is written in the symbol database 150 (Step 3).
As described above, the conventional programmable controller symbol registration method uses the symbol registration screen 122 while referring to the configuration information screen 121 of the functional module of the programmable controller, and assigns the memory address corresponding to the symbol name to the functional module. The procedure of inputting manually was taken.

一方、シンボル名を基準アドレスとして相対アドレスを付加したシンボルオフセット形式で表現することで、制御プログラム中に使用する全ての入出力機器に対応してシンボル名を登録する必要がなく、入力作業をより簡便にすることができる技術が開示されている(例えば、特許文献1参照)。
「マシンコントローラMP900シリーズ 新ラダーエディタユーザーズマニュアル」株式会社安川電機出版、2001年9月 p.5−2 特許第3477893号公報
On the other hand, by expressing the symbol name in the symbol offset format with the relative address added as the reference address, it is not necessary to register the symbol name for all input / output devices used in the control program, and the input work is more efficient. A technique that can be simplified is disclosed (for example, see Patent Document 1).
"Machine Controller MP900 Series New Ladder Editor User's Manual" Yaskawa Electric Publishing Co., Ltd., September 2001 p. 5-2 Japanese Patent No. 3477893

従来のシンボル登録は、上記いずれの方法によっても、シンボル名称とそれに割り付けるレジスタ名称を直接手入力する作業が少なからず発生する。そのため、割り付けるレジスタに間違いが発生したり、登録するのに時間がかかったりするという問題があった。 また、プログラミング完了後に機能モジュールの増設や入れ替えを行うと、各機能モジュールの先頭アドレスが変わり、シンボル登録作業をやり直す必要があった。
本発明はこのような問題点に鑑みてなされたものであり、プログラマブルコントローラの各スロットに装着された機能モジュールの名称と、各機能モジュールに割り付けられた先頭メモリアドレスを読み込み、機能モジュール名称をシンボル名として、先頭メモリアドレスをシンボルに割り付けるメモリアドレスとすることにより、自動的にシンボルをデータベースに登録することができる方法を提供することを目的とする。
Conventional symbol registration requires not only a few manual operations for directly inputting a symbol name and a register name to be assigned to the symbol name. For this reason, there are problems that an error occurs in the register to be allocated and that it takes time to register. In addition, if function modules are added or replaced after programming is completed, the start address of each function module changes, and it is necessary to perform symbol registration again.
The present invention has been made in view of such problems, and reads the name of a functional module installed in each slot of the programmable controller and the head memory address assigned to each functional module, and designates the functional module name as a symbol. An object of the present invention is to provide a method capable of automatically registering a symbol in a database by using a first memory address as a memory address assigned to the symbol as a name.

請求項1に記載の発明は、プログラマブルコントローラの各スロットに装着された機能モジュールの名称と各機能モジュールに割り付けられたプログラマブルコントローラの先頭メモリアドレスとが定義される構成情報ファイルが記憶されたプログラマブルコントローラのプログラミング装置であって、前記プログラマブルコントローラに接続されるとともに、前記プログラマブルコントローラのメモリアドレスに割り付けられたシンボルを管理するシンボルデータベースが記憶された記憶手段を備えたプログラミング装置におけるシンボル登録方法において、入出力点数と入出力サイズと入出力名称の情報からなる入出力情報と前記機能モジュールの名称とがあらかじめ登録された入出力情報データベースが記憶され、前記構成情報ファイルから前記機能モジュールの名称と割り付けられた先頭メモリアドレスが読み込まれ、前記読み込まれた機能モジュールの名称に基づいて前記入出力情報データベースが検索され、前記検索されて読み込まれた入出力情報の入出力名称に基づいて前記入出力名称がシンボル名称として前記シンボルデータベースに登録され、前記検索されて読み込まれた入出力情報の入出力点数と入出力サイズに基づいて前記シンボル名称に対応するメモリアドレスが前記シンボルデータベースに登録される、という手順で処理されることを特徴とするものである。   The invention according to claim 1 is a programmable controller in which a configuration information file is defined in which names of functional modules installed in each slot of the programmable controller and a leading memory address of the programmable controller assigned to each functional module are defined. A symbol registration method in a programming device comprising a storage means connected to the programmable controller and storing a symbol database for managing a symbol assigned to a memory address of the programmable controller. An input / output information database in which input / output information including information on the number of output points, input / output size and input / output name, and the names of the functional modules are stored in advance is stored, and the configuration information file is stored. The name of the functional module and the assigned top memory address are read from, the input / output information database is searched based on the name of the read functional module, and the input / output of the input / output information that has been searched and read The input / output name is registered in the symbol database as a symbol name based on the name, and the memory address corresponding to the symbol name is input based on the input / output points and the input / output size of the input / output information retrieved and read. It is processed by the procedure of registering in the symbol database.

請求項2に記載の発明は、プログラマブルコントローラのメモリアドレスに割り付けられたシンボルを管理するシンボルデータベースと前記プログラマブルコントローラの機能モジュールの入出力情報を定義した入出力情報データベースとを記憶した記憶手段を備えるとともに、前記機能モジュールの構成情報を定義した構成情報ファイルが記憶されたプログラマブルコントローラに接続されたプログラミング装置において、前記構成情報ファイルは前記機能モジュールの名称と前記機能モジュールに割り付けられた先頭メモリアドレスとから構成され、前記入出力データベースは前記機能モジュールの名称と前記機能モジュールの入出力点数と前記機能モジュールの入出力名称と前記機能モジュールの入出力サイズとから構成され、前記構成情報ファイルおよび前記入出力情報データベースに基づいて、シンボルを前記シンボルデータベースに登録する自動登録手段を備えたことを特徴とするものである。
請求項3に記載の発明は、前記自動登録手段は、前記入出力名称をシンボル名称として前記シンボルデータベースに登録し、前記シンボル名称に対応するメモリアドレスを前記シンボルデータベースに登録することを特徴とするものである。
According to a second aspect of the present invention, there is provided storage means for storing a symbol database that manages symbols assigned to memory addresses of the programmable controller and an input / output information database that defines input / output information of functional modules of the programmable controller. In addition, in the programming device connected to the programmable controller in which the configuration information file defining the configuration information of the functional module is stored, the configuration information file includes a name of the functional module and a head memory address assigned to the functional module. The input / output database includes the name of the functional module, the number of input / output points of the functional module, the input / output name of the functional module, and the input / output size of the functional module. Based on the information file and the input information database, it is characterized in that it comprises an automatic registration means for registering the symbols to the symbol database.
The invention according to claim 3 is characterized in that the automatic registration means registers the input / output name as a symbol name in the symbol database and registers a memory address corresponding to the symbol name in the symbol database. Is.

請求項1、2、3に記載の発明によると、シンボルデータベースにおいて、入出力情報データベースから読み込んだ入出力の点数とサイズと名称から、機能モジュールの入出力に対して、シンボルとそれに割り付ける先頭メモリアドレスをシンボルデータベースに自動登録することができるので、プログラミングの効率化を図ることができる。   According to the first, second, and third aspects of the present invention, in the symbol database, the symbol and the leading memory allocated to the input / output of the functional module based on the input / output points, size and name read from the input / output information database. Since the address can be automatically registered in the symbol database, the programming efficiency can be improved.

以下、本発明の方法の具体的実施例について、図に基づいて説明する。   Hereinafter, specific examples of the method of the present invention will be described with reference to the drawings.

図1は、本発明の方法を実施するプログラミング装置の構成を示す図である。図において、5はシンボルデータベースで、登録されたシンボルとメモリアドレスが管理されている。シンボルデータベース5は、データベース登録数が空の状態でシンボルデータベースのテンプレートとしてあらかじめプログラミング装置に備わっており、プログラミングの開始時に、テンプレートをロードして生成される。
6は入出力情報データベースで、機能モジュールの入出力情報を管理している。ここで、入出力情報とは、機能モジュールの名称と入出力点数、そして、各入出力の名称とサイズであり、例えば、機能モジュールの名称:DI、入出力点数:2点、1点目の入出力名称:DI_Input01、1点目のサイズ:1、2点目の入出力名称:DI_Input02、2点目のサイズ:1等を情報として管理している。入出力情報データベースは、あらかじめ全機能モジュールの入出力情報を登録し、プログラミング装置に備わっている。シンボルデータベース5および入出力データベース6は磁気記憶装置等の記憶手段によって記憶されている。
7はプログラマブルコントローラであり、各スロットに装着された機能モジュール71によって構成されている。プログラマブルコントローラ7は、主制御部(CPU)3と通信ケーブルで接続されている。また、プログラマブルコントローラ7上の記憶手段には、構成情報ファイルが記憶されている(図示しない)。ここで、構成情報ファイルとは、プログラミング装置から各スロットの構成情報を入力することによって生成されるファイルである。
FIG. 1 is a diagram showing the configuration of a programming device for implementing the method of the present invention. In the figure, reference numeral 5 denotes a symbol database which manages registered symbols and memory addresses. The symbol database 5 is preliminarily provided in the programming device as a symbol database template when the number of database registrations is empty, and is generated by loading the template at the start of programming.
Reference numeral 6 denotes an input / output information database, which manages input / output information of functional modules. Here, the input / output information includes the name and the number of input / output points of the functional module, and the name and size of each input / output. For example, the name of the functional module: DI, the number of input / output points: 2 points, the first point Input / output name: DI_Input01, first point size: 1, second input / output name: DI_Input02, second point size: 1 etc. are managed as information. The input / output information database registers input / output information of all function modules in advance and is provided in the programming device. The symbol database 5 and the input / output database 6 are stored by storage means such as a magnetic storage device.
Reference numeral 7 denotes a programmable controller, which includes a functional module 71 mounted in each slot. The programmable controller 7 is connected to the main control unit (CPU) 3 via a communication cable. In addition, a configuration information file is stored in the storage means on the programmable controller 7 (not shown). Here, the configuration information file is a file generated by inputting configuration information of each slot from the programming device.

1は入力装置(キーボード)、2は表示装置、4は記憶領域(メモリ)で、いずれも主制御部(CPU)3に接続されている。
41はメモリ4上に設けられた構成情報記憶領域で、後述する手順に従い、構成情報ファイルが展開される。ここで、構成情報記憶領域41に展開された構成情報ファイルのデータ構成図を図2に示す。図2において、411は、スロット番号、412は機能モジュール名称、413は割り振られた機能モジュールの先頭メモリアドレスである。
42はメモリ4上のシンボル登録情報記憶領域で、後述する手順に従い、シンボルデータベース5が展開される。ここで、登録情報記憶領域42に展開されたシンボルデータベース5のデータ構成図を図3に示す。図3において421は、シンボルの登録番号、422はシンボル名称、423はシンボルに割り付けられたメモリアドレスである。ここで、メモリアドレス423は、シンボル付与対象が機能モジュールであるとき(図3における登録番号1〜7)は「先頭」メモリアドレス、入出力であるとき(図3における登録番号8〜)はメモリアドレスを示す。
43はメモリ4上の入出力情報記憶領域で、後述する手順に従い、入出力情報データベース6が展開される。ここで、入出力情報記憶領域43に展開された入出力情報データベース6のデータ構成図を図4に示す。図4において、431は、機能モジュール名称、432は入出力点数、433は入出力の各点に対する入出力名称、434は入出力のサイズであり、メモリデータ長をWORD(2Byte)にしたときのデータサイズである。
Reference numeral 1 denotes an input device (keyboard), 2 denotes a display device, and 4 denotes a storage area (memory), both of which are connected to a main control unit (CPU) 3.
A configuration information storage area 41 is provided on the memory 4, and a configuration information file is expanded in accordance with a procedure described later. Here, a data configuration diagram of the configuration information file developed in the configuration information storage area 41 is shown in FIG. In FIG. 2, 411 is a slot number, 412 is a function module name, and 413 is a top memory address of the allocated function module.
Reference numeral 42 denotes a symbol registration information storage area on the memory 4, and a symbol database 5 is developed in accordance with a procedure to be described later. Here, a data configuration diagram of the symbol database 5 developed in the registration information storage area 42 is shown in FIG. In FIG. 3, 421 is a symbol registration number, 422 is a symbol name, and 423 is a memory address assigned to the symbol. Here, the memory address 423 is the “first” memory address when the symbol assignment target is a functional module (registration numbers 1 to 7 in FIG. 3), and the memory when it is an input / output (registration numbers 8 to in FIG. 3). Indicates an address.
Reference numeral 43 denotes an input / output information storage area on the memory 4, and the input / output information database 6 is developed in accordance with a procedure to be described later. Here, FIG. 4 shows a data configuration diagram of the input / output information database 6 developed in the input / output information storage area 43. In FIG. 4, 431 is a function module name, 432 is the number of input / output points, 433 is an input / output name for each input / output point, 434 is an input / output size, and the memory data length is set to WORD (2 bytes). The data size.

図5は本発明のプログラミング装置におけるシンボル登録の処理手順を示すフローチャートである。また、図6は、図5におけるStep1の詳細な手順を示すフローチャートである。
以下、図5および図6を用いて本発明の方法を、順を追って説明する。
まず、シンボルデータベース5に登録されているシンボル名称と、シンボルに割り付けられているメモリアドレスをシンボル登録情報記憶領域42に展開する(Step1)。Step1において、まず、シンボルデータベースから登録件数を取得し、登録の順にシンボル名称と、メモリアドレスを読み込む。それぞれ、シンボル登録情報記憶領域42のシンボル名称422と、メモリアドレス423に設定し、登録された登録番号で管理する。最終登録まで同等の処理を繰り返す(Step1.1)。次に、通信ケーブルで接続されたプログラマブルコントローラ7から構成情報ファイルを読み込む(Step1.2)。最後に、構成情報記憶領域41に展開する(Step1.3)。読み込んだ構成情報ファイルから、各スロットに装着された機能モジュールの名称と、各機能モジュールに割り付けられた先頭メモリアドレスを、それぞれ、構成情報記憶領域41の機能モジュール名称412と、割り付け先頭メモリアドレス413に設定し、装着されたスロット番号411で管理する。全機能モジュールに対して同様の処理を繰り返す。
FIG. 5 is a flowchart showing a symbol registration processing procedure in the programming device of the present invention. FIG. 6 is a flowchart showing a detailed procedure of Step 1 in FIG.
Hereinafter, the method of the present invention will be described step by step with reference to FIGS.
First, the symbol name registered in the symbol database 5 and the memory address assigned to the symbol are expanded in the symbol registration information storage area 42 (Step 1). In Step 1, first, the number of registrations is acquired from the symbol database, and symbol names and memory addresses are read in the order of registration. The symbol name 422 and the memory address 423 of the symbol registration information storage area 42 are set to the registered registration number, respectively. The same processing is repeated until final registration (Step 1.1). Next, the configuration information file is read from the programmable controller 7 connected by the communication cable (Step 1.2). Finally, it expands in the configuration information storage area 41 (Step 1.3). From the read configuration information file, the name of the function module installed in each slot and the start memory address assigned to each function module are respectively assigned to the function module name 412 in the configuration information storage area 41 and the assigned start memory address 413. And the slot number 411 installed is managed. The same processing is repeated for all function modules.

Step1の処理完了後、展開した構成情報記憶領域41の機能モジュール名称412と割り付け先頭メモリアドレス413をスロット番号411の先頭から読み込む(Step2)。
次に、読み込んだ機能モジュール名称412をシンボル名称422として置換え、割り付け先頭メモリアドレス413をシンボルに割り付けるメモリアドレス423として置換え、シンボル登録情報記憶領域42に再登録する。その後、全機能モジュールに対して同等の処理を繰り返す(Step3)。
最後に、シンボル登録情報記憶領域42をシンボルデータベース5に書き込む(Step4)。
このように、プログラマブルコントローラの各スロットに装着された機能モジュールの構成情報をもとに、シンボルデータベースにシンボル名称と対応するメモリアドレスを自動的に登録することができる。
After the processing of Step 1 is completed, the function module name 412 and the allocated head memory address 413 of the expanded configuration information storage area 41 are read from the head of the slot number 411 (Step 2).
Next, the read function module name 412 is replaced with the symbol name 422, the assigned head memory address 413 is replaced with the memory address 423 assigned to the symbol, and re-registered in the symbol registration information storage area 42. Thereafter, the same processing is repeated for all function modules (Step 3).
Finally, the symbol registration information storage area 42 is written in the symbol database 5 (Step 4).
As described above, the memory address corresponding to the symbol name can be automatically registered in the symbol database based on the configuration information of the functional module mounted in each slot of the programmable controller.

図7は、本発明の請求項1記載の処理手順を示すフローチャートである。この図を用いて本発明の方法を、順を追って説明する。
はじめに、図6に示した処理手順Step1と同様の展開処理を行う(Step1)。
次に、入出力情報データベース6を読み込み、入出力情報記憶領域43に展開する。本手順において、まず、入出力情報データベース6より、登録されている機能モジュールの名称を読み込み、入出力記憶領域43の機能モジュール名称431に設定する。そして、機能モジュールの入出力点数を読み出し、入出力点数432に設定し、それぞれの入出力点の入出力名称とサイズを、入出力名称433とサイズ434に設定する。このように入出力情報データベースに登録されている全機能モジュールの入出力情報を入出力情報記憶領域に展開する(Step2)。
次に、Step1で展開した構成情報記憶領域41の機能モジュール名称412をスロット番号411の先頭から読み込む(Step3)。
次に、読み出した機能モジュール名称をもとに、展開した入出力情報記憶領域43から一致する機能モジュール名称431を検索し、入出力点数432、入出力名称433、サイズ434を読み出す(Step4)。
FIG. 7 is a flowchart showing a processing procedure according to claim 1 of the present invention. The method of the present invention will be described step by step with reference to this figure.
First, the expansion process similar to the processing procedure Step 1 shown in FIG. 6 is performed (Step 1).
Next, the input / output information database 6 is read and expanded in the input / output information storage area 43. In this procedure, first, the name of the registered function module is read from the input / output information database 6 and set to the function module name 431 in the input / output storage area 43. Then, the number of input / output points of the functional module is read out and set to the number of input / output points 432, and the input / output name and size of each input / output point are set to the input / output name 433 and size 434. In this manner, the input / output information of all the function modules registered in the input / output information database is expanded in the input / output information storage area (Step 2).
Next, the functional module name 412 in the configuration information storage area 41 developed in Step 1 is read from the beginning of the slot number 411 (Step 3).
Next, based on the read function module name, the function module name 431 that matches is searched from the expanded input / output information storage area 43, and the number of input / output points 432, the input / output name 433, and the size 434 are read (Step 4).

次に、読み出した入出力点数432が0でなければ、1点目から順に入出力名称433とサイズ434を読み出す(Step5)。読み出した入出力名称433はシンボル名称422として置き換える。さらに、構成情報記憶領域41の割り付け先頭メモリアドレス413と読み出したサイズ434より、メモリアドレス423を決定する。メモリアドレスは、1点目の時は割り付け先頭メモリアドレスになり、1点目以降の時は、前点で決定したメモリアドレスに、前点のサイズを加算したメモリアドレスとなる。
次に、決定したシンボル名称とメモリアドレスを、シンボル登録情報記憶領域42に登録する。このように全入出力点に対してシンボル名称とメモリアドレスを決定し、シンボル登録情報記憶領域42に登録する(Step6)。その後、これを構成情報記憶領域41に登録されている全モジュールに対して処理を繰り返す。
最後に、登録したシンボル登録情報記憶領域42をシンボルデータベース5に書き込む(Step7)。
このように、プログラマブルコントローラの各スロットに装着された機能モジュールの構成情報と、入出力情報データベースの機能モジュールの入出力情報をもとに、機能モジュールの入出力に対するシンボル名称とメモリアドレスをシンボルデータベースに自動的に登録することができる。
Next, if the read input / output point number 432 is not 0, the input / output name 433 and the size 434 are read in order from the first point (Step 5). The read input / output name 433 is replaced with a symbol name 422. Further, the memory address 423 is determined from the allocated top memory address 413 of the configuration information storage area 41 and the read size 434. The memory address is the allocated top memory address at the first point, and the memory address obtained by adding the size of the previous point to the memory address determined at the previous point after the first point.
Next, the determined symbol name and memory address are registered in the symbol registration information storage area 42. In this way, symbol names and memory addresses are determined for all input / output points and registered in the symbol registration information storage area 42 (Step 6). Thereafter, the process is repeated for all modules registered in the configuration information storage area 41.
Finally, the registered symbol registration information storage area 42 is written into the symbol database 5 (Step 7).
Thus, based on the configuration information of the functional modules installed in each slot of the programmable controller and the input / output information of the function modules in the input / output information database, the symbol names and memory addresses for the input / output of the function modules are represented in the symbol database. Can be registered automatically.

入出力情報データベースをもとに、機能モジュールの入出力に対するシンボル名称を自動的に登録するという手順をとるため、入出力情報データベースの入出力名称を変更するだけで、任意のシンボル名称で自動的に登録できるという用途にも利用できる。   Based on the input / output information database, the procedure for automatically registering symbol names for input / output of function modules is used. It can also be used for purposes such as being able to register.

本発明の方法を適用するプログラマブルコントローラ用プログラミング装置の構成図Configuration diagram of a programming device for a programmable controller to which the method of the present invention is applied 構成情報ファイルのデータ構成図Data structure diagram of configuration information file シンボルデータベースのデータ構成図Data structure of symbol database 入出力情報データベースのデータ構成図Data structure of input / output information database 機能モジュール名称をシンボル名称に登録する場合のフローチャートFlowchart for registering function module names as symbol names 本発明のStep1の詳細な処理手順を示すフローチャートThe flowchart which shows the detailed process sequence of Step1 of this invention 本発明の請求項1記載の処理手順を示すフローチャートThe flowchart which shows the process sequence of Claim 1 of this invention 従来のプログラマブルコントローラのプログラミング装置の構成図Configuration diagram of a conventional programmable controller programming device 従来のシンボル登録方法の処理手順を示すフローチャートThe flowchart which shows the process sequence of the conventional symbol registration method.

符号の説明Explanation of symbols

1 入力装置(キーボード)
2 表示装置
3 主制御部(CPU)
4 記憶領域(メモリ)
5 シンボルデータベース
6 入出力情報データベース
7 プログラマブルコントローラ
41 構成情報記憶領域
42 シンボル登録情報記憶領域
43 入出力情報記憶領域
71 プログラマブルコントローラを構成する各スロットに装着された機能モジュール
110 入力装置(キーボード)
120 表示装置
121 構成情報画面
122 シンボル登録画面
130 主制御部(CPU)
140 記憶領域(メモリ)
141 構成情報記憶領域
142 シンボル登録情報記憶領域
150 シンボルデータベース
160 プログラマブルコントローラ
411 スロット番号
412 機能モジュール名称
413 割り付け先頭メモリアドレス
421 登録番号
422 シンボル名称
423 メモリアドレス
431 機能モジュール名称
432 入出力点数
433 入出力名称
434 サイズ
1 Input device (keyboard)
2 Display 3 Main control unit (CPU)
4 Storage area (memory)
5 Symbol database 6 Input / output information database 7 Programmable controller 41 Configuration information storage area 42 Symbol registration information storage area 43 Input / output information storage area 71 Functional module 110 installed in each slot constituting the programmable controller Input device (keyboard)
120 Display Device 121 Configuration Information Screen 122 Symbol Registration Screen 130 Main Control Unit (CPU)
140 Storage area (memory)
141 Configuration information storage area 142 Symbol registration information storage area 150 Symbol database 160 Programmable controller 411 Slot number 412 Function module name 413 Allocation head memory address 421 Registration number 422 Symbol name 423 Memory address 431 Function module name 432 Input / output point number 433 Input / output name 434 size

Claims (4)

プログラマブルコントローラの各スロットに装着された機能モジュールの名称と各機能モジュールに割り付けられたプログラマブルコントローラの先頭メモリアドレスとが定義される構成情報ファイルが記憶されたプログラマブルコントローラのプログラミング装置であって、
前記プログラマブルコントローラに接続されるとともに、前記プログラマブルコントローラのメモリアドレスに割り付けられたシンボルを管理するシンボルデータベースが記憶された記憶手段を備えたプログラミング装置におけるシンボル登録方法において、
入出力点数と入出力サイズと入出力名称の情報からなる入出力情報と前記機能モジュールの名称とがあらかじめ登録された入出力情報データベースが記憶されるとともに、前記構成情報ファイルから前記機能モジュールの名称と割り付けられた先頭メモリアドレスが読み込まれ、
前記読み込まれた機能モジュールの名称に基づいて前記入出力情報データベースが検索され、
前記検索されて読み込まれた入出力情報の入出力名称に基づいて前記入出力名称がシンボル名称として前記シンボルデータベースに登録され、
前記検索されて読み込まれた入出力情報の入出力点数と入出力サイズに基づいて前記シンボル名称に対応するメモリアドレスが前記シンボルデータベースに登録される、
という手順で処理されることを特徴とするプログラミング装置のシンボル自動登録方法。
A programmable controller programming device in which a configuration information file in which a name of a functional module installed in each slot of a programmable controller and a head memory address of a programmable controller assigned to each functional module is defined is stored,
In a symbol registration method in a programming device comprising a storage means connected to the programmable controller and storing a symbol database for managing a symbol assigned to a memory address of the programmable controller,
An input / output information database in which input / output information including information on the number of input / output points, input / output size, and input / output name and the name of the functional module is stored in advance, and the name of the functional module is stored from the configuration information file. The first memory address assigned as
The input / output information database is searched based on the name of the read function module,
The input / output name is registered in the symbol database as a symbol name based on the input / output name of the input / output information retrieved and read,
A memory address corresponding to the symbol name is registered in the symbol database based on the number of input / output points and the input / output size of the input / output information retrieved and read.
The symbol automatic registration method for a programming device, characterized in that the processing is performed by the following procedure.
プログラマブルコントローラのメモリアドレスに割り付けられたシンボルを管理するシンボルデータベースと前記プログラマブルコントローラの機能モジュールの入出力情報を定義した入出力情報データベースとを記憶した記憶手段を備えるとともに、
前記機能モジュールの構成情報を定義した構成情報ファイルが記憶されたプログラマブルコントローラに接続されたプログラミング装置において、
前記構成情報ファイルは前記機能モジュールの名称と前記機能モジュールに割り付けられた先頭メモリアドレスとから構成され、
前記入出力データベースは前記機能モジュールの名称と前記機能モジュールの入出力点数と前記機能モジュールの入出力名称と前記機能モジュールの入出力サイズとから構成され、
前記構成情報ファイルおよび前記入出力情報データベースに基づいて、シンボルを前記シンボルデータベースに登録する自動登録手段を備えたことを特徴とするプログラミング装置。
A storage unit that stores a symbol database that manages symbols assigned to memory addresses of the programmable controller and an input / output information database that defines input / output information of the functional modules of the programmable controller;
In a programming device connected to a programmable controller in which a configuration information file defining configuration information of the functional module is stored,
The configuration information file is composed of a name of the functional module and a head memory address assigned to the functional module,
The input / output database is composed of the name of the functional module, the number of input / output points of the functional module, the input / output name of the functional module, and the input / output size of the functional module,
A programming apparatus comprising: automatic registration means for registering a symbol in the symbol database based on the configuration information file and the input / output information database.
前記自動登録手段は、前記入出力名称をシンボル名称として前記シンボルデータベースに登録し、前記シンボル名称に対応するメモリアドレスを前記シンボルデータベースに登録することを特徴とする請求項記載のプログラミング装置。 3. The programming apparatus according to claim 2 , wherein the automatic registration unit registers the input / output name as a symbol name in the symbol database, and registers a memory address corresponding to the symbol name in the symbol database. プログラマブルコントローラの各スロットに装着された機能モジュールの名称と各機能モジュールに割り付けられたプログラマブルコントローラの先頭メモリアドレスとが定義される構成情報ファイルが記憶されたプログラマブルコントローラに接続されるとともに、前記プログラマブルコントローラのメモリアドレスに割り付けられたシンボルを管理するシンボルデータベースが記憶された記憶手段を備えたプログラミング装置におけるシンボル自動登録を行うコンピュータ読み取り可能なプログラムであって、
入出力点数と入出力サイズと入出力名称の情報からなる入出力情報と前記機能モジュールの名称とがあらかじめ登録された入出力情報データベースが記憶されるとともに、前記構成情報ファイルから前記機能モジュールの名称と割り付けられた先頭メモリアドレスが読み込まれ、
前記読み込まれた機能モジュールの名称に基づいて前記入出力情報データベースが検索され、
前記検索されて読み込まれた入出力情報の入出力名称に基づいて前記入出力名称がシンボル名称として前記シンボルデータベースに登録され、
前記検索されて読み込まれた入出力情報の入出力点数と入出力サイズに基づいて前記シンボル名称に対応するメモリアドレスが前記シンボルデータベースに登録される、という手順をコンピュータに実行させるためのシンボル自動登録プログラム。
The programmable controller is connected to a programmable controller in which a configuration information file in which the name of the functional module installed in each slot of the programmable controller and the start memory address of the programmable controller assigned to each functional module is defined is stored. A computer-readable program for automatically registering symbols in a programming device having a storage means in which a symbol database for managing symbols assigned to the memory addresses is stored,
An input / output information database in which input / output information including information on the number of input / output points, input / output size, and input / output name and the name of the functional module is stored in advance, and the name of the functional module is stored from the configuration information file. The first memory address assigned as
The input / output information database is searched based on the name of the read function module,
The input / output name is registered in the symbol database as a symbol name based on the input / output name of the input / output information retrieved and read,
Automatic symbol registration for causing a computer to execute a procedure in which a memory address corresponding to the symbol name is registered in the symbol database based on the number of input / output points and the input / output size of the input / output information retrieved and read program.
JP2004337446A 2004-11-22 2004-11-22 Programming device, symbol automatic registration method, program, and recording medium Expired - Fee Related JP4362777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004337446A JP4362777B2 (en) 2004-11-22 2004-11-22 Programming device, symbol automatic registration method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004337446A JP4362777B2 (en) 2004-11-22 2004-11-22 Programming device, symbol automatic registration method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2006146670A JP2006146670A (en) 2006-06-08
JP4362777B2 true JP4362777B2 (en) 2009-11-11

Family

ID=36626265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004337446A Expired - Fee Related JP4362777B2 (en) 2004-11-22 2004-11-22 Programming device, symbol automatic registration method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4362777B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5460556B2 (en) * 2010-11-04 2014-04-02 三菱電機株式会社 Programmable controller and unit addition method
JP6203321B1 (en) * 2016-04-13 2017-09-27 三菱電機ビルテクノサービス株式会社 PLC system specification creation support device

Also Published As

Publication number Publication date
JP2006146670A (en) 2006-06-08

Similar Documents

Publication Publication Date Title
JP4513806B2 (en) Peripheral device of programmable logic controller and method for creating program
JP4541418B2 (en) Programmable controller peripheral device, replacement method and program
JP5556524B2 (en) Form processing apparatus, form processing method, form processing program, and recording medium recording the program
JP2006069125A (en) Image forming apparatus, and portable storage medium with stored firmware therefor
US20100153622A1 (en) Data Access Controller and Data Accessing Method
JP4362777B2 (en) Programming device, symbol automatic registration method, program, and recording medium
JP2005301520A (en) Programming system
JP2000284815A (en) Program generating device
JP4245811B2 (en) Ladder circuit editing device
JP2008299423A (en) Information processor and information processing program
JP4554809B2 (en) Communication protocol creation method, communication protocol creation device, communication protocol creation program, and recording medium recording the same
JPH113105A (en) Programming device for programmable controller
JP4343673B2 (en) Port setting automatic conversion method, port setting automatic conversion system, program, and storage medium
JP4479558B2 (en) Programmable controller and programming tool thereof
JP6272263B2 (en) Access destination conversion device and access destination conversion program
KR100817364B1 (en) Programmable logic controller peripheral device and program creation method thereof
JPH08328845A (en) Control program rewriting method for rom
JP2001092713A (en) Device and method for writing data
JP2959490B2 (en) String addition method
JP2000347878A (en) Method and device for memory reduction
KR20170088966A (en) System design assistance tool
JP2004252746A (en) Recording control method and device for recording medium, and electronic equipment
CN114880986A (en) Method for quickly generating global configuration component
JPH0756779A (en) Electronic filing device
JPH1083333A (en) Processor and method for document processing, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090623

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090625

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090625

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090629

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090723

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090805

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

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: 20130828

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140828

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees