JP5498446B2 - Ladder program creation device and ladder program creation method - Google Patents

Ladder program creation device and ladder program creation method Download PDF

Info

Publication number
JP5498446B2
JP5498446B2 JP2011148314A JP2011148314A JP5498446B2 JP 5498446 B2 JP5498446 B2 JP 5498446B2 JP 2011148314 A JP2011148314 A JP 2011148314A JP 2011148314 A JP2011148314 A JP 2011148314A JP 5498446 B2 JP5498446 B2 JP 5498446B2
Authority
JP
Japan
Prior art keywords
circuit
ladder program
simulated
simulated operation
information
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
JP2011148314A
Other languages
Japanese (ja)
Other versions
JP2013016021A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2011148314A priority Critical patent/JP5498446B2/en
Publication of JP2013016021A publication Critical patent/JP2013016021A/en
Application granted granted Critical
Publication of JP5498446B2 publication Critical patent/JP5498446B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、機器模擬の回路図面からプログラマブルロジックコントローラ用のラダープログラムを効率的に作成できるラダープログラム作成装置およびラダープログラム作成方法に関するものである。   The present invention relates to a ladder program creating apparatus and a ladder program creating method that can efficiently create a ladder program for a programmable logic controller from a circuit simulation of equipment simulation.

プラント制御製品の検査業務では、監視制御装置から現場機器の制御・監視が設計通りに行われることを確認する必要がある。本検査業務の際、現場機器の全部もしくは一部が不足している場合があり、その場合には、シミュレータシステムにて模擬動作を行う。シミュレータシステムには、PC(Personal Computer)や、プログラマブルロジックコントローラ(programmable logic controller、以下「PLC」と称する。)を用いる。ここでは、PLCをシミュレータシステムとして使用する。この場合、PLCで模擬動作するためのラダープログラムを作成する必要がある。   In the inspection work of plant control products, it is necessary to confirm that control / monitoring of on-site equipment is performed as designed from the supervisory controller. During this inspection work, there may be a case where all or part of the on-site equipment is insufficient, and in such a case, a simulation operation is performed with a simulator system. A PC (Personal Computer) or a programmable logic controller (hereinafter referred to as “PLC”) is used for the simulator system. Here, PLC is used as a simulator system. In this case, it is necessary to create a ladder program for simulating operation with the PLC.

ラダープログラム作成方法として、ラダー回路部品登録手段とラダープログラム生成手段を備えたプログラミング装置がある(例えば、特許文献1参照)。このプログラミング装置では、ラダー回路を部品化する手段を使いラダー回路とラダー回路内で使用される入出力レジスタに対応するシンボル名称を定義し、ひとつのラダー回路を部品として登録する。その後、部品化されたラダー回路を組み合わせてラダープログラムを生成する手段を使い使用するラダー回路部品名およびレジスタ番号を設定し、ラダープログラムを生成することが開示されている。   As a ladder program creation method, there is a programming device provided with ladder circuit component registration means and ladder program generation means (see, for example, Patent Document 1). In this programming device, a ladder circuit and a symbol name corresponding to an input / output register used in the ladder circuit are defined using means for converting the ladder circuit into parts, and one ladder circuit is registered as a part. After that, it is disclosed that a ladder program is generated by setting a ladder circuit component name and a register number to be used by using a means for generating a ladder program by combining the ladder circuits made into components.

特開平5−189012号公報Japanese Patent Laid-Open No. 5-189012

特許文献1においては、ラダー回路部品登録手段は、リレー回路を記号化したもので、「ラダー図」という梯子のような図形に基づいてラダー回路部品データの登録を行っている。しかしながら、検査業務の担当者が必ずしもリレー回路の専門家であるとは限らないため、ラダー図を作成するのに時間を要するのが実情である。   In Patent Document 1, ladder circuit component registration means symbolizes a relay circuit and registers ladder circuit component data based on a ladder-like figure called “ladder diagram”. However, since the person in charge of the inspection work is not necessarily an expert of the relay circuit, it is a fact that it takes time to create a ladder diagram.

本発明は、前記の課題を解決するための発明であって、機器模擬の回路図面からプログラマブルロジックコントローラ用のラダープログラムを効率的に作成できるラダープログラム作成装置およびラダープログラム作成方法を提供することを目的とする。   The present invention is an invention for solving the above-described problems, and provides a ladder program creation device and a ladder program creation method capable of efficiently creating a ladder program for a programmable logic controller from a device simulation circuit diagram. Objective.

前記目的を達成するため、本発明のラダープログラム作成装置は、機器の動作を演算回路で模擬した模擬動作回路の図面の雛形情報と、雛形情報に基づくラダープログラム情報とを記憶するデータベース(例えば、DB312)と、データベースに登録されている機器を選択する機器選択画面を表示部に表示する模擬動作機器選択部(例えば、模擬動作機器選択プログラム304)と、選択された機器の雛形情報を構模擬動作回路図面として、回路入力値定義表、演算回路で模擬した模擬動作回路、回路出力値定義表を含んで表示部に表示する模擬動作回路図面作成部(例えば、模擬動作回路図面作成プログラム305)と、模擬動作回路図面に記載されている回路入力値定義表または回路出力値定義表を編集する模擬動作回路図面編集部(例えば、模擬動作回路図面編集プログラム306)と、編集後の模擬動作回路図面に基づきラダープログラム作成要求を受理すると、模擬動作回路図面編集部で編集された図面情報と、データベースに登録してある雛形情報とを比較して差分から変更情報を抽出し、抽出された変更情報に基づいて、ラダープログラム情報に反映して模擬動作ラダープログラムファイルを作成する模擬動作ラダープログラム作成部(例えば、模擬動作ラダープログラム作成プログラム307)とを有することを特徴とする。   In order to achieve the above object, a ladder program creating apparatus according to the present invention stores a template information (for example, ladder program information based on model information) based on model information of a simulated operation circuit that simulates the operation of a device with an arithmetic circuit (for example, DB 312), a simulated operation device selection unit (for example, simulated operation device selection program 304) for displaying a device selection screen for selecting a device registered in the database, and model information of the selected device. As an operation circuit drawing, a simulated operation circuit drawing creation unit (for example, a simulated operation circuit drawing creation program 305) including a circuit input value definition table, a simulated operation circuit simulated by an arithmetic circuit, and a circuit output value definition table on a display unit. And a simulation operation circuit drawing editing unit (for editing the circuit input value definition table or the circuit output value definition table described in the simulation operation circuit drawing ( For example, when a ladder program creation request is received based on the simulated operating circuit drawing editing program 306) and the edited simulated operating circuit drawing, the drawing information edited by the simulated operating circuit drawing editing unit and the template registered in the database Compared with the information, the change information is extracted from the difference, and based on the extracted change information, the simulated action ladder program creation unit (for example, the simulated action ladder is created) is reflected in the ladder program information and creates a simulated action ladder program file. And a program creation program 307).

本発明によれば、機器模擬の回路図面からプログラマブルロジックコントローラ用のラダープログラムを効率的に作成できる。   According to the present invention, it is possible to efficiently create a ladder program for a programmable logic controller from a device simulation circuit diagram.

