JPH11161305A - Programming device for programmable controller, arranging and connecting method, and recording medium - Google Patents

Programming device for programmable controller, arranging and connecting method, and recording medium

Info

Publication number
JPH11161305A
JPH11161305A JP3524998A JP3524998A JPH11161305A JP H11161305 A JPH11161305 A JP H11161305A JP 3524998 A JP3524998 A JP 3524998A JP 3524998 A JP3524998 A JP 3524998A JP H11161305 A JPH11161305 A JP H11161305A
Authority
JP
Japan
Prior art keywords
graphic symbol
terminal
cell
graphic
symbol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3524998A
Other languages
Japanese (ja)
Other versions
JP3677985B2 (en
Inventor
Masanao Goto
将直 後藤
Toyomi Tsuchiya
豊実 土屋
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP03524998A priority Critical patent/JP3677985B2/en
Publication of JPH11161305A publication Critical patent/JPH11161305A/en
Application granted granted Critical
Publication of JP3677985B2 publication Critical patent/JP3677985B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable an operator of a programmable controller(PC) to perform a program preparing work by easily and efficiently performing an arranging operation for operated description parts and a terminal-to-terminal connecting work. SOLUTION: A CPU 1 which controls the whole system of a programming device 10 of a PC reads out and executes an application program stored in a storage part 4 or on a portable storage medium 7 to perform processing for recognizing a 1st terminal in a cell of a function where an operated description part is placed on the screen of a display part 5 by retrieving a terminal information storage part 3-2, finding the position on the screen where the said operand description part can be arranged corresponding to the recognized 1st terminal by referring it to a cell information storage part 3-1 and capable of arranging the said operand description part at the position and processing for automatically connecting between the 2nd terminal of the said operand description part and the said 1st terminal by using connection information stored in a connection information storage part 3-3 and a connection management information storage part 3-4.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プログラマブルコ
ントローラのプログラム作成支援ツールであるプログラ
ミング装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a programming device which is a program creation support tool for a programmable controller.

【0002】[0002]

【従来の技術】プログラマブルコントローラ(以下、P
Cという)のプログラムの作成には、一般にそのプログ
ラム作成支援ツールであるプログラミング装置が用いら
れる。このプログラミング装置は、通常、PCとは別個
のものであり、プログラムの変更や修正、或いは新たに
作成する場合等にPCに接続して用いられる。
2. Description of the Related Art Programmable controllers (hereinafter referred to as P
C), a programming device that is a program creation support tool is generally used. This programming device is usually separate from the PC, and is used by connecting to the PC when a program is changed, modified, or newly created.

【0003】PCのプログラム言語としては、リレーシ
ンボル、ロジックシンボル等の図形シンボルを用いたラ
ダー図等の図示表現プログラムが知られている。プログ
ラミング装置を用いた図示表現プログラムの作成は、表
示画面上に図形シンボルを表示させて、これらを接続
し、所謂回路図を作成することにより行われる。
[0003] As a PC programming language, there is known an illustration expression program such as a ladder diagram using graphic symbols such as relay symbols and logic symbols. The creation of an illustration expression program using a programming device is performed by displaying graphic symbols on a display screen, connecting them, and creating a so-called circuit diagram.

【0004】ところで、PCに用いられる図示表現プロ
グラムとしては、上記ラダー図等の他に、ファンクショ
ンブロック(Function Block)図(以下、FB図とい
う)と呼ばれる表現形式がある。FB図は、論理演算、
加減算、乗除算等の処理単位を示す“関数”の図形シン
ボルと、例えばこの“関数”の入力データまたは出力デ
ータを示す“オペランド”の図形シンボル(以下、オペ
ランド記述部という)とをディスプレイ画面上に配置し
て、これらの各図形シンボルが有する端子間を結線する
ことにより、プログラムを表現するものである。
By the way, as an illustration expression program used for a PC, there is an expression format called a function block diagram (hereinafter, referred to as an FB diagram) in addition to the ladder diagram and the like. The FB diagram is a logical operation,
A graphic symbol of "function" indicating a processing unit such as addition, subtraction, multiplication and division, and a graphic symbol of "operand" (hereinafter referred to as an operand description section) indicating input data or output data of the "function" are displayed on a display screen. And a program is expressed by connecting the terminals of these graphic symbols.

【0005】図12は、FB図によるプログラム作成/
表示の一例を示す図である。同図は、加算(+)の関数
を用いて、オペランドの“A”の値と“B”の値の和を
求め、その結果を“C”に格納するプログラムの一例で
あり、その作成手順、表示例を示している。
[0005] FIG. 12 shows a program creation /
It is a figure showing an example of a display. The figure shows an example of a program for calculating the sum of the values of "A" and "B" of the operands using the function of addition (+) and storing the result in "C". And a display example.

【0006】まず、図12(a)に示すように、ディス
プレイ等の画面上に表示される命令群から、特に図示し
ないキーボード等の入力装置を操作して(又はタッチパ
ネルを用いる入力方式の場合は表示画面上に直接タッチ
して)加算(+)の関数を選択し、この加算(+)の関
数の図形シンボル(以下、セルと記述する)200を所
望の位置に配置する。加算(+)の関数のセル200
は、同図(a)に示すように、2入力1出力の端子(入
力端子P、Q、出力端子R)を有している。尚、図12
(a)〜(d)に示すP、Q、Rの文字は、説明の便宜
上記載したものであり、実際に表示画面上に表示される
とは限らない。
First, as shown in FIG. 12A, a command group displayed on a screen such as a display is used to operate an input device such as a keyboard (not shown). A function of addition (+) is selected by directly touching the display screen, and a graphic symbol (hereinafter, referred to as a cell) 200 of the addition (+) function is arranged at a desired position. Addition (+) function cell 200
Has two input and one output terminals (input terminals P and Q and an output terminal R) as shown in FIG. FIG.
The characters P, Q, and R shown in (a) to (d) are described for convenience of explanation, and are not always displayed on the display screen.

【0007】次に、同図(b)に示すように、上記
(a)の場合と同様に命令群からオペランド記述部を選
択して(ここでは“A”のオペランド記述部210)、
上記加算(+)の関数のセル200の3つの端子P、
R、Qの中で該選択したオペランド記述部210を接続
すべき端子(例えば端子P)を確認して、その近傍に該
オペランド記述部210を配置する。
Next, as shown in FIG. 1B, an operand description section is selected from the instruction group (here, the operand description section 210 of "A") in the same manner as in the case of FIG.
The three terminals P of the cell 200 of the function of the addition (+),
The terminal (for example, terminal P) to which the selected operand description unit 210 is to be connected is confirmed in R and Q, and the operand description unit 210 is arranged near the terminal.

【0008】続いて、命令群から「線」を選択して、同
図(c)に示すように、“A”のオペランド記述部21
0内の端子Sと、対応する関数のセル200の端子
(P)とを結線する。
Subsequently, a "line" is selected from the instruction group, and as shown in FIG.
The terminal S in 0 is connected to the terminal (P) of the cell 200 of the corresponding function.

【0009】特に図示しないが、“B”のオペランド記
述部220と“C”のオペランド記述部230について
も上記図12(b)、(c)に示す操作と同様な操作を
行ってオペランド記述部220、230の配置と結線を
行う。その結果、同図(d)に示すような図示表現プロ
グラムが作成される。
Although not particularly shown, the operand description section 220 of "B" and the operand description section 230 of "C" are operated in the same manner as those shown in FIGS. The arrangement and connection of 220 and 230 are performed. As a result, an illustrated expression program as shown in FIG.

【0010】[0010]

【発明が解決しようとする課題】上述した従来の方法で
は、オペレータ等は、オペランド記述部を結線すべき関
数のセルの端子を確認してから、この関数のセルの端子
の近傍にオペランド記述部を配置できるスペースがある
か否かを確認して、オペランド記述部の配置操作を行
い、更に「線」を選択してオペランド記述部の端子と関
数のセルの端子とを結線する作業を行う必要があり、効
率的なプログラム作成作業を行えるものではなかった。
In the conventional method described above, the operator or the like checks the terminal of the cell of the function to which the operand description section is to be connected, and then places the operand description section near the terminal of the cell of the function. It is necessary to confirm whether there is enough space for placing the operand, perform the placement operation of the operand description section, and then select "line" to connect the terminal of the operand description section and the terminal of the function cell However, it was not possible to perform efficient program creation work.

【0011】本発明の課題は、配置された関数に対して
オペランド記述部の配置と結線を行う際に、オペレータ
等はオペランド記述部の接続先の関数の端子を確認する
だけで、自動的にオペランド記述部の配置、及びオペラ
ンド記述部の端子と関数のセルの端子との結線が行われ
るプログラマブルコントローラのプログラミング装置を
提供することである。
[0011] An object of the present invention is to provide an arrangement and connection of an operand description section to a placed function, so that an operator or the like automatically checks only the terminal of the function to which the operand description section is connected, and automatically. An object of the present invention is to provide a programming device of a programmable controller in which the arrangement of an operand description section and the connection between the terminal of the operand description section and the terminal of a function cell are performed.

【0012】[0012]

【課題を解決するための手段】第1の発明のプログラミ
ング装置は、プログラマブルコントローラを動作させる
プログラムを、処理単位あるいは入力データまたは出力
データを示す各図形シンボルと該各図形シンボルが有す
る端子間を結線して成る図示表現で作成させるプログラ
ミング装置において、任意の位置に配置された第1の図
形シンボル内の第1の端子上に、第2の図形シンボルを
配置する操作が行われたことを検出する検出手段と、該
検出手段により該配置操作が検出された第2の図形シン
ボルを前記第1の図形シンボル外で前記第1の端子に対
応する位置に配置可能なエリアを検出して、該検出した
エリアに前記第2の図形シンボルを配置する配置手段と
を有する。
According to a first aspect of the present invention, there is provided a programming device for connecting a program for operating a programmable controller between each graphic symbol indicating a processing unit or input data or output data and terminals of each graphic symbol. In the programming device that is created by the illustrated representation, it is detected that the operation of arranging the second graphic symbol on the first terminal in the first graphic symbol arranged at an arbitrary position is performed. Detecting means for detecting an area in which the second graphic symbol whose arrangement operation has been detected by the detecting means can be arranged outside the first graphic symbol at a position corresponding to the first terminal; And arranging means for arranging the second graphic symbol in the designated area.

【0013】上記第1の発明のプログラミング装置によ
れば、オペレータ等が画面上の任意の位置に配置されて
いる第1の図形シンボル内の第1の端子に対して結線す
べき第2の図形シンボルを、該第1の端子上に配置させ
る簡単な操作を行うだけで、上記第2の図形シンボルが
自動的に配置される。
According to the programming device of the first invention, the second graphic to be connected to the first terminal in the first graphic symbol arranged by the operator or the like at an arbitrary position on the screen. By simply performing a simple operation of arranging a symbol on the first terminal, the second graphic symbol is automatically arranged.

【0014】第2の発明のプログラミング装置は、更
に、前記第1、第2の図形シンボルのセル情報とその端
子情報とをそれぞれ格納する記憶手段と、該記憶手段に
格納されたセル情報と端子情報に基づいて前記第1の図
形シンボル内の第1の端子と前記第2の図形シンボル内
の第2の端子とを結線する結線手段とを有する。
A programming device according to a second aspect of the present invention further comprises: storage means for storing cell information of the first and second graphic symbols and their terminal information, respectively; and cell information and terminals stored in the storage means. A connection unit for connecting a first terminal in the first graphic symbol and a second terminal in the second graphic symbol based on the information;

【0015】上記第2の発明のプログラミング装置によ
れば、オペレータ等が画面上の任意の位置に配置されて
いる第1の図形シンボル内の第1の端子に対して結線す
べき第2の図形シンボルを、該第1の端子上に配置させ
る簡単な操作を行うだけで、第2の図形シンボルが自動
配置されると共に、前記第1の端子と前記第2の端子と
が自動的に結線される。
According to the programming device of the second invention, the second graphic to be connected to the first terminal in the first graphic symbol arranged by the operator or the like at an arbitrary position on the screen. By simply performing a simple operation of arranging a symbol on the first terminal, the second graphic symbol is automatically arranged, and the first terminal and the second terminal are automatically connected. You.

【0016】第3の発明のプログラミング装置は、プロ
グラマブルコントローラを動作させるプログラムを、処
理単位あるいは入力データまたは出力データを示す各図
形シンボルと該各図形シンボルが有する端子間を結線し
て成る図示表現で作成させるプログラミング装置におい
て、既に配置されている第1の図形シンボル内の第1の
端子上に、第2の図形シンボルを配置する操作が行われ
たことを検出する検出手段と、該検出手段により該配置
操作が検出された第2の図形シンボルを、前記第1の図
形シンボルの第1の端子近辺の所定の位置に、該第1の
図形シンボル及び他の図形シンボルと重なることなく配
置可能か否かを判定する第1の判定手段と、該第1の判
定手段により配置不可能であると判定された場合、前記
第1の図形シンボルまたは他の図形シンボルを移動させ
ることによって前記第2の図形シンボルを配置可能にな
るか否か、あるいは前記第2の図形シンボルを前記所定
の位置から移動させることにより配置可能になるか否か
を判定する第2の判定手段と、前記第1の判定手段また
は第2の判定手段により配置可能であると判定された位
置に前記第2の図形シンボルを配置して、前記第1の図
形シンボルと第2の図形シンボルの端子間を結線する配
置・結線手段と、を有する。
A programming device according to a third aspect of the present invention is a program for operating a programmable controller in a diagrammatic representation in which each graphic symbol indicating a processing unit or input data or output data is connected to a terminal of each graphic symbol. In the programming device to be created, detecting means for detecting that an operation of arranging the second graphic symbol on the first terminal in the already arranged first graphic symbol has been performed; and Whether the second graphic symbol whose placement operation has been detected can be placed at a predetermined position near the first terminal of the first graphic symbol without overlapping with the first graphic symbol and other graphic symbols. First determining means for determining whether or not the first graphic symbol has been placed; Alternatively, it is determined whether or not the second graphic symbol can be arranged by moving another graphic symbol, or whether or not the second graphic symbol can be arranged by moving the second graphic symbol from the predetermined position. A second determining means for determining, and arranging the second graphic symbol at a position determined to be disposable by the first determining means or the second determining means; Arrangement / connection means for connecting the terminals of the second graphic symbol.

【0017】上記第3の発明のプログラミング装置によ
れば、オペレータ等が画面上の任意の位置に配置されて
いる第1の図形シンボル内の第1の端子に対して結線す
べき第2の図形シンボルを、該第1の端子上に配置させ
る簡単な操作を行うだけで、特に図形シンボルが密集し
ていて第1の図形シンボル近辺に第2の図形シンボルを
配置可能な場所がない場合であっても、第1の図形シン
ボルや他の図形シンボルを移動させる等して、自動的に
第1の図形シンボルを配置できるスペースを作り出し
て、あるいは第2の図形シンボルを第1の図形シンボル
近辺から離れた位置に配置する等して、第2の図形シン
ボルが自動配置すると共に、前記第1の端子と前記第2
の端子とが自動的に結線する。
According to the programming device of the third aspect of the present invention, the second graphic to be connected to the first terminal in the first graphic symbol arranged by the operator or the like at an arbitrary position on the screen. By simply performing a simple operation of arranging the symbols on the first terminal, especially when the graphic symbols are dense and there is no place where the second graphic symbol can be arranged near the first graphic symbol. However, by moving the first graphic symbol or another graphic symbol, a space for automatically arranging the first graphic symbol is created, or the second graphic symbol is moved from the vicinity of the first graphic symbol. The second graphic symbol is automatically arranged, for example, by arranging it at a distance, and the first terminal and the second
Terminals are automatically connected.

【0018】このように、上記第1、第2、第3の発明
のプログラミング装置によれば、図示表現プログラムを
作成する際の作業効率が、従来よりも著しく向上する。
As described above, according to the programming devices of the first, second, and third aspects, the work efficiency in creating the graphic representation program is significantly improved as compared with the conventional art.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して、本発明の
実施形態について説明する。図1は、本実施形態による
プログラミング装置10の構成を示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration of a programming device 10 according to the present embodiment.

【0020】同図において、CPU1は、プログラミン
グ装置10のシステム全体を制御する中央処理装置であ
る。入力部2は、例えばキーボード、マウス等、あるい
はタッチパネルである。
In FIG. 1, a CPU 1 is a central processing unit for controlling the entire system of the programming device 10. The input unit 2 is, for example, a keyboard, a mouse, or the like, or a touch panel.

【0021】RAM3は、セル情報格納部3−1、端子
情報格納部3−2、結線情報格納部3−3、及び結線管
理情報格納部3−4等の各情報格納部が記憶される記憶
領域を有するメモリである。これらの各情報格納部3−
1〜3−4の構成については、後に詳述するが、これら
の各情報格納部3−1〜3−4に格納される情報は、オ
ペレータ等による入力部2を介した図示表現入力に応じ
て作成されるプログラムデータに相当する。尚、RAM
3はバッテリーバックアップされており、電源OFF時
でもデータが消去されないようになっている。尚、RA
M3の代わりにEEPROM等を用いるようにしてもよ
い。
The RAM 3 is a storage for storing information storage units such as a cell information storage unit 3-1, a terminal information storage unit 3-2, a connection information storage unit 3-3, and a connection management information storage unit 3-4. It is a memory having an area. Each of these information storage units 3-
The configuration of each of the information storage units 3-1 to 3-4 will be described later in detail. It is equivalent to the program data created. In addition, RAM
Reference numeral 3 denotes a battery backup so that data is not erased even when the power is turned off. RA
An EEPROM or the like may be used instead of M3.

【0022】記憶部4は、例えばHDD(ハードディス
クドライブ)であり、OS(オペレーティングシステ
ム)、各種アプリケーションプログラム等を記憶する。
更に、本実施形態によるプログラミング装置の機能を提
供するアプリケーションプログラムを記憶することも可
能である。
The storage unit 4 is, for example, a hard disk drive (HDD) and stores an OS (operating system), various application programs, and the like.
Further, it is possible to store an application program that provides the function of the programming device according to the present embodiment.

【0023】表示部5は、例えばCRTディスプレイで
あり、例えば上記セル情報格納部3−1、端子情報格納
部3−2、及び結線情報格納部3−3に格納されたデー
タ(情報)に基づいてFB図を表示する。
The display unit 5 is, for example, a CRT display. The display unit 5 is based on, for example, data (information) stored in the cell information storage unit 3-1, the terminal information storage unit 3-2, and the connection information storage unit 3-3. To display the FB diagram.

【0024】媒体駆動装置6は、後述する可搬記憶媒体
7に記憶されているアプリケーションプログラムやデー
タ等の読み出し、あるいは書込みを、CPU1の制御に
より実行する装置であり、例えばFDD、CD−ROM
ドライブ等である。
The medium driving device 6 is a device that executes reading or writing of application programs and data stored in a portable storage medium 7 described later under the control of the CPU 1, and includes, for example, an FDD and a CD-ROM.
Such as a drive.

【0025】可搬記憶媒体7は、少なくとも本実施例に
よるプログラミング装置の機能を提供するアプリケーシ
ョンプログラムが、媒体駆動装置6で読み出し可能で且
つCPU1により実行可能な形式で記憶されているもの
である。可搬記憶媒体7は、例えば、FD(フロッピー
ディスク)、MO(光磁気ディスク)、CD−ROM、
PCカード等であり、これらに磁気的あるいは光磁気
的、又は電気的に、上記本実施例のプログラミング装置
の機能を提供するアプリケーションプログラムが、媒体
駆動装置6で読み出し可能で且つCPU1で実行可能な
形式で記憶されている。
The portable storage medium 7 stores at least an application program for providing the function of the programming device according to the present embodiment in a format that can be read by the medium drive device 6 and executed by the CPU 1. The portable storage medium 7 includes, for example, FD (floppy disk), MO (magneto-optical disk), CD-ROM,
An application program, such as a PC card, which provides the functions of the programming device of the present embodiment magnetically, magneto-optically, or electrically, is readable by the medium drive device 6 and executable by the CPU 1 It is stored in a format.

【0026】通信部8は、プログラム作成作業が完了し
RAM3内等に格納されたプログラムデータを、PC1
1内のプログラムメモリ(不図示)に転送する。あるい
は、上記PC11内のプログラムメモリに格納されたプ
ログラムデータを一部修正する場合等に、上記PC11
側より転送されてくるプログラムデータを受信してRA
M3に格納させるものである。
The communication section 8 transfers the program data stored in the RAM 3 or the like after the program creation work is completed to the PC 1
1 to a program memory (not shown). Alternatively, when partially modifying the program data stored in the program memory in the PC 11, the PC 11
Receiving program data transferred from the
It is stored in M3.

【0027】PC11は、プログラマブル・コントロー
ラである。本実施形態によるプログラミング装置10
は、図示表現で入力/作成されたFB図に基づいてセル
情報(関数のセルまたはオペランドのセル(オペランド
記述部)の情報)、端子情報、結線情報等を格納する記
憶領域を、例えばRAM3内に有する。
The PC 11 is a programmable controller. Programming device 10 according to the present embodiment
Represents a storage area for storing cell information (information of a cell of a function or a cell of an operand (operand description part)), terminal information, connection information, and the like based on the FB diagram input / created in the illustrated representation. To have.

【0028】図2は、上記各情報格納部3−1〜3−4
のデータ構成を示す図である。図2(a)は、画面上に
配置される各セルのセル情報を格納するセル情報格納部
20のデータ構成を示す図である。
FIG. 2 shows the information storage units 3-1 to 3-4.
FIG. 3 is a diagram showing a data configuration of FIG. FIG. 2A is a diagram illustrating a data configuration of a cell information storage unit 20 that stores cell information of each cell arranged on the screen.

【0029】同図(a)に示すように、セル情報格納部
20は、各セル毎に、セル種別21、セル名称22、入
力数23、入力端子情報格納部の先頭位置24、出力数
25、出力端子情報格納部の先頭位置26、セルXY座
標27、セル幅28、及びセル高さ29の各データから
成るセル情報を格納する。
As shown in FIG. 2A, the cell information storage unit 20 stores, for each cell, a cell type 21, a cell name 22, an input number 23, a head position 24 of the input terminal information storage unit, and an output number 25. , The cell information including the data of the head position 26, the cell XY coordinates 27, the cell width 28, and the cell height 29 of the output terminal information storage unit.

【0030】セル種別21は、当該セルが関数のセルで
あるかオペランドのセル(オペランド記述部)であるか
を示すデータである。例えば関数のセルである場合には
‘1’、オペランド記述部である場合には‘2’が格納
される。
The cell type 21 is data indicating whether the cell is a function cell or an operand cell (operand description section). For example, “1” is stored for a function cell, and “2” is stored for an operand description part.

【0031】セル名称22は、上記セル種別21におい
て、当該セルが関数のセルであることを示している場合
には、例えば加減算(+)、(−)、乗除算(×)、
(÷)等の演算処理単位を示すデータとなり、当該セル
がオペランド記述部であることを示している場合には、
例えば上述した“A”、“B”、“C”等のデータとな
る。ここで、オペランド記述部における“A”、
“B”、“C”等のデータは、例えば関数に入力する値
又は関数の演算結果を格納するレジスタ等の名称を示す
情報である。
When the cell name 22 indicates that the cell is a function cell in the cell type 21, for example, addition / subtraction (+), (−), multiplication / division (×),
If it becomes data indicating the operation processing unit such as (÷) and indicates that the cell is an operand description part,
For example, data such as “A”, “B”, and “C” described above. Here, “A” in the operand description part,
The data such as “B” and “C” are information indicating the name of a register or the like for storing a value input to a function or an operation result of the function.

【0032】入力数23は、当該セルへの入力数(入力
端子数)を示すデータである。入力数23のデータは、
通常、当該セルが関数のセルである場合は‘2’であ
り、当該セルがオペランド記述部である場合は‘0’又
は‘1’である。
The number of inputs 23 is data indicating the number of inputs to the cell (the number of input terminals). The data of 23 inputs is
Normally, the value is “2” when the cell is a function cell, and is “0” or “1” when the cell is an operand description part.

【0033】入力端子情報格納部の先頭位置24は、各
端子に関する情報を格納する端子情報格納部30(図2
(b);これについては後述する)における入力端子の
情報を格納する記憶領域の先頭位置(先頭アドレス)を
示すデータである。
The head position 24 of the input terminal information storage section is stored in the terminal information storage section 30 (FIG. 2) for storing information on each terminal.
(B); this will be described later) is data indicating the head position (head address) of a storage area for storing information on input terminals.

【0034】出力数25は、当該セルからの出力数(出
力端子数)を示すデータである。出力数25のデータ
は、通常、当該セルが関数のセルである場合は‘1’で
あり、当該セルがオペランド記述部である場合は‘0’
又は‘1’である。
The output number 25 is data indicating the number of outputs (number of output terminals) from the cell. The data having 25 outputs is normally “1” when the cell is a function cell, and is “0” when the cell is an operand description part.
Or '1'.

【0035】出力端子情報格納部の先頭位置26は、上
記端子情報格納部30における出力端子の情報を格納す
る記憶領域の先頭位置(先頭アドレス)を示すデータで
ある。
The head position 26 of the output terminal information storage unit is data indicating the head position (head address) of the storage area for storing the information of the output terminal in the terminal information storage unit 30.

【0036】セルXY座標27は、当該セルの表示画面
上の配置位置を示すデータであり、例えば当該セルの左
上端の(X,Y)座標値である。そして、この(X,
Y)座標値のデータとセル幅28のデータ及びセル高さ
29のデータとに基づいて表示画面上に当該セルが表示
される。尚、セル幅28はセルのX方向の長さ、セル高
さ29はセルのY方向の長さである。
The cell XY coordinates 27 are data indicating the arrangement position of the cell on the display screen, for example, the (X, Y) coordinate value of the upper left corner of the cell. And this (X,
Y) The cell is displayed on the display screen based on the coordinate value data, the cell width data 28, and the cell height data 29. The cell width 28 is the length of the cell in the X direction, and the cell height 29 is the length of the cell in the Y direction.

【0037】図2(b)は、画面上に配置される各セル
が有する各端子に関する情報(端子情報)を格納する端
子情報格納部30のデータ構成を示す図である。同図
(b)に示すように、端子情報格納部30は、各端子の
入/出力区分31、該当セル情報格納位置32、前端子
情報格納位置33、次端子位置情報格納位置34、端子
XY座標35、及び結線管理情報位置36の各データか
ら成る端子情報を格納している。
FIG. 2B is a diagram showing a data structure of the terminal information storage unit 30 for storing information (terminal information) relating to each terminal of each cell arranged on the screen. As shown in FIG. 3B, the terminal information storage unit 30 includes an input / output division 31 for each terminal, a corresponding cell information storage position 32, a previous terminal information storage position 33, a next terminal position information storage position 34, and a terminal XY. The terminal information including the coordinates 35 and the data of the connection management information position 36 is stored.

【0038】入/出力区分31は、当該端子が入力端子
であるか、出力端子であるかを示すデータである。例え
ば、入力端子の場合は‘1’、出力端子の場合は‘2’
が格納される。
The input / output section 31 is data indicating whether the terminal is an input terminal or an output terminal. For example, "1" for an input terminal, "2" for an output terminal
Is stored.

【0039】該当セル情報格納位置32は、前記セル情
報格納部20内の当該端子に該当するセルの情報が格納
されている位置を示すデータ、換言すれば当該端子を有
する関数のセル又はオペランド記述部の情報が格納され
ているセル情報格納部20内の記憶領域の先頭位置を示
すデータである。
The corresponding cell information storage position 32 is data indicating the position where the information of the cell corresponding to the terminal in the cell information storage unit 20 is stored, in other words, the cell or operand description of the function having the terminal. This is data indicating the head position of the storage area in the cell information storage unit 20 in which the information of the unit is stored.

【0040】前端子情報格納位置33は、当該端子の前
の端子情報が格納されている端子情報格納部30内の記
憶領域の先頭位置を示すデータである。次端子情報格納
位置34は、当該端子の次の端子情報が格納されている
端子情報格納部30内の記憶領域の先頭位置を示すデー
タである。
The previous terminal information storage position 33 is data indicating the head position of a storage area in the terminal information storage section 30 in which terminal information before the terminal concerned is stored. The next terminal information storage position 34 is data indicating a head position of a storage area in the terminal information storage unit 30 in which terminal information next to the terminal is stored.

【0041】尚、前端子情報格納位置33、次端子情報
格納位置34における前又は次の端子情報とは、同一セ
ルにおいて入力端子または出力端子が複数ある場合に、
入力端子同士間または出力端子同士間で端子情報格納部
30内での複数の端子の情報格納位置をリンクするため
の情報である。
Note that the previous or next terminal information at the previous terminal information storage location 33 and the next terminal information storage location 34 is defined as follows when there are a plurality of input terminals or output terminals in the same cell.
This is information for linking information storage positions of a plurality of terminals in the terminal information storage unit 30 between input terminals or between output terminals.

【0042】端子XY座標35は、当該端子の表示画面
上での表示位置を示す(X,Y)座標を示すデータであ
る。結線管理情報位置36は、結線管理情報格納部50
(図2(d);後述する)内において当該端子に対応す
る結線管理情報が格納されている記憶領域の先頭位置を
示すデータである。
The terminal XY coordinates 35 are data indicating (X, Y) coordinates indicating the display position of the terminal on the display screen. The connection management information location 36 is stored in the connection management information storage unit 50.
This is data indicating a head position of a storage area in which connection management information corresponding to the terminal is stored in (FIG. 2D; described later).

【0043】図2(c)は、結線情報格納部40のデー
タ構成を示す図である。同図(c)に示すように、結線
情報格納部40は、各結線の結線開始XY位置41、結
線終了XY位置42、及び結線管理情報位置43の各デ
ータを格納している。
FIG. 2C is a diagram showing the data structure of the connection information storage unit 40. As shown in FIG. As shown in FIG. 3C, the connection information storage unit 40 stores data of a connection start XY position 41, a connection end XY position 42, and a connection management information position 43 of each connection.

【0044】結線開始XY位置41、結線終了XY位置
42は、それぞれ当該結線の始点の(X,Y)座標、終
点の(X,Y)座標を示すデータである。結線管理情報
位置43は、当該結線に対応する結線管理情報が格納さ
れている結線管理情報格納部50内の記憶領域の先頭位
置を示すデータである。。
The connection start XY position 41 and the connection end XY position 42 are data indicating the (X, Y) coordinates of the start point and the (X, Y) coordinates of the end point of the connection, respectively. The connection management information position 43 is data indicating a head position of a storage area in the connection management information storage unit 50 in which connection management information corresponding to the connection is stored. .

【0045】図2(d)は、結線管理情報格納部50の
データ構成を示す図である。同図(d)に示すように、
結線情報格納部50は、各結線の結線情報格納位置5
1、結線始点端子情報格納位置52、及び結線終点端子
情報格納位置53の各データを格納している。
FIG. 2D is a diagram showing the data structure of the connection management information storage unit 50. As shown in FIG.
The connection information storage unit 50 stores a connection information storage position 5 for each connection.
1. Each data of a connection start terminal information storage position 52 and a connection end terminal information storage position 53 is stored.

【0046】結線情報格納部50に格納される情報は、
互いに結線すべき各端子と結線情報とを関連付けて管理
する為の情報であり、例えばある結線の始点と終点にあ
る端子の情報は、それぞれ結線始点端子情報格納位置5
2、及び結線終点端子情報格納位置53によって端子情
報格納部30内の先頭位置が示されている記憶領域内の
データを検索することにより得られる。
The information stored in the connection information storage unit 50 is
This is information for managing the terminals to be connected to each other and the connection information in association with each other. For example, the information of the terminals at the start point and the end point of a certain connection is a connection start terminal information storage position 5.
2, and by searching data in the storage area indicating the head position in the terminal information storage unit 30 by the connection end terminal information storage position 53.

【0047】図3は、第1の実施例のプログラミング装
置によるプログラム作成支援処理の動作を説明するフロ
ーチャートである。尚、作成するプログラムは、図12
に示す従来例と同じものである。
FIG. 3 is a flowchart for explaining the operation of the program creation support processing by the programming device of the first embodiment. The program to be created is shown in FIG.
This is the same as the conventional example shown in FIG.

【0048】図4〜図6は、図3のフローチャートの動
作によって図2(a)〜(d)に示す各情報格納部に格
納されるデータの一例を示す図である。以下、図3〜図
6を参照して、説明する。
FIGS. 4 to 6 are diagrams showing an example of data stored in each information storage section shown in FIGS. 2A to 2D by the operation of the flowchart of FIG. Hereinafter, a description will be given with reference to FIGS.

【0049】まず、図3において、オペレータ等によっ
て命令群から関数のセル(例えば、加算(+)の関数の
セル)が選択されて、該関数のセルを表示部5の画面上
の任意の位置に配置する操作が行われると、RAM3内
にセル情報格納部20及び端子情報格納部30の記憶領
域を確保して、それらの格納部20、30にこの関数の
セル(例えば、加算(+)の関数のセル)の配置情報を
格納する(ステップS1)。
First, in FIG. 3, a cell of a function (for example, a cell of a function of addition (+)) is selected from an instruction group by an operator or the like, and the cell of the function is placed at an arbitrary position on the screen of the display unit 5. Is performed, the storage areas of the cell information storage unit 20 and the terminal information storage unit 30 are secured in the RAM 3 and the cells of this function are stored in the storage units 20 and 30 (for example, addition (+) Is stored (step S1).

【0050】このステップS1の処理によって、セル情
報格納部20には、例えば図4(a)のセル情報格納部
20−1に示すように、上記画面上に配置した関数(加
算(+)の関数)のセル情報が格納される。また、端子
情報格納部30には、例えば図4(b)の端子情報格納
部30−1に示すように、上記配置した関数(加算
(+)の関数)のセルが有する各端子(入力端子P、
Q、及び出力端子R)の情報が格納される。
By the process of step S1, the cell information storage unit 20 stores the function (addition (+) of the addition (+)) arranged on the screen as shown in the cell information storage unit 20-1 of FIG. Function) cell information is stored. In the terminal information storage unit 30, for example, as shown in the terminal information storage unit 30-1 in FIG. 4B, each terminal (input terminal) of the cell of the function (addition (+) function) arranged above is provided. P,
Q and information of the output terminal R) are stored.

【0051】図4(a)のセル情報格納部20−1で
は、セル種別21として関数のセルであることを示す
‘1’が格納され、セル名称22として‘+’が格納さ
れる。入力数23、出力数25には、上記入力/出力端
子数より、それぞれ‘2’、‘1’が格納される。入力
端子情報格納部の先頭位置24には、端子情報格納部3
0−1に格納された入力端子情報の先頭位置を示す
‘1’が格納される。出力端子情報格納部の先頭位置2
6には、端子情報格納部30−1に格納された出力端子
情報の先頭位置を示す‘3’が格納される。
In the cell information storage unit 20-1 of FIG. 4A, "1" indicating a function cell is stored as the cell type 21, and "+" is stored as the cell name 22. In the number of inputs 23 and the number of outputs 25, “2” and “1” are stored according to the number of input / output terminals. In the head position 24 of the input terminal information storage unit, the terminal information storage unit 3
“1” indicating the head position of the input terminal information stored in 0-1 is stored. Start position 2 of output terminal information storage
6, “3” indicating the head position of the output terminal information stored in the terminal information storage unit 30-1 is stored.

【0052】セルXY座標27、セル幅28、及びセル
高さ29には、それぞれ、例えばXY座標(8,0)、
セル幅‘5’、及びセル高さ‘5’が格納される。図4
(b)の端子情報格納部30−1では、例えば端子情報
格納部30内の先頭位置(上記入力端子情報格納部の先
頭位置24に格納される位置‘1’に該当する記憶領
域)に入力端子Pの情報が格納される。入力端子Pの情
報の次の位置(位置‘2’)には入力端子Qの情報が格
納され、さらにその次の位置(位置‘3’)には出力端
子Rの情報が格納される。
The cell XY coordinates 27, the cell width 28, and the cell height 29 respectively have, for example, XY coordinates (8, 0),
The cell width '5' and the cell height '5' are stored. FIG.
In the terminal information storage unit 30-1 of (b), for example, an input is made to the head position (the storage area corresponding to the position “1” stored in the head position 24 of the input terminal information storage unit) in the terminal information storage unit 30. Information on the terminal P is stored. The information of the input terminal Q is stored at the position next to the information of the input terminal P (position '2'), and the information of the output terminal R is stored at the next position (position '3').

【0053】次に、入力端子Pの情報について説明す
る。入/出力区分31には入力であることを示す‘1’
が格納される。該当セル情報格納位置32には、セル情
報格納部20内において上記関数(加算(+)の関数)
の情報が格納された位置を示す‘1’が格納される。
Next, information on the input terminal P will be described. '1' indicating input is set in the input / output section 31
Is stored. In the corresponding cell information storage position 32, the above function (function of addition (+)) is stored in the cell information storage unit 20.
'1' indicating the position where the information is stored is stored.

【0054】前端子情報格納位置33には‘0’(な
し)が格納される。次端子位置情報格納位置34には、
端子情報格納部30内において入力端子Qの情報が格納
された位置を示す‘2’が格納される。
In the front terminal information storage location 33, "0" (none) is stored. In the next terminal position information storage position 34,
“2” indicating the position where the information of the input terminal Q is stored in the terminal information storage unit 30 is stored.

【0055】端子XY座標35には、例えば座標(8,
1)が格納される。結線管理情報位置36には、現時点
ではまだ端子P、Q、Rの結線は成されておらず、結線
管理情報格納部50には当該情報は格納されていないの
で、‘0’(なし)が格納される。
For example, coordinates (8,
1) is stored. At the present time, the connection of the terminals P, Q, and R is not yet formed in the connection management information position 36, and the information is not stored in the connection management information storage unit 50, so that "0" (none) is displayed. Is stored.

【0056】入力端子Q、出力端子Rの情報も上記と同
様にして、端子情報格納部30内の位置‘2’、‘3’
の記憶領域に格納される。図4(c)、(d)に示すよ
うに、上記ステップS1の処理の段階では、まだ、結線
情報格納部40、結線管理情報格納部50にはデータは
格納されない。
The information of the input terminal Q and the output terminal R are also stored in the terminal information storage section 30 in the same manner as described above.
Is stored in the storage area. As shown in FIGS. 4C and 4D, at the stage of the processing in step S1, no data is yet stored in the connection information storage unit 40 and the connection management information storage unit 50.

【0057】そして、セル情報格納部20及び端子情報
格納部30に格納されたデータに基づいて、表示部5の
画面上に加算(+)の関数のセルとその端子P、Q、R
を表示する。すなわち、図12(a)に示す表示例のよ
うになる。
Then, based on the data stored in the cell information storage unit 20 and the terminal information storage unit 30, the cell of the addition (+) function and its terminals P, Q, R are displayed on the screen of the display unit 5.
Is displayed. That is, the display example is as shown in FIG.

【0058】図3において、次に、オペレータ等によっ
て命令群からオペランド記述部“〔〕”が選択され、こ
のオペランド記述部を結線すべき端子上(例えば上記加
算(+)の関数のセルの端子P)に置く操作が行われる
と、まずこのオペランド記述部が置かれた端子を判断
(検出)する処理を行う(ステップS2)。すなわち、
このオペランド記述部が置かれた位置が例えばXY座標
(8,1)であったとすると、図4(b)の端子情報格
納部30内の各端子の端子XY座標35を検索して、座
標が一致する端子を検出する。この場合、入力端子Pの
端子XY座標が(8,1)であるので、オペランド記述
部が置かれた端子は入力端子Pであるものと判断する。
In FIG. 3, next, an operand description section "[]" is selected from the instruction group by an operator or the like, and a terminal to which this operand description section is to be connected (for example, a terminal of a cell of the addition (+) function). When the operation of placing in P) is performed, first, a process of determining (detecting) the terminal in which the operand description section is placed is performed (step S2). That is,
Assuming that the position where the operand description section is located is, for example, XY coordinates (8, 1), the terminal XY coordinates 35 of each terminal in the terminal information storage section 30 of FIG. Detect matching terminals. In this case, since the terminal XY coordinates of the input terminal P are (8, 1), it is determined that the terminal in which the operand description part is placed is the input terminal P.

【0059】次に、この入力端子Pの該当セル情報格納
位置32の情報より、該当するセル(入力端子Pを有す
るセル)のセル情報が格納されている位置を求め、セル
情報格納部20内において該当するセル情報を検索する
(ステップS3)。そして、セルXY座標27、セル幅
28、及びセル高さ29のデータより、当該関数のセル
が表示部5の表示画面上で占めるエリアの大きさ/位置
を求め、この関数のセルと重ならずに上記入力端子Pの
左側にオペランド記述部を配置できるスペースがあるか
否かの判定を行う(ステップS4)。尚、オペランド記
述部の幅、高さは予め所定の値に定められており、この
値を用いて上記ステップS4の判定を行う。また、関数
のセルに対するオペランド記述部の配置は、端子が入力
端子である場合は当該端子の左側に、出力端子である場
合は右側に配置するものとしている。更に、上記ステッ
プS4では、関数のセルとオペランド記述部との間に結
線するスペースがあるか否かについても考慮して判定を
行う。
Next, from the information of the corresponding cell information storage position 32 of the input terminal P, the position where the cell information of the corresponding cell (the cell having the input terminal P) is stored is determined. Is searched for the corresponding cell information (step S3). Then, from the data of the cell XY coordinates 27, the cell width 28, and the cell height 29, the size / position of the area occupied by the cell of the function on the display screen of the display unit 5 is determined. Instead, it is determined whether there is a space on the left side of the input terminal P where the operand description section can be arranged (step S4). The width and height of the operand description section are set to predetermined values in advance, and the determination in step S4 is performed using these values. The arrangement of the operand description part for the function cell is such that the terminal is arranged on the left side of the input terminal when the terminal is an input terminal and on the right side when the terminal is an output terminal. Further, in step S4, the determination is made in consideration of whether there is a space for connection between the cell of the function and the operand description part.

【0060】尚、上記例では、オペランド記述部が加算
(+)の関数のセルと重ならないようにして配置できる
ことのみを考慮して判定を行っているが、実際には表示
画面上に密集して多数のセル(関数のセル、オペランド
記述部)が配置されている場合が考えられるので、セル
情報格納部20に格納されている全てのセル(関数のセ
ル、オペランド記述部)の情報を参照して、オペランド
記述部を配置できる空きスペースを判別することにな
る。
In the above example, the determination is made only by considering that the operand description section can be arranged so as not to overlap the cell of the addition (+) function. However, the determination is actually made densely on the display screen. It is conceivable that a large number of cells (function cells and operand description sections) are arranged, so refer to the information of all cells (function cells and operand description sections) stored in the cell information storage section 20. Then, an empty space in which the operand description section can be arranged is determined.

【0061】そして、オペランド記述部を配置可能な空
きスペースがある場合には、この空きスペースにオペラ
ンド記述部を配置して、その配置情報をセル情報格納部
20に格納し、更に当該オペランド記述部の端子Sの配
置情報を端子情報格納部30に格納する(ステップS
5)。このオペランド記述部の端子Sは、上記加算
(+)の関数の端子Pが入力端子であることから、自動
的に出力端子と判断される。
If there is an empty space where the operand description section can be arranged, the operand description section is arranged in this empty space, the arrangement information is stored in the cell information storage section 20, and the operand description section is further stored. Is stored in the terminal information storage unit 30 (step S).
5). The terminal S of the operand description section is automatically determined as an output terminal because the terminal P of the addition (+) function is an input terminal.

【0062】この結果、セル情報格納部20、端子情報
格納部30に格納される情報は、それぞれ図5(a)、
(b)に示すようになる。図5(a)のセル情報格納部
20−2に示すように、セル情報格納部20には加算
(+)の関数のセル情報の次の位置に、上記配置したオ
ペランド記述部のセル情報が格納される。このオペラン
ド記述部のセル情報は、同図に示すように、セル種別2
1は‘2’、セル名称22は‘A’、入力数23は
‘0’、入力端子情報格納部の先頭位置24は‘0’、
出力数25は‘1’、出力端子情報格納部の先頭位置2
6は‘4’、セルXY座標27は(0,0)、セル幅2
8は‘5’、セル高さ29は‘2’である。
As a result, the information stored in the cell information storage section 20 and the terminal information storage section 30 are as shown in FIG.
The result is as shown in FIG. As shown in the cell information storage unit 20-2 of FIG. 5A, the cell information storage unit 20 stores the cell information of the operand description unit arranged above at the position next to the cell information of the addition (+) function. Is stored. As shown in the figure, the cell information of this operand description part is cell type 2
1 is '2', cell name 22 is 'A', number of inputs 23 is '0', head position 24 of the input terminal information storage is '0',
The output number 25 is '1', the head position 2 of the output terminal information storage unit
6 is '4', cell XY coordinates 27 are (0,0), cell width 2
8 is '5' and cell height 29 is '2'.

【0063】図5(b)の端子情報格納部30−2に示
すように、セル情報格納部30には加算(+)の関数の
セルの各端子P、Q、Rの情報の次の位置(位置
‘4’)に、上記配置したオペランド記述部の端子(出
力端子)Sの情報が格納される。
As shown in the terminal information storage unit 30-2 in FIG. 5B, the cell information storage unit 30 stores the next position of the information of each terminal P, Q, and R of the cell of the addition (+) function. The information of the terminal (output terminal) S of the placed operand description section is stored in (position '4').

【0064】このオペランド記述部の出力端子情報は、
入/出力区分31は‘2’(出力)、該当セル情報格納
位置32は‘2’、前端子情報格納位置33は‘0’
(なし)、次端子位置情報格納位置34は‘0’(な
し)、端子XY座標35は(5,1)、結線管理情報位
置36は‘0’(なし)である。
The output terminal information of this operand description part is
The input / output division 31 is “2” (output), the corresponding cell information storage position 32 is “2”, and the previous terminal information storage position 33 is “0”.
(None), the next terminal position information storage position 34 is “0” (none), the terminal XY coordinates 35 are (5, 1), and the connection management information position 36 is “0” (none).

【0065】結線管理情報位置36が‘0’(なし)に
なっているのは、現段階では未だ結線が行われていない
ので、図5(c)、(d)に示すように、結線情報格納
部40、結線管理情報格納部50にはデータが格納され
ていないからである。
The reason why the connection management information position 36 is “0” (none) is that no connection has been made yet at this stage, and as shown in FIG. 5C and FIG. This is because no data is stored in the storage unit 40 and the connection management information storage unit 50.

【0066】上記ステップS5の処理が終了すると、次
に、結線情報格納部40、及び結線管理情報格納部50
に上記オペランド記述部の端子Sと加算(+)の関数の
端子Pとの結線情報を格納する(ステップS6)。互い
に結線すべき端子は、上記の通り分かっているので、こ
の各端子の座標値のデータを端子情報格納部30より読
み出して、結線情報格納部40に格納する。更に上記結
線すべき各端子の端子情報とその結線情報が格納されて
いる位置を示す情報を結線管理情報格納部50に格納す
る。また、これに伴って、上記結線すべき各端子の結線
管理情報位置36のデータを設定する。
When the processing in step S5 is completed, next, the connection information storage unit 40 and the connection management information storage unit 50
The connection information between the terminal S of the operand description section and the terminal P of the addition (+) function is stored (step S6). Since the terminals to be connected to each other are known as described above, the coordinate value data of each terminal is read from the terminal information storage unit 30 and stored in the connection information storage unit 40. Further, terminal information of each terminal to be connected and information indicating a position where the connection information is stored are stored in the connection management information storage unit 50. Accordingly, the data of the connection management information position 36 of each terminal to be connected is set.

【0067】この結果、結線情報格納部40内の結線開
始XY座標41、結線終了XY座標42には、それぞれ
図6(c)の結線情報格納部40−3に示すように、オ
ペランド記述部の出力端子Sの座標(5,1)と加算
(+)の関数のセルの端子Pの座標(8,1)が格納さ
れ、更に結線管理情報位置43には、結線管理情報格納
部50内で当該結線の管理情報が格納された位置を示す
‘1’が格納される。また、結線管理情報格納部50に
は、図6(d)の結線管理情報格納部50−3に示すよ
うに、結線情報格納部40内において当該結線の情報が
格納されている位置を示すデータ‘1’と、端子情報格
納部30内において上記オペランド記述部の端子Sの端
子情報が格納されている位置を示すデータ‘4’及び加
算(+)の関数の端子Pの端子情報が格納されている位
置を示すデータ‘1’が、それぞれ結線情報格納部位置
51、結線の先頭端子情報格納部位置52、結線の最終
端子情報格納部位置53に格納される。
As a result, the connection start XY coordinates 41 and the connection end XY coordinates 42 in the connection information storage unit 40 are respectively stored in the operand description unit as shown in the connection information storage unit 40-3 in FIG. The coordinates (5, 1) of the output terminal S and the coordinates (8, 1) of the terminal P of the cell of the function of addition (+) are stored in the connection management information position 43 in the connection management information storage unit 50. '1' indicating the position where the connection management information is stored is stored. In the connection management information storage unit 50, as shown in the connection management information storage unit 50-3 in FIG. 6D, data indicating the position where the information of the connection is stored in the connection information storage unit 40. "1", data "4" indicating the position where the terminal information of the terminal S of the operand description part is stored in the terminal information storage unit 30, and terminal information of the terminal P of the addition (+) function are stored. The data '1' indicating the position of the connection is stored in the connection information storage position 51, the connection start terminal information storage position 52, and the connection end terminal information storage position 53, respectively.

【0068】そして、最後に、図6(a)〜(d)に示
すセル情報格納部20−3、端子情報格納部30−3、
結線情報格納部40−3、及び結線管理情報格納部50
−3に格納されたデータに基づいて、表示部5の表示画
面上に図12(c)に示すようにオペランド記述部11
0及び端子S、P間の結線140を表示する(ステップ
S7)。
Finally, the cell information storage section 20-3, the terminal information storage section 30-3, and the cell information storage section 20-3 shown in FIGS.
Connection information storage unit 40-3 and connection management information storage unit 50
-3 based on the data stored in the operand description unit 11 on the display screen of the display unit 5 as shown in FIG.
0 and the connection 140 between the terminals S and P are displayed (step S7).

【0069】また、上記と同様の処理により、図12
(d)に示す結線も自動的に行える。ところで、ここ
で、既に上述してあるが、例えば表示画面上に密集して
多数のセル(関数のセル、オペランド記述部)が既に配
置されている状況等では、例えばオブジェクト記述部を
関数のセルに結線する場合、結線対象の関数のセルが占
める領域だけではなく、少なくともその近隣の他のセル
が占める領域も考慮して、オペランド記述部の配置可能
な場所を見つける必要がある。
Further, by the same processing as described above, FIG.
The connection shown in (d) can also be performed automatically. Here, as described above, for example, in a situation where a large number of cells (function cells and operand description sections) are already densely arranged on the display screen, for example, the object description section is replaced with the function cells. , It is necessary to find a place where the operand description part can be arranged in consideration of not only the area occupied by the cell of the function to be connected, but also at least the area occupied by other cells in the vicinity.

【0070】これについて、以下に図7〜図10を参照
して詳細に説明する。図7は、第2の実施例のプログラ
ミング装置によるプログラム作成支援処理の動作を説明
するフローチャートである。
This will be described in detail below with reference to FIGS. FIG. 7 is a flowchart illustrating an operation of a program creation support process performed by the programming device according to the second embodiment.

【0071】同図において、まず、図3のステップS1
〜S4と略同様の処理が行われる(ステップS11)。
すなわち、まず最初に、オペレータ等によって命令群か
ら関数のセル(例えば、加算(+)の関数のセル)が選
択されて、該関数のセルを表示部5の画面上の任意の位
置に配置する操作が行われており、この操作に応じてR
AM3内にセル情報格納部20及び端子情報格納部30
の記憶領域を確保して、それらの格納部20、30にこ
の関数のセル(例えば、加算(+)の関数のセル)の配
置情報を格納する処理が行われている。
In the figure, first, step S1 in FIG.
Processing similar to that of steps S4 to S4 is performed (step S11).
That is, first, a cell of a function (for example, a cell of a function of addition (+)) is selected from an instruction group by an operator or the like, and the cell of the function is arranged at an arbitrary position on the screen of the display unit 5. An operation is being performed.
Cell information storage unit 20 and terminal information storage unit 30 in AM3
Is performed to secure the storage area and store the arrangement information of the cell of this function (for example, the cell of the function of addition (+)) in the storage units 20 and 30.

【0072】そして、オペレータ等によって命令群から
オペランド記述部“〔 〕”が選択され、このオペラン
ド記述部を結線すべき端子上(例えば図8(a)の加算
(+)の関数のセル100の端子M)に置く操作が行わ
れると、まずオペランド記述部が置かれた端子を判断
(検出)する処理を行う。続いて、この検出した端子の
該当セル情報格納位置32の情報より、該当するセル
(入力端子Mを有するセル;この例ではセル100)の
セル情報が格納されている位置を求め、セル情報格納部
20内において該当するセル情報を検索する。次に、当
該関数のセルが表示部5の表示画面上で占めるエリアの
大きさ/位置を求め、この関数のセルと重ならずに所定
の位置にオペランド記述部を配置できるか否かの判定を
行う。但し、その際、図7の処理においては、当該関数
のセルが占めるエリアのみではなく、他のセル(関数の
セル、オペランドのセル等)が占めるエリアも算出す
る。これは、必ずしも全てのセルについて算出する必要
はなく、結線対象の関数のセル(例えばセル100)の
近隣のセル(例えばセル110)のみを対象にしても良
い。
Then, an operand description section "[]" is selected from the instruction group by an operator or the like, and the operand description section is connected to a terminal to which the operand description section is to be connected (for example, the cell 100 of the addition (+) function cell 100 in FIG. When the operation of placing the terminal M) is performed, a process of determining (detecting) the terminal in which the operand description section is placed is first performed. Subsequently, the position where the cell information of the corresponding cell (the cell having the input terminal M; cell 100 in this example) is stored is determined from the information of the corresponding cell information storage position 32 of the detected terminal, and the cell information storage is performed. The corresponding cell information is searched in the section 20. Next, the size / position of the area occupied by the cell of the function on the display screen of the display unit 5 is determined, and it is determined whether or not the operand description unit can be arranged at a predetermined position without overlapping the cell of the function. I do. However, at this time, in the process of FIG. 7, not only the area occupied by the cell of the function, but also the area occupied by other cells (cells of the function, cells of the operand, etc.) are calculated. This need not necessarily be calculated for all cells, and may be for only cells (for example, cell 110) that are adjacent to the cell (for example, cell 100) of the function to be connected.

【0073】そして、これら結線対象のセル及びその近
隣のセルが占めるエリアと重ならずに、所定の位置(例
えば上記端子Mの左側)にオペランド記述部を配置でき
るか否かを判定する。配置できる場合には、引続き図3
のステップS5〜S7の処理を行えばよい。
Then, it is determined whether or not the operand description section can be arranged at a predetermined position (for example, on the left side of the terminal M) without overlapping with the area occupied by the connection target cell and its neighboring cells. If it can be arranged, continue with Fig. 3.
Steps S5 to S7 may be performed.

【0074】一方、例えば、図8(a)に示すように、
加算(+)の関数のセル110が、加算(+)の関数の
セル100に近接して配置されていた状況において、加
算(+)の関数のセル100の端子Mにオペランド記述
部140を置く操作が行われた場合には、同図に示すよ
うに所定の位置(例えば端子Mの左側)にオペランド記
述部140を配置しようとしても、関数のセル110が
関数のセル100に非常に近い位置に配置されている為
に、オペランド記述部140を配置できるスペースがな
い。
On the other hand, for example, as shown in FIG.
In a situation where the cell 110 of the addition (+) function is arranged close to the cell 100 of the addition (+) function, the operand description unit 140 is placed at the terminal M of the cell 100 of the addition (+) function. When an operation is performed, even if an attempt is made to place the operand description section 140 at a predetermined position (for example, to the left of the terminal M) as shown in FIG. , There is no space in which the operand description section 140 can be arranged.

【0075】このような場合には、ステップS12以降
の処理にすすむ。すなわち、まず、オペランド記述部1
40を、図8(a)に示す所定の位置から予め決められ
ている規定の移動を行って(例えば図8(b)に示すよ
うに図8(a)の所定の位置から一段下にズラして)、
この移動後の位置に配置できるか否かを判定する(ステ
ップS12)。例えば図8(b)に示す例では、上記規
定の移動を行った位置にオペランド記述部140を配置
する空きスペースがあるので(ステップS12、YE
S)、この位置にオペランド記述部140を配置して図
3のステップS5〜S7の処理と略同様の処理を行う
(ステップS13)。
In such a case, the process proceeds to step S12 and subsequent steps. That is, first, the operand description section 1
8A is moved from a predetermined position shown in FIG. 8A by a predetermined movement (for example, as shown in FIG. 8B, it is shifted one step below the predetermined position in FIG. 8A). do it),
It is determined whether it can be arranged at the position after the movement (step S12). For example, in the example shown in FIG. 8B, there is an empty space for arranging the operand description unit 140 at the position where the above-mentioned specified movement has been performed (step S12, YE
S), the operand description section 140 is arranged at this position, and the processing substantially the same as the processing of steps S5 to S7 in FIG. 3 is performed (step S13).

【0076】一方、例えば図9(a)に示すように上記
規定の移動を行った位置に、他のセル150が存在する
等の為に、オペランド記述部140を配置する空きスペ
ースがない場合には(ステップS12、NO)、結線す
べき関数のセル100またはオペランド記述部140の
配置を妨げている他のセル(セル150等)を移動させ
ることで、空きスペースを作り出すことが可能であるか
否かを調べる(ステップS14)。そして、例えば、結
線すべき関数のセル100を移動させて空きスペースを
作り出すことが可能である場合には(ステップS14、
YES)、例えば図9(b)に示すようにセル100を
右方向に移動させることにより、このセル100の端子
Mの左側にオペランド記述部140を配置できる空きス
ペースを作り出して、オペランド記述部140を配置す
る(ステップS15)。あるいは、他のセル150を移
動させて空きスペースを作り出すことが可能である場合
には(ステップS14、YES)、例えば図9(c)に
示すようにセル150を図中の下方向に移動させること
により上記規定の移動を行った位置にオペランド記述部
140を配置できる空きスペースを作り出して、上記規
定の移動を行った位置にオペランド記述部140を配置
する(ステップS15)。または、特に図示していない
が、他のセル110を左方向に移動させることにより空
きスペースを作り出して、オペランド記述部140を配
置するようにしてもよい。
On the other hand, for example, as shown in FIG. 9A, when there is no free space for arranging the operand description section 140 due to the presence of another cell 150 at the position where the specified movement has been performed. (Step S12, NO), is it possible to create an empty space by moving the cell 100 of the function to be connected or another cell (such as the cell 150) that prevents the arrangement of the operand description section 140? It is checked whether or not it is (step S14). Then, for example, when it is possible to create an empty space by moving the cell 100 of the function to be connected (step S14,
YES), for example, by moving the cell 100 rightward as shown in FIG. 9B, an empty space where the operand description section 140 can be arranged on the left side of the terminal M of the cell 100 is created, and the operand description section 140 Are arranged (step S15). Alternatively, when it is possible to create an empty space by moving another cell 150 (step S14, YES), the cell 150 is moved downward in the figure, for example, as shown in FIG. 9C. This creates an empty space in which the operand description section 140 can be placed at the position where the above-mentioned prescribed movement has been performed, and places the operand description section 140 at the position where the above-mentioned prescribed movement has been made (step S15). Alternatively, although not specifically shown, an empty space may be created by moving the other cell 110 to the left, and the operand description section 140 may be arranged.

