JP3491117B2 - Control program creation system for programmable controller - Google Patents

Control program creation system for programmable controller

Info

Publication number
JP3491117B2
JP3491117B2 JP08859896A JP8859896A JP3491117B2 JP 3491117 B2 JP3491117 B2 JP 3491117B2 JP 08859896 A JP08859896 A JP 08859896A JP 8859896 A JP8859896 A JP 8859896A JP 3491117 B2 JP3491117 B2 JP 3491117B2
Authority
JP
Japan
Prior art keywords
component
unit
control program
terminal
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP08859896A
Other languages
Japanese (ja)
Other versions
JPH09282016A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Holdings 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 Holdings Ltd filed Critical Fuji Electric Holdings Ltd
Priority to JP08859896A priority Critical patent/JP3491117B2/en
Publication of JPH09282016A publication Critical patent/JPH09282016A/en
Application granted granted Critical
Publication of JP3491117B2 publication Critical patent/JP3491117B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラマブルコ
ントローラ(「PLC」)による制御を行う場合に必要
な制御プログラムを、制御対象機器の仕様に合わせて効
率良く作成することを可能とする技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique capable of efficiently creating a control program required for controlling by a programmable controller ("PLC") in accordance with the specifications of equipment to be controlled.

【0002】[0002]

【従来の技術】PLCで制御対象機器の制御を行う際に
は、まず、予め制御プログラムを作成しておき、そし
て、PLCがローダによって、作成した制御プログラム
を読み込み、該制御プログラムにしたがって制御対象機
器の制御動作を行っている。
2. Description of the Related Art When controlling a device to be controlled by a PLC, first, a control program is created in advance, and then the PLC reads the created control program by a loader, and the control object is controlled according to the control program. It is controlling the equipment.

【0003】このような制御プログラムを記述するため
に、「ラダー言語」、「FBD(Functional
Block Diagram)言語」、「ニーモニッ
ク言語」等が採用されている。なお、このような言語を
使用して、記述された制御ソフトウエアは、コンパイル
されオブジェクトモージュールとなって、PLCに取り
込まれる。
In order to describe such a control program, "ladder language" and "FBD (Functional)" are used.
“Block Diagram language”, “mnemonic language” and the like are adopted. Note that the control software described using such a language is compiled into an object module and loaded into the PLC.

【0004】さて、PLCで、アクチュエータ、センサ
等の制御対象機器を制御する場合、基本的に、PLCと
制御対象機器とは、PLCが内蔵する入出力部が備える
入出力端子を用いて接続される。
When a PLC controls a device to be controlled such as an actuator or a sensor, basically, the PLC and the device to be controlled are connected using an input / output terminal provided in an input / output unit incorporated in the PLC. It

【0005】したがって、従来、制御プログラムを記述
する際は、上述したいずれの言語を使用する場合であっ
ても、制御対象機器の動作を規定するために、入出力端
子の信号レベルのタイミングチャート等を考慮しなが
ら、制御プログラムを記述する必要があった。
Therefore, conventionally, when writing a control program, whichever of the above-mentioned languages is used, in order to regulate the operation of the controlled device, a timing chart of signal levels of input / output terminals, etc. It was necessary to write the control program while taking into consideration the above.

【0006】図15に、ラダー言語を用いて制御プログ
ラムを記述する従来の方法の一例について示す。図15
では、運転指令を与える運転釦と停止指令を与える停止
釦を備える操作盤と、PLCと、制御対象機器であるモ
ータを有する制御装置を示している。
FIG. 15 shows an example of a conventional method for writing a control program using a ladder language. Figure 15
Shows a control device having an operation panel provided with a drive button for giving a drive command and a stop button for giving a stop command, a PLC, and a motor that is a device to be controlled.

【0007】そして、端子(接点)DI3、端子DI5
は、夫々運転釦、停止釦に対応し、端子DO10は、モ
ータへのDO出力となっている。今、運転釦を押すこと
によってモータが運転し、停止釦を押すことによってモ
ータが停止する制御動作を行うことを制御プログラムで
記述すると、図15に示すようなラダー図となる。
Then, terminals (contacts) DI3 and terminals DI5
Correspond to the operation button and the stop button, respectively, and the terminal DO10 serves as a DO output to the motor. If the control program describes that the motor operates when the operation button is pressed and the motor stops when the stop button is pressed, the ladder diagram shown in FIG. 15 is obtained.

【0008】このようなラダー図は、制御仕様をソフト
ウエアに変換する翻訳作業を、各端子に注目して行うこ
とによって作成できる。例えば、本例においては「運転
釦を押す=接点3番(DI3)がオンする。」、「モー
タを回転させる=コイル10番(DI0)をオンす
る。」等の入出力端子の動作状態を詳細に考慮して、ソ
フトウエア記述が行われる。
Such a ladder diagram can be created by paying attention to each terminal during the translation work for converting the control specifications into software. For example, in this example, the operation states of the input / output terminals such as “press the operation button = contact 3 (DI3) turns on” and “rotate the motor = turn coil 10 (DI0) on” A software description will be made taking into account the details.

【0009】さらに、制御演算過程で必要となる中間デ
ータ(図中「TEMP」に相当)も混在して記述しなけ
ればならない場合もある。
In some cases, intermediate data (corresponding to "TEMP" in the figure) required in the control calculation process must be described in a mixed manner.

【0010】[0010]

【発明が解決しようとする課題】上述したような従来の
制御プログラムの記述方法では、以下に示すような問題
が存在していた。
The conventional control program description method described above has the following problems.

【0011】第1に、制御対象機械の制御仕様をソフト
ウエアに変換する翻訳作業を、各端子に注目して行って
いるため、記述した制御プログラムの表現から実際の機
器の動作が直感的にイメージされないため、制御プログ
ラムの妥当性を判断するのに時間がかかってしまう。
First, since the translation work for converting the control specifications of the controlled machine into software is performed by paying attention to each terminal, the expression of the described control program makes the operation of the actual device intuitive. Since it is not imaged, it takes time to judge the validity of the control program.

【0012】第2に、通常、制御対象となる機器の動作
仕様の作成者と、制御プログラムの作成者とは異なり、
上記翻訳作業が介在することで、機器動作仕様の作成者
の意図が、制御プログラムの作成者に正しく伝わらな
い、例えば、制御プログラムの作成者が機器の動作仕様
を誤って把握してしまう場合も多かった。
Second, unlike the creator of the operation specification of the device to be controlled and the creator of the control program,
Due to the intervention of the above-mentioned translation work, the intention of the creator of the device operation specification is not correctly transmitted to the creator of the control program, for example, when the creator of the control program mistakenly grasps the operation specification of the device. There were many.

【0013】さらに、第3に、記述された制御プログラ
ムから、制御対象機器の動作を直感的に理解することが
困難なため、機器動作仕様の作成者は、制御プログラム
を理解することが困難であるという恨みもあった。
Thirdly, since it is difficult to intuitively understand the operation of the controlled device from the described control program, the creator of the device operation specification is difficult to understand the control program. There was also a grudge that there was.

【0014】そして、第4に、入出力端子に関する情報
や、制御演算過程の中間データに関する情報が混在して
記述されており、仮に、機器動作に仕様変更が生じた場
合、この変更に伴う制御プログラムの変更作業が極めて
困難である。
Fourthly, information about input / output terminals and information about intermediate data in the control calculation process are described in a mixed manner, and if a specification change occurs in the device operation, the control accompanying this change will occur. It is extremely difficult to change the program.

【0015】そこで、本発明は、上記課題に鑑みて創作
されたものであり、PLCの制御プログラムを、制御対
象機器の仕様に合わせて効率良く作成する手段を提供す
ることを目的としている。
Therefore, the present invention has been made in view of the above problems, and an object thereof is to provide means for efficiently creating a PLC control program in accordance with the specifications of a device to be controlled.

【0016】[0016]

【課題を解決するための手段】上記課題を解決し、本発
明の目的を達成するため、請求項1記載の発明によれ
ば、必要な情報の入力機能を有する入力部と、表示機能
を有する表示部と、各種の部品を登録しておく部品記憶
部と、ラダー回路の選択を行なうための部品選択結線部
と、を有し、制御対象機器の仕様に応じてプログラマブ
ルコントローラの制御プログラムを作成するシステムで
あって、前記部品記憶部は、制御対象の情報とこの制御
対象に必要な複数の部品とを対応づけて記憶する第1領
域と、各種の処理を行うためのワークエリアとなる第2
領域とを有し、前記部品選択結線部は、ユーザから前記
入力部を介して前記制御対象機器の仕様が与えられる
と、その仕様に応じて前記部品記憶部の第1領域から1
つのラダー回路部品と、このラダー回路部品の接点であ
って、前記制御対象機器に対するユーザインターフェイ
ス部品を獲得して前記表示部に表示させ、前記表示部に
表示された部品群に対してユーザが部品の端子の動作定
義や物理的な結線を行うと、その動作定義や結線が行わ
れた部品群を前記部品記憶部の第2領域に格納する、よ
うに構成され、このように格納された部品群を前記部品
記憶部の第2領域から取り出してコンパイルすることに
より制御プログラムを作成するようになっていることを
特徴とするプログラマブルコントローラの制御プログラ
ム作成システムが提供される。
In order to solve the above problems and to achieve the object of the present invention, the invention according to claim 1 has an input section having a function of inputting necessary information and a display function. Has a display unit, a component storage unit for registering various components, and a component selection connection unit for selecting a ladder circuit, and creates a programmable controller control program according to the specifications of the control target device. In the system, the component storage unit stores a control target information and a plurality of components required for the control target in association with each other, and a work area for performing various processes. Two
When the user gives a specification of the control target device via the input unit, the component selection connection unit has a region from the first region of the component storage unit according to the specification.
One ladder circuit component and a contact point of the ladder circuit component, and a user interface component for the control target device is acquired and displayed on the display unit, and the user selects the component group displayed on the display unit. When the operation definition and the physical connection of the terminals are performed, the group of parts for which the operation definition and the connection are performed are stored in the second area of the part storage unit, and the parts stored in this way are stored. A control program creating system for a programmable controller is provided, wherein a control program is created by taking out a group from the second area of the parts storage unit and compiling the group.

【0017】 また、請求項2記載の発明によれば、必
要な情報の入力機能を有する入力部と、表示機能を有す
る表示部と、各種の部品を登録しておく部品記憶部と、
ラダー回路の選択を行うための部品選択結線部と、を有
し、制御対象機器の仕様に応じてプログラマブルコント
ローラの制御プログラムを作成するシステムであって、
前記部品記憶部は、制御対象の情報とこの制御対象に
必要な複数の部品とを対応づけて記憶する第1領域と、
各種の処理を行うためのワークエリアとなる第2領域と
を有し、前記部品選択結線部は、ユーザから前記入力部
を介して前記制御対象機器の仕様が与えられると、その
仕様に応じて前記部品記憶部の第1領域から1つのラダ
ー回路部品と、このラダー回路部品の接点であって、前
記制御対象機器に対する外部インターフェイス部品を獲
得して前記表示部に表示させ、前記表示部に表示された
部品群に対してユーザが部品の端子の動作定義や物理的
な結線を行うと、その動作定義や結線が行われた部品群
を前記部品記憶部の第2領域に格納する、ように構成さ
れ、このように格納された部品群を前記部品記憶部の第
2領域から取り出してコンパイルすることにより制御プ
ログラムを作成するようになっていることを特徴とする
プログラマブルコントローラの制御プログラム作成シス
テムが提供される。
According to the invention of claim 2, an input unit having a function of inputting necessary information, a display unit having a display function, and a component storage unit for registering various components.
A system for creating a control program for a programmable controller according to the specifications of a device to be controlled, the system having a component selection connection part for selecting a ladder circuit,
The component storage section stores a first area in which information on a control target and a plurality of components required for the control target are stored in association with each other;
A second area which is a work area for performing various kinds of processing, and the component selection connection section receives a specification of the control target device from the user through the input section, and in accordance with the specification. One ladder circuit component from the first area of the component storage unit and an external interface component for the control target device, which is a contact point of the ladder circuit component, are acquired and displayed on the display unit, and displayed on the display unit. When the user defines the operation of the terminals of the parts or physically connects the created parts group, the parts group to which the operation definition and the wires are connected is stored in the second area of the parts storage unit. A programmable coordinator configured to take out a component group stored in this way from the second area of the component storage unit and compile the component program. Controller control program creation system is provided.

【0018】 さらに、請求項3記載の発明によれば、
請求項1および2の何れかに記載の制御プログラム作成
システムにおいて、部品にラベルを付与するラベル生成
部を設け、該ラベル生成部は、前記ラダー回路部品、前
記ユーザインターフェイス部品、および、前記外部イン
ターフェイス部品に対して、部品の種類固有に識別子を
付したものを記憶しておき、該識別子を参照して同一種
類の部品か否かを判定する処理と、ユーザが与えたラベ
ル名称を部品固有に付与するために、該ラベル名称を部
品に対応づけて前記部品記憶部に記憶する処理を行うよ
うになっていることを特徴とするプログラマブルコント
ローラの制御プログラム作成システムが提供される。
Further, according to the invention of claim 3,
3. The control program creation system according to claim 1, further comprising a label generation unit that gives a label to the component, the label generation unit including the ladder circuit component, the user interface component, and the external interface. For each part, an identifier unique to the type of the part is stored, and the process of determining whether the part is the same type or not by referring to the identifier and the label name given by the user to the part A control program creation system for a programmable controller is provided, in which the label name is associated with a component and stored in the component storage unit in order to assign the label name.

【0019】 さらにまた、請求項4記載の発明によれ
ば、請求項1、2および3の何れかに記載の制御プログ
ラム作成システムにおいて、回路間を結合するインター
フェイス回路を生成する結合回路生成部を設け、該結合
回路生成部は、接続対象となる端子の接続状態を前記部
品記憶部を参照して把握し、ある部品の出力接点が起動
状態(オン)となるとき、該部品に接続される全ての入
力接点が起動状態(オン)となる回路部品(結合回路)
を生成する処理を行うようになっていることを特徴とす
るプログラマブルコントローラの制御プログラム作成シ
ステムが提供される。
Further, according to the invention of claim 4, in the control program creating system according to any one of claims 1, 2 and 3, there is provided a coupling circuit generation unit for generating an interface circuit for coupling the circuits. The coupling circuit generation unit grasps the connection state of the terminal to be connected with reference to the component storage unit, and is connected to the component when the output contact of the component is in the activated state (ON). A circuit component (coupling circuit) in which all input contacts are activated (on)
A control program creation system for a programmable controller is provided, which is characterized in that it performs a process for generating.

【0020】 また、請求項5記載の発明は、請求項
1、2、3および4の何れかに記載の制御プログラム作
成システムにおいて、各部品の入力および出力端子のリ
ストを生成するリスト生成部を設け、該リスト生成部
は、外部インターフェイス部品の情報を前記部品記憶部
から獲得し、ユーザが指定したルールに基づいて入力接
点(端子)および出力接点(端子)を登録した端子リス
トを生成する処理を行うようになっていることを特徴と
するプログラマブルコントローラの制御プログラム作成
システムである。
Further, the invention according to claim 5 is the control program creating system according to any one of claims 1, 2, 3 and 4, further comprising a list creating unit for creating a list of input and output terminals of each component. A process of providing the list generation unit with information of external interface components from the component storage unit and generating a terminal list in which input contacts (terminals) and output contacts (terminals) are registered based on a rule specified by the user. It is a control program creation system for a programmable controller, characterized in that

【0021】 そして、請求項6記載の発明は、請求項
5に記載の制御プログラム作成システムにおいて、部品
が備える端子をプログラマブルコントローラに割り付け
る機能を有する端子割り付け部を設け、該端子割り付け
部は、前記端子リストを参照して、予め定めた規則にし
たがって、各入力端子および各出力端子を、プログラマ
ブルコントローラ入力端子および出力端子に割り付ける
処理を行うようになっていることを特徴とするプログラ
マブルコントローラの制御プログラム作成システムであ
る。
According to a sixth aspect of the present invention, in the control program creating system according to the fifth aspect, a terminal allocating unit having a function of allocating a terminal included in the component to the programmable controller is provided, and the terminal allocating unit is the A control program for a programmable controller, characterized by performing a process of allocating each input terminal and each output terminal to the programmable controller input terminal and output terminal according to a predetermined rule with reference to a terminal list. It is a creation system.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施形態を図面を
参照しつつ説明する。図1に、本発明の実施形態にかか
るシステムの構成図を示す。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration diagram of a system according to an embodiment of the present invention.

【0023】まず、図1(a)には、ハードウエアシス
テム構成図を示しており、本システムは、各種の処理を
行うCPU2と、該CPU2の動作プログラムを記憶す
るROM3と、ワークエリア等として機能するRAM4
と、システム動作に必要な各種の情報を記憶するHDD
(ハードディスクドライバ)5と、キーボード8やマウ
ス9等の入力デバイスを接続するI/F(インタフェー
ス)6と、表示デバイスであるCRT10を接続するI
/F(インタフェース)とを有し、各構成要素は、相互
間で必要な情報を送受信可能にシステムバスに接続され
ている。
First, FIG. 1A shows a hardware system configuration diagram. This system includes a CPU 2 for performing various processes, a ROM 3 for storing an operation program of the CPU 2, a work area, and the like. RAM4 that works
And an HDD that stores various information necessary for system operation
(Hard disk driver) 5, I / F (interface) 6 for connecting input devices such as keyboard 8 and mouse 9, and I for connecting CRT 10 which is a display device
/ F (interface), and each component is connected to the system bus so that necessary information can be transmitted and received between them.

【0024】CPU2は、ROM3に格納されている動
作プログラムにしたがって各種の処理を行うが、これを
説明するために、図1(b)に、本システムが有する機
能に注目した構成図である機能ブロック図を示す。
The CPU 2 performs various kinds of processing according to the operation program stored in the ROM 3, and in order to explain this, FIG. 1 (b) is a block diagram focusing on the functions of this system. A block diagram is shown.

【0025】本システムは、必要な情報の入力機能を有
する入力部12と、表示機能を有する表示部13と、各
種の部品を登録しておく部品記憶部14と、ラダー回路
の選択等を行うための部品選択結線部15と、回路間を
結合するインタフェース回路を生成する結合回路生成部
16と、部品にラベルを付与するラベル生成部17と、
各部品の入力および出力端子のリストを生成するリスト
生成部18と、部品が備える端子をPLCに割り付ける
機能を有する端子割り付け部19と、部品選択、結線等
において必要な情報を表示し、グラフィカルユーザイン
タフェース機能を有する表示制御部20とを有する。な
お、部品記憶部14には、各種の処理を行うためのワー
クエリアとなる領域が、存在するものとする。
This system performs an input unit 12 having a function of inputting necessary information, a display unit 13 having a display function, a component storage unit 14 for registering various components, a ladder circuit selection, and the like. A component selection connection unit 15, a coupling circuit generation unit 16 that generates an interface circuit that couples the circuits, a label generation unit 17 that gives a label to the component,
A list generation unit 18 that generates a list of input and output terminals of each component, a terminal allocation unit 19 that has a function of allocating the terminals included in the component to the PLC, and information necessary for component selection, connection, etc. And a display control unit 20 having an interface function. It should be noted that the component storage unit 14 has an area serving as a work area for performing various processes.

【0026】なお、入力部12、表示部13および部品
記憶部14は、夫々、キーボード8やマウス9、CRT
10、HDD5に対応する。また、その他の機能ブロッ
クは、CPU2が、ROM3に格納されている動作プロ
グラムにしたがって処理を行うことによって実現でき
る。
The input unit 12, the display unit 13 and the component storage unit 14 are respectively a keyboard 8, a mouse 9 and a CRT.
10, corresponding to HDD5. Further, the other functional blocks can be realized by the CPU 2 performing processing according to the operation program stored in the ROM 3.

【0027】まず、第1の実施形態について説明する。
本実施形態は、入力部12を介して与えた起動コマンド
にしたがって、部品選択結線部15が行う処理に係わ
り、PLCの制御対象機器を、3相電源を入力して動作
制御を行う制御回路を備えるモータ(アクチュエータ)
としている。
First, the first embodiment will be described.
The present embodiment relates to a process performed by the component selection connection unit 15 in accordance with a start command given via the input unit 12, and includes a control circuit for controlling a PLC controlled device by inputting a three-phase power supply to perform operation control. Motor (actuator) equipped
I am trying.

【0028】部品選択結線部15は、制御対象(制御仕
様)を与えることにより、部品記憶部14から必要な部
品を獲得する機能を有し、このような機能を実現するた
めには、制御対象の情報と、必要な部品とを対応ずけ
て、部品記憶部14に登録しておけばよい。
The component selection connection unit 15 has a function of acquiring a necessary component from the component storage unit 14 by giving a control target (control specification). In order to realize such a function, the control target is controlled. The above information and necessary parts may be associated with each other and registered in the parts storage unit 14.

【0029】さて、部品選択結線部15が起動すると、
表示制御部20は、制御対象機器を選択させるプルダウ
ンメニューを表示部13に表示する。ユーザが、モータ
の種類(制御対象)を選択すると、モータの制御手順を
示すラダー回路である内部回路が部品記憶部14から選
択される。また、内部回路に対応するユザインタフェー
ス部品(図2では、モータ部品)、外部インタフェース
部品も提示される。このような部品は、表示制御部20
によって表示部13に表示されるように動作プログラム
を作成しておけばよい。なお、ユーザに対して、内部回
路の詳細な内容は一切知らされない。
Now, when the component selection connection section 15 is activated,
The display control unit 20 causes the display unit 13 to display a pull-down menu for selecting a device to be controlled. When the user selects a motor type (control target), an internal circuit, which is a ladder circuit showing a motor control procedure, is selected from the component storage unit 14. Further, a user interface component (motor component in FIG. 2) corresponding to the internal circuit and an external interface component are also presented. Such a component is provided in the display control unit 20.
The operation program may be created so that it is displayed on the display unit 13. The user is not informed of the detailed contents of the internal circuit.

【0030】さて、ユーザインタフェース部品、外
部インタフェース部品、内部回路部品において、端子
の動作定義や物理的な結線を行う操作をする。 ユーザインタフェース部品。
Now, in the user interface parts, the external interface parts, and the internal circuit parts, the operation for defining the operation of the terminals and the physical connection are performed. User interface parts.

【0031】一般に、制御対象機器毎に、動作指令を定
義する必要があるが、本例では、制御対象機器がモータ
であり、ユーザインターフェイス部品は、2つの端子を
備えており、動作指令は、「「回転」指令、「停止」指
令」の2種とする。
Generally, it is necessary to define an operation command for each device to be controlled, but in this example, the device to be controlled is a motor, the user interface component has two terminals, and the operation command is There are two types of "rotation" commands and "stop" commands.

【0032】なお、部品選択結線部15は、ユーザの操
作により、回転、停止に対応させた、回転釦、停止釦を
備える部品を呼び出し、接続する処理を行うように、動
作プログラムを構成しておけばよい。
The component selection connection unit 15 configures an operation program so as to perform a process of calling and connecting a component provided with a rotation button and a stop button, which corresponds to rotation and stop, by a user operation. You can leave it.

【0033】これによって、回転釦、停止釦を備える部
品とユーザインターフェイス部品との接続関係が定義さ
れる。 外部インタフェース部品。
As a result, the connection relationship between the parts including the rotary button and the stop button and the user interface parts is defined. External interface parts.

【0034】一般に、実際の制御対象機器と物理的結線
が行われている端子の定義を行う必要があるが、本例で
は、制御対象機器がモータであり、「RUN端子がオン
で、回転、RUN端子がオフで、停止」するものとし
て、外部インタフェース部品の出力(DO)端子の「R
UN」を定義する。
Generally, it is necessary to define a terminal that is physically connected to an actual controlled device, but in this example, the controlled device is a motor and "run terminal is ON, rotation, "RUN terminal is off, and it is stopped", the output (DO) terminal of the external interface component "R"
UN "is defined.

【0035】内部回路部品。 この部品はユーザの操作により部品選択結線部15が選
択した部品である。本例では、「「回転」指令オンに
て、RUNをホールド出力、「停止」指令オンにて、R
UN出力をオフ」するロジックとなっている。
Internal circuit components. This component is a component selected by the component selection connection unit 15 by a user operation. In this example, when "rotation" command is on, RUN is held and output, when "stop" command is on, R
The logic is to turn off the UN output.

【0036】このようにして構成した部品群を、部品記
憶部14の空きエリアに一時的に格納しておき、必要な
ときに取り出して、コンパイルしてオブジェクトモージ
ュールとすれば、PLCで動作可能な制御プログラムを
生成できる。
The component group thus constructed is temporarily stored in an empty area of the component storage unit 14, taken out when necessary, and compiled into an object module, which can be operated by PLC. It can generate various control programs.

【0037】このようにして、制御プログラムを生成す
ることによって、各端子の信号名称や制御演算過程での
中間情報(図2では「RUN」)が部品側に隠蔽され、
制御プログラム記述時、動作指令の生成のみを考えれば
良い。また、動作指令から、制御対象機器(アクチュエ
ータ)の動作を直感的にイメージすることができ、ソフ
トウエアの専門知識がなくても、ソフトウエア記述が容
易となる。
By thus generating the control program, the signal name of each terminal and the intermediate information (“RUN” in FIG. 2) in the control calculation process are hidden on the component side,
When writing a control program, it is only necessary to consider the generation of operation commands. In addition, the operation command allows an intuitive image of the operation of the device to be controlled (actuator), and the software description becomes easy even without specialized software knowledge.

【0038】図3は、部品レベル(実際の回路とは異な
る)での結線例を示したものであり、接点Aまたは接点
Bがオン状態になれば、モータが回転し、接点Cがオン
状態になれば、モータが停止するという制御動作が直感
的にイメージできる。
FIG. 3 shows an example of connection at the component level (different from the actual circuit). When the contact A or the contact B is turned on, the motor rotates and the contact C is turned on. If so, the control operation of stopping the motor can be intuitively imagined.

【0039】次に、第2の実施形態について説明する。
本実施形態は、入力部12を介して与えた起動コマンド
にしたがって、部品選択結線部15が行う処理に係わ
り、PLCの監視対象機器を、センサーの一例であるリ
ミットスイッチとしている。
Next, a second embodiment will be described.
The present embodiment relates to the processing performed by the component selection connection unit 15 in accordance with the activation command given via the input unit 12, and the PLC monitoring target device is a limit switch which is an example of a sensor.

【0040】部品選択結線部15は、監視対象(制御仕
様)を与えることにより、部品記憶部14から必要な部
品を獲得する機能を有し、このような機能を実現するた
めには、監視対象の情報と、必要な部品とを対応ずけ
て、部品記憶部14に登録しておけばよい。
The component selection connection unit 15 has a function of acquiring a necessary component from the component storage unit 14 by giving a monitoring target (control specification). In order to realize such a function, the monitoring target is controlled. The above information and necessary parts may be associated with each other and registered in the parts storage unit 14.

【0041】さて、部品選択結線部15が起動すると、
表示制御部20は、監視対象機器を選択させるプルダウ
ンメニューを表示部13に表示する。ユーザが、センサ
の種類(制御対象)、具体的にはリミットスイッチを選
択すると、リミットスイッチの制御手順を示すラダー回
路である内部回路が部品記憶部14から選択される。ま
た、内部回路に対応するユーザインタフェース部品(図
4では、リミットスイッチ部品)、外部インタフェース
部品も提示される。このような部品は、表示制御部20
によって表示部13に表示されるように動作プログラム
を作成しておけばよい。なお、ユーザに対して、内部回
路の詳細な内容は一切知らされない。
Now, when the component selection connection section 15 is activated,
The display control unit 20 causes the display unit 13 to display a pull-down menu for selecting a device to be monitored. When the user selects a sensor type (control target), specifically, a limit switch, an internal circuit which is a ladder circuit showing a control procedure of the limit switch is selected from the component storage unit 14. Further, a user interface component (a limit switch component in FIG. 4) corresponding to the internal circuit and an external interface component are also presented. Such a component is provided in the display control unit 20.
The operation program may be created so that it is displayed on the display unit 13. The user is not informed of the detailed contents of the internal circuit.

【0042】さて、ユーザインターフェイス部品、
外部インタフェース部品、内部回路部品において、端
子の動作定義や物理的な結線を行う操作をする。 ユーザインタフェース部品。
Now, the user interface parts,
In the external interface parts and internal circuit parts, perform the operation definition of terminals and physical connection. User interface parts.

【0043】一般に、監視対象機器毎に、動作指令を定
義する必要があるが、本例では、監視対象機器がリミッ
トスイッチであり、ユーザインタフェース部品は、2つ
の端子を備えており、動作状態は、「「入」状態」の1
種とする。
Generally, it is necessary to define an operation command for each device to be monitored, but in this example, the device to be monitored is a limit switch, the user interface component has two terminals, and the operating state is , 1 in the "ON" state
Seed.

【0044】なお、部品選択結線部15は、ユーザの操
作により、「入」に接続する部品を呼び出し、接続する
処理を行うように、動作プログラムを構成しておけばよ
い。 外部インタフェース部品。
It should be noted that the component selecting / connecting unit 15 may be configured with an operation program so as to call a component to be connected to "ON" and perform a process of connecting by a user's operation. External interface parts.

【0045】一般に、実際の監視対象機器と物理的結線
が行われている端子の定義を行う必要があるが、本例で
は、監視対象機器がリミットスイッチであり、「接点
「入」がオン状態で、オン信号を生成」するものとし
て、外部インタフェース部品の入力(DI)端子の「O
N」を定義する。
Generally, it is necessary to define a terminal that is physically connected to the actual monitored device, but in this example, the monitored device is a limit switch and "contact" ON "is in the ON state. To generate an ON signal ", the" O "of the input (DI) terminal of the external interface component is
N "is defined.

【0046】内部回路部品。 この部品はユーザの操作により部品選択結線部15が選
択した部品である。本例では、「「ON」信号オンに
て、動作状態「入」を生成」するロジックとなってい
る。
Internal circuit components. This component is a component selected by the component selection connection unit 15 by a user operation. In this example, the logic is "generate" ON "" when the "ON" signal is turned on.

【0047】このようにして構成した部品群を、部品記
憶部14の空きエリアに一時的に格納しておき、必要な
ときに取り出して、コンパイルしてオブジェクトモージ
ュールとすれば、PLCで動作可能な制御プログラムを
生成できる。
The parts group thus constructed can be temporarily stored in an empty area of the parts storage unit 14, taken out when necessary, compiled and made into an object module, which can be operated by PLC. It can generate various control programs.

【0048】このようにして、制御プログラムを生成す
ることによって、状態情報から、監視対象機器(リミッ
トスイッチ)の動作を直感的にイメージすることがで
き、ソフトウエアの専門知識がなくても、ソフトウエア
記述が容易となる。
By thus generating the control program, it is possible to intuitively imagine the operation of the monitored device (limit switch) from the status information, and the software can be used without any special knowledge of software. Wear description becomes easy.

【0049】図5は、部品レベル(実際の回路とは異な
る)での結線例を示したものであり、リミットスイッチ
部品の接点「入」がオン状態になれば、LEDが点灯す
るという制御動作が直感的にイメージできる。
FIG. 5 shows an example of connection at the component level (different from the actual circuit). When the contact "ON" of the limit switch component is turned on, the control operation is such that the LED is turned on. Can be intuitively imagined.

【0050】次に、第3の実施形態について説明する。
本実施形態は、入力部12を介して与えた起動コマンド
にしたがって、部品選択結線部15が行う処理に係わ
り、PLCの制御対象機器を、3相電源を入力して動作
制御を行う制御回路を備えるモータ(アクチュエータ)
としているとともに、制御回路から出力される「ER
R」信号を監視している。即ち、本実施形態は、アクチ
ュエータ機器とセンサ機器とを組み合わせて機器の制御
動作を行う制御プログラムの記述に関し、第1の実施形
態において、「ERR」信号の監視動作が加わっただけ
である。なお、「ERR」信号は、モータに異常が生じ
た場合に出力される。
Next, a third embodiment will be described.
The present embodiment relates to a process performed by the component selection connection unit 15 in accordance with a start command given via the input unit 12, and includes a control circuit for controlling a PLC controlled device by inputting a three-phase power supply to perform operation control. Motor (actuator) equipped
And the “ER output from the control circuit.
R "signal is being monitored. That is, the present embodiment relates to the description of the control program for controlling the device by combining the actuator device and the sensor device, and only the monitoring operation of the "ERR" signal is added in the first embodiment. The "ERR" signal is output when an abnormality occurs in the motor.

【0051】部品選択結線部15は、制御対象(制御仕
様)を与えることにより(具体的には、「ERR」信号
出力可能なモータであること)、部品記憶部14から必
要な部品を獲得する機能を有し、このような機能を実現
するためには、制御対象の情報と、必要な部品とを対応
ずけて、部品記憶部14に登録しておけばよい。
The component selection connection unit 15 acquires a required component from the component storage unit 14 by giving a control target (control specification) (specifically, a motor capable of outputting an "ERR" signal). In order to have a function and to realize such a function, the information of the control target and the necessary parts may be associated and registered in the parts storage unit 14.

【0052】さて、部品選択結線部15が起動すると、
表示制御部20は、制御対象機器を選択させるプルダウ
ンメニューを表示部13に表示する。ユーザが、モータ
の種類(制御対象)を選択すると、モータの制御手順を
示すラダー回路である内部回路が部品記憶部14から選
択される。また、内部回路に対応するユーザインタフェ
ース部品(図2では、モータ部品)、外部インタフェー
ス部品も提示される。このような部品は、表示制御部2
0によって表示部13に表示されるように動作プログラ
ムを作成しておけばよい。なお、ユーザに対して、内部
回路の詳細な内容は一切知らされない。
Now, when the component selection connection section 15 is activated,
The display control unit 20 causes the display unit 13 to display a pull-down menu for selecting a device to be controlled. When the user selects a motor type (control target), an internal circuit, which is a ladder circuit showing a motor control procedure, is selected from the component storage unit 14. Further, a user interface component (motor component in FIG. 2) corresponding to the internal circuit and an external interface component are also presented. Such a component is provided in the display control unit 2
It is sufficient to create an operation program so that 0 will be displayed on the display unit 13. The user is not informed of the detailed contents of the internal circuit.

【0053】さて、ユーザインタフェース部品、外
部インタフェース部品、内部回路部品において、端子
の動作定義や物理的な結線を行う操作をする。 ユーザインタフェース部品。
Now, in the user interface component, the external interface component, and the internal circuit component, the operation for defining the operation of the terminal and the physical connection are performed. User interface parts.

【0054】一般に、制御対象機器毎に、動作指令を定
義する必要があるが、本例では、制御対象機器がモータ
であり、ユーザインタフェース部品は、3つの端子を備
えており、動作指令は、「「回転」指令、「停止」指
令」の2種とし、動作状態は、「「故障」状態」の1種
類とする。
Generally, it is necessary to define an operation command for each device to be controlled, but in this example, the device to be controlled is a motor, the user interface component has three terminals, and the operation command is There are two types of "rotation" command and "stop" command, and the operating state is one type of "fault" state.

【0055】なお、部品選択結線部15は、ユーザの操
作により、回転、停止に対応させた、回転釦、停止釦を
備える部品や、故障に対応させた入力端子を備える部品
を呼び出し、接続する処理を行うように、動作プログラ
ムを構成しておけばよい。
It should be noted that the component selecting / connecting unit 15 calls and connects a component provided with a rotation button and a stop button, which corresponds to rotation and stop, and a component provided with an input terminal corresponding to a failure, by a user's operation. The operation program may be configured to perform the processing.

【0056】これによって、回転釦、停止釦を備える部
品とユーザインタフェース部品との接続関係が定義され
るとともに、故障信号を入力する端子を備えた部品とユ
ーザインタフェース部品との接続関係が定義される。
As a result, the connection relation between the user interface component and the component having the rotary button and the stop button is defined, and the connection relation between the component having the terminal for inputting the failure signal and the user interface component is also defined. .

【0057】外部インタフェース部品。 一般に、実際の制御対象機器と物理的結線が行われてい
る端子の定義を行う必要があるが、本例では、制御対象
機器がモータであり、「RUN端子がオンで回転、RU
N端子がオフで停止、異常発生でERR出力をオン」す
るものとして、外部インタフェース部品の出力(DO)
端子を「RUN」、外部インタフェース部品の入力(D
I)端子を「ERR」として定義する。
External interface component. Generally, it is necessary to define a terminal that is physically connected to an actual controlled device, but in this example, the controlled device is a motor, and "run terminal is ON, rotation, RU
The output of the external interface component (DO) is used to stop the N terminal off and turn on the ERR output when an error occurs.
Terminal is “RUN”, input of external interface parts (D
I) Define the terminal as "ERR".

【0058】内部回路部品。 この部品はユーザの操作により部品選択結線部15が選
択した部品である。本例では、「「回転」指令オンに
て、RUNをホールド出力、「停止」指令オンにて、R
UN出力をオフ」かつ「「ERR」入力オン状態で、R
UNを強制オフ、「ERR」入力オン状態で、動作状態
「故障」を生成」するロジックとなっている。
Internal circuit components. This component is a component selected by the component selection connection unit 15 by a user operation. In this example, when "rotation" command is on, RUN is held and output, when "stop" command is on, R
When "UN output is off" and "ERR" input is on, R
The logic is to generate an operation state "failure" when the UN is forcibly turned off and the "ERR" input is turned on.

【0059】このようにして構成した部品群を、部品記
憶部14の空きエリアに一時的に格納しておき、必要な
ときに取り出して、コンパイルしてオブジェクトモージ
ュールとすれば、PLCで動作可能な制御プログラムを
生成できる。
The parts group thus constructed can be temporarily stored in an empty area of the parts storage unit 14, taken out when necessary, and compiled to form an object module, which can be operated by the PLC. It can generate various control programs.

【0060】このようにして、制御プログラムを生成す
ることによって、制御ソフトウエア記述時、動作指令や
動作状態の生成のみを考えれば良い。また、動作指令や
動作状態から、制御対象機器(アクチュエータ)の動作
を直感的にイメージすることができ、ソフトウエアの専
門知識がなくても、ソフトウエア記述が容易となる。
By generating the control program in this way, it is only necessary to consider the generation of the operation command and the operation state when describing the control software. In addition, the operation command and the operation state can be used to intuitively imagine the operation of the control target device (actuator), and the software description can be facilitated even if there is no specialized knowledge of the software.

【0061】図7は、部品レベル(実際の回路とは異な
る)での結線例を示したものであり、押釦部品がオン状
態になれば、モータが回転し、リミットスイッチ部品が
オン状態になれば、モータが停止し、さらに、故障信号
がオン状態になればLED部品で示されるLEDが点灯
するという制御動作が直感的にイメージできる。
FIG. 7 shows an example of connection at the component level (different from the actual circuit). When the push button component is turned on, the motor rotates and the limit switch component is turned on. For example, it is possible to intuitively imagine the control operation in which the motor is stopped and the LED indicated by the LED component is turned on when the failure signal is turned on.

【0062】また、対象機械毎に特有な制御を行うよう
な内部回路部品を登録しておけば、特有な制御を意識す
ることなく、制御ソフトウエアを記述できる。例えば、
図6に示す内部回路部品においては、ERR信号がオ
ン状態で、RUN信号を強制オフするような特有な制御
は、内部回路部品に予め登録しておけば、制御プログラ
ムの開発工数が低減できる。
Further, by registering the internal circuit parts for performing the peculiar control for each target machine, the control software can be described without paying attention to the peculiar control. For example,
In the internal circuit components shown in FIG. 6, the peculiar control in which the ERR signal is in the ON state and the RUN signal is forcibly turned off can be registered in advance in the internal circuit components to reduce the number of man-hours for developing the control program.

【0063】以上第1から第3の実施形態で説明したよ
うな機能を、部品選択結線部15が有するように、CP
Uの動作プログラムを作成しておけばよい。次に、第4
の実施形態について説明する。
As the component selection connection section 15 has the function as described in the first to third embodiments, the CP
It is only necessary to create a U operation program. Next, the fourth
Will be described.

【0064】本実施形態は、入力部12を介して与えた
起動コマンドにしたがって、ラベル生成部17が行う処
理に係わり、同一部品に対して異なるラベル名称を付与
するものである。
In the present embodiment, different label names are given to the same component in relation to the processing performed by the label generating unit 17 according to the start command given via the input unit 12.

【0065】このようなラベル生成部17の機能を実現
するためには、部品の種類固有に識別子を付したものを
記憶しておき、該識別子を参照して同一種類の部品か否
かを判定する処理と、ユーザが与えたラベル名称を部品
固有に付与するために、該ラベル名称を部品に対応づけ
て記憶する処理を行うように、CPU2の動作プログラ
ムを作成しておけばよい。なお、各種情報の保持には、
部品記憶部14の空きエリアを使用するようにすればよ
い。
In order to realize such a function of the label generation unit 17, an identifier unique to the type of the component is stored, and it is determined whether or not the component is the same type by referring to the identifier. The operation program of the CPU 2 may be created so as to perform the processing described above and the processing of storing the label name associated with the component in order to give the label name given by the user unique to the component. In addition, to hold various information,
An empty area of the component storage unit 14 may be used.

【0066】さて、ラベル生成部17が起動すると、ユ
ーザインタフェース部品、内部回路部品、外部インタフ
ェース部品にラベル名称を付与する処理を行う。さて、
ユーザインタフェース部品、外部インタフェース部
品、内部回路部品の順に、ラベルを付与する処理につ
いて説明する。同一仕様の機器を複数用いる場合、以下
の定義を行う。
When the label generator 17 is activated, a label name is given to the user interface component, internal circuit component, and external interface component. Now,
The process of assigning labels in the order of user interface parts, external interface parts, and internal circuit parts will be described. When using multiple devices with the same specifications, define the following.

【0067】ユーザインタフェース部品。 ユーザは、入力部12を介して、部品に対しラベル名称
を与える。ラベル生成部17は、当該部品とラベル名称
を対応づけて記憶する。
User interface components. The user gives a label name to the component via the input unit 12. The label generation unit 17 stores the component and the label name in association with each other.

【0068】外部インタフェイス部品。 前記ユーザインタフェース部品に対応する外部インタフ
ェース部品に、で定義したラベル名称を付加する。ラ
ベル生成部17は、当該部品とラベル名称を対応づけて
記憶する。
External interface component. The label name defined in is added to the external interface component corresponding to the user interface component. The label generation unit 17 stores the component and the label name in association with each other.

【0069】内部回路部品。 前記ユーザインタフェース部品に対応する内部回路部品
の各信号名称に、で定義したラベル名称を付加する。
ラベル生成部17は、当該部品とラベル名称を対応づけ
て記憶する。
Internal circuit components. The label name defined in is added to each signal name of the internal circuit component corresponding to the user interface component.
The label generation unit 17 stores the component and the label name in association with each other.

【0070】図8は、モータ部品原型、内部回路部品原
型を再利用するために、2つの部品にラベル名称を付与
した処理結果の説明図である。回路コピー、即ち、同一
の部品を2度以上、部品記憶部14から呼び出すことに
より、同一仕様の部品の識別を必要がある。
FIG. 8 is an explanatory diagram of a processing result in which label names are given to two components in order to reuse the motor component prototype and the internal circuit component prototype. It is necessary to identify a component having the same specification by copying a circuit, that is, calling the same component more than once from the component storage unit 14.

【0071】本例では、2つのモータ部品が備える回
転、停止、故障の各端子に、ラベル名称「ポンプ」、
「リフト」を付与して識別する様子を示している。ま
た、2つの内部回路部品の信号名称「回転」、「停
止」、「RUN」、「ERR」、「故障」にも、ラベル
名称「ポンプ」、「リフト」を付与して識別する様子を
示している。
In this example, the label name "pump" is assigned to each of the rotation, stop, and failure terminals of the two motor parts.
It is shown that "lift" is added and identified. In addition, the signal names “rotation”, “stop”, “RUN”, “ERR”, and “fault” of the two internal circuit parts are also labeled and labeled “pump” and “lift”. ing.

【0072】図9は、同一仕様のモータ部品の夫々に、
ラベル名称「ポンプ」、「リフト」を付与して識別した
ものである。なお、各モータ部品において、押釦部品で
ある運転SW(スイッチ)をオン状態にするとモータが
回転し、押釦部品である停止SW(スイッチ)をオン状
態にするとモータが停止する。
FIG. 9 shows motor parts having the same specifications,
The label names "pump" and "lift" are given for identification. In each motor component, when the operation SW (switch) that is a push button component is turned on, the motor rotates, and when the stop SW (switch) that is a push button component is turned on, the motor stops.

【0073】このようにラベル名称の付与を行うことに
より、原型となる部品を作成しておけば、その部品を再
利用することができる。すなわち、使用部品毎に内部回
路を定義をする必要がない。
By giving a label name in this way, if a prototype part is created, the part can be reused. That is, it is not necessary to define an internal circuit for each used component.

【0074】以上第4の実施形態で説明したような機能
を、ラベル生成部17が有するように、CPUの動作プ
ログラムを作成しておけばよい。次に、第5の実施形態
について説明する。
The CPU operation program may be created so that the label generating unit 17 has the function as described in the fourth embodiment. Next, a fifth embodiment will be described.

【0075】本実施形態は、入力部12を介して与えた
起動コマンドにしたがって、結合回路生成部16が行う
処理に係わり、回路間に存在するインタフェース回路を
生成するものである。
In this embodiment, the interface circuit existing between the circuits is generated in accordance with the processing performed by the coupling circuit generation unit 16 in accordance with the activation command given through the input unit 12.

【0076】このような結合回路生成部16の機能を実
現するためには、ある端子と、該端子に接続されている
端子を把握し、以下に示すルールにしたがって動作する
回路を生成する処理を行うように、CPUの動作プログ
ラムを作成すればよい。ここで、上記ルールとは「ある
回路部品の出力端子がオン状態となった時、該出力端子
に接続されている全ての端子をオン状態にすること」で
ある。
In order to realize the function of the coupling circuit generating unit 16 as described above, a process of grasping a certain terminal and a terminal connected to the certain terminal and generating a circuit that operates according to the rule shown below is performed. An operation program for the CPU may be created as is done. Here, the above rule is "when an output terminal of a certain circuit component is turned on, all the terminals connected to the output terminal are turned on".

【0077】今、図10を参照して、結合回路生成部1
6の動作を説明する。元々、押釦部品(回路1)とモー
タ部品(回路3)が接続されているとする。具体的に
は、端子101は、端子102および端子103に接続
されているとともに、端子111は、端子112および
端子113に接続されている。
Now, referring to FIG. 10, the coupling circuit generator 1
The operation of No. 6 will be described. Originally, it is assumed that the push button component (circuit 1) and the motor component (circuit 3) are connected. Specifically, the terminal 101 is connected to the terminals 102 and 103, and the terminal 111 is connected to the terminals 112 and 113.

【0078】この状態で、結合回路生成部16は、上記
ルールにしたがって動作する回路を生成する。即ち、端
子101がオン状態になったとき、端子102および端
子103をオン状態にする回路を生成する。回路2を見
て分かるように、端子101に接続される端子121が
オン状態になったとき、端子102に接続される端子1
23、および、端子103に接続される端子124がオ
ン状態となることから、回路2は、押釦部品(回路1)
とモータ部品(回路3)のインタフェース回路として動
作する。同様に、端子111に接続される端子122が
オン状態になったとき、端子112に接続される端子1
25、および、端子113に接続される端子126がオ
ン状態となることから、「リフト」側の回路2も、押釦
部品(回路1)とモータ部品(回路3)のインタフェー
ス回路として動作する。
In this state, the coupling circuit generator 16 generates a circuit that operates according to the above rules. That is, when the terminal 101 is turned on, a circuit for turning on the terminals 102 and 103 is generated. As can be seen from the circuit 2, when the terminal 121 connected to the terminal 101 is turned on, the terminal 1 connected to the terminal 102 is connected.
Since the circuit 23 and the terminal 124 connected to the terminal 103 are turned on, the circuit 2 is a push button component (circuit 1).
And the motor component (circuit 3) as an interface circuit. Similarly, when the terminal 122 connected to the terminal 111 is turned on, the terminal 1 connected to the terminal 112 is
Since 25 and the terminal 126 connected to the terminal 113 are turned on, the circuit 2 on the “lift” side also operates as an interface circuit between the push button component (circuit 1) and the motor component (circuit 3).

【0079】このような処理を行うためには、結合回路
生成部16は、接続対象となる端子の接続状態を部品記
憶部14を参照して把握し、上記ルールにしたがって動
作する回路を生成するように、CPUの動作プログラム
を作成しておけばよい。
In order to perform such processing, the coupling circuit generation unit 16 grasps the connection state of the terminals to be connected by referring to the component storage unit 14 and generates a circuit that operates according to the above rules. As described above, a CPU operation program may be created.

【0080】結合回路生成部16の動作によって、イン
タフェース回路設計工数を低減できる。次に、第6の実
施形態について説明する。
The operation of the coupling circuit generation section 16 can reduce the number of interface circuit design steps. Next, a sixth embodiment will be described.

【0081】本実施形態は、入力部12を介して与えた
起動コマンドにしたがって、リスト生成部18および端
子割り付け部19が行う処理に係わり、具体的には、部
品の入出力端子をリスト化する処理、および、リストに
したがって入出力端子をPCに割り付ける処理に関す
る。
The present embodiment relates to the processing performed by the list generating unit 18 and the terminal allocating unit 19 according to the activation command given via the input unit 12, and specifically, lists the input / output terminals of the parts. The present invention relates to a process and a process of assigning input / output terminals to a PC according to a list.

【0082】このようなリスト生成部18および端子割
り付け部19が行う処理の概要を、図11の流れ図にし
たがって説明するが、その前に、PLC自体の構成につ
いて若干説明しておくことにする。
The outline of the processing performed by the list generating section 18 and the terminal allocating section 19 will be described with reference to the flowchart of FIG. 11, but before that, the configuration of the PLC itself will be briefly described.

【0083】なお、通常、PLCが備える外部入出力端
子は、PLCが内蔵する端子専用内部メモリに対応して
いる。即ち、DI/DO(デジタル入出力)を例にとっ
て説明すると、PLCが内蔵する端子専用内部メモリ空
間に、DI/DOメモリ領域が存在し、PLCに記憶さ
れるアプリケーションプログラムは、この領域に格納さ
れている情報をリード/ライトすることによって、外部
入出力端子の制御を行う。
The external input / output terminal of the PLC usually corresponds to the internal terminal-dedicated internal memory of the PLC. That is, taking DI / DO (digital input / output) as an example, a DI / DO memory area exists in the internal terminal-dedicated internal memory space of the PLC, and the application program stored in the PLC is stored in this area. The external input / output terminals are controlled by reading / writing the stored information.

【0084】図12に、DI/DO領域のイメージを示
す。121は、PLCのDI/DOメモリ領域のうち、
DIメモリ領域を示している。「DI1」から「DI
n」までのn個のビットアドレスの各々が、1ビットの
メモリに対応している。これに対し、122は、実際の
PLCの外部端子(入力側のみ)であり、「DI1」か
ら「DIn」までの端子に対して端子名称が与えられ、
各端子の信号レベルの状態(「ON」または「OF
F」)が例示されている。例えば、端子名称「DIn」
の端子状態が「ON」のとき、対応するDI/DOメモ
リ領域のエリア、即ち、ビットアドレス「DIn」にデ
ジタル信号「1」が格納される。なお、図12において
は、理解の容易化のため、DI側のみの説明を行った
が、DO側も同様な構成である。
FIG. 12 shows an image of the DI / DO area. 121 is a DI / DO memory area of the PLC
A DI memory area is shown. From "DI1" to "DI
Each of n bit addresses up to "n" corresponds to a 1-bit memory. On the other hand, 122 is an external terminal (only on the input side) of the actual PLC, and terminal names are given to the terminals from “DI1” to “DIn”,
Signal level status of each terminal ("ON" or "OF"
F ") is illustrated. For example, the terminal name "DIn"
When the terminal state of “1” is “ON”, the digital signal “1” is stored in the corresponding area of the DI / DO memory area, that is, the bit address “DIn”. Note that, in FIG. 12, only the DI side is described for easy understanding, but the DO side has the same configuration.

【0085】さて、図11を参照して、リスト生成部1
8および端子割り付け部19が行う処理の概要を説明す
る。なお、処理対象を、図9で示した部品の組合せと
し、最終的に、図9中に存在する端子をPLCが備える
外部入出力端子に接続する処理について述べる。
Now, referring to FIG. 11, the list generator 1
8 and the terminal allocation unit 19 will be outlined. It is to be noted that the processing target is the combination of the parts shown in FIG. 9, and finally the processing of connecting the terminals existing in FIG. 9 to the external input / output terminals provided in the PLC will be described.

【0086】まず、リスト生成部18は、図9で示した
各部品の外部インタフェース部品を部品記憶部14から
獲得する(#1)。この結果、外部インタフェース部品
200、210、220、230を得るため、これらを
部品記憶部14内の空きエリアに一時的に格納する。な
お、各外部インタフェース部品が備える各端子には、ラ
ベル名称が付加されている。
First, the list generator 18 acquires the external interface components of each component shown in FIG. 9 from the component storage 14 (# 1). As a result, in order to obtain the external interface components 200, 210, 220, 230, these are temporarily stored in the empty area in the component storage unit 14. A label name is added to each terminal included in each external interface component.

【0087】次に、ユーザは、並び替えルールを選択す
る。並び替えルールは、端子を並べる順番を定める規則
であって、各種のものが考えられるため、予め複数のル
ールを定めて、例えば部品記憶部14内の空きエリアに
格納しておいて、ユーザが入力部12を介して選択する
ようにすればよい(#2)。なお、並べ替えのルールと
しては、部品出現順(部品の出現順で定めた順番、例え
ば、部品選択結線部15が部品を呼び出した順番)、端
子名称順(例えば、あいうえお順)、部品種類順(部品
種類で定めた順番、例えば、モータ部品が1番、スイッ
チが2番等)等が挙げられる。
Next, the user selects a rearrangement rule. The rearrangement rule is a rule that determines the order of arranging the terminals, and various kinds are conceivable. Therefore, a plurality of rules are determined in advance and stored in an empty area in the component storage unit 14, for example. The selection may be made via the input unit 12 (# 2). Note that the rearrangement rule is as follows: the order of appearance of parts (the order determined by the order of appearance of parts, for example, the order in which the parts selection connecting unit 15 calls the parts), the order of terminal names (for example, the order of AIUEO), and the order of part types. (The order defined by the type of parts, for example, the motor part is number 1, the switch is number 2, etc.) and the like.

【0088】リスト生成部18は、選択されたルールに
したがって、端子名称の並べ替えを行う(#3)。な
お、リスト生成部18は、一時的に格納しておいた各部
品の端子名称を参照して、その端子名称を獲得する。具
体的には、DI側は「運転SWON、停止SWON、ポ
ンプERR、リフトERR」、DO側は「ポンプRU
N、リフトRUN」となる。
The list generator 18 rearranges the terminal names according to the selected rule (# 3). The list generation unit 18 refers to the temporarily stored terminal name of each component and acquires the terminal name. Specifically, the DI side is “operation SWON, stop SWON, pump ERR, lift ERR”, and the DO side is “pump RU”.
N, lift RUN ”.

【0089】#4は、部品出現順ルールにしたがって、
リスト化された端子名称リストを示している。このと
き、リスト生成部18は、表示制御部20を起動して、
リストを表示部13に表示させると共に、リストを部品
記憶部14の空きエリアに記憶する。
# 4 is in accordance with the part appearance order rule.
The terminal name list made into the list is shown. At this time, the list generation unit 18 activates the display control unit 20,
The list is displayed on the display unit 13, and the list is stored in the empty area of the component storage unit 14.

【0090】このように、リスト生成部18が行う処理
によって、図9の形式で自由に結合された部品の部イン
タフェース部品の端子名称を、リスト化することが可能
となる。このような処理を、リスト生成部18が行うよ
うに、CPUの動作プログラムを作成しておけばよい。
In this way, the processing performed by the list generation unit 18 makes it possible to list the terminal names of the part interface parts of the parts that are freely combined in the format of FIG. The operation program of the CPU may be created so that the list generation unit 18 performs such processing.

【0091】次に、端子割り付け部19が行う、外部イ
ンターフェイス部品の端子のDI/DOメモリ領域への
割り付け処理について説明する。「#5」、「#6」
は、割り付け処理の第1の態様を示したものである。
Next, the process of allocating the terminals of the external interface component to the DI / DO memory area, which is performed by the terminal allocating unit 19, will be described. "# 5", "# 6"
Shows the first mode of the allocation process.

【0092】即ち、端子割り付け部19は、端子名称リ
ストを参照して、DI側およびDO側において、リスト
順に、端子をPLCのビットアドレスに割り付けていく
(#5:自動割り付け)。なお、「#6」は、このよう
な自動割り付けの結果を示したものである。DI側の端
子「運転SWON」、「停止SWON」、「ポンプER
R」、「リフトERR」は夫々、PLCのビットアドレ
ス「DI1」、「DI2」、「DI3」、「DI4」に
割り付けられ、また、DO側の端子「ポンプRUN」、
「リフトRUN」は夫々、PLCのビットアドレス「D
O1」、「DO2」に割り付けられていることが分か
る。
That is, the terminal allocating unit 19 refers to the terminal name list and allocates the terminals to the PLC bit addresses on the DI side and the DO side in order of the list (# 5: automatic allocation). Note that “# 6” indicates the result of such automatic allocation. DI side terminals "Run SWON", "Stop SWON", "Pump ER"
“R” and “lift ERR” are assigned to bit addresses “DI1”, “DI2”, “DI3”, and “DI4” of the PLC, respectively, and the DO side terminal “pump RUN”,
The “lift RUN” is the bit address “D” of the PLC.
It can be seen that they are assigned to “O1” and “DO2”.

【0093】端子割り付け部19が、このような自動割
り付け処理を行うことによって、任意の結合態様をとる
各部品に対する外部インタフェース部品の各端子を、D
I/DOメモリ領域へ自動的に割り付けることが可能に
なる。
The terminal allocating unit 19 performs such automatic allocation processing so that each terminal of the external interface component with respect to each component having an arbitrary coupling mode is D
It becomes possible to automatically allocate to the I / DO memory area.

【0094】なお、端子割り付け部19は、表示制御部
20を起動して、割り付け結果を表示部13に表示する
ように動作プログラムを作成しておけばよい。「#
7」、「#8」は、割り付け処理の第2の態様を示した
ものである。
The terminal allocating unit 19 may activate the display control unit 20 and create an operation program for displaying the allocation result on the display unit 13. "#
7 "and"# 8 "show the second mode of the allocation process.

【0095】本態様は、端子割り付け部19が、表示制
御部20を起動して割り付け定義可能な表示画面を表示
し、ユーザが表示画面上で端子割り付けを定義するもの
であり、端子割り付け部19は、ユーザが表示画面上で
定義した端子割り付けに基づいて、外部インターフェイ
ス部品が備える各端子を、DI/DOメモリ領域へ自動
的に割り付ける(#7:マニュアル割り付け)。
In this mode, the terminal allocating unit 19 activates the display control unit 20 to display a display screen in which the allocation can be defined, and the user defines the terminal allocation on the display screen. Automatically allocates each terminal provided in the external interface component to the DI / DO memory area based on the terminal allocation defined by the user on the display screen (# 7: manual allocation).

【0096】なお、「#8」は、このような割り付けの
結果を示したものである。DI側の端子「運転SWO
N」、「停止SWON」、「ポンプERR」、「リフト
ERR」は夫々、PLCのビットアドレス「DI2
3」、「DI31」、「DI5」、「DI15」に割り
付けられ、また、DO側の端子「ポンプRUN」、「リ
フトRUN」は夫々、PLCのビットアドレス「DO2
1」、「DO15」に割り付けられていることが分か
る。
“# 8” indicates the result of such allocation. DI side terminal "Operation SWO
"N", "Stop SWON", "Pump ERR", and "Lift ERR" are respectively the bit address "DI2" of the PLC.
3 ”,“ DI31 ”,“ DI5 ”, and“ DI15 ”, and the DO-side terminals“ pump RUN ”and“ lift RUN ”are respectively assigned to the PLC bit address“ DO2 ”.
It can be seen that they are assigned to “1” and “DO15”.

【0097】端子割り付け部19が、このようなマニュ
アル割り付け処理を行うことによって、任意の結合態様
をとる各部品に対する外部インタフェース部品の各端子
を、ユーザの好みによって、DI/DOメモリ領域へ自
動的に割り付けることが可能になる。
The terminal allocating section 19 performs such a manual allocating process so that the terminals of the external interface parts for the respective parts having an arbitrary coupling mode are automatically transferred to the DI / DO memory area according to the user's preference. Can be assigned to.

【0098】なお、端子割り付け部19は、表示制御部
20を起動して、割り付け結果を表示部13に表示する
ように動作プログラムを作成しておけばよい。なお、自
動割り付けおよびマニュアル割り付けのいずれかの選択
は、端子割り付け部19が起動されると、表示制御部2
0が行う表示する選択メニューにしたがって、ユーザが
入力部12を用いて行う操作によってことによって行わ
れるように、動作プログラムを構成しておけばよい。
The terminal allocating unit 19 may activate the display control unit 20 and create an operation program for displaying the allocation result on the display unit 13. It should be noted that the selection of either the automatic allocation or the manual allocation is performed when the terminal allocation unit 19 is activated.
The operation program may be configured to be performed by the user performing an operation using the input unit 12 according to the selection menu displayed by 0.

【0099】以上説明したような割り付け処理を、端子
割り付け部19が行うように、CPUの動作プログラム
を作成しておけばよい。次に、内部回路部品を変更する
動作例について説明する。
A CPU operation program may be created so that the terminal allocating unit 19 performs the allocation processing described above. Next, an operation example of changing internal circuit components will be described.

【0100】なお、部品選択結線部15は、ユーザの操
作によって、ある内部回路部品を他の内部回路部品に変
更可能な機能を有しており、このような機能を実現する
ように、部品選択結線部15の動作プログラムが作成さ
れている。
The component selection connection section 15 has a function of changing one internal circuit component to another internal circuit component by a user's operation. In order to realize such a function, the component selection wiring part 15 is selected. An operation program for the connection section 15 is created.

【0101】さて、図9にて示した、モータ(ポンプ、
リフト)の内部回路部品は、図8に示されており、この
ラダー図によれば、「「運転SW」が「入」状態の時に
は、「回転」状態がホールドされる」ように制御動作が
行われる。
Now, as shown in FIG. 9, the motor (pump,
The internal circuit parts of the (lift) are shown in FIG. 8. According to this ladder diagram, the control operation is such that “when the“ operation SW ”is in the“ on ”state, the“ rotation ”state is held”. Done.

【0102】ここで、制御仕様が、「「運転SW」が
「入」状態となっている間のみ、モータを「回転」状態
にする」ように変更すること想定すると、図13に示す
ような挿入回路を設計して、部品間に接続しなければな
らない。
Assuming that the control specifications are changed to "put the motor in the" rotation "state only while the" operation SW "is in the" on "state", as shown in FIG. Insertion circuits must be designed and connected between components.

【0103】なお、この挿入回路の動作について、詳細
な説明を行うことは避けるが、本挿入回路は、入力信号
に所定時間の遅延を与える遅延回路と、ANDゲート、
ORゲートとを有し、その動作タイミングチャートは、
図示するようになり、「運転SW」が「入」状態となっ
ている間のみ、モータを「回転」状態にするように動作
する。
Although detailed description of the operation of this insertion circuit is avoided, the present insertion circuit includes a delay circuit for delaying an input signal by a predetermined time, an AND gate,
And an OR gate, and its operation timing chart is
As shown in the figure, the motor operates to be in the "rotation" state only while the "operation SW" is in the "on" state.

【0104】さて、このような挿入回路の設計、接続を
避けるためには、ユーザインターフェイス部品、外部イ
ンタフェース部品をそのままにして、内部回路部品のみ
を、変更した制御仕様に適合するものに変更すればよ
く、そのためには、部品選択結線部15を操作して、新
たな制御仕様に適合する内部回路部品を選択すれば良
い。
In order to avoid such insertion circuit design and connection, the user interface parts and the external interface parts are left as they are, and only the internal circuit parts are changed to those which meet the changed control specifications. Of course, for that purpose, the component selection connection section 15 may be operated to select the internal circuit component that meets the new control specifications.

【0105】図14は、このような内部回路部品の変更
を説明した図面であり、部品Aを部品Bに変更するのみ
で、「RUN」接点によるホールド機能を削除している
様子を示している。このように、部品間の接続は、図9
に示したままで、新たな制御仕様に対応しうるソフトウ
エアを容易に記述できる。
FIG. 14 is a diagram for explaining such a change of the internal circuit parts, and shows a state in which the hold function by the "RUN" contact is deleted only by changing the part A to the part B. . In this way, the connection between the parts is as shown in FIG.
As shown in, it is possible to easily describe software that can support the new control specifications.

【0106】このように、部品選択結線部15を起動す
ることによって、制御仕様変更に即座に対応しうる。
In this way, by activating the component selecting / connecting section 15, it is possible to immediately respond to a change in control specifications.

【0107】以上説明してきたように、従来、PLCの
制御プログラムを作成する際には、ラダー言語、FB
D、ニーモニック言語等を用い、機器動作制御におけ
る、各制御信号の流れを捕らえて、ソフトウエアへの翻
訳作業を行い、制御プログラムを記述していが、本発明
によれば、対象機器の動作仕様に応じて、内部回路部品
を選択可能とし、制御プログラムの作成工数を低減する
とともに、複雑な内部回路部品の内部構造を把握するこ
とを不要として、制御プログラム記述の把握も容易とな
る。
As described above, conventionally, when a PLC control program is created, the ladder language and FB are used.
D, mnemonic language, etc. are used to capture the flow of each control signal in device operation control, the translation work to software is performed, and the control program is described. However, according to the present invention, the operation specifications of the target device are specified. According to the above, the internal circuit parts can be selected, the number of steps for creating the control program can be reduced, and the control program description can be easily grasped because it is not necessary to grasp the internal structure of the complicated internal circuit component.

【0108】[0108]

【発明の効果】以上説明したように、請求項1記載の発
明によれば、部品記憶部に制御対象の情報とこの制御対
象に必要な複数の部品とを対応づけて記憶する第1領域
と、各種の処理を行うためのワークエリアとなる第2領
域とを設け、部品選択結線部が、ユーザから入力部を介
して制御対象機器の仕様が与えられると、その仕様に応
じて部品記憶部の第1領域から1つのラダー回路部品
と、このラダー回路部品の接点であって、制御対象機器
に対するユーザインターフェイス部品を獲得して表示部
に表示させ、表示部に表示された部品群に対してユーザ
が部品の端子の動作定義や物理的な結線を行うと、その
動作定義や結線が行われた部品群を部品記憶部の第2領
域に格納する、ように構成され、このように格納された
部品群を部品記憶部の第2領域から取り出してコンパイ
ルすることにより制御プログラムを作成するようにした
ため、制御プログラムを効率よく作成することができる
という効果を有する。
As described above, according to the first aspect of the invention, the first storage area for storing the information of the controlled object and the plurality of parts required for the controlled object in the component storage section in association with each other. A second area which is a work area for performing various processes, and when the user selects a component selection connection unit via the input unit, the component storage unit receives the specification of the device to be controlled according to the specification. One ladder circuit component from the first area and the user interface component for the control target device, which is the contact point of the ladder circuit component, is displayed on the display unit, and the component group displayed on the display unit is acquired. When the user defines the operation of the terminals of the parts and physically connects the parts, the group of parts to which the operation definitions and the connections are made is stored in the second area of the parts storage unit. Parts storage unit Due to so as to create a control program by compiling removed from the second region has the effect that it is possible to create a control program efficiently.

【0109】 また、請求項2記載の発明によれば、部
品記憶部に制御対象の情報とこの制御対象に必要な複数
の部品とを対応づけて記憶する第1領域と、各種の処理
を行うためのワークエリアとなる第2領域とを設け、部
品選択結線部が、ユーザから入力部を介して制御対象機
器の仕様が与えられると、その仕様に応じて部品記憶部
の第1領域から1つのラダー回路部品と、このラダー回
路部品の接点であって、制御対象機器に対する外部イン
ターフェイス部品を獲得して表示部に表示させ、表示部
に表示された部品群に対してユーザが部品の端子の動作
定義や物理的な結線を行うと、その動作定義や結線が行
われた部品群を部品記憶部の第2領域に格納する、よう
に構成され、このように格納された部品群を部品記憶部
の第2領域から取り出してコンパイルすることにより制
御プログラムを作成するようにしたため、制御プログラ
ムを効率よく作成することができるという効果を有す
る。
According to the second aspect of the present invention, the first storage area for storing the information of the control target and the plurality of components required for the control target in the component storage unit in association with each other, and various processes are performed. And a second area serving as a work area for the component selection connection section, when the user gives the specification of the controlled device through the input section to the component selection connection section, the first area from the first section of the component storage section is set in accordance with the specification. One ladder circuit component and the contact point of this ladder circuit component, and the external interface component for the controlled device is acquired and displayed on the display unit, and the user can confirm the terminal of the component for the component group displayed on the display unit. When the operation definition and the physical connection are performed, the component group in which the operation definition and the connection are performed is stored in the second area of the component storage unit, and the component group thus stored is stored in the component storage. From the second area of the department Since the control program is created by issuing and compiling the program, the control program can be created efficiently.

【0110】また、請求項3記載の発明によれば、同一
種類の部品には、同一の識別子を付与することにより、
部品の再利用を効率よく行える。さらに、請求項4記載
の発明によれば、ある部品の出力接点が起動状態(オ
ン)となるとき、該部品に接続される全ての入力接点が
起動状態(オン)となる回路部品(結合回路)を付加す
ることにより、インタフェース回路設計工数を低減でき
る。
According to the invention described in claim 3, the same identifier is given to the same type of parts,
The parts can be reused efficiently. Further, according to the invention of claim 4, when the output contact of a certain component is in the activated state (ON), all the input contacts connected to the component are in the activated state (ON). ), The man-hours for designing the interface circuit can be reduced.

【0111】また、請求項5記載の発明によれば、入力
接点(端子)および出力接点(端子)を登録した端子リ
ストを生成することにより、PCへ割り付ける端子の種
類を即座に把握することが可能になる。
According to the fifth aspect of the invention, by generating a terminal list in which the input contacts (terminals) and the output contacts (terminals) are registered, it is possible to immediately grasp the types of terminals to be assigned to the PC. It will be possible.

【0112】そして、請求項6記載の発明によれば、端
子リストを参照して、予め定めた規則にしたがって、各
入力端子および各出力端子を、プログラマブルコントロ
ーラ入力端子および出力端子に割り付けることにより、
PCへの端子割り付けを容易にする。
According to the invention described in claim 6, by referring to the terminal list and assigning each input terminal and each output terminal to the programmable controller input terminal and the output terminal according to a predetermined rule,
Makes it easy to assign terminals to the PC.

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

【図1】本発明の実施形態の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】第1の実施形態の説明図である。FIG. 2 is an explanatory diagram of the first embodiment.

【図3】第1の実施形態の説明図である。FIG. 3 is an explanatory diagram of the first embodiment.

【図4】第2の実施形態の説明図である。FIG. 4 is an explanatory diagram of the second embodiment.

【図5】第2の実施形態の説明図である。FIG. 5 is an explanatory diagram of the second embodiment.

【図6】第3の実施形態の説明図である。FIG. 6 is an explanatory diagram of the third embodiment.

【図7】第3の実施形態の説明図である。FIG. 7 is an explanatory diagram of the third embodiment.

【図8】第4の実施形態の説明図である。FIG. 8 is an explanatory diagram of the fourth embodiment.

【図9】第4の実施形態の説明図である。FIG. 9 is an explanatory diagram of the fourth embodiment.

【図10】第5の実施形態の説明図である。FIG. 10 is an explanatory diagram of the fifth embodiment.

【図11】第6の実施形態の説明図である。FIG. 11 is an explanatory diagram of the sixth embodiment.

【図12】PLCのDI/DOメモリ領域の説明図であ
る。
FIG. 12 is an explanatory diagram of a DI / DO memory area of PLC.

【図13】制御仕様変更の説明図である。FIG. 13 is an explanatory diagram of control specification change.

【図14】制御仕様変更に伴う内部回路部品の変更の説
明図である。
FIG. 14 is an explanatory diagram of changes in internal circuit components due to changes in control specifications.

【図15】従来例の説明図であるFIG. 15 is an explanatory diagram of a conventional example.

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

1 CPU 2 CPU 3 ROM 4 RAM 5 HDD 6 I/F 7 I/F 8 キーボード 9 マウス 10 CRT 12 入力部 13 表示部 14 部品記憶部 15 部品選択結線部 16 結合回路生成部 17 ラベル生成部 18 リスト生成部 19 端子割り付け部 20 表示制御部 1 CPU 2 CPU 3 ROM 4 RAM 5 HDD 6 I / F 7 I / F 8 keyboard 9 mice 10 CRT 12 Input section 13 Display 14 Parts storage 15 Parts selection connection 16 Combined circuit generator 17 Label generation unit 18 List generator 19 Terminal allocation section 20 Display control unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 福住 光記 東京都日野市富士町1番地 富士ファコ ム制御株式会社内 (72)発明者 濱田 明秀 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (72)発明者 中間 倫之 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (72)発明者 福島 幸治 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (72)発明者 島田 喜秋 神奈川県川崎市川崎区田辺新田1番1号 富士電機株式会社内 (56)参考文献 特開 平1−93803(JP,A) 特開 平6−51808(JP,A) 特開 平5−189012(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 G06F 9/06 530 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kouki Fukuzumi 1 Fuji-cho, Hino-shi, Tokyo Within Fujifacom Control Co., Ltd. (72) Inventor Akihide Hamada 1-1 Tanabe Nitta, Kawasaki-ku, Kawasaki-shi, Kanagawa Fuji Electric Co., Ltd. (72) Inventor Nakano Tomoyuki, No. 1 Tanabe Shinden, Kawasaki-ku, Kawasaki-shi, Kanagawa Fuji Electric Co., Ltd. (72) Inventor Koji Fukushima No. 1 Tanabe Nitta, Kawasaki-ku, Kawasaki-shi, Kanagawa Fuji Electric Co., Ltd. (72) Inventor Yoshiaki Shimada 1-1 Tanabe Nitta, Kawasaki-ku, Kawasaki City, Kanagawa Prefecture Fuji Electric Co., Ltd. (56) Reference JP-A-1-93803 (JP, A) JP-A 6-51808 (JP, A) JP-A-5-189012 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/05 G06F 9/06 530

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】必要な情報の入力機能を有する入力部と、
表示機能を有する表示部と、各種の部品を登録しておく
部品記憶部と、ラダー回路の選択を行なうための部品選
択結線部と、を有し、制御対象機器の仕様に応じてプロ
グラマブルコントローラの制御プログラムを作成するシ
ステムであって、 前記部品記憶部は、 制御対象の情報とこの制御対象に必要な複数の部品とを
対応づけて記憶する第1領域と、各種の処理を行うため
のワークエリアとなる第2領域とを有し、 前記部品選択結線部は、 ユーザから前記入力部を介して前記制御対象機器の仕様
が与えられると、その仕様に応じて前記部品記憶部の第
1領域から1つのラダー回路部品と、このラダー回路部
品の接点であって、前記制御対象機器に対するユーザイ
ンターフェイス部品を獲得して前記表示部に表示させ、
前記表示部に表示された部品群に対してユーザが部品の
端子の動作定義や物理的な結線を行うと、その動作定義
や結線が行われた部品群を前記部品記憶部の第2領域に
格納する、ように構成され、 このように格納された部品群を前記部品記憶部の第2領
域から取り出してコンパイルすることにより制御プログ
ラムを作成するようになっていることを特徴とするプロ
グラマブルコントローラの制御プログラム作成システ
ム。
1. An input unit having a function of inputting necessary information,
The programmable controller has a display unit having a display function, a component storage unit for registering various components, and a component selection connection unit for selecting a ladder circuit. A system for creating a control program, wherein the component storage unit stores a first area for storing information of a control target and a plurality of components required for the control target in association with each other, and a work for performing various processes. A second area which is an area, and the component selection connection section, when a specification of the controlled device is given from the user through the input section, the first area of the component storage section according to the specification From the one ladder circuit component and the contact point of this ladder circuit component, the user interface component for the controlled device is acquired and displayed on the display unit,
When the user defines the operation of the terminals of the component or physically connects the component group displayed on the display unit, the component group for which the operation definition or connection is performed is stored in the second area of the component storage unit. A programmable controller is configured to be stored, and a control program is created by taking out the component group thus stored from the second area of the component storage unit and compiling the control program. Control program creation system.
【請求項2】必要な情報の入力機能を有する入力部と、
表示機能を有する表示部と、各種の部品を登録しておく
部品記憶部と、ラダー回路の選択を行うための部品選択
結線部と、を有し、制御対象機器の仕様に応じてプログ
ラマブルコントローラの制御プログラムを作成するシス
テムであって、 前記部品記憶部は、 制御対象の情報とこの制御対象に必要な複数の部品とを
対応づけて記憶する第1領域と、各種の処理を行うため
のワークエリアとなる第2領域とを有し、 前記部品選択結線部は、 ユーザから前記入力部を介して前記制御対象機器の仕様
が与えられると、その仕様に応じて前記部品記憶部の第
1領域から1つのラダー回路部品と、このラダー回路部
品の接点であって、前記制御対象機器に対する外部イン
ターフェイス部品を獲得して前記表示部に表示させ、前
記表示部に表示された部品群に対してユーザが部品の端
子の動作定義や物理的な結線を行うと、その動作定義や
結線が行われた部品群を前記部品記憶部の第2領域に格
納する、ように構成され、 このように格納された部品群を前記部品記憶部の第2領
域から取り出してコンパイルすることにより制御プログ
ラムを作成するようになっていることを特徴とするプロ
グラマブルコントローラの制御プログラム作成システ
ム。
2. An input unit having a function of inputting necessary information,
A programmable controller having a display unit having a display function, a component storage unit for registering various components, and a component selection connection unit for selecting a ladder circuit are provided. A system for creating a control program, wherein the component storage unit stores a first area for storing information of a control target and a plurality of components required for the control target in association with each other, and a work for performing various processes. A second area which is an area, and the component selection connection section, when a specification of the controlled device is given from the user through the input section, the first area of the component storage section according to the specification From one ladder circuit component and a contact point of this ladder circuit component, and an external interface component for the control target device is acquired and displayed on the display unit, and a unit displayed on the display unit. When the user defines the operation of the terminals of the parts and physically connects the parts to the product group, the part group for which the operation definition and the connection have been made is stored in the second area of the component storage unit. A control program creation system for a programmable controller, wherein a control program is created by taking out the parts group stored in this way from the second area of the parts storage unit and compiling the control program.
【請求項3】請求項1および2の何れかに記載の制御プ
ログラム作成システムにおいて、部品にラベルを付与す
るラベル生成部を設け、該ラベル生成部は、前記ラダー
回路部品、前記ユーザインターフェイス部品、および、
前記外部インターフェイス部品に対して、部品の種類固
有に識別子を付したものを記憶しておき、該識別子を参
照して同一種類の部品か否かを判定する処理と、ユーザ
が与えたラベル名称を部品固有に付与するために、該ラ
ベル名称を部品に対応づけて前記部品記憶部に記憶する
処理を行うようになっていることを特徴とするプログラ
マブルコントローラの制御プログラム作成システム。
3. The control program creating system according to claim 1, further comprising: a label generating unit for giving a label to the component, wherein the label generating unit includes the ladder circuit component, the user interface component, and,
For the external interface component, a component-specific identifier is stored, and the process of determining whether the component is the same component by referring to the identifier and the label name given by the user are stored. A control program creation system for a programmable controller, characterized in that the label name is associated with a component and stored in the component storage unit so as to be uniquely assigned to the component.
【請求項4】請求項1、2および3の何れかに記載の制
御プログラム作成システムにおいて、回路間を結合する
インターフェイス回路を生成する結合回路生成部を設
け、該結合回路生成部は、接続対象となる端子の接続状
態を前記部品記憶部を参照して把握し、ある部品の出力
接点が起動状態(オン)となるとき、該部品に接続され
る全ての入力接点が起動状態(オン)となる回路部品
(結合回路)を生成する処理を行うようになっているこ
とを特徴とするプログラマブルコントローラの制御プロ
グラム作成システム。
4. The control program generation system according to claim 1, further comprising a coupling circuit generation unit that generates an interface circuit that couples the circuits, and the coupling circuit generation unit is a connection target. When the output contact of a certain component is in the activated state (on), all the input contacts connected to the component are considered to be in the activated state (on) when the connection state of the terminal that becomes A control program creation system for a programmable controller, which is configured to perform a process of generating the following circuit component (coupling circuit).
【請求項5】請求項1、2、3および4の何れかに記載
の制御プログラム作成システムにおいて、各部品の入力
および出力端子のリストを生成するリスト生成部を設
け、該リスト生成部は、外部インターフェイス部品の情
報を前記部品記憶部から獲得し、ユーザが指定したルー
ルに基づいて入力接点(端子)および出力接点(端子)
を登録した端子リストを生成する処理を行うようになっ
ていることを特徴とするプログラマブルコントローラの
制御プログラム作成システム。
5. The control program creating system according to claim 1, further comprising a list creating unit for creating a list of input and output terminals of each component, the list creating unit comprising: Information on external interface parts is acquired from the parts storage unit, and input contacts (terminals) and output contacts (terminals) are based on rules specified by the user.
A program for creating a control program for a programmable controller, characterized in that it performs a process of generating a terminal list in which the above is registered.
【請求項6】請求項5に記載の制御プログラム作成シス
テムにおいて、部品が備える端子をプログラマブルコン
トローラに割り付ける機能を有する端子割り付け部を設
け、該端子割り付け部は、前記端子リストを参照して、
予め定めた規則にしたがって、各入力端子および各出力
端子を、プログラマブルコントローラ入力端子および出
力端子に割り付ける処理を行うようになっていることを
特徴とするプログラマブルコントローラの制御プログラ
ム作成システム。
6. The control program creating system according to claim 5, wherein a terminal allocating unit having a function of allocating the terminals of the parts to the programmable controller is provided, and the terminal allocating unit refers to the terminal list,
A programmable controller control program creation system characterized by performing a process of assigning each input terminal and each output terminal to a programmable controller input terminal and an output terminal according to a predetermined rule.
JP08859896A 1996-04-10 1996-04-10 Control program creation system for programmable controller Expired - Lifetime JP3491117B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08859896A JP3491117B2 (en) 1996-04-10 1996-04-10 Control program creation system for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08859896A JP3491117B2 (en) 1996-04-10 1996-04-10 Control program creation system for programmable controller

Publications (2)

Publication Number Publication Date
JPH09282016A JPH09282016A (en) 1997-10-31
JP3491117B2 true JP3491117B2 (en) 2004-01-26

Family

ID=13947275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08859896A Expired - Lifetime JP3491117B2 (en) 1996-04-10 1996-04-10 Control program creation system for programmable controller

Country Status (1)

Country Link
JP (1) JP3491117B2 (en)

Also Published As

Publication number Publication date
JPH09282016A (en) 1997-10-31

Similar Documents

Publication Publication Date Title
US8843885B2 (en) Program creation support device
JP4908219B2 (en) Configurable PLC and SCADA based control system and method
KR940002324B1 (en) Programmable controller
JP4388427B2 (en) Numerical control device that can call programs written in script language
JP2008282363A (en) Programmable controller, program creation support device, computer program and programmable logic controller (plc) system
US20160125037A1 (en) Information processing apparatus, information processing method, information processing program, and storage medium
KR101993858B1 (en) Program development system and development method using it
US5717588A (en) Programming system
US6711448B2 (en) Setting display apparatus for a programmable controller
JP3491117B2 (en) Control program creation system for programmable controller
JP2002268730A (en) Maintenance system for field device
JP2006190202A (en) Data processor, set data generator, and their program and recording medium
JP2006302216A (en) Display device, screen data producing device and screen display system
JP3102828B2 (en) Programming device
JP2006209381A (en) Control display device, its program, and recording medium
US7146241B2 (en) Machine tool control apparatus
US11321055B2 (en) Program creation assistance device
JP2003085119A (en) Input/output address setting device, input/output address setting program, and storage medium storing it
JP3562202B2 (en) Inverter device
JP3170154B2 (en) SFC program development equipment
JP3736067B2 (en) I / O terminal assignment method for software components in PLC
JPS63180159A (en) System set-up system for microcomputer system
WO2004038521A1 (en) A reconfigurable state machine architecture and related method of execution
JP2005141563A (en) Editor apparatus, program for operating computer as editor apparatus, and recording medium
JPH06318104A (en) Software generating device for sequencer

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20071114

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313115

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

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 5

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

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

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091114

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20091114

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20091114

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101114

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20111114

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20121114

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20131114

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term