本発明の実施形態における電子図面作成装置の構成を示す図である。It is a figure which shows the structure of the electronic drawing production apparatus in embodiment of this invention. 模擬動作回路図面情報とラダープログラム情報のパターン登録のデータベースの一例を示す図である。It is a figure which shows an example of the database of pattern registration of simulated operation circuit drawing information and ladder program information. 機器模擬動作のラダープログラム作成の流れを示す図である。It is a figure which shows the flow of the ladder program creation of apparatus simulation operation | movement. 模擬動作機器選択プログラムの処理の一例を示す図である。It is a figure which shows an example of a process of the simulation operation | movement apparatus selection program. 模擬動作回路図面作成プログラムの処理の一例を示す図である。It is a figure which shows an example of a process of the simulation operation circuit diagram creation program. 模擬動作回路図面の一例を示す図である。It is a figure which shows an example of simulation operation | movement circuit drawing. 模擬動作回路図面の入力値編集の一例を示す図である。It is a figure which shows an example of the input value edit of simulation operation circuit drawing. 模擬動作ラダープログラム作成プログラムの処理の一例を示す図である。It is a figure which shows an example of a process of the simulation operation | movement ladder program creation program. 機器の模擬動作回路図面と模擬動作ラダープログラム(ニーモック形式)のパターンの一例を表す図である。It is a figure showing an example of the pattern of the simulation operation circuit drawing of an apparatus, and the simulation operation ladder program (mnemonic format). 図9に編集を加えた機器の模擬動作回路図面と模擬動作ラダープログラムの一例を示す図である。It is a figure which shows an example of the simulation operation | movement circuit drawing of the apparatus which added the edit to FIG. 9, and a simulation operation ladder program. 自家発電/商用電源切り替え回路の一例を示す図である。It is a figure which shows an example of a private power generation / commercial power supply switching circuit. 図11のファンクションブロックダイアグラムの一例を示す図である。It is a figure which shows an example of the function block diagram of FIG. 模擬動作回路からラダープログラム作成の手順を示す図である。It is a figure which shows the procedure of ladder program creation from a simulation operation circuit.

以下、本発明の実施形態について図面を参照して詳細に説明する。
図1は、本発明の実施形態における電子図面作成装置の構成を示す図である。電子図面作成装置100(ラダープログラム作成装置)は、制御部301、出力部302、入力部303、記憶部311、および、DB(Data Base)312(外部記憶装置)を有する。制御部301は、CPU(Central Processing Unit)によって実現され、記憶部311に格納される各種プログラムを実行する機能を有する。出力部302は、ディスプレイなどであり、電子図面などを表示する。入力部303は、キーボードやマウス(ポインティングデバイス)などであり、マウスは出力部302に出力された表示物を指示するために用い、キーボードは、電子図面を作成する際の文字入力に使用する。記憶部311は、電子図面作成装置100が処理を実行する各種プログラムおよび一時的なデータを保持する機能を有する。DB312は、電子図面作成装置100が処理を実行するための各種データを保存する機能を有する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram showing a configuration of an electronic drawing creation apparatus according to an embodiment of the present invention. The electronic drawing creation apparatus 100 (ladder program creation apparatus) includes a control unit 301, an output unit 302, an input unit 303, a storage unit 311, and a DB (Data Base) 312 (external storage device). The control unit 301 is realized by a CPU (Central Processing Unit) and has a function of executing various programs stored in the storage unit 311. The output unit 302 is a display or the like, and displays an electronic drawing or the like. The input unit 303 is a keyboard, a mouse (pointing device), or the like. The mouse is used to indicate a display object output to the output unit 302, and the keyboard is used for character input when creating an electronic drawing. The storage unit 311 has a function of holding various programs executed by the electronic drawing creation apparatus 100 and temporary data. The DB 312 has a function of storing various data for the electronic drawing creation apparatus 100 to execute processing.

記憶部311には、DB312に登録されている模擬動作機器を選択するための模擬動作機器選択プログラム304(模擬動作機器選択部)、選択された模擬動作回路図面を出力部302に出力するための模擬動作回路図面作成プログラム305(模擬動作回路図面作成部)、出力部302に出力された図面を編集するための模擬動作回路図面編集プログラム306(模擬動作回路図面編集部)、登録された図面および編集された図面に関するラダープログラムを作成するための模擬動作ラダープログラム作成プログラム307(模擬動作ラダープログラム作成部)、模擬動作機器をDB312に登録するための模擬動作機器登録プログラム308(模擬動作機器登録部)が格納される。   The storage unit 311 has a simulated operation device selection program 304 (simulation operation device selection unit) for selecting a simulation operation device registered in the DB 312, and outputs the selected simulation operation circuit drawing to the output unit 302. Simulation operation circuit drawing creation program 305 (simulation operation circuit drawing creation unit), simulation operation circuit drawing editing program 306 (simulation operation circuit drawing editing unit) for editing the drawing output to the output unit 302, registered drawings and Simulated motion ladder program creation program 307 (simulated motion ladder program creation unit) for creating a ladder program relating to the edited drawing, simulated motion device registration program 308 (simulated motion device registration unit) for registering simulated motion devices in the DB 312 ) Is stored.

DB312には、模擬動作機器登録プログラム308により登録されたCAD(Computer Aided Design)の模擬動作回路図面情報321(雛形情報)および模擬動作ラダープログラム作成プログラム307により作成されるラダープログラム情報322が格納される。また、DB312には、模擬動作回路図面編集プログラム306により編集された編集後の模擬動作回路図面101および模擬動作ラダープログラム作成プログラム307により作成される編集後の模擬動作ラダープログラムファイル102が格納される。   The DB 312 stores CAD (Computer Aided Design) simulated operation circuit drawing information 321 (model information) registered by the simulated operation device registration program 308 and ladder program information 322 created by the simulated operation ladder program creation program 307. The The DB 312 stores the edited simulated motion circuit diagram 101 edited by the simulated motion circuit diagram editing program 306 and the edited simulated motion ladder program file 102 created by the simulated motion ladder program creation program 307. .

図2は、模擬動作回路図面情報とラダープログラム情報のパターン登録のデータベースの一例を示す図である。図2に示すように、検査業務の担当者が、予め模擬動作機器登録プログラム308および模擬動作ラダープログラム作成プログラム307を用いて、模擬動作回路図面情報321とラダープログラム情報322のパターンをDB312に登録している。模擬動作回路図面情報321(図11、図12参照)およびラダープログラム情報322(図13参照)の詳細な説明は後記する。   FIG. 2 is a diagram showing an example of a pattern registration database of simulated operation circuit drawing information and ladder program information. As shown in FIG. 2, the person in charge of the inspection work registers the patterns of the simulated operation circuit drawing information 321 and the ladder program information 322 in the DB 312 in advance using the simulated operation device registration program 308 and the simulation operation ladder program creation program 307. doing. Detailed description of the simulated operation circuit drawing information 321 (see FIGS. 11 and 12) and the ladder program information 322 (see FIG. 13) will be described later.

次に、電子図面作成装置100のラダープログラム作成の処理について説明する。
図3は、機器模擬動作のラダープログラム作成の流れを示す図である。適宜図1を参照して説明する。電子図面作成装置100のラダープログラム作成処理のシステムが起動すると、DB312から模擬動作機器一覧を取得し、模擬動作機器選択画面403(図4参照)を出力部302に表示する(ステップS31)。ユーザ(例えば、検査業務の担当者)は機器の選択を行う(ステップS32)。システムは選択された機器の模擬動作回路図面情報321をDB312より取得して、模擬動作回路図面101を作成する(ステップS33)。模擬動作回路図面101には、模擬動作回路図と、回路入力値が記載されている。ユーザは模擬動作回路図面101に記載された回路入力値を編集する(ステップS34)。システムは、ラダープログラム作成要求を受理すると、模擬動作機器のラダープログラム情報322をDB312から取得し、模擬動作回路図面101の回路入力値を取得し、編集された模擬動作ラダープログラムファイル102の作成を行う(ステップS35)。
Next, a ladder program creation process of the electronic drawing creation apparatus 100 will be described.
FIG. 3 is a diagram showing a flow of creating a ladder program for device simulation operation. This will be described with reference to FIG. When the ladder program creation processing system of the electronic drawing creation apparatus 100 is activated, a simulated motion device list is acquired from the DB 312 and a simulated motion device selection screen 403 (see FIG. 4) is displayed on the output unit 302 (step S31). A user (for example, a person in charge of inspection work) selects a device (step S32). The system acquires simulated operation circuit drawing information 321 of the selected device from the DB 312 and creates the simulated operation circuit drawing 101 (step S33). The simulated operation circuit diagram 101 includes a simulated operation circuit diagram and circuit input values. The user edits the circuit input value described in the simulated operation circuit drawing 101 (step S34). When the system receives the ladder program creation request, it acquires the ladder program information 322 of the simulated motion device from the DB 312, acquires the circuit input value of the simulated motion circuit drawing 101, and creates the edited simulated motion ladder program file 102. This is performed (step S35).

各ステップの処理の詳細について、適宜図1を参照して説明する。
図4は、模擬動作機器選択プログラムの処理の一例を示す図である。制御部301は、システムを起動したことを検知すると、模擬動作機器選択プログラム304を動作させ、出力部302の表示部に模擬動作機器選択画面403を表示する処理を開始する。制御部301は、DB312に登録されている模擬動作する機器の一覧リスト402を取得する。制御部301は、模擬動作機器選択画面403を表示する。模擬動作機器選択画面403のコンボボックスのリストは、取得した模擬動作する機器一覧で構成される。ユーザはコンボボックスのリストより、模擬動作する機器を選択し、OKボタンを押す。すると、制御部301は、実行が押下されたことを検知すると、選択機器リスト404を作成し、模擬動作回路図面作成プログラム305の処理に進む。
Details of the processing of each step will be described with reference to FIG. 1 as appropriate.
FIG. 4 is a diagram illustrating an example of processing of the simulated operation device selection program. When the control unit 301 detects that the system is activated, the control unit 301 operates the simulated operation device selection program 304 and starts a process of displaying the simulation operation device selection screen 403 on the display unit of the output unit 302. The control unit 301 acquires a list 402 of devices that perform simulation operations registered in the DB 312. The control unit 301 displays a simulated operation device selection screen 403. The list of the combo box on the simulated operation device selection screen 403 is composed of the acquired list of devices that perform the simulated operation. The user selects a device to be simulated from the combo box list and presses the OK button. Then, when the control unit 301 detects that execution has been pressed, the control unit 301 creates a selected device list 404 and proceeds to processing of the simulated operation circuit drawing creation program 305.

図5は、模擬動作回路図面作成プログラムの処理の一例を示す図である。制御部301は、選択機器リスト404を作成したのち、模擬動作回路図面作成プログラム305を動作させ、機器のパターンが登録されているDB312から、選択された模擬動作する機器の模擬動作回路の図面情報502(例えば、図面上のシンボル、位置情報)を取得し、模擬動作回路図面101を作成する。ここで、作成する模擬動作回路図面101とは、PLCの入力アドレスが1つもしくは複数記載されており、入力アドレスのレジスタ格納値を回路入力値として動作する演算回路が描かれている。また、その演算により、演算結果が出力されるレジスタのアドレスが描かれている。また、模擬動作回路図面101には、入力アドレスのレジスタの格納値を記載されている。なお、演算回路とは、四則演算や論理演算などの演算を行うための回路のことである。   FIG. 5 is a diagram illustrating an example of processing of the simulated operation circuit diagram creation program. After creating the selected device list 404, the control unit 301 operates the simulated operation circuit drawing creation program 305, and the drawing information of the simulated operation circuit of the selected device that performs the simulated operation from the DB 312 in which the device pattern is registered. 502 (for example, symbol and position information on the drawing) is acquired, and the simulated operation circuit drawing 101 is created. Here, in the simulated operation circuit diagram 101 to be created, one or a plurality of input addresses of the PLC are described, and an arithmetic circuit that operates using the register stored value of the input address as the circuit input value is drawn. In addition, the address of the register to which the calculation result is output is drawn by the calculation. The simulated operation circuit diagram 101 also describes the stored value of the input address register. The arithmetic circuit is a circuit for performing arithmetic operations such as four arithmetic operations and logical operations.

図6は、模擬動作回路図面の一例を示す図である。図6に示す模擬動作回路図面101は、バルブの模擬動作回路の一部を表す図面である。模擬動作回路図面101は、回路入力値定義表601、模擬動作回路602、回路出力値定義表603を含んで構成される。本実施形態では、模擬動作回路602が、従来のラダー回路ではなく、演算回路で構成されているのが特徴となっている。   FIG. 6 is a diagram illustrating an example of a simulated operation circuit diagram. A simulated operation circuit diagram 101 shown in FIG. 6 is a diagram showing a part of a simulated operation circuit of a valve. The simulated operation circuit diagram 101 includes a circuit input value definition table 601, a simulated operation circuit 602, and a circuit output value definition table 603. The present embodiment is characterized in that the simulated operation circuit 602 is configured by an arithmetic circuit instead of a conventional ladder circuit.

回路入力値定義表601は、1列目に入力値の説明、その右横の2列目には入力値、および入力値に対応する内部アドレスで構成される。入力値は、定数(入力値定数)もしくはアドレス(入力値アドレス)にて記載される。入力値アドレスが記載されている場合は、その入力値アドレスのレジスタ格納値が入力値になる。その右横にあるLと書かれた箱は、PLC内部アドレスを示すシンボルである。該当する内部アドレスがシンボルの右横に記載されている。例えば、回路入力値定義表601の1行目は、内部アドレスR103であり、入力値として「運転条件」、入力値アドレスR127が指定されている。   The circuit input value definition table 601 is composed of a description of an input value in the first column, an input value in the second column on the right side thereof, and an internal address corresponding to the input value. The input value is described as a constant (input value constant) or an address (input value address). When the input value address is described, the register stored value of the input value address becomes the input value. A box written L on the right side is a symbol indicating the PLC internal address. The corresponding internal address is written on the right side of the symbol. For example, the first row of the circuit input value definition table 601 is an internal address R103, and “operation conditions” and an input value address R127 are designated as input values.

模擬動作回路602は、回路入力値定義表601で定義された内部アドレスに接続された入力値を格納して構成される。回路入力値定義表601の1行目を例に挙げて説明する。内部アドレスはR103であり、シンボルにて表示されていて、回路入力値定義表601の1行目に接続されている。内部アドレスR103には入力値アドレスR127のレジスタ格納値が代入される。本例では入力値アドレスの先頭アルファベットが“R”のものは、ビットアドレスとし、レジスタ格納値は「1」(ONを示す)もしくは「0」(OFFを示す。)とする。仮に入力値アドレスR127のレジスタに「1」(ONを示す。)が格納されていた場合、内部アドレスR103のレジスタにも「1」(ON)が格納される。また、入力値は「運転条件」と説明されている。つまり入力値アドレスR127のレジスタに「1」(ON)が格納されていることは、バルブの「運転条件」信号がONになっていることを示す。   The simulated operation circuit 602 is configured to store an input value connected to an internal address defined in the circuit input value definition table 601. The first line of the circuit input value definition table 601 will be described as an example. The internal address is R103, which is indicated by a symbol, and is connected to the first line of the circuit input value definition table 601. The register stored value of the input value address R127 is assigned to the internal address R103. In this example, an input value address whose initial alphabet is “R” is a bit address, and a register storage value is “1” (indicating ON) or “0” (indicating OFF). If “1” (indicating ON) is stored in the register of the input value address R127, “1” (ON) is also stored in the register of the internal address R103. The input value is described as “operating condition”. That is, “1” (ON) stored in the register of the input value address R127 indicates that the “operating condition” signal of the valve is ON.

模擬動作回路602は、演算回路で構成されており、左側には、模擬動作回路(演算回路)の内部アドレスR103,R104,DW105,DW106を示すシンボルが接続されており、各アドレスのレジスタ格納値を入力値とする。模擬動作回路602にて演算が行われ、結果が内部アドレスR107のレジスタに出力される。   The simulated operation circuit 602 is configured by an arithmetic circuit, and symbols indicating the internal addresses R103, R104, DW105, and DW106 of the simulated operation circuit (arithmetic circuit) are connected to the left side, and the register stored value of each address Is the input value. The simulation operation circuit 602 performs an operation, and the result is output to the register of the internal address R107.

回路出力値定義表603は、出力値の説明が記載されており、左横には内部アドレスR107を示すシンボルが接続されている。内部アドレスR107のレジスタ格納値が、出力値となる。また出力値(内部アドレスR107のレジスタ格納値)は「運転」と説明されている。例えば、内部アドレスR107のレジスタに「1」(ON)が格納されている場合は、バルブの「運転」信号がONになっていることを示す。図6では、内部アドレスR107のレジスタに「1」が格納されていた場合、運転となることを意味する。   The circuit output value definition table 603 describes output values, and a symbol indicating the internal address R107 is connected to the left side. The register stored value of the internal address R107 becomes the output value. The output value (register stored value of the internal address R107) is described as “operation”. For example, when “1” (ON) is stored in the register of the internal address R107, it indicates that the “operation” signal of the valve is ON. In FIG. 6, when “1” is stored in the register of the internal address R107, it means that the operation is started.

図7は、模擬動作回路図面の入力値編集の一例を示す図である。ユーザが模擬動作回路図面101の回路入力値を編集する必要のある場合、または、入力値に記載がない場合、表示された模擬動作回路図面101の回路入力値定義表601をマウスなどでクリックすると、模擬動作回路図面編集プログラム306が起動され、ダイアログ701が出力部302に表示される。   FIG. 7 is a diagram showing an example of input value editing of the simulated operation circuit diagram. When the user needs to edit the circuit input value of the simulated operation circuit drawing 101 or when there is no description in the input value, the user clicks the circuit input value definition table 601 of the displayed simulated operation circuit drawing 101 with a mouse or the like. Then, the simulated operation circuit diagram editing program 306 is activated, and a dialog 701 is displayed on the output unit 302.

具体的に説明すると、回路入力値定義表601の「全開値」は、“10”に設定されている。ユーザが全開値を別な数値に編集したい場合、“10”をクリックする。制御部301はクリックを検知すると、模擬動作回路図面編集プログラム306を起動し「全開値」の“10”を編集する手段としてダイアログ701を表示する。ダイアログには、「全開値」の“10”が入力値定数のテキストボックスで用意されており、編集が可能である。もしこの値を定数値でなく、他レジスタの格納値に変更したい場合、入力値アドレスのラジオボタンを選択する。すると、入力値アドレスのテキストボックスが使用可能になり、アドレスを入力することができる。編集が終わったらOKボタンをクリックする。制御部301は、回路入力値の変更を模擬動作回路図面101に反映する。なお、回路出力値定義表603をクリックした場合、同様に、編集画面としてダイアログが出力部302に表示される。   More specifically, “fully open value” in the circuit input value definition table 601 is set to “10”. If the user wants to edit the fully open value to another value, click “10”. When the control unit 301 detects a click, it activates the simulated operation circuit drawing editing program 306 and displays a dialog 701 as means for editing “10” of “full open value”. In the dialog, “10” of “full open value” is prepared in the text box of the input value constant and can be edited. If you want to change this value to a value stored in another register instead of a constant value, select the radio button for the input value address. Then, the text box of the input value address becomes usable, and the address can be input. Click the OK button when you are finished editing. The control unit 301 reflects the change of the circuit input value in the simulated operation circuit drawing 101. When the circuit output value definition table 603 is clicked, a dialog is similarly displayed on the output unit 302 as an editing screen.

図8は、模擬動作ラダープログラム作成プログラムの処理の一例を示す図である。ユーザが出力部302に表示された模擬動作回路図面101の編集を終了し、制御部301は、登録ボタン(図示せず)の押下を検知すると、模擬動作ラダープログラム作成プログラム307を起動する。   FIG. 8 is a diagram illustrating an example of processing of the simulated motion ladder program creation program. When the user finishes editing the simulated operation circuit diagram 101 displayed on the output unit 302 and the control unit 301 detects that a registration button (not shown) is pressed, the control unit 301 activates the simulated operation ladder program creation program 307.

模擬動作回路図101は、模擬動作回路図面編集プログラム306で編集された後の機器の模擬動作回路図面である。制御部301(模擬動作ラダープログラム作成プログラム307)は、模擬動作回路図面101の入力値変更情報である編集情報802を作成する。また、制御部301は、DB312から、模擬動作する機器のラダープログラム情報804を取得する。制御部301は、模擬動作する機器のラダープログラム情報804に、模擬動作回路図面の編集情報802を反映し、模擬動作ラダープログラムファイル102を作成する。   Simulated Operation Circuit FIG. 101 is a simulated operation circuit diagram of the device after being edited by the simulated operation circuit drawing editing program 306. The control unit 301 (simulated motion ladder program creation program 307) creates edit information 802 that is input value change information of the simulated motion circuit drawing 101. In addition, the control unit 301 acquires ladder program information 804 of a device that performs a simulated operation from the DB 312. The control unit 301 reflects the editing information 802 of the simulated operation circuit drawing in the ladder program information 804 of the device that performs the simulated operation, and creates the simulated operation ladder program file 102.

図9は、機器の模擬動作回路図面と模擬動作ラダープログラム(ニーモック形式)のパターンの一例を表す図である。図10は、図9に編集を加えた機器の模擬動作回路図面と模擬動作ラダープログラムの一例を示す図である。図9に示す模擬動作回路図面901、模擬動作ラダープログラムファイル902は、図2に示すDB312に登録されていた雛形情報によるものである。図10に示す模擬動作回路図面1001は、点線で囲んである部分を、図9に示す模擬動作回路図面901から変更したものである。   FIG. 9 is a diagram illustrating an example of a simulated operation circuit diagram of a device and a pattern of a simulated operation ladder program (mnemonic format). FIG. 10 is a diagram illustrating an example of a simulated operation circuit diagram and a simulated operation ladder program for a device that has been edited in FIG. The simulated operation circuit diagram 901 and the simulated operation ladder program file 902 shown in FIG. 9 are based on the template information registered in the DB 312 shown in FIG. A simulated operation circuit diagram 1001 shown in FIG. 10 is obtained by changing the portion surrounded by a dotted line from the simulated operation circuit diagram 901 shown in FIG.

模擬動作ラダープログラム作成プログラム307の処理は、図10に示す模擬動作回路図面1001と、DB312に登録してある模擬動作回路図面901の雛形の情報を比較し、差分から入力値変更情報1002を作成する。そして、模擬動作ラダープログラム作成プログラム307の処理は、DB312に登録済みの雛形情報である模擬動作ラダープログラムファイル902を取得し、模擬動作ラダープログラム作成プログラム307は、入力値変更情報1002を模擬動作ラダープログラムファイル902に反映し、ラダープログラムファイル1003を作成する。この処理により、初めからラダープログラムを作成するよりも、ラダープログラムファイルを効率的に作成できる効果がある。   The simulation operation ladder program creation program 307 processes the simulation operation circuit diagram 1001 shown in FIG. 10 and the model information of the simulation operation circuit diagram 901 registered in the DB 312 to create the input value change information 1002 from the difference. To do. Then, the simulated motion ladder program creation program 307 acquires a simulated motion ladder program file 902 which is template information registered in the DB 312, and the simulated motion ladder program creation program 307 uses the input value change information 1002 as simulated motion ladder. Reflecting it in the program file 902, a ladder program file 1003 is created. This process has an effect that a ladder program file can be created more efficiently than a ladder program is created from the beginning.

次に、機器の模擬動作回路のパターン登録について、具体的な回路を用いて説明する。
図11は、自家発電/商用電源切り替え回路の一例を示す図である。図11に示す模擬動作回路図面101は、図6に示したものと同様に、回路入力値定義表601、模擬動作回路602、回路出力値定義表603を含んで構成される。
Next, pattern registration of the simulated operation circuit of the device will be described using a specific circuit.
FIG. 11 is a diagram illustrating an example of a private power generation / commercial power supply switching circuit. A simulation operation circuit diagram 101 shown in FIG. 11 includes a circuit input value definition table 601, a simulation operation circuit 602, and a circuit output value definition table 603, similar to that shown in FIG. 6.

模擬動作回路602は、シンボルと結線で構成されており、左(入力)から右(出力)に流れる回路を、ユーザが模擬動作機器登録画面(例えば、出力部302)を介して、予め準備されたシンボルなどを組み合わせて作成する。シンボルは何のラダープログラムに変換されるのかが決まっていて、定義されており、また、シンボルは属性を有している。その属性に「演算順序」があり、ラダープログラムへ変換するための解析順序を定義している。シンボルの近くに描かれている小さい数字(例えば、201、202、203)が演算順序である。   The simulated operation circuit 602 includes symbols and connections, and a user prepares a circuit that flows from the left (input) to the right (output) via the simulated operation device registration screen (for example, the output unit 302). Created by combining various symbols. The ladder program to be converted into is determined and defined, and the symbol has an attribute. The attribute has “calculation order” and defines the analysis order for conversion to the ladder program. A small number (for example, 201, 202, 203) drawn near the symbol is the calculation order.

なお、模擬動作回路602において、縦棒の右側に○がついているものは、OR記号で、入力された信号のうち少なくとも1つが“1”の値を持てば、“1”が出力され、そうでなければ“0”が出力される。同様に、縦棒の右側に縦長の□がついているものは、AND記号で、入力された信号のうち少なくとも1つが“0”の値を持てば、“0”が出力され、そうでなければ“1”が出力される。同様に、□の中に×があるものは、NOT記号で、入力された信号が“0”の値を持てば“1”が出力され、そうでなければ“0”が出力される。同様に、□の中に“S”、“R”、“F/C(SR)”があるものは、フリップフロップ記号であり、□の“S”側に入力された信号が“1”かつ“R”側に入力された信号が“0”なら“1”を出力する。□の“S”側に入力された信号が“0”かつ“R”側に入力された信号が“1”なら“0”を出力する。   In the simulated operation circuit 602, the one with a circle on the right side of the vertical bar is an OR symbol. If at least one of the input signals has a value of “1”, “1” is output. Otherwise, “0” is output. Similarly, a vertical bar on the right side of the vertical bar is an AND symbol. If at least one of the input signals has a value of “0”, “0” is output, otherwise “1” is output. Similarly, a symbol with □ in a square is a NOT symbol, and “1” is output if the input signal has a value of “0”, and “0” is output otherwise. Similarly, “S”, “R”, and “F / C (SR)” in □ are flip-flop symbols, and the signal input to the “S” side of □ is “1” and If the signal input to the “R” side is “0”, “1” is output. If the signal input to the “S” side of “□” is “0” and the signal input to the “R” side is “1”, “0” is output.

回路入力値定義表601は、動作回路の入力部分に割り当てるアドレスを定義しており、「L」と描かれたシンボルの右横に描かれているアルファベットと数字が、入力用の内部アドレスを示している。回路出力値定義表603は、動作回路の出力部分に割り当てる内部アドレスを定義しており、「L」と描かれたシンボルの右横に描かれているアルファベットと数字が、出力用の内部アドレスを示している。   The circuit input value definition table 601 defines an address to be assigned to the input portion of the operation circuit. The alphabet and numbers drawn on the right side of the symbol “L” indicate the internal address for input. ing. The circuit output value definition table 603 defines an internal address to be assigned to the output part of the operation circuit. The alphabet and the number drawn on the right side of the symbol “L” indicate the internal address for output. Show.

図11に記載された3つの回路のうち、一番下のものを例として説明する。アドレスR00Aには“1”、R008には“0”、R009には“0”の値を持つと仮定する。まず、R00AとR008はOR記号に入力される。OR記号から“1”を出力する。さらにこの出力結果はフリップフロップ記号の“S”側に入力され、R009はフリップフロップ記号の“R”側に入力される。フリップフロップ記号から“1”が出力される。フリップフロップ記号から出力された値“1”は、R00Cに出力される。また、フリップフロップ記号から出力された値“1”はNOT記号に入力される。NOT記号から“0”が出力される。NOT記号から出力された値“0”は、R00Bに出力される。   Of the three circuits shown in FIG. 11, the bottom one will be described as an example. Assume that the address R00A has a value “1”, R008 “0”, and R009 “0”. First, R00A and R008 are input to the OR symbol. “1” is output from the OR symbol. Further, this output result is input to the “S” side of the flip-flop symbol, and R009 is input to the “R” side of the flip-flop symbol. “1” is output from the flip-flop symbol. The value “1” output from the flip-flop symbol is output to R00C. The value “1” output from the flip-flop symbol is input to the NOT symbol. “0” is output from the NOT symbol. The value “0” output from the NOT symbol is output to R00B.

図12は、図11のファンクションブロックダイアグラムの一例を示す図である。図12に示す制御回路は、双投形電磁接触器(MCDT)の一例を示し、プラントの受変電設備に使用される。例えば、停電時、1系統の設備の電源に流れる電気を商用電源から自家発電に切り替えを行い、プラントの全停止を防ぐ場合に利用する。また、その後の電気復旧時には、自家発から商用電源への切替えを行う。
具体的には、
FIG. 12 is a diagram illustrating an example of the function block diagram of FIG. The control circuit shown in FIG. 12 shows an example of a double throw type magnetic contactor (MCDT), and is used for a power receiving / transforming facility of a plant. For example, it is used when the electricity flowing to the power source of one system facility is switched from a commercial power source to private power generation at the time of a power failure to prevent the entire plant from stopping. Moreover, at the time of subsequent electricity restoration, switching from a private power source to a commercial power source is performed.
In particular,

図12に示す図面は、図11に示す模擬動作回路図面の模擬動作回路602部分を定型と見なし、ファンクションブロックダイアグラム(FBD)で表した図面である。回路入力値定義表601、模擬動作回路602、回路出力値定義表603は、図12では、それぞれ、入力回路601A、動作回路602A、出力回路603Aと対応している。入力回路601A、出力回路603Aには、二重線の四角型のシンボルがファンクションブロック(FB)と結線でつながっており、このシンボルには、アドレスが割りあてられている(図面上は見えない。)   In the drawing shown in FIG. 12, the simulated operation circuit 602 portion of the simulated operation circuit diagram shown in FIG. 11 is regarded as a standard form and is represented by a function block diagram (FBD). In FIG. 12, the circuit input value definition table 601, the simulation operation circuit 602, and the circuit output value definition table 603 correspond to the input circuit 601A, the operation circuit 602A, and the output circuit 603A, respectively. In the input circuit 601A and the output circuit 603A, a double-line square symbol is connected to the function block (FB) by connection, and an address is assigned to this symbol (not visible in the drawing). )

図13は、模擬動作回路からラダープログラム作成の手順を示す図である。図13(a)は、模擬動作回路602の一部分の図面であり、図13(b)は図13(a)中のANDを表すシンボル1301のラダープログラムの定義ファイルであり、図13(c)は、コンパイルした結果のラダープログラムの例である。   FIG. 13 is a diagram showing a procedure for creating a ladder program from the simulated operation circuit. FIG. 13A is a drawing of a part of the simulated operation circuit 602. FIG. 13B is a definition file of a ladder program of a symbol 1301 representing AND in FIG. 13A. Is an example of a ladder program resulting from compilation.

模擬動作ラダープログラム作成プログラム307の処理は、下記の手順になる。
(1)処理対象シート取得:CAD上でロジックコンパイルの処理対象として指示されたシート情報を取得する。また、前回コンパイル時点からシートの更新が無いかチェックし、更新が無い場合コンパイル処理をスキップする。
(2)ロジック解析:各シンボルの演算順序を特定のルールにしたがって決定する。また、入出力シンボルへのアドレス割付を行う。
(3)言語ソース生成:ロジック解析結果を元に、プログラムを生成する。各シンボルと結線情報の解析を、ロジック解析で決定した演算順序に基づいて行う。各シンボルがどのようなラダープログラムに変換されるかは、定義ファイル(図13(b)参照)に記載されており、その定義に基づいてラダープログラムの作成を行う。なお、図13(b)に示すセミコロン(;)で始まる行は、コメントの行である。
(4)管理ファイル生成:コンパイル履歴を記録する。
The process of the simulated operation ladder program creation program 307 is as follows.
(1) Acquisition of processing target sheet: Acquires sheet information instructed as a processing target of logic compilation on CAD. Also, it is checked whether or not the sheet has been updated since the previous compilation. If there is no update, the compilation process is skipped.
(2) Logic analysis: The calculation order of each symbol is determined according to a specific rule. It also assigns addresses to input / output symbols.
(3) Language source generation: A program is generated based on a logic analysis result. Each symbol and connection information is analyzed based on the calculation order determined by the logic analysis. The ladder program into which each symbol is converted is described in a definition file (see FIG. 13B), and a ladder program is created based on the definition. A line starting with a semicolon (;) shown in FIG. 13B is a comment line.
(4) Management file generation: A compilation history is recorded.

本実施形態によれば、ラダープログラム作成装置(例えば、電子図面作成装置100)は、模擬動作機器登録部(例えば、模擬動作機器登録プログラム308)を有し、模擬動作機器登録部の登録画面(例えば、出力部302)は、回路入力値定義表601として、アドレスまたは定数で入力される入力値、該入力値の説明、および該入力値に対応する入力用内部アドレスで構成され、模擬動作回路図面101の回路出力値定義表603として、出力値に対応する出力用内部アドレス、該出力値の名称で構成され、模擬動作回路図面101の模擬動作回路602は、入力用内部アドレスと、出力用内部アドレスと、演算回路とを含んで構成され、登録画面に入力される入力情報に基づいて、雛形情報(例えば、模擬動作回路図面情報321)をDB312に登録することができる。   According to the present embodiment, the ladder program creation device (for example, the electronic drawing creation device 100) has the simulated motion device registration unit (for example, the simulated motion device registration program 308), and the registration screen ( For example, the output unit 302) includes, as the circuit input value definition table 601, an input value input as an address or a constant, a description of the input value, and an input internal address corresponding to the input value. The circuit output value definition table 603 in FIG. 101 includes an output internal address corresponding to the output value and the name of the output value. The simulated operation circuit 602 in the simulated operation circuit drawing 101 includes an input internal address and an output value. Template information (for example, simulated operation circuit drawing information 321) based on input information input to the registration screen is configured including an internal address and an arithmetic circuit. It can be registered in the DB312.

本実施形態によれば、模擬動作機器登録部の登録画面に表示される模擬動作回路602は、左から右に流れる演算される回路が、予め準備されたシンボルおよび結線を組み合わせて作成されており、シンボルは何のラダープログラムに変換されるのかがDB312において定義されており、シンボルは、演算順序である属性を有し、ラダープログラムへ変換するための解析順序が定義されている。   According to the present embodiment, the simulated operation circuit 602 displayed on the registration screen of the simulated operation device registration unit is created by combining a circuit to be calculated flowing from left to right with symbols and connections prepared in advance. In the DB 312, the ladder program to be converted into a symbol is defined. The symbol has an attribute that is an operation order, and an analysis order for conversion into a ladder program is defined.

100 電子図面作成装置(ラダープログラム作成装置)
101 模擬動作回路図面
102 模擬動作ラダープログラムファイル
301 制御部
302 出力部(登録画面)
303 入力部
304 模擬動作機器選択プログラム(模擬動作機器選択部)
305 模擬動作回路図面作成プログラム(模擬動作回路図面作成部)
306 模擬動作回路図面編集プログラム(模擬動作回路図面編集部)
307 模擬動作ラダープログラム作成プログラム(模擬動作ラダープログラム作成部)
308 模擬動作機器登録プログラム(模擬動作機器登録部)
311 記憶部
312 DB(データベース)
321 模擬動作回路図面情報(雛形情報)
322 ラダープログラム情報
403 模擬動作機器選択画面
601 回路入力値定義表
602 模擬動作回路
603 回路出力値定義表
100 Electronic drawing creation device (ladder program creation device)
101 Simulation Operation Circuit Drawing 102 Simulation Operation Ladder Program File 301 Control Unit 302 Output Unit (Registration Screen)
303 Input unit 304 Simulation operation device selection program (simulation operation device selection unit)
305 Simulation operation circuit drawing creation program (simulation operation circuit drawing creation unit)
306 Simulated operation circuit drawing editing program (simulated operation circuit drawing editing section)
307 Simulated motion ladder program creation program (simulated motion ladder program creation part)
308 Simulated motion device registration program (simulated motion device registration unit)
311 storage unit 312 DB (database)
321 Simulated operation circuit drawing information (model information)
322 Ladder program information 403 Simulated operation device selection screen 601 Circuit input value definition table 602 Simulated operation circuit 603 Circuit output value definition table

Claims (6)

機器の動作を演算回路で模擬した模擬動作回路の図面の雛形情報と、前記雛形情報に基づくラダープログラム情報とを記憶するデータベースと、
前記データベースに登録されている機器を選択する機器選択画面を表示部に表示する模擬動作機器選択部と、
前記選択された機器の雛形情報を模擬動作回路図面として、回路入力値定義表、前記演算回路で模擬した模擬動作回路、および回路出力値定義表を含んで前記表示部に表示する模擬動作回路図面作成部と、
前記模擬動作回路図面に記載されている前記回路入力値定義表または前記回路出力値定義表を編集する模擬動作回路図面編集部と、
前記編集後の模擬動作回路図面に基づきラダープログラム作成要求を受理すると、前記模擬動作回路図面編集部で編集された図面情報と、前記データベースに登録してある雛形情報とを比較して差分から変更情報を抽出し、前記抽出された変更情報に基づいて、前記ラダープログラム情報に反映して模擬動作ラダープログラムファイルを作成する模擬動作ラダープログラム作成部とを有する
ことを特徴とするラダープログラム作成装置。
A database for storing model information of a drawing of a simulated operation circuit simulating the operation of the device with an arithmetic circuit, and ladder program information based on the model information;
A simulated operation device selection unit that displays a device selection screen for selecting a device registered in the database on a display unit;
Simulated operation circuit drawing that displays the model information of the selected device as a simulated operation circuit drawing, including a circuit input value definition table, a simulated operation circuit simulated by the arithmetic circuit, and a circuit output value definition table on the display unit The creation department;
A simulated operation circuit drawing editing unit for editing the circuit input value definition table or the circuit output value definition table described in the simulated operation circuit drawing;
When a ladder program creation request is received based on the edited simulated operation circuit drawing, the drawing information edited by the simulated operation circuit drawing editing unit is compared with the template information registered in the database and changed from the difference. A ladder program creation device, comprising: a simulated motion ladder program creation unit that extracts information and creates a simulated motion ladder program file by reflecting the information in the ladder program information based on the extracted change information.
前記ラダープログラム作成装置は、さらに、模擬動作機器登録部を有し、
前記模擬動作機器登録部の登録画面は、
前記回路入力値定義表として、アドレスまたは定数で入力される入力値、該入力値の説明、および該入力値に対応する入力用内部アドレスで構成され、前記回路出力値定義表として、出力値に対応する出力用内部アドレスおよび該出力値の名称で構成され、
前記模擬動作回路は、前記入力用内部アドレスと、前記出力用内部アドレスと、演算回路とを含んで構成され、
前記模擬動作機器登録部は、前記登録画面に入力される入力情報に基づいて、前記雛形情報を前記データベースに登録する
ことを特徴とする請求項1に記載のラダープログラム作成装置。
The ladder program creation device further includes a simulated operation device registration unit,
The registration screen of the simulated motion device registration unit is:
The circuit input value definition table includes an input value input as an address or a constant, a description of the input value, and an input internal address corresponding to the input value. It consists of the corresponding internal address for output and the name of the output value,
The simulated operation circuit includes the internal address for input, the internal address for output, and an arithmetic circuit.
The ladder program creating apparatus according to claim 1, wherein the simulated operation device registration unit registers the template information in the database based on input information input on the registration screen.
前記模擬動作機器登録部の登録画面に表示される模擬動作回路は、左から右に流れる演算される回路が、予め準備されたシンボルおよび結線を組み合わせて作成されており、前記シンボルは何のラダープログラムに変換されるのかが前記データベースにおいて定義されており、
前記シンボルは、演算順序である属性を有し、ラダープログラムへ変換するための解析順序が定義されている
ことを特徴とする請求項2に記載のラダープログラム作成装置。
The simulated operation circuit displayed on the registration screen of the simulated operation device registration unit is created by combining a circuit to be calculated flowing from left to right and a symbol and a connection prepared in advance. Whether to be converted into a program is defined in the database,
The ladder program creation device according to claim 2, wherein the symbol has an attribute that is an operation order, and an analysis order for conversion to a ladder program is defined.
機器の動作を演算回路で模擬した模擬動作回路の図面の雛形情報と、前記雛形情報に基づくラダープログラム情報とを記憶するデータベースと、前記データベースに登録されている機器を選択する機器選択画面を表示部に表示する模擬動作機器選択部と、前記選択された機器の雛形情報を模擬動作回路図面として、回路入力値定義表、前記演算回路で模擬した模擬動作回路、および回路出力値定義表を含んで前記表示部に表示する模擬動作回路図面作成部と、前記模擬動作回路図面に記載されている前記回路入力値定義表または前記回路出力値定義表を編集する模擬動作回路図面編集部と、前記編集後の模擬動作回路図面に基づきラダープログラムを作成する模擬動作ラダープログラム作成部とを有するラダープログラム作成装置を用いて機器動作を模擬するラダープログラム作成方法であって、
前記ラダープログラム作成部は、ラダープログラム作成要求を受理すると、前記模擬動作回路図面編集部で編集された図面情報と、前記データベースに登録してある雛形情報とを比較して差分から変更情報を抽出し、前記抽出された変更情報に基づいて、前記ラダープログラム情報に反映して模擬動作ラダープログラムファイルを作成する
ことを特徴とするラダープログラム作成方法。
Displays a database for storing model information of a simulated operation circuit that simulates the operation of the device with an arithmetic circuit, ladder program information based on the model information, and a device selection screen for selecting a device registered in the database A simulation operation device selection unit to be displayed on the display unit, a model operation circuit drawing of the model information of the selected device, a circuit input value definition table, a simulation operation circuit simulated by the arithmetic circuit, and a circuit output value definition table A simulated operation circuit diagram creating unit for displaying on the display unit, a simulated operation circuit diagram editing unit for editing the circuit input value definition table or the circuit output value definition table described in the simulated operation circuit diagram, A machine using a ladder program creation device having a simulated motion ladder program creation section for creating a ladder program based on the edited simulated motion circuit diagram A ladder program created a method for simulating the operation,
Upon receipt of the ladder program creation request, the ladder program creation unit compares the drawing information edited by the simulated operation circuit drawing editing unit with the template information registered in the database, and extracts change information from the difference. Then, based on the extracted change information, a simulated operation ladder program file is created by reflecting it in the ladder program information.
前記ラダープログラム作成装置は、さらに、模擬動作機器登録部を有し、
前記模擬動作機器登録部の登録画面は、
前記回路入力値定義表として、アドレスまたは定数で入力される入力値、該入力値の説明、および該入力値に対応する入力用内部アドレスで構成され、前記回路出力値定義表として、出力値に対応する出力用内部アドレスおよび該出力値の名称で構成され、
前記模擬動作回路は、前記入力用内部アドレスと、前記出力用内部アドレスと、演算回路とを含んで構成され、
前記模擬動作機器登録部は、前記登録画面に入力される入力情報に基づいて、前記雛形情報を前記データベースに登録する
ことを特徴とする請求項4に記載のラダープログラム作成方法。
The ladder program creation device further includes a simulated operation device registration unit,
The registration screen of the simulated motion device registration unit is:
The circuit input value definition table includes an input value input as an address or a constant, a description of the input value, and an input internal address corresponding to the input value. It consists of the corresponding internal address for output and the name of the output value,
The simulated operation circuit includes the internal address for input, the internal address for output, and an arithmetic circuit.
The ladder program creating method according to claim 4, wherein the simulated operation device registration unit registers the template information in the database based on input information input on the registration screen.
前記模擬動作機器登録部の登録画面に表示される模擬動作回路は、左から右に流れる演算される回路が、予め準備されたシンボルおよび結線を組み合わせて作成されており、前記シンボルは何のラダープログラムに変換されるのかが前記データベースにおいて定義されており、
前記シンボルは、演算順序である属性を有し、ラダープログラムへ変換するための解析順序が定義されている
ことを特徴とする請求項5に記載のラダープログラム作成方法。
The simulated operation circuit displayed on the registration screen of the simulated operation device registration unit is created by combining a circuit to be calculated flowing from left to right and a symbol and a connection prepared in advance. Whether to be converted into a program is defined in the database,
6. The ladder program creation method according to claim 5, wherein the symbol has an attribute that is an operation order, and an analysis order for conversion to a ladder program is defined.
JP2011148314A 2011-07-04 2011-07-04 Ladder program creation device and ladder program creation method Active JP5498446B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011148314A JP5498446B2 (en) 2011-07-04 2011-07-04 Ladder program creation device and ladder program creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011148314A JP5498446B2 (en) 2011-07-04 2011-07-04 Ladder program creation device and ladder program creation method

Publications (2)

Publication Number Publication Date
JP2013016021A JP2013016021A (en) 2013-01-24
JP5498446B2 true JP5498446B2 (en) 2014-05-21

Family

ID=47688654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011148314A Active JP5498446B2 (en) 2011-07-04 2011-07-04 Ladder program creation device and ladder program creation method

Country Status (1)

Country Link
JP (1) JP5498446B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101639972B1 (en) * 2014-07-14 2016-07-14 미쓰비시덴키 가부시키가이샤 Plc system and arithmetic expression data creation assistance device
JP6314717B2 (en) * 2014-07-18 2018-04-25 株式会社安川電機 Ladder program creation device, monitoring device, computer program and device control device
CN106990750B (en) * 2017-04-01 2019-12-24 贝加莱工业自动化(中国)有限公司 Ladder diagram online editing method
JP2020057332A (en) * 2018-10-04 2020-04-09 オムロン株式会社 Program generation device, control method for program generation device, control program, and recording medium
JP7276581B2 (en) * 2018-10-04 2023-05-18 オムロン株式会社 A program generation device, a control method of a program generation device, a control program, and a recording medium.
JP7456557B1 (en) 2022-12-19 2024-03-27 三菱電機株式会社 Drawing support program, drawing support method, drawing support device, and drawing support system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4513806B2 (en) * 2004-04-15 2010-07-28 三菱電機株式会社 Peripheral device of programmable logic controller and method for creating program
JP4973867B2 (en) * 2007-10-19 2012-07-11 オムロン株式会社 PLC control program development device and program

Also Published As

Publication number Publication date
JP2013016021A (en) 2013-01-24

Similar Documents

Publication Publication Date Title
JP5498446B2 (en) Ladder program creation device and ladder program creation method
JP2022062060A5 (en)
JP5489958B2 (en) Test table generation apparatus and method
JP2009169778A (en) Plant construction simulation data creation method and system
JP2008165399A (en) Simulation data generation support device
JP5785864B2 (en) Manufacturing line simulation apparatus, data input support apparatus, and data input support method
JP4731335B2 (en) ASSEMBLY EVALUATION METHOD, SYSTEM, AND PROGRAM
JP2016506559A (en) Method and device for changing objects in an HMI device
JP2010020635A (en) Programming language conversion apparatus, conversion method and conversion program
CN107295810A (en) Engineering tools
JP2011039786A (en) Software test support device, software test support method and program
US11604446B2 (en) Method and system for validating a control program
JP2005242682A (en) Graphical programming apparatus and programmable display unit
JP2008226090A (en) Plant model development system
JP2008165324A (en) Program creation support device
JP5308991B2 (en) Maintenance work plan support method and system
JP4803447B2 (en) CAD system and program implemented in this system
JP2018036945A (en) Simulator linkage device, control method of simulator linkage device, information processing program, and record medium
JP2006163657A (en) Playback simulator
JP4609655B2 (en) Attached data generator for program parts
Mujber et al. A new hybrid dynamic modelling approach for process planning
JP4652072B2 (en) Design support apparatus and method with simulation function, and operation support apparatus and method with simulation function
JP2018156214A (en) SFC program creation support apparatus, SFC program creation support program, and SFC program creation method
JP2014191566A (en) Screen definition device of operation panel
KR100877572B1 (en) Apparatus and method for operation sequence converting and computer readable medium processing the method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130516

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

Effective date: 20140225

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Effective date: 20140307

Free format text: JAPANESE INTERMEDIATE CODE: A61

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

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5498446