JP2013097460A - Peripheral equipment for programmable controller - Google Patents
Peripheral equipment for programmable controller Download PDFInfo
- Publication number
- JP2013097460A JP2013097460A JP2011237792A JP2011237792A JP2013097460A JP 2013097460 A JP2013097460 A JP 2013097460A JP 2011237792 A JP2011237792 A JP 2011237792A JP 2011237792 A JP2011237792 A JP 2011237792A JP 2013097460 A JP2013097460 A JP 2013097460A
- Authority
- JP
- Japan
- Prior art keywords
- data area
- communication unit
- sequence program
- usage status
- programmable controller
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
- Debugging And Monitoring (AREA)
Abstract
【課題】通信ユニットの受信データ領域とシーケンス・プログラムの命令が出力するデータ領域との間で重複状態を検出することができるプログラムチェック機能を備えたプログラマブルコントローラの周辺装置を提供する。
【解決手段】シーケンス・プログラム14aおよび通信ユニット・パラメータ14bの読み出し手段と、シーケンス・プログラム14aの命令の情報テーブル14eと、命令が出力する第1データ領域と、通信ユニット・パラメータ14bの受信データ領域取得手段と、受信データ領域である第2データ領域と、第1データ領域および第2データ領域の重複状態を判定する使用状況登録手段と、使用状況テーブル14cおよび重複リスト14dと、重複リスト14dにより、シーケンス・プログラム14aと通信ユニット・パラメータ14bのデータ領域の重複状態の確認をおこなうプログラムチェック手段26dを備える。
【選択図】図1A peripheral device of a programmable controller having a program check function capable of detecting an overlapping state between a received data area of a communication unit and a data area output by a sequence program instruction.
Means for reading sequence program 14a and communication unit parameter 14b, instruction information table 14e of sequence program 14a, first data area output by instruction, and reception data area of communication unit parameter 14b The acquisition means, the second data area that is the reception data area, the usage status registration means for determining the duplication status of the first data area and the second data area, the usage status table 14c and the duplication list 14d, and the duplication list 14d And a program check means 26d for confirming the overlapping state of the data areas of the sequence program 14a and the communication unit parameter 14b.
[Selection] Figure 1
Description
本発明はプログラマブルコントローラの周辺装置に関する。 The present invention relates to a peripheral device for a programmable controller.
生産設備には、複数のプログラマブルコントローラにより構成され、各プログラマブルコントローラがネットワークに接続されてデータ交換しているシステムがある。このようなデータ交換には、コモンメモリ方式を使用した通信が一般に使用されている。コモンメモリ方式では、各プログラマブルコントローラに備えた通信ユニットのそれぞれに共通のメモリ(コモンメモリ)を有している。また、各プログラマブルコントローラは、シーケンス・プログラムからアクセス可能な内部メモリを有している。他のプログラマブルコントローラへのデータの送信は、プログラマブルコントローラ自身の内部メモリに設定した送信データ領域のデータを、通信ユニットのコモンメモリ上の所定の領域に書き込むことによりおこなわれる。そして、コモンメモリ上の所定の領域にデータが書き込まれると、他のプログラマブルコントローラの通信ユニットのコモンメモリ上の所定の領域に、自身のプログラマブルコントローラが書き込んだデータが反映される。データの受信は、プログラマブルコントローラが、自身に備えた通信ユニットのコモンメモリ上の所定の領域から、他のプログラマブルコントローラが書き込んだデータを読み出し、内部メモリに設定した受信データ領域に書き込むことによりおこなわれる。このように、プログラマブルコントローラ自身の内部メモリに設定した送信データ領域および受信データ領域に対し、シーケンス・プログラムからアクセスすることにより、他のプログラマブルコントローラとのデータ交換を可能としている。この内部メモリの送信データ領域および受信データ領域は、通信ユニットのパラメータによって設定される。 Production facilities include a system that includes a plurality of programmable controllers, and each programmable controller is connected to a network to exchange data. For such data exchange, communication using a common memory system is generally used. In the common memory system, each communication unit included in each programmable controller has a common memory (common memory). Each programmable controller has an internal memory accessible from a sequence program. Data transmission to other programmable controllers is performed by writing data in the transmission data area set in the internal memory of the programmable controller itself to a predetermined area on the common memory of the communication unit. When data is written in a predetermined area on the common memory, the data written by its own programmable controller is reflected in a predetermined area on the common memory of the communication unit of another programmable controller. The data is received by the programmable controller reading data written by another programmable controller from a predetermined area on the common memory of the communication unit provided in the programmable controller and writing the data to the reception data area set in the internal memory. . As described above, the transmission data area and the reception data area set in the internal memory of the programmable controller itself are accessed from the sequence program, thereby enabling data exchange with other programmable controllers. The transmission data area and reception data area of the internal memory are set according to the parameters of the communication unit.
シーケンス・プログラムは、シーケンス・プログラム編集機能を備えたプログラマブルコントローラの周辺装置により作成され、周辺装置から作成したシーケンス・プログラムをプログラマブルコントローラに書き込むことで、このシーケンス・プログラムを実装することができる。また、周辺装置は各種のパラメータ設定機能を備えており、例えば、通信ユニットのパラメータ設定として、通信ユニットのリンク構成や送受信のデータ領域を設定している。このパラメータをプログラマブルコントローラに書き込むことで、通信ユニットは、設定された通信処理をおこなう。 The sequence program is created by a peripheral device of a programmable controller having a sequence program editing function, and this sequence program can be implemented by writing the sequence program created from the peripheral device to the programmable controller. Also, the peripheral device has various parameter setting functions. For example, the communication unit link configuration and the transmission / reception data area are set as the parameter setting of the communication unit. By writing this parameter to the programmable controller, the communication unit performs the set communication process.
ところで、シーケンス・プログラムを構成する命令において、各命令が出力するデータ領域の間で重複状態が発生すると、シーケンス・プログラムの動作不良となる場合がある。このため、周辺装置からシーケンス・プログラムをプログラマブルコントローラに書き込む前に、周辺装置に備えたプログラムチェック機能により、データ領域の重複状態をチェックして、シーケンス・プログラムの動作不良を未然に防いでいる。このプログラムチェック機能は、シーケンス・プログラムの各命令が出力するデータ領域の間で発生する重複状態を検出している。(特許文献1) By the way, in the instructions constituting the sequence program, if an overlap state occurs between the data areas output by the instructions, the sequence program may malfunction. For this reason, before the sequence program is written from the peripheral device to the programmable controller, the overlapping state of the data area is checked by the program check function provided in the peripheral device to prevent the malfunction of the sequence program. This program check function detects an overlapping state that occurs between data areas output by instructions of a sequence program. (Patent Document 1)
しかしながら、データ領域の重複状態は、シーケンス・プログラムの各命令が出力するデータ領域の間で発生するだけではない。プログラマブルコントローラが通信ユニットを介してネットワークに接続され、シーケンス・プログラムが他のプログラマブルコントローラとデータ交換をおこなっている場合、通信ユニットの受信データ領域とシーケンス・プログラムの命令が出力するデータ領域との間でも重複状態が発生することが想定される。従来のプログラムチェック機能は、この重複状態を検出することができないという問題があった。 However, the overlapping state of the data areas does not only occur between the data areas output by the instructions of the sequence program. When the programmable controller is connected to the network via the communication unit and the sequence program is exchanging data with other programmable controllers, it is between the received data area of the communication unit and the data area output by the sequence program instructions. However, it is assumed that an overlapping state will occur. The conventional program check function has a problem in that it cannot detect this overlapping state.
本発明はかかる問題点を解決するためになされたもので、他のプログラマブルコントローラとのデータ交換をおこなうシーケンス・プログラムに対し、通信ユニットの受信データ領域とシーケンス・プログラムの命令が出力するデータ領域との間で重複状態を検出することができるプログラムチェック機能を備えたプログラマブルコントローラの周辺装置を提供することを目的とする。 The present invention has been made to solve such a problem, and for a sequence program for exchanging data with other programmable controllers, a communication unit received data area and a data area for outputting a sequence program instruction; It is an object of the present invention to provide a peripheral device of a programmable controller having a program check function capable of detecting an overlapping state between the two.
請求項1に係わる発明は、上記の課題を解決するため、シーケンス・プログラムおよび通信ユニット・パラメータを格納する記憶手段と、前記記憶手段から前記シーケンス・プログラムを読み出すシーケンス・プログラム読み出し手段と、前記記憶手段から前記通信ユニット・パラメータを読み出す通信ユニット・パラメータ読み出し手段と、前記シーケンス・プログラムを構成する命令と前記命令が出力するデータサイズとが格納された情報テーブルと、前記シーケンス・プログラムの前記命令が出力する第1データ領域と、前記通信ユニット・パラメータに設定された受信データ領域を取得する受信データ領域取得手段と、前記受信データ領域取得手段により取得された第2データ領域と、前記第1データ領域および前記第2データ領域の使用状況を登録する使用状況テーブルと、前記第1データ領域および前記第2データ領域の使用状況を前記使用状況テーブル登録するとともに、領域間の重複状態を判定する使用状況登録手段と、前記重複状態にあるデータ領域を登録する重複リストと、前記重複リストにより、前記シーケンス・プログラムと前記通信ユニット・パラメータの重複状態の確認をおこなうプログラムチェック手段と、を備えることである。
In order to solve the above problems, the invention according to
請求項2に係わる発明は、請求項1に記載のプログラマブルコントローラの周辺装置であって、前記受信データ領域取得手段は、前記通信ユニット・パラメータの通信方式を判別する通信方式判別手段と、前記通信方式ごとに定義されたパラメータ情報と、前記通信ユニット・パラメータの設定値を取得するパラメータ設定値取得手段と、前記パラメータの設定値から受信データを格納するデータ領域の先頭アドレスおよびデータサイズを計算するアドレス計算手段と、を備えることである。
The invention according to
請求項3に係わる発明は、請求項1または2に記載のプログラマブルコントローラの周辺装置であって、前記データ領域の前記使用状況と重複状態を識別可能に画面に表示する使用状況表示手段を備えることである。
The invention according to
請求項4に係わる発明は、請求項1または2に記載のプログラマブルコントローラの周辺装置であって、重複状態にある前記データ領域のアドレスが割り付けられた前記シーケンス・プログラムの前記命令コードを他の前記命令コードと識別可能に画面に表示するシーケンス・プログラム表示手段を備えることである。
The invention according to
上記のように構成した請求項1の発明によれば、プログラマブルコントローラの周辺装置は、使用状況登録手段を呼び出すことにより、使用状況テーブルを生成し、シーケンス・プログラムと通信ユニット・パラメータの使用するデータ領域の重複状態の確認をおこなうことができる。このシーケンス・プログラムと通信ユニット・パラメータは、シーケンス・プログラム読み出し手段および通信ユニット・パラメータ読み出し手段により、読み出される。使用状況登録手段は、シーケンス・プログラムの命令と情報テーブルとを参照して、命令が出力する先頭アドレスとデータサイズにより示されるデータ領域を求める。このシーケンス・プログラムの命令が出力するデータ領域を第1データ領域とする。また、使用状況登録手段は、受信データ領域取得手段により、通信ユニット・パラメータに設定された受信データ領域である第2データ領域を取得する。そして、使用状況登録手段は、前記第1データ領域および前記第2データ領域の使用状況を使用状況テーブルに登録するとともに、データ領域の重複状態を判定する。重複状態と判定されたデータ領域は、重複リストに登録する。
According to the invention of
この重複リストにデータ領域が登録されていない場合、シーケンス・プログラムの命令が出力する第1データ領域どうしの間、およびシーケンス・プログラムの命令が出力する第1データ領域と通信ユニットの受信データ領域である第2データ領域との間において、重複状態にあるデータ領域が存在しないことを示している。 If the data area is not registered in the overlap list, the first data area output by the sequence program instruction and the first data area output by the sequence program instruction and the reception data area of the communication unit This indicates that there is no overlapping data area with a certain second data area.
また、重複リストにデータ領域が登録されている場合、シーケンス・プログラムの命令が出力する第1データ領域どうしの間、および、シーケンス・プログラムの命令が出力する第1データ領域と通信ユニットの受信データ領域である第2データ領域との間において、重複状態にあるデータ領域が存在することを示している。 If the data area is registered in the duplicate list, the first data area output by the sequence program instruction and the first data area output by the sequence program instruction and the received data of the communication unit This indicates that there is an overlapping data area with the second data area, which is an area.
このように、使用状況登録手段は、通信ユニットの受信データ領域を含め、重複状態を自動的に検出することができるので、シーケンス・プログラムをプログラマブルコントローラに書き込む前に、使用状況登録手段により重複リストを生成することで、シーケンス・プログラム実行前に重複状態を含めたプログラム・チェックを確実におこなうことができる。さらに、重複状態の要因となったシーケンス・プログラムの命令および通信ユニット・パラメータを特定することができるので、重複状態の解消も容易におこなうことができる。 In this way, the usage status registration means can automatically detect the duplication status including the reception data area of the communication unit. Therefore, before the sequence program is written to the programmable controller, the usage status registration means uses the duplication list. By generating the program, it is possible to reliably perform the program check including the duplicate state before executing the sequence program. Furthermore, since the sequence program command and communication unit parameters that caused the overlap state can be specified, the overlap state can be easily eliminated.
請求項2に係わる発明によれば、通信ユニット・パラメータが通信方式毎に異なるパラメータであっても、通信方式判別手段により、通信方式を判別し、パラメータ設定値取得手段が、通信方式ごとに定義されたパラメータ情報を参照することにより、パラメータの設定値を取得することができる。そして、アドレス計算手段により、パラメータの設定値から受信データを格納するデータ領域の先頭アドレスおよびデータサイズを計算することができるので、使用状況登録手段は、各種の通信方式の通信ユニットに対応して、重複状態を判定することができる。
According to the invention according to
請求項3に係わる発明によれば、プログラマブルコントローラの周辺装置は、使用状況表示手段により、データ領域の使用状況の表示において、重複状態を識別可能に画面に表示するので、シーケンス・プログラムおよび通信ユニット・パラメータが使用するデータ領域の重複状態を一覧で見ることができる。
According to the invention of
請求項4に係わる発明によれば、プログラマブルコントローラの周辺装置は、シーケンス・プログラム表示手段により、シーケンス・プログラムの表示において、重複状態にあるデータ領域のアドレスが割り付けられた命令コードを、他の命令と識別可能に画面に表示することができる。これにより、重複状態の要因となったシーケンス・プログラムの命令をシーケンス・プログラムの表示上で容易に特定することができるので、重複状態の解消も容易におこなうことができる。
According to the invention of
[第1の実施形態]
プログラマブルコントローラの周辺装置には、専用のハードウェアにより構成されるものや、汎用のパーソナルコンピュータ(以下、PCと記す)で構成されるもの等、種々のタイプが存在する。図1は、本実施形態の周辺装置ソフトウェアをインストールしたPCを周辺装置10として使用した場合のシステム構成図である。
以下、本発明の実施形態の周辺装置10のシステム構成を図面に従って説明する。
[First Embodiment]
There are various types of peripheral devices for programmable controllers, such as those composed of dedicated hardware and those composed of general-purpose personal computers (hereinafter referred to as PCs). FIG. 1 is a system configuration diagram when a PC on which peripheral device software of this embodiment is installed is used as the
Hereinafter, the system configuration of the
図1に示すように、周辺装置10は、CPU(central processing unit)11のシステム・バス12を介して、システムメモリ28、HDD(hard disk drive)24、通信インタフェース27、キーボード22、マウス23、ディスプレイ21が接続されている。HDD24には、周辺装置ソフトウェア26がインストールされている。
As shown in FIG. 1, the
システムメモリ28は、RAM(random access memory)14及びROM(read only memory)13等から構成される記憶手段である。RAM14は、CPU11によりHDD24から各プログラムを読み出して実行するのに使用される。また、RAM14は、各プログラムの実行に要するデータを一時記憶するデータ領域、各種情報を生成するワークエリアとして使用される。ROM13には、BIOS(basic input/output system)プログラム13aが記憶されており、周辺装置10の起動時において、初期設定をするとともに、HDD24にインストールされているOS(operating system)25の起動をおこなう。通信インータフェース27は、通信ケーブル(図示せず)を介して、プログラマブルコントローラとの通信をおこなう。ディスプレイ21は、出力デバイスであり、周辺装置ソフトウェア26により、シーケンス・プログラムの編集等をおこなう場合の画面表示の出力に使用される。キーボード22およびマウス23は、それぞれ入力デバイスであり、周辺装置ソフトウェア26により、シーケンス・プログラムの編集をおこなう場合等の情報の入力に使用される。HDD24は、ハードディスクにて構成される記憶装置であり、周辺装置ソフトウェア26およびOS25等がインストールされている。
The
周辺装置ソフトウェア26は、シーケンス・プログラム編集プログラム26a、変換プログラム26b、通信ユニット・パラメータ設定プログラム26c、プログラムチェック・プログラム26d等が含まれている。周辺装置10は、周辺装置ソフトウェア26の各プログラムにより、各機能が実装されている。OS25は、例えば、Windows(登録商標)7等が適用される。
The
シーケンス・プログラム編集プログラム26aは、シーケンス・プログラム(ソースコード)14aを、対応するラダー図の形式にて編集する。シーケンス・プログラム(ソースコード)14aは、シーケンス・プログラム(バイナリコード)(図示せず)を読み出し、変換プログラム26bによりに変換したものである。編集後のシーケンス・プログラム(ソースコード)14aは、変換プログラム26bにより、シーケンス・プログラム(バイナリコード)に変換される。
The sequence
通信ユニット・パラメータ設定プログラム26cは、シーケンス・プログラム(ソースコード)14aにて、通信ユニットを使用する場合に、通信ユニット・パラメータ14bを設定する。
The communication unit /
プログラムチェック・プログラム26dは、シーケンスプログラム(ソースコード)14aの整合性のチェックおよび使用状況のチェックをおこなう。この使用状況のチェックにおいて、データ領域の使用状況を示す使用状況テーブル14cと重複リスト14dが生成される。
The
作成したシーケンス・プログラムは、通信インータフェース27を介して、プログラマブルコントローラとの通信をおこない、シーケンス・プログラムおよびパラメータをプログラマブルコントローラへ書き込む。この時、シーケンス・プログラムの動作不良を未然に防ぐため、この書き込み前において、プログラムチェック処理をおこなっている。
The created sequence program communicates with the programmable controller via the
図2は、FL−netのネットワークに接続された複数のプログラマブルコントローラにより構成された生産設備の中のプログラマブルコントローラ100の構成図である。このプログラマブルコントローラは、FL−netのネットワークを介して、他のプログラマブルコントローラとデータ交換をおこなっている。図2に示すように、プログラマブルコントローラ100は、CPUユニット110と通信ユニット120とから構成されている。CPUユニット110と通信ユニット120は、ユニット間を接続する内部バス112を介して接続されている。この通信ユニット120は、FL−net規格に対応したものである。
FIG. 2 is a configuration diagram of the
FL−netとは、FA制御システムに組み込まれる様々な機器(プログラマブルコントローラ、ロボットコントローラ、数値制御装置、パーソナルコンピュータ等)を相互に接続するネットワークの規格である。FL−netは、JEMA(日本電機工業会)により提唱された規格であり、コモンメモリ方式が採用されている。プログラマブルコントローラ100は、このFL−net規格に対応した通信機器である通信ユニット120を備えることで、FL−netのネットワークに組み込むことが可能となる。FL−netでは、機器間をイーサネット(登録商標)(Ethernet(登録商標))により接続し、通信プロトコルにはUDP/IP(User Datagram Protocol/Internet Protocol)が用いられている。
FL-net is a network standard that interconnects various devices (programmable controller, robot controller, numerical controller, personal computer, etc.) incorporated in the FA control system. FL-net is a standard proposed by JEMA (Japan Electrical Manufacturers' Association) and adopts a common memory system. The
CPUユニット110は、CPU111の内部バス112を介して、ROM115、RAM114、プログラムメモリ113、I/O制御回路118、通信インターフェース119が接続されている。通信インータフェース119は、通信ケーブル(図示せず)を介して、周辺装置10との通信をおこなう。周辺装置10により、通信インータフェース119を介して、書き込まれたシーケンス・プログラムおよびパラメータは、プログラムメモリ113に格納される。ROM115には、システムプログラム115aが、RAM114には、内部メモリ114aが記憶されている。システムプログラム115aは、CPUユニット110を制御するとともに、シーケンス・プログラム113aを実行することにより、シーケンス制御をおこなっている。
The
通信ユニット120は、CPU121の内部バスを介して、ROM125、RAM124、コモンメモリ124a、通信インターフェース129が接続され、この通信インターフェース129を介して、FL−netのネットワークと接続されている。FL−netのネットワークとの接続には、イーサネット(登録商標)ケーブルが用いられる。制御プログラム125aは、通信ユニット120の制御をしている。通信ユニット120は、複数台備えることも可能である。
The
図3は、CPUユニット110の内部メモリ114aと通信ユニット120のコモンメモリ124aの説明図である。シーケンス・プログラム113aからアクセス可能な内部メモリ114aには、受信データ領域と送信データ領域が設定されている。ネットワークを介して受信したコモンメモリ124aの他装置データを、内部メモリ114aの受信データ領域に読み出す。また、送信データ領域のデータをコモンメモリ124aに書き込むことにより、自装置データをネットワークを介して送信している。このネットワークを介して、各プログラマブルコントローラ間でサイクリック通信をおこなうことによって、各プログラマブルコントローラはコモンメモリを共有している。
FIG. 3 is an explanatory diagram of the
図4は、通信ユニット・パラメータ設定プログラム26cによる、FL−net通信ユニット・パラメータ設定300である。このFL−net通信ユニット・パラメータ設定300により、パラメータ値を設定した後、このパラメータをプログラマブルコントローラに書き込むことで、通信ユニットは設定の通信処理をおこなう。
FIG. 4 shows the FL-net communication unit / parameter setting 300 by the communication unit /
図4に示すように、FL−net通信ユニット・パラメータ設定300は、リレーリンク310とレジスタリンク410の設定を有している。リレーリンク310は、主にビット単位でのアクセスが可能な内部メモリのデータ領域のアドレス設定であり、レジスタリンク410には、主にワード単位でのアクセスが可能な内部メモリのデータ領域のアドレス設定である。それぞれ、リンク領域先頭アドレス311,411、リンク領域ワード数313,413、送信領域先頭アドレス314,414、送信領域ワード数316,416のパラメータが設定可能となっている。なお、リンク領域末尾アドレス322,422、送信領域末尾アドレス325,425は、設定されたパラメータから自動的に計算される。
As shown in FIG. 4, the FL-net communication unit / parameter setting 300 includes settings of a
ここで、通信ユニット・パラメータは、通信ユニットごとに番号付けされ、通信方式等の付帯情報も有している。プログラマブルコントローラが複数台の通信ユニットを備える場合、台数分の通信ユニット・パラメータの設定を、それぞれにおこなう必要がある。また、FL−netの通信ユニットの場合、別途ノード番号等の設定も必要である。 Here, the communication unit parameter is numbered for each communication unit, and has additional information such as a communication method. When the programmable controller includes a plurality of communication units, it is necessary to set communication units and parameters for each of the units. In the case of the FL-net communication unit, it is necessary to set a node number or the like separately.
図5は、図4のレジスタリンク410のパラメータ設定のメモリ構成を示す説明図である。レジスタリンク410の受信データ領域は、リンク領域の範囲から送信領域の範囲を除いたR0000〜R02FFと、R0500〜R05FFの領域となる。なお、図示していないが、リレーリンク310の受信データ領域は、L000〜L0FFと、L200〜L3FFの領域となる。
FIG. 5 is an explanatory diagram showing a memory configuration for parameter setting of the
ここで、R0000、L000等は、シーケンス・プログラムが認識可能なアドレス形式であり、先頭の識別文字に16進のアドレスを付加したものである。先頭の識別文字がRのアドレスは、リンクレジスタと呼ばれるワード単位のアドレスであり、先頭の識別文字がLのアドレスは、リンクリレーと呼ばれるビット単位のアドレスである。また、アドレスL000〜L00Fの16ビットをL00Wと表記することにより、ワード単位で指定することができる。なお、本実施形態においては、2バイト(16ビット)を1ワードとするシステムを想定している。 Here, R0000, L000, etc. are address formats that can be recognized by the sequence program, and are obtained by adding a hexadecimal address to the head identification character. An address having a leading identification character R is a word unit address called a link register, and an address having a leading identification character L is a bit unit address called a link relay. Further, the 16 bits of the addresses L000 to L00F can be specified in units of words by expressing them as L00W. In the present embodiment, a system is assumed in which 2 bytes (16 bits) are one word.
以上のように構成された本実施形態の周辺装置10において、データ領域の重複状態を検出する処理について説明する。
In the
図6は、情報テーブル14eの説明図である。図6に示すように、情報テーブル14eは、命令600が出力するデータ領域のアドレス601を有するオペランド番号と、データサイズ602を有するオペランド番号を有している。例えば、WBMOVの場合、出力するデータ領域のアドレスは第2オペランドに記述され、データサイズは第3オペランドに記述されていることを示している。
FIG. 6 is an explanatory diagram of the information table 14e. As shown in FIG. 6, the information table 14 e has an operand number having an
図7は、使用状況テーブル14cの説明図である。図7に示すように、使用状況テーブル14cは、プログラマブルコントローラの内部メモリの各アドレスに対応する使用状況のフラグ情報で構成されている。アドレス順の10H毎のレコードに区切って、各アドレスの使用状況のフラグ情報をアドレス昇順にテーブル表記している。 FIG. 7 is an explanatory diagram of the usage status table 14c. As shown in FIG. 7, the usage status table 14c includes usage status flag information corresponding to each address of the internal memory of the programmable controller. The flag information of the usage status of each address is shown in a table in ascending order of address, divided into 10H records in the address order.
使用状況テーブル14c中、フラグ情報がオン状態の部位は、そのアドレスの内部メモリのデータ領域が使用されていることを表している。例えば、図7において、アドレスR0300〜R04FFのフラグ情報はオフ状態であり、このデータ領域426が使用されていないことを示している。
In the usage status table 14c, a portion where the flag information is in an ON state indicates that the data area of the internal memory at that address is used. For example, in FIG. 7, the flag information of addresses R0300 to R04FF is in an off state, indicating that this
次に、本実施形態のプログラムチェック処理を図9のフローチャートにより説明する。
図9に示すように、プログラムチェック処理は、データ領域の重複状態のチェックと整合性のチェックをおこなっている。
Next, the program check processing of this embodiment will be described with reference to the flowchart of FIG.
As shown in FIG. 9, in the program check process, a data area overlap state check and a consistency check are performed.
整合性チェックは、シーケンス・プログラム14aが所定の形式であるか、命令が使用するアドレスが正しいか、ジャンプ先ラベルが存在するか、等についてチェックする。(ステップS101)
The consistency check checks whether the
そして、チェック結果を判定し、問題があればチェック結果を記憶し、問題がなければスキップする。(ステップS102)(ステップS103) Then, the check result is determined. If there is a problem, the check result is stored, and if there is no problem, the check result is skipped. (Step S102) (Step S103)
次に、シーケンス・プログラム14aに対し、使用状況登録処理により、データ領域の重複状態のチェックをおこなう。使用状況テーブルと重複リストが出力される。(ステップS104)
Next, the duplication state of the data area is checked by the use status registration process for the
出力された重複リストを読み出し、重複リストが空でなければ内容を記憶し、重複リストが空ならばスキップする。(ステップS105)(ステップS106)(ステップS107) The output duplicate list is read, the contents are stored if the duplicate list is not empty, and skipped if the duplicate list is empty. (Step S105) (Step S106) (Step S107)
記憶された整合性チェックの結果および重複リストの内容を表示形式にして、ディスプレイに表示する。(ステップS108) The stored consistency check result and the contents of the duplicate list are displayed in the display format. (Step S108)
次に、本実施形態の使用状況登録処理を図10のフローチャートにより説明する。 Next, the usage status registration process of this embodiment will be described with reference to the flowchart of FIG.
図10に示すように、使用状況登録処理は、最初に初期化と先頭の通信ユニット・パラメータの取得をおこなう。初期化は、使用状況テーブルと重複リストを生成し、使用状況テーブルのすべてのアドレスのフラグ情報をオフ状態にする。また、重複リストは空の状態にする。(ステップS001) As shown in FIG. 10, in the usage status registration process, first, initialization and acquisition of the first communication unit parameter are performed. In the initialization, a usage status table and a duplicate list are generated, and flag information of all addresses in the usage status table is turned off. The duplicate list is empty. (Step S001)
次に、受信データ格納領域取得処理により、通信ユニット・パラメータに設定された受信データを格納するアドレスとデータサイズを取得する。(ステップS002) Next, the reception data storage area acquisition process acquires the address and data size for storing the reception data set in the communication unit parameter. (Step S002)
例えば、図4のFL−net通信ユニット・パラメータ設定300により設定されたパラメータを取得した場合について説明する。受信データ格納領域取得処理は、通信方式判別手段により、パラメータの通信方式がFL−netであると判別する。そして、FL−netのパラメータ情報を参照して、リンク領域先頭アドレス、リンク領域ワード数、送信領域先頭アドレス、送信領域ワード数の設定値を取得する。これにより、リンク領域先頭アドレスL00W、リンク領域ワード数64、送信領域先頭アドレスL10W、送信領域ワード数16が取得される。
For example, a case where the parameters set by the FL-net communication unit / parameter setting 300 of FIG. 4 are acquired will be described. In the received data storage area acquisition process, the communication method determining means determines that the parameter communication method is FL-net. Then, referring to the parameter information of FL-net, the setting values of the link area head address, the number of link area words, the transmission area head address, and the number of transmission area words are acquired. Thereby, the link area head address L00W, the link
そして、アドレス計算手段により、リレーリンクの受信データ領域は、リンク領域の範囲から送信領域の範囲を除いたアドレスL00WからデータサイズFHワード分と、アドレスL20Wからデータサイズ1FHワード分と計算される。また、レジスタリンクの受信データ領域は、リンク領域の範囲から送信領域の範囲を除いたアドレスR0000からデータサイズ2FFワード分と、アドレスR0500からデータサイズFFHワード分と計算される。 Then, the reception data area of the relay link is calculated by the address calculation means as the data size FH words from the address L00W excluding the transmission area range from the link area range and the data size 1FH words from the address L20W. Also, the reception data area of the register link is calculated from the address R0000 excluding the range of the transmission area from the link area to the data size 2FF words and from the address R0500 to the data size FFH words.
使用状況テーブルを参照して、このアドレスとデータサイズにより示されるデータ領域に対応するフラグ情報を取得し、使用状況を判定する。(ステップS003) Referring to the usage status table, flag information corresponding to the data area indicated by the address and data size is acquired, and the usage status is determined. (Step S003)
そして、フラグ情報がデータ領域が使用されていないことを示すオフ状態ならば、データ領域が使用されていることを示すオン状態に変更する。(ステップS004) If the flag information is in an off state indicating that the data area is not used, the flag information is changed to an on state indicating that the data area is used. (Step S004)
すでに、データ領域が使用されているならば、この通信ユニット・パラメータを示す番号とアドレスを重複リストに登録する。(ステップS005) If the data area is already used, the number and address indicating this communication unit parameter are registered in the duplicate list. (Step S005)
例えば、上述の通信ユニット・パラメータを読み出した場合にあって、使用状況テーブルを参照すると、アドレスR0000〜R02FF、R0500〜R05FF、L000〜L0FF、L200〜L3FFに対応するフラグ情報がオフ状態であったとする。 For example, when the above communication unit parameters are read out and the usage status table is referenced, flag information corresponding to addresses R0000 to R02FF, R0500 to R05FF, L000 to L0FF, and L200 to L3FF is in an off state. To do.
通信ユニット・パラメータの受信データ領域は、アドレスR0000〜R02FF、R0500〜R05FF、L000〜L0FF、L200〜L3FFであり、これらは、使用されていないので、アドレスR0000〜R02FF、R0500〜R05FF、L000〜L0FF、L200〜L3FFに対応するフラグ情報をオン状態として、使用状況テーブルに登録する。 The received data area of the communication unit parameter is addresses R0000-R02FF, R0500-R05FF, L000-L0FF, L200-L3FF, and these are not used, so addresses R0000-R02FF, R0500-R05FF, L000-L0FF The flag information corresponding to L200 to L3FF is registered in the usage status table as the on state.
ここで、使用状況テーブルにおいて、アドレスR0000〜R02FF、R0500〜R05FF、L000〜L0FF、L200〜L3FFに対応するフラグ情報の中に、すでにオン状態であるアドレスが存在した場合、そのアドレスは重複状態にあると判定する。 Here, in the usage status table, if there is an address that is already in the flag information corresponding to the addresses R0000 to R02FF, R0500 to R05FF, L000 to L0FF, and L200 to L3FF, the address is in a duplicated state. Judge that there is.
そして、その通信ユニット・パラメータを示す番号とアドレスを重複リストに登録する。なお、重複状態アドレス以外のアドレスのフラグ情報はオン状態として、使用状況テーブルに登録する。 Then, the numbers and addresses indicating the communication unit parameters are registered in the duplicate list. Note that flag information of addresses other than the duplicate status address is registered in the usage status table as an on state.
そして、パラメータから次の通信ユニット・パラメータを取得する。(ステップS006) Then, the next communication unit parameter is obtained from the parameter. (Step S006)
すべての通信ユニット・パラメータについて、パラメータを取得したかを判定し、取得していなければ、ステップS002〜ステップS006を繰り返し、取得していれば、次のステップへ進む。(ステップS007) For all communication units / parameters, it is determined whether the parameters have been acquired. If they have not been acquired, steps S002 to S006 are repeated. If they have been acquired, the process proceeds to the next step. (Step S007)
次に、シーケンス・プログラム(ソースコード)から、先頭ステップの1命令を取得する。(ステップS008) Next, one instruction of the first step is acquired from the sequence program (source code). (Step S008)
情報テーブルを参照して、ステップの命令が出力するデータのアドレスとデータサイズを取得する。(ステップS009) By referring to the information table, the address and data size of the data output by the step instruction are acquired. (Step S009)
例えば、図8(b)のシーケンスプログラム(ソースコード)は、図8(a)のラダー図に対応するものである。図8(b)の、ステップ0105を読み出した場合、ニーモニック700のFUNCと、オペランド710のWBMOVを得る。これは、ステップ0105は、命令が関数タイプFUNCであり、その種別がWBMOVであることを示している。
For example, the sequence program (source code) in FIG. 8B corresponds to the ladder diagram in FIG. When
WBMOVはワード単位のブロック転送の命令(関数)であり、3個のオペランドを引数として、第1オペランド721のアドレスから第2オペランド722のアドレスへ、第3オペランド723のデータサイズ分(ワード数)を転送する仕様である。そして、図6の情報テーブル14eを参照することにより、命令600がWBMOVの場合、データ領域のアドレス601が第2オペランドに記述され、データサイズ602が第3オペランドに記述されていることが把握できる。
WBMOV is an instruction (function) for block transfer in units of words, and takes three operands as arguments from the address of the
ここで、図8(b)から第1オペランド721のD0100と、第2オペランド722のR04FCと、第3オペランド723の8dが取得される。従って、図8(c)に示すように、ステップ0105のWBMOVが出力するデータ領域は、アドレスR04FCからデータサイズ8ワード分である。ここでdは10進の値を示している。
Here, D0100 of the
使用状況テーブルにおいて、このアドレスとデータサイズにより示されるデータ領域と対応するフラグ情報を取得し、使用状況を判定する。(ステップS010) In the usage status table, flag information corresponding to the data area indicated by the address and the data size is acquired to determine the usage status. (Step S010)
そして、フラグ情報がデータ領域が使用されていないことを示すオフ状態ならば、データ領域が使用されていることを示すオン状態に変更する。(ステップS011) If the flag information is in an off state indicating that the data area is not used, the flag information is changed to an on state indicating that the data area is used. (Step S011)
また、フラグ情報がデータ領域がすでに使用されていることを示すオン状態ならば、この命令のステップ番号とアドレスを重複リストに登録する。(ステップS012) If the flag information is in an on state indicating that the data area is already used, the step number and address of this instruction are registered in the duplicate list. (Step S012)
例えば、図8(b)ステップ0105のWBMOVを読み出した場合にあって、使用状況テーブルを参照すると、アドレスR04FC〜R0503と対応するフラグ情報がオフ状態、であったとする。
For example, in the case where WBMOV is read in
ステップ0105のWBMOVが出力するデータ領域は、アドレスR04FCからデータサイズ8ワード分であり、アドレスR04FC〜R0503は使用されていないので、アドレスR04FC〜R0503に対応するフラグ情報をオン状態として、使用状況テーブルに登録する。
The data area output by the WBMOV in
そして、図7に示すように、使用状況テーブルが、アドレスR04FC〜R04FFと対応するフラグ情報がオフ状態、アドレスR0500〜R0503と対応するフラグ情報がオン状態、であったとする。 As shown in FIG. 7, it is assumed that the flag information corresponding to the addresses R04FC to R04FF is in the off state and the flag information corresponding to the addresses R0500 to R0503 is in the on state in the usage status table.
ステップ0105のWBMOVが出力するデータ領域は、アドレスR04FCからデータサイズ8ワード分であるので、アドレスR04FC〜R0503が使用されているかを、使用状況テーブルをチェックして判定する。
Since the data area output by the WBMOV in
この場合、使用状況テーブルにおいて、アドレスR04FC〜R04FFのフラグ情報はオフ状態であるが、アドレスR0500〜R0503のフラグ情報はすでにオン状態であるため、アドレスR0500〜R0503のデータ領域は、重複状態と判定される。 In this case, in the usage status table, the flag information of the addresses R04FC to R04FF is in the off state, but the flag information of the addresses R0500 to R0503 is already in the on state. Therefore, it is determined that the data area of the addresses R0500 to R0503 is in the overlapping state. Is done.
そして、アドレスR0500〜R0503とステップ番号0105の情報を重複リストに登録する。なお、アドレスR04FC〜R04FFのフラグ情報はオン状態として、使用状況テーブルに登録する。
Then, information of addresses R0500 to R0503 and
次に、シーケンス・プログラム(ソースコード)から、次ステップの1命令を取得する。(ステップS013) Next, one instruction of the next step is acquired from the sequence program (source code). (Step S013)
シーケンス・プログラム(ソースコード)の末尾のステップまで、命令を取得したか判定し、取得していなければ、ステップS009〜ステップS013を繰り返し、取得していれば、処理を終了する。(ステップS014) It is determined whether or not an instruction has been acquired up to the last step of the sequence program (source code). If not acquired, steps S009 to S013 are repeated. If acquired, the process ends. (Step S014)
このように、使用状況登録処理は、通信ユニットの受信データ領域とシーケンス・プログラムの命令が出力するデータ領域の使用状況をチェックし、その結果を使用状況テーブルおよび重複リストに出力する。 In this way, the usage status registration process checks the usage status of the received data area of the communication unit and the data area output by the sequence program instruction, and outputs the result to the usage status table and the duplicate list.
本発明のプログラムチェック機能は、使用状況登録処理により、通信ユニットの受信データ領域とシーケンス・プログラムの命令が出力するデータ領域との間で、重複状態を検出することができるので、シーケンス・プログラムが他のプログラマブルコントローラとのデータ交換をおこなっている場合においても、確実なプログラムチェックをおこなうことができる。さらに、重複状態の要因となったシーケンス・プログラムの命令および通信ユニット・パラメータを特定することができるので、重複状態の解消も容易におこなうことができる。 The program check function of the present invention can detect an overlapping state between the received data area of the communication unit and the data area output by the sequence program instruction by the usage status registration process. Even when data exchange with other programmable controllers is performed, a reliable program check can be performed. Furthermore, since the sequence program command and communication unit parameters that caused the overlap state can be specified, the overlap state can be easily eliminated.
[第2の実施形態]
図11は、本発明の第2の実施形態を示す使用状況表示例である。
本実施形態では、シーケンス・プログラム14aの使用状況を周辺装置10のディスプレイに表示する。
[Second Embodiment]
FIG. 11 is a usage status display example showing the second embodiment of the present invention.
In the present embodiment, the usage status of the
図11に示すように、使用状況表示800は、指定されたアドレスの使用状況を表示する。使用状況表示800は、使用状況登録処理により生成された使用状況テーブルと重複リストの情報をアドレス順に一覧表形式にして表示したものである。表示アドレス801に、表示したいアドレスの識別文字を入力すると、アドレス順の10H毎の行に区切って、各アドレスの使用状況のフラグ情報をアドレス昇順に一覧802表示する。一覧802の横に備えたスクロールバー803を操作することにより、表示するアドレス範囲を変更することができる。使用状況表示800において、シーケンス・プログラムの命令が使用しているデータ領域は、アドレスの識別文字811で示され、使用されていないデータ領域810は、中点(・)で示される。また、通信ユニット・パラメータに設定された受信データ領域820は、背景色を他と識別可能に表示される。そして、重複リストの情報にあるアドレスは、重複状態にあるデータ領域として、アドレスの識別文字821を強調表示する。従って、図11において、アドレスR04EC〜R04F3およびR04FC〜R0503は、シーケンス・プログラムの命令が使用しており、R0500〜R05FFは、受信データ領域に設定されているので、R0500〜R0503は重複状態にあることが把握できる。
As shown in FIG. 11, the
このように、任意のタイミングで使用状況を表示できるので、例えば、シーケンス・プログラムの編集中に使用状況表示をおこなうことにより、どこのデータ領域を使用すれば重複状態を発生させずに、領域を確保できるか、容易に把握することができる。また、使用状況表示において、重複状態にあるデータ領域を識別することができるので、このデータ領域を確認するとともに、重複状態を解消するには、どこのデータ領域を使用すればよいか、容易に把握することができる。 In this way, the usage status can be displayed at an arbitrary timing.For example, by displaying the usage status while editing a sequence program, the data area can be used without generating an overlapping state. It can be easily grasped whether it can be secured. In addition, in the usage status display, it is possible to identify data areas that are in an overlapping state, so it is easy to check which data area to use and to determine which data area to use to eliminate the overlapping state I can grasp it.
[第3の実施形態]
図12は、本発明の第3の実施形態を示すシーケンス・プログラム表示例である。
本実施形態では、周辺装置10によるシーケンス・プログラムの表示において、重複状態にあるデータ領域を使用している命令およびアドレスを識別可能に表示する。
[Third Embodiment]
FIG. 12 is a sequence program display example showing the third embodiment of the present invention.
In the present embodiment, in the display of the sequence program by the
図12に示すように、シーケンス・プログラム表示900は、シーケンス・プログラム上において、重複状態にあるデータ領域を使用している命令を識別可能に表示することができる。シーケンス・プログラム表示900は、使用状況登録処理により生成された使用状況テーブルと重複リストの情報を参照して、重複状態にあるデータ領域を使用している命令およびアドレスを強調表示する。従って、図12において、コイル911のアドレスL220と、命令(関数)912は重複状態にあることが把握できる。
As shown in FIG. 12, the
このように、周辺装置10は、シーケンス・プログラムの表示において、重複状態にあるデータ領域を使用している命令およびアドレスを強調表示できるので、係わる命令およびアドレスを容易に見つけることができる。
In this manner, the
なお、本実施形態では、使用状況表示において、命令の出力データ領域および受信データ領域を表示しているが、命令の入力データ領域および送信データ領域を識別可能にして、双方のデータ領域を表示してもよい。シーケンス・プログラムにおいて使用される、すべてのデータ領域を視覚的に把握することができる。 In this embodiment, in the usage status display, the output data area and the reception data area of the instruction are displayed. However, the input data area and the transmission data area of the instruction can be identified, and both data areas are displayed. May be. All data areas used in the sequence program can be grasped visually.
10:周辺装置、 11:CPU、 12:内部バス、
13:ROM、 13a:BIOS、 14:RAM、
14a:シーケンス・プログラム(ソースコード)、
14b:通信ユニット・パラメータ、 14c:使用状況テーブル、
14d:重複リスト、 14e:情報テーブル、 21:ディスプレイ、
22:キーボード、 23:マウス、 24:HDD、 25:OS、
26:周辺装置ソフトウェア、 26a:シーケンス・プログラム編集プログラム、
26b:変換プログラム、 26c:通信ユニット・パラメータ設定プログラム、
26d:プログラムチェック・プログラム、 27:通信インターフェース、
28:システムメモリ、
100:プログラマブルコントローラ、
110:CPUユニット、 111:CPU、 112:内部バス、
113:プログラムメモリ、 113a:シーケンス・プログラム、
114:RAM、 114a:内部メモリ、
115:ROM、 115a:システムプログラム、
118:I/O制御回路、 119:通信インターフェース、
120:通信ユニット、 121:CPU、
124:RAM、 124a:コモンメモリ、
125:ROM、 125a:制御プログラム、
129:通信インターフェース、
300:FL−net通信パラメータ設定、
310:リレーリンク、
311:リンク先頭アドレス、 313:リンク領域ワード数、
314:送信領域先頭アドレス、 316:送信領域ワード数、
321:リンク先頭アドレス(設定値)、 321:リンク末尾アドレス、
323:リンク領域ワード数(設定値)、 324:送信領域先頭アドレス(設定値)、
325:送信領域末尾アドレス、 326:送信領域ワード数(設定値)、
410:レジスタリンク、
411:リンク先頭アドレス、 413:リンク領域ワード数、
414:送信領域先頭アドレス、 416:送信領域ワード数、
421:リンク先頭アドレス(設定値)、 421:リンク末尾アドレス、
423:リンク領域ワード数(設定値)、 424:送信領域先頭アドレス(設定値)、
425:送信領域末尾アドレス、 426:送信領域ワード数(設定値)、
600:命令、 601:アドレス、 602:データサイズ、
700:ニモニック、 710:オペランド、 720:命令(関数)、
721:第1オペランド、 722:第2オペランド、 723:第3オペランド、
800:使用状況表示、 801:表示アドレス、 802:一覧、
803:スクロールバー、
810:データ領域、 811:識別文字、
820:受信データ領域、 821:識別文字(強調表示)、
900:シーケンス・プログラム表示、 901:コイル、 902:命令(関数)
10: peripheral device, 11: CPU, 12: internal bus,
13: ROM, 13a: BIOS, 14: RAM,
14a: sequence program (source code),
14b:
14d: Duplicate list, 14e: Information table, 21: Display,
22: Keyboard, 23: Mouse, 24: HDD, 25: OS,
26: Peripheral device software, 26a: Sequence program editing program,
26b: Conversion program, 26c: Communication unit / parameter setting program,
26d: program check program, 27: communication interface,
28: System memory,
100: Programmable controller,
110: CPU unit, 111: CPU, 112: Internal bus,
113: Program memory, 113a: Sequence program,
114: RAM, 114a: internal memory,
115: ROM, 115a: system program,
118: I / O control circuit, 119: Communication interface,
120: Communication unit 121: CPU
124: RAM, 124a: Common memory,
125: ROM, 125a: control program,
129: Communication interface,
300: FL-net communication parameter setting,
310: relay link,
311: Link head address, 313: Number of link area words,
314: Transmission area start address, 316: Number of transmission area words,
321: Link start address (setting value), 321: Link end address,
323: Link area word number (setting value), 324: Transmission area head address (setting value),
325: Transmission area end address, 326: Transmission area word number (setting value),
410: Register link,
411: Link head address, 413: Link area word number,
414: Transmission area start address, 416: Transmission area word count,
421: link start address (setting value), 421: link end address,
423: Link area word number (setting value), 424: Transmission area head address (setting value),
425: transmission area end address, 426: transmission area word number (setting value),
600: Instruction, 601: Address, 602: Data size,
700: mnemonic, 710: operand, 720: instruction (function),
721: first operand, 722: second operand, 723: third operand,
800: Usage status display, 801: Display address, 802: List,
803: Scroll bar,
810: Data area, 811: Identification character,
820: Received data area, 821: Identification character (highlighted),
900: Sequence program display, 901: Coil, 902: Command (function)
Claims (4)
前記記憶手段から前記シーケンス・プログラムを読み出すシーケンス・プログラム読み出し手段と、
前記記憶手段から前記通信ユニット・パラメータを読み出す通信ユニット・パラメータ読み出し手段と、
前記シーケンス・プログラムを構成する命令と前記命令が出力するデータサイズとが格納された情報テーブルと、
前記シーケンス・プログラムの前記命令が出力する第1データ領域と、
前記通信ユニット・パラメータに設定された受信データ領域を取得する受信データ領域取得手段と、
前記受信データ領域取得手段により取得された第2データ領域と、
前記第1データ領域および前記第2データ領域の使用状況を登録する使用状況テーブルと、
前記第1データ領域および前記第2データ領域の使用状況を前記使用状況テーブル登録するとともに、領域間の重複状態を判定する使用状況登録手段と、
前記重複状態にあるデータ領域を登録する重複リストと、
前記重複リストにより、前記シーケンス・プログラムと前記通信ユニット・パラメータの重複状態の確認をおこなうプログラムチェック手段と、
を備えることを特徴とするプログラマブルコントローラの周辺装置。 Storage means for storing sequence programs and communication unit parameters;
Sequence program reading means for reading the sequence program from the storage means;
Communication unit / parameter reading means for reading out the communication unit / parameter from the storage means;
An information table storing instructions constituting the sequence program and data sizes output by the instructions;
A first data area output by the instruction of the sequence program;
A reception data area acquisition means for acquiring a reception data area set in the communication unit parameter;
A second data area obtained by the received data area obtaining means;
A usage status table for registering usage statuses of the first data area and the second data area;
Usage status registration means for registering the usage status of the first data area and the second data area in the usage status table and determining an overlapping status between the areas;
A duplicate list for registering the data area in the duplicate state;
Program check means for confirming the duplication status of the sequence program and the communication unit parameter by the duplication list;
A peripheral device for a programmable controller, comprising:
前記受信データ領域取得手段は、
前記通信ユニット・パラメータの通信方式を判別する通信方式判別手段と、
前記通信方式ごとに定義されたパラメータ情報と、
前記通信ユニット・パラメータの設定値を取得するパラメータ設定値取得手段と、
前記パラメータの設定値から受信データを格納するデータ領域の先頭アドレスおよびデータサイズを計算するアドレス計算手段と、
を備えることを特徴とするプログラマブルコントローラの周辺装置。 The peripheral device of the programmable controller according to claim 1,
The reception data area acquisition means includes
A communication method determining means for determining a communication method of the communication unit parameter;
Parameter information defined for each communication method;
Parameter setting value acquisition means for acquiring a setting value of the communication unit parameter;
An address calculating means for calculating a start address and a data size of a data area for storing received data from the set value of the parameter;
A peripheral device for a programmable controller, comprising:
前記データ領域の前記使用状況と重複状態を識別可能に画面に表示する使用状況表示手段を備えることを特徴とするプログラマブルコントローラの周辺装置。 The peripheral device of the programmable controller according to claim 1 or 2,
A peripheral device for a programmable controller, comprising: a usage status display means for displaying the usage status and the overlapping status of the data area on a screen in an identifiable manner.
重複状態にある前記データ領域のアドレスが割り付けられた前記シーケンス・プログラムの前記命令コードを他の前記命令コードと識別可能に画面に表示するシーケンス・プログラム表示手段を備えることを特徴とするプログラマブルコントローラの周辺装置。 The peripheral device of the programmable controller according to claim 1 or 2,
What is claimed is: 1. A programmable controller comprising: a sequence program display means for displaying the instruction code of the sequence program to which an address of the data area in an overlapping state is assigned on the screen so as to be distinguishable from other instruction codes. Peripheral device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011237792A JP5899805B2 (en) | 2011-10-28 | 2011-10-28 | Peripheral device of programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2011237792A JP5899805B2 (en) | 2011-10-28 | 2011-10-28 | Peripheral device of programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013097460A true JP2013097460A (en) | 2013-05-20 |
| JP5899805B2 JP5899805B2 (en) | 2016-04-06 |
Family
ID=48619368
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011237792A Expired - Fee Related JP5899805B2 (en) | 2011-10-28 | 2011-10-28 | Peripheral device of programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5899805B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108345264A (en) * | 2017-01-25 | 2018-07-31 | 发那科株式会社 | Programmable controller |
| JP2022011696A (en) * | 2020-06-30 | 2022-01-17 | 株式会社安川電機 | Engineering device, engineering method, and program |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003122409A (en) * | 2001-10-11 | 2003-04-25 | Fuji Electric Co Ltd | Program checking method, sequence program editing device, recording medium, and program |
-
2011
- 2011-10-28 JP JP2011237792A patent/JP5899805B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003122409A (en) * | 2001-10-11 | 2003-04-25 | Fuji Electric Co Ltd | Program checking method, sequence program editing device, recording medium, and program |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108345264A (en) * | 2017-01-25 | 2018-07-31 | 发那科株式会社 | Programmable controller |
| JP2018120416A (en) * | 2017-01-25 | 2018-08-02 | ファナック株式会社 | Programmable controller |
| US10656611B2 (en) | 2017-01-25 | 2020-05-19 | Fanuc Corporation | Programmable controller |
| JP2022011696A (en) * | 2020-06-30 | 2022-01-17 | 株式会社安川電機 | Engineering device, engineering method, and program |
| US12085904B2 (en) | 2020-06-30 | 2024-09-10 | Kabushiki Kaisha Yaskawa Denki | Engineering device, engineering method, and information storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP5899805B2 (en) | 2016-04-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9746845B2 (en) | Support device, recording medium, and method for facilitating data exchange between different types of progrrammable logic controllers | |
| JP6443190B2 (en) | Programmable logic controller, control method of programmable logic controller, and control program | |
| CN110515842B (en) | Program debugging method and device, electronic equipment and storage medium | |
| CN111966521A (en) | Hardware error processing method, processor, controller, electronic device and storage medium | |
| JP4525681B2 (en) | Program generating device for programmable controller, program generating method for programmable controller, and recording medium recording program of the method | |
| TWI492004B (en) | Programmable logic controller,programmable logic controller system and method for creating execution error information | |
| JP5899805B2 (en) | Peripheral device of programmable controller | |
| JPWO2018198174A1 (en) | Programmable logic controller system and engineering tool program | |
| JP5496429B1 (en) | Engineering tools and programmable logic controllers | |
| US20120011490A1 (en) | Development system | |
| JP6767896B2 (en) | Programmable logic controller system, programmable logic controller, communication test support device, communication test support method, and computer program that can be executed by the communication test support device. | |
| JP2016045712A (en) | Programmable logic controller | |
| JP2015200971A (en) | Control system with falsification detection function | |
| JP5490307B2 (en) | Communication device | |
| KR101122418B1 (en) | Protocol interface device, system and method using a text file | |
| JP2012113502A (en) | Verification device for semiconductor integrated circuit | |
| JP2014052671A (en) | Programmable logic controller | |
| JP5738065B2 (en) | Control program development support device | |
| JP4760607B2 (en) | Programmable controller | |
| CN110719213A (en) | A data processing method, device, electronic device and storage medium | |
| JP6156175B2 (en) | Information processing apparatus and program | |
| JP4802130B2 (en) | Drawing creation program, drawing creation apparatus, and drawing creation method | |
| JP6394169B2 (en) | Simulation device | |
| CN100397371C (en) | How to Identify a Bridge | |
| CN121037251A (en) | A method and device for identifying air traffic control smart station lines |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140923 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150729 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150825 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151020 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20160209 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160222 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5899805 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |