JP2005063335A - Address recognition method - Google Patents
Address recognition method Download PDFInfo
- Publication number
- JP2005063335A JP2005063335A JP2003295803A JP2003295803A JP2005063335A JP 2005063335 A JP2005063335 A JP 2005063335A JP 2003295803 A JP2003295803 A JP 2003295803A JP 2003295803 A JP2003295803 A JP 2003295803A JP 2005063335 A JP2005063335 A JP 2005063335A
- Authority
- JP
- Japan
- Prior art keywords
- plc
- address
- personal computer
- engineering
- handle number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、エンジニアリングを行うパソコンと複数の同一機種のPLCがUSBで接続される制御装置であって、エンジニアリングを行うパソコンがエンジニアリングを行うとする目的のPLCを特定するためのアドレス認識方式に関する。 The present invention relates to an address recognition method for specifying a target PLC to be engineered by a personal computer for engineering, in which a personal computer for engineering and a plurality of PLCs of the same model are connected by USB.
従来、エンジニアリングを行うパソコンとPLCがRS−232C等で1対1に物理的に接続される制御装置においては、エンジニアリングツールが目的とするPLCとエンジニアリングを行うために、パソコン上のエンジニアリングツールは目的のPLCが接続されているRS−232Cの物理的なポート番号を使うことで通信を行っていた。
またエンジニアリングを行うパソコンと複数の同一機種のPLCがUSBで接続される制御装置では、パソコンのOSがPLCを検出した順番にパイプと呼ばれる論理的通信資源とそれをアクセスするためのハンドル番号を動的に割り当てるため、PLCを接続するUSBポートの場所を固定化する、あるいはPLCの電源を投入する順番をあらかじめ決めることで、エンジニアリングしようとする対象のPLCを特定していた(例えば特許文献1)。
Also, in a control device in which a personal computer to be engineered and a plurality of PLCs of the same model are connected via USB, logical communication resources called pipes and handle numbers for accessing them are moved in the order in which the personal computer OS detects the PLC. For this purpose, the location of the USB port to which the PLC is connected is fixed, or the order in which the PLC power is turned on is determined in advance to identify the PLC to be engineered (for example, Patent Document 1). .
従来、エンジニアリングを行うパソコンと複数の同一機種のPLCがUSBで接続される制御装置では、パソコンのOSがPLCを検出した順番にパイプと呼ばれる論理的な通信資源とそれをアクセスするためのハンドル番号を動的に割り当てる。そのため、PLCを接続するUSBHUBのポートの場所、PLCへの電源の投入タイミング、電源投入状態のPLCのUSBHUBへの接続タイミング等で、PLCに対して割り当てられるハンドル番号は不定となり、エンジニアリングしようとする対象のPLCのハンドル番号が毎回変わり、PLCを特定することが困難であるという問題があった。
そこで本発明は、これらの問題を解消するべくなされたものであり、エンジニアリングツールがPLCの物理的スイッチのアドレス設定を知るだけでエンジニアリングを目的とするPLCとの通信ができるようにすることを目的とする。
Conventionally, in a control device in which a personal computer for engineering and a plurality of PLCs of the same model are connected via USB, logical communication resources called pipes and handle numbers for accessing the logical communication resources are detected in the order in which the personal computer OS detects the PLC. Is dynamically allocated. Therefore, the handle number assigned to the PLC is undefined depending on the location of the USBHUB port to which the PLC is connected, the power-on timing of the PLC, the connection timing of the power-on PLC to the USBHUB, etc. There is a problem that it is difficult to specify the PLC because the handle number of the target PLC changes every time.
Therefore, the present invention has been made to solve these problems, and an object of the present invention is to enable an engineering tool to communicate with a PLC for engineering purposes only by knowing the address setting of a physical switch of the PLC. And
上記課題を解決するために本発明は、エンジニアリングを行うパソコンと複数の同一機種のPLCがUSBで接続される制御装置において、PLC側にPLCを特定するためのアドレスを設定するスイッチとパソコン側から発行されるアドレス情報問い合わせに応答する手段を持たせ、またパソコン側ドライバにPLC検出時にPLCに対してアドレス情報を問い合わせる手段を持たせる。
PLCの電源投入により、PLCを検出したパソコンはOSからハンドル番号を割り当てられた後、そのハンドル番号を使用してPLCに対してアドレス情報の問い合わせ伝文を送信する。
アドレス問い合わせ伝文を受け取ったPLCは、PLCのアドレススイッチの情報を読み出し、パソコンに応答を送信する。
アドレス情報問い合わせ応答を受け取ったパソコンは、OSから割り当てられたハンドル番号とPLCからの応答伝文中に含まれる物理アドレスをパソコン内部に設けたアドレステーブルに記憶する。
これによりPLCの物理アドレスとOSから割り当てられたハンドル番号をアドレステーブルに関連づけることが可能になり、パソコン上のエンジニアリングツールはPLCの物理アドレスを指定することで、論理ハンドル番号を意識せず、PLCの物理アドレスだけでエンジニアリングする対象のPLCと通信を行うことが可能となる。
In order to solve the above-described problems, the present invention provides a control device in which a personal computer for engineering and a plurality of PLCs of the same model are connected by USB, and a switch for setting an address for specifying the PLC on the PLC side and the personal computer side. A means for responding to the issued address information inquiry is provided, and a personal computer side driver is provided with means for inquiring address information from the PLC when the PLC is detected.
After the PLC is turned on, the personal computer that detected the PLC is assigned a handle number from the OS, and then transmits an inquiry message for address information to the PLC using the handle number.
The PLC that has received the address inquiry message reads the address switch information of the PLC and transmits a response to the personal computer.
The personal computer that has received the address information inquiry response stores the handle number assigned from the OS and the physical address included in the response message from the PLC in an address table provided in the personal computer.
As a result, the physical address of the PLC and the handle number assigned by the OS can be associated with the address table, and the engineering tool on the personal computer designates the physical address of the PLC so that the PLC does not recognize the logical handle number. It is possible to communicate with the PLC to be engineered using only the physical address.
本発明によれば、エンジニアリングを行うパソコンと複数の同一機種のPLCがUSBで接続される制御装置において、PLC検出時にパソコン側のドライバからPLCのアドレス情報の問い合わせを自動的に行い、その応答でPLC側の物理的アドレスとパソコン側で動的に割り当てられるハンドル番号を関係づけるアドレステーブルをパソコン側ドライバ内に記憶し、エンジニリングツールから指定されるPLCの物理的アドレスをパソコン内部の論理的ハンドル番号に自動的に変換することで、エンジニアリングツールはPLCの物理的スイッチのアドレス設定を知るだけでよく、エンジニアリングを目的とするPLCとの通信を可能とする。またエンジニアリングツールの利用者は最初の起動時にだけPLCの物理アドレスをツール内に設定し、ツール内に記憶させるだけでよく、電源投入ごとに設定を変更する必要がなくなる。 According to the present invention, in a control device in which a personal computer to be engineered and a plurality of PLCs of the same model are connected by USB, a PLC address information is automatically inquired from a driver on the personal computer side when a PLC is detected. An address table that associates the physical address on the PLC side with the handle number dynamically assigned on the personal computer side is stored in the personal computer side driver, and the physical address of the PLC specified by the engineering tool is a logical handle inside the personal computer. By automatically converting to a number, the engineering tool only needs to know the address settings of the physical switch of the PLC and can communicate with the PLC for engineering purposes. Further, the user of the engineering tool only needs to set the physical address of the PLC in the tool and store it in the tool only at the first startup, and there is no need to change the setting every time the power is turned on.
以下、本発明について図を用いて説明する。 The present invention will be described below with reference to the drawings.
図1は、本発明のシステム構成例である。図2は、PLCの構成例である。図3は、パソコンとPLC間の論理的通信路である。図4は、ハンドル番号とPLCアドレス番号を記憶するアドレステーブルである。図5は、PLCの検出時に行うアドレス問い合わせの伝文フォーマットである。図6は、パソコンがPLCを検出したときの、PLCに対するアドレス問合せのフローチャートである。図7は、PLCがパソコンからアドレス問い合わせ伝文を受信した場合のフローチャートである。
図1において、エンジニアリングを行うパソコン10とPLC30は、各々をUSBケーブル40でUSBHUB20に接続することで制御装置を構成している。図2においてPLC30はUSBケーブル40を接続するためのUSBポート32およびアドレスを設定するためのスイッチ31が設けられており、このスイッチ31は制御装置内で一意になるように設定される。図3に示すように、PLC30の電源を投入した場合、プラグアンドプレイ機能によりパソコン10で自動的にPLC30が検出され、パソコン10のドライバ12とPLC30の間にパイプ13と呼ばれる論理的な通信路とその通信路をアクセスするための通信資源つまりハンドル番号14がパソコン側OSから割り当てられる。しかしこの方法ではPLC30を検出した順番にハンドル番号14を割り当てるため、認識したPLC30のハンドル番号14は毎回同じであるとは限らない。
そのためパソコン上のエンジニアリングツール11はエンジニアリングを行おうとするPLC30に割り当てられたハンドル番号14を毎回調べ、そのハンドル番号14でドライバ12をアクセスしなければならない。
そこで本発明では、PLC30の自動検出によりパソコン側ドライバ12内に図3に示した論理的通信路であるパイプ13とハンドル番号14が確立された場合、そのハンドル番号14を使いPLC30に対してアドレス問い合わせを自動的に実行する。
FIG. 1 is a system configuration example of the present invention. FIG. 2 is a configuration example of the PLC. FIG. 3 shows a logical communication path between the personal computer and the PLC. FIG. 4 is an address table that stores handle numbers and PLC address numbers. FIG. 5 shows a message format of an address inquiry performed when a PLC is detected. FIG. 6 is a flowchart of address inquiry to the PLC when the personal computer detects the PLC. FIG. 7 is a flowchart when the PLC receives an address inquiry message from the personal computer.
In FIG. 1, a
Therefore, the
Therefore, in the present invention, when the
図6にPLC30を検出した場合のパソコン10側のフローチャートを示す。
図7には問い合わせ指令伝文を受信したPLC30側のフローチャートを示す。
以下このフローチャートに沿って説明する。図5にアドレス問い合わせ伝文のフォーマットを示す。PLC30に電源が投入され、パソコン側ドライバ12内に論理的通信路とハンドル番号14が作成された場合、パソコン側ドライバ12は図5(a)に示す問い合わせ指令伝文を作成し、作成されたハンドル番号14に接続されているPLC30に送信する。
問い合わせ指令伝文を受信したPLC30は、PLC30に設けられたアドレススイッチ31を読み出し、図5(b)に示すアドレス問い合わせ応答にパソコン側ドライバ12から送られたアドレス問い合わせ指令のハンドル番号14とアドレススイッチ31から読み出したアドレスをセットし、パソコン10に送信する。PLC30からの応答伝文を受信したパソコン側ドライバ12は、応答伝文中のハンドル番号14を比較し、自分のハンドル番号14と一致すれば、パソコン側ドライバ12内の図4に示すアドレステーブルの該当するレコードにハンドル番号14を登録し、接続中であることを示す状態フラグをオンにセットする。
パソコン上のエンジニアリングツール11は、PLC30に設けられたアドレススイッチ31の番号を指定し、パソコン側ドライバ12に通信を要求する。
通信の要求を受け付けたドライバ12はエンジニアリングツール11から指定されたアドレス番号をもとに,ドライバ12内のアドレステーブル参照し、状態フラグをチェックし接続中であれば、アドレステーブル中に設定されているハンドル番号14を使い通信を実行する。エンジニアリングツール11の利用者はPLC30のアドレススイッチ31に設定されたアドレスをエンジニアリングツール11内に最初の起動時に一度だけ設定する。
FIG. 6 shows a flowchart on the
FIG. 7 shows a flowchart on the
The following description will be made along this flowchart. FIG. 5 shows the format of the address inquiry message. When the
The
The
The
10 パソコン
11 エンジニアリングツール
12 ドライバ
13 パイプ(論理的通信路)
14 ハンドル番号
20 USBHUB
30 PLC
31 アドレススイッチ
32 USBポート
40 USBケーブル
10 PC 11
14
30 PLC
31
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003295803A JP2005063335A (en) | 2003-08-20 | 2003-08-20 | Address recognition method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003295803A JP2005063335A (en) | 2003-08-20 | 2003-08-20 | Address recognition method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005063335A true JP2005063335A (en) | 2005-03-10 |
Family
ID=34371898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003295803A Pending JP2005063335A (en) | 2003-08-20 | 2003-08-20 | Address recognition method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005063335A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007265238A (en) * | 2006-03-29 | 2007-10-11 | Fujitsu Ltd | Simulation device and simulation method |
WO2009113167A1 (en) * | 2008-03-12 | 2009-09-17 | 株式会社U’eyes Design | User interface verification system, verification controller, and method of verification |
JP2009267720A (en) * | 2008-04-24 | 2009-11-12 | Mitsubishi Electric Corp | Communication start system |
JP2015513222A (en) * | 2012-03-21 | 2015-04-30 | フィニサー コーポレイション | Chip identification pad for integrated circuit identification in an integrated circuit assembly |
JP6099841B2 (en) * | 2015-03-19 | 2017-03-22 | 三菱電機株式会社 | Control system, programmable controller and engineering tool |
US10660154B2 (en) | 2015-01-14 | 2020-05-19 | Honeywell International Inc. | Positioning system leveraged for installation and commissioning |
-
2003
- 2003-08-20 JP JP2003295803A patent/JP2005063335A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007265238A (en) * | 2006-03-29 | 2007-10-11 | Fujitsu Ltd | Simulation device and simulation method |
WO2009113167A1 (en) * | 2008-03-12 | 2009-09-17 | 株式会社U’eyes Design | User interface verification system, verification controller, and method of verification |
JP5037676B2 (en) * | 2008-03-12 | 2012-10-03 | 株式会社U’eyes Design | User interface verification system, verification control apparatus, and verification method |
JP2009267720A (en) * | 2008-04-24 | 2009-11-12 | Mitsubishi Electric Corp | Communication start system |
JP2015513222A (en) * | 2012-03-21 | 2015-04-30 | フィニサー コーポレイション | Chip identification pad for integrated circuit identification in an integrated circuit assembly |
US10660154B2 (en) | 2015-01-14 | 2020-05-19 | Honeywell International Inc. | Positioning system leveraged for installation and commissioning |
JP6099841B2 (en) * | 2015-03-19 | 2017-03-22 | 三菱電機株式会社 | Control system, programmable controller and engineering tool |
JPWO2016147392A1 (en) * | 2015-03-19 | 2017-04-27 | 三菱電機株式会社 | Control system, programmable controller and engineering tool |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2005309617A5 (en) | ||
JP6543676B2 (en) | Transmission control device and program | |
JP2006236347A (en) | Multiple home device control method using single controller and control device | |
ATE495487T1 (en) | INFORMATION PROCESSING APPARATUS, SYSTEM AND PRINTER CONTROL | |
JP2010219725A (en) | Network device and method of releasing external storage device on network | |
WO2017177892A1 (en) | Installation of operating system | |
JP2005063335A (en) | Address recognition method | |
JP5792866B2 (en) | Profibus DP master device | |
WO2016041453A1 (en) | Remote resource access method and exchange device | |
WO2018164037A1 (en) | Relay apparatus, server, method for setting relay apparatus, and recording medium | |
KR20020013425A (en) | Electronic device, apparatus of the same and data reading method | |
JP4649584B2 (en) | Peripheral device driver installation system | |
KR20010032148A (en) | Device driver for automatic conversion of device type data | |
JP2009223636A (en) | Information processing system, function expansion unit, and control method | |
JP4550857B2 (en) | Information processing apparatus allocation method, management server and terminal for executing the method | |
JP5107153B2 (en) | Programmable controller system | |
JP5565624B2 (en) | Parameter setting tool | |
JP2009301469A (en) | Temperature controller system | |
JP2006178704A (en) | Device having a plurality of functions and host device allowed to be connected to the device | |
JP2006331088A (en) | Storage medium processor | |
JP2003196177A5 (en) | ||
JP5049196B2 (en) | Image forming system, terminal device, and login server device | |
JP2010103838A (en) | Network device and connecting method thereof | |
KR20170103206A (en) | Communication module in inverter | |
KR20070000682A (en) | The printer having multiple usb ports and method for the same |