JP2005063335A - Address recognition method - Google Patents

Address recognition method Download PDF

Info

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
Application number
JP2003295803A
Other languages
Japanese (ja)
Inventor
Hiroo Haraguchi
浩朗 原口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2003295803A priority Critical patent/JP2005063335A/en
Publication of JP2005063335A publication Critical patent/JP2005063335A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To make it possible to communicate with a PLC whose object is engineering by enabling an engineering tool only to know address setting of the physical switch of the PLC. <P>SOLUTION: A control device is provided with an engineering-executing personal computer which is connected to a plurality of the PLCs via USBs. The engineering tool can specify the PLC which executes engineering, only with the physical address set by the address switch to make the communication possible by executing automatically communication for inquiring about information on an address switch provided for specifying the PLCs from the personal computer side when the PLCs are detected, storing the address number obtained by the inquiry and the logical handle number allocated from the personal computer side in an address table provided inside the personal computer, and converting automatically the address number to the handle number inside the personal computer without being aware of the logical handle number. <P>COPYRIGHT: (C)2005,JPO&NCIPI

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)。
特開2001−282701号公報
Conventionally, in a control device in which a personal computer to be engineered and a PLC are physically connected one-to-one with RS-232C or the like, the engineering tool on the personal computer is used to perform engineering with the PLC that is the target of the engineering tool. The communication is performed by using the physical port number of RS-232C to which the PLC of this is connected.
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). .
JP 2001-282701 A

従来、エンジニアリングを行うパソコンと複数の同一機種の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 personal computer 10 and a PLC 30 that perform engineering constitute a control device by connecting each to a USB HUB 20 with a USB cable 40. In FIG. 2, the PLC 30 is provided with a USB port 32 for connecting the USB cable 40 and a switch 31 for setting an address, and this switch 31 is set to be unique within the control device. As shown in FIG. 3, when the power of the PLC 30 is turned on, the PLC 30 is automatically detected by the personal computer 10 by the plug and play function, and a logical communication path called a pipe 13 between the driver 12 of the personal computer 10 and the PLC 30. And a communication resource for accessing the communication path, that is, the handle number 14 is allocated from the personal computer side OS. However, in this method, since the handle number 14 is assigned in the order in which the PLCs 30 are detected, the handle number 14 of the recognized PLC 30 is not always the same.
Therefore, the engineering tool 11 on the personal computer must check the handle number 14 assigned to the PLC 30 to be engineered every time and access the driver 12 with the handle number 14.
Therefore, in the present invention, when the pipe 13 and the handle number 14 which are logical communication paths shown in FIG. 3 are established in the personal computer side driver 12 by the automatic detection of the PLC 30, the handle number 14 is used to address the PLC 30. Run the query automatically.

図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 personal computer 10 side when the PLC 30 is detected.
FIG. 7 shows a flowchart on the PLC 30 side that has received the inquiry command message.
The following description will be made along this flowchart. FIG. 5 shows the format of the address inquiry message. When the PLC 30 is turned on and the logical communication path and the handle number 14 are created in the personal computer side driver 12, the personal computer side driver 12 creates the inquiry command message shown in FIG. It is transmitted to the PLC 30 connected to the handle number 14.
The PLC 30 that has received the inquiry command message reads the address switch 31 provided in the PLC 30, and handles the address number 14 of the address inquiry command sent from the personal computer side driver 12 to the address inquiry response shown in FIG. The address read from 31 is set and transmitted to the personal computer 10. The personal computer side driver 12 that has received the response message from the PLC 30 compares the handle number 14 in the response message, and if it matches with its own handle number 14, the corresponding address table shown in FIG. The handle number 14 is registered in the record to be set, and the status flag indicating that the connection is established is set to ON.
The engineering tool 11 on the personal computer designates the number of the address switch 31 provided in the PLC 30 and requests communication from the personal computer side driver 12.
The driver 12 that has received the communication request refers to the address table in the driver 12 based on the address number specified by the engineering tool 11, checks the status flag, and if connected, is set in the address table. Communication is executed using the handle number 14 that is present. The user of the engineering tool 11 sets the address set in the address switch 31 of the PLC 30 once in the engineering tool 11 at the first activation.

システム構成例System configuration example PLCの構成Configuration of PLC パソコンとPLC間の論理的通信路Logical communication path between PC and PLC アドレステーブルAddress table アドレス情報問い合わせ伝文Address information inquiry message パソコン側アドレス情報問い合わせフローチャートPersonal computer address information inquiry flowchart PLC側アドレス情報問い合わせフローチャートPLC side address information inquiry flowchart

符号の説明Explanation of symbols

10 パソコン
11 エンジニアリングツール
12 ドライバ
13 パイプ(論理的通信路)
14 ハンドル番号
20 USBHUB
30 PLC
31 アドレススイッチ
32 USBポート
40 USBケーブル
10 PC 11 Engineering tool 12 Driver 13 Pipe (logical communication path)
14 Handle number 20 USBHUB
30 PLC
31 Address switch 32 USB port 40 USB cable

Claims (1)

エンジニアリングを行うパソコンと複数の同一機種のPLCがUSB(Universal Serial Bus)で接続された制御装置であって、PLCを特定するために設けられたアドレススイッチの情報を問い合わせるための通信をPLC検出時にパソコン側から自動的に実行し、問い合わせによって得られたアドレス番号とパソコン側から割り当てられた論理的なハンドル番号をパソコン内部に設けたアドレステーブルに格納し、パソコン内部でアドレス番号とハンドル番号の変換を自動的に実行することで、エンジニアリングツールは論理的なハンドル番号を意識することなくアドレススイッチで設定された物理的なアドレスだけでエンジニアリングを行おうとするPLCを特定し、通信を可能にすることを特徴とするアドレス認識方法。 A control device in which a personal computer for engineering and a plurality of PLCs of the same model are connected by USB (Universal Serial Bus), and communication for inquiring information of an address switch provided to identify the PLC is detected when the PLC is detected. Automatically executed from the personal computer side, the address number obtained from the inquiry and the logical handle number assigned from the personal computer side are stored in the address table provided in the personal computer, and the address number and handle number are converted inside the personal computer. By automatically executing the above, the engineering tool can identify the PLC to be engineered using only the physical address set by the address switch without being aware of the logical handle number, and enable communication. An address recognition method characterized by the above.
JP2003295803A 2003-08-20 2003-08-20 Address recognition method Pending JP2005063335A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (8)

* Cited by examiner, † Cited by third party
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