【0077】そして、上記のようにして確保した空きス
ペースにオペランド記述部140を配置すると共に図3
のステップS5〜ステップS7と略同様の処理を行う。
その際、結線対象のセルや他のセル等を移動させた場合
には、この移動させたセルの配置情報を変更する必要が
ある。
Then, the operand description section 140 is arranged in the empty space secured as described above, and FIG.
Steps S5 to S7 are performed.
At this time, when a cell to be connected or another cell is moved, it is necessary to change the arrangement information of the moved cell.

【0078】すなわち、まず、上記のように配置したオ
ペランド記述部140の配置情報を、セル情報格納部2
0に格納し、更に当該オペランド記述部の端子Nの配置
情報を端子情報格納部30に格納する。次に、結線情報
格納部40、及び結線管理情報格納部50に上記オペラ
ンド記述部140の端子Nと加算(+)の関数100の
端子Mとの結線情報を格納する。更に、移動させたセル
に係わる配置情報を変更する。すなわち、移動させたセ
ルに関するセル情報格納部20のセルXY座標27、端
子情報格納部30の端子XY座標35、及び結線情報格
納部40の結線開始XY位置41及び/または結線終了
XY位置42の情報を、移動後のセルの位置に対応する
情報となるように変更する。
That is, first, the arrangement information of the operand description section 140 arranged as described above is stored in the cell information storage section 2.
0, and further stores the arrangement information of the terminal N of the operand description section in the terminal information storage section 30. Next, the connection information between the terminal N of the operand description unit 140 and the terminal M of the addition (+) function 100 is stored in the connection information storage unit 40 and the connection management information storage unit 50. Further, the arrangement information related to the moved cell is changed. That is, the cell XY coordinates 27 of the cell information storage unit 20, the terminal XY coordinates 35 of the terminal information storage unit 30, and the connection start XY position 41 and / or the connection end XY position 42 of the connection information storage unit 40 relating to the moved cell. The information is changed so as to be information corresponding to the position of the cell after the movement.

【0079】尚、この移動させたセルに結線されている
オペランド記述部の配置情報も変更する必要がある。例
えば、セル110を移動させた場合にはこれに伴ってこ
のセル110の端子P、Qに結線されているオペランド
記述部120、130も移動させる必要があるので、こ
れに応じてオペランド記述部120、130の配置情報
も変更する。
It is necessary to change the arrangement information of the operand description section connected to the moved cell. For example, when the cell 110 is moved, the operand description units 120 and 130 connected to the terminals P and Q of the cell 110 also need to be moved accordingly. , 130 are also changed.

【0080】そして、最後に、セル情報格納部20、端
子情報格納部30、結線情報格納部40、及び結線管理
情報格納部50に格納されたデータに基づいて、表示部
5の表示画面上に関数のセル、オペランド記述部、端
子、結線を表示する(ステップS16)。
Finally, based on the data stored in the cell information storage unit 20, the terminal information storage unit 30, the connection information storage unit 40, and the connection management information storage unit 50, the display screen of the display unit 5 is displayed. The function cell, operand description section, terminal, and connection are displayed (step S16).

【0081】一方、既に配置されているセル(セル10
0、150等)を移動させて空きスペースを作り出すこ
とができない場合には(ステップS14、NO)、例え
ば図10(a)に示すように、セル100を右方向に移
動させたり、セル150を下方向に移動させると、“作
成境界線”を越えてしまう為、移動させることができな
い場合には(セル110もその左側に特に図示しない他
のセルが近接している等の為に移動できないものとす
る)、オペランド記述部140を配置可能な空きスペー
スの検索範囲を広げることによって(ステップS1
7)、配置可能な空きスペースがあるか否かを判定する
(ステップS18)。例えば、オペランド記述部140
を上記所定の位置から下方向または上方向(右方向また
は左方向であってもよい)に順次移動させていき、順次
移動させる毎にその移動させた位置に他のセル(関数の
セル、オブジェクト記述部等)が存在するか否かを調べ
る。
On the other hand, the cells already placed (cell 10
0, 150, etc.) (step S14, NO), for example, as shown in FIG. 10A, the cell 100 is moved rightward or the cell 150 is moved. If the cell 110 is moved downward, it will exceed the “creation boundary line”. If the cell cannot be moved (the cell 110 cannot be moved because another cell (not shown) is particularly close to the left side thereof). By expanding the search range of the empty space where the operand description section 140 can be arranged (step S1).
7), it is determined whether or not there is an available empty space (step S18). For example, the operand description section 140
Are sequentially moved downward or upward (may be rightward or leftward) from the predetermined position, and each time the cells are sequentially moved, another cell (function cell, object, (Description part, etc.) is checked.

【0082】オペランド記述部140を配置可能な場所
が見つかった場合には(ステップS18、YES)、こ
の場所にオペランド記述部140を配置すると共に図3
のステップS5〜S7と略同様の処理を行う(ステップ
S19)。
When a place where the operand description section 140 can be placed is found (step S18, YES), the operand description section 140 is placed at this place, and FIG.
Steps S5 to S7 are performed (step S19).

【0083】尚、検索範囲を広げてもオペランド記述部
140を配置可能な空きスペースが見つからない場合に
は(ステップS18、NO)、例えば「このオペランド
を配置するスペースが有りません」等のエラーメッセー
ジを表示して、処理を終了する。
If no free space for arranging operand description section 140 is found even if the search range is expanded (step S18, NO), an error such as "no space for arranging this operand" is generated. Display a message and end the process.

【0084】尚、上記実施形態では、関数のセルとオペ
ランド記述部間の結線を例にして説明したが、本発明は
これに限るものではない。関数のセル−関数のセル間の
結線、あるいはオペランド記述部−オペランド記述部間
の自動結線も行うことができる。
In the above embodiment, the connection between the function cell and the operand description section has been described as an example, but the present invention is not limited to this. Connection between function cells and function cells or automatic connection between operand description sections and operand description sections can be performed.

【0085】ところで、PCのプログラミング装置は、
専用に開発された装置の他に、一般のパソコン等をツー
ル本体として、PCのプログラミング機能を実現するア
プリケーションソフト(フロッピーディスク等の記憶媒
体に格納されているソフトウェア)を用いるものがあ
る。また、上記専用に開発された装置においても、フロ
ッピーディスク等を用いてアプリケーションソフトの交
換が行われる場合がある。よって、本発明は、プログラ
ミング装置本体、プログラミング装置におけるプログラ
ム作成支援方法に限らず、コンピュータにより使用され
たときに、上述の本発明の実施形態の機能をコンピュー
タに行わせるためのコンピュータ読出し可能な記録媒体
(記憶媒体)として構成することもできる。
By the way, the programming device of the PC is as follows.
In addition to a specially developed device, there is a device that uses application software (software stored in a storage medium such as a floppy disk) that realizes a PC programming function using a general personal computer as a tool body. Further, even in the device developed exclusively for the above, the application software may be exchanged using a floppy disk or the like. Therefore, the present invention is not limited to the main body of the programming device and the method of supporting program creation in the programming device, but also has a computer-readable record for causing a computer to perform the functions of the above-described embodiments of the present invention when used by the computer. It can also be configured as a medium (storage medium).

【0086】この場合、「記録媒体」には、例えば図1
1に示されるように、例えばCD−ROMディスク7
1、フロッピィーディスク72(あるいはMO、DV
D、リムーバブルハードディスク等であってもよい)等
の可搬記憶媒体70や、外部の装置60(サーバ等)内
の記憶手段(不図示)、あるいは情報処理装置80の本
体81内の記憶装置83(RAM/ROM又はハードデ
ィスク等)が含まれる。
In this case, the “recording medium” includes, for example, FIG.
As shown in FIG. 1, for example, a CD-ROM disk 7
1. Floppy disk 72 (or MO, DV
D, a removable hard disk or the like), a storage means (not shown) in an external device 60 (such as a server), or a storage device 83 in a main body 81 of the information processing device 80. (RAM / ROM or hard disk, etc.).

【0087】図11において、プログラム(データ)提
供者側の外部の装置60内の記憶手段(不図示)に記憶
されているプログラム(データ)60aは、公衆回線、
専用回線、インタフェース等である回線90を介して、
本願発明のアプリケーションプログラムの被提供者側の
情報処理装置80の上記本体82内の記憶装置83にロ
ードされて、実行される。
In FIG. 11, a program (data) 60a stored in a storage means (not shown) in an external device 60 on the program (data) provider side is a public line,
Through a line 90 such as a dedicated line or an interface,
The application program of the present invention is loaded into the storage device 83 in the main body 82 of the information processing device 80 on the recipient side and executed.

【0088】また、CD−ROM71、フロッピーディ
スク72等を情報処理装置80の上記本体81に設けら
れた(あるいは接続された)媒体駆動装置82に挿入す
ることで、これらの可搬記憶媒体70に記憶されている
プログラム(プログラム(データ)71a、プログラム
(データ)72a)が、媒体駆動装置82によって読み
出され(記憶装置83にロードされ)実行される。
Also, by inserting the CD-ROM 71, the floppy disk 72, and the like into the medium driving device 82 provided (or connected) to the main body 81 of the information processing device 80, these portable storage media 70 The stored programs (program (data) 71a and program (data) 72a) are read (loaded into the storage device 83) by the medium drive device 82 and executed.

【0089】尚、上記専用に開発された装置等はROM
交換によってプログラムを変更する形態もあるので、上
記可搬記憶媒体にはROMも含まれる。
The device and the like developed exclusively for the above are ROM
Since the program may be changed by replacement, the portable storage medium includes a ROM.

【0090】[0090]

【発明の効果】以上、詳細に説明したように、本発明の
PCのプログラミング装置によれば、配置された関数の
セルに対してオペランド記述部の配置と結線を行う際
に、オペレータ等は選択したオペランド記述部を接続先
の端子に置く操作を行うだけで、自動的にオペランド記
述部の配置、及びオペランド記述部の端子と関数のセル
の端子との結線が行われる。
As described above in detail, according to the PC programming apparatus of the present invention, when arranging and connecting the operand description section to the cell of the arranged function, the operator or the like selects the cell. By simply performing the operation of placing the operand description part on the connection destination terminal, the arrangement of the operand description part and the connection between the terminal of the operand description part and the terminal of the function cell are performed automatically.

【0091】これによって、ユーザがオペランド記述部
を配置可能な位置を判断して該オペランドの配置を行う
という面倒な作業を行う必要がなくなり、更には端子間
を結線する作業を行う必要がなくなるので、ユーザの操
作負担が軽減され、効率的にプログラミングできるよう
になる。
This eliminates the need for the user to determine the position where the operand description section can be arranged and to perform the operation of arranging the operand, thereby eliminating the need to perform the work of connecting the terminals. Thus, the operation burden on the user is reduced, and programming can be performed efficiently.

【0092】更に、セルが密集している等の為にオペラ
ンド記述部の配置可能なスペースがない場合でも、既に
配置されているセル(関数のセル等)を移動させて空き
スペースを作り出して、オペランド記述部の配置するこ
ともできる。
Further, even when there is no space where the operand description section can be arranged because the cells are densely arranged, the already arranged cells (such as function cells) are moved to create an empty space. An operand description section can also be arranged.

【0093】また、関数のセル−関数のセル間、あるい
はオペランド記述部−オペランド記述部間の配置及び端
子間の結線についても、上記と同様の効果が得られる。
The same effects as described above can be obtained for the arrangement between the function cells and the function cells or between the operand description section and the operand description section and the connection between the terminals.

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

【図1】本実施形態によるプログラミング装置の構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a programming device according to an embodiment.

【図2】各格納部のデータ構成図である。FIG. 2 is a data configuration diagram of each storage unit.

【図3】第1の実施例によるプログラム作成支援処理の
動作を説明するフローチャートである。
FIG. 3 is a flowchart illustrating an operation of a program creation support process according to the first embodiment.

【図4】図3のフローチャートの動作によって図2に示
す各情報格納部に格納されるデータの一例を示す図(そ
の1)である。
4 is a diagram (part 1) illustrating an example of data stored in each information storage unit illustrated in FIG. 2 by the operation of the flowchart in FIG. 3;

【図5】図3のフローチャートの動作によって図2に示
す各情報格納部に格納されるデータの一例を示す図(そ
の2)である。
5 is a diagram (part 2) illustrating an example of data stored in each information storage unit illustrated in FIG. 2 by the operation of the flowchart in FIG. 3;

【図6】図3のフローチャートの動作によって図2に示
す各情報格納部に格納されるデータの一例を示す図(そ
の3)である。
6 is a diagram (part 3) illustrating an example of data stored in each information storage unit illustrated in FIG. 2 by the operation of the flowchart in FIG. 3;

【図7】第2の実施例によるプログラム作成支援処理の
動作を説明するフローチャートである。
FIG. 7 is a flowchart illustrating an operation of a program creation support process according to the second embodiment.

【図8】オペランド記述部の自動配置、自動結線の一例
を示す図(その1)である。
FIG. 8 is a diagram (part 1) illustrating an example of automatic arrangement and automatic connection of an operand description section.

【図9】オペランド記述部の自動配置、自動結線の一例
を示す図(その2)である。
FIG. 9 is a diagram (part 2) illustrating an example of automatic arrangement and automatic connection of an operand description section.

【図10】オペランド記述部の自動配置、自動結線の一
例を示す図(その3)である。
FIG. 10 is a diagram (part 3) illustrating an example of automatic arrangement and automatic connection of an operand description section.

【図11】記録媒体(記憶媒体)の一例を示す図であ
る。
FIG. 11 is a diagram illustrating an example of a recording medium (storage medium).

【図12】FB図によるプログラム作成/表示の一例を
示す図である。
FIG. 12 is a diagram showing an example of program creation / display using an FB diagram.

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

1 CPU 2 入力部 3 RAM 3−1 セル情報格納部 3−2 端子情報格納部 3−3 結線情報格納部 3−4 結線管理情報格納部 4 記憶部 5 表示部 6 媒体駆動装置 7 可搬記憶媒体 8 通信部 10 プログラミング装置 11 PC 20 セル情報格納部 21 セル種別 22 セル名称 23 入力数 24 入力端子情報格納先頭位置 25 出力数 26 出力端子情報格納先頭位置 27 セルXY座標 28 セル幅 29 セル高さ 30 端子情報格納部 31 入/出力区分 32 該当セル情報格納位置 33 前端子情報格納位置 34 次端子情報格納位置 35 端子XY座標 36 該当結線管理情報格納位置 40 結線情報格納部 41 結線開始XY座標 42 結線終了XY座標 43 該当結線管理情報格納位置 50 結線管理情報格納部 51 結線情報格納部位置 52 結線の先頭端子情報格納部位置 53 結線の最終端子情報格納部位置 60 外部の装置 60a プログラム(データ) 70 可搬記憶媒体 71 CD−ROM 71a プログラム(データ) 72 フロッピーディスク 72a プログラム(データ) 80 情報処理装置 81 本体 82 媒体駆動装置 83 記憶装置 83a プログラム(データ) 90 回線 100 関数のセル(結線対象のセル) 110 関数のセル(他のセル) 120 オペランド記述部 130 オペランド記述部 140 オペランド記述部(結線すべきオペランド) 150 関数のセル(他のセル) DESCRIPTION OF SYMBOLS 1 CPU 2 Input part 3 RAM 3-1 Cell information storage part 3-2 Terminal information storage part 3-3 Connection information storage part 3-4 Connection management information storage part 4 Storage part 5 Display part 6 Medium drive device 7 Portable storage Medium 8 Communication unit 10 Programming device 11 PC 20 Cell information storage unit 21 Cell type 22 Cell name 23 Number of inputs 24 Input terminal information storage start position 25 Output number 26 Output terminal information storage start position 27 Cell XY coordinates 28 Cell width 29 Cell height S 30 Terminal information storage unit 31 Input / output division 32 Applicable cell information storage position 33 Previous terminal information storage position 34 Next terminal information storage position 35 Terminal XY coordinate 36 Applicable connection management information storage position 40 Connection information storage unit 41 Connection start XY coordinate 42 connection end XY coordinates 43 corresponding connection management information storage position 50 connection management information storage unit 51 connection information storage unit Position 52 Connection start terminal information storage location 53 Connection final terminal information storage location 60 External device 60a Program (data) 70 Portable storage medium 71 CD-ROM 71a Program (data) 72 Floppy disk 72a Program (data) Reference Signs List 80 information processing device 81 main body 82 medium driving device 83 storage device 83a program (data) 90 line 100 function cell (cell to be connected) 110 function cell (other cell) 120 operand description section 130 operand description section 140 operand description Part (operand to be connected) 150 Function cell (other cell)

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 プログラマブルコントローラを動作させ
るプログラムを、処理単位あるいは入力データまたは出
力データを示す各図形シンボルと該各図形シンボルが有
する端子間を結線して成る図示表現で作成させるプログ
ラミング装置において、 任意の位置に配置された第1の図形シンボル内の第1の
端子上に、第2の図形シンボルを配置する操作が行われ
たことを検出する検出手段と、 該検出手段により該配置操作が検出された第2の図形シ
ンボルを前記第1の図形シンボル外で前記第1の端子に
対応する位置に配置可能なエリアを検出して、該検出し
たエリアに前記第2の図形シンボルを配置する配置手段
と、 を有することを特徴とするプログラミング装置。
1. A programming device for creating a program for operating a programmable controller in a graphical representation formed by connecting each graphic symbol indicating a processing unit or input data or output data and a terminal of each graphic symbol, Detecting means for performing an operation of arranging the second graphic symbol on the first terminal in the first graphic symbol arranged at the position of the first symbol, and detecting the arrangement operation by the detecting means An area in which the determined second graphic symbol can be arranged at a position corresponding to the first terminal outside the first graphic symbol, and an arrangement for arranging the second graphic symbol in the detected area. Means, comprising: a programming device.
【請求項2】 前記第1、第2の図形シンボルのセル情
報とその端子情報とをそれぞれ格納する記憶手段と、 該記憶手段に格納されたセル情報と端子情報に基づいて
前記第1の図形シンボル内の第1の端子と前記第2の図
形シンボル内の第2の端子とを結線する結線手段と、 を更に有することを特徴とする請求項1記載のプログラ
ミング装置。
2. A storage means for storing cell information of the first and second graphic symbols and their terminal information, respectively, and the first graphic based on the cell information and the terminal information stored in the storage means. 2. The programming device according to claim 1, further comprising: connecting means for connecting a first terminal in the symbol and a second terminal in the second graphic symbol.
【請求項3】 前記検出手段は、前記第2の図形シンボ
ルが置かれた画面上の配置座標を検出し、前記記憶手段
に格納されている前記第1の図形シンボルの端子情報内
を検索して前記検出した配置座標と一致する端子配置座
標を検出することにより、前記第1の図形シンボル内の
第1の端子を判別し、 前記配置手段は、前記記憶手段に格納されている第1の
図形シンボルのセル情報に基づいて該第1の図形シンボ
ルが画面上に占める第1のエリアを算出し、該第1のエ
リアと重ならずに前記第2の図形シンボルを配置可能な
画面上の第2のエリアを検出して、該第2のエリアに該
第2の図形シンボルを配置させることを特徴とする請求
項2記載のプログラミング装置。
3. The detecting means detects arrangement coordinates on the screen where the second graphic symbol is placed, and searches terminal information of the first graphic symbol stored in the storage means. Detecting a terminal arrangement coordinate that coincides with the detected arrangement coordinates to determine a first terminal in the first graphic symbol, wherein the arrangement means stores a first terminal stored in the storage means. A first area occupied by the first graphic symbol on the screen is calculated based on the cell information of the graphic symbol, and a first area on the screen where the second graphic symbol can be arranged without overlapping the first area is calculated. 3. The programming device according to claim 2, wherein a second area is detected, and the second graphic symbol is arranged in the second area.
【請求項4】 前記第1の図形シンボルは処理単位を示
す関数の図形シンボルであり、前記第2の図形シンボル
はデータ入出力を示すオペランドの図形シンボルである
ことを特徴とする請求項1、2、又は3記載のプログラ
ミング装置。
4. The graphic symbol according to claim 1, wherein said first graphic symbol is a graphic symbol of a function indicating a processing unit, and said second graphic symbol is a graphic symbol of an operand indicating data input / output. 4. The programming device according to 2 or 3.
【請求項5】 プログラマブルコントローラを動作させ
るプログラムを、処理単位あるいは入力データまたは出
力データを示す各図形シンボルと該各図形シンボルが有
する端子間を結線して成る図示表現で作成させるプログ
ラミング装置において、 既に配置されている第1の図形シンボル内の第1の端子
上に、第2の図形シンボルを配置する操作が行われたこ
とを検出する検出手段と、 該検出手段により該配置操作が検出された第2の図形シ
ンボルを、前記第1の図形シンボルの第1の端子近辺の
所定の位置に、該第1の図形シンボル及び他の図形シン
ボルと重なることなく配置可能か否かを判定する第1の
判定手段と、 該第1の判定手段により配置不可能であると判定された
場合、前記第1の図形シンボルまたは他の図形シンボル
を移動させることによって前記第2の図形シンボルを配
置可能になるか否か、あるいは前記第2の図形シンボル
を前記所定の位置から移動させることにより配置可能に
なるか否かを判定する第2の判定手段と、 前記第1の判定手段または第2の判定手段により配置可
能であると判定された位置に前記第2の図形シンボルを
配置して、前記第1の図形シンボルと第2の図形シンボ
ルの端子間を結線する配置・結線手段と、 を有することを特徴とするプログラミング装置。
5. A programming device for creating a program for operating a programmable controller in a graphical representation formed by connecting each graphic symbol representing a processing unit or input data or output data and a terminal of each graphic symbol, Detecting means for detecting that an operation of arranging the second graphic symbol has been performed on the first terminal in the arranged first graphic symbol; and detecting the arranging operation by the detecting means. Determining whether the second graphic symbol can be arranged at a predetermined position near the first terminal of the first graphic symbol without overlapping the first graphic symbol and other graphic symbols; When the first determining means determines that placement is impossible, the first graphic symbol or another graphic symbol is moved. Second determining means for determining whether or not the second graphic symbol can be arranged by moving the second graphic symbol, or whether or not the second graphic symbol can be arranged by moving the second graphic symbol from the predetermined position. And arranging the second graphic symbol at a position determined by the first determination means or the second determination means to be capable of being arranged, and providing terminals for the first graphic symbol and the second graphic symbol. A programming device, comprising: an arrangement / connection means for connecting between them.
【請求項6】 前記第2の判定手段は、前記第1の判定
手段により前記所定の位置に配置不可能であると判定さ
れた場合に、前記第2の図形シンボルを前記所定の位置
から規定の移動を行った位置に配置可能であるか否かを
判定することを特徴とする請求項5記載のプログラミン
グ装置。
6. The second determining means defines the second graphic symbol from the predetermined position when the first determining means determines that the second graphic symbol cannot be arranged at the predetermined position. 6. The programming device according to claim 5, wherein it is determined whether or not it can be arranged at the position where the movement has been performed.
【請求項7】 前記第2の判定手段は、前記第1の判定
手段により前記所定の位置に配置不可能であると判定さ
れた場合に、前記第2の図形シンボルと重なる他の図形
シンボルまたは第1の図形シンボルを移動させることに
より該第2の図形シンボルが配置可能になるか否かを判
定することを特徴とする請求項5記載のプログラミング
装置。
7. The method according to claim 7, wherein the second determining unit determines that the first determining unit determines that the second graphic symbol cannot be arranged at the predetermined position. 6. The programming apparatus according to claim 5, wherein it is determined whether or not the second graphic symbol can be arranged by moving the first graphic symbol.
【請求項8】 前記第2の判定手段は、前記第2の図形
シンボルを前記所定の位置から規定の移動を行わせた位
置に配置不可能であると判定した場合に、前記第2の図
形シンボルを更に順次移動させていくことによって該第
2の図形シンボルが配置可能になるか否かを判定するこ
とを特徴とする請求項6記載のプログラミング装置。
8. The method according to claim 8, wherein the second determining unit determines that the second graphic symbol cannot be arranged at a position where a predetermined movement has been performed from the predetermined position. 7. The programming apparatus according to claim 6, wherein it is determined whether or not the second graphic symbol can be arranged by sequentially moving the symbol.
【請求項9】 プログラマブルコントローラを動作させ
るプログラムを、処理単位あるいは入力データまたは出
力データを示す各図形シンボルと該各図形シンボルが有
する端子間を結線して成る図示表現で作成させるプログ
ラミング装置における配置・結線方法において、 任意の位置に配置された第1の図形シンボル内の第1の
端子上に、第2の図形シンボルを配置する操作が行われ
たことを検出し、 該配置操作が検出された前記第2の図形シンボルを前記
第1の図形シンボル外で前記第1の端子に対応する位置
に配置可能なエリアを検出し、 該検出したエリアに前記第2の図形シンボルを配置し、 該配置した第2の図形シンボル内の第2の端子と前記第
1の端子とを結線することを特徴とする配置・結線方
法。
9. An arrangement in a programming device for creating a program for operating a programmable controller in a graphical representation formed by connecting each graphic symbol representing a processing unit or input data or output data and a terminal of each graphic symbol. In the connection method, it is detected that an operation of arranging a second graphic symbol has been performed on a first terminal in a first graphic symbol arranged at an arbitrary position, and the arrangement operation has been detected. Detecting an area where the second graphic symbol can be arranged at a position corresponding to the first terminal outside the first graphic symbol; arranging the second graphic symbol in the detected area; A second terminal in the second graphic symbol and the first terminal.
【請求項10】 プログラマブルコントローラを動作さ
せるプログラムを、処理単位あるいは入力データまたは
出力データを示す各図形シンボルと該各図形シンボルが
有する端子間を結線して成る図示表現で作成させるプロ
グラミング装置における配置・結線方法において、 既に配置されている第1の図形シンボル内の第1の端子
上に、第2の図形シンボルを配置する操作が行われたこ
とを検出し、 該配置操作が検出された第2の図形シンボルを、前記第
1の図形シンボルの第1の端子近辺の所定の位置に、該
第1の図形シンボル及び他の図形シンボルと重なること
なく配置可能か否かを判定し、 配置不可能であると判定された場合、前記第1の図形シ
ンボルまたは他の図形シンボルを移動させることによっ
て前記第2の図形シンボルを配置可能になるか否か、あ
るいは前記第2の図形シンボルを前記所定の位置から移
動させることにより配置可能になるか否かを判定し、 該判定結果に応じて、前記第2の図形シンボルを配置可
能なエリアに該第2の図形シンボルを配置して、前記第
1の図形シンボルと第2の図形シンボルの端子間を結線
することを特徴とする配置・結線方法。
10. An arrangement in a programming device for creating a program for operating a programmable controller in a diagrammatic representation formed by connecting between each graphic symbol indicating a processing unit or input data or output data and a terminal of each graphic symbol. In the connection method, it is detected that an operation of arranging a second graphic symbol has been performed on a first terminal in a first graphic symbol that has already been arranged, and the second operation is performed when the arrangement operation is detected. Is determined at a predetermined position in the vicinity of the first terminal of the first graphic symbol without overlapping the first graphic symbol and other graphic symbols. Is determined, the second graphic symbol is arranged by moving the first graphic symbol or another graphic symbol. It is determined whether or not the second graphic symbol can be arranged by moving the second graphic symbol from the predetermined position, and the second graphic symbol is arranged according to the determination result. A method of arranging and connecting the second graphic symbol in a possible area and connecting the terminals of the first graphic symbol and the second graphic symbol.
【請求項11】 コンピュータにより実行されることに
よりプログラマブルコントローラを動作させるプログラ
ムを図示表現で作成させるプログラムを記録した記録媒
体であって、 任意の位置に配置された第1の図形シンボル内の第1の
端子上に第2の図形シンボルを配置する操作が行われた
ことを検出する機能と、 該配置操作が検出された第2の図形シンボルを前記第1
の図形シンボル外に配置可能なエリアを検出する機能
と、 該検出したエリアに前記第2の図形シンボルを配置する
機能と、 該配置した第2の図形シンボル内の第2の端子と前記第
1の端子とを結線する機能と、 を前記コンピュータにより実行されることにより実現す
るプログラムを前記コンピュータが読取可能な形式で記
録した記録媒体。
11. A recording medium storing a program for creating a program for operating a programmable controller by a computer when executed by a computer, comprising: a first graphic symbol in a first graphic symbol arranged at an arbitrary position; A function of detecting that an operation of arranging a second graphic symbol on a terminal of the first graphic symbol has been performed;
A function of detecting an area that can be arranged outside the graphic symbol of the above, a function of arranging the second graphic symbol in the detected area, a second terminal in the arranged second graphic symbol, and the first A recording medium in which a program for realizing the function of connecting the terminal to the computer and executing the program by the computer is recorded in a format readable by the computer.
【請求項12】 コンピュータにより実行されることに
よりプログラマブルコントローラを動作させるプログラ
ムを図示表現で作成させるプログラムを記録した記録媒
体であって、 既に配置されている第1の図形シンボル内の第1の端子
上に、第2の図形シンボルを配置する操作が行われたこ
とを検出する機能と、 該配置操作が検出された第2の図形シンボルを、前記第
1の図形シンボルの第1の端子近辺の所定の位置に、該
第1の図形シンボル及び他の図形シンボルと重なること
なく配置可能か否かを判定する機能と、 配置不可能であると判定された場合、前記第1の図形シ
ンボルまたは他の図形シンボルを移動させることによっ
て前記第2の図形シンボルを配置可能になるか否か、あ
るいは前記第2の図形シンボルを前記所定の位置から移
動させることにより配置可能になるか否かを判定する機
能と、 該判定結果に応じて、前記第2の図形シンボルを配置可
能なエリアに該第2の図形シンボルを配置して、前記第
1の図形シンボルと第2の図形シンボルの端子間を結線
する機能と、 を前記コンピュータにより実行されることにより実現す
るプログラムを前記コンピュータが読取可能な形式で記
録した記録媒体。
12. A recording medium which stores a program for creating a program for operating a programmable controller by a computer when the program is executed by a computer, comprising: a first terminal in a first graphic symbol already arranged; A function of detecting that an operation of arranging the second graphic symbol has been performed, and a function of detecting the second graphic symbol whose arrangement operation has been detected in the vicinity of the first terminal of the first graphic symbol. A function of determining whether or not the first graphic symbol can be arranged at a predetermined position without overlapping with the first graphic symbol and another graphic symbol; Whether the second graphic symbol can be arranged by moving the second graphic symbol, or if the second graphic symbol is moved from the predetermined position. A function of deciding whether or not the second graphic symbol can be arranged by moving, and arranging the second graphic symbol in an area where the second graphic symbol can be arranged according to the result of the determination; A recording medium in which the program for realizing the function of connecting the terminal of the graphic symbol and the terminal of the second graphic symbol by executing the computer by the computer is recorded in a format readable by the computer.
JP03524998A 1997-09-25 1998-02-17 PROGRAMMING CONTROLLER PROGRAMMING DEVICE, CONFIGURATION / CONNECTION METHOD, AND RECORDING MEDIUM Expired - Fee Related JP3677985B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03524998A JP3677985B2 (en) 1997-09-25 1998-02-17 PROGRAMMING CONTROLLER PROGRAMMING DEVICE, CONFIGURATION / CONNECTION METHOD, AND RECORDING MEDIUM

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP25965597 1997-09-25
JP9-259655 1997-09-25
JP03524998A JP3677985B2 (en) 1997-09-25 1998-02-17 PROGRAMMING CONTROLLER PROGRAMMING DEVICE, CONFIGURATION / CONNECTION METHOD, AND RECORDING MEDIUM

Publications (2)

Publication Number Publication Date
JPH11161305A true JPH11161305A (en) 1999-06-18
JP3677985B2 JP3677985B2 (en) 2005-08-03

Family

ID=26374202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03524998A Expired - Fee Related JP3677985B2 (en) 1997-09-25 1998-02-17 PROGRAMMING CONTROLLER PROGRAMMING DEVICE, CONFIGURATION / CONNECTION METHOD, AND RECORDING MEDIUM

Country Status (1)

Country Link
JP (1) JP3677985B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002079886A1 (en) * 2001-03-29 2002-10-10 Mitsubishi Denki Kabushiki Kaisha Programming tool
JP2008310390A (en) * 2007-06-12 2008-12-25 Omron Corp Program development support device for safety controller
US11188048B2 (en) 2018-10-23 2021-11-30 Keyence Corporation Programmable logic controller and main unit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002079886A1 (en) * 2001-03-29 2002-10-10 Mitsubishi Denki Kabushiki Kaisha Programming tool
US7340683B2 (en) 2001-03-29 2008-03-04 Mitsubishi Denki Kabushiki Kaisha Programming tool
DE10197097B4 (en) * 2001-03-29 2012-02-23 Mitsubishi Denki K.K. programming tool
JP2008310390A (en) * 2007-06-12 2008-12-25 Omron Corp Program development support device for safety controller
US11188048B2 (en) 2018-10-23 2021-11-30 Keyence Corporation Programmable logic controller and main unit

Also Published As

Publication number Publication date
JP3677985B2 (en) 2005-08-03

Similar Documents

Publication Publication Date Title
US9483172B2 (en) Information processing device, information processing method, and computer-readable recording medium which records program
JP4453203B2 (en) Device environment setting system, device environment setting processing method, and information recording medium
JP2005044026A (en) Instruction execution method, instruction execution program and instruction execution device
US7742095B2 (en) Information processing apparatus, method and storage medium
EP0696774A2 (en) Portable terminal apparatus and an information processing method therefor
JPH11126149A (en) Information processor and method thereof, and memory medium
JPH11161305A (en) Programming device for programmable controller, arranging and connecting method, and recording medium
JP4266334B2 (en) Ladder program macro creation device, ladder program macro creation method, ladder program macro creation program, and computer-readable recording medium
JPH1195819A (en) Programming device for programmable controller, connection method and storage medium
JP2002268711A (en) Programmable display unit and plotting program for the same and recording medium with its plotting program recorded
JP2002207754A (en) Electronic dictionary system and electronic dictionary system program therefor
JP3144954B2 (en) Computer system
WO2024014364A1 (en) Ladder program editing device, editing method, and editing program
JP2001195432A (en) Cad system
JP3781923B2 (en) Line drawing apparatus, line drawing method, and computer-readable recording medium recording line drawing program
JPH09258952A (en) Method and system for controlling editing of card base hyper media
JP3688796B2 (en) Image display device and input device
JP4480378B2 (en) Character input support module
JPH11203031A (en) Data input device and its control method and storage medium
JPH1145103A (en) Programming device, interruption processing describing method, programmable controller and recording medium
JPH07281875A (en) Machining program management system of numerical controller
JP2000250903A (en) Document processor and recording medium recording interpretation image processing program
JPH08272571A (en) Display device and program generation device
JPH09288662A (en) Device and method for managing font data
JPH0644251A (en) Menu display method

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050214

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050502

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080520

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees