JP3362349B2 - Emulation method and emulator device - Google Patents

Emulation method and emulator device

Info

Publication number
JP3362349B2
JP3362349B2 JP23405397A JP23405397A JP3362349B2 JP 3362349 B2 JP3362349 B2 JP 3362349B2 JP 23405397 A JP23405397 A JP 23405397A JP 23405397 A JP23405397 A JP 23405397A JP 3362349 B2 JP3362349 B2 JP 3362349B2
Authority
JP
Japan
Prior art keywords
communication
transmission data
transmission
data
network address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP23405397A
Other languages
Japanese (ja)
Other versions
JPH1173210A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP23405397A priority Critical patent/JP3362349B2/en
Publication of JPH1173210A publication Critical patent/JPH1173210A/en
Application granted granted Critical
Publication of JP3362349B2 publication Critical patent/JP3362349B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数の通信装置を
有するFAシステムの通信タイミング遅延を疑似的に再
現するエミュレーション方法およびエミュレータ装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emulation method and an emulator device for simulating a communication timing delay of an FA system having a plurality of communication devices.

【0002】[0002]

【従来の技術】近年、FA(Factory Automation)シス
テムの全体構成がますます複雑になってきている。この
ような複雑なFAシステムを制御するため、例えば図1
1に示すように、回線60に複数台のプログラマブルコ
ントローラ(以下、PLCという)70が接続された構
成が使用されている。
2. Description of the Related Art In recent years, the overall configuration of FA (Factory Automation) systems has become increasingly complex. To control such a complicated FA system, for example, FIG.
As shown in FIG. 1, a configuration in which a plurality of programmable controllers (hereinafter referred to as PLC) 70 are connected to the line 60 is used.

【0003】そして、このようなFAシステムは、各P
LC70が1スキャンに取り得るサイクルタイムの制限
のもと、非同期でありながら互いに協調して制御対象の
スイッチ,センサ(図示せず)等を制御するようになっ
ている。
In addition, such an FA system is used for each P
Under the limitation of the cycle time that the LC 70 can take in one scan, the switches, sensors (not shown), and the like to be controlled are controlled in cooperation with each other although they are asynchronous.

【0004】[0004]

【発明が解決しようとする課題】上述したように、回線
60に複数台のPLC70を接続したFAシステムで
は、各PLC70が1スキャンに取り得るサイクルタイ
ムの制限のもと、非同期でありながら互いに協調して制
御対象のスイッチ,センサ等を制御するようになってい
るので、システムの立ち上げやシステムの修正時におい
てデバック・テストを行う際には、各PLC70間をつ
なぐ通信タイミングを考慮する必要があり、現場で実機
を使用せざるを得ず、デバック・テスト作業が非常に効
率が悪いという問題点があった。
As described above, in an FA system in which a plurality of PLCs 70 are connected to the line 60, each PLC 70 cooperates with each other under the limitation of the cycle time that each PLC 70 can take in one scan. Since it is designed to control the switches, sensors, etc. to be controlled, it is necessary to consider the communication timing that connects each PLC 70 when performing a debug test at the time of system startup or system modification. There was a problem that the debug test work was very inefficient because the actual machine had to be used on site.

【0005】そこで、本発明は上述の問題点に鑑み、各
PLCが実行する処理プログラムのデバック・テスト
を、現場で実機を使用せずに、効率良く実行するエミュ
レーション方法およびエミュレータ装置を提供すること
を目的とする。
In view of the above problems, the present invention provides an emulation method and an emulator device for efficiently executing a debug test of a processing program executed by each PLC without using an actual machine on site. With the goal.

【0006】[0006]

【課題を解決するための手段】上述の目的を達成するた
めに、請求項1記載の発明は、複数の通信装置を有する
FAシステムを仮想化し、通信タイミング遅延を疑似的
に再現するエミュレーション方法であって、前記FAシ
ステムを構成する通信装置のノードに対応して登録する
ネットワークアドレスの重複登録をチェックし、第1の
仮想化通信手段は、デバック・テスト対象プログラム実
行後、イベント通信用共有メモリに送信データが格納さ
れている場合には、該イベント通信用の送信データを、
またサイクリック通信用共有メモリに送信データが格納
されている場合には、該サイクリック通信用の送信デー
タを、それぞれ伝送路エミュレータ手段に送信し、前記
伝送路エミュレータ手段は、送信された前記送信データ
を、所定の時間遅延したのち、第2の仮想化通信手段に
伝送し、前記伝送を受けた第2の仮想化通信手段では、
受信した前記送信データのネットワークアドレスをもと
自ノード宛てのイベント通信用の送信データであると
判断した場合に該送信データをイベント通信用共有メモ
に書き込み、サイクリック通信用の送信データであれ
ば該送信データをサイクリック通信用共有メモリに書き
込む処理を行う。
In order to achieve the above-mentioned object, the invention according to claim 1 is an emulation method for virtualizing an FA system having a plurality of communication devices and reproducing communication timing delay in a pseudo manner. Then, the duplication registration of the network address to be registered corresponding to the node of the communication device which constitutes the FA system is checked, and the first virtualization communication means executes the debug test target program execution.
After line, when the transmission data in the shared memory for the event communication is stored, the transmission data for the event communication,
Also, the transmission data is stored in the shared memory for cyclic communication.
If it is, the transmission data for the cyclic communication is sent.
The data, transmitted to the transmission path respectively emulator unit, the transmission channel emulator means, the transmission data transmitted, after a predetermined delay time, and transmitted to the second virtualization communication means, receiving said transmission In the second virtualization communication means,
Based on the network address of the received transmission data
If it is determined that it is the transmission data for event communication addressed to the local node, the transmission data is shared with the event communication shared memo.
Write to Li, a process is executed to write the transmit data cyclically shared memory communication If the transmission data for the cyclic communication.

【0007】請求項2記載の発明は、複数の通信装置を
有するFAシステムを疑似的に再現するエミュレーショ
ン装置であって、前記FAシステムを構成する通信装置
のノードに対応してこの通信装置のネットワークアドレ
スを登録するネットワークアドレス登録手段と、前記ネ
ットワークアドレスの登録時に、前記ネットワークアド
レス登録手段を参照して登録されたネットワークアドレ
スの重複をチェックする重複チェック手段と、イベント
通信用の送信データを格納するイベント通信用共有メモ
と、サイクリック通信用の送信データを格納するサイ
クリック通信用共有メモリと、デバック・テスト対象プ
ログラム実行後、前記イベント通信用共有メモリ前記
送信データが格納されている場合には、該イベント通信
用の送信データを、また前記サイクリック通信用共有メ
モリ前記送信データが格納されている場合には、該サ
イクリック通信用の送信データを、それぞれ伝送路エミ
ュレータ手段に送信する第1の仮想化通信手段と、前記
第1の仮想化通信手段からの前記送信データを受ける
と、この受けた送信データを所定の時間遅延したのち、
第2の仮想化通信手段に伝送する前記伝送路エミュレー
タ手段と、前記伝送路エミュレータ手段が伝送した前記
送信データを受けて、その受けた前記送信データが、イ
ベント通信用の送信データであって、かつ、前記送信デ
ータのネットワークアドレスをもとに自ノード宛てであ
る場合は、該送信データを前記イベント通信用共有メモ
リの受信キューに格納し、サイクリック通信用の送信デ
ータである場合は、該送信データをノード割付けテーブ
ルを参照して、前記サイクリック通信用共有メモリに格
納する前記第2の仮想化通信手段と、を有する。
According to a second aspect of the present invention, there is provided an emulation device for simulating an FA system having a plurality of communication devices, the network of the communication device corresponding to a node of the communication device constituting the FA system. Network address registration means for registering an address, duplication check means for checking the duplication of the registered network address by referring to the network address registration means when registering the network address, and transmission data for event communication are stored. Shared memo for event communication
And Li, and the shared memory for the cyclic communication that stores transmit data for cyclic communication, debug, test-flops
After program execution, when the <br/> transmitting data to said shared memory for event communication is stored, the transmission data for the event communication, also shared main for the cyclic communication
When the transmission data is stored in the memory , the transmission data for the cyclic communication is transferred to the transmission line
When receiving the first virtual communication means for transmitting to the emulator means and the transmission data from the first virtualization communication means , after delaying the received transmission data for a predetermined time,
Said transmission line emulator means for transmitting to the second virtualization communication means, receiving said transmission data which the transmission channel emulator means has transmitted the transmission data thereof received is, a transmission data for event communication, And the transmission data
If on the basis of the network address of the over data is directed to its own node, shared memory for the event communication the transmission data
Stored in the reception queue of the network , and if it is the transmission data for cyclic communication, the transmission data is assigned to the node assignment table.
Referring to Le, having a second virtualization communication means to be stored in the cyclic shared memory for communication.

【0008】請求項3記載の発明は、請求項2記載の発
明において、上記重複チェック手段により、登録された
ネットワークアドレスが重複しているとチェックされた
場合には、表示画面にノードとそのノードが有するネッ
トワークアドレスを表示する表示手段を有するようにす
る。
The invention according to claim 3 is the invention according to claim 2 , which is registered by the duplication check means.
Checked for duplicate network addresses
In this case, the display screen displays the node and the network
A display means for displaying the network address is provided.

【0009】[0009]

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】本発明では、仮想化した1つの通信装置か
ら送信データを受けると、仮想化した伝送路エミュレー
タ手段が、受けた送信データを所定の時間遅延したの
ち、仮想化した他の通信装置に伝送するため、通信タイ
ミング遅延を疑似的に再現することができる。
According to the present invention, when transmission data is received from one virtualized communication device, the virtualized transmission path emulator means delays the received transmission data by a predetermined time, and then transmits it to another virtualized communication device. Since it is transmitted, the communication timing delay can be simulated.

【0014】また、通信システムを構成する通信装置の
ネットワークアドレスの登録時に、登録されたネットワ
ークアドレスの重複をチェックするため、誤ったネット
ワークアドレス登録ミスを防止することができる。
Further, since the duplication of the registered network addresses is checked at the time of registering the network address of the communication device constituting the communication system, it is possible to prevent an erroneous network address registration error.

【0015】特に、登録されたネットワークアドレスが
重複している場合には、表示画面にノードとそのノード
が有するネットワークアドレスを表示する。
Particularly, when the registered network addresses are duplicated, the node and the network address of the node are displayed on the display screen.

【0016】[0016]

【発明の実施の形態】以下、本発明に係るエミュレーシ
ョン方法およびエミュレータ装置の実施形態を図面を参
照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of an emulation method and an emulator device according to the present invention will be described below with reference to the drawings.

【0017】図1はこの実施形態のエミュレータ装置が
エミュレーションするFAシステムの概略構成図であ
り、図2はFAシステムのモジュール構成を示すブロッ
ク図であり、図3は本発明に係るエミュレータ装置の一
実施形態の構成を示すブロック図である。
FIG. 1 is a schematic configuration diagram of an FA system emulated by the emulator device of this embodiment, FIG. 2 is a block diagram showing a module configuration of the FA system, and FIG. 3 is an example of the emulator device according to the present invention. It is a block diagram which shows the structure of embodiment.

【0018】この実施形態のエミュレータ装置は、図1
に示すように、第1伝送路52および第2伝送路53に
接続されたパーソナルコンピュータを使用したPLC
(以下、パソコンPLCという)50と、第1伝送路5
2に接続された複数(#1〜#i)のPLC51と、第
2伝送路53に接続された複数(#j〜#n)のPLC
51とで構成されたFAシステムについて、イベント通
信およびサイクリック通信における次のような事項につ
いてのエミュレーションを行うエミュレータ装置であ
る。
The emulator device of this embodiment is shown in FIG.
PLC using a personal computer connected to the first transmission line 52 and the second transmission line 53 as shown in FIG.
(Hereinafter referred to as personal computer PLC) 50 and the first transmission line 5
A plurality of (# 1 to #i) PLCs 51 connected to No. 2 and a plurality (#j to #n) of PLCs connected to the second transmission path 53
This is an emulator device that emulates the following items in event communication and cyclic communication in the FA system configured by 51 and 51.

【0019】ネットワークアドレス登録およびその重
複チェック 通信タイミング遅延
Network address registration and duplication check Communication delay

【0020】イベント通信とは、アプリケーションプロ
グラムの要求が発生した時点で、その都度データのやり
とりを実施する通信実施形態をとるものである。サイク
リック通信とは、通信ユニットがあらかじめ決められた
時間間隔で定期的にデータ交換を実施する通信形態をと
るものである。
Event communication refers to a communication mode in which data is exchanged each time a request from an application program occurs. Cyclic communication is a form of communication in which a communication unit periodically exchanges data at predetermined time intervals.

【0021】ここで、この実施形態のエミュレータ装置
が実施する上述したFAシステムをより具体的に説明す
ると、図2に示すようなモジュールからなる構成部分で
表すことができる。
Here, the above-mentioned FA system implemented by the emulator device of this embodiment will be described in more detail. It can be represented by a component portion composed of modules as shown in FIG.

【0022】すなわち、パソコンPLC50は、PLC
の機能を有するソフトPLCユニット501と、第1伝
送路52に接続された#1の第1通信ユニット502
と、第2伝送路53に接続された#2の第2通信ユニッ
ト502とから構成されるているようにモジュール化す
ることができる。
That is, the personal computer PLC 50 is
Software PLC unit 501 having the function of # 1, and the # 1 first communication unit 502 connected to the first transmission path 52
And the second communication unit 502 of # 2 connected to the second transmission path 53 can be modularized.

【0023】また、#1〜#iのPLC51は、PLC
本体をなすPLCユニット511と、第1伝送路52に
接続された通信ユニット512とから構成されているよ
うにモジュール化することができ、同様、#j〜#nの
PLC51についても、PLC本体をなすPLCユニッ
ト511と、第2伝送路53に接続された通信ユニット
512とから構成されているようにモジュール化するこ
とができる。
The PLC 51 of # 1 to #i is a PLC
It can be modularized so as to be composed of a PLC unit 511 forming a main body and a communication unit 512 connected to the first transmission path 52. Similarly, the PLC main body of the PLC 51 of #j to #n can also be formed. The PLC unit 511 and the communication unit 512 connected to the second transmission path 53 can be modularized.

【0024】この実施形態のエミュレータ装置は、上述
したFAシステムにおけるおよびについてのエミュ
レーションを行うものであって、仮想PLC部11と、
#1〜#nの仮想PLC部12と、第1伝送路エミュレ
ータ手段13と、第2伝送路エミュレータ手段14と,
イベント通信用共有メモリ15と、サイクリック通信用
共有メモリ16と、ノード割付けテーブル17と、BU
SYフラグ格納メモリ18と、エミュレーション用プロ
グラム格納メモリ19とから構成されている。
The emulator device of this embodiment emulates and in the FA system described above, and includes a virtual PLC unit 11 and
Virtual PLC units 12 of # 1 to #n, a first transmission path emulator means 13, a second transmission path emulator means 14,
Event communication shared memory 15, cyclic communication shared memory 16, node allocation table 17, BU
It is composed of a SY flag storage memory 18 and an emulation program storage memory 19.

【0025】仮想PLC部11は、上述したFAシステ
ム中のデータを送信する側のPLC51(パソコンPL
C50も含む)を仮想化したものであり、後に詳細に説
明するような処理を行う仮想通信ユニット手段111を
有している。
The virtual PLC unit 11 is a PLC 51 (personal computer PL) on the side of transmitting data in the FA system described above.
(Including C50) is virtualized, and has a virtual communication unit means 111 that performs processing as described in detail later.

【0026】#1〜#nの仮想PLC部12は、FAシ
ステム中のデータを受信する側のPLC51を仮想化し
たものであり、後に詳細に説明するような処理を行う仮
想通信ユニット手段121を有している。
The virtual PLC units 12 of # 1 to #n are virtualized PLCs 51 on the side of receiving data in the FA system, and include virtual communication unit means 121 for performing the processing described in detail later. Have

【0027】第1伝送路エミュレータ手段13は、イベ
ント通信用に用いられるものであって、仮想PLC部1
1と#1〜#nの仮想PLC部12のいずれか1つとの
間でデータを仮想的に伝送制御する(エミュレートす
る)ようになっている。
The first transmission path emulator means 13 is used for event communication, and the virtual PLC unit 1
Data is virtually transmitted and controlled (emulated) between 1 and any one of the virtual PLC units 12 of # 1 to #n.

【0028】より具体的に説明すると、第1伝送路エミ
ュレータ手段13は、データを送信する仮想PLC部1
1から送信データを受けると、所定の時間遅延したの
ち、この受けた送信データを受信側の仮想PLC部12
に伝送するようになっている。なお、遅延する所定の時
間すなわち遅延時間は、プログラムやキーボード等の入
力手段により所望する値に変更することができる。
More specifically, the first transmission line emulator means 13 is a virtual PLC unit 1 for transmitting data.
When the transmission data is received from 1, the received transmission data is delayed for a predetermined time, and then the reception side virtual PLC unit 12
It is designed to be transmitted to. The predetermined delay time, that is, the delay time can be changed to a desired value by a program or an input means such as a keyboard.

【0029】また、第1伝送路エミュレータ手段13
は、後に詳細に説明するように、通信システムを構成す
る通信装置のネットワークアドレスの登録時に、登録さ
れたネットワークアドレスの重複をチェックするように
なっている。
The first transmission line emulator means 13
As will be described later in detail, when registering the network address of the communication device that constitutes the communication system, the duplication of the registered network address is checked.

【0030】そして、第1伝送路エミュレータ手段13
は、登録されたネットワークアドレスが重複している場
合には、表示画面にノードとそのノードが有するネット
ワークアドレスを表示するようになっている。
Then, the first transmission line emulator means 13
When the registered network addresses are duplicated, the node and the network address of the node are displayed on the display screen.

【0031】第2伝送路エミュレータ手段14は、サイ
クリック通信に用いられるものであって、仮想PLC部
11と#1〜#nの仮想PLC部12のいずれか1つと
の間でデータを仮想的に伝送制御する(エミュレートす
る)ようになっている。
The second transmission path emulator means 14 is used for cyclic communication, and virtually transmits data between the virtual PLC unit 11 and any one of the virtual PLC units 12 of # 1 to #n. It is designed to control (emulate) transmission.

【0032】その具体的内容は、第1伝送路エミュレー
ト手段14と同様であるため、その説明を省くが、後に
詳細に処理動作を説明してあるので、その内容を参照す
るものとする。
The specific content is the same as that of the first transmission path emulation means 14, so its explanation is omitted. However, since the processing operation is described in detail later, its content will be referred to.

【0033】イベント通信用共有メモリ15はイベント
通信において送信データおよび受信データを格納するも
のであり、サイクリック通信用共有メモリ16はサイク
リック通信において送信データおよび受信データを格納
するものである。
The event communication shared memory 15 stores transmission data and received data in event communication, and the cyclic communication shared memory 16 stores transmission data and received data in cyclic communication.

【0034】ノー割付けテーブル17は、#1〜#n
の仮想PLC部についてのノードNo(番号)を格納す
るノードNoエリア171と、ネットワークアドレスを
格納するネットワークアドレスエリア172とを有する
ものである。
[0034] node allocation table 17, # 1~ # n
It has a node number area 171 for storing the node number (number) of the virtual PLC section of No. 1 and a network address area 172 for storing the network address.

【0035】BUSYフラグ格納メモリ18は、伝送路
がBUSYであるか否かを示すフラグを格納するもので
ある。
The BUSY flag storage memory 18 stores a flag indicating whether or not the transmission path is BUSY.

【0036】プログラム格納メモリ19は、デバック・
テスト対象のプログラムを格納するものである。
The program storage memory 19 is used for debugging,
It stores the program to be tested.

【0037】次に、この実施形態のエミュレーション装
置の通信ユニットのネットワークアドレス登録および
重複登録チェック処理、エミュレーション処理を、イ
ベント通信の場合とサイクリック通信の場合に別けて説
明する。
Next, the network address registration, duplicate registration check processing, and emulation processing of the communication unit of the emulation device of this embodiment will be described separately for event communication and cyclic communication.

【0038】(1)イベント通信の場合 通信ユニットのネットワークアドレス登録および重複
登録チェック処理について 以下、このネットワークアドレス登録処理について図5
のフローチャートを参照して説明する。
(1) In case of event communication Regarding network address registration and duplicate registration check processing of the communication unit The following is a description of this network address registration processing shown in FIG.
This will be described with reference to the flowchart in FIG.

【0039】ここで、通信ユニットのネットワークアド
レス登録処理を説明するに際して、エミュレータ装置を
構成する仮想PLC部11は、実機システムのパソコン
PLC50に対応させてあり、#1〜#nの仮想PLC
12は、実機システムの各PLC51に対応させてあ
る。
Here, in explaining the network address registration processing of the communication unit, the virtual PLC section 11 constituting the emulator device corresponds to the personal computer PLC 50 of the actual system, and the virtual PLCs of # 1 to #n.
Reference numeral 12 corresponds to each PLC 51 of the actual system.

【0040】仮想PLC部11の仮想通信ユニット手段
111が、第1伝送路エミュレータ手段13に対して所
定の仮想PLC部12のネットワークアドレスを登録す
るように要求すると(ステップ110)、第1伝送路エ
ミュレータ手段13は、該当する所定の仮想PLC部1
2のネットワークアドレスをノード割付けテーブル17
に登録する(ステップ120)。
When the virtual communication unit means 111 of the virtual PLC section 11 requests the first transmission path emulator means 13 to register a predetermined network address of the virtual PLC section 12 (step 110), the first transmission path The emulator means 13 is a corresponding predetermined virtual PLC unit 1
Node assignment table 17 with the network address of 2
(Step 120).

【0041】続いて、第1伝送路エミュレータ手段13
は、ノード割付けテーブル17を参照して、ネットワー
クアドレスが重複登録されているか否かを判断する(ス
テップ130)。
Subsequently, the first transmission line emulator means 13
Refers to the node allocation table 17 and determines whether or not the network address is duplicately registered (step 130).

【0042】第1伝送路エミュレータ手段13は、ネッ
トワークアドレスが重複登録されていると判断した場合
には(ステップ130;Yes)、重複するネットワー
クアドレスを検出し(ステップ140)、この重複した
ネットワークアドレスとともにそのノードNoを表示画
面上に表示し(ステップ150)、ステップ160に処
理を移行する一方、重複登録されていないと判断した場
合には(ステップ130;No)、直接、ステップ16
0に処理を移行する。
When the first transmission path emulator means 13 determines that the network addresses are duplicately registered (step 130; Yes), the duplicated network addresses are detected (step 140), and the duplicated network addresses are detected. At the same time, the node number is displayed on the display screen (step 150), and the process proceeds to step 160. On the other hand, when it is determined that the duplicate registration is not performed (step 130; No), the process is directly performed in step 16
The processing shifts to 0.

【0043】ステップ160において、仮想PLC部1
1は、すべてのネットワークアドレスについての登録要
求を第1伝送路エミュレータ手段13に行ったか否かを
判断し(ステップ160)、その結果、すべてのネット
ワークアドレスについての登録要求を行っていないと判
断した場合には(ステップ160;No)、ステップ1
10に処理を戻し、上述と同様な処理を続行する一方、
すべてのネットワークアドレスについての登録要求を行
ったと判断した場合には(ステップ160;Yes)、
通信ユニットのネットワークアドレス登録処理を終了す
る。
In step 160, the virtual PLC unit 1
1 determines whether or not registration requests for all network addresses have been made to the first transmission path emulator means 13 (step 160), and as a result, it has been determined that registration requests for all network addresses have not been made. If (Step 160; No), Step 1
While returning the processing to 10 and continuing the processing similar to the above,
If it is determined that registration requests have been made for all network addresses (step 160; Yes),
The network address registration process of the communication unit ends.

【0044】通信タイミング遅延処理について ここで、通信タイミング遅延処理を説明する際して、
エミュレータ装置を構成する仮想PLC部11は、送信
実機システム中のデータを送信するパソコンPLC50
に対応させてあり、#1〜#nの仮想PLC12は、
実機システム中のデータを受信する側の各PLC51に
対応させてある。
[0044] Here, the communication timing delay process, on the occasion to explain the communication timing delay process,
The virtual PLC unit 11 that constitutes the emulator device is a personal computer PLC 50 that transmits data in the actual transmission system.
And the virtual PLC units 12 of # 1 to #n are
It corresponds to each PLC 51 on the side of receiving data in the actual machine system.

【0045】なお、このエミュレーション処理を、イ)
データを送信する側の仮想PLC部11の仮想通信ユニ
ット手段111,ロ)データを受信する側の仮想PLC
部12における仮想通信ユニット手段121,および
ハ)第1伝送路エミュレータ手段13の各処理に分けて
説明する。
This emulation processing is a)
Virtual communication unit means 111 of the virtual PLC unit 11 on the data transmitting side, b) Virtual PLC on the data receiving side
The respective processes of the virtual communication unit means 121 in the section 12 and c) the first transmission path emulator means 13 will be described separately.

【0046】イ)データを送信する側の仮想PLC部1
1の仮想通信ユニット手段111の処理について 以下、この仮想通信ユニット手段111の処理を、図6
のフローチャートを参照して説明する。
A) Virtual PLC unit 1 on the data transmitting side
Regarding the processing by the virtual communication unit means 111, the processing by the virtual communication unit means 111 will be
This will be described with reference to the flowchart in FIG.

【0047】仮想通信ユニット手段111は、プログラ
ム格納メモリ19に格納されているデバック・テスト対
象のプログラムが実行され、送信データがイベント通信
用共有メモリ15に格納されているか否かを判断する
(ステップ210)。
The virtual communication unit means 111 determines whether or not the debug test target program stored in the program storage memory 19 is executed and the transmission data is stored in the event communication shared memory 15 (step). 210).

【0048】仮想通信ユニット手段111は、判断した
結果、送信データがイベント通信用共有メモリ15に格
納されていると判断した場合には(ステップ210;Y
es)、イベント通信共用メモリ15からそのデータを
読み出す(ステップ220)一方、格納されていないと
判断した場合には(ステップ210;No)、イベント
通信共用メモリ15に送信データが格納されるまで待機
する。
As a result of the judgment, the virtual communication unit means 111 judges that the transmission data is stored in the event communication shared memory 15 (step 210; Y).
es), while reading the data from the event communication shared memory 15 (step 220), when judging that the data is not stored (step 210; No), wait until the transmission data is stored in the event communication shared memory 15. To do.

【0049】仮想通信ユニット手段111は、送信デー
タがイベント通信用共有メモリ15に格納されていると
判断し(ステップ210;Yes)、このメモリ15か
らそのデータを読み出すと、BUSYフラグ格納メモリ
18にBUSYフラグがセットされているか否かを判断
することで、伝送路がBUSYであるか否かを判断する
(ステップ230)。
The virtual communication unit means 111 judges that the transmission data is stored in the event communication shared memory 15 (step 210; Yes), and when the data is read from this memory 15, it is stored in the BUSY flag storage memory 18. By determining whether or not the BUSY flag is set, it is determined whether or not the transmission path is BUSY (step 230).

【0050】仮想通信ユニット手段111は、伝送路が
BUSYであると判断した場合には(ステップ230;
Yes)、伝送路に空き(EMPTY)になるまで待機
する一方、伝送路がBUSYでない場合には(ステップ
230;No)、第1伝送路エミュレータ手段13に伝
送データを伝送し、ステップ210に処理を戻し上述と
同様な処理を続行する。
When the virtual communication unit means 111 determines that the transmission path is BUSY (step 230;
Yes), while waiting until the transmission line becomes empty (EMPTY), if the transmission line is not BUSY (step 230; No), the transmission data is transmitted to the first transmission line emulator means 13 and processed in step 210. Is returned and processing similar to the above is continued.

【0051】ロ)データを受信する仮想PLC部12に
おける仮想通信ユニット手段121の動作について 以下、データを受信する仮想PLC部12の処理を、図
7のフローチャートを参照して説明する。
(B) Regarding the operation of the virtual communication unit means 121 in the virtual PLC unit 12 for receiving data The processing of the virtual PLC unit 12 for receiving data will be described below with reference to the flowchart of FIG.

【0052】#1〜#nの各仮想通信ユニット手段12
1は、第1伝送路エミュレータ手段13が制御する伝送
路(伝送路があると仮定している)上に伝送された伝送
データを受信し、この受信したデータから宛先アドレス
を読み出し(ステップ310)、受信したデータが自ノ
ード宛のデータであるか否かを判断する(ステップ32
0)。
Virtual communication unit means 12 of # 1 to #n
1 receives the transmission data transmitted on the transmission path (assuming that there is a transmission path) controlled by the first transmission path emulator means 13 and reads the destination address from the received data (step 310). , It is determined whether the received data is data addressed to the own node (step 32).
0).

【0053】各仮想通信ユニット手段121は、受信し
たデータが自ノード宛のデータでないと判断した場合に
は(ステップ320;No)、ステップ310に処理を
戻して上述と同様な処理を続行する一方、受信したデー
タが自ノード宛のデータであると判断した場合には(ス
テップ320;Yes)、この受信したデータを受けと
り(ステップ330)、イベント通信用共有メモリ15
に空きがあるか否かを判断する(ステップ340)。
When each virtual communication unit means 121 determines that the received data is not data addressed to its own node (step 320; No), it returns the process to step 310 and continues the same process as above. When it is determined that the received data is data addressed to the own node (step 320; Yes), the received data is received (step 330) and the event communication shared memory 15 is received.
It is determined whether there is a free space (step 340).

【0054】受信したデータが自ノード宛てのものと判
断した仮想通信ユニット手段121は、イベント通信用
共有メモリ15に空きがないと判断した場合には(ステ
ップ340;No)、空きがあるまで待機する一方、イ
ベント通信用共有メモリ15に空きがあると判断した場
合には(ステップ340;Yes)、イベント通信用共
有メモリ15の受信キュー(なお、キューとは、最初に
格納されたデータは最初に読み出されるようになってい
る格納エリアをいう)に受信データを格納し(ステップ
350)、ステップ310に処理を戻し上述と同様な処
理を続行する。
The virtual communication unit means 121, which has judged that the received data is addressed to its own node, waits until there is free space when it judges that there is no free space in the event communication shared memory 15 (step 340; No). On the other hand, if it is determined that the event communication shared memory 15 has a free space (step 340; Yes), the reception queue of the event communication shared memory 15 (note that the first stored data is the first The received data is stored in the storage area which is designed to be read (step 350), the process is returned to step 310, and the same process as described above is continued.

【0055】ハ)第1伝送路エミュレータ手段13の動
作について 以下、第1伝送路エミュレータ手段13の処理を、図8
のフローチャートを参照して説明する。
C) Operation of the first transmission path emulator means 13 Hereinafter, the processing of the first transmission path emulator means 13 will be described with reference to FIG.
This will be described with reference to the flowchart in FIG.

【0056】第1伝送路エミュレータ手段13は、デー
タを送信する仮想通信ユニット手段111から送信デー
タを受けると(ステップ410)、他のデータが伝送路
に入り込まないようにBUSYフラグ格納メモリ18に
BUSYフラグをセットする(ステップ420)ととも
に、タイマ(図示せず)を用いて所定時間だけ伝送路を
遅延させる(ステップ430)。
When the first transmission path emulator means 13 receives the transmission data from the virtual communication unit means 111 for transmitting the data (step 410), it keeps BUSY in the BUSY flag storage memory 18 so that other data does not enter the transmission path. A flag is set (step 420), and a transmission path is delayed by a predetermined time using a timer (not shown) (step 430).

【0057】その後、第1伝送路エミュレータ手段13
は、タイマが所定時間経過すると、#1〜#nの仮想P
LC部121に対して、仮想通信ユニット手段111か
らの送信データを送信し(ステップ440)、#1〜#
nの仮想PLC部12のいづれか1つの仮想通信ユニッ
ト121がデータを受信したか否かを判断する(ステッ
プ450)。
After that, the first transmission line emulator means 13
Is a virtual P of # 1 to #n when the timer has passed a predetermined time.
The transmission data from the virtual communication unit means 111 is transmitted to the LC section 121 (step 440), and # 1 to #
It is determined whether or not one of the n virtual PLC units 12 receives the data (step 450).

【0058】第1伝送路エミュレータ手段13は、#1
〜#nの仮想PLC部12のいづれか1つの仮想通信ユ
ニット手段121にもデータが受信していないと判断し
た場合には(ステップ450;No)、データを受信す
るまで待機する一方、#1〜#nの仮想PLC部12の
いづれか1つの仮想通信ユニット手段121にデータを
受信したと判断した場合には(ステップ450;Ye
s)、次のデータを伝送させるためにBUSYフラグ格
納メモリ18にセットされているBUSYフラグをクリ
アすることでリセットし(ステップ460)、ステップ
410に処理を戻し、上述と同様な処理を続行する。
The first transmission line emulator means 13 is # 1
If it is determined that the data is also In any one of the virtual communication unit means 121 of the virtual PLC 12 of the ~ # n is not received (step 450; No), whereas to wait to receive data, # 1 When it is determined that data has been received by any one of the virtual communication unit means 121 of the #n virtual PLC unit 12 (step 450; Yes).
s), reset by clearing the BUSY flag set in the BUSY flag storage memory 18 for transmitting the next data (step 460), return the processing to step 410, and continue the same processing as described above. .

【0059】(1)サイクリック通信の場合 通信ユニットのネットワークアドレス登録および重複
登録チェック処理について サイクリック通信の場合における通信ユニットのネット
ワークアドレス登録および重複登録チェック処理は、イ
ベント通信の場合と同様であるため、その詳細説明を省
略する。
(1) In the case of cyclic communication Regarding the network address registration and duplicate registration check processing of the communication unit The network address registration and duplicate registration check processing of the communication unit in the case of cyclic communication are the same as in event communication. Therefore, detailed description thereof will be omitted.

【0060】通信タイミング遅延処理について ここで、通信タイミング遅延処理を説明するに際して、
エミュレータ装置を構成する仮想PLC部11は、実機
システム中の送信データを送信するPLC50に対応さ
せてあり、#1〜#nの仮想PLC12は、実機システ
ム中のデータを受信する側の各PLC51に対応させて
ある。
Communication Timing Delay Processing Here, in explaining the communication timing delay processing,
The virtual PLC unit 11 that constitutes the emulator device corresponds to the PLC 50 that transmits the transmission data in the actual system, and the virtual PLCs 12 of # 1 to #n are provided in each PLC 51 on the side that receives the data in the actual system. It corresponds.

【0061】以下、このエミュレーション処理を、イ)
データを送信する側の仮想PLC部11の仮想通信ユニ
ット手段111およびデータを受信する側の仮想PLC
部12における仮想通信ユニット手段121の処理,
ロ)第2伝送路エミュレータ手段14の各処理作に分け
て説明する。
Hereinafter, this emulation processing is a)
Virtual communication unit means 111 of the virtual PLC unit 11 on the data transmitting side and the virtual PLC on the data receiving side
Processing of the virtual communication unit means 121 in the section 12,
B) The respective processing operations of the second transmission path emulator means 14 will be described separately.

【0062】イ)データを送信する側の仮想PLC部1
1の仮想通信ユニット手段111およびデータを受信す
る側の仮想PLC部12における仮想通信ユニット手段
121の処理について 以下、この処理動作を、図9のフローチャートを参照し
て説明する。
A) Virtual PLC unit 1 on the data transmitting side
Regarding the processing of the virtual communication unit means 111 of No. 1 and the virtual communication unit means 121 in the virtual PLC unit 12 on the data receiving side, the processing operation will be described below with reference to the flowchart of FIG.

【0063】#1〜#nの各仮想PLC部12は、ノー
ド順に巡回しているトークンを受信すると(ステップ5
10)、以後、データを送信する側になるので、図3中
の仮想PLC11として振る舞う。従って、以下、この
サイクリック通信処理の説明においては、トークンを受
信した仮想PLC部12を仮想PLC部11とする。
Each of the virtual PLC units 12 of # 1 to #n receives the token circulating in the node order (step 5).
10) After that, since it is the side that transmits data, it behaves as the virtual PLC 11 in FIG. Therefore, in the following description of this cyclic communication process, the virtual PLC unit 12 that has received the token will be referred to as the virtual PLC unit 11.

【0064】トークンを受信した仮想PLC部11の仮
想通信ユニット手段111は、タイマを起動させるとと
もに(ステップ515)、ノード割付けテーブル17を
参照して、自ノードの送信データをサイクリック通信用
共有メモリ16から読み出し(ステップ520)、BU
SYフラグ格納メモリ18にBUSYフラグがセットさ
れているか否かを判断することで、伝送路(仮想的な伝
送路)がBUSYであるか否かを判断する。
Upon receipt of the token, the virtual communication unit means 111 of the virtual PLC unit 11 activates the timer (step 515) and refers to the node allocation table 17 to refer to the transmission data of its own node for the cyclic communication shared memory. 16 read (step 520), BU
By determining whether or not the BUSY flag is set in the SY flag storage memory 18, it is determined whether or not the transmission path (virtual transmission path) is BUSY.

【0065】仮想PLC部11の仮想通信ユニット手段
111は、伝送路がBUSYであると判断した場合には
(ステップ530;Yes)、BUSYでなくなるまで
データの伝送を控える一方、伝送路がBUSYでないと
判断した場合には(ステップ530;No)、サイクリ
ック通信用共有メモリ16から読み出した送信データ
を、第2伝送路エミュレータ手段14を介して#1〜#
nの仮想PLC部12に一斉同報する(ステップ54
0)。
When the virtual communication unit means 111 of the virtual PLC unit 11 determines that the transmission path is BUSY (step 530; Yes), it refrains from transmitting data until it is not BUSY, but the transmission path is not BUSY. If it is determined (step 530; No), the transmission data read from the shared memory 16 for cyclic communication is transmitted via the second transmission line emulator means # 1 to # 1.
broadcast to the n virtual PLC units 12 (step 54).
0).

【0066】続いて、仮想PLC部11の第1仮想通信
ユニット手段111は、全ノードに対して一斉同報が完
了したか否かを判断し(ステップ550)、全ノードに
対して一斉同報が完了していないと判断した場合には
(ステップ550;No)、一斉同報が完了するまで待
機する一方、全ノードに対して一斉同報が完了したと判
断した場合には(ステップ550;Yes)、仮想PL
C部11の処理を終了する。
Subsequently, the first virtual communication unit means 111 of the virtual PLC unit 11 judges whether or not the simultaneous broadcast to all the nodes is completed (step 550), and the simultaneous broadcast to all the nodes is carried out. If it is determined that the broadcast has not been completed (step 550; No), while waiting until the broadcast is completed, if it is determined that the broadcast has been completed to all nodes (step 550; Yes), virtual PL
The process of the C section 11 is ended.

【0067】#1〜#nの各仮想PLC部12は、仮想
PLC部11からデータを受信すると(ステップ56
0)、仮想通信ユニット手段121がこの受信したデー
タをノード割付けテーブル17を参照して(ステップ5
70)、サイクリック通信用共有メモリ16にデータを
書き込む(ステップ580)。
Each of the virtual PLC units 12 # 1 to #n receives data from the virtual PLC unit 11 (step 56).
0), the virtual communication unit means 121 refers to the received data in the node allocation table 17 (step 5
70) and write the data in the shared memory 16 for cyclic communication (step 580).

【0068】その後、受信したデータをサイクリック通
信用共有メモリ16に書き込んだ仮想通信ユニット手段
121は、トークンを次の仮想PLC部12に渡し(ス
テップ585)、タイマの起動を停止し、計時した時間
をメモリ(図示せず)に格納する(ステップ590)。
After that, the virtual communication unit means 121, which has written the received data into the shared memory 16 for cyclic communication, passes the token to the next virtual PLC unit 12 (step 585), stops the activation of the timer, and measures the time. The time is stored in memory (not shown) (step 590).

【0069】続いて、仮想通信ユニット手段121は、
トークンが一巡(サイクル)したか否か判断し(ステッ
プ595)、トークンが一巡していないと判断した場合
には(ステップ595;No)、ステップ510に戻し
上述と同様な処理を続行する一方、トークンが一巡し
たと判断した場合には(ステップ595;Yes)、デ
バック・テスト対象プログラムを稼働した際に、1サイ
クル処理を行う時間を計測する処理を終了する。
Then, the virtual communication unit means 121
If it is determined that the token has made one cycle (cycle) (step 595), and if it has been determined that the token has not made one cycle (step 595; No), the process returns to step 510 and the same processing as described above is continued. If it is determined that the token has gone round (step 595; Yes), the process of measuring the time for which one cycle process is performed when the debug test target program is operated is terminated.

【0070】ロ)第2伝送路エミュレータ手段14の処
理動作について 以下、第2伝送路エミュレータ手段14の処理動作を、
図10のフローチャートを参照して説明する。
B) Regarding the processing operation of the second transmission path emulator means 14, the processing operation of the second transmission path emulator means 14 will be described below.
This will be described with reference to the flowchart of FIG.

【0071】第2伝送路エミュレータ手段14は、送信
データを送信する仮想通信ユニット手段111から送信
データを一斉同報で受けると(ステップ610)、他の
データが伝送路に入り込まないようにBUSYフラグ格
納メモリ18にBUSYフラグをセットする(ステップ
620)とともに、タイマ(図示せず)を用いて所定時
間だけ伝送路を遅延させる(ステップ630)。
When the second transmission path emulator means 14 receives the transmission data from the virtual communication unit means 111 for transmitting the transmission data by broadcast (step 610), the BUSY flag is set so that other data does not enter the transmission path. The BUSY flag is set in the storage memory 18 (step 620) and the transmission path is delayed by a predetermined time using a timer (not shown) (step 630).

【0072】その後、第2伝送路エミュレータ手段14
は、タイマが所定時間経過すると、#1〜#nの仮想P
LC部121に対して、仮想通信ユニット手段111か
らの送信データを一斉同報し(ステップ640)、全ノ
ードに対する一斉同報が完了したかを判断する(ステッ
プ650)。
After that, the second transmission line emulator means 14
Is a virtual P of # 1 to #n when the timer has passed a predetermined time.
The transmission data from the virtual communication unit means 111 is broadcast to the LC unit 121 (step 640), and it is determined whether the broadcast to all nodes is completed (step 650).

【0073】第2伝送路エミュレータ手段14は、全ノ
ードに対する一斉同報が完了していないと判断した場合
には(ステップ650;No)、データを受信するまで
待機する一方、全ノードに対する一斉同報が完了したと
判断した場合には(ステップ650;Yes)、次のデ
ータを伝送させるためにBUSYフラグ格納メモリ18
にセットされているBUSYフラグをクリアすることで
リセットし(ステップ660)、ステップ610に処理
を戻し、上述と同様な処理を続行する。
When the second transmission path emulator means 14 determines that the broadcast to all nodes is not completed (step 650; No), it waits until data is received, while When it is determined that the simultaneous broadcast to the nodes is completed (step 650; Yes), the BUSY flag storage memory 18 for transmitting the next data is transmitted.
It resets by clearing the BUSY flag set to (step 660), returns the processing to step 610, and continues the same processing as described above .

【0074】上述したように、この実施形態のエミュレ
ータ装置は、仮想PLC部11がデータを送信する側の
PLC51を仮想化したもので、また、仮想PLC12
がデータの受信する側のPLC51を仮想化したもの
で、さらに、第1伝送路エミュレータ手段13または第
2伝送路エミュレータ手段14が、送信するデータを伝
送制御するようになっているため、イベント通信および
サイクリック通信において、FAシステムのデータ伝送
についてのエミュレーションを行うことができる。
As described above, in the emulator device of this embodiment, the virtual PLC unit 11 virtualizes the PLC 51 on the data transmission side, and the virtual PLC 12 is also used.
Is a virtualized version of the PLC 51 on the data receiving side, and the first transmission path emulator means 13 or the second transmission path emulator means 14 controls transmission of the data to be transmitted. Also, in cyclic communication, emulation of the data transmission of the FA system can be performed.

【0075】しかも、第1伝送路エミュレータ手段13
または第2伝送路エミュレータ手段14は、通信システ
ムとしてのFAシステムを構成するPLC50,51の
ネットワークアドレスの登録時に、ノード割付けテーブ
ル17を参照して登録されたネットワークアドレスの重
複をチェックすることができる。
Moreover, the first transmission line emulator means 13
Alternatively, the second transmission path emulator means 14 can check the duplication of the registered network addresses by referring to the node allocation table 17 when registering the network addresses of the PLCs 50 and 51 that form the FA system as the communication system. .

【0076】特に、第1伝送路エミュレータ手段13ま
たは第2伝送路エミュレータ手段14は、登録されたネ
ットワークアドレスが重複している場合には、表示画面
にノードとそのノードが有するネットワークアドレスを
表示するため、ネットワークアドレス登録ミスを容易に
発見することができる。
Particularly, when the registered network addresses are duplicated, the first transmission path emulator means 13 or the second transmission path emulator means 14 displays the node and the network address of the node on the display screen. Therefore, a network address registration error can be easily found.

【0077】また、この実施形態のエミュレータ装置
は、第1伝送路エミュレータ手段が仮想PLC部11か
ら送信データを受けると、所定の時間遅延したのち、こ
の受けた送信データを、#1〜#nの仮想PLC部12
に伝送するため、実機のFAシステムを構成するPLC
51間のデータ伝送を疑似的に再現することができ、実
機のランニングテストのみでしか発見できなかった通信
タイミングに関するバグを疑似的に検出することができ
る。
Further, when the first transmission path emulator means receives the transmission data from the virtual PLC unit 11, the emulator device of this embodiment delays the received transmission data by # 1 to #n after a predetermined time delay. Virtual PLC unit 12
PLC that constitutes the FA system of the actual machine for transmission to the
Data transmission between 51 can be reproduced in a pseudo manner, and a bug relating to communication timing, which can be found only by a running test of an actual machine, can be detected in a pseudo manner.

【0078】なお、この実施形態のエミュレータ装置
は、プログラム本来のバグ(処理手順等のバグ)を検出
するものではない。
The emulator device of this embodiment does not detect the original bug of the program (bug of processing procedure or the like).

【0079】[0079]

【発明の効果】以上本発明によれば、仮想化した1つの
通信装置から送信データを受けると、仮想化した伝送路
エミュレータ手段が、受けた送信データを所定の時間遅
延したのち、仮想化した他の通信装置に伝送するため、
通信タイミング遅延を疑似的に再現することができる。
As described above, according to the present invention, when transmission data is received from one virtualized communication device, the virtualized transmission path emulator means delays the received transmission data for a predetermined time and then virtualizes it. For transmission to other communication devices,
The communication timing delay can be simulated.

【0080】このため、実機のFAシステムにおいて実
行する処理プログラムのデバック・テストを、現場で実
機を使用せずに、効率良く実行することができる。
Therefore, it is possible to efficiently execute the debug test of the processing program executed in the FA system of the actual machine without using the actual machine on site.

【0081】また、通信システムを構成する通信装置の
ネットワークアドレスの登録時に、登録されたネットワ
ークアドレスの重複をチェックするため、誤ったネット
ワークアドレス登録ミスを防止することができる。
Further, when registering the network address of the communication device that constitutes the communication system, the duplication of the registered network addresses is checked, so that an erroneous network address registration error can be prevented.

【0082】特に、登録されたネットワークアドレスが
重複している場合には、表示画面にノードとそのノード
が有するネットワークアドレスを表示することにより、
容易にネットワークアドレス登録ミス回を発見すること
ができる。
In particular, when the registered network addresses are duplicated, by displaying the node and the network address of the node on the display screen,
It is possible to easily find a network address registration error.

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

【図1】本発明に係るエミュレータ装置がエミュレート
するFAシステムの概略構成図。
FIG. 1 is a schematic configuration diagram of an FA system emulated by an emulator device according to the present invention.

【図2】図1に表示したFAシステムのモジュール構成
を示すブロック図。
FIG. 2 is a block diagram showing the module configuration of the FA system displayed in FIG.

【図3】本発明に係るエミュレータ装置の一実施形態の
構成を示すブロック図。
FIG. 3 is a block diagram showing the configuration of an embodiment of an emulator device according to the present invention.

【図4】図3中のノード割付けテーブルの構成を示すブ
ロック図。
FIG. 4 is a block diagram showing the configuration of a node allocation table in FIG.

【図5】この実施形態のエミュレータ装置が実行するネ
ットワークアドレス登録および重複登録チェック処理を
示すフローチャート。
FIG. 5 is a flowchart showing network address registration and duplicate registration check processing executed by the emulator device of this embodiment.

【図6】イベント通信においてデータを送信する側の第
1仮想通信ユニットまたは第2仮想通信ユニットが実行
するエミュレーション処理を示すフローチャート。
FIG. 6 is a flowchart showing an emulation process executed by a first virtual communication unit or a second virtual communication unit on the data transmission side in event communication.

【図7】イベント通信においてデータを受信する側の#
1〜#nの仮想通信ユニットが実行するエミュレーショ
ン処理を示すフローチャート。
FIG. 7: # on the side receiving data in event communication
6 is a flowchart showing emulation processing executed by the virtual communication units 1 to #n.

【図8】イベント通信において第1伝送路エミュレータ
手段が実行するエミュレーション処理を示すフローチャ
ート。
FIG. 8 is a flowchart showing emulation processing executed by first transmission path emulator means in event communication.

【図9】サイクリック通信において仮想通信ユニットの
実行するエミュレーション処理を示すフローチャート。
FIG. 9 is a flowchart showing an emulation process executed by a virtual communication unit in cyclic communication.

【図10】サイクリック通信における第2伝送路エミュ
レータ手段データが実行するエミュレーション処理を示
すフローチャート。
FIG. 10 is a flowchart showing emulation processing executed by second transmission path emulator means data in cyclic communication.

【図11】従来のFAシステムの概略構成図。FIG. 11 is a schematic configuration diagram of a conventional FA system.

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

11 仮想PLC部(データ送信側) 111 仮想通信ユニット手段 12 仮想PLC部(データ受信側) 121 仮想通信ユニット手段 13 第1伝送路エミュレータ手段 14 第2伝送路エミュレータ手段 15 イベント通信用共有メモリ 16 サイクリック通信用共有メモリ 17 ノード割付けテーブル 171 ノードNo格納エリア 172 ネットワークアドレス格納エリア 18 BUSYフラグ格納メモリ 19 プログラム格納メモリ 50 パソコンPLC 501 ソフトPLCユニット 502 通信ユニット 51 PLC 511 PLCYユニット 512 通信ユニット 11 Virtual PLC section (data transmission side) 111 Virtual communication unit means 12 Virtual PLC section (data receiving side) 121 Virtual Communication Unit Means 13 First transmission line emulator means 14 Second transmission line emulator means 15 Shared memory for event communication 16 Shared memory for cyclic communication 17-node allocation table 171 Node No. storage area 172 network address storage area 18 BUSY flag storage memory 19 Program storage memory 50 PC PLC 501 software PLC unit 502 Communication unit 51 PLC 511 PLCY unit 512 communication unit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−35534(JP,A) 特開 平8−153019(JP,A) 特開 平8−317057(JP,A) 特開 平9−224083(JP,A) 特開 平7−152679(JP,A) 特開 昭62−206619(JP,A) 特開 平3−19499(JP,A) 特開 平8−286953(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/00 - 19/16 G05B 15/00 - 15/02 G05B 24/00 - 24/04 G06F 11/28 340 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-5-35534 (JP, A) JP-A-8-153019 (JP, A) JP-A-8-317057 (JP, A) JP-A-9- 224083 (JP, A) JP 7-152679 (JP, A) JP 62-206619 (JP, A) JP 3-19499 (JP, A) JP 8-286953 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G05B 19/00-19/16 G05B 15/00-15/02 G05B 24/00-24/04 G06F 11/28 340

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の通信装置を有するFAシステムを
仮想化し、通信タイミング遅延を疑似的に再現するエミ
ュレーション方法であって、 前記FAシステムを構成する通信装置のノードに対応し
て登録するネットワークアドレスの重複登録をチェック
し、 第1の仮想化通信手段は、デバック・テスト対象プログ
ラム実行後、イベント通信用共有メモリに送信データが
格納されている場合には、該イベント通信用の送信デー
を、またサイクリック通信用共有メモリに送信データ
が格納されている場合には、該サイクリック通信用の送
信データを、それぞれ伝送路エミュレータ手段に送信
し、 前記伝送路エミュレータ手段は、送信された前記送信デ
ータを、所定の時間遅延したのち、第2の仮想化通信手
段に伝送し、 前記伝送を受けた第2の仮想化通信手段では、受信した
前記送信データのネットワークアドレスをもとに自ノー
ド宛てのイベント通信用の送信データであると判断した
場合に該送信データをイベント通信用共有メモリに書き
込み、サイクリック通信用の送信データであれば該送信
データをサイクリック通信用共有メモリに書き込む処理
を行うことを特徴とするエミュレーション方法。
1. An emulation method for virtualizing an FA system having a plurality of communication devices and artificially reproducing a communication timing delay, the network address being registered in correspondence with a node of the communication device configuring the FA system. Check the duplicate registration of the first, and the first virtualization communication method is the debug test target program.
After the execution of the RAM , if the transmission data is stored in the shared memory for event communication, the transmission data for the event communication is also transmitted to the shared memory for cyclic communication.
Is stored, the transmission for cyclic communication is performed.
The transmit data, and sends to the transmission path respectively emulator unit, the transmission channel emulator means, the transmission data transmitted, after a predetermined delay time, and transmitted to the second virtualization communication means, receiving said transmission The second virtual communication means received
If it is determined that the transmission data is for the event communication addressed to the own node based on the network address of the transmission data, the transmission data is written in the event communication shared memory , and if the transmission data is for the cyclic communication, An emulation method characterized by performing a process of writing transmission data to a shared memory for cyclic communication.
【請求項2】 複数の通信装置を有するFAシステムを
疑似的に再現するエミュレーション装置であって、 前記FAシステムを構成する通信装置のノードに対応し
てこの通信装置のネットワークアドレスを登録するネッ
トワークアドレス登録手段と、 前記ネットワークアドレスの登録時に、前記ネットワー
クアドレス登録手段を参照して登録されたネットワーク
アドレスの重複をチェックする重複チェック手段と、 イベント通信用の送信データを格納するイベント通信用
共有メモリと、 サイクリック通信用の送信データを格納するサイクリッ
ク通信用共有メモリと、デバック・テスト対象プログラム実行後、 前記イベント
通信用共有メモリ 送信データが格納されている場
合には、該イベント通信用の送信データを、また前記サ
イクリック通信用共有メモリ前記送信データが格納さ
れている場合には、該サイクリック通信用の送信データ
、それぞれ伝送路エミュレータ手段に送信する第1の
仮想化通信手段と、 前記第1の仮想化通信手段からの前記送信データを受け
ると、この受けた送信データを所定の時間遅延したの
ち、第2の仮想化通信手段に伝送する前記伝送路エミュ
レータ手段と、 前記伝送路エミュレータ手段が伝送した前記送信データ
を受けて、その受けた前記送信データが、イベント通信
用の送信データであって、かつ、前記送信データのネッ
トワークアドレスをもとに自ノード宛てである場合は、
該送信データを前記イベント通信用共有メモリの受信キ
ューに格納し、サイクリック通信用の送信データである
場合は、該送信データをノード割付けテーブルを参照し
て、前記サイクリック通信用共有メモリに格納する前記
第2の仮想化通信手段と、 を有することを特徴とするエミュレータ装置。
2. An emulation device for simulating an FA system having a plurality of communication devices, the network address registering a network address of the communication device corresponding to a node of the communication device configuring the FA system. Registration means, duplication checking means for checking the duplication of the registered network address by referring to the network address registration means when registering the network address, and event communication for storing transmission data for event communication
A shared memory, a shared memory for cyclic communication for storing transmission data for cyclic communication, after executing debug test target program, if the previous SL transmit data in the shared memory for the event communication is stored, the transmission data for the event communication, also in the case where the transmission data to said cyclic shared memory for communication is stored, first transmits the transmission data of the cyclic communication, each transmission line emulator unit 1 Receiving the transmission data from the first virtualization communication means and the first communication means, the received transmission data is delayed by a predetermined time.
Chi, said transmission line emulator means for transmitting to the second virtualization communication means, receiving said transmission data which the transmission channel emulator means has transmitted the transmission data thereof received is a in the transmission data for event communication And the transmission data
If it is addressed to its own node based on the network address ,
The transmission data is sent to the reception key of the shared memory for event communication.
In case of the transmission data for cyclic communication , refer to the node allocation table for the transmission data .
Te, emulator apparatus characterized by having a said <br/> second virtualization communication means to be stored in the cyclic shared memory for communication.
【請求項3】 上記重複チェック手段により、登録され
たネットワークアドレスが重複しているとチェックされ
た場合には、表示画面にノードとそのノードが有するネ
ットワークアドレスを表示する表示手段を有することを
特徴とする請求項2記載のエミュレータ装置。
3. If the registered network address is checked by the duplication checking means for duplication, the display screen has a display means for displaying the node and the network address of the node. The emulator device according to claim 2.
JP23405397A 1997-08-29 1997-08-29 Emulation method and emulator device Expired - Fee Related JP3362349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23405397A JP3362349B2 (en) 1997-08-29 1997-08-29 Emulation method and emulator device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23405397A JP3362349B2 (en) 1997-08-29 1997-08-29 Emulation method and emulator device

Publications (2)

Publication Number Publication Date
JPH1173210A JPH1173210A (en) 1999-03-16
JP3362349B2 true JP3362349B2 (en) 2003-01-07

Family

ID=16964845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23405397A Expired - Fee Related JP3362349B2 (en) 1997-08-29 1997-08-29 Emulation method and emulator device

Country Status (1)

Country Link
JP (1) JP3362349B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976313A (en) * 2019-04-22 2019-07-05 北京工业大学 A kind of automatically controlled test macro and diagnostic device of liquid electricity retarder

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209407A (en) * 2000-01-25 2001-08-03 Omron Corp Simulator for executing plc program
JP4062492B2 (en) 2002-03-07 2008-03-19 オムロン株式会社 Safety condition setting support device, program, and recording medium
JP2007249562A (en) * 2006-03-15 2007-09-27 Fuji Electric Systems Co Ltd Software plc, and message routing method therefor
CN106597144B (en) * 2016-11-18 2019-05-17 国电南瑞科技股份有限公司 The planned function detecting method of centralized FA transmitted based on simulation
CN106502116A (en) * 2016-12-07 2017-03-15 苏州红叶装饰工程有限公司 The intelligent domestic system controlled using software
JP6570772B1 (en) * 2018-05-17 2019-09-04 三菱電機株式会社 Simulation apparatus and simulation program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976313A (en) * 2019-04-22 2019-07-05 北京工业大学 A kind of automatically controlled test macro and diagnostic device of liquid electricity retarder

Also Published As

Publication number Publication date
JPH1173210A (en) 1999-03-16

Similar Documents

Publication Publication Date Title
JPH07281925A (en) Multiprocessor simulation device
JPH04256034A (en) Computer system
JP3362349B2 (en) Emulation method and emulator device
JPH06348530A (en) Portable method and apparatus for executing development, verification and test of computer system
CN112764981B (en) Cooperative testing system and method
US7016826B2 (en) Apparatus and method of developing software for a multi-processor chip
EP0290942B1 (en) Guest machine execution control system for virtual machine system
JPH07248941A (en) Debug support device
CN114745257B (en) Data frame debugging method, device, equipment and storage medium
JP2000330970A (en) Device and method for simulation
JP3085730B2 (en) Parallel simulation method for complex CPU system
US6553328B1 (en) Non-intrusive memory access for embedded processors
JP2728002B2 (en) Embedded software debug support device
JPH02121039A (en) Load prediction simulation system for computer system
JP3176479B2 (en) SCSI simulator
JP2513401B2 (en) Method for manufacturing embedded software debug support device
JPH05324574A (en) Inter-processor communication system
JPH03198132A (en) Simulation device
JP2004094800A (en) Program simulation device and its method
JP3177131B2 (en) Electronic circuit analyzer
JPH06208480A (en) System program simulation system
JPH0528229A (en) Device and method for inspecting screen data
JPH07121405A (en) Simulation system
JP2000339199A (en) Tm save analyzing method
JPH10240562A (en) Simulator device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020918

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

Free format text: PAYMENT UNTIL: 20071025

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081025

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091025

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101025

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111025

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121025

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121025

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131025

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees