JP5112388B2 - Sequence control program automatic generation device - Google Patents

Sequence control program automatic generation device Download PDF

Info

Publication number
JP5112388B2
JP5112388B2 JP2009142916A JP2009142916A JP5112388B2 JP 5112388 B2 JP5112388 B2 JP 5112388B2 JP 2009142916 A JP2009142916 A JP 2009142916A JP 2009142916 A JP2009142916 A JP 2009142916A JP 5112388 B2 JP5112388 B2 JP 5112388B2
Authority
JP
Japan
Prior art keywords
block diagram
program
sequence control
exception processing
control program
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.)
Active
Application number
JP2009142916A
Other languages
Japanese (ja)
Other versions
JP2011002868A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009142916A priority Critical patent/JP5112388B2/en
Publication of JP2011002868A publication Critical patent/JP2011002868A/en
Application granted granted Critical
Publication of JP5112388B2 publication Critical patent/JP5112388B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プラントシステムやFA(ファクトリーオートメーション)システムなどを制御するPLC(プログラマブルロジックコントローラ)のプログラム設計に係り、操作ブロック図で記述される仕様書からシーケンス制御プログラムを自動生成する装置に関するものである。   The present invention relates to a program design of a PLC (programmable logic controller) for controlling a plant system, a factory automation (FA) system, and the like, and relates to an apparatus for automatically generating a sequence control program from specifications described in an operation block diagram. is there.

プラントシステムやFAシステムなどを制御するPLCは、PLCを動作させるためのプログラムが必要であるが、このプログラム作成にあたって、プログラム設計者が操作ブロック図や動作フローなどの要求仕様を把握し、入力信号の条件や制御対象機器の制御順序、動作タイミング、制御対象機器異常時などの例外処理を考慮しながらロジックを設計し、プログラムを手作業でコーディングしている。このような手作業での設計作業は、要求仕様をプログラムにロジックとして落とし込むことであるが、煩雑な作業なためプログラム設計者に熟練の技術を要し、また、設計やデバックに多くの時間を必要とする作業である。   The PLC that controls the plant system, FA system, etc. requires a program to operate the PLC. When creating this program, the program designer grasps the required specifications such as the operation block diagram and the operation flow, and the input signal The logic is designed in consideration of the above conditions, the control sequence of the control target device, the operation timing, the exception processing such as when the control target device is abnormal, and the program is coded manually. Such manual design work involves putting the required specifications into the program as logic, but it is a cumbersome work and requires skilled skills for the program designer, and also requires a lot of time for design and debugging. Necessary work.

上記の手作業によるプログラムの設計作業を軽減することを目的として、従来、例えばプラント制御用ソフトウエア作成装置において、当該装置のマンマシン・インターフェースである、プラントフローおよび条件設定を行なう条件作成ウィンドウから、プラント監視・制御の順序に基づいて機器の動作・停止および、動作・停止させる所要条件を指定し、指定された情報を格納した指定リストを作成する。そして、この指定リストの条件に基づきシーケンス作成処理部で、シーケンス制御プログラムを自動生成する技術が提案されている(例えば、下記の特許文献1参照)。   For the purpose of reducing the above-mentioned manual program design work, conventionally, for example, in a plant control software creation device, from the condition creation window for setting the plant flow and conditions, which is the man-machine interface of the device Then, based on the order of plant monitoring / control, the operation / stop of the device and the necessary conditions for the operation / stop are specified, and a specified list storing the specified information is created. A technique for automatically generating a sequence control program by a sequence creation processing unit based on the conditions of the specified list has been proposed (for example, see Patent Document 1 below).

また、他の従来技術では、シーケンスプログラム作成装置へ、要求仕様である動作フローの制御対象機器である要素と、要素の接続情報、および要素の実行可能条件などを入力し、入力された情報から、コンパイラによりフロー要素処理、部品処理、範囲指定処理などからなる、シーケンス制御プログラムを自動生成するようにしたものが提案されている(例えば、下記の特許文献2参照)。   In another conventional technique, an element that is a control target device of an operation flow that is a required specification, an element connection information, an element executable condition, and the like are input to a sequence program creation device. There has been proposed a program that automatically generates a sequence control program including a flow element process, a component process, a range specifying process, and the like by a compiler (see, for example, Patent Document 2 below).

特開2001−222301号公報(第4−7頁、第2図)Japanese Patent Laid-Open No. 2001-222301 (page 4-7, FIG. 2) 特許第3852194号公報(第6−頁、第2図)Japanese Patent No. 3852194 (page 6 and FIG. 2)

このように、従来、シーケンス制御プログラムの自動生成装置において、シーケンス制御プログラムを自動生成するためには、プログラムの基となるプラントフローや動作フロー、操作ブロック図などといった仕様書に記述されているところの、機器の運転・停止順序を決定するための情報や、機器を運転・停止させたり、状態を遷移させたりする条件の情報を装置に入力し、これらの情報をそのままプログラムにロジックとして落とし込んでいる。したがって、シーケンス制御プログラムの自動生成装置からは、プラントフローや動作フローなどに記述されているロジックと、全く同じロジックのプログラムが生成されることになる。   As described above, in order to automatically generate a sequence control program in a conventional sequence control program automatic generation apparatus, it is described in specifications such as a plant flow, an operation flow, and an operation block diagram as a basis of the program. The information for determining the operation / stop order of the equipment and the information on the conditions for operating / stopping the equipment and changing the state are input to the device, and this information is directly put into the program as logic. Yes. Therefore, a program having exactly the same logic as the logic described in the plant flow or the operation flow is generated from the sequence control program automatic generation device.

ところで、プラントシステムやFAシステムなどでは、システムを構成している制御対象機器は、多数の台数を備えているが、それらの機器が故障した場合や、制御すべき温度や速度などに関してシステム異常状態が発生した場合、安全にシステムを停止させたり、あるいはバックアップ運転させたりするためには、シーケンス制御プログラムにも、これらの機器故障やシステム異常が発生した場合に対処できるように例外処理を行うプログラムが必要となる。   By the way, in plant systems, FA systems, etc., there are a large number of devices to be controlled that make up the system. However, when these devices fail or when the system is in an abnormal state with respect to temperature or speed to be controlled, etc. In order to safely stop the system or perform backup operation when a problem occurs, the sequence control program also performs an exception process so that it can deal with these device failures and system abnormalities. Is required.

そのためには、故障機器やシステム異常の内容毎に、正常時運転とは異なる例外処理を記述した操作ブロック図や動作フローが必要になるが、制御対象機器の台数が増えると、それぞれに対応して例外処理も増えることになる。このため、従来のシーケンス制御プログラム自動生成装置では、例外処理に対応するための全ての情報を入力しなければならず、多くの時間が必要になっていた。また、これら例外処理は、正常時運転の状態から遷移するため、正常時運転から多くの例外処理へ遷移するための条件を定義することが必要で、その条件設定が煩雑であるなどの問題があった。   For that purpose, an operation block diagram and an operation flow describing exception processing different from normal operation are required for each malfunctioning device and system abnormality, but as the number of controlled devices increases, it will correspond to each. Exception handling will also increase. For this reason, in the conventional sequence control program automatic generation apparatus, all the information for dealing with the exception processing has to be input, and much time is required. In addition, since these exception processes transition from the normal operation state, it is necessary to define conditions for transition from normal operation to many exception processes, and there are problems such as complicated condition settings. there were.

本発明は、上記のような課題を解決するためになされたものであり、仕様書に相当する操作ブロック図で表現されるシーケンス制御の制御対象と、これらの制御対象の状態遷移順序、および状態遷移条件を1つの工程として定義し、1つの工程単位で予め定義された例外処理ルールを選択して適用することにより、自動的に例外処理を組み込んだシーケンス制御プログラムを生成できるようにした、シーケンス制御プログラム自動生成装置を提供する。   The present invention has been made in order to solve the above-described problems. The control objects of the sequence control represented by the operation block diagram corresponding to the specifications, the state transition order of these control objects, and the states A sequence that defines a transition condition as one process, and can generate a sequence control program that automatically incorporates exception processing by selecting and applying exception processing rules defined in advance in one process unit A control program automatic generation device is provided.

本発明におけるシーケンス制御プログラム自動生成装置は、シーケンス制御における操作ブロック図の構成要素となる制御対象オブジェクトおよびこの制御対象オブジェクトの状態遷移順序と遷移条件を規定した工程オブジェクトとを含むオブジェクトを定義して標準部品オブジェクトとして記憶する標準部品記憶手段と、制御対象の故障時に対処するための上記制御対象オブジェクトの状態遷移順序と遷移条件を規定した例外処理オブジェクトを定義して記憶する例外処理記憶手段とを有し、かつ上記標準部品オブジェクトに含まれる上記工程オブジェクトには、例外処理オブジェクトを特定するルール名が定義される一方、上記標準部品記憶手段から標準部品オブジェクトを読み出し、また例外処理条件発生時に上記工程オブジェクトに定義されている上記ルール名に対応した例外処理オブジェクトを上記例外処理記憶手段から読み出し、上記標準部品オブジェクトおよび例外処理オブジェクトに基づいて、シーケンス制御における制御対象の操作ブロック図、および例外処理に対応した例外処理ブロック図をそれぞれ作成する操作ブロック図作成手段と、上記各制御対象における入出力信号の関係を定義した機器入出力情報を作成する機器入出力情報作成手段と、予め上記各ブロック図のシンボルに対応したプログラム・テンプレートを記憶する標準部品対応プログラム記憶手段と、上記操作ブロック図作成手段で作成された上記操作ブロック図と例外処理ブロック図、上記標準部品対応プログラム記憶手段に記憶されている上記プログラム・テンプレート、および上記機器入出力情報作成手段で作成された上記機器入出力情報に基づいて、上記操作ブロック図に上記例外処理ルールが定義されている場合には上記例外処理を組込んだシーケンス制御プログラムを生成するプログラム自動生成手段と、を備えることを特徴としている。 The sequence control program automatic generation device according to the present invention defines an object including a control object that is a component of an operation block diagram in sequence control, and a process object that defines the state transition order and transition conditions of the control object. and the standard component storage means for storing as a standard component object, an exception processing storage means for defining and storing exception handling objects which defines the state transition sequence and a transition condition of the control object to deal with when the control target fault The process object included in the standard part object has a rule name that identifies the exception processing object, while the standard part object is read from the standard part storage unit and when the exception processing condition occurs Process object Exception processing object corresponding to the rule name that is defined read from the exception processing storage means, based on the standard component objects and exception handling objects, operational block diagram of a control object in the sequence control, and corresponding to the exception processing Operation block diagram creation means for creating each exception processing block diagram, device input / output information creation means for creating device input / output information defining the relationship of input / output signals in each control target, and symbols in each block diagram in advance The standard part corresponding program storage means for storing a program template corresponding to the above, the operation block diagram and exception processing block diagram created by the operation block diagram creation means, and the standard part correspondence program storage means stored above Program template and above equipment Based on the device output information created by the output information creating means, the automatic program generation for generating a sequence control program incorporating said exception handling when the exception processing rules are defined above operational block diagram Means.

本発明によれば、シーケンス制御における制御対象の状態遷移順序および条件を1つの工程として工程オブジェクトに予め定義し、またこの工程オブジェクトに例外処理オブジェクトを特定するルール名を定義して操作ブロック図の構成要素となる制御対象オブジェクトと共に標準部品記憶手段に予め記憶しておき、また、制御対象の故障時に対処するための制御対象の状態遷移順序および条件を1つの工程単位からなる例外処理オブジェクトとして定義して例外処理記憶手段に予め記憶しておき、操作ブロック図作成手段にて、制御対象とその制御対象の状態遷移順序および状態遷移条件を含む操作ブロック図を作成する際に、上記標準部品記憶手段から標準部品オブジェクトを読み出し、また例外処理条件発生時に上記工程オブジェクトに定義されている上記ルール名に対応した例外処理オブジェクトを上記例外処理記憶手段から読み出し、工程オブジェクトおよび例外処理オブジェクトに基づいて、複数の機器故障等に応じた例外処理ブロック図を必要な数だけ作成し、プログラム自動生成手段で、例外処理の条件発生時に工程オブジェクト内の状態遷移制御を変更して、シーケンス制御プログラムに例外処理プログラムを組み込むようにしたので、自動的に例外処理を組み込んだシーケンス制御プログラムを容易に自動生成することが可能となる。 According to the present invention, the state transition order and conditions to be controlled in sequence control are defined in advance in a process object as one process, and a rule name for specifying an exception processing object is defined in this process object . Preliminarily stored in the standard part storage unit together with the control target object that is a component, and the state transition order and conditions of the control target for dealing with a control target failure are defined as an exception processing object consisting of one process unit and stored in advance in the exception processing storage means, in operational block diagram preparation means, when creating the operation block diagram including a control object and the state transition sequence and the state transition condition of the control object, the standard parts storage Standard part object is read from means Exception processing object corresponding to the rule name defined read from the exception processing storage means, based on the process object and exception handling objects, create the required number of exception block diagram corresponding to the plurality of equipment failure, etc. Since the program automatic generation means changes the state transition control in the process object when an exception processing condition occurs, and the exception processing program is incorporated into the sequence control program, the sequence control automatically incorporates the exception processing. A program can be easily generated automatically.

本発明の実施の形態1におけるシーケンス制御プログラム自動生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the sequence control program automatic generation apparatus in Embodiment 1 of this invention. 本発明の実施の形態1において、標準部品記憶部に格納されている標準部品オブジェクトの定義内容の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the definition content of the standard component object stored in the standard component memory | storage part. 本発明の実施の形態1において、例外処理記憶部に格納されている例外処理オブジェクトの定義内容の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the definition content of the exception process object stored in the exception process memory | storage part. 本発明の実施の形態1において、シーケンス制御対象となる設備と、その設備の動作を制御するための操作ブロック図の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the operation block diagram for controlling the equipment used as sequence control object, and operation | movement of the equipment. 図4に示した操作ブロック図の一部と、これに対応してオブジェクトで表現された操作ブロック図データとの関係を示す説明図である。FIG. 5 is an explanatory diagram illustrating a relationship between a part of the operation block diagram illustrated in FIG. 4 and operation block diagram data represented by an object corresponding thereto. 図4に示した操作ブロック図に対応してオブジェクトで表現された操作ブロック図データを示す説明図である。FIG. 5 is an explanatory diagram showing operation block diagram data expressed by an object corresponding to the operation block diagram shown in FIG. 4. 本発明の実施の形態1において、例外処理となる制御対象機器と、これに対応する操作ブロック図との関係の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the relationship between the control object apparatus used as exception processing, and the operation block diagram corresponding to this. 本発明の実施の形態1において、例外処理となる制御対象機器と、これに対応する操作ブロック図との関係の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the relationship between the control object apparatus used as exception processing, and the operation block diagram corresponding to this. 本発明の実施の形態1において、操作ブロック図エディタで作成された例外処理オブジェクトの一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the exception process object created with the operation block diagram editor. 本発明の実施の形態1において、機器入出力情報記憶部に記憶されている入出力信号一覧表の一例を示す説明図である。In Embodiment 1 of this invention, it is explanatory drawing which shows an example of the input / output signal list memorize | stored in the apparatus input / output information storage part. 本発明の実施の形態1において、プログラム自動生成部で例外処理を組み込んだシーケンス制御プログラムを生成する動作の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation of generating a sequence control program in which exception processing is incorporated in an automatic program generation unit according to the first embodiment of the present invention. 本発明の実施の形態2におけるシーケンス制御プログラム自動生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the sequence control program automatic generation apparatus in Embodiment 2 of this invention. 本発明の実施の形態3において、標準部品記憶部に記憶されている条件分岐オブジェクトの一例を示す説明図である。In Embodiment 3 of this invention, it is explanatory drawing which shows an example of the conditional branch object memorize | stored in the standard component memory | storage part. 本発明の実施の形態3において、プログラム自動生成部で条件分岐プログラムを含むシーケンス制御プログラムを生成する動作の一例を示すフローチャートである。In Embodiment 3 of this invention, it is a flowchart which shows an example of the operation | movement which produces | generates the sequence control program containing a conditional branch program in a program automatic generation part. 本発明の実施の形態4におけるシーケンス制御プログラム自動生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the sequence control program automatic generation apparatus in Embodiment 4 of this invention. 本発明の実施の形態5において、機器入出力情報記憶部に記憶されている入出力信号一覧表の一例を示す説明図である。In Embodiment 5 of this invention, it is explanatory drawing which shows an example of the input-output signal list memorize | stored in the apparatus input-output information storage part. 本発明の実施の形態6におけるシーケンス制御プログラム自動生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the sequence control program automatic generation apparatus in Embodiment 6 of this invention.

実施の形態1.
図1は、本発明の実施の形態1におけるシーケンス制御プログラム自動生成装置の構成を示すブロック図である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the configuration of the sequence control program automatic generation apparatus according to Embodiment 1 of the present invention.

この実施の形態1におけるシーケンス制御プログラム自動生成装置31は、情報入力のために必要な表示を行なう表示部33、必要な情報を入力する入力装置部34、操作ブロック図の入力編集を行なうための操作ブロック図作成エディタ35、制御対象機器に対する入出力信号の名称やアドレスを定義して入力編集するための機器入出力情報エディタ39、シーケンス制御プログラムを自動生成するプログラム自動生成部42、および生成されたシーケンス制御プログラムを格納する生成プログラム記憶部44を有し、これらの各部がマンマシン・インターフェース部32に接続されている。なお、上記の操作ブロック図作成エディタ35が特許請求の範囲の操作ブロック図作成手段に、また、機器入出力情報エディタ39が特許請求の範囲の機器入出力情報作成手段にそれぞれ対応している。   The sequence control program automatic generation device 31 according to the first embodiment includes a display unit 33 that performs display necessary for information input, an input device unit 34 that inputs necessary information, and input editing of an operation block diagram. Operation block diagram creation editor 35, device input / output information editor 39 for defining and editing names and addresses of input / output signals for devices to be controlled, program automatic generation unit 42 for automatically generating a sequence control program, and The generated program storage unit 44 for storing the sequence control program is connected to the man-machine interface unit 32. The operation block diagram creation editor 35 corresponds to the operation block diagram creation means in the claims, and the device input / output information editor 39 corresponds to the device input / output information creation means in the claims.

上記の表示部33は、CRTや液晶モニターなど、必要なデータを表示する機能を有するものであればどのような構成のものでもよい。入力装置部34は、キーボードやマウスなど必要なデータを入力できる機能を有するものであればどのような構成のものでもよい。また、マンマシン・インターフェース部32、表示部33、および入力装置部34は、本装置のために製作した専用装置でも、また汎用装置を組み合わせたものでも、必要な機能を満たしておればいずれの構成のものでもよい。   The display unit 33 may have any configuration as long as it has a function of displaying necessary data, such as a CRT or a liquid crystal monitor. The input device unit 34 may have any configuration as long as it has a function of inputting necessary data, such as a keyboard and a mouse. Further, the man-machine interface unit 32, the display unit 33, and the input device unit 34 may be either a dedicated device manufactured for the present device or a combination of general-purpose devices as long as they satisfy the necessary functions. The thing of a structure may be sufficient.

標準部品記憶部37には、操作ブロック図の構成要素となる標準部品オブジェクトが定義されて保存されている。図2は、その操作ブロック図の構成要素となる標準部品オブジェクトを定義した一例を示すものである。   In the standard part storage unit 37, standard part objects that are constituent elements of the operation block diagram are defined and stored. FIG. 2 shows an example in which standard part objects that are constituent elements of the operation block diagram are defined.

ここに、標準部品オブジェクトは、操作ブロック図上にその構成要素として配置する図記号のことであり、図記号が内部的に保持する各種の情報が定義されている。本例の場合、標準部品オブジェクトとして定義されているのは、制御機器オブジェクト51(図2(a))、タイマーオブジェクト52(同図(b))、論理演算子オブジェクト53(同図(c))、スイッチオブジェクト54(同図(d))、入力信号オブジェクト55(同図(e))、および工程オブジェクト56(同図(f))がある。そして、上記のオブジェクトの内、工程オブジェクト56を除くオブジェクトが制御対象オブジェクトとなる。なお、必要に応じてこれ以外のオブジェクトを定義しても構わない。また、図2の各標準部品オブジェクトは、シーケンス制御プログラムの自動展開のための情報のみを定義したオブジェクトであるが、例えば操作ブロック図の図面を生成するための図面番号などの情報や、機器の属性など、さらに便宜上必要な情報を定義しても構わない。   Here, the standard part object is a graphic symbol arranged as a component on the operation block diagram, and various types of information held internally by the graphic symbol are defined. In this example, the control device object 51 (FIG. 2A), the timer object 52 (FIG. 2B), and the logical operator object 53 (FIG. 2C) are defined as standard part objects. ), A switch object 54 (FIG. (D)), an input signal object 55 (FIG. (E)), and a process object 56 (FIG. (F)). Of the above objects, objects other than the process object 56 are controlled objects. Note that other objects may be defined as necessary. Each standard part object in FIG. 2 is an object that defines only information for automatic development of the sequence control program. For example, information such as a drawing number for generating a drawing of an operation block diagram, Information necessary for further convenience such as attributes may be defined.

上記の制御機器オブジェクト51は、操作ブロック図上の制御対象機器を定義したもので、制御対象機器の名称、当該オブジェクトを識別するための部品番号、この制御対象機器に対してどのような制御指令が出力されるかを示す機器制御指令出力、制御対象機器を運転するための条件となる信号を入力するための入力端子、および機器の運転完了信号を出力するための出力端子の各情報を有する。   The above-described control device object 51 defines the control target device on the operation block diagram, and the name of the control target device, the part number for identifying the object, and what control command to the control target device Device control command output indicating whether or not is output, input terminal for inputting a signal as a condition for operating the control target device, and output terminal for outputting the operation completion signal of the device .

タイマーオブジェクト52は、操作ブロック図上のタイマーを定義したもので、オンディレイやオフディレイなどのタイマー種別、当該オブジェクトを識別するための部品番号、タイムアッブ時限値を設定するためのタイマー時限値設定、タイマー起動条件を入力するための入力端子、およびタイムアップ信号を出力するための出力端子の各情報を有する。   The timer object 52 defines a timer on the operation block diagram, and includes a timer type such as on-delay and off-delay, a part number for identifying the object, a timer time limit setting for setting a time-up time limit value, It has each information of the input terminal for inputting a timer starting condition, and the output terminal for outputting a time-up signal.

論理演算子オブジェクト53は、操作ブロック図上の論理演算子を定義したもので、ANDやORなどの論理演算子、当該オブジェクトを識別するための部品番号、論理演算の条件を入力するための入力端子、および演算結果を出力するための出力端子の各情報を有する。   The logical operator object 53 defines logical operators on the operation block diagram, and is an input for inputting logical operators such as AND and OR, a part number for identifying the object, and a condition for logical operation. It has each information of a terminal and the output terminal for outputting a calculation result.

スイッチオブジェクト54は、操作ブロック図上の操作スイッチを定義したもので、スイッチ種別、当該オブジェクトを識別するための部品番号、およびスイッチの操作名称(運転/停止)を付与した操作信号を出力するための出力端子の各情報を有する。   The switch object 54 defines an operation switch on the operation block diagram, and outputs an operation signal with a switch type, a part number for identifying the object, and an operation name (run / stop) of the switch. Each information of the output terminal is included.

入力信号オブジェクト55は、操作ブロック図上の外部入力信号を定義したもので、信号名称、当該オブジェクトを識別するための部品番号、および外部入力信号を出力するための出力端子の各情報を有する。   The input signal object 55 defines an external input signal on the operation block diagram, and has information on a signal name, a part number for identifying the object, and an output terminal for outputting the external input signal.

工程オブジェクト56は、操作ブロック図上の制御機器オブジェクト51、タイマーオブジェクト52、論理演算子オブジェクト53からなる1つの処理工程を定義したもので、工程を表す工程名称、工程を識別する工程番号、オブジェクトを識別するための部品番号、例外処理プログラムを自動生成する際の例外処理オブジェクト(後述)の選択先を指定するための適用例外処理ルール(例外処理パターン名)、工程オブジェクト56の起動条件を入力するための入力端子、この工程オブジェクト56によって定義される1つの処理工程中に包含される各オブジェクトの実行順序を規定するための包含オブジェクト実行順序、および工程オブジェクト56の実行完了信号を出力する出力端子の各情報を有する。   The process object 56 defines one processing process including the control device object 51, the timer object 52, and the logical operator object 53 on the operation block diagram. The process object 56 indicates a process name, a process number that identifies the process, and an object. Enter the part number for identifying the application, the application exception processing rule (exception processing pattern name) for specifying the selection destination of the exception processing object (explained later) when automatically generating the exception processing program, and the start condition of the process object 56 An output terminal that outputs an execution completion signal of the process object 56 and an inclusion object execution order for defining the execution order of each object included in one processing process defined by the process object 56 Each terminal information is held.

なお、上記の工程オブジェクト56の包含オブジェクト実行順序には、異なる工程オブジェクトを定義することも可能で、これによって工程オブジェクトの中に異なる工程オブジェクトを包含することも可能である。また、全てのオブジェクト51〜56の出力端子は、1つの信号出力を複数のオブジェクトに並列分岐して出力できるように、複数の出力端子を定義できるようになっている。   It should be noted that different process objects can be defined in the inclusion object execution order of the process object 56 described above, whereby different process objects can be included in the process object. Further, the output terminals of all the objects 51 to 56 can define a plurality of output terminals so that one signal output can be branched and output to a plurality of objects in parallel.

(例外処理記憶部の説明)
一方、例外処理記憶部38には、例外処理オブジェクトが定義されて保存されている。図3は、例外処理記憶部38に記憶された例外処理オブジェクト57を定義した一例を示すものである。
(Explanation of exception processing storage)
On the other hand, exception handling objects are defined and stored in the exception handling storage unit 38. FIG. 3 shows an example in which the exception processing object 57 stored in the exception processing storage unit 38 is defined.

この例外処理オブジェクト57は、機器故障やシステム異常等が発生した場合に対処するために例外処理が必要となった際に、工程オブジェクト56の代わりに起動されるオブジェクトである。この例外処理オブジェクト57は、前述の工程オブジェクト56(図2(f))とほぼ同じ定義構造であるが、論理演算子58を含んだ構造となっている点が異なる。また、この場合、例外処理オブジェクト57は、複数定義することも可能で、定義された例外処理オブジェクトごとに個々に例外処理パターン名(例えば、「順序停止」などの名前)を付加して予め例外処理記憶部38に記憶しておく。そして、工程オブジェクト56(図2(f))の適用例外処理ルールにおいて、この例外処理パターン名を選択することにより、例外処理オブジェクトが利用される。   The exception processing object 57 is an object that is activated in place of the process object 56 when exception processing is required to cope with a device failure, system abnormality, or the like. The exception processing object 57 has substantially the same definition structure as the above-described process object 56 (FIG. 2F), but is different in that it includes a logical operator 58. In this case, a plurality of exception processing objects 57 can be defined, and an exception processing pattern name (for example, a name such as “order stop”) is individually added to each defined exception processing object. Stored in the processing storage unit 38. Then, by selecting this exception processing pattern name in the application exception processing rule of the process object 56 (FIG. 2 (f)), the exception processing object is used.

(操作ブロック図作成エディタとその記憶部の説明)
操作ブロック図作成エディタ35は、入力装置部34から入力されたデータをマンマシン・インターフェース部32を介して受け取るとともに、操作ブロック図を作成するために必要な情報を標準部品記憶部37、および例外処理記憶部38から共に入力して、これらの情報に基づいて仕様書である操作ブロック図(実際にはオブジェクトで表現された操作ブロック図データ)を作成するための編集機能を備えている。そして、作成された操作ブロック図データは、操作ブロック図データ記憶部36に保存されると共に、マンマシン・インターフェース部32を介して表示部33に表示されるようになっている。
(Explanation of operation block diagram creation editor and its storage)
The operation block diagram creation editor 35 receives data input from the input device unit 34 via the man-machine interface unit 32, and receives information necessary for creating an operation block diagram as a standard part storage unit 37, and an exception. An editing function is provided for creating an operation block diagram (actually, an operation block diagram data expressed by an object) as a specification based on the information input from the processing storage unit 38. The created operation block diagram data is stored in the operation block diagram data storage unit 36 and displayed on the display unit 33 via the man-machine interface unit 32.

また、制御対象機器の故障による例外処理の場合、どの機器が故障するかによって制御対象機器の台数分だけ例外処理オブジェクトを作成する必要があるので、操作ブロック図エディタ35には、例外処理記憶部38に記憶された例外処理オブジェクト57の内から制御対象機器の台数分だけ例外処理ブロック図データを生成するためのプログラム修正ルールを予めに組込んでおくものとする。   Further, in the case of exception processing due to a failure of a control target device, it is necessary to create as many exception processing objects as the number of control target devices depending on which device fails. Therefore, the operation block diagram editor 35 includes an exception processing storage unit. It is assumed that program correction rules for generating exception processing block diagram data for the number of controlled devices out of the exception processing objects 57 stored in 38 are incorporated in advance.

標準部品対応プログラム記憶部41には、標準部品記憶部37に保存されている操作ブロック図の構成要素となる標準部品オブジェクト51〜56(図2参照)の内、制御機器オブジェクト51、タイマーオブジェクト52、論理演算子オブジェクト53、スイッチオブジェクト54、入力信号オブジェクト55にそれぞれ対応するプログラム・テンプレートが保存されている。なお、工程オブジェクト56については、プログラムの実行順序や、例外処理を定義するためのオブジェクトであって、制御対象機器やスイッチなどのように直接対応する機器が存在しないため、プログラム・テンプレートは存在しない。
また、この標準部品対応プログラム記憶部41には、上記の標準部品オブジェクトに対応するプログラム・テンプレートに加えて、例外処理記憶部38に記憶されている各例外処理オブジェクトに対応するプログラム・テンプレートも予め記憶されている。
The standard part correspondence program storage unit 41 includes a control device object 51 and a timer object 52 among standard part objects 51 to 56 (see FIG. 2) which are constituent elements of the operation block diagram stored in the standard part storage unit 37. Program templates corresponding to the logical operator object 53, the switch object 54, and the input signal object 55 are stored. Note that the process object 56 is an object for defining the execution order of the program and exception processing, and there is no device such as a control target device or a switch, so there is no program template. .
In addition to the program template corresponding to the standard part object, the standard part corresponding program storage unit 41 also stores in advance a program template corresponding to each exception processing object stored in the exception processing storage unit 38. It is remembered.

一方、機器入出力情報エディタ39は、入力装置部34から入力されたデータをマンマシン・インターフェース部32を介して受け取って、図外の制御対象機器に対する入出力信号の名称とアドレス情報との関係を定義した入出力信号一覧表(図10参照)を作成し、また、各信号のうち工程オブジェクト56において例外処理で使用する信号を定義する編集機能を備えている。そして、作成された制御対象機器に対する入出力情報の定義(入出力信号一覧表)は、機器入出力記憶部40に保存されると共に、マンマシン・インターフェース部32を介して表示部33に表示される。   On the other hand, the device input / output information editor 39 receives the data input from the input device unit 34 via the man-machine interface unit 32, and the relationship between the name of the input / output signal and the address information for the control target device (not shown). An input / output signal list (see FIG. 10) defining the above is created, and an editing function for defining a signal used in exception processing in the process object 56 among the signals is provided. The input / output information definition (input / output signal list) for the control target device thus created is stored in the device input / output storage unit 40 and displayed on the display unit 33 via the man-machine interface unit 32. The

プログラム自動生成部42は、入力装置部34から入力されたプログラムファイル名などの必要な情報をマンマシン・インターフェース部32を介して受け取るとともに、操作ブロック図データ記憶部36、例外処理記憶部38、機器入出力情報記憶部40、および標準部品対応プログラム記憶部41に保存されている各データを使用して目的とするシーケンス制御プログラムの生成処理を行なう。その際、プログラム自動生成部42は、シーケンス制御プログラム生成処理時の作業用の一時記憶領域として、プログラム一次記憶部43を使用する。   The automatic program generation unit 42 receives necessary information such as a program file name input from the input device unit 34 via the man-machine interface unit 32, and also includes an operation block diagram data storage unit 36, an exception processing storage unit 38, Using the data stored in the device input / output information storage unit 40 and the standard part correspondence program storage unit 41, a target sequence control program is generated. At that time, the program automatic generation unit 42 uses the program primary storage unit 43 as a temporary storage area for work during the sequence control program generation process.

プログラム自動生成部42で生成されたシーケンス制御プログラムは、生成プログラム記憶部44に格納される。そして、生成プログラム記憶部44に格納されたシーケンス制御プログラムは、マンマシン・インターフェース部32を介して、表示部33に表示されるとともに、磁気ディスクなどのメディアを媒体として、プログラムを実行するPLCなどのシーケンス制御プログラム実行装置47に格納されてシーケンス制御が実行される。なお、生成プログラム記憶部44に記憶されたプログラムは、LANなどのネットワーク経由でシーケンス制御プログラム実行装置47に格納してもよい。   The sequence control program generated by the automatic program generation unit 42 is stored in the generation program storage unit 44. The sequence control program stored in the generated program storage unit 44 is displayed on the display unit 33 via the man-machine interface unit 32, and the PLC executes the program using a medium such as a magnetic disk as a medium. The sequence control program execution device 47 stores the sequence control. The program stored in the generated program storage unit 44 may be stored in the sequence control program execution device 47 via a network such as a LAN.

印刷データ作成部45は、操作ブロック図データ記憶部36に保存されたデータを操作ブロック図の表示形態で印刷するためのデータ作成処理と、機器入出力情報記憶部40に保存されたデータから機器入出力情報を印刷するためのデータ作成処理と、生成プログラム記憶部44に保存されたPLCが実行可能なプログラムを印刷するためのデータ作成処理とをそれぞれ実行する。そして、印刷データ作成部45で作成された印刷データは、ドキュメント出力部46で印刷出力される。ドキュメント出力部46は、プリンタやプロッタなど必要なデータを印刷する機能を有するものであれば格別な制約はなく、本装置のために製作した専用装置でも、また汎用装置の組み合わせでも、必要な機能を満たしておればいずれの構成であってもよい。   The print data creation unit 45 includes a data creation process for printing the data stored in the operation block diagram data storage unit 36 in the display form of the operation block diagram, and the data stored in the device input / output information storage unit 40 from the data A data creation process for printing input / output information and a data creation process for printing a program executable by the PLC stored in the generation program storage unit 44 are executed. The print data created by the print data creation unit 45 is printed out by the document output unit 46. The document output unit 46 is not particularly limited as long as it has a function of printing necessary data, such as a printer or a plotter. The necessary function can be obtained by a dedicated device manufactured for this device or a combination of general-purpose devices. As long as the above is satisfied, any configuration may be used.

次に、例えば、図4(a)に示すように、材料タンク内の材料を材料タンク出口弁を開けて、1号コンベヤおよび2号コンベヤによって材料を搬出する設備において、操作ブロック図エディタ35が操作ブロック図(オブジェクトで表現される操作ブロック図データ)を作成する場合の処理動作について説明する。   Next, for example, as shown in FIG. 4 (a), in the facility for opening the material tank outlet valve for the material in the material tank and carrying out the material by the No. 1 conveyor and the No. 2 conveyor, the operation block diagram editor 35 is Processing operations when creating an operation block diagram (operation block diagram data expressed by an object) will be described.

操作ブロック図エディタ35は、マンマシン・インターフェース部32を介して入力装置部34から入力されたデータを受け取り、図4(b)に示すような操作ブロック図を作成する。その際、操作ブロック図に配置する図記号は、標準部品記憶部37に保存されている標準部品オブジェクト(図2参照)から必要なオブジェクトをコピーして配置し、オブジェクト間を矢印線で接続することにより、状態遷移する条件と遷移順序とを定義する。   The operation block diagram editor 35 receives data input from the input device unit 34 via the man-machine interface unit 32 and creates an operation block diagram as shown in FIG. At that time, the graphic symbols to be arranged in the operation block diagram are arranged by copying necessary objects from the standard part objects (see FIG. 2) stored in the standard part storage unit 37 and connecting the objects with arrow lines. Thus, the condition for transitioning the state and the transition order are defined.

図4(b)における一点差線で囲まれた部分は、工程オブジェクト56をコピーして作成された設備起動用の工程オブジェクト(以下、起動工程オブジェクトという)63、および設備停止用の工程オブジェクト(以下、停止工程オブジェクトという)69を示しており、操作ブロック図上で、起動工程オブジェクト63や停止工程オブジェクト69の中に制御機器などを配置することにより、各工程オブジェクト63,69内に制御機器などのオブジェクトを包含し、起動工程オブジェクト63や停止工程オブジェクト69が制御する順序が定義される。   In FIG. 4B, the part enclosed by the one-dot chain line is a process object for starting equipment (hereinafter referred to as a start process object) 63 created by copying the process object 56, and a process object for stopping equipment ( In the operation block diagram, by arranging a control device or the like in the start process object 63 or the stop process object 69, the control device is provided in each process object 63, 69. The order of control by the start process object 63 and the stop process object 69 is defined.

図5は、図4(b)に示した操作ブロック図の一部(起動工程オブジェクト63以降の工程の操作ブロックは省略)と、これに対応してオブジェクトで記述された操作ブロック図データとの相互の関係を示している。対応関係は破線矢印で示されている。   FIG. 5 shows a part of the operation block diagram shown in FIG. 4B (the operation block of the process after the activation process object 63 is omitted) and the corresponding operation block diagram data described in the object. It shows the mutual relationship. Correspondence is indicated by dashed arrows.

図5において、各オブジェクト61〜67間の接続線(太実線矢印)は、各オブジェクトの端子間の論理的な接続を図示しており、操作ブロック図データの各端子は接続先部品番号と接続先端子番号の情報を保持し、論理的な接続を識別する。すなわち、図5では入力信号オブジェクト61とスイッチオブジェクト68とが論理演算子オブジェクト62に接続され、論理演算子オブジェクト62の出力は起動工程オブジェクト63に接続されている。   In FIG. 5, connection lines (thick solid arrows) between the objects 61 to 67 illustrate logical connections between the terminals of each object, and each terminal of the operation block diagram data is connected to a connection destination part number. It retains information on the terminal number and identifies the logical connection. That is, in FIG. 5, the input signal object 61 and the switch object 68 are connected to the logical operator object 62, and the output of the logical operator object 62 is connected to the activation process object 63.

操作ブロック図エディタ35は、オブジェクト間の接続線(太実線矢印)の接続を逆に辿って操作ブロック図の先頭のオブジェクトを検索し、この先頭のオブジェクトから順番にオブジェクトを識別するための部品番号を順番に割り付ける。また、操作ブロック図エディタ35は、操作ブロック図上で起動工程オブジェクト63の中に制御機器オブジェクトなどが配置されていると、配置されたオブジェクトが起動工程オブジェクト63に含まれるものと判断して、起動工程オブジェクト63内の包含オブジェクト実行順序(図2(f)参照)に起動工程オブジェクト63内に含まれるオブジェクトの部品番号を保存し、オブジェクトの起動順序を管理する。   The operation block diagram editor 35 searches the first object in the operation block diagram by tracing back the connection lines (thick solid arrows) between the objects, and identifies the part number for identifying the objects in order from the first object. Are assigned in order. Further, when a control device object or the like is arranged in the activation process object 63 on the operation block diagram, the operation block diagram editor 35 determines that the arranged object is included in the activation process object 63, and The part number of the object included in the startup process object 63 is stored in the inclusion object execution order (see FIG. 2F) in the startup process object 63, and the startup order of the objects is managed.

なお、制御機器オブジェクトの機器名称と機器制御指令出力の種別定義、タイマーオブジェクトのタイマー種別とタイマー時限値、論理演算オブジェクトの論理演算子、スイッチオブジェクトのスイッチ種別とスイッチ名称と操作名称、工程オブジェクトの工程名称は、それぞれ入力装置部34から入力されるもので、操作ブロック図エディタ35がマンマシン・インターフェース部32を介して入力装置部34から入力データを受け取ることで、該当するオブジェクトに保存する。   Note that the device name and device control command output type definition of the control device object, the timer type and timer time limit value of the timer object, the logical operator of the logical operation object, the switch type and switch name and operation name of the switch object, the process object The process name is input from the input device unit 34, and the operation block diagram editor 35 receives the input data from the input device unit 34 via the man-machine interface unit 32, and stores it in the corresponding object.

次に、図5において、ここでは一例として起動工程オブジェクト63に設けられている包含オブジェクト実行順序64に基づく処理実行順序について説明する。   Next, in FIG. 5, a process execution order based on the inclusion object execution order 64 provided in the activation process object 63 will be described here as an example.

起動工程オブジェクト63の構成要素の包含オブジェクト実行順序64には、起動工程オブジェクト63に包含されている制御機器オブジェクトの状態遷移順序を規定する情報が保存されている。   In the inclusion object execution order 64 of the components of the activation process object 63, information that defines the state transition order of the control device objects included in the activation process object 63 is stored.

論理演算子オブジェクト62の出力端子1は、起動工程オブジェクト63の入力端子1に接続されており、これは論理演算子オブジェクト62の出力により起動工程オブジェクト63が起動されることを意味する。したがって、起動工程オブジェクト63が起動されると、起動工程オブジェクト63の包含オブジェクト実行順序64の「順序1オブジェクト」に定義されている1号コンベヤに対応した機器制御オブジェクト65が起動され、1号コンベヤが起動されると運転完了信号が起動工程オブジェクト63に返される。次に、起動工程オブジェクト63は、包含オブジェクト実行順序64の「順序2オブジェクト」に定義されている2号コンベヤに対応した機器制御オブジェクト66が起動され、2号コンベヤが起動されると運転完了信号が起動工程オブジェクト63に返される。続いて、起動工程オブジェクト63は、包含オブジェクト実行順序64の「順序3オブジェクト」に定義されている材料タンク出口弁に対応した機器制御オブジェクト67が起動され、材料タンク出口弁が起動されると運転完了信号が起動工程オブジェクト63に返される。
なお、上記の説明は起動工程オブジェクト63についてであるが、停止工程オブジェクト69についても、起動工程オブジェクト63の場合と同様であるので、ここでは詳細な説明は省略する。
The output terminal 1 of the logical operator object 62 is connected to the input terminal 1 of the activation process object 63, which means that the activation process object 63 is activated by the output of the logical operator object 62. Therefore, when the activation process object 63 is activated, the device control object 65 corresponding to the No. 1 conveyor defined in “Order 1 object” of the inclusion object execution order 64 of the activation process object 63 is activated, and the No. 1 conveyor. When is activated, an operation completion signal is returned to the activation process object 63. Next, the activation process object 63 is activated when the device control object 66 corresponding to the No. 2 conveyor defined in the “Order 2 object” of the inclusion object execution order 64 is activated and the No. 2 conveyor is activated. Is returned to the activation process object 63. Subsequently, the activation process object 63 is activated when the device control object 67 corresponding to the material tank outlet valve defined in the “order 3 object” of the inclusion object execution order 64 is activated and the material tank outlet valve is activated. A completion signal is returned to the activation process object 63.
Although the above description is about the activation process object 63, the stop process object 69 is the same as that of the activation process object 63, and thus detailed description is omitted here.

図6には、図4(b)に示した操作ブロック図に対応してオブジェクトで表現された操作ブロック図エディタ35で作成された操作ブロック図データの全内容を示している。   FIG. 6 shows the entire contents of the operation block diagram data created by the operation block diagram editor 35 expressed by objects corresponding to the operation block diagram shown in FIG.

次に、例外処理記憶部38に保存されている例外処理オブジェクト57(図3参照)に基づいて、操作ブロック図エディタ35が例外処理ブロック図データを作成する処理について説明する。   Next, processing in which the operation block diagram editor 35 creates exception processing block diagram data based on the exception processing object 57 (see FIG. 3) stored in the exception processing storage unit 38 will be described.

例外処理とは、前述のように、制御対象機器の故障発生時などのシーケンス制御の動作のことで、その場合には、制御対象機器に対して正常時とは異なる制御を行なう必要があるため、例外処理として区別しているものである。   As described above, the exception process is a sequence control operation such as when a failure occurs in the control target device. In this case, it is necessary to perform control different from the normal time on the control target device. Are distinguished as exception handling.

例えば、図4(b)において、停止工程オブジェクト69では、正常時はタイマー70,71によって1号、2号の各コンベヤの停止のタイミングを遅らせることにより、各コンベヤ上の製品を吐き出しながらコンベヤを停止させている。   For example, in FIG. 4B, in the stop process object 69, the normal operation of the conveyors 1 and 2 is delayed by the timers 70 and 71 in the normal state, thereby discharging the products on each conveyor. Stopped.

これに対して、図7(a)に示すように、例えば2号コンベヤが故障で停止した場合、材料タンク出口弁がそのまま開いていると、材料タンクから吐出された材料が2号コンベヤの上に滞積するので、材料タンク出口弁を即閉する必要がある。一方、1号コンベヤは、コンベヤ上の材料を吐き出して停止すればいいので、即停止する必要はなくてタイマーオブジェクト70の設定時間後に停止させればよい。したがって、この場合の例外処理オブジェクトに対応する例外処理のブロック図は、図7(b)に示すようになる。   On the other hand, as shown in FIG. 7A, for example, when the No. 2 conveyor stops due to a failure, if the material tank outlet valve is open as it is, the material discharged from the material tank will be discharged onto the No. 2 conveyor. Therefore, it is necessary to close the material tank outlet valve immediately. On the other hand, the No. 1 conveyor has only to discharge the material on the conveyor and stop, so it is not necessary to stop immediately, and it may be stopped after the set time of the timer object 70. Therefore, a block diagram of exception processing corresponding to the exception processing object in this case is as shown in FIG.

また、図8(a)に示すように、例えば1号コンベヤが故障で停止した場合には、1号コンベヤ上に材料が滞積しないように2号コンベヤを即停止し、かつ、材料タンクから吐出された材料が2号コンベヤの上に滞積しないように、材料タンク出口弁も即閉する必要がある。つまり、故障停止した機器の上流側の機器は即停止させて、下流側の機器は通常の停止工程の制御順序にしたがって停止させればよい。したがって、この場合の例外処理オブジェクトに対応する例外処理のブロック図は、図8(b)に示すようになる。   Further, as shown in FIG. 8A, for example, when the No. 1 conveyor stops due to a failure, the No. 2 conveyor is immediately stopped so that the material does not accumulate on the No. 1 conveyor, and from the material tank. The material tank outlet valve also needs to be closed immediately so that the discharged material does not accumulate on the No. 2 conveyor. That is, it is only necessary to immediately stop the upstream device of the failed device and stop the downstream device according to the control sequence of the normal stop process. Therefore, a block diagram of exception processing corresponding to the exception processing object in this case is as shown in FIG.

図7、図8に示したような制御対象機器の故障停止時などのシーケンス制御をルール化したオブジェクトを例外処理オブジェクトとして、例えば「順序停止」といった例外処理ルール名を付けて例外処理記憶部38に予め記憶しておく。そして、操作ブロック図エディタ35は、例外処理記憶部38に記憶された例外処理ルール名を選択して、工程オブジェクト56に定義することにより、例外処理条件が発生した時に例外処理を実行するために必要な例外処理オブジェクト57を操作ブロック図エディタ35で生成し、生成された例外処理オブジェクト57を操作ブロック図データ記憶部36に記憶する。   As an exception processing object, an exception processing storage unit 38 with an exception processing rule name such as “order stop” is used as an exception processing object, which is an object that is a sequence control rule such as when the control target device is stopped due to failure as shown in FIGS. Is stored in advance. Then, the operation block diagram editor 35 selects the exception processing rule name stored in the exception processing storage unit 38 and defines it in the process object 56 so that the exception processing is executed when an exception processing condition occurs. A necessary exception processing object 57 is generated by the operation block diagram editor 35, and the generated exception processing object 57 is stored in the operation block diagram data storage unit 36.

図9(a)には、図7に示したように、2号コンベヤが故障で停止した場合の例外処理オブジェクトで表現された例外処理ブロック図データの生成例を、また、図9(b)には、図8に示したように、1号コンベヤが故障で停止した場合の例外処理オブジェクトで表現された例外処理ブロック図データの生成例をそれぞれ示している。なお、図6のブロック図データの例では、起動工程オブジェクト63には例外処理ルール名無しで定義し、停止工程オブジェクト69には「順序停止」という名前の例外処理ルール名を定義している。   FIG. 9A shows an example of generation of exception processing block diagram data expressed by an exception processing object when the No. 2 conveyor stops due to a failure, as shown in FIG. FIG. 8 shows an example of generation of exception processing block diagram data expressed by an exception processing object when the No. 1 conveyor stops due to failure as shown in FIG. In the example of the block diagram data in FIG. 6, the start process object 63 is defined without an exception process rule name, and the stop process object 69 is defined with an exception process rule name “order stop”.

(プログラム自動生成の手順説明)
次に、プログラム自動生成部42がシーケンス制御プログラムを自動生成する手順について、図11のフローチャートを参照して説明する。
(Explanation of automatic program generation procedure)
Next, the procedure in which the program automatic generation unit 42 automatically generates the sequence control program will be described with reference to the flowchart of FIG.

図11のステップ81で操作ブロック図データ記憶部36から全てのオブジェクトを読み込んだか判断し、読込み完了していなければステップ82へ進む。ステップ82では、操作ブロック図データ記憶部36から部品番号順にオブジェクトを1つ読込む。次のステップ83では、読み込んだオブジェクトが工程オブジェクトかどうか判断し、工程オブジェクト以外であればステップ84に進む。   In step 81 of FIG. 11, it is determined whether all objects have been read from the operation block diagram data storage unit 36. If reading has not been completed, the process proceeds to step 82. In step 82, one object is read from the operation block diagram data storage unit 36 in the order of the part number. In the next step 83, it is determined whether or not the read object is a process object.

したがって、ステップ84から以降の処理は、工程オブジェクト以外のオブジェクトを互いに連係させる処理であって、ステップ84では、読み込んだオブジェクトの種類に対応するプログラムを標準部品対応プログラム記憶部41から読み込み、続いて、ステップ85では、例えばタイマーオブジェクトのタイマー時限値設定などのパラメータをプログラムに定義して、プログラム一時記憶部43に配置する。   Accordingly, the processing from step 84 onward is a processing for linking objects other than the process objects to each other. In step 84, a program corresponding to the type of the read object is read from the standard part corresponding program storage unit 41, and subsequently. In step 85, parameters such as timer time limit value setting of the timer object are defined in the program and arranged in the program temporary storage unit 43, for example.

次のステップ86では、読み込んだオブジェクトが論理演算子オブジェクトかタイマーオブジェクトかどうかを判断し、YESの場合には、PLC外部との入出信号は無いのでステップ88へ進む。また、ステップ86で論理演算子オブジェクトかタイマーオブジェクト以外(例えば、制御機器オブジェクトやスイッチオブジェクト)の場合には、ステップ87へ進んで、オブジェクトに対応する入出力信号アドレスを機器入出力情報記憶部40から読込み、プログラムに入出力信号アドレス定義する。次のステップ88では、オブジェクト間の信号のやり取りを行なうためのオブジェクトの入出端子に相当するプログラムの命令に、接続先の出力端子のメモリを割り付ける。次にステップ81に戻って処理を継続する。   In the next step 86, it is determined whether or not the read object is a logical operator object or a timer object. If YES, there is no input / output signal with the outside of the PLC, and the process proceeds to step 88. If it is determined in step 86 that the object is not a logical operator object or a timer object (for example, a control device object or a switch object), the process proceeds to step 87 and the input / output signal address corresponding to the object is stored in the device input / output information storage unit 40. And define the input / output signal address in the program. In the next step 88, the memory of the output terminal of the connection destination is allocated to the program instruction corresponding to the input / output terminal of the object for exchanging signals between the objects. Next, the process returns to step 81 to continue the processing.

一方、ステップ83において、読み込んだオブジェクトが工程オブジェクトの場合、ステップ89に移行するが、ステップ89から以降の処理は工程オブジェクトとそれ以外のオブジェクトとを互いに連係させるための処理であって、まず、ステップ89で工程オブジェクトに例外処理ルールが定義されているかどうか判断する。このとき、例外処理定義が無ければ、次のステップ90で工程オブジェクトに定義されている全ての包含オブジェクト実行順序を読み込んだか判断し、読込み完了していなければステップ91に進む。次のステップ91でステップ90で読み込んだ包含オブジェクト実行順序から、順序オブジェクトに定義されている部品番号を読み込み、次のステップ92でステップ91で読み込んだ部品番号に対応するオブジェクトを読み込む。   On the other hand, in step 83, when the read object is a process object, the process proceeds to step 89. The processing from step 89 onward is a process for linking the process object and the other objects. In step 89, it is determined whether an exception processing rule is defined for the process object. At this time, if there is no exception processing definition, it is determined in the next step 90 whether all inclusion object execution orders defined in the process object have been read. If the reading has not been completed, the process proceeds to step 91. In the next step 91, the part number defined in the order object is read from the inclusion object execution order read in step 90. In the next step 92, the object corresponding to the part number read in step 91 is read.

次のステップ84からステップ88は、前述のステップ84からステップ88と同様であるので、同一符号を付して詳細説明を省略する。次に、ステップ90に戻って処理を継続する。一方、ステップ90で工程オブジェクトに定義されている全ての包含オブジェクト実行順序を読み込んだことを検出すれば、ステップ81に戻って処理を継続する。   Since the next step 84 to step 88 are the same as the above-mentioned step 84 to step 88, the same reference numerals are given and detailed description will be omitted. Next, it returns to step 90 and continues processing. On the other hand, if it is detected in step 90 that all execution orders of the contained objects defined in the process object have been read, the process returns to step 81 and the processing is continued.

ステップ93から以降の処理は、工程オブジェクトに例外処理ルールが定義されていた場合の処理を示し、ステップ93では工程オブジェクトに定義された例外処理ルール(名前)を読み込み、次のステップ94では、読み込んだ例外処理ルールに対応する例外処理オブジェクトを操作ブロック図データ記憶部36から読み込む。   The processing from step 93 onward shows the processing when the exception processing rule is defined in the process object. In step 93, the exception processing rule (name) defined in the process object is read. In step 94, the processing is read. The exception processing object corresponding to the exception processing rule is read from the operation block diagram data storage unit 36.

次のステップ95では、例外処理オブジェクトに定義されている全ての包含オブジェクト実行順序を読み込んだか判断し、読込み完了していなければステップ91に進む。ステップ91からステップ88は前述のステップ91からステップ88と同様であるので、同一符号を付して詳細説明を省略する。次に、ステップ95に戻って処理を継続し、ステップ95で例外処理オブジェクトに定義されている全ての包含オブジェクト実行順序を読み込んだことを検出すれば、ステップ90に戻って処理を継続する。   In the next step 95, it is determined whether all inclusion object execution orders defined in the exception handling object have been read. If the reading has not been completed, the process proceeds to step 91. Since step 91 to step 88 are the same as step 91 to step 88 described above, the same reference numerals are given and detailed description will be omitted. Next, the process returns to step 95 and the process is continued. If it is detected in step 95 that all inclusion object execution orders defined in the exception process object have been read, the process returns to step 90 and the process is continued.

ステップ81で操作ブロック図データ記憶部36から全てのオブジェクトを読み込んだことを検出すれば、ステップ96へ進み、プログラム一時記憶部43で生成されたプログラムを生成プログラム記憶部44に転送して、処理を終了する。   If it is detected in step 81 that all objects have been read from the operation block diagram data storage unit 36, the process proceeds to step 96, where the program generated in the program temporary storage unit 43 is transferred to the generation program storage unit 44 and processed. Exit.

したがって、この実施の形態1によれば、操作ブロック図エディタ35で作成する操作ブロック図に含まれる工程オブジェクト56に、シーケンス制御の制御対象と制御対象の状態遷移順序および状態遷移条件を定義しておき、選択された例外処理パターン(名前)に対応して例外処理記憶部38に定義しておいた例外処理オブジェクトから例外処理プログラムを自動生成することにより、例外処理を組込んだシーケンス制御プログラムを容易に生成することができる。   Therefore, according to the first embodiment, the control object of sequence control, the state transition order of the control object, and the state transition condition are defined in the process object 56 included in the operation block diagram created by the operation block diagram editor 35. A sequence control program in which exception processing is incorporated by automatically generating an exception processing program from the exception processing object defined in the exception processing storage unit 38 corresponding to the selected exception processing pattern (name). It can be easily generated.

なお、上記のようにしてこの自動生成されたシーケンス制御プログラムには、例外処理プログラムが組み込まれていることになるが、システムの正常時は例外処理プログラムは実行されず、異常時に工程オブジェクトおよび論理演算オブジェクトに基づいて生成されたプログラムにより、例外処理パターン名の付された例外処理プログラムが選択されて例外処理が実行されることになる。   The sequence control program automatically generated as described above includes an exception handling program. However, the exception handling program is not executed when the system is normal, and the process object and logic are not executed when the system is abnormal. By the program generated based on the operation object, the exception processing program with the exception processing pattern name is selected and exception processing is executed.

実施の形態2.
図12は、本発明の実施の形態2におけるシーケンス制御プログラム生成装置の構成を示すブロック図であり、図1に示した実施の形態1と対応もしくは相当する構成部分には同一の符号を付す。
Embodiment 2. FIG.
FIG. 12 is a block diagram showing the configuration of the sequence control program generating apparatus according to the second embodiment of the present invention, and the same reference numerals are given to components corresponding to or corresponding to those of the first embodiment shown in FIG.

この実施の形態2におけるシーケンス制御プログラム生成装置は、図1に示す実施の形態1に対して、操作ブロック図エディタ35を中心とする操作ブロック図作成専用装置111と、機器入出力情報エディタ39およびプログラム自動生成部42を中心としたシーケンス制御プログラム自動生成専用装置112とに分割されている。   The sequence control program generating apparatus according to the second embodiment is different from the first embodiment shown in FIG. 1 in the operation block diagram creation dedicated device 111 centered on the operation block diagram editor 35, the device input / output information editor 39, and It is divided into a sequence control program automatic generation dedicated device 112 centered on the automatic program generation unit 42.

すなわち、上記の実施の形態1では操作ブロック図作成機能を有する部分とシーケンス制御プログラム自動生成機能を有する部分を一体とした構成で示したが、この実施の形態2では、操作ブロック図作成専用装置111と、シーケンス制御プログラム自動生成専用装置112とが個別に独立して設けられている。そして、操作ブロック図データ記憶部36のデータを磁気ディスクなどのメディアを媒体とするか、LANなどのネットワーク経由でシーケンス制御プログラム自動生成専用装置112に入力することにより、シーケンス制御プログラムを自動生成する。
その他の構成は、図1に示した実施の形態1と同様なので、ここでは詳しい説明は省略する。
That is, in the first embodiment, the configuration having the operation block diagram creation function and the sequence control program automatic generation function is shown as an integrated configuration, but in this second embodiment, the operation block diagram creation dedicated device 111 and a sequence control program automatic generation dedicated device 112 are provided separately and independently. Then, the sequence control program is automatically generated by inputting the data in the operation block diagram data storage unit 36 into a dedicated medium 112 for automatic generation of the sequence control program using a medium such as a magnetic disk or via a network such as a LAN. .
Since other configurations are the same as those of the first embodiment shown in FIG. 1, detailed description thereof is omitted here.

以上のように、この実施の形態2によれば、操作ブロック図作成とシーケンス制御プログラム自動生成を複数の作業員が分担作業する場合や、操作ブロック図作成とシーケンス制御プログラム自動生成をそれぞれ遠隔地で離れて作業することが出来き、またそれぞれの作業で必要な構成部品のみで装置を構成することができるので、実施の形態1の装置を2台使用するのと比較して、構成部品点数を減らすことが可能となる。   As described above, according to the second embodiment, the operation block diagram creation and the sequence control program automatic generation are performed by a plurality of workers. The number of component parts can be reduced compared to the case where two devices according to the first embodiment are used because the device can be configured with only the components necessary for each operation. Can be reduced.

実施の形態3.
図13(a)は、本発明の実施の形態3におけるシーケンス制御プログラム生成装置における特徴部分を説明するもので、図1に示した実施の形態1の標準部品記憶部37内に条件分岐オブジェクト121を記憶するようにしたものである。図13(b)には、この条件分岐オブジェクト121で作成した条件分岐図記号122の一例を示している。なお、実施の形態3におけるシーケンス制御プログラム生成装置のその他の構成は、実施の形態1同様であるから、ここでは詳しい説明は省略する。
Embodiment 3 FIG.
FIG. 13 (a) illustrates the characteristic part of the sequence control program generation device according to the third embodiment of the present invention. The conditional branch object 121 is stored in the standard part storage unit 37 according to the first embodiment shown in FIG. Is to be remembered. FIG. 13B shows an example of the conditional branch diagram symbol 122 created by the conditional branch object 121. In addition, since the other structure of the sequence control program generation apparatus in Embodiment 3 is the same as that of Embodiment 1, detailed description is abbreviate | omitted here.

この実施の形態3におけるプログラム自動生成部42のプログラムを自動生成する手順について、図14のフローチャートを参照して説明する。   The procedure for automatically generating the program of the automatic program generation unit 42 in Embodiment 3 will be described with reference to the flowchart of FIG.

図14のステップ131で読み込んだオブジェクトが条件分岐オブジェクトであるかどうか判断し、条件分岐オブジェクトであればステップ132に進む。そして、次のステップ132では、条件分岐オブジェクトの定義により、判定条件入力端子を接続し、さらに読み込んだオブジェクトの判定条件式をプログラムに定義する。
その他のステップについては、図11に示した実施の形態1の場合の処理と同様なので、同一部分に同一符号を付してその説明は省略する。
It is determined whether or not the object read in step 131 in FIG. 14 is a conditional branch object. Then, in the next step 132, the determination condition input terminal is connected by defining the conditional branch object, and the determination condition formula of the read object is defined in the program.
The other steps are the same as those in the case of the first embodiment shown in FIG. 11, and thus the same parts are denoted by the same reference numerals and description thereof is omitted.

以上のように、この実施の形態3によれば、ある条件によってシーケンス制御の処理を分岐させる条件分岐を含んだ操作ブロック図の作成と、条件分岐を含んだシーケンス制御プログラムを生成することが容易にできる。また条件分岐オブジェクト121はフローチャートで記述される条件分岐記号と互換性があるので、シーケンス制御における制御対象と制御対象の常態遷移順序および状態遷移条件をフローチャートとして入力することにより、シーケンス制御プログラムを自動生成することが可能となる。
なお、この実施の形態3において、実施の形態2に示した構成を採用することも可能である。
As described above, according to the third embodiment, it is easy to create an operation block diagram including a conditional branch that branches a sequence control process according to a certain condition and to generate a sequence control program including a conditional branch. Can be. Since the conditional branch object 121 is compatible with the conditional branch symbols described in the flowchart, the sequence control program is automatically entered by inputting the control target in sequence control, the normal transition order of the control target, and the state transition condition as a flowchart. Can be generated.
In the third embodiment, the configuration shown in the second embodiment can be employed.

実施の形態4.
図15は、本発明の実施の形態4におけるシーケンス制御プログラム生成装置の構成を示すブロック図であり、図1に示した実施の形態1と対応もしくは相当する構成部分には同一の符号を付す。
Embodiment 4 FIG.
FIG. 15 is a block diagram showing the configuration of the sequence control program generating apparatus according to the fourth embodiment of the present invention, and components corresponding to or corresponding to those of the first embodiment shown in FIG.

この実施の形態4におけるシーケンス制御プログラム生成装置においては、図1に示す実施の形態1に対して、シーケンス制御プログラム生成装置31に、シーケンス制御プログラムを実行する手段としてシーケンス制御プログラム実行部141と、プロセス入出力インタフェース部142を含んでいる。   In the sequence control program generation device in the fourth embodiment, a sequence control program execution unit 141 as means for executing the sequence control program is provided in the sequence control program generation device 31 with respect to the first embodiment shown in FIG. A process input / output interface unit 142 is included.

すなわち、上記の実施の形態1では、シーケンス制御プログラム生成装置31とシーケンス制御プログラム実行装置47を分割して個別に設けた構成を示したが、この実施の形態4では、シーケンス制御プログラム生成装置31に、シーケンス制御プログラムを実行する手段としてシーケンス制御プログラム実行部141と、プロセス入出力インタフェース部142を含めて構成しているため、プログラム自動生成部42で生成したシーケンス制御プログラムを本装置で実行することが可能となる。
その他の構成は、図1に示した実施の形態1と同様なので、ここでは詳しい説明は省略する。
That is, in the first embodiment, the sequence control program generation device 31 and the sequence control program execution device 47 are divided and provided individually. However, in the fourth embodiment, the sequence control program generation device 31 is provided. In addition, since the sequence control program execution unit 141 and the process input / output interface unit 142 are included as means for executing the sequence control program, the sequence control program generated by the automatic program generation unit 42 is executed by this apparatus. It becomes possible.
Since other configurations are the same as those of the first embodiment shown in FIG. 1, detailed description thereof is omitted here.

以上のように、この実施の形態4によれば、生成プログラム記憶部44をプログラム自動生成部42とシーケンス制御プログラム実行部141で共有することが可能となるので、構成部品点数を減らすことが可能となり、また装置間のシーケンス制御プログラム受け渡しのための記録媒体や通信用LAN等のケーブルを省略することができる。
なお、この実施の形態4において、実施の形態2や実施の形態3に示した構成を採用することも可能である。
As described above, according to the fourth embodiment, since the generated program storage unit 44 can be shared by the automatic program generation unit 42 and the sequence control program execution unit 141, the number of components can be reduced. In addition, cables such as a recording medium and a communication LAN for transferring a sequence control program between apparatuses can be omitted.
In the fourth embodiment, the configuration shown in the second or third embodiment can be employed.

実施の形態5.
図16は、本発明の実施の形態5におけるシーケンス制御プログラム生成装置において、機器入出力情報エディタ39が作成する入出力信号一覧表を示す一例である。
Embodiment 5 FIG.
FIG. 16 is an example of an input / output signal list created by the device input / output information editor 39 in the sequence control program generation device according to the fifth embodiment of the present invention.

この図16に示す入出力信号一覧表においては、実施の形態1における入出力信号一覧表(図10参照)に対して、出力信号折り返し接続アドレス151が付加されており、機器入出力情報エディタ39がマンマシンインターフェース部32を介して入力装置部34から入力されたデータを受け取り、出力信号折り返し接続アドレス151を定義する。   In the input / output signal list shown in FIG. 16, an output signal return connection address 151 is added to the input / output signal list in the first embodiment (see FIG. 10). Receives data input from the input device unit 34 via the man-machine interface unit 32 and defines an output signal return connection address 151.

例えば、図4(a)に示した設備において、1号コンベヤの場合、出力の運転指令のアドレスY80に対して、折り返し接続アドレスとしてX80が定義されており、Y80の運転指令を出力すると信号が折り返されてX80に入力されることを示す。なお、入出力信号一覧表のその他の要素については図10に示した場合と同様である。   For example, in the equipment shown in FIG. 4A, in the case of No. 1 conveyor, X80 is defined as the return connection address with respect to the output operation command address Y80. It indicates that it is folded and input to X80. The other elements of the input / output signal list are the same as those shown in FIG.

この出力信号折り返し接続アドレス151を定義することにより、制御対象への制御指令出力アドレスと制御対象からの状態信号入力アドレスの関連付けがなされるので、この出力信号折り返し接続アドレス151によって、プログラム自動生成部42が生成するシーケンス制御プログラムに制御対象への制御指令出力信号を制御対象からの状態信号入力に折り返して、模擬的に状態信号入力に信号を入力するプログラムを生成することができる。   By defining the output signal return connection address 151, the control command output address to the control target is associated with the state signal input address from the control target. The control command output signal to the control object is turned back to the state signal input from the control object in the sequence control program generated by 42, and the program for inputting the signal to the state signal input in a simulated manner can be generated.

以上のように、この実施の形態5によれば、プログラム自動生成部42によって生成するシーケンス制御プログラムをシーケンス制御プログラム実行装置47に格納し、シーケンス制御を実行することによって、シーケンス制御プログラム実行装置47に制御対象機器が実際には接続されていない状態でもシーケンス制御が実行可能となり、本発明のシーケンス制御プログラム自動生成装置31だけでシーケンス制御プログラムの動作確認を行うことが可能となる。   As described above, according to the fifth embodiment, the sequence control program generated by the automatic program generation unit 42 is stored in the sequence control program execution device 47, and the sequence control is executed, thereby executing the sequence control program execution device 47. Even when the control target device is not actually connected, the sequence control can be executed, and the operation of the sequence control program can be confirmed only by the sequence control program automatic generation device 31 of the present invention.

なお、図16に示した入出力信号一覧表では、図10の入出力信号一覧表に対して出力信号折り返し接続アドレス151を付加して1つの表にまとめた場合について説明したが、図10に示すような入出力信号一覧表と、出力信号折り返し接続アドレス151とを分離して2つの一覧表に分けてもよい。また、この実施の形態5において、実施の形態2〜4に示した構成を採用することも可能である。   In the input / output signal list shown in FIG. 16, the case where the output signal return connection address 151 is added to the input / output signal list shown in FIG. The input / output signal list as shown and the output signal return connection address 151 may be separated into two lists. In the fifth embodiment, the configuration shown in the second to fourth embodiments can be employed.

実施の形態6.
図17は、本発明の実施の形態6におけるシーケンス制御プログラム生成装置の構成を示すブロック図であり、図1に示した実施の形態1と対応もしくは相当する構成部分には同一の符号を付す。
Embodiment 6 FIG.
FIG. 17 is a block diagram showing the configuration of the sequence control program generating apparatus according to the sixth embodiment of the present invention, and components corresponding to or corresponding to those of the first embodiment shown in FIG.

この実施の形態6におけるシーケンス制御プログラム生成装置31は、図1に示した実施の形態1に対して、生成プログラム記憶部44に記憶されたシーケンス制御プログラムのロジックを有接点リレーによるシーケンス回路図に変換して、ドキュメント出力部46からシーケンス回路図を印刷出力するためのシーケンス回路図変換装置161がさらに設けられている。   The sequence control program generation device 31 according to the sixth embodiment is a sequence circuit diagram that uses a contact relay to change the logic of the sequence control program stored in the generation program storage unit 44 to the first embodiment shown in FIG. A sequence circuit diagram conversion device 161 for converting and printing out the sequence circuit diagram from the document output unit 46 is further provided.

すなわち、生成されたシーケンス制御プログラムのロジックは、有接点リレーによるシーケンス回路図もそのまま応用できるので、生成プログラム記憶部44に格納されたデータからシーケンス回路図に変換するシーケンス回路図変換装置161を付加することによって、シーケンス制御プログラムに対応した有接点リレーによるシーケンス回路図を容易に得ることができる。
その他の構成は、図1に示した実施の形態1と同様なので、ここでは詳しい説明は省略する。
In other words, the sequence circuit diagram generated by the contact relay can be applied to the generated sequence control program logic as it is, so the sequence circuit diagram conversion device 161 for converting the data stored in the generated program storage unit 44 into the sequence circuit diagram is added. By doing so, the sequence circuit diagram by the contact relay corresponding to a sequence control program can be obtained easily.
Since other configurations are the same as those of the first embodiment shown in FIG. 1, detailed description thereof is omitted here.

以上のように、この実施の形態6によれば、プログラム自動生成部42によって生成されたシーケンス制御プログラムのロジックから、容易に有接点リレーによるシーケンス回路図に変換して、ドキュメント出力部46から印刷出力することができる。
なお、この実施の形態6において、実施の形態2〜4に示した構成を採用することも可能である。
As described above, according to the sixth embodiment, the logic of the sequence control program generated by the automatic program generation unit 42 is easily converted into a sequence circuit diagram using a contact relay and printed from the document output unit 46. Can be output.
In the sixth embodiment, the configurations shown in the second to fourth embodiments can be employed.

31 シーケンス制御プログラム生成装置、
35 操作ブロック図作成エディタ(操作ブロック図作成手段)、
37 標準部品記憶部(標準部品記憶手段)、
38 例外処理記憶部(例外処理記憶手段)、
39 機器入出力情報エディタ(機器入出力情報作成手段)、
41 機器部品対応プログラム記憶部(機器部品対応プログラム記憶手段)、
42 プログラム自動生成部、47 シーケンス制御プログラム実行装置、
51 制御機器オブジェクト、52 タイマーオブジェクト、
53 論理演算子オブジェクト、54 スイッチオブジェクト、
55 入力信号オブジェクト、56 工程オブジェクト、57 例外処理オブジェクト、111 操作ブロック図作成専用装置、
112 シーケンス制御プログラム自動生成専用装置、121 条件分岐オブジェクト、141 シーケンス制御プログラム実行部、142 プロセス入出力インタフェース部、151 出力信号折り返し接続アドレス、161 シーケンス回路図変換装置。
31 sequence control program generator,
35 Operation block diagram creation editor (operation block diagram creation means)
37 Standard parts storage (standard parts storage means)
38 Exception processing storage unit (exception processing storage means),
39 Device input / output information editor (device input / output information creation means)
41 device parts correspondence program storage unit (device parts correspondence program storage means),
42 program automatic generation unit, 47 sequence control program execution device,
51 Control device object, 52 Timer object,
53 Logical operator object, 54 Switch object,
55 input signal object, 56 process object, 57 exception processing object, 111 operation block diagram dedicated device,
112 Sequence control program automatic generation dedicated device, 121 Condition branch object, 141 Sequence control program execution unit, 142 Process input / output interface unit, 151 Output signal return connection address, 161 Sequence circuit diagram conversion device

Claims (5)

シーケンス制御における操作ブロック図の構成要素となる制御対象オブジェクトおよびこの制御対象オブジェクトの状態遷移順序と遷移条件を規定した工程オブジェクトとを含むオブジェクトを定義して標準部品オブジェクトとして記憶する標準部品記憶手段と、制御対象の故障時に対処するための上記制御対象オブジェクトの状態遷移順序と遷移条件を規定した例外処理オブジェクトを定義して記憶する例外処理記憶手段とを有し、かつ上記標準部品オブジェクトに含まれる上記工程オブジェクトには、例外処理オブジェクトを特定するルール名が定義される一方、上記標準部品記憶手段から標準部品オブジェクトを読み出し、また例外処理条件発生時に上記工程オブジェクトに定義されている上記ルール名に対応した例外処理オブジェクトを上記例外処理記憶手段から読み出し、上記標準部品オブジェクトおよび例外処理オブジェクトに基づいて、シーケンス制御における制御対象の操作ブロック図、および例外処理に対応した例外処理ブロック図をそれぞれ作成する操作ブロック図作成手段と、上記各制御対象における入出力信号の関係を定義した機器入出力情報を作成する機器入出力情報作成手段と、予め上記各ブロック図のシンボルに対応したプログラム・テンプレートを記憶する標準部品対応プログラム記憶手段と、上記操作ブロック図作成手段で作成された上記操作ブロック図と例外処理ブロック図、上記標準部品対応プログラム記憶手段に記憶されている上記プログラム・テンプレート、および上記機器入出力情報作成手段で作成された上記機器入出力情報に基づいて、上記操作ブロック図に上記例外処理ルールが定義されている場合には上記例外処理を組込んだシーケンス制御プログラムを生成するプログラム自動生成手段と、を備えるシーケンス制御プログラム自動生成装置。 Standard part storage means for defining an object including a control target object that is a component of an operation block diagram in sequence control and a process object that defines a state transition order and transition conditions of the control target object, and storing the object as a standard part object An exception processing storage means for defining and storing an exception processing object that defines a state transition order and transition conditions of the control target object for coping with a control target failure , and is included in the standard part object In the process object, a rule name for identifying the exception processing object is defined, while the standard part object is read from the standard part storage unit, and when the exception processing condition occurs, the rule name defined in the process object is set. Corresponding exception handling object Read from the exception processing storage means, based on the standard component objects and exception handling objects, operational block diagram of a control object in the sequence control, and operational block diagram generating means for generating exception processing the corresponding exception handling block diagram to each A device input / output information creation means for creating device input / output information defining the relationship of the input / output signals in each control target, and a standard part correspondence program for storing in advance a program template corresponding to the symbol of each block diagram The storage means, the operation block diagram and exception processing block diagram created by the operation block diagram creation means, the program template stored in the standard part correspondence program storage means, and the device input / output information creation means Based on the created device input / output information Te, the sequence control program automatic generation system and a program automatic generation means for generating a sequence control program incorporating said exception handling when the exception processing rules are defined above operational block diagram. 上記操作ブロック図作成手段を含む機能部分と、上記シーケンス制御プログラム自動生成手段を含む機能部分とが、互いに分離して設けられている請求項1に記載のシーケンス制御プログラム自動生成装置。 2. The sequence control program automatic generation apparatus according to claim 1, wherein the functional part including the operation block diagram creation unit and the functional part including the sequence control program automatic generation unit are provided separately from each other. 上記標準部品記憶手段の標準部品オブジェクトは、制御対象の処理を分岐する条件を定義した条件分岐オブジェクト含み、上記プログラム自動生成手段は、上記オブジェクトに基づいて条件分岐または繰り返し動作のシーケンス制御プログラムを生成する請求項1または請求項2に記載のシーケンス制御プログラム自動生成装置。 The standard part object of the standard part storage means includes a conditional branch object that defines a condition for branching the process to be controlled. The automatic program generation means generates a sequence control program for conditional branching or repetitive operation based on the object. The sequence control program automatic generation device according to claim 1 or 2. 上記プログラム自動生成手段によって生成されたシーケンス制御プログラムを実行するシーケンス制御プログラム実行手段を備える請求項1ないし請求項3のいずれか1項に記載のシーケンス制御プログラム自動生成装置。 The sequence control program automatic generation apparatus according to any one of claims 1 to 3, further comprising sequence control program execution means for executing the sequence control program generated by the program automatic generation means. 上記プログラム自動生成手段によって生成されたシーケンス制御プログラムのロジックを、有接点リレーによるシーケンス回路図に変換するシーケンス回路図変換手段を備える請求項1ないし請求項4のいずれか1項に記載のシーケンス制御プログラム自動生成装置。 5. The sequence control according to claim 1, further comprising sequence circuit diagram conversion means for converting the logic of the sequence control program generated by the program automatic generation means into a sequence circuit diagram using a contact relay. Automatic program generator.
JP2009142916A 2009-06-16 2009-06-16 Sequence control program automatic generation device Active JP5112388B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009142916A JP5112388B2 (en) 2009-06-16 2009-06-16 Sequence control program automatic generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009142916A JP5112388B2 (en) 2009-06-16 2009-06-16 Sequence control program automatic generation device

Publications (2)

Publication Number Publication Date
JP2011002868A JP2011002868A (en) 2011-01-06
JP5112388B2 true JP5112388B2 (en) 2013-01-09

Family

ID=43560801

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009142916A Active JP5112388B2 (en) 2009-06-16 2009-06-16 Sequence control program automatic generation device

Country Status (1)

Country Link
JP (1) JP5112388B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014109019A1 (en) * 2013-01-09 2014-07-17 三菱電機株式会社 Plant engineering system
JP7359613B2 (en) 2019-09-17 2023-10-11 ファナック株式会社 Method and program generation device for generating a control program for a machine equipped with an input/output device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002268713A (en) * 2001-03-12 2002-09-20 Toyo Eng Corp Controller for batch plant and its method
JP2005010915A (en) * 2003-06-17 2005-01-13 Toshiba Corp Simulator of parallel type controller and parallel type controller system
JP2005222484A (en) * 2004-02-09 2005-08-18 Mitsubishi Electric Corp Sequence control program generation apparatus

Also Published As

Publication number Publication date
JP2011002868A (en) 2011-01-06

Similar Documents

Publication Publication Date Title
US8112165B2 (en) Method for evaluating, an automation system and a controller
US8843885B2 (en) Program creation support device
CN101669077B (en) Debug system for diagram of orogrammable controller, its programming device and its debugging method
JP4754793B2 (en) State machine function block with user modifiable output configuration database
US7761765B2 (en) Automated root cause identification of logic controller failure
EP2523056B1 (en) System and method for block instantiation
CN107728561A (en) PLC programing systems and method
JP5112388B2 (en) Sequence control program automatic generation device
KR102560634B1 (en) How to control a PLC using a PC program
JP4556787B2 (en) Programmable controller editing device
JP6400114B2 (en) Test equipment for monitoring and control equipment
JP2018152032A (en) Information processing device, information processing method, and information processing program
Brecher et al. Model-based control of a handling system with SysML
EP4040243A1 (en) Plc-based support for zero-downtime upgrades of control functions
JP6632692B1 (en) Control program creation support tool and control program creation method
Julius et al. A model-driven approach for transforming GRAFCET specification into PLC code including hierarchical structures
US11651006B2 (en) Method of visualizing screen content on a data visualization system, and data visualization system for visualizing screen content
JP2813277B2 (en) Sequence control program creation method
JP2019159937A (en) Programming support device, programming support method and program
JP7404645B2 (en) Programmable controller operation history recording method and sequence program
WO2022249713A1 (en) Control system, system program, and debugging method
Hajarnavis et al. A comparison of sequential function chart and object-modelling PLC programming
JP2017072877A (en) Plant control system engineering support device
US20150120013A1 (en) Method for reproducing the sequence of a program in an automation device
JP2008282343A (en) Debugging system for diagram of programmable controller, programming device therefor, and program therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111227

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120619

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121010

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

Free format text: PAYMENT UNTIL: 20151019

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5112388

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250