JP5786385B2 - Operation terminal, program and control system - Google Patents
Operation terminal, program and control system Download PDFInfo
- Publication number
- JP5786385B2 JP5786385B2 JP2011056378A JP2011056378A JP5786385B2 JP 5786385 B2 JP5786385 B2 JP 5786385B2 JP 2011056378 A JP2011056378 A JP 2011056378A JP 2011056378 A JP2011056378 A JP 2011056378A JP 5786385 B2 JP5786385 B2 JP 5786385B2
- Authority
- JP
- Japan
- Prior art keywords
- connection
- operation terminal
- port
- communication
- determined
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25166—USB, firewire, ieee-1394
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Description
本発明は、操作端末、プログラムおよび制御システムに関し、特に、通信のためのポートに繋がれた機器の接続形態に従って、機器と操作端末とを自動で接続するための技術に関する。 The present invention relates to an operation terminal, a program, and a control system, and more particularly, to a technique for automatically connecting a device and an operation terminal according to a connection form of the device connected to a port for communication.
自動化された工場などにおいて製造機械の制御装置として用いられるプログラマブルロジックコントローラ(PLC)が知られている。たとえば、プログラマブルロジックコントローラは、ツールと呼ばれるソフトウェアがインストールされたコンピュータ(市販のパーソナルコンピュータなど)またはプログラマブルロジックコントローラの設定などに用いられる表示器を用いて管理される。 2. Description of the Related Art A programmable logic controller (PLC) used as a control device for a manufacturing machine in an automated factory or the like is known. For example, the programmable logic controller is managed using a computer (such as a commercially available personal computer) in which software called a tool is installed, or a display used for setting the programmable logic controller.
プログラマブルロジックコントローラ、コンピュータおよび表示器は、特開2007−243825号公報(特許文献1)に記載のように、たとえばイーサネット(登録商標)を利用したネットワークを介して接続される。 The programmable logic controller, the computer, and the display are connected via a network using, for example, Ethernet (registered trademark) as described in Japanese Patent Application Laid-Open No. 2007-243825 (Patent Document 1).
プログラマブルロジックコントローラとコンピュータとは、イーサネット(登録商標)以外にも、USB(Universal Serial Bus)等を用いたシリアル通信により接続される場合もある。特に、プログラマブルロジックコントローラとコンピュータとを1対1で接続する場合、USB等のシリアル通信を用いることが多い。この場合、独自の通信プロトコルを利用して通信することが一般的である。一方、イーサネット(登録商標)による通信では、TCP/IP(Transmission Control Protocol/Internet Protocol)のように、ソケットに基いた通信が一般的になりつつある。このような状況において、プログラマブルロジックコントローラとコンピュータとの接続がイーサネット(登録商標)およびUSBの両方をサポートするには、複数の通信プロトコルをコンピュータに実装する必要がある。そのため、開発者にとって煩わしいものであった。 In addition to Ethernet (registered trademark), the programmable logic controller and the computer may be connected by serial communication using USB (Universal Serial Bus) or the like. In particular, when a programmable logic controller and a computer are connected one-to-one, serial communication such as USB is often used. In this case, it is common to communicate using a unique communication protocol. On the other hand, in communication using Ethernet (registered trademark), communication based on sockets is becoming common, such as TCP / IP (Transmission Control Protocol / Internet Protocol). In such a situation, in order for the connection between the programmable logic controller and the computer to support both Ethernet (registered trademark) and USB, it is necessary to implement a plurality of communication protocols in the computer. Therefore, it was troublesome for developers.
上記のように複数の通信形式をサポートする場合、ネットワークの種別毎に別々の設定をする必要があるため、ユーザが行なうべき設定も煩雑になり得る。また、ネットワーク毎に異なる態様で通信が制約され得る。そのため、ユーザの利便性が損なわれ得る。 When a plurality of communication formats are supported as described above, since it is necessary to make separate settings for each type of network, settings to be performed by the user can be complicated. Further, communication may be restricted in a different manner for each network. Therefore, user convenience may be impaired.
したがって、FTP(File Transfer Protocol)、Telnet(Telecommunication network)を、イーサネット(登録商標)上のアプリケーションとしてイーサネットポートを介して実行するのと同様の通信がUSB回線上で実現できると便利である。 Therefore, it is convenient that communication similar to executing FTP (File Transfer Protocol) and Telnet (Telecommunication network) as an application on the Ethernet (registered trademark) via the Ethernet port can be realized on the USB line.
その他、TCP・UDP(Transmission Control Protocol・User Datagram Protocol)を用いたユーザプログラムや、HTTP(HyperText Transfer Protocol)などをUSB回線上で利用できると便利である。 In addition, it is convenient if a user program using TCP / UDP (Transmission Control Protocol / User Datagram Protocol) or HTTP (HyperText Transfer Protocol) can be used on the USB line.
さらに、USBをシリアルとして利用するとポートを1つのアプリケーションで占有してしまうと、他のアプリケーションでは使えなくなるため、別途、共有のための仕組みを構築する必要があるが、イーサネット(登録商標)のソケットとして提供すれば、複数のアプリケーション間での共有が容易になる。 Furthermore, if the USB is used as a serial port and the port is occupied by one application, it cannot be used by another application. Therefore, it is necessary to construct a separate sharing mechanism, but an Ethernet (registered trademark) socket If it is provided as, it becomes easy to share among multiple applications.
PPP(Point-to-Point Protocol)の利用は、シリアル通信回線上でイーサネット(登録商標)のプロトコルを構築し、稼動させるための方法の1つである。PPPを用いることにより、シリアル通信回線を利用してモデム接続を実行するとともに、モデム接続上でイーサネット(登録商標)に基いた通信を実行できる。 The use of PPP (Point-to-Point Protocol) is one of the methods for constructing and operating an Ethernet (registered trademark) protocol on a serial communication line. By using PPP, a modem connection can be performed using a serial communication line, and communication based on Ethernet (registered trademark) can be performed on the modem connection.
通常、PPPに基いた接続を実行する場合、電話回線を用いた接続を想定した上で種々の設定がユーザによりなされる。したがって、接続先の電話番号、または電話番号に相当する接続先のアドレスなどをユーザが指定するとともに、ユーザの操作により接続を開始することが一般的である。 Normally, when performing connection based on PPP, various settings are made by the user on the assumption of connection using a telephone line. Therefore, it is common for the user to specify the telephone number of the connection destination or the connection destination address corresponding to the telephone number, and to start the connection by the user's operation.
しかしながら、コンピュータの接続先は、USBケーブルなどによって直接コンピュータに繋がれたプログラマブルロジックコントローラ等である。したがって、接続のための煩わしい手続きをせずに、コンピュータとプログラマブルロジックコントローラとを接続することが望まれる。 However, the computer is connected to a programmable logic controller or the like directly connected to the computer by a USB cable or the like. Therefore, it is desirable to connect the computer and the programmable logic controller without performing a troublesome procedure for connection.
本発明は、上述の課題を解決するためになされたものであり、その目的は、接続に関する利便性を向上することである。 The present invention has been made to solve the above-described problems, and an object thereof is to improve convenience related to connection.
ある実施例において、通信のためのポートが設けられた操作端末は、ポートに機器が繋がれると、ポートに繋がれた機器から、機器の接続形態を示す情報を取得するための取得手段と、ポートに繋がれた機器の接続形態に従って、機器と操作端末とを接続するための接続手段とを備える。 In an embodiment, an operation terminal provided with a port for communication, when a device is connected to the port, an acquisition unit for acquiring information indicating a connection form of the device from the device connected to the port; According to the connection form of the device connected to the port, a connection means for connecting the device and the operation terminal is provided.
ある実施例において、プログラムは、通信のためのポートが設けられた操作端末に、ポートに機器が繋がれると、ポートに繋がれた機器から、機器の接続形態を示す情報を取得するステップと、ポートに繋がれた機器の接続形態に従って、機器と操作端末とを接続するステップとを実行させる。 In one embodiment, the program obtains information indicating a connection form of the device from the device connected to the port when the device is connected to the operation terminal provided with the port for communication. The step of connecting the device and the operation terminal is executed according to the connection form of the device connected to the port.
ある実施例において、制御システムは、通信のためのポートが設けられた操作端末と、ポートに繋がれる機器とを備える。操作端末は、ポートに機器が繋がれると、ポートに繋がれた機器から、機器の接続形態を示す情報を取得するための取得手段と、ポートに繋がれた機器の接続形態に従って、機器と操作端末とを接続するための接続手段とを含む。 In one embodiment, the control system includes an operation terminal provided with a port for communication and a device connected to the port. When a device is connected to a port, the operation terminal operates with the device according to an acquisition means for acquiring information indicating the connection form of the device from the device connected to the port, and the connection form of the device connected to the port. Connection means for connecting the terminal.
ポートに機器が繋がれると、機器の接続形態に従って自動的に機器と操作端末とが接続される。そのため、ユーザが煩わしい設定をしなくても、機器と操作端末との間の通信が可能となる。よって、接続に関する利便性が向上する。 When a device is connected to the port, the device and the operation terminal are automatically connected according to the connection form of the device. Therefore, communication between the device and the operation terminal is possible without the user having to make troublesome settings. Therefore, convenience related to connection is improved.
図1を参照して、本実施の形態に係る制御システム10について説明する。制御システム10は、プログラマブルロジックコントローラ(以下、コントローラと記載する)100と、HMI(Human Machine Interface)102と、コントローラ104と、コンピュータ200とを備える。コンピュータ200に繋がれる機器の数は3つに限られず、1台以上であればいくつでもよい。たとえば、図2に示すように、1台のコンピュータ200に1台のコントローラ100のみを繋ぐようにしてもよい。
A
図1に戻って、コントローラ100は製造機械に繋がれ、コントローラ100は、工作機械の制御装置としての機能を有する。HMI102には、たとえばプログラマブル表示器が用いられる。コンピュータ200は、ユーザが操作する操作端末として用いられる。
Returning to FIG. 1, the
コントローラ100、HMI102およびコントローラ104は、コンピュータ200の3つのUSBポート201,202,203にそれぞれ繋がれる。コントローラ104は、モデム301,302を介してコンピュータ200に繋がれる。
The
コンピュータ200は、USBポート201,202,203を介した通信機能のほか、イーサネット(登録商標)のためのポートならびにイーサネット(登録商標)を利用した通信機能を有する。コンピュータ200は、たとえば市販されているパーソナルコンピュータである。コンピュータ200は、ノートブックコンピュータ、デスクトップコンピュータ、携帯情報端末(PDA:Personal Digital Assistant)など、任意の形式のコンピュータが用いられ得る。
The
コンピュータ200には、コンピュータ200に所望の機能を実行させるためのプログラムであるエンジニアリングツールがインストールされる。ユーザは、コンピュータ200を操作することによって、コントローラ100、HMI102およびコントローラ104の設定を変更したり、確認したりすることなどが可能である。
The
コンピュータ200の代わりに、もしくは加えて、プログラマブル表示器を用いてもよい。すなわち、操作端末としてプログラマブル表示器を用いてもよい。プログラマブル表示器は、たとえば、コントローラ100、HMI102およびコントローラ104の作動状態および設定内容などを表示する。プログラマブル表示器は、たとえばタッチパネルを有する。ユーザは、タッチパネルを操作することによって、コントローラ100、HMI102、コントローラ104の設定を変更したり、確認したりすることなどが可能である。
A programmable display may be used instead of or in addition to the
図3を参照して、コントローラ100、HMI102、コントローラ104、およびコンピュータ200のハードウェア構成について説明する。
With reference to FIG. 3, the hardware configurations of the
図3においては、コントローラ100、HMI102、コントローラ104のうち、コントローラ100のみを示す。HMI102およびコントローラ104の主要なハードウェア構成は、コントローラ100のハードウェア構成と同じ、もしくは略同じであるため、ここではその詳細な説明は繰り返さない。
In FIG. 3, only the
コントローラ100(HMI102、コントローラ104)は、演算装置400、不揮発性記憶装置410、揮発性記憶装置420、通信装置430および通信ポート440を含む。
The controller 100 (
演算装置400は、たとえばCPUである。演算装置400は、オペレーティングシステム(OS)を含む、種々のソフトウェア(プログラム)を実行する。不揮発性記憶装置410は、たとえばROM(Read Only Memory)またはHDD(Hard disk drive)である。不揮発性記憶装置410は、演算装置400が実行するソフトウェアの実行モジュールを格納する。
揮発性記憶装置420は、たとえばRAM(Random Access Memory)である。揮発性記憶装置420は、たとえば各々のソフトウェアが必要とするワーク領域などを保持するために用いられる。
The
通信装置430は、通信を制御するために用いられる。通信装置430は、コントローラ100の外部の機器であってもよい。通信ポート440は、コントローラ100の外部の機器とコントローラ100との間の通信のためのポートである。通信ポート440は、USBポート450およびイーサネットポート460を含む。その他の種類の通信ポートを設けてもよい。
The
コンピュータ200は、演算装置500、不揮発性記憶装置510、揮発性記憶装置520、通信装置530、表示装置540および通信ポート550を含む。演算装置500、不揮発性記憶装置510、揮発性記憶装置520および通信装置530は、それぞれ、演算装置400、不揮発性記憶装置410、揮発性記憶装置420および通信装置430と同じ、もしくは略同じである。したがって、ここではその詳細な説明は繰り返さない。
The
表示装置540は、種々の情報を表示する。表示装置540には一般的なモニターなどが用いられる。
The
通信ポート550は、コンピュータ200の外部の機器とコンピュータ200との間の通信のためのポートである。通信ポート550は、USBポート201,202,203およびイーサネットポート552を含む。その他の種類の通信ポートを設けてもよい。
The
図4を参照して、コントローラ100、HMI102、コントローラ104、およびコンピュータ200の機能について説明する。なお、以下に説明する機能は、ソフトウェアにより実現されるが、ハードウェアにより実現してもよく、ハードウェアとソフトウェアとの協働により実現してもよい。
With reference to FIG. 4, functions of the
コントローラ100は、通信ドライバ110と、PPPサーバ120とを含む。通信ドライバ110は、たとえばUSBドライバ、USBシリアルドライバ、モデルドライバ等であって、USBポート450を介した通信を実現するために、物理的な通信ポート等を制御する。PPPサーバ120は、PPPを利用してイーサネット(登録商標)上で通信を行なうためのサーバであって、ソフトウェアにより実現される。通信ドライバ110およびPPPサーバ120には、周知の技術を利用すればよいため、ここではその詳細な説明は繰り返さない。
The
HMI102は、通信ドライバ112と、シリアル通信機能122とを含む。通信ドライバ112は、たとえばUSBドライバであって、USBポート452を介した通信を実現するために、物理的な通信ポート等を制御する。シリアル通信機能122は、シリアル通信を行なうための機能である。通信ドライバ112およびシリアル通信機能122には、周知の技術を利用すればよいため、ここではその詳細な説明は繰り返さない。
The
コントローラ104は、通信ドライバ114と、PPPサーバ124とを含む。通信ドライバ114は、たとえばUSBドライバであって、USBポート454を介した通信を実現するために、物理的な通信ポート等を制御する。PPPサーバ124は、PPPを利用してイーサネット(登録商標)上で通信を行なうためのサーバである。コントローラ104がハードウェアであるのに対し、PPPサーバ124はソフトウェアにより実現される。通信ドライバ114およびPPPサーバ124には、周知の技術を利用すればよいため、ここではその詳細な説明は繰り返さない。
The
コンピュータ200は、通信ドライバ210と、通信アプリケーション220と、通信プロトコルスタック230と、コネクションマネージャ240とを含む。
The
通信ドライバ210は、たとえばUSBドライバであって、USBポート201,202,203を介した通信を実現するために、物理的な通信ポート等を制御する。
The
通信アプリケーション220は、実際に通信機能を利用するアプリケーションである。通信アプリケーション220の一例は、エンジニアリングツールである。
The
通信プロトコルスタック230は、アプリケーションに、イーサネット通信機能およびシリアル通信機能などの通信機能を提供する。通信プロトコルスタック230の一例は、PPPクライアントである。
The
コネクションマネージャ240は、本願発明の特徴的な機能である。コネクションマネージャ240は、接続先の機器(コントローラ100、HMI102またはコントローラ104)の情報に基いて、通信プロトコルの選択、起動および状態遷移などを制御する。コネクションマネージャ240の一例は、USBポート201,202,203を介した通信のためのUSBコネクションマネージャである。
The
本実施の形態において、USBコネクションマネージャとしてのコネクションマネージャ240は、USBポート201,202,203に機器が繋がれると、USBポート201,202,203に繋がれた機器から、機器の接続形態(たとえばPPP直接接続、シリアル接続およびモデム接続等)を示す情報(たとえばデバイスディスクリプタ)を取得する。さらに、コネクションマネージャ240(USBコネクションマネージャ)は、USBポート201,202,203に繋がれた機器の接続形態に従って、機器とコンピュータ200とを接続する。
In the present embodiment, when a device is connected to the
なお、本実施の形態において「接続」とは、機器とコンピュータ200との間で通信可能な状態にすることを意味する。「繋がれた」とは、たとえばUSBケーブルによって、機器とコンピュータ200とが物理的に繋がれたことを意味する。
Note that “connection” in this embodiment means that communication between the device and the
図5を参照して、コネクションマネージャ240についてさらに説明する。コネクションマネージャ240は、エージェントマネージャ250と、エージェント260とを含む。
The
エージェントマネージャ250は、通信ドライバ210(例えばUSBドライバ)、通信アプリケーション220(たとえばエンジニアリングツール)および通信プロトコルスタック230(例えばPPPクライアント)から発せられたイベントに応答して、エージェント260を生成(起動)するとともに、エージェント260にイベントを通信する。
The
エージェントマネージャ250は、コンピュータ200に接続された機器の種類、およびその機器の接続形態によって特定される動作条件に対応したエージェント260を生成する。たとえば、接続形態がPPP接続である場合、PPP接続エージェントが生成される。接続形態がシリアル接続である場合、シリアル接続エージェントが生成される。接続形態がモデム接続である場合、モデム接続エージェントが生成される。
The
エージェント260は、動作条件に応じて動作および状態遷移を実行する。たとえば、接続形態がPPP接続である場合、コンピュータ200と機器とがPPP接続される。接続形態がシリアル接続である場合、コンピュータ200と機器とがシリアル接続される。接続形態がモデム接続である場合、コンピュータ200と機器とがモデム接続される。
The
動作条件は、コンピュータ200の不揮発性記憶装置510または揮発性記憶装置520に記憶された動作仕様定義270から特定される。図6に動作仕様定義270の一例を示す。動作仕様定義270は、図7に示すエージェント定義272および図8に示すグループ動作定義274から構成される。なお、動作仕様定義270はこれに限定されない。
The operation condition is specified from the
たとえば、図8に示すグループ動作定義274において、「動作タイプ」が「接続」であり、「グループ名」が「PLC」であると、「アクションタイプ」が「シングルトン」であると定義されている。その結果、図6のPPP接続の動作仕様定義において、「同一商品グループ」が「PLC」である場合に「接続=シングルトン」と定義される。その結果、1台のコンピュータ200に対して接続されるプログラマブルロジックコントローラは1台のみに制限される。
For example, in the
一方、図8に示すグループ動作定義274において、「動作タイプ」が「接続」であり、「グループ名」が「HMI」であると、「アクションタイプ」が「IP(Internet Protocol)アサイン」であると定義されている。その結果、図6のPPP接続の動作仕様定義において、「同一商品グループ」が「HMI」である場合に「接続=マルチ」と定義される。その結果、1台のコンピュータ200に対して、複数のHMIが接続され得る。
On the other hand, in the
このように、本実施の形態においては、コンピュータ200に繋がれる機器の種類に応じて異なる数の機器とコンピュータ200とが接続される。具体的には、1台のプログラマブルロジックコントローラとコンピュータ200とが接続され得る一方、プログラマブルロジックコントローラは異なる種類である複数のHMIとコンピュータとが接続され得る。
Thus, in the present embodiment, a different number of devices and the
図9を参照して、一例としてコンピュータ200のUSBポート201にコントローラ100が繋がれた場合における、コンピュータ200の通信ドライバ210(USBドライバ)、コントローラ100の通信ドライバ110(USBドライバ)、エージェントマネージャ250およびエージェント260の動作について説明する。
Referring to FIG. 9, as an example, when the
コンピュータ200のUSBポート201にコントローラ100が繋がれたことをコンピュータ200の通信ドライバ210が検出すると、コンピュータ200の通信ドライバ210は、コントローラ100の通信ドライバ110に、コントローラ100の接続形態を示す情報を含むディスクリプタを要求する。
When the
コントローラ100の通信ドライバ110は要求を受信すると、コンピュータ200の通信ドライバ210にデバイスディスクリプタを送信する。ここでは、デバイスディスクリプタにより、コントローラ100の接続形態がUSB_PPP直接接続(USBDirect)であることが示されていると想定する。
When the
コンピュータ200の通信ドライバ210がデバイスディスクリプタを受取ると、コンピュータ200の通信ドライバ210は、対応するUSBドライバをロードする。その後、コンピュータ200の通信ドライバ210は、コントローラ100の通信ドライバ110から機種情報を読み出す。コントローラ100の通信ドライバ110は、コンピュータ200の通信ドライバ210に機種情報を返す。ここでは、コントローラ100の機種情報が、「PLC−Model A」であると想定する。
When the
コンピュータ200の通信ドライバ210は、コントローラ100の通信ドライバ110から機種情報を読み出した後、エージェントマネージャ250に接続を通知する。具体的には、コンピュータ200の通信ドライバ210は、受取ったデバイスディスクリプタをエージェントマネージャ250に通知する。
The
エージェントマネージャ250は、デバイスディスクリプタを受取ると、デバイスディスクリプタと動作仕様定義270とを参照してエージェント260を特定する。ここでは、デバイスディスクリプタによってUSB_PPP直接接続が指示されていることから、USBダイレクトエージェントが特定される。さらに、エージェントマネージャ250は、接続先の機種情報を取得する。
Upon receiving the device descriptor, the
その後、エージェントマネージャ250は、エージェント260をロードするとともに、エージェント260に接続を通知する。具体的には、エージェントマネージャ250は、エージェント260に機種情報を通知する。その後、エージェント260は、状態遷移を開始する。その結果、最終的には、コンピュータ200とコントローラ100とがUSB通信回線上で、PPP接続される。
Thereafter, the
図10を参照して、エージェントマネージャ250によって実行される処理について説明する。
Processing executed by the
ステップ(以下、ステップをSと略す)10にて、通信ドライバ210からのケーブル接続イベントの受信を待つ。通信ドライバ210からケーブル接続イベントを受信すると(S12にてYES)、S14にて、動作種別が確定される。動作種別は、たとえば、エージェントマネージャ250において予め定義されたり、接続先のディスクリプタ情報により確定される。その後、S16にて、商品情報から動作グループが取得され、S18にて、取得された動作グループに対応するエージェントがロードされる。
In step (hereinafter, step is abbreviated as S) 10, reception of a cable connection event from
たとえば、USB接続により、「Omron USB DirectLine」という情報がコントローラ100から得られると、コンピュータ200にインストールされたWindows(登録商標)が、この情報に対応したUSBドライバをロードする。USBドライバは、コントローラ100と個別情報を交換することによって、商品情報を取得する。さらに、USBドライバは、コネクションマネージャ250に接続を通知する。エージェントマネージャ250は、エージェント定義情報より該当するエージェントを確定し、ロードする。
For example, when information “Omron USB DirectLine” is obtained from the
最後に、S20にて、ロードしたエージェントに対して初期イベントが通知される。
図11を参照して、エージェント260によって実行される処理について説明する。以下では、一例として、PPP接続エージェントによって実行される処理について説明する。その他のエージェントにより実行される処理は、PPP接続エージェントによって実行される処理と同様であるため、ここではその詳細な説明は繰り返さない。
Finally, in S20, the initial event is notified to the loaded agent.
Processing executed by the
S100にて、エージェント260は、イベントの受信を待つ。エージェントマネージャ250、通信ドライバ210、通信アプリケーション220または通信プロトコルスタック230からイベントを受信すると(S102にてYES)、S104において、イベントと状態とにより、処理内容が決定される。
In S100,
たとえば、PPP接続が要求された場合は、S110にて、PPP接続処理が実行される。USBの規約では、ベンダIDとプロダクトIDとが送付され、このベンダIDとプロダクトIDとからWindows(登録商標)などのOS(Operating System)が該当するドライバを見つけ、ロードする。本実施の形態においては、たとえば、USBDirectLineというドライバがロードされる。OSのUSBドライバは、ロードしたUSBドライバに制御を渡し、以後、ロードされたドライバがコントローラ100と接続処理を行なう。
For example, if PPP connection is requested, PPP connection processing is executed in S110. In the USB protocol, a vendor ID and a product ID are sent, and an OS (Operating System) such as Windows (registered trademark) finds a driver corresponding to the vendor ID and the product ID and loads it. In the present embodiment, for example, a driver called USBDirectLine is loaded. The OS USB driver passes control to the loaded USB driver, and the loaded driver performs connection processing with the
接続処理自身はUSBの規約で決められているものの、追加で必要な情報がコントローラ100より取得することができる。本実施の形態においては、機種情報などが取得される。
Although the connection process itself is determined by the USB protocol, additional necessary information can be acquired from the
取得した機種情報などにより、その接続先がどのグループなのかが判定できる。たとえば、プログラマブルロジックコントローラなのか、HMIなのか、あるいはPPPをサポートしていないデバイスなのかなどの情報が取得される。たとえば、フィールドバス用の通信カプラは、通常はプログラマブルロジックコントローラのユニットとして装着され、プログラマブルロジックコントローラ経由で通信するが、カプラ自身にもUSBポートがついており、このようなカプラにおいて、PPPなどの処理まではコスト、リソースの観点から実装できない場合、シリアルとして通信する必要がある。 Based on the acquired model information, it is possible to determine which group the connection destination is. For example, information such as whether it is a programmable logic controller, an HMI, or a device that does not support PPP is acquired. For example, a fieldbus communication coupler is usually mounted as a unit of a programmable logic controller and communicates via the programmable logic controller, but the coupler itself also has a USB port. In such a coupler, processing such as PPP is performed. Until it is impossible to implement from the viewpoint of cost and resources, it is necessary to communicate as serial.
PLCやHMIのある機種ではPPPをサポートしているので、PPP実行用エージェントを起動し、さらにPLCかHMIかによって1台だけ接続させるのか複数台接続させるのかなどが選択可能である。PPPをサポートしていない機器であれば、別のエージェントを起動し、このエージェントに処理が任される。 Since a model with PLC or HMI supports PPP, it is possible to select whether to connect only one unit or a plurality of units depending on whether it is a PLC or HMI by starting a PPP execution agent. If the device does not support PPP, another agent is started and processing is left to this agent.
PPP接続処理が実行されると、S112にて、状態遷移が実行される。PPP接続が切断された場合は、S120にて、コンピュータ200と他の機器(たとえばコントローラ100)とが再度PPP接続される。診断要求があった場合には、S130にて、診断処理が実行される。モニタ要求があった場合には、S140にて、状態が通知される。
When the PPP connection process is executed, a state transition is executed in S112. When the PPP connection is disconnected, the
ケーブル(たとえばUSBケーブル)が切断された場合は、S150にて、終了処理が実行される。したがって、たとえばUSBポート201からコントローラ100が物理的に外されると、コントローラ100とコンピュータ200との接続が終了される。
If a cable (for example, a USB cable) is disconnected, an end process is executed in S150. Therefore, for example, when the
図12を参照して、上述したS110において実行される、PPP接続処理についてさらに説明する。 With reference to FIG. 12, the PPP connection processing executed in S110 described above will be further described.
S200にて、接続先のグループが判定される。接続先のグループがプログラマブルロジックコントローラである場合(S200にてPLC)、S202にて、同一グループ内の別の機器が既に接続済みであるか否かが判定される。すなわち、別のプログラマブルロジックコントローラが既に接続済みであるか否かが判定される。 In S200, a connection destination group is determined. If the connection destination group is a programmable logic controller (PLC in S200), it is determined in S202 whether another device in the same group has already been connected. That is, it is determined whether another programmable logic controller has already been connected.
別のプログラマブルロジックコントローラが接続されていないと(S202にてNO)、S204にて、たとえばユーザによって割り当てられ、予め設定された固定IPアドレスを用いて、コンピュータ200と、コンピュータ200に繋がれたプログラマブルロジックコントローラ、すなわちコントローラ100とを接続する。その後、S206にて、通信プロトコルスタック230(PPPクライアント)に接続要求が送られる。
If another programmable logic controller is not connected (NO in S202), for example, in S204, the
一方、接続先のグループがHMIである場合(S200にてHMI)、1台のコンピュータ200に対して複数のHMIを接続することが可能である。1台のコンピュータ200に対して複数のHMIを接続するために、S208にて、各HMIに割り当てられるIPアドレスが生成される。その後、S210にて、通信プロトコルスタック230(PPPクライアント)に接続要求が送られる。
On the other hand, when the connection destination group is an HMI (HMI in S200), a plurality of HMIs can be connected to one
図13を参照して、上述したS130において実行される、診断処理についてさらに説明する。 With reference to FIG. 13, the diagnosis process executed in S130 described above will be further described.
S300にて、接続先のグループが判定される。接続先のグループがプログラマブルロジックコントローラである場合(S300にてPLC)、S302にて、プログラマブルロジックコントローラが診断される。一方、接続先のグループがHMIである場合(S300にてHMI)、HMIが診断される。 In S300, a connection destination group is determined. When the connection destination group is a programmable logic controller (PLC in S300), the programmable logic controller is diagnosed in S302. On the other hand, if the connection destination group is HMI (HMI in S300), HMI is diagnosed.
今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
100 コントローラ、102 HMI、104 コントローラ、110,112,114 通信ドライバ、120,124 PPPサーバ、122 シリアル通信機能、200 コンピュータ、201,202,203 USBポート、210 通信ドライバ、220 通信アプリケーション、230 通信プロトコルスタック、240 コネクションマネージャ、250 エージェントマネージャ、260 エージェント、270 動作仕様定義、301,302 モデム、400 演算装置、410 不揮発性記憶装置、420 揮発性記憶装置、430 通信装置、440 通信ポート、450,452,454 USBポート、460 イーサネットポート、500 演算装置、510 不揮発性記憶装置、520 揮発性記憶装置、530 通信装置、540 表示装置、550 通信ポート、552 イーサネットポート。 100 controller, 102 HMI, 104 controller, 110, 112, 114 communication driver, 120, 124 PPP server, 122 serial communication function, 200 computer, 201, 202, 203 USB port, 210 communication driver, 220 communication application, 230 communication protocol Stack, 240 connection manager, 250 agent manager, 260 agent, 270 operation specification definition, 301, 302 modem, 400 arithmetic device, 410 non-volatile storage device, 420 volatile storage device, 430 communication device, 440 communication port, 450, 452 454 USB port, 460 Ethernet port, 500 arithmetic unit, 510 non-volatile storage device, 520 volatile storage device, 530 communication device , 540 display unit, 550 communication ports, 552 Ethernet port.
Claims (15)
機器グループ毎に各機器グループに属する機器を示す機器種別を定義する第1の定義情報、および、前記操作端末から要求される動作別に、機器グループ毎に対応付けられる接続アクションを定義する第2の定義情報を保持する記憶手段と、
前記ポートに機器が繋がれると、前記ポートに繋がれた機器から、前記機器の接続形態を示す情報を取得するための取得手段と、
前記ポートに繋がれた機器の接続形態に従って、前記機器と前記操作端末とを接続するための接続手段と、
前記機器から機器種別を取得するとともに、前記第1の定義情報から前記取得した機器種別に基づいて前記機器が属する機器グループを決定し、前記操作端末から何らかの動作の要求を受けると、前記第2の定義情報から前記要求を受けた動作と前記決定された機器グループとに対応する接続アクションを決定する制御手段とを備え、
前記接続手段は、決定された接続アクションに従って接続処理を実行する、操作端末。 An operation terminal provided with a port for communication,
First definition information that defines a device type indicating a device that belongs to each device group for each device group, and a second that defines a connection action associated with each device group for each operation requested from the operation terminal Storage means for holding definition information;
When a device is connected to the port, an acquisition unit for acquiring information indicating a connection form of the device from the device connected to the port;
According to the connection form of the device connected to the port, connection means for connecting the device and the operation terminal;
When the device type is acquired from the device, a device group to which the device belongs is determined based on the acquired device type from the first definition information, and a request for some operation is received from the operation terminal, the second Control means for determining a connection action corresponding to the operation that has received the request from the definition information and the determined device group,
The operation terminal that performs connection processing according to the determined connection action.
前記ポートに機器が繋がれると、前記ポートに繋がれた機器から、前記機器の接続形態を示す情報を取得するステップと、
前記ポートに繋がれた機器の接続形態に従って、前記機器と前記操作端末とを接続するステップと、
前記機器から機器種別を取得するとともに、機器グループ毎に各機器グループに属する機器を示す機器種別を定義する第1の定義情報から前記取得した機器種別に基づいて前記機器が属する機器グループを決定するステップと、
前記操作端末から何らかの動作の要求を受けると、前記操作端末から要求される動作別に、機器グループ毎に対応付けられる接続アクションを定義する第2の定義情報から前記要求を受けた動作と前記決定された機器グループとに対応する接続アクションを決定するステップとを実行させ、
前記接続するステップは、決定された接続アクションに従って接続処理を実行するステップを含む、プログラム。 To the operation terminal provided with a port for communication,
When a device is connected to the port, obtaining information indicating a connection form of the device from the device connected to the port;
Connecting the device and the operation terminal according to a connection form of the device connected to the port;
A device type is acquired from the device, and a device group to which the device belongs is determined based on the acquired device type from first definition information that defines a device type indicating a device belonging to each device group for each device group. Steps,
When an operation request is received from the operation terminal, the operation is determined to be the operation that has received the request from second definition information that defines a connection action associated with each device group for each operation requested from the operation terminal. Determining a connection action corresponding to the selected device group,
The step of connecting includes a step of executing a connection process according to the determined connection action.
前記ポートに繋がれる機器とを備え、
前記操作端末は、
機器グループ毎に各機器グループに属する機器を示す機器種別を定義する第1の定義情報、および、前記操作端末から要求される動作別に、機器グループ毎に対応付けられる接続アクションを定義する第2の定義情報を保持する記憶手段と、
前記ポートに機器が繋がれると、前記ポートに繋がれた機器から、前記機器の接続形態を示す情報を取得するための取得手段と、
前記ポートに繋がれた機器の接続形態に従って、前記機器と前記操作端末とを接続するための接続手段と、
前記機器から機器種別を取得するとともに、前記第1の定義情報から前記取得した機器種別に基づいて前記機器が属する機器グループを決定し、前記操作端末から何らかの動作の要求を受けると、前記第2の定義情報から前記要求を受けた動作と前記決定された機器グループとに対応する接続アクションを決定する制御手段とを含み、
前記接続手段は、決定された接続アクションに従って接続処理を実行する、制御システム。 An operation terminal provided with a port for communication;
A device connected to the port,
The operation terminal is
First definition information that defines a device type indicating a device that belongs to each device group for each device group, and a second that defines a connection action associated with each device group for each operation requested from the operation terminal Storage means for holding definition information;
When a device is connected to the port, an acquisition unit for acquiring information indicating a connection form of the device from the device connected to the port;
According to the connection form of the device connected to the port, connection means for connecting the device and the operation terminal;
When the device type is acquired from the device, a device group to which the device belongs is determined based on the acquired device type from the first definition information, and a request for some operation is received from the operation terminal, the second Control means for determining a connection action corresponding to the requested operation from the definition information and the determined device group,
The connection means is a control system that executes connection processing according to the determined connection action.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011056378A JP5786385B2 (en) | 2011-03-15 | 2011-03-15 | Operation terminal, program and control system |
PCT/JP2011/073814 WO2012124202A1 (en) | 2011-03-15 | 2011-10-17 | Operation terminal, program, and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011056378A JP5786385B2 (en) | 2011-03-15 | 2011-03-15 | Operation terminal, program and control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012194630A JP2012194630A (en) | 2012-10-11 |
JP5786385B2 true JP5786385B2 (en) | 2015-09-30 |
Family
ID=46830303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011056378A Active JP5786385B2 (en) | 2011-03-15 | 2011-03-15 | Operation terminal, program and control system |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5786385B2 (en) |
WO (1) | WO2012124202A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6267105B2 (en) | 2014-12-19 | 2018-01-24 | ファナック株式会社 | Control device for outputting maintenance diagnosis information and diagnostic information recording / display device |
JP7097561B1 (en) * | 2021-12-02 | 2022-07-08 | 三菱製鋼株式会社 | Operation device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006172130A (en) * | 2004-12-15 | 2006-06-29 | Canon Inc | Information processor, external device, information processing program and control program |
JP2006317990A (en) * | 2005-05-10 | 2006-11-24 | Keyence Corp | Programmable logic controller, and communication system |
US8190785B2 (en) * | 2006-05-26 | 2012-05-29 | Smart Technologies Ulc | Plug-and-play device and method for enhancing features and settings in an interactive display system |
JP2009089208A (en) * | 2007-10-02 | 2009-04-23 | Nippon Hoso Kyokai <Nhk> | Dial-up router, and its control program |
JP5163522B2 (en) * | 2009-01-30 | 2013-03-13 | カシオ計算機株式会社 | USB storage device, host computer, USB storage system, and program |
-
2011
- 2011-03-15 JP JP2011056378A patent/JP5786385B2/en active Active
- 2011-10-17 WO PCT/JP2011/073814 patent/WO2012124202A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2012124202A1 (en) | 2012-09-20 |
JP2012194630A (en) | 2012-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6411003B1 (en) | Data collection device, data collection method, and program | |
CN107272549B (en) | Control device, control method, and recording medium | |
WO2016151856A1 (en) | System design assistance device, system design assistance method, and system design assistance program | |
JP4840352B2 (en) | Device management apparatus and program | |
US20110022978A1 (en) | Intelligent device framework | |
JP2008193217A (en) | Automatic scanner connection program | |
JP5786385B2 (en) | Operation terminal, program and control system | |
US20110153841A1 (en) | Operation setting method of relay apparatus, relay apparatus, and storage medium stored with program | |
WO2012056537A1 (en) | Programmable controller | |
JP4666589B2 (en) | USB device, USB system and USB control program | |
JP5207803B2 (en) | Information processing apparatus, information processing method, and program | |
JP5879706B2 (en) | Control system, operation terminal and program | |
JP5870804B2 (en) | Communication control system, communication control method, and communication control program | |
JP3550677B2 (en) | Personal computer and communication method of personal computer | |
JP6109447B1 (en) | Information processing method and information processing apparatus | |
JP5720330B2 (en) | Control system, operation terminal and program | |
JP5768420B2 (en) | Control system, control device, operation terminal and program | |
JP6020854B2 (en) | Computerized machine control system | |
JP7375360B2 (en) | Network system, information processing device, and information processing method | |
JP5130836B2 (en) | Multi-CPU system migration method and CPU system | |
JP6465314B2 (en) | Device server | |
AU2020429850A1 (en) | Monitoring control device and client pc | |
JP6455759B2 (en) | Device server, device usage method, and program, | |
JP5330321B2 (en) | Programmable display | |
JP2022135371A5 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140314 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141202 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150202 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150331 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150527 |
|
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: 20150630 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150713 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5786385 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |