JP2007172128A - I/o simulator device - Google Patents

I/o simulator device Download PDF

Info

Publication number
JP2007172128A
JP2007172128A JP2005366424A JP2005366424A JP2007172128A JP 2007172128 A JP2007172128 A JP 2007172128A JP 2005366424 A JP2005366424 A JP 2005366424A JP 2005366424 A JP2005366424 A JP 2005366424A JP 2007172128 A JP2007172128 A JP 2007172128A
Authority
JP
Japan
Prior art keywords
plc
program
address
input
communication
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
JP2005366424A
Other languages
Japanese (ja)
Inventor
Minoru Oda
稔 小田
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2005366424A priority Critical patent/JP2007172128A/en
Publication of JP2007172128A publication Critical patent/JP2007172128A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an I/O simulator device using personal computer, in which the man-hour for simulation preparation of a sequence program of PLC (programmable logic controller) can be reduced, and a simulation system can be easily established without any technical knowledge for personal computer. <P>SOLUTION: The I/O simulator device 1 for changing the input and output state of the PCL 11 for simulating the sequence program of the PLC 11 comprises a program automatic formation processing part 5 for automatically generating two programs for converting an I/O address to be changed in input and output state and an I/O address used for communication of the I/O simulator device 1 with the PLC 11 and for changing the input and output state of the I/O to be changed in output and input state, and downloading these programs to a program area 12 of the PLC 11. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、PLC(Programmable Logic Controller)のシーケンスプログラムをシミュレーションするためにPLCの入出力状態を変化させる、パソコンを使用したI/Oシミュレータ装置に関する。   The present invention relates to an I / O simulator device using a personal computer that changes the input / output state of a PLC in order to simulate a PLC (Programmable Logic Controller) sequence program.

従来のパソコンを使用したPLC用のI/Oシミュレータ装置は、市販のHMI(Human Machine Interface)ツールを用いて、パソコン側で、入出力状態を変化させたいI/Oの入出力操作と通信のためのプログラムを作成し、入出力操作の結果を通信でPLCへ送る。また、パソコンとPLCを通信させるためにPLCに通信用ソフトや通信のためのパラメータ割付を作成し、また、入出力状態を変化させるためのプログラムをPLCもしくはパソコンに作成する。また、入出力状態を変化させたいI/Oアドレスは、通常パソコン、PLC間の入出力アドレスと同一に出来ないため、入出力アドレスを変換するPLCプログラムを作成し、動作させる。
また、市販のHMIツールの代わりに専用のパソコンプログラムを使用しているものもある。(例えば、特許文献1参照)
A conventional I / O simulator device for PLC using a personal computer uses a commercially available HMI (Human Machine Interface) tool to perform input / output operations and communication of I / O whose input / output state is to be changed on the personal computer side. A program is created and the result of the input / output operation is sent to the PLC by communication. Also, in order to make the personal computer and the PLC communicate, communication software and communication parameter assignment are created in the PLC, and a program for changing the input / output state is created in the PLC or the personal computer. Also, since the I / O address whose input / output state is to be changed cannot normally be the same as the input / output address between the personal computer and the PLC, a PLC program for converting the input / output address is created and operated.
Some use a dedicated personal computer program instead of a commercially available HMI tool. (For example, see Patent Document 1)

図6は、従来のI/Oシミュレータ装置と試験対象のPLCのデータ通信に関するブロック図である。図6において、101はI/Oシミュレータ装置であり、ハードウエアとして汎用のパソコンを使用する。102はI/Oシミュレータ部で、シミュレーションするためのソフトウエアで構成される。ここに市販のHMIツールを使用し、操作と通信のためのHMIプログラムを作成し、このプログラムを動作させることにより、入出力状態を変化させたいI/Oの入出力の操作を画面処理部103で行い、その結果を通信制御部104から試験対象のPLC105に送信する。試験対象のPLC105は、プログラムエリア106にI/Oシミュレータ装置101との通信処理用の通信処理プログラム107と、入出力状態を変化させたいI/OアドレスとI/Oシミュレータ装置101がPLC105と通信するときのI/Oアドレスとを変換するPLCプログラムと、I/Oの入出力の状態を変化させるためのプログラムとから構成されるI/Oアドレス変換、状態変化プログラム108と、シミュレーション対象プログラム109を持つ。通信処理プログラム107、I/Oアドレス変換、状態変化プログラム108は、シミュレーション対象プログラム109を試験するために用いる。
このように、従来のパソコンを使用したI/Oシミュレータ装置は、I/Oの入出力操作用と通信用のパソコンプログラム、パソコンとPLC間通信用のPLCプログラム、I/Oの入出力状態を変化させるためのPLCプログラム、パソコン、PLC間の入出力アドレスを変換するプログラムを設計者が作成することにより機能するのである。
特開平9−258809号公報
FIG. 6 is a block diagram relating to data communication between a conventional I / O simulator device and a PLC to be tested. In FIG. 6, reference numeral 101 denotes an I / O simulator device, which uses a general-purpose personal computer as hardware. Reference numeral 102 denotes an I / O simulator unit which is configured by software for simulation. Here, a commercially available HMI tool is used to create an HMI program for operation and communication, and by operating this program, an input / output operation of an I / O whose input / output state is to be changed is displayed on the screen processing unit 103. And the result is transmitted from the communication control unit 104 to the PLC 105 to be tested. The test target PLC 105 includes a communication processing program 107 for communication processing with the I / O simulator apparatus 101 in the program area 106, an I / O address whose I / O state is to be changed, and the I / O simulator apparatus 101 communicated with the PLC 105. I / O address conversion, state change program 108, and simulation target program 109, which are composed of a PLC program that converts the I / O address at the time of input / output, and a program for changing the input / output state of the I / O have. The communication processing program 107, the I / O address conversion, and the state change program 108 are used for testing the simulation target program 109.
In this way, the conventional I / O simulator device using a personal computer has a personal computer program for I / O input / output operation and a communication, a PLC program for communication between a personal computer and a PLC, and an I / O input / output state. It functions by the designer creating a PLC program for changing, a program for converting input / output addresses between the personal computer and the PLC.
Japanese Patent Laid-Open No. 9-258809

従来のパソコンを使用したI/Oシミュレータ装置は、複数のシミュレーション用プログラムをパソコンとPLCに作成する必要がありPLCのシーケンスプログラムのシミュレーション準備に多大な作業工数を必要とするという問題があった。
また、試験対象のI/O構成が変わるとパソコン、PLCのプログラムを変更する必要が発生する。このプラグラムを変更するためにはパソコンとPLC双方の専門知識が必要となり、プログラム変更後はシミュレータ装置の試験から開始しなくてはならない。
本発明はこのような問題点に鑑みてなされたものであり、PLCのシーケンスプログラムのシミュレーション準備工数を削減するとともに、パソコンの専門知識が無くとも容易にシミュレーションシステムの構築が可能なパソコンを使用したI/Oシミュレータ装置を提供することを目的とする。
A conventional I / O simulator apparatus using a personal computer has a problem in that a plurality of simulation programs need to be created in the personal computer and the PLC, and a large number of work steps are required for preparing a PLC sequence program for simulation.
Further, when the I / O configuration to be tested changes, it is necessary to change the personal computer and PLC programs. In order to change this program, specialized knowledge of both the personal computer and the PLC is required, and after changing the program, it is necessary to start with a test of the simulator device.
The present invention has been made in view of such problems, and uses a personal computer that can reduce the number of steps required to prepare a PLC sequence program for simulation and can easily construct a simulation system without specialized knowledge of the personal computer. An object is to provide an I / O simulator device.

上記問題を解決するため、本発明は、次のように構成したのである。
請求項1に記載の発明は、表示する画面の処理を行う画面処理部と、PLCと通信を行うための通信制御部を備え、前記PLCのシーケンスプログラムをシミュレーションするために前記PLCの入出力状態を変化させるI/Oシミュレータ装置において、入出力状態を変化させたいI/Oアドレスと前記I/Oシミュレータ装置が前記PLCと通信するときに使用するI/Oアドレスとを変換するプログラムと前記入出力状態を変化させたいI/Oの入出力の状態を変化させるプログラムの2つのプログラムを自動的に作成し前記PLCのプログラムエリアにダウンロードするプログラム自動作成処理部を備えることを特徴とするものである。
また、請求項2に記載の発明は、請求項1に記載の発明において、操作/表示対象のI/Oアドレスが入力されると、前記PLCに予め登録されているI/Oアドレスのコメント情報を取得し、前記I/Oシミュレータ装置の画面に表示する画面処理部を備えることを特徴とするものである。
また、請求項3に記載の発明は、請求項1に記載の発明において、前記I/Oシミュレータ装置と前記PLC相互の通信に必要なプログラムを前記PLCのプログラムエリアにダウンロードする通信プログラムダウンロード処理部を備えることを特徴とするものである。
In order to solve the above problem, the present invention is configured as follows.
The invention according to claim 1 includes a screen processing unit for processing a screen to be displayed and a communication control unit for communicating with the PLC, and the input / output state of the PLC for simulating the sequence program of the PLC In the I / O simulator device that changes the I / O address, the program that converts the I / O address whose I / O state is to be changed and the I / O address used when the I / O simulator device communicates with the PLC and the input An automatic program creation processing unit is provided for automatically creating two programs for changing the input / output state of an I / O whose output state is to be changed and downloading the program to the program area of the PLC. is there.
Further, in the invention described in claim 2, in the invention described in claim 1, when an I / O address to be operated / displayed is input, comment information of an I / O address registered in advance in the PLC. Is obtained, and a screen processing unit is provided for displaying on the screen of the I / O simulator device.
The invention according to claim 3 is the communication program download processing unit according to claim 1, which downloads a program required for communication between the I / O simulator device and the PLC to a program area of the PLC. It is characterized by providing.

請求項1に記載の発明によると、入出力状態を変化させたいI/OアドレスとI/Oシミュレータ装置がPLCと通信するときに使用するI/Oアドレスを変換するプログラムと入出力状態を変化させたいI/Oの入出力の状態を変化させるプログラムの2つのプログラムを自動的に作成しPLCのプログラムエリアにダウンロードするため、PLCのシーケンスプログラムのシミュレーションの準備工数を削減するとともに、パソコンの専門知識が無くとも容易にシミュレーションシステムの構築が可能となる。
また、請求項2に記載の発明によると、操作/表示対象のI/Oアドレスが入力されると、PLCに予め登録されているI/Oアドレスのコメント情報を取得し、I/Oシミュレータ装置の画面に表示するためシミュレーション準備時間を削減することができる。
また、請求項3に記載の発明によると、I/Oシミュレータ装置とPLC相互の通信に必要なプログラムをPLCのプログラムエリアにダウンロードするため、パソコンの専門知識が無くとも容易にシミュレーションシステムの構築が可能となる。
According to the first aspect of the present invention, the program for converting the I / O address to be changed in the input / output state and the I / O address used when the I / O simulator device communicates with the PLC and the input / output state are changed. Two programs, the program that changes the input / output status of the I / O you want to make, are automatically created and downloaded to the PLC program area, reducing the number of man-hours required for simulation of PLC sequence programs and specializing in personal computers A simulation system can be easily constructed without knowledge.
According to the second aspect of the present invention, when the I / O address to be operated / displayed is input, the comment information of the I / O address registered in advance in the PLC is acquired, and the I / O simulator device Simulation preparation time can be reduced.
According to the third aspect of the present invention, since a program required for communication between the I / O simulator device and the PLC is downloaded to the PLC program area, it is possible to easily construct a simulation system even without the expertise of a personal computer. It becomes possible.

以下、本発明の実施の形態について図を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明のI/Oシミュレータ装置と試験対象PLCのデータ通信に関するブロック図である。図において、1はI/Oシミュレータ装置であり、ハードウエアとして汎用のパソコンを使用する。2はI/Oシミュレータ部で、シミュレーションするためのソフトウエアで構成される。その中に画面処理を行う画面処理部3、プログラムの自動作成や通信、ファイルの制御を行うエンジン制御部4、試験対象のPLC11と通信でやり取りを行うための通信制御部8、I/Oシミュレータ装置1とPLC11の通信に使用する通信処理プログラム9がある。エンジン制御部4には、PLC11のプログラムを自動的に作成するプログラム自動作成処理部5、PLC11のプログラムエリア12に通信処理プログラム9をダウンロードする通信プログラムダウンロード処理部6、設定値やシミュレーション結果のデータのファイル管理を行うファイル管理部7がある。   FIG. 1 is a block diagram relating to data communication between the I / O simulator apparatus of the present invention and a test target PLC. In the figure, reference numeral 1 denotes an I / O simulator device, which uses a general-purpose personal computer as hardware. Reference numeral 2 denotes an I / O simulator unit which is configured by software for simulation. Among them, a screen processing unit 3 that performs screen processing, an engine control unit 4 that performs automatic program creation and communication, and file control, a communication control unit 8 that communicates with the PLC 11 to be tested, and an I / O simulator There is a communication processing program 9 used for communication between the apparatus 1 and the PLC 11. The engine control unit 4 includes a program automatic creation processing unit 5 that automatically creates a program of the PLC 11, a communication program download processing unit 6 that downloads the communication processing program 9 to the program area 12 of the PLC 11, and data of setting values and simulation results There is a file management unit 7 that performs file management.

11は試験対象のPLCで、プログラムエリア12にI/Oシミュレータ装置1との通信処理用の通信処理プログラム13と、入出力状態を変化させたいI/OアドレスとI/Oシミュレータ装置1がPLC11と通信するときに使用するI/Oアドレスとを変換するPLCプログラムと、I/Oの入出力の状態を変化させるためのプログラムとの2つのプログラムから構成されるI/Oアドレス変換、状態変化プログラム14と、シミュレーション対象プログラム15とコメントファイル16を持つ。通信処理プログラム13、I/Oアドレス変換、状態変化プログラム14は、シミュレーション対象プログラム15を試験するために用いる。   11 is a PLC to be tested. In the program area 12, a communication processing program 13 for communication processing with the I / O simulator apparatus 1, an I / O address whose input / output state is to be changed, and the I / O simulator apparatus 1 are connected to the PLC 11. I / O address conversion consisting of two programs: a PLC program that converts I / O addresses used when communicating with I / O, and a program that changes the I / O input / output state, state change It has a program 14, a simulation target program 15, and a comment file 16. The communication processing program 13, the I / O address conversion, and the state change program 14 are used for testing the simulation target program 15.

本発明が従来の技術と異なる点は、I/Oシミュレータ部2に、プログラム自動作成処理部5と通信プログラムダウンロード処理部6を設けた点であり、操作者が、画面処理部3で処理される画面上にI/Oアドレスと状態を変化させたいパターンを設定し、登録情報の保存&ダウンロードキーをクリックすることにより、I/Oアドレス変換、状態変化プログラム14のプログラムを自動的に作成し、PLC11のプログラムエリア12にダウンロードする。また、I/Oシミュレーション装置1とPLC11相互の通信に必要な通信処理プログラム9をPLC11のプログラムエリア12にダウンロードする。   The present invention is different from the prior art in that an automatic program creation processing unit 5 and a communication program download processing unit 6 are provided in the I / O simulator unit 2, and an operator is processed by the screen processing unit 3. Set the I / O address and the pattern you want to change the status on, and click the save & download key of the registration information to automatically create the I / O address conversion and status change program 14 program. , Download to the program area 12 of the PLC 11. Further, the communication processing program 9 necessary for communication between the I / O simulation apparatus 1 and the PLC 11 is downloaded to the program area 12 of the PLC 11.

図2は、I/Oシミュレータ装置1のI/Oアドレスと入出力状態を変化させたいパターンを設定する画面の例である。図2を使用して、以下に、I/Oアドレス変換、状態変化プログラム14のプログラムを作成する手順を説明する。
まず、作業者がI/Oアドレス入力部に操作/表示対象のI/Oアドレスを入力すると、コメント欄にコメント情報を表示する。この詳細を以下に説明する。
PLC11のプログラムエリア12にはコメントファイル16がありこのコメントファイル16内に操作/表示対象のI/Oアドレスのコメント情報が格納されている。I/Oシミュレータ装置1のファイル管理部7にこのコメント情報を予め転送しておき、図2のI/Oアドレス入力部に操作/表示対象のI/Oアドレスを入力すると、I/Oシミュレータ装置1の画面処理部3からエンジン処理部4のファイル管理部4へコメント要求を出し、ファイル管理部7のコメント情報をサーチする。このサーチ結果を画面処理部3へ送信し、画面処理部3は図2に示すコメント欄にコメント情報を表示する。
これによりコメント情報の入力作業が省略でき工数の削減を図ることができる。
FIG. 2 shows an example of a screen for setting a pattern for changing the I / O address and input / output state of the I / O simulator apparatus 1. The procedure for creating the I / O address conversion and state change program 14 will be described below with reference to FIG.
First, when an operator inputs an I / O address to be operated / displayed in an I / O address input unit, comment information is displayed in a comment field. Details thereof will be described below.
A comment file 16 is provided in the program area 12 of the PLC 11, and comment information of an I / O address to be operated / displayed is stored in the comment file 16. When this comment information is transferred in advance to the file management section 7 of the I / O simulator apparatus 1 and the I / O address to be operated / displayed is input to the I / O address input section of FIG. 2, the I / O simulator apparatus A comment request is issued from the first screen processing unit 3 to the file management unit 4 of the engine processing unit 4 and the comment information of the file management unit 7 is searched. The search result is transmitted to the screen processing unit 3, and the screen processing unit 3 displays the comment information in the comment field shown in FIG.
Thereby, the input operation of comment information can be omitted, and the man-hour can be reduced.

次に、操作者は入出力状態を変化させたいパターンを画面より選択し図2のタイプ欄に登録する。具体的には、タイプ欄をマウスでクリックするとタイプパターン選択画面が表示され、この画面よりパターンを選択し登録する。   Next, the operator selects a pattern whose input / output state is to be changed from the screen and registers it in the type column of FIG. Specifically, when a type column is clicked with a mouse, a type pattern selection screen is displayed, from which a pattern is selected and registered.

次に、登録情報の保存&ダウンロードキーをクリックすることにより、プログラム自動作成処理部5が、図1のI/Oアドレス変換、状態変化プログラム14のプログラムを作成しダウンロードする。また、画面処理部3が、I/Oシミュレーション装置1とPLC11相互の通信に必要なプログラムをPLC11にダウンロードする。
図3はプログラム自動作成処理部5のフローチャート図である。作業者が図2のI/Oアドレス、タイプを入力し「保存&ダウンロード」にマウスを合わせクリックすると、図3のステップS1で、画面入力情報をI/Oシミュレータ装置1の図示しないハードディスクに記憶する。
次にステップS2で、タイプ設定に応じた図4に示すようなプログラムを、登録したI/Oアドレス分作成する。登録したI/Oアドレスが多い場合は1図面に入るプログラムの容量をオーバするため、ステップS3で、プログラム量が1画面に入るかどうかチェックし、もし入らない場合は、ステップS4で、複数の図面に分割して作成する。
そして、ステップS5で、作成したプログラムのコイル、接点のI/Oアドレスを割り付け、ステップS6で、I/Oシミュレータ装置1からPLC11へ送信、ダウンロードする。
Next, when the registration information storage & download key is clicked, the program automatic creation processing unit 5 creates and downloads the program of the I / O address conversion / state change program 14 of FIG. In addition, the screen processing unit 3 downloads a program necessary for communication between the I / O simulation apparatus 1 and the PLC 11 to the PLC 11.
FIG. 3 is a flowchart of the automatic program creation processing unit 5. When the operator inputs the I / O address and type in FIG. 2 and clicks “Save & Download” with the mouse, the screen input information is stored in the hard disk (not shown) of the I / O simulator device 1 in step S1 in FIG. To do.
Next, in step S2, a program as shown in FIG. 4 corresponding to the type setting is created for the registered I / O addresses. If there are a large number of registered I / O addresses, the capacity of the program entering one drawing will be exceeded, so in step S3 it is checked whether the program amount enters one screen. Create by dividing into drawings.
In step S5, the coil and contact I / O addresses of the created program are assigned, and in step S6, the I / O simulator apparatus 1 transmits and downloads them to the PLC 11.

以下に図2に示した各タイプの動作について説明する。
図2の1行目に登録されているタイプPBMはPush Button Memoryの略で、操作/表示部をマウスで1度クリックすると、登録したI/OアドレスIB0000をONさせるとともに、操作/表示部に動作状態がONであることを表示する。この場合、ONは黒い丸で表す。操作/表示部を再度クリックするとI/OアドレスIB0000をOFFさせ、操作/表示部に動作状態がOFFであることを表示する。この場合、OFFは白い丸で表す。
3行目に登録されているタイプPLは、Pilot Lampの略で、登録したI/OアドレスOB0002の状態がONであるかOFFであるかを操作/表示部に表示する。OB0002がONだと黒い丸になり、OFFだと白い丸になる。
また、4行目に登録されているタイプPBAはPush Button A接点の略で、操作/表示部をマウスでクリックしている間、登録したI/OアドレスIB000FをONさせさせる。クリックをやめるとI/OアドレスIB000FをOFFさせる。
The operation of each type shown in FIG. 2 will be described below.
The type PBM registered in the first line of FIG. 2 is an abbreviation of Push Button Memory. When the operation / display unit is clicked once with the mouse, the registered I / O address IB0000 is turned on and the operation / display unit is also displayed. Displays that the operating state is ON. In this case, ON is represented by a black circle. When the operation / display unit is clicked again, the I / O address IB0000 is turned off, and the operation / display unit displays that the operation state is OFF. In this case, OFF is represented by a white circle.
The type PL registered in the third line is an abbreviation for Pilot Lamp, and displays on the operation / display section whether the registered I / O address OB0002 is ON or OFF. When OB0002 is ON, it becomes a black circle, and when it is OFF, it becomes a white circle.
The type PBA registered in the fourth line is an abbreviation for Push Button A contact, and the registered I / O address IB000F is turned on while the operation / display unit is clicked with the mouse. When the click is stopped, the I / O address IB000F is turned off.

次に、自動作成されるI/Oアドレス変換、状態変化プログラムの例を説明する。
図4はタイプPBMを指定した場合に自動作成されるI/Oアドレス変換、状態変化プログラムの例である。このプログラムは、登録情報の保存&ダウンロードキーをクリックしてデータの保存とダウンロード操作を行うことによりプログラム自動作成処理部5で作成されPLC11にダウンロードされる。
Next, an example of automatically created I / O address conversion and state change program will be described.
FIG. 4 shows an example of an I / O address conversion and state change program automatically created when the type PBM is designated. This program is created by the program automatic creation processing unit 5 and downloaded to the PLC 11 by clicking the registration information save & download key to save and download data.

AはI/Oシミュレータ装置1からPLC11へ送信される操作情報のI/Oアドレスを持つ入力レジスタのリレー接点で、BはI/Oシミュレータ装置1に登録された操作対象のI/Oアドレスを持つ出力レジスタのリレーコイルで、CはI/Oシミュレータ装置1の操作/表示部に動作状態を表示させるためのPLC11からI/Oシミュレータ装置1へ送信されるI/Oアドレスを持つ出力レジスタのリレーコイルである。
また、D、E、はPLC内部レジスタの接点とコイルである。なお、ONP1、2は、On Pulse1、2の略で、I/Oアドレスの立ち上がりをとらえ、1スキャンだけ接点をONさせるものである。
A is a relay contact of an input register having an I / O address of operation information transmitted from the I / O simulator apparatus 1 to the PLC 11, and B is an I / O address of an operation target registered in the I / O simulator apparatus 1. C is an output register relay coil having an I / O address transmitted from the PLC 11 to the I / O simulator device 1 for displaying an operation state on the operation / display unit of the I / O simulator device 1. It is a relay coil.
D and E are contacts and coils of the PLC internal register. ONPs 1 and 2 are abbreviations of On Pulses 1 and 2, which catch the rising edge of the I / O address and turn on the contact for one scan.

ここで、接点AをONにすると、コイルEが1スキャンONしコイルB、CがONに状態変化し、それをメモリーする。またコイルB、CがONした状態で接点AをONにすると、コイルDが1スキャンONしコイルB、CがOFFに状態変化し、メモリーを解除する。すなわちマウスで操作/表示部を1度クリックすると、登録した出力I/OアドレスBをONさせるとともに、操作/表示部に動作状態を表示させるためI/Oシミュレータ装置1への操作アンサーの出力レジスタCをONさせる。操作/表示部を再度クリックすると出力I/OアドレスBをOFFさせ、操作/表示部にOFFの表示をさせるためI/Oシミュレータ装置1への操作アンサーの出力レジスタCをOFFさせる。   Here, when the contact A is turned on, the coil E is turned on for one scan, and the coils B and C are turned on and stored in memory. If the contact A is turned on while the coils B and C are turned on, the coil D is turned on for one scan, the coils B and C are turned off, and the memory is released. That is, when the operation / display unit is clicked once with the mouse, the registered output I / O address B is turned ON, and the operation answer output register to the I / O simulator device 1 is displayed to display the operation state on the operation / display unit. Turn C ON. When the operation / display unit is clicked again, the output I / O address B is turned off, and the output register C of the operation answer to the I / O simulator device 1 is turned off in order to cause the operation / display unit to display OFF.

ここで、I/Oシミュレータ装置1に登録された実際に操作したいI/OアドレスはBであるが、通常I/Oシミュレータ装置1とPLC11間の伝送系統と実際に操作したい伝送系統は異なるため、シミュレーション上はI/OアドレスはBに出来ない。
そのためにI/Oアドレス変換用のPLCプログラムが必要となり、I/Oシミュレータ装置1からPLC11へ送信されるI/OアドレスAのON、OFF状態により操作対象のI/Oアドレスを状態変化させるようにする。
この部分がI/Oアドレス変換用のPLCプログラムとなり、図4で示すプログラムはI/Oアドレス変換用プログラムと状態変化用プログラムをI/Oアドレス変換、状態変化プログラム14に設けた例となる。
このように、入出力状態を変化させたいI/OアドレスとI/Oシミュレータ装置とPLC間の通信のI/Oアドレスを変換するためのプログラムと、入出力状態を変化させたいI/Oの入出力の状態を変化させるためのプログラムをプログラム自動作成処理部5で自動的に作成するため、PLCシーケンスプログラムのシミュレーションの準備工数を削減するとともに、パソコンの専門知識が無くとも容易にシミュレーションシステムの構築が可能となるのである。
Here, the actual I / O address registered in the I / O simulator apparatus 1 and desired to be operated is B. However, the transmission system between the normal I / O simulator apparatus 1 and the PLC 11 and the transmission system actually operated are different. In simulation, the I / O address cannot be B.
Therefore, a PLC program for I / O address conversion is required, and the I / O address to be operated is changed in accordance with the ON / OFF state of the I / O address A transmitted from the I / O simulator apparatus 1 to the PLC 11. To.
This portion is a PLC program for I / O address conversion, and the program shown in FIG. 4 is an example in which an I / O address conversion program and a state change program are provided in the I / O address conversion and state change program 14.
As described above, the program for converting the I / O address whose I / O state is to be changed, the I / O address for communication between the I / O simulator device and the PLC, and the I / O whose I / O state is to be changed are Since the program for changing the input / output state is automatically created by the automatic program creation processing unit 5, the number of steps required for the simulation of the PLC sequence program is reduced, and the simulation system can be easily installed even without the expertise of a personal computer. It can be constructed.

次に、I/Oシミュレータ装置1とPLC11相互の通信に必要なプログラムのPLC11へのダウンロードについて説明する。
本装置では、I/Oシミュレータ装置1からPLC11のプログラムエリア12へプログラムをダウンロードで書き込むための通信と、画面での操作情報のI/Oシミュレータ装置1からPLC11へ送信し、操作アンサー表示のための情報をPLC11からI/Oシミュレータ装置1への送信するためのI/Oシミュレータ1とPLC11相互の通信の2種類の通信が必要である。
I/Oシミュレータ装置1からPLC11のプログラムエリア12へのダウンロードするときの通信はイーサネット(登録商標)回線を使用し、予めI/Oシミュレータ装置1用に準備されたプログラム作成・モニタ用のソフトウエアからなる専用ツールの通信機能を利用する。また、I/Oシミュレータ1とPLC11の相互の通信は、専用ツールと同じイーサネット(登録商標)回線を利用し、UDP(User Datagram Protocol)のプロトコルで伝送する。
このUDPによる動作を行うために、I/Oシミュレータ装置1とPLC11を結んだイーサネット(登録商標)伝送回線で、専用ツールの通信機能を利用し、UDPによる動作に必要な通信処理プログラム9を通信プログラムダウンロード処理部6がPLC11のプログラムエリア12にダウンロードする。具体的には、操作者が登録情報の保存&ダウンロードキーをクリックすることでダウンロードが行われる。
このダウンロードされた通信処理プログラム13を使用してI/Oシミュレータ装置1とPLC11相互の通信を行う。
Next, download of a program necessary for communication between the I / O simulator apparatus 1 and the PLC 11 to the PLC 11 will be described.
In this apparatus, communication for downloading and writing a program from the I / O simulator apparatus 1 to the program area 12 of the PLC 11 and transmission of operation information on the screen from the I / O simulator apparatus 1 to the PLC 11 are displayed for displaying an operation answer. Two types of communication, i.e., communication between the I / O simulator 1 and the PLC 11, for transmitting the above information from the PLC 11 to the I / O simulator device 1 is necessary.
Communication for downloading from the I / O simulator device 1 to the program area 12 of the PLC 11 uses an Ethernet (registered trademark) line, and software for program creation / monitoring prepared for the I / O simulator device 1 in advance. The communication function of the dedicated tool consisting of Further, the mutual communication between the I / O simulator 1 and the PLC 11 uses the same Ethernet (registered trademark) line as that of the dedicated tool, and is transmitted using a UDP (User Datagram Protocol) protocol.
In order to perform the operation by UDP, the communication processing program 9 necessary for the operation by UDP is communicated with the Ethernet (registered trademark) transmission line connecting the I / O simulator apparatus 1 and the PLC 11 using the communication function of the dedicated tool. The program download processing unit 6 downloads to the program area 12 of the PLC 11. Specifically, the download is performed when the operator clicks the save & download key for registration information.
Using the downloaded communication processing program 13, the I / O simulator apparatus 1 and the PLC 11 communicate with each other.

図5はUDPを使用した、I/Oシミュレータ装置1とPLC11との通信フロー図である。ステップS11〜ステップS16のマスタ側のプログラムはI/Oシミュレータ装置1に内蔵されているが、ステップS21〜ステップS26のスレーブ側プログラムはPLC11に内蔵されていない。このプログラムはI/Oシミュレータ装置1の中の通信処理プログラム9にあり、これを通信プログラムダウンロード処理部6がダウンロードするのである。
このためPLC11側の通信プログラム作成およびI/Oシミュレータ装置1側の通信プログラム作成や設定が省略でき、パソコンの専門知識が無くとも容易にシミュレーションシステムの構築が可能となる。
FIG. 5 is a communication flow diagram between the I / O simulator apparatus 1 and the PLC 11 using UDP. The master side programs in steps S11 to S16 are built in the I / O simulator apparatus 1, but the slave side programs in steps S21 to S26 are not built in the PLC 11. This program is in the communication processing program 9 in the I / O simulator device 1 and is downloaded by the communication program download processing unit 6.
For this reason, creation of a communication program on the PLC 11 side and creation and setting of a communication program on the I / O simulator apparatus 1 side can be omitted, and a simulation system can be easily constructed without the expertise of a personal computer.

I/Oシミュレータ装置は、プログラム作成・モニタ用の専用ツールと同じ通信回線で動作し、また容易に試験システムの構築が可能なので、フィールドで試運転中にI/O信号のモニターや強制ON、OFFを容易に行えるため、試運転支援ツールという用途にも適用できる。   The I / O simulator device operates on the same communication line as the dedicated tool for program creation and monitoring, and can easily build a test system, so I / O signal monitoring and forced ON / OFF during trial operation in the field Therefore, it can be applied to a test drive support tool.

本発明のI/Oシミュレータ装置と試験対象PLCのデータ通信に関するブロック図The block diagram regarding the data communication of the I / O simulator apparatus of this invention and test object PLC I/Oシミュレータ装置のI/Oアドレスと入出力状態を変化させたいパターンを設定する画面の例Example of a screen for setting a pattern to change the I / O address and input / output state of the I / O simulator device プログラム自動作成処理部のフローチャート図Flowchart diagram of the automatic program creation processing unit タイプPBMを指定した場合に自動作成されるI/Oアドレス変換、状態変化プログラムの例Example of I / O address conversion and state change program automatically created when type PBM is specified UDPを使用した、I/Oシミュレータ装置1とPLC11との通信フロー図Communication flow diagram between I / O simulator device 1 and PLC 11 using UDP 従来のI/Oシミュレータ装置と試験対象PLCのデータ通信に関するブロック図Block diagram related to data communication between conventional I / O simulator device and test subject PLC

符号の説明Explanation of symbols

1、101 I/Oシミュレータ装置
2、102 I/Oシュミレータ部
3、103 画面処理部
4 エンジン処理部
5 プログラム自動作成処理
6 通信プログラムダウンロード処理部
7 ファイル管理部
8、104 通信制御部
9、13、107 通信処理プログラム
11、105 PLC
12、106 プログラムエリア
14、108 I/Oアドレス変換、状態保持/変化プログラム
15、109 シミュレーション対象プログラム
16 コメントファイル
1, 101 I / O simulator device 2, 102 I / O simulator
3, 103 Screen processing unit 4 Engine processing unit
5 Automatic program creation process
6 Communication program download processing part
7 File management unit 8, 104 Communication control unit 9, 13, 107 Communication processing program 11, 105 PLC
12, 106 Program area 14, 108 I / O address conversion, state hold / change program 15, 109 Simulation target program 16 Comment file

Claims (3)

表示する画面の処理を行う画面処理部と、
PLCと通信を行うための通信制御部を備え、
前記PLCのシーケンスプログラムをシミュレーションするために前記PLCの入出力状態を変化させるI/Oシミュレータ装置において、
入出力状態を変化させたいI/Oアドレスと前記I/Oシミュレータ装置が前記PLCと通信するときに使用するI/Oアドレスとを変換するプログラムと前記入出力状態を変化させたいI/Oの入出力の状態を変化させるプログラムの2つのプログラムを自動的に作成し前記PLCのプログラムエリアにダウンロードするプログラム自動作成処理部を備えることを特徴とするI/Oシミュレータ装置。
A screen processing unit for processing a screen to be displayed;
A communication control unit for communicating with the PLC;
In an I / O simulator device that changes the input / output state of the PLC in order to simulate the PLC sequence program,
A program for converting an I / O address whose I / O state is to be changed and an I / O address used when the I / O simulator device communicates with the PLC and an I / O whose I / O state is to be changed An I / O simulator device comprising an automatic program creation processing unit that automatically creates two programs for changing an input / output state and downloads them to a program area of the PLC.
操作/表示対象のI/Oアドレスが入力されると、前記PLCに予め登録されているI/Oアドレスのコメント情報を取得し、前記I/Oシミュレータ装置の画面に表示する画面処理部を備えることを特徴とする請求項1記載のI/Oシミュレータ装置。   When an I / O address to be operated / displayed is input, a comment processing unit having an I / O address registered in advance in the PLC is acquired and displayed on the screen of the I / O simulator device. The I / O simulator apparatus according to claim 1. 前記I/Oシミュレータ装置と前記PLC相互の通信に必要なプログラムを前記PLCのプログラムエリアにダウンロードする通信プログラムダウンロード処理部を備えることを特徴とする請求項1記載のI/Oシミュレータ装置。   2. The I / O simulator apparatus according to claim 1, further comprising a communication program download processing unit that downloads a program required for communication between the I / O simulator apparatus and the PLC to a program area of the PLC.
JP2005366424A 2005-12-20 2005-12-20 I/o simulator device Pending JP2007172128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005366424A JP2007172128A (en) 2005-12-20 2005-12-20 I/o simulator device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005366424A JP2007172128A (en) 2005-12-20 2005-12-20 I/o simulator device

Publications (1)

Publication Number Publication Date
JP2007172128A true JP2007172128A (en) 2007-07-05

Family

ID=38298638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005366424A Pending JP2007172128A (en) 2005-12-20 2005-12-20 I/o simulator device

Country Status (1)

Country Link
JP (1) JP2007172128A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243485A (en) * 2011-07-18 2011-11-16 唐山奥力科技有限公司 PLC (Programmable Logic Controller) extended output circuit
CN104536433A (en) * 2014-12-12 2015-04-22 长春轨道客车股份有限公司 Motor train unit end signal test method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102243485A (en) * 2011-07-18 2011-11-16 唐山奥力科技有限公司 PLC (Programmable Logic Controller) extended output circuit
CN102243485B (en) * 2011-07-18 2013-07-24 唐山奥力科技有限公司 PLC (Programmable Logic Controller) extended output circuit
CN104536433A (en) * 2014-12-12 2015-04-22 长春轨道客车股份有限公司 Motor train unit end signal test method
CN104536433B (en) * 2014-12-12 2017-07-21 长春轨道客车股份有限公司 A kind of EMUs end signal testing method

Similar Documents

Publication Publication Date Title
JP2008084121A (en) Simulation system and simulation method
JP2008282363A (en) Programmable controller, program creation support device, computer program and programmable logic controller (plc) system
US8793668B2 (en) Protocol independent programming environment
JP5552300B2 (en) Sequence control apparatus, method, and program for connected device simulator
KR20100108582A (en) Program test device and program
CN109901830B (en) Signal configuration method and system for scada system development
US11165745B2 (en) Control system, controller, and control method
US20190306250A1 (en) Support apparatus, non-transitory computer-readable recording medium and setting method
JP7063009B2 (en) Display device, screen generation method, and screen generation program
US8776019B2 (en) Configurator with embedded firmware for offline instrument user settings implementation
JP4670719B2 (en) Numerical control device and simulation device for performing simulation using data from this numerical control device
JP2007172128A (en) I/o simulator device
JP2011186607A (en) Field device, setting method for the same, field device management method and program
CN111880793A (en) HMI configuration system and method based on binary file
WO2019176336A1 (en) Control system, development assistance device, and development assistance program
US20190303319A1 (en) Support apparatus, non-transitory computer-readable recording medium and setting method
JP4941674B2 (en) Simulation system
JP2006302216A (en) Display device, screen data producing device and screen display system
JPH10301763A (en) Program preparation supporting device for digital controller
JP2010033192A (en) Information processor, method of controlling the same, computer program, and storage medium
JP6939662B2 (en) Programming support device, programming support method and program
JP5492573B2 (en) Device / PLC simulator device, method, and program having trace function
US11762364B2 (en) Automated programming of a programmable-logic controller (PLC) of a microcontroller using an expert system
KR20190071987A (en) Apparatus and method for controlling terminal using block program
JP2008090394A (en) Simulator, simulation system and program