JP2008165324A - Program creation support device - Google Patents

Program creation support device Download PDF

Info

Publication number
JP2008165324A
JP2008165324A JP2006351535A JP2006351535A JP2008165324A JP 2008165324 A JP2008165324 A JP 2008165324A JP 2006351535 A JP2006351535 A JP 2006351535A JP 2006351535 A JP2006351535 A JP 2006351535A JP 2008165324 A JP2008165324 A JP 2008165324A
Authority
JP
Japan
Prior art keywords
input
program
output unit
simulation
output
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.)
Pending
Application number
JP2006351535A
Other languages
Japanese (ja)
Inventor
Yasushi Onishi
靖史 大西
Satoru Hasegawa
哲 長谷川
Toyokazu Maruyama
豊和 丸山
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP2006351535A priority Critical patent/JP2008165324A/en
Publication of JP2008165324A publication Critical patent/JP2008165324A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To facilitate program creation for simulating operation of an input/output unit. <P>SOLUTION: This program creation support device 100 reads out constitution setting information 35 (7) of the input/output unit set and stored in a control device 102. Input/output signal information 8 of each input/output unit is extracted from the constitution setting information 7. Extracted input/output signal information 7 is assigned to a model program 10 of a simulation program of the input/output unit set beforehand, and the simulation program (object program) 11 of each input/output unit is created. The object program 11 (23) is transmitted to an input/output simulation device 101, and a control program 34 is executed by the control device 102, and the object program 23 is executed by the input/output simulation device 101, and simulation is performed and debugging of the control program is performed. The simulation program can be created simply only by assigning the input/output signal to the model program based on the constitution setting information. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、プログラマブルコントローラや数値制御装置等の制御装置に使用されるシーケンスプログラムをデバッグするための入出力ユニットシミュレーションプログラムの作成を支援する装置に関する。   The present invention relates to an apparatus that supports creation of an input / output unit simulation program for debugging a sequence program used in a control device such as a programmable controller or a numerical control device.

シーケンス制御プログラムを作成し、プログラマブルコントローラや数値制御装置等の制御装置で該シーケンス制御プログラムを実行する際、これら制御装置に接続され、該シーケンス制御プログラムで制御される入出力ユニット(入出力機器)を正常に動作させることができるかをデバッグする必要がある。このデバッグ は、最終的には、シーケンスプログラムを実行する制御装置で行うが、事前に入出力ユニットに代えて模擬的に信号を入出力して、シーケンス制御プログラムのシミュレーションを行う方法が公知である。この方法は、入出力ユニットをシミュレーションするプログラムを利用するものである。   When a sequence control program is created and executed by a control device such as a programmable controller or numerical control device, an input / output unit (input / output device) connected to the control device and controlled by the sequence control program It is necessary to debug whether it can work normally. This debugging is finally performed by a control device that executes a sequence program. However, a method for simulating a sequence control program by inputting and outputting signals in advance in place of an input / output unit is known. . This method uses a program for simulating an input / output unit.

例えば、特許文献1には、実行シミュレーションの対象となるプログラマブルコントローラ(PLC)用制御プログラムと、実行シミュレーションに必要な模擬入力生成手順をPLC用制御プログラムと同一の言語で記述した模擬入力生成プログラムとに基づいて、パソコン上で、PLC用制御プログラムと模擬入力生成プログラムを実行して、該2つのプログラム間で入出力信号のやりとりを行い、仮想的に所望のプログラム実行シミュレーションを実行するPLC用制御プログラムのシミュレーション装置に関する発明が記載されている。   For example, Patent Document 1 discloses a control program for a programmable controller (PLC) that is a target of execution simulation, and a simulation input generation program that describes a simulation input generation procedure necessary for execution simulation in the same language as the PLC control program. PLC control program and simulated input generation program are executed on a personal computer, input / output signals are exchanged between the two programs, and a desired program execution simulation is virtually executed. An invention relating to a program simulation apparatus is described.

特開2001−209408号公報JP 2001-209408 A

シーケンス制御プログラムのデバッグを、入出力ユニットに代わるプログラムを用いて、シーケンス制御プログラムのシミュレーションを行い、シーケンス制御プログラムのデバッグを行う場合において、従来は、この入出力ユニットをシミュレーションするプログラムを作成する際に、対象となる入出力信号を手動で設定する必要があった。この入出力信号を手動で設定する作業は、多大の労力と時間を要し、面倒な作業であった。   When debugging a sequence control program by using a program that replaces an input / output unit and simulating the sequence control program and debugging the sequence control program, conventionally, when creating a program that simulates this input / output unit, In addition, it was necessary to manually set the target input / output signal. The operation of manually setting the input / output signals requires a lot of labor and time, and is a troublesome operation.

特許文献1に記載された発明は、PLC用制御プログラムを模擬入力生成プログラムでシミュレーションする発明であるが、このとき用いる入出力ユニットをシミュレーションする模擬入力生成プログラムの作成方法については、この特許文献には記載されていない。
そこで、本発明は、シーケンス制御プログラムのデバッグに用いる入出力ユニットシミュレーションプログラムの作成を容易にするプログラム作成支援装置を提供することにある。
The invention described in Patent Document 1 is an invention for simulating a PLC control program with a simulated input generation program. A method for creating a simulated input generation program for simulating an input / output unit used at this time is described in this patent document. Is not listed.
Accordingly, the present invention is to provide a program creation support apparatus that facilitates creation of an input / output unit simulation program used for debugging a sequence control program.

本発明は、シーケンス制御を行う制御装置のシーケンス制御プログラムを、入出力ユニットのシミュレーションプログラムを用いてシミュレーションを行うための入出力ユニットのシミュレーションプログラムの作成を支援するプログラム作成支援装置であって、請求項1に係る発明は、前記制御装置に設定記憶されている該制御装置に接続する入出力ユニットの構成設定情報を読み取る手段と、予め設定され、入出力ユニットのシミュレーションを行う入出力ユニット毎のプログラムの生成情報を記憶する記憶手段と、読み取った前記入出力ユニットの構成設定情報から、入出力ユニット毎にその入出力信号アドレスを抽出し、対象とする入出力ユニットのプログラムの生成情報の入力部に前記入出力信号情報の出力信号アドレスを、出力部に前記入出力信号情報の入力信号アドレスを付加して、入出力ユニットシミュレーションを行う対象プログラムを作成する対象プログラム作成手段を備えることを特徴とするもので、入出力信号の設定が自動的にできるようにした点に特徴を有するものである。請求項2に係る発明では、前記対象プログラム作成手段は、前記構成設定情報から入出力ユニット毎に入出力信号アドレスを抽出して、まず抽出情報を作成し、該抽出情報に基づいて対象プログラムを作成するものとした。   The present invention is a program creation support device that supports creation of a simulation program for an input / output unit for performing a simulation using a simulation program for an input / output unit, the sequence control program of a control device that performs sequence control, The invention according to item 1 is configured to read configuration setting information of the input / output unit connected to the control device that is set and stored in the control device, and for each input / output unit that is preset and performs simulation of the input / output unit. From the storage means for storing the program generation information and the read configuration setting information of the input / output unit, the input / output signal address is extracted for each input / output unit, and the program generation information of the target input / output unit is input. Output signal address of the input / output signal information And an input signal address of the input / output signal information, and a target program creating means for creating a target program for performing the input / output unit simulation is provided, and the setting of the input / output signal can be automatically performed. It has the feature in the point made like this. In the invention according to claim 2, the target program creating means extracts an input / output signal address for each input / output unit from the configuration setting information, first creates extracted information, and creates a target program based on the extracted information. It was supposed to be created.

また、請求項3に係る発明は、前記対象プログラムの生成情報を、入出力ユニットシミュレーションプログラムのソースコードの雛型プログラムとし、対象プログラムは入出力ユニットシミュレーションプログラムのソースコードで構成されているものとした。さらに、請求項4に係る発明は、前記入出力ユニットシミュレーションプログラムのソースコードの雛型プログラムおよびソースコードを、ファンクションブロックで記述したプログラムまたはラダーで記述したシーケンスプログラムとした。   According to a third aspect of the present invention, the generation information of the target program is a template program of the source code of the input / output unit simulation program, and the target program is composed of the source code of the input / output unit simulation program. did. Furthermore, in the invention according to claim 4, the template program and the source code of the source code of the input / output unit simulation program are a program described by function blocks or a sequence program described by ladder.

入出力ユニットシミュレーションを行う対象プログラムの生成情報に対して、入出力ユニットの構成設定情報に基づいて、自動的に入出力信号が割り当てられるので、手動で設定する必要がなく、入出力ユニットシミュレーションプログラムが容易に作成できる。   Input / output signals are automatically assigned to the generation information of the target program that performs the input / output unit simulation based on the configuration setting information of the input / output unit, so there is no need to manually set the input / output unit simulation program. Can be easily created.

以下、本発明の一実施形態について図面と共に説明する。
図1は、本実施形態におけるプログラム作成支援装置100、数値制御装置やプログラマブルコントローラ等のシーケンス制御を行う制御装置102、及び入出力ユニットの動作をシミュレーションする入出力ユニットシミュレーション装置101の要部ブロック図である。
これらプログラム作成支援装置100、制御装置102、入出力ユニットシミュレーション装置101は通信路51で接続されている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a principal block diagram of a program creation support apparatus 100, a control apparatus 102 that performs sequence control such as a numerical controller and a programmable controller, and an input / output unit simulation apparatus 101 that simulates the operation of an input / output unit according to this embodiment. It is.
These program creation support device 100, control device 102, and input / output unit simulation device 101 are connected by a communication path 51.

プログラム作成支援装置100は、プロセッサ1、表示器2、キーボード3、通信インタフェース4、RAM5等を備え、これらはバス12で接続されている。RAM5には、入出力ユニットの動作をシミュレーションする入出力ユニットシミュレーションプログラム(対象プログラム)を作成するための対象プログラム作成プログラム6が格納されている。また、制御装置102に記憶する入出力ユニット50の構成設定情報35を読み出し記憶する(図1では構成設定情報7と記載している)。さらに、対象プログラム(入出力ユニットシミュレーションプログラム)11を作成するための対象プログラム生成情報10としてのソースコード雛型プログラムが格納されており、対象プログラム作成プログラム6により、この対象プログラム生成情報(ソースコード雛型プログラム)10と、構成設定情報7に基づいて対象プログラム(入出力ユニットシミュレーションプログラム)11が作成され記憶されるよう構成されている。又、RAM5内に設けられたワークメモリ8は、対象プログラム(入出力ユニットシミュレーションプログラム)11の作成中、データを一次記憶する等に使用され、構成設定情報7から抽出した入出力信号情報から構成される抽出情報9が記憶されるようになっている。   The program creation support apparatus 100 includes a processor 1, a display 2, a keyboard 3, a communication interface 4, a RAM 5, and the like, which are connected by a bus 12. The RAM 5 stores a target program creation program 6 for creating an input / output unit simulation program (target program) for simulating the operation of the input / output unit. Further, the configuration setting information 35 of the input / output unit 50 stored in the control device 102 is read and stored (indicated as configuration setting information 7 in FIG. 1). Further, a source code template program as target program generation information 10 for generating the target program (input / output unit simulation program) 11 is stored, and this target program generation information (source code) is stored by the target program generation program 6. A target program (input / output unit simulation program) 11 is created and stored based on the template program 10 and the configuration setting information 7. The work memory 8 provided in the RAM 5 is used to temporarily store data during the creation of the target program (input / output unit simulation program) 11 and is composed of input / output signal information extracted from the configuration setting information 7. The extracted information 9 is stored.

制御装置102は、プロセッサ31、システムプログラムを記憶するROM32、RAM33、表示器36、キーボード37、入出力信号等を記憶する信号メモリ38、通信インタフェース39がバス40で接続されている。さらに、入出力ユニット50も図示していない入出力インタフェースを介してバス40に接続されている。
又、RAM33には、本発明に関係して、制御プログラム(シーケンス制御プログラム)34、この制御装置102に接続されている入出力ユニットの構成設定情報35等が設定記憶されるようになっている。
In the control device 102, a processor 31, a ROM 32 that stores system programs, a RAM 33, a display 36, a keyboard 37, a signal memory 38 that stores input / output signals, and a communication interface 39 are connected by a bus 40. Further, the input / output unit 50 is also connected to the bus 40 via an input / output interface (not shown).
The RAM 33 is configured to store a control program (sequence control program) 34, configuration setting information 35 of an input / output unit connected to the control device 102, and the like in relation to the present invention. .

入出力ユニットシミュレーション装置101は、プロセッサ21、RAM22、表示器24、キーボード25、通信インタフェース26がバス27に接続されている。RAM22には、本発明によって作成した対象プログラム(入出力ユニットシミュレーションプログラム)23が格納されるようになっている。
プログラム作成支援装置100、制御装置102、入出力ユニットシミュレーション装置101は、それぞれの通信インタフェース4、39、26を介して通信路51で接続され、情報の送受信を行うようになっている。
In the input / output unit simulation apparatus 101, a processor 21, a RAM 22, a display 24, a keyboard 25, and a communication interface 26 are connected to a bus 27. The target program (input / output unit simulation program) 23 created by the present invention is stored in the RAM 22.
The program creation support apparatus 100, the control apparatus 102, and the input / output unit simulation apparatus 101 are connected to each other via a communication path 51 via their respective communication interfaces 4, 39, and 26, and transmit and receive information.

図2は、入出力ユニットシミュレーションプログラム(対象プログラム)の作成の流れを示すブロック図である。
前述したように、制御装置102には、入出力ユニット50が接続され、該制御装置102のRAM33には、接続された入出力ユニット50の構成設定情報35が設定記憶されていると共に、これら入出力ユニット50をシーケンス制御する制御プログラム(シーケンス制御プログラム)34が記憶されている。この記憶された構成設定情報35がプログラム作成支援装置100に転送され、RAM5に入出力ユニットの構成設定情報7として記憶される。プログラム作成支援装置100のプロセッサ1は、この入出力ユニットの構成設定情報7より入出力ユニット毎の入出力信号情報を抽出した抽出情報を得て、該抽出情報の入出力信号情報を、対象プログラム生成情報である入出力ユニットの動作をシミュレーションするためのソースコード雛型プログラム10に付加して、入出力ユニットシミュレーションプログラム(対象プログラム)11を作成する。こうしてプログラム作成支援装置100で作成された入出力ユニットシミュレーションプログラム(対象プログラム)11は、入出力ユニットシミュレーション装置101に転送され、そのRAM22内に入出力ユニットシミュレーションプログラム(対象プログラム)23として格納される。
FIG. 2 is a block diagram showing a flow of creating an input / output unit simulation program (target program).
As described above, the input / output unit 50 is connected to the control device 102, and the configuration setting information 35 of the connected input / output unit 50 is set and stored in the RAM 33 of the control device 102. A control program (sequence control program) 34 for controlling the sequence of the output unit 50 is stored. The stored configuration setting information 35 is transferred to the program creation support apparatus 100 and stored in the RAM 5 as the configuration setting information 7 of the input / output unit. The processor 1 of the program creation support apparatus 100 obtains the extracted information obtained by extracting the input / output signal information for each input / output unit from the configuration setting information 7 of the input / output unit, and uses the input / output signal information of the extracted information as the target program. An input / output unit simulation program (target program) 11 is created in addition to the source code template program 10 for simulating the operation of the input / output unit, which is generation information. The input / output unit simulation program (target program) 11 thus created by the program creation support device 100 is transferred to the input / output unit simulation device 101 and stored in the RAM 22 as the input / output unit simulation program (target program) 23. .

入出力ユニットシミュレーション装置101は、この格納された入出力ユニットシミュレーションプログラム(対象プログラム)23を実行すると共に、制御装置102が、格納されているシーケンス制御プログラム34を実行し、入出力ユニットシミュレーション装置101と制御装置102間で、すなわち、シーケンス制御プログラム34と入出力ユニットシミュレーションプログラム(対象プログラム)23との間で、信号の入出力を行うことによって、シーケンス制御プログラム34のシミュレーションが行われ、デバッグが行われることになる。   The input / output unit simulation device 101 executes the stored input / output unit simulation program (target program) 23, and the control device 102 executes the stored sequence control program 34, and the input / output unit simulation device 101 And the control device 102, that is, by inputting and outputting signals between the sequence control program 34 and the input / output unit simulation program (target program) 23, the sequence control program 34 is simulated and debugged. Will be done.

図3は、上述した制御装置102のRAM33に記憶されている入出力ユニットの構成設定情報を設定する画面の表示の一例である。
アドレス「X□□□□」、「Y□□□□」は、信号メモリ38に記憶する信号のアドレスを指すものであり、「X□□□□」は、入出力ユニット50から制御装置102に入力される入力信号が記憶されるアドレスを意味し(Xが入力信号を意味する)、「Y□□□□」は、制御装置102から入出力ユニット50に出力される出力信号が記憶されるアドレスを意味する(Yが出力信号を意味する)。
FIG. 3 is an example of a screen display for setting the configuration setting information of the input / output unit stored in the RAM 33 of the control device 102 described above.
The addresses “X □□□□” and “Y □□□□” indicate the addresses of signals stored in the signal memory 38, and “X □□□□” indicates that the input / output unit 50 to the control device 102. Means the address where the input signal input to is stored (X means the input signal), and “Y □□□□” stores the output signal output from the control device 102 to the input / output unit 50 (Y means an output signal).

これらアドレスに対して、ハードウエアにおける接続位置を示す「グループ」、「ベース」、「スロット」が設定され記憶されると共に、入力/出力バイト数を表す割付名称が設定入力され、構成設定情報35として記憶されている。   For these addresses, “group”, “base”, and “slot” indicating the connection position in the hardware are set and stored, and an assigned name indicating the number of input / output bytes is set and input, and the configuration setting information 35 Is remembered as

プログラム作成支援装置100は、制御装置102のRAM33に記憶された構成設定情報35を読み出し、RAM5内に構成設定情報7として記憶する。
対象プログラム(入出力ユニットシミュレーションプログラム)11を作成する上で、 機械的な接続位置を示す情報の「グループ」、「ベース」、「スロット」は必要のない情報であることから、この構成設定情報7からこれらの情報は抽出せず、入出力信号情報である入力アドレス「X□□□□」、出力アドレス「Y□□□□」を入出力ユニット名毎に抽出する。
The program creation support device 100 reads the configuration setting information 35 stored in the RAM 33 of the control device 102 and stores it in the RAM 5 as the configuration setting information 7.
In creating the target program (input / output unit simulation program) 11, since the “group”, “base”, and “slot” of the information indicating the mechanical connection position are unnecessary information, this configuration setting information These information is not extracted from 7, but input address “X □□□□” and output address “Y □□□□”, which are input / output signal information, are extracted for each input / output unit name.

図4は、この抽出情報の説明図である。入出力ユニット名は、構成設定情報7として記憶された割付名称によって判別して決める。図3、図4に示す例では、図3に示す構成設定情報おいて、入力アドレス「X□□□□」に対して設定されている割付名称「CM03I」と出力アドレス「Y□□□□」に対して設定されている割付名称「CM02O」の組が1つの入出力ユニットであり、これを図4ではI/OユニットAと表している。同様に、割付名称「CM06I」と「CM04O」の組をI/OユニットBとして抽出し、各入出力ユニットの入力アドレス「X□□□□」、出力アドレス「Y□□□□」を抽出している。   FIG. 4 is an explanatory diagram of the extracted information. The input / output unit name is determined and determined by the assigned name stored as the configuration setting information 7. In the example shown in FIGS. 3 and 4, in the configuration setting information shown in FIG. 3, the assigned name “CM03I” set for the input address “X □□□□” and the output address “Y □□□□”. A set of assigned names “CM02O” set for “” is one input / output unit, which is represented as I / O unit A in FIG. Similarly, the combination of assigned names “CM06I” and “CM04O” is extracted as I / O unit B, and the input address “X □□□□” and output address “Y □□□□” of each input / output unit are extracted. is doing.

図5は、予め設定されている対象プログラム生成情報10の説明図である。この対象プログラム生成情報10は、ソースコードで作成された入出力ユニットの動作をシミュレーションする雛型プログラムである。図5(a)は、ファンクションブロックプログラムの例であり、図5(b)は、ラダープログラムの例である。これらの対象プログラム生成情報10は、入出力ユニット毎にその入出力ユニットに入力される入力信号の応じて出力信号を出力する動作のシミュレーションプログラムの雛型プログラムとして、プログラム作成支援装置100に予め格納されている。   FIG. 5 is an explanatory diagram of the target program generation information 10 set in advance. The target program generation information 10 is a template program for simulating the operation of the input / output unit created by the source code. FIG. 5A is an example of a function block program, and FIG. 5B is an example of a ladder program. The target program generation information 10 is stored in advance in the program creation support apparatus 100 as a template program of an operation simulation program that outputs an output signal in response to an input signal input to the input / output unit for each input / output unit. Has been.

各入出力ユニットの雛型に対して、図4に示した抽出情報における対応するI/Oユニット名の入力アドレス、出力アドレスを割り当てる。この場合、入力アドレス「X□□□□」に記憶される信号は、制御装置102に入力される信号を意味することから、入出力ユニットにとっては、出力信号を意味する。また、出力アドレス「Y□□□□」に記憶される信号は、制御装置102から入出力ユニットに出力される信号を意味することから、入出力ユニット50にとっては、入力信号を意味することになる。   The input address and output address of the corresponding I / O unit name in the extracted information shown in FIG. 4 are assigned to each input / output unit template. In this case, since the signal stored in the input address “X □□□□” means a signal input to the control device 102, it means an output signal for the input / output unit. Further, since the signal stored in the output address “Y □□□□” means a signal output from the control device 102 to the input / output unit, the input / output unit 50 means an input signal. Become.

そこで、図6に示すように、出力アドレス「Y□□□□」が入出力ユニットの雛型の入力部にセットされ、入力アドレス「X□□□□」が入出力ユニットの雛型の出力部にセットされることになる。図6に示す例では、I/OユニットA、Bの雛型に図4の抽出情報を付加して、入出力ユニットA、Bの対象プログラム(入出力ユニットシミュレーションプログラム)がソースコードで作成された状態を示している。   Therefore, as shown in FIG. 6, the output address “Y □□□□” is set in the input section of the input / output unit template, and the input address “X □□□□” is output in the input / output unit template. Will be set in the department. In the example shown in FIG. 6, the extraction information of FIG. 4 is added to the templates of I / O units A and B, and the target program (input / output unit simulation program) of input / output units A and B is created in source code. Shows the state.

図7は、プログラム作成支援装置100が実行する対象プログラム(入出力ユニットシミュレーションプログラム)作成処理のアルゴリズムを示すフローチャートである。対象プログラム作成指令が入力されると、プログラム作成支援装置100のプロセッサ1は、この図7に示す処理を実行開始する。なお、すでに制御装置102に設定記憶されている入出力ユニットの構成設定情報35は、プログラム作成支援装置100のRAM5内に取り込まれ構成設定情報7として記憶されているものとする。   FIG. 7 is a flowchart showing an algorithm for creating a target program (input / output unit simulation program) executed by the program creation support apparatus 100. When the target program creation command is input, the processor 1 of the program creation support apparatus 100 starts executing the processing shown in FIG. It is assumed that the configuration setting information 35 of the input / output unit already set and stored in the control device 102 is taken into the RAM 5 of the program creation support device 100 and stored as the configuration setting information 7.

まず、構成設定情報7より図4に示すように、入出力ユニット名毎の入出力信号情報(入力アドレス、出力アドレス)を抽出する(ステップa1)。次に、入出力ユニット名毎の入出力信号情報をそれぞれ対応する入出力ユニットをシミュレーションするプログラムである雛型プログラムに適用し、出力アドレスを入出力ユニットの雛型の入力部に、入力アドレスを雛型の出力部にセットし、入出力ユニット毎の入出力シミュレーションプログラムを完成させる(ステップa2)。   First, as shown in FIG. 4, input / output signal information (input address, output address) for each input / output unit name is extracted from the configuration setting information 7 (step a1). Next, the input / output signal information for each input / output unit name is applied to the template program that simulates the corresponding input / output unit, and the output address is input to the input unit of the input / output unit template. An input / output simulation program for each input / output unit is completed by setting in the template output section (step a2).

こうして作成された入出力ユニット毎の入出力シミュレーションプログラムを、入出力ユニットシミュレーション装置101に転送し(ステップa3)、この対象プログラム(入出力ユニットシミュレーションプログラム)作成処理は終了する。   The input / output simulation program for each input / output unit thus created is transferred to the input / output unit simulation apparatus 101 (step a3), and this target program (input / output unit simulation program) creation processing is terminated.

こうして、転送された対象プログラム(入出力ユニットシミュレーションプログラム)23を、入出力ユニットシミュレーション装置101が実行すると共に、制御装置102が制御プログラム34を実行し、この制御プログラムのシミュレーションを行い従来と同様に、制御プログラムのデバッグを行うことになる。   In this way, the transferred target program (input / output unit simulation program) 23 is executed by the input / output unit simulation apparatus 101 and the control apparatus 102 executes the control program 34 to simulate the control program and perform the same as in the conventional case. The control program will be debugged.

なお、上述した実施形態では、入出力ユニットの構成設定情報より入出力信号情報を抽出し、図4に示したような抽出情報を作成する形態を説明したが、図3に示す入出力ユニットの構成設定情報より入出力信号情報を抽出しながら、この入出力信号情報を、図5に示すように対象プログラム生成情報(雛型プログラム)に付加して対象プログラム(入出力ユニットシミュレーションプログラム)を作成してもよいことはもちろんである。   In the above-described embodiment, the input / output signal information is extracted from the configuration setting information of the input / output unit, and the extraction information as shown in FIG. 4 is created. While extracting the input / output signal information from the configuration setting information, this input / output signal information is added to the target program generation information (template program) as shown in FIG. 5 to create the target program (input / output unit simulation program). Of course, you may do.

本発明の一実施形態の全体要部構成図で、プログラム作成支援装置、制御装置、入出力ユニットシミュレーション装置の要部ブロック図である。It is a whole principal part block diagram of one Embodiment of this invention, and is a principal part block diagram of a program creation assistance apparatus, a control apparatus, and an input / output unit simulation apparatus. 同実施形態における、入出力ユニットシミュレーションプログラム(対象プログラム)作成を説明するブロック図である。It is a block diagram explaining the input-output unit simulation program (target program) creation in the same embodiment. 同実施形態における入出力ユニットの構成設定情報を設定する画面の表示した一例である。It is an example which displayed the screen which sets the configuration setting information of the input / output unit in the embodiment. 同実施形態における抽出情報の説明図である。It is explanatory drawing of the extraction information in the embodiment. 同実施形態における対象プログラム生成情報(雛型プログラム)の説明図である。It is explanatory drawing of the object program production | generation information (template program) in the embodiment. 同実施形態における作成された対象プログラム(入出力ユニットシミュレーションプログラム)の例である。It is an example of the object program (input / output unit simulation program) created in the embodiment. 同実施形態におけるプログラム作成支援装置が実行する対象プログラム作成処理のアルゴリズムを示すフローチャートである。It is a flowchart which shows the algorithm of the target program creation process which the program creation assistance apparatus in the embodiment performs.

符号の説明Explanation of symbols

100 プログラム作成支援装置
101 入出力ユニットシミュレーション装置
102 制御装置
DESCRIPTION OF SYMBOLS 100 Program creation support apparatus 101 Input / output unit simulation apparatus 102 Control apparatus

Claims (4)

シーケンス制御を行う制御装置のシーケンス制御プログラムを、入出力ユニットのシミュレーションプログラムを用いてシミュレーションを行うための入出力ユニットのシミュレーションプログラムの作成を支援するプログラム作成支援装置であって、
前記制御装置に設定記憶されている該制御装置に接続する入出力ユニットの構成設定情報を読み取る手段と、
予め設定され、入出力ユニットのシミュレーションを行う入出力ユニット毎のプログラムの生成情報を記憶する記憶手段と、
読み取った前記入出力ユニットの構成設定情報から、入出力ユニット毎にその入出力信号アドレスを抽出し、対象とする入出力ユニットのプログラムの生成情報の入力部に前記入出力信号情報の出力信号アドレスを、出力部に前記入出力信号情報の入力信号アドレスを付加して、入出力ユニットシミュレーションを行う対象プログラムを作成する対象プログラム作成手段を備えることを特徴とするプログラム作成支援装置。
A program creation support device that supports creation of a simulation program for an input / output unit for performing a simulation using a simulation program for an input / output unit, the sequence control program of a control device that performs sequence control,
Means for reading configuration setting information of an input / output unit connected to the control device stored in the control device;
Storage means for storing program generation information for each input / output unit that is preset and performs simulation of the input / output unit;
The input / output signal address is extracted for each input / output unit from the read configuration setting information of the input / output unit, and the output signal address of the input / output signal information is input to the generation information of the program of the target input / output unit. A program creation support apparatus comprising target program creation means for creating a target program for performing input / output unit simulation by adding an input signal address of the input / output signal information to an output unit.
前記対象プログラム作成手段は、前記構成設定情報から入出力ユニット毎に入出力信号アドレスを抽出した抽出情報を作成し、該抽出情報に基づいて対象プログラムを作成する請求項1に記載のプログラム作成支援装置。   The program creation support according to claim 1, wherein the target program creation unit creates extraction information obtained by extracting an input / output signal address for each input / output unit from the configuration setting information, and creates the target program based on the extraction information. apparatus. 前記対象プログラムの生成情報は、入出力ユニットシミュレーションプログラムのソースコードの雛型プログラムであり、対象プログラムは入出力ユニットシミュレーションプログラムのソースコードであることを特徴とする請求項1に記載のプログラム作成支援装置。   The program creation support according to claim 1, wherein the generation information of the target program is a template program of a source code of an input / output unit simulation program, and the target program is a source code of an input / output unit simulation program. apparatus. 前記入出力ユニットシミュレーションプログラムのソースコードの雛型プログラムおよびソースコードは、ファンクションブロックで記述したプログラムまたはラダーで記述したシーケンスプログラムであることを特徴とする請求項3に記載のプログラム作成支援装置。   4. The program creation support apparatus according to claim 3, wherein the template program and the source code of the source code of the input / output unit simulation program are a program described by function blocks or a sequence program described by ladder.
JP2006351535A 2006-12-27 2006-12-27 Program creation support device Pending JP2008165324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006351535A JP2008165324A (en) 2006-12-27 2006-12-27 Program creation support device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006351535A JP2008165324A (en) 2006-12-27 2006-12-27 Program creation support device

Publications (1)

Publication Number Publication Date
JP2008165324A true JP2008165324A (en) 2008-07-17

Family

ID=39694791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006351535A Pending JP2008165324A (en) 2006-12-27 2006-12-27 Program creation support device

Country Status (1)

Country Link
JP (1) JP2008165324A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010102475A (en) * 2008-10-23 2010-05-06 Mitsubishi Electric Corp Special unit simulator manufacturing device and programmable controller simulator
WO2015030095A1 (en) * 2013-08-29 2015-03-05 オムロン株式会社 Simulation device and simulation program
EP2961061A1 (en) * 2014-06-27 2015-12-30 Omron Corporation Information processing apparatus, information processing method, and program
CN106681275A (en) * 2015-11-05 2017-05-17 中国科学院沈阳计算技术研究所有限公司 Prospective prefetching method of numerical control processing program segment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010102475A (en) * 2008-10-23 2010-05-06 Mitsubishi Electric Corp Special unit simulator manufacturing device and programmable controller simulator
WO2015030095A1 (en) * 2013-08-29 2015-03-05 オムロン株式会社 Simulation device and simulation program
JP2015046082A (en) * 2013-08-29 2015-03-12 オムロン株式会社 Simulation device and simulation program
EP2961061A1 (en) * 2014-06-27 2015-12-30 Omron Corporation Information processing apparatus, information processing method, and program
CN106681275A (en) * 2015-11-05 2017-05-17 中国科学院沈阳计算技术研究所有限公司 Prospective prefetching method of numerical control processing program segment
CN106681275B (en) * 2015-11-05 2019-04-09 中国科学院沈阳计算技术研究所有限公司 A kind of prediction forecasting method of nc program section

Similar Documents

Publication Publication Date Title
JP2008165399A (en) Simulation data generation support device
JP6051546B2 (en) Information processing apparatus, simulation method, and program
US20050102054A1 (en) Method and system for simulating processing of a workpiece with a machine tool
TW201606463A (en) Engineering tool, program editing device and program editing system
JP6891838B2 (en) Development support equipment, development support methods, and development support programs
TWI661358B (en) Simulation device
JP2008165324A (en) Program creation support device
JP2008299068A (en) Operation training system and operation training method
JP2008142788A (en) Operation program preparation supporting method and operation program preparing device
KR101706029B1 (en) System-setup assistance apparatus
JP2007102632A (en) Simulation device
JPH10143221A (en) System and method for supporting development of equipment control program
JP2018020406A (en) Simulation device
JP4511418B2 (en) Method for debugging teaching apparatus program
JP2006163657A (en) Playback simulator
JP2015187860A (en) Information processor, information processing method, and program
JP4301976B2 (en) Programming tools
JP2008033572A (en) Screen generating apparatus, screen generating program and recording medium for recording this program
KR20190071987A (en) Apparatus and method for controlling terminal using block program
JP2018156214A (en) SFC program creation support apparatus, SFC program creation support program, and SFC program creation method
JP2009244952A (en) Motion controller, simulation method, and simulation program
JP2009157534A (en) Programming support system, its programmable controller support device, and programmable indicator support device
JP2018055654A (en) Information processing device, and information processing method and program
WO2020031903A1 (en) Support device and support program
JPH1115697A (en) Debugging method for program type display device