[go: up one dir, main page]

JP2008165683A - Control device, its controller and control method - Google Patents

Control device, its controller and control method Download PDF

Info

Publication number
JP2008165683A
JP2008165683A JP2007000220A JP2007000220A JP2008165683A JP 2008165683 A JP2008165683 A JP 2008165683A JP 2007000220 A JP2007000220 A JP 2007000220A JP 2007000220 A JP2007000220 A JP 2007000220A JP 2008165683 A JP2008165683 A JP 2008165683A
Authority
JP
Japan
Prior art keywords
control device
controller
protocol data
control
processing
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
JP2007000220A
Other languages
Japanese (ja)
Inventor
Seiko Kin
成昊 金
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007000220A priority Critical patent/JP2008165683A/en
Publication of JP2008165683A publication Critical patent/JP2008165683A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

【課題】コントローラにおいて、プログラムの書き直しを行わなくても制御機器を制御できるようにする。
【解決手段】コントローラ1は、予め制御機器2に類似する機種に共通なドライバを備え、この制御機器2は、自身に類似する機種同士の差異を吸収するためのプロトコルデータ(232〜234)を備える。そして、コントローラ1は、接続された制御機器2からこのプロトコルデータを受信する。プロトコルデータは、この制御機器2のBUSY値、TIMEOUT値、STROBE値を含むものである。そして、コントローラ1は、このプロトコルデータと、前記した各機種に共通なドライバとを用いて制御機器2との通信を行う。
【選択図】図1
In a controller, a control device can be controlled without rewriting a program.
A controller 1 includes a driver common to a model similar to a control device 2 in advance, and the control device 2 stores protocol data (232 to 234) for absorbing a difference between models similar to itself. Prepare. Then, the controller 1 receives this protocol data from the connected control device 2. The protocol data includes the BUSY value, TIMEOUT value, and STROBE value of the control device 2. And the controller 1 communicates with the control apparatus 2 using this protocol data and the driver common to each above-mentioned model.
[Selection] Figure 1

Description

本発明は、制御機器、そのコントローラおよび制御方法に関する。   The present invention relates to a control device, a controller thereof, and a control method.

汎用のPC(Personal Computer)等に接続機器を接続する場合、PC等にこの接続機器のドライバをインストールしておき、PC等が、この接続機器が接続されたことを検知すると、この接続機器のドライバを選択し、起動していた(特許文献1参照)。
特開2006−85542号公報
When connecting a connected device to a general-purpose PC (Personal Computer) or the like, the driver of the connected device is installed in the PC or the like, and when the PC or the like detects that the connected device is connected, A driver was selected and started (see Patent Document 1).
JP 2006-85542 A

しかし、産業機器や家電製品等に用いられる組み込みシステムにおいて、コントローラの備える記憶媒体の記憶容量も限られているため、コントローラ側でいくつかのドライバや通信プロトコルをインストールしておき、その中から制御機器(接続機器)のドライバや通信プロトコルを選択することは困難であった。このため、コントローラに制御機器を接続するときには、コントローラがこの制御機器と通信できるように、作業者がこのコントローラのプログラムを書き直し、コンパイルする必要があった。つまり、接続される制御機器が異なれば、その制御機器の仕様にあわせてコントローラのプログラムを変更する必要があった。   However, in embedded systems used in industrial equipment, home appliances, etc., the storage capacity of the storage medium provided by the controller is limited, so some drivers and communication protocols are installed on the controller side, and control is performed from there. It has been difficult to select a driver or a communication protocol for a device (connected device). For this reason, when connecting a control device to the controller, an operator has to rewrite and compile the program of the controller so that the controller can communicate with the control device. That is, if the connected control device is different, it is necessary to change the controller program in accordance with the specification of the control device.

そこで、本発明は、前記した課題を解決し、コントローラにおいて、前記したようなプログラムの書き直しを行わなくても制御機器との通信を実現する手段を提供することを目的とする。   Accordingly, an object of the present invention is to solve the above-described problems and provide means for realizing communication with a control device without performing rewriting of the program as described above in the controller.

前記した課題を解決するため、本発明のコントローラは、予め制御機器に類似する機種に共通なドライバを備え、制御機器は、自身に類似する機種同士の差異を吸収するためのプロトコルデータを備える構成とした。ここで、機種同士の差異を吸収するために必要な情報として、プロトコルデータに、この制御機器において実行する処理のコマンド番号を示した定義情報に加えて、この制御機器の(1)BUSY値、(2)TIMEOUT値、(3)STOROBE値を含めるようにした。そして、コントローラは、このプロトコルデータに基づき、BUSY値に示されるインターバルで、制御機器へ制御信号を送信する。また、このコントローラが制御機器へ制御信号を送信した後、プロトコルデータのTIMEOUT値に示される時間以上経過しても、この制御機器から、制御信号の応答を受信しなかったとき、この制御機器の異常を検知する。さらに、コントローラは、このプロトコルデータに基づき、STROBE値に示される制御信号を連続で制御機器へ送信する。これにより、コントローラは、自身のプログラムの書き直しを行わなくても制御機器を制御することができる。   In order to solve the above-described problem, the controller of the present invention includes a driver common to models similar to the control device in advance, and the control device includes protocol data for absorbing differences between models similar to itself It was. Here, as information necessary to absorb the difference between the models, in addition to the definition information indicating the command number of the process executed in this control device in the protocol data, (1) the BUSY value of this control device, (2) TIMEOUT value and (3) STOROBE value were included. Then, the controller transmits a control signal to the control device at intervals indicated by the BUSY value based on the protocol data. In addition, after the controller transmits a control signal to the control device, if a control signal response is not received from the control device even after the time indicated by the TIMEOUT value of the protocol data has elapsed, Detect abnormalities. Further, the controller continuously transmits a control signal indicated by the STROBE value to the control device based on the protocol data. Thus, the controller can control the control device without rewriting its own program.

本発明によれば、コントローラにおいて、前記したようなプログラムの書き直しを行わなくても制御機器を制御することができる。   According to the present invention, the controller can be controlled without rewriting the program as described above in the controller.

以下、本発明を実施するための最良の形態(以下、実施の形態という)を、図面を参照しながら説明する。図1は、本実施の形態のコントローラと、このコントローラに接続される制御機器(制御対象機器)の構成を例示した図である。   Hereinafter, the best mode for carrying out the present invention (hereinafter referred to as an embodiment) will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of a controller according to the present embodiment and a control device (control target device) connected to the controller.

コントローラ1は、接続媒体3経由で、制御機器2との間で信号のやりとりを行い、制御機器2に所定の処理を実行させる。この制御機器2は、例えば、ICカードリーダ等であり、コントローラ1はこのICカードリーダのコントローラである。この制御機器2は、コントローラ1からの制御信号に基づき、自身が読み取ったICカードの情報(ICタグの情報)をコントローラ1へ送信したり、LED(Light Emitting Diode)ランプを点灯させたり、ブザーを鳴動させたりする。なお、制御機器2は、コントローラ1からの制御を受けて動作する機器であれば、インターホンや宅配ロッカー等であってもよい。また、接続媒体3は、コントローラ1と制御機器2との間で送受信される信号を伝送する媒体であり、RS485等のケーブルが用いられる。なお、コントローラ1には複数の制御機器2が接続されていてもよい。   The controller 1 exchanges signals with the control device 2 via the connection medium 3 and causes the control device 2 to execute predetermined processing. The control device 2 is, for example, an IC card reader or the like, and the controller 1 is a controller of this IC card reader. Based on a control signal from the controller 1, the control device 2 transmits the IC card information (IC tag information) read by itself to the controller 1, turns on an LED (Light Emitting Diode) lamp, Or ring. The control device 2 may be an interphone, a home delivery locker, or the like as long as it is a device that operates under the control of the controller 1. The connection medium 3 is a medium for transmitting signals transmitted and received between the controller 1 and the control device 2, and a cable such as RS485 is used. A plurality of control devices 2 may be connected to the controller 1.

ここで、コントローラ1および制御機器2の概要に説明する。   Here, an overview of the controller 1 and the control device 2 will be described.

コントローラ1は、予め制御機器2に類似する機種に共通なドライバ(機器制御ドライバ部122参照)を保持する。また、制御機器2は、この類似する機種同士の差異を吸収するためのプロトコルデータ(プロトコルスタック231参照)を備える。ここで、コントローラ1は、この制御機器2に接続されると、この制御機器2から、この制御機器2のプロトコルデータを受信する。そして、コントローラ1は、この受信したプロトコルデータと、自身が備えるドライバとを用いて、制御機器2へ制御信号を送信する。つまり、コントローラ1は、制御機器2を制御する。   The controller 1 holds a driver (see the device control driver unit 122) common to models similar to the control device 2 in advance. In addition, the control device 2 includes protocol data (see protocol stack 231) for absorbing differences between similar models. Here, when connected to the control device 2, the controller 1 receives protocol data of the control device 2 from the control device 2. Then, the controller 1 transmits a control signal to the control device 2 by using the received protocol data and a driver included in the controller 1. That is, the controller 1 controls the control device 2.

<コントローラ>
次に、コントローラ1を詳細に説明する。コントローラ1は、図1に示すように、入出力部11と、制御処理部12と、記憶部13とを備える。
<Controller>
Next, the controller 1 will be described in detail. As shown in FIG. 1, the controller 1 includes an input / output unit 11, a control processing unit 12, and a storage unit 13.

入出力部11は、接続媒体3経由で制御機器2との間で信号の送受信を行うためのインタフェースである。   The input / output unit 11 is an interface for transmitting and receiving signals to and from the control device 2 via the connection medium 3.

制御処理部12は、この入出力部11経由で、制御機器2へ制御信号を送信し、制御機器2に所定の処理を実行させる。この制御処理部12は、制御機器2からプロトコルデータを受信するプロトコルデータ交換部121と、制御機器2を制御する機器制御ドライバ部122とを含んで構成される。なお、この制御処理部12は、CPU(Central Processing Unit)によるプログラム実行処理、あるいは前記処理を実行する専用回路により実現される。つまり、制御処理部12は、ソフトウェア的に実現してもよいし、ハードウェア的に実現してもよい。   The control processing unit 12 transmits a control signal to the control device 2 via the input / output unit 11 and causes the control device 2 to execute a predetermined process. The control processing unit 12 includes a protocol data exchange unit 121 that receives protocol data from the control device 2 and a device control driver unit 122 that controls the control device 2. The control processing unit 12 is realized by a program execution process by a CPU (Central Processing Unit) or a dedicated circuit for executing the process. That is, the control processing unit 12 may be realized by software or hardware.

プロトコルデータ交換部121は、制御機器2からプロトコルデータ(実際には、後記する通信用データ)を受信すると、このデータをプロトコルスタック131(後記)として記憶部13に格納する。つまり、プロトコルデータ交換部121は、制御機器2からプロトコルデータのもととなる通信用データを受信すると、このデータをプロトコル記述方式にデコードし、プロトコルスタック131として記憶部13に格納する。ここで、制御機器2から、コントローラ1へ送信される通信用データの詳細は、図2を用いて後記する。   When the protocol data exchange unit 121 receives protocol data (actually, communication data described later) from the control device 2, the protocol data exchange unit 121 stores this data in the storage unit 13 as a protocol stack 131 (described later). In other words, when the protocol data exchanging unit 121 receives communication data as the basis of the protocol data from the control device 2, the protocol data exchanging unit 121 decodes the data into a protocol description method and stores the data in the storage unit 13 as the protocol stack 131. Here, details of the communication data transmitted from the control device 2 to the controller 1 will be described later with reference to FIG.

この機器制御ドライバ部122は、記憶部13に記憶された各制御機器2に共通な汎用ドライバ(図示省略)をロードし、プロトコルスタック131(類似する機種同士の差異を吸収するためのプロトコルデータ)を用いて、この機器制御ドライバ部122が生成した制御信号を制御機器2へ送信する。つまり、機器制御ドライバ部122は、汎用ドライバとプロトコルスタック131とを用いて制御機器2を制御する。   The device control driver unit 122 loads a general-purpose driver (not shown) common to each control device 2 stored in the storage unit 13, and protocol stack 131 (protocol data for absorbing differences between similar models). The control signal generated by the device control driver unit 122 is transmitted to the control device 2. That is, the device control driver unit 122 controls the control device 2 using the general-purpose driver and the protocol stack 131.

記憶部13は、半導体メモリ等により構成され、所定領域にプロトコルスタック131を格納する。このプロトコルスタック131は、前記したとおり、プロトコルデータ交換部121が、制御機器2からプロトコルデータのもととなる通信用データを受信し、このデータをプロトコル記述方式にデコードしたものである。つまり、プロトコルスタック131は、制御機器2のプロトコルスタック231と同じものである。このプロトコルスタック131は、前記したとおり、機器制御ドライバ部122が制御機器2を制御するときに用いられる。ここでのプロトコルスタック131に含まれるプロトコルデータは、様々なものが考えられるが、本実施の形態では、制御機器IO処理プロトコルデータ132と、ICタグ処理プロトコルデータ133と、制御機器初期化処理プロトコルデータ134とを含む場合を例に説明する。つまり、制御機器IO処理プロトコルデータ132は、制御機器2の制御機器IO処理プロトコルデータ232と同じデータであり、ICタグ処理プロトコルデータ133は、制御機器2のICタグ処理プロトコルデータ233と同じデータであり、制御機器初期化処理プロトコルデータ134は、制御機器2の制御機器初期化処理プロトコルデータ234と同じデータである。プロトコルスタック131に含まれるプロコトルデータの詳細は、プロトコルスタック231の説明の項で後記する。なお、図示を省略したが、この記憶部13には、前記した各制御機器2に共通な汎用ドライバ、プロトコル交換部121の機能を実現するためのプログラム等が格納されている。   The storage unit 13 is configured by a semiconductor memory or the like, and stores the protocol stack 131 in a predetermined area. In the protocol stack 131, as described above, the protocol data exchanging unit 121 receives communication data that is the basis of the protocol data from the control device 2, and decodes the data into the protocol description method. That is, the protocol stack 131 is the same as the protocol stack 231 of the control device 2. The protocol stack 131 is used when the device control driver unit 122 controls the control device 2 as described above. Various protocol data may be included in the protocol stack 131 here. In this embodiment, the control device IO processing protocol data 132, the IC tag processing protocol data 133, and the control device initialization processing protocol are used. A case where data 134 is included will be described as an example. That is, the control device IO processing protocol data 132 is the same data as the control device IO processing protocol data 232 of the control device 2, and the IC tag processing protocol data 133 is the same data as the IC tag processing protocol data 233 of the control device 2. The control device initialization processing protocol data 134 is the same data as the control device initialization processing protocol data 234 of the control device 2. Details of the protocol data included in the protocol stack 131 will be described later in the description of the protocol stack 231. Although not shown, the storage unit 13 stores a general-purpose driver common to the control devices 2 described above, a program for realizing the function of the protocol exchange unit 121, and the like.

<制御機器>
次に、制御機器2を説明する。制御機器2は、図1に示すように、入出力部21と、制御処理部22と、記憶部23とを備える。なお、この制御機器2は、図示を省略しているが、ICカード等のICタグ情報を読み取るICタグ読み取り部や、LEDランプや、ブザー等を備える。このLEDランプやブザーは、ICタグの認証結果(認証OK/認証NG)を表示するためのものである。このサービス処理部222は、このコントローラ1からの制御信号を受信すると、これに基づき、読み取ったICタグ情報を送信したり、LEDランプを点灯(ON)したり、ブザーを鳴動(ON)したりする。
<Control equipment>
Next, the control device 2 will be described. As shown in FIG. 1, the control device 2 includes an input / output unit 21, a control processing unit 22, and a storage unit 23. Although not shown, the control device 2 includes an IC tag reading unit that reads IC tag information such as an IC card, an LED lamp, and a buzzer. The LED lamp and the buzzer are for displaying an IC tag authentication result (authentication OK / authentication NG). Upon receiving the control signal from the controller 1, the service processing unit 222 transmits the read IC tag information, turns on the LED lamp (ON), sounds the buzzer (ON), and so on. To do.

入出力部21は、接続媒体3経由でコントローラ1との間で信号の送受信を行うためのインタフェースである。   The input / output unit 21 is an interface for transmitting and receiving signals to and from the controller 1 via the connection medium 3.

制御処理部22は、この入出力部21経由で、コントローラ1へプロトコルデータを送信したり、コントローラ1からの制御信号に基づく処理を行ったりする。このような制御処理部22は、コントローラ1へプロトコルデータを送信するプロトコルデータ交換部221と、コントローラ1からの制御信号に基づき各種処理を実行するサービス処理部222とを含んで構成される。なお、ここでサービス処理部222が行う処理は、例えば、制御機器2の初期化や、読み取ったICタグのタグIDの送信、LEDのON/OFF、ブザーのON/OFF等である。また、この制御処理部22も、CPUによるプログラム実行処理、あるいは前記処理を実行する専用回路により実現される。   The control processing unit 22 transmits protocol data to the controller 1 via the input / output unit 21 or performs processing based on a control signal from the controller 1. Such a control processing unit 22 includes a protocol data exchanging unit 221 that transmits protocol data to the controller 1 and a service processing unit 222 that executes various processes based on control signals from the controller 1. Here, the processing performed by the service processing unit 222 includes, for example, initialization of the control device 2, transmission of the tag ID of the read IC tag, ON / OFF of the LED, ON / OFF of the buzzer, and the like. The control processing unit 22 is also realized by a program execution process by the CPU or a dedicated circuit for executing the process.

プロトコルデータ交換部221は、プロトコルスタック231における各プロトコルデータを、通信用データに変換してコントローラ1へ送信する。そして、このような通信用データを受信したコントローラ1は、前記したとおり、このデータをプロトコル記述方式にデコードし、このデコードしたプロトコルデータに基づき制御機器2を制御する。   The protocol data exchange unit 221 converts each protocol data in the protocol stack 231 into communication data and transmits it to the controller 1. Then, as described above, the controller 1 that has received such communication data decodes the data into the protocol description method, and controls the control device 2 based on the decoded protocol data.

ここで、プロトコルデータ交換部221が送信する通信用データを、図2を用いて説明する。図2は、図1の制御機器のプロトコルデータ交換部が送信する通信用データを例示した図である。   Here, communication data transmitted by the protocol data exchange unit 221 will be described with reference to FIG. FIG. 2 is a diagram illustrating communication data transmitted by the protocol data exchange unit of the control device of FIG.

図2に例示するように、通信用データは、この通信用データのヘッダ情報である通信HEAD41と、この通信用データの長さ(具体的には、機器状態記述内容43から通信TAIL45までの長さ)を示したLEN42と、コントローラ1が制御機器2との間で信号のやりとりをするときの処理手順に関する情報である機器状態記述内容43と、サービス処理の定義情報(詳細は後記)等、実際に制御機器2をドライブするためのデータである通信内容44と、データ終了コード等を含む通信TAIL45とを含んで構成される。この機器状態記述内容43および通信内容44の詳細は、各プロトコルデータの説明の項で後記する。   As illustrated in FIG. 2, the communication data includes a communication HEAD 41 that is header information of the communication data and a length of the communication data (specifically, a length from the device state description content 43 to the communication TAIL 45. LEN 42 indicating the above), device status description content 43 which is information regarding a processing procedure when the controller 1 exchanges signals with the control device 2, service processing definition information (details will be described later), etc. The communication content 44 that is data for actually driving the control device 2 and a communication TAIL 45 including a data end code and the like are included. Details of the device state description content 43 and the communication content 44 will be described later in the description of each protocol data.

図1の説明に戻る。記憶部23は、半導体メモリ等により構成され、所定領域にプロトコルスタック231を格納する。このプロトコルスタック231は、前記したとおり、この制御機器2に類似する機種同士の差異を吸収するためのプロトコルデータであり、ここでは例えば、制御機器IO処理プロトコルデータ232と、ICタグ処理プロトコルデータ(サービス処理プロトコルデータ)233と、制御機器初期化処理プロトコルデータ234と含む。   Returning to the description of FIG. The storage unit 23 is configured by a semiconductor memory or the like, and stores the protocol stack 231 in a predetermined area. As described above, the protocol stack 231 is protocol data for absorbing differences between models similar to the control device 2. Here, for example, the control device IO processing protocol data 232 and IC tag processing protocol data ( Service processing protocol data) 233 and control device initialization processing protocol data 234.

この制御機器IO処理プロトコルデータ232は、コントローラ1がこの制御機器2におけるIO処理を制御するためのプロトコルデータである。ここでのIO処理は、例えば、LEDのON/OFFやブザーのON/OFF等である。   The control device IO processing protocol data 232 is protocol data for the controller 1 to control IO processing in the control device 2. Here, the IO processing is, for example, LED ON / OFF, buzzer ON / OFF, or the like.

また、ICタグ処理プロトコルデータ233は、コントローラ1が制御機器2において読み取ったICタグ情報を要求するためのプロトコルデータである。   The IC tag processing protocol data 233 is protocol data for requesting IC tag information read by the controller 1 in the control device 2.

さらに、制御機器初期化処理プロトコルデータ234は、コントローラ1が制御機器2へこの制御機器2の初期化を要求するためのプロトコルデータである。   Furthermore, the control device initialization processing protocol data 234 is protocol data for the controller 1 to request the control device 2 to initialize the control device 2.

なお、このプロトコルデータはそれぞれ、コントローラ1が制御機器2との間で信号のやりとりをするとき処理手順に関する情報(機器状態記述内容)と、サービス処理の定義情報とを備える。   Each of the protocol data includes information related to a processing procedure (device state description content) and service processing definition information when the controller 1 exchanges signals with the control device 2.

<機器状態記述内容>
ここで、図2を参照しながら、機器状態記述内容を説明する。この機器状態記述内容43は、例えば、図2の符号201に示すような機器状態情報と、それぞれの状態における値(符号56に示すBUSY値、符号57に示すTIMEOUT値、符号58に示すSTROBE値)とを含む。
<Device status description contents>
Here, the contents of the device state description will be described with reference to FIG. The device state description content 43 includes, for example, device state information as indicated by reference numeral 201 in FIG. 2 and values in the respective states (BUSY value indicated by reference numeral 56, TIMEOUT value indicated by reference numeral 57, and STROBE value indicated by reference numeral 58). ).

まず、図2の符号201に示す機器状態情報の示す内容を説明する。図2の符号201に示す機器状態情報において、コントローラ1は、BUSY値56に示されるインターバルを満たしているか否かを判断し、満たしていれば通信用データ(制御信号)を送信する状態になる(S51)。つまり、コントローラ1は、制御機器2へ制御信号を送信する。このような通信用データ送信後、コントローラ1は、制御機器2からの応答を受信するまで、TIMEOUT値57に示される時間が経過するのを待つ(S52:WAIT)。次に、TIMEOUT値57で規定した時間経過しても制御機器2からの応答データが無い場合、TIMEOUT状態と判断する(S53:TIMEOUT)。一方、TIMEOUT値57で規定した時間以内に制御機器2から応答データを受信した場合、そのデータを受け取る(S54:RECV)。そして、コントローラ1は、制御機器2からの応答データを受け取ると、シーケンシャル処理において、STROBE値58に示される次の制御信号を送信する状態になる(S55:STROBE)。   First, the contents indicated by the device status information indicated by reference numeral 201 in FIG. 2 will be described. In the device status information indicated by reference numeral 201 in FIG. 2, the controller 1 determines whether or not the interval indicated by the BUSY value 56 is satisfied. If it is satisfied, the controller 1 enters a state of transmitting communication data (control signal). (S51). That is, the controller 1 transmits a control signal to the control device 2. After such communication data transmission, the controller 1 waits for the time indicated by the TIMEOUT value 57 to elapse until a response from the control device 2 is received (S52: WAIT). Next, if there is no response data from the control device 2 even after the time specified by the TIMEOUT value 57 has elapsed, it is determined that the state is the TIMEOUT state (S53: TIMEOUT). On the other hand, when response data is received from the control device 2 within the time specified by the TIMEOUT value 57, the data is received (S54: RECV). Then, when receiving the response data from the control device 2, the controller 1 is in a state of transmitting the next control signal indicated by the STROBE value 58 in the sequential processing (S55: STROBE).

なお、前記したBUSY値56は、この制御機器2がコントローラ1から制御信号(処理要求)を受信するときに最低限空けなければならないインターバルを示したものである。また、TIMEOUT値57は、コントローラ1へ制御信号の応答を出力するとき、コントローラ1側でタイムアウトを判断するときの時間を示したものである。さらに、STROBE値58は、この制御機器2においてシーケンシャル処理を行うときにコントローラ1から受信する必要がある制御信号の並びを示したものである。   The BUSY value 56 described above indicates an interval that must be at least free when the control device 2 receives a control signal (processing request) from the controller 1. The TIMEOUT value 57 indicates the time when the controller 1 determines a timeout when outputting a control signal response to the controller 1. Furthermore, the STROBE value 58 indicates a sequence of control signals that need to be received from the controller 1 when performing sequential processing in the control device 2.

例えば、各プロトコルデータは、機器状態記述内容として、表1に示すようなBUSY(値)、TIMEOUT(値)、STROBE(値)の定義情報を備える。   For example, each protocol data includes definition information of BUSY (value), TIMEOUT (value), and STROBE (value) as shown in Table 1 as device state description contents.

Figure 2008165683
Figure 2008165683

表1に示す定義情報において、BUSY値は「200ms」であり、STROBE値は「0(シーケンシャルなし)」であり、TIMEOUT値は「200ms」であることを示す。   In the definition information shown in Table 1, the BUSY value is “200 ms”, the STROBE value is “0 (no sequential)”, and the TIMEOUT value is “200 ms”.

<サービス処理の定義情報>
また、サービス処理の定義情報は、制御機器2が実行するサービス処理ごとのコマンド番号(サービス番号)を示した情報等である。例えば、「LED」に関するコマンド番号は「0x30」というような情報である。
<Service processing definition information>
The service process definition information is information indicating a command number (service number) for each service process executed by the control device 2. For example, the command number related to “LED” is information such as “0x30”.

このサービス処理の定義情報を、表2および表3を用いて説明する。
表2は、制御機器IO処理プロトコルデータ232が備えるサービス要求の定義情報を例示したものであり、表3は、制御機器IO処理プロトコルデータ232が備えるサービス応答の定義情報を例示したものである。
The service processing definition information will be described with reference to Tables 2 and 3.
Table 2 illustrates service request definition information included in the control device IO processing protocol data 232, and Table 3 illustrates service response definition information included in the control device IO processing protocol data 232.

Figure 2008165683
Figure 2008165683
Figure 2008165683
Figure 2008165683

例えば、表2に示す定義情報おいて、サービス処理のサービス番号はカラム(Char)1桁を用い、この情報の長さ(LEN)に関する情報はカラム2桁を用い、要求するサービスの種類に関する情報はカラム1桁を用い、その付加コードは2桁を用いることを示す(以下、表4および表6に例示する定義情報において同じ)。   For example, in the definition information shown in Table 2, the service processing service number uses one column (Char), and the information about the length (LEN) of this information uses two columns, and information about the type of service requested. Indicates that one column is used and the additional code is two digits (the same applies to the definition information exemplified in Tables 4 and 6 below).

また、表2に例示する定義情報において、このIO処理サービス要求を示す番号(サービス番号)は「0x40」であり、LENは「0x30,0x33」であり、「LED」を示すコマンド番号は「0x30」であり、「ブザー」を示すコマンド番号は「0x31」であることを示す。また、「ON」を示すコマンド番号は「0x30,0x30」であり、「OFF」を示すコマンド番号は「0x30,0x31」であることを示す。例えば、コントローラ1が制御機器2の「LEDをONにする」というIO処理の制御信号を送信したいときは、サービス番号「0x40」、サービスの種類としてコマンド番号「0x30」、付加コードとしてコマンド番号「0x30,0x30」をセットした制御信号を送信すればよいことを示す。   In the definition information exemplified in Table 2, the number (service number) indicating this IO processing service request is “0x40”, the LEN is “0x30, 0x33”, and the command number indicating “LED” is “0x30”. ”And the command number indicating“ buzzer ”is“ 0x31 ”. The command number indicating “ON” is “0x30, 0x30”, and the command number indicating “OFF” is “0x30, 0x31”. For example, when the controller 1 wants to transmit a control signal for IO processing “ON LED” of the control device 2, the service number “0x40”, the command type “0x30” as the service type, and the command number “ This indicates that a control signal in which “0x30, 0x30” is set may be transmitted.

また、表3に例示する定義情報において、サービス処理のサービス番号はカラム1桁を用い、この情報の長さ(LEN)に関する情報はカラム2桁を用い、応答コードはカラム1桁を用いることを示す(以下、表5および表7に例示する定義情報において同じ)。このIO処理サービス応答を示す番号(サービス番号)は「0x41」であり、LENは「0x30,0x31」であり、「処理成功」を示すコマンド番号は「0x30」であり、「処理エラー」を示すコマンド番号は「0x31」であることを示す。例えば、コントローラ1が制御機器2から、サービス番号「0x41」、応答コードとしてコマンド番号「0x31」がセットされた信号を受信したとき、この制御機器2において「IO処理のエラー」が発生したと判断できる。   Also, in the definition information exemplified in Table 3, the service processing service number uses one column, information about the length (LEN) of this information uses two columns, and the response code uses one column. (The same applies to the definition information exemplified in Table 5 and Table 7 below). The number indicating the IO processing service response (service number) is “0x41”, the LEN is “0x30, 0x31”, the command number indicating “processing successful” is “0x30”, and indicates “processing error”. The command number indicates “0x31”. For example, when the controller 1 receives a signal in which the service number “0x41” and the command number “0x31” are set as a response code from the control device 2, it is determined that an “IO processing error” has occurred in the control device 2. it can.

また、ICタグ処理プロトコルデータ233および制御機器初期化処理プロトコルデータ234も同様に、サービス処理の定義情報を保持する。   Similarly, the IC tag processing protocol data 233 and the control device initialization processing protocol data 234 also hold service processing definition information.

表4は、ICタグ処理プロトコルデータ233が備えるサービス要求の定義情報を例示したものであり、表5は、ICタグ処理プロトコルデータ233が備えるサービス応答の定義情報を例示したものである。   Table 4 illustrates service request definition information included in the IC tag processing protocol data 233, and Table 5 illustrates service response definition information included in the IC tag processing protocol data 233.

Figure 2008165683
Figure 2008165683
Figure 2008165683
Figure 2008165683

例えば、表4に例示する定義情報において、このICタグ処理のサービス要求を示す番号(サービス番号)は「0x50」であり、LENは「0x30,0x33」であり、「ICタグ処理」を示すコマンド番号は「0x30」であり、その付加コードは「0x30」であることを示す。例えば、コントローラ1が制御機器2にICタグの読み取り結果を送信させたいときは、サービス番号「0x50」、サービスの種類としてコマンド番号「0x30」、付加コードとしてコマンド番号「0x30」をセットした制御信号を送信すればよいことを示す。   For example, in the definition information exemplified in Table 4, the number indicating the service request for IC tag processing (service number) is “0x50”, the LEN is “0x30, 0x33”, and a command indicating “IC tag processing” The number is “0x30”, and the additional code is “0x30”. For example, when the controller 1 wants to send the reading result of the IC tag to the control device 2, the control signal is set with the service number “0x50”, the command number “0x30” as the service type, and the command number “0x30” as the additional code. Indicates that it should be transmitted.

また、表5に例示する定義情報において、このICタグ処理のサービス応答を示す番号(サービス番号)は「0x51」であり、LENは「0x30,0x33」であり、「処理成功」を示すコマンド番号は「0x30」であり、「処理エラー」を示すコマンド番号は「0x31」であることを示す。さらに、ICタグ情報はカラム16桁を用い、そのカラムに記載された値がそのままICタグ情報(タグID)を表すことを示す。例えば、コントローラ1が制御機器2からサービス番号「0x51」、応答コードとしてコマンド番号「0x30」、ICタグとして16桁の記号がセットされた信号を受信したとき、この制御機器2においてタグIDの読み取りに成功し、そのタグIDは当該カラム16桁の記号で示されるIDであることを知ることができる。   Further, in the definition information exemplified in Table 5, the number (service number) indicating the service response of this IC tag processing is “0x51”, the LEN is “0x30,0x33”, and the command number indicating “successful processing” Is “0x30”, and the command number indicating “processing error” is “0x31”. Further, the IC tag information uses 16 columns and indicates that the value written in the column represents the IC tag information (tag ID) as it is. For example, when the controller 1 receives a signal having a service number “0x51”, a command number “0x30” as a response code, and a 16-digit symbol as an IC tag from the control device 2, the control device 2 reads the tag ID. It can be known that the tag ID is an ID indicated by a 16-digit symbol of the column.

表6は、制御機器初期化処理プロトコルデータ234におけるサービス要求の定義情報を例示したものであり、表7は、制御機器初期化処理プロトコルデータ234におけるサービス応答の定義情報を例示したものである。   Table 6 illustrates service request definition information in the control device initialization processing protocol data 234, and Table 7 illustrates service response definition information in the control device initialization processing protocol data 234.

Figure 2008165683
Figure 2008165683
Figure 2008165683
Figure 2008165683

例えば、表6に例示する定義情報において、この制御機器初期化処理のサービス要求を示す番号(サービス番号)は「0x60」であり、LENは「0x30,0x33」であり、「ソフトリセット」を示すコマンド番号は「0x30」であり、「機器リセット」を示すコマンド番号は「0x31」であることを示す。また、その付加コードは「0x30」であることを示す。例えば、コントローラ1が制御機器2のソフトリセットを指示したいときは、サービス番号「0x60」、サービスの種類としてコマンド番号「0x30」、付加コードとしてコマンド番号「0x30」をセットした制御信号を送信すればよいことを示す。   For example, in the definition information illustrated in Table 6, the number (service number) indicating the service request for the control device initialization process is “0x60”, LEN is “0x30,0x33”, and indicates “soft reset”. The command number is “0x30”, and the command number indicating “device reset” is “0x31”. The additional code is “0x30”. For example, if the controller 1 wants to instruct a soft reset of the control device 2, a control signal with a service number “0x60”, a command number “0x30” as a service type, and a command number “0x30” as an additional code may be transmitted. Indicates good.

また、表7に例示する定義情報において、この制御機器初期化処理のサービス応答を示す番号(サービス番号)は「0x61」であり、「処理成功」を示すコマンド番号は「0x30」であり、「処理エラー」を示すコマンド番号は「0x31」であることを示す。例えば、コントローラ1が制御機器2からサービス番号「0x61」、応答コードとしてコマンド番号「0x30」、付加コードとしてコマンド番号「0x30」がセットされた信号を受信したとき、この制御機器2におけるソフトリセットが成功したと判断できる。   Further, in the definition information exemplified in Table 7, the number (service number) indicating the service response of the control device initialization process is “0x61”, the command number indicating “processing success” is “0x30”, and “ The command number indicating “processing error” indicates “0x31”. For example, when the controller 1 receives a signal having the service number “0x61”, the command number “0x30” as the response code, and the command number “0x30” as the additional code from the control device 2, the soft reset in the control device 2 is performed. Judge that it was successful.

前記したプロトコルデータ交換部221は、このような各プロトコルデータの情報をもとに通信用データ(図2参照)を作成し、コントローラ1へ送信する。このような通信用データを受信したコントローラ1は、この通信用データをプロトコルデータとしてデコードし、このデコードしたプロトコルデータにより、制御機器2との信号の送受信や、この制御機器2に対する制御を実行できるようになる。   The protocol data exchanging unit 221 generates communication data (see FIG. 2) based on such protocol data information, and transmits the communication data to the controller 1. The controller 1 that has received such communication data can decode the communication data as protocol data, and execute transmission / reception of signals to / from the control device 2 and control of the control device 2 using the decoded protocol data. It becomes like this.

<動作説明>
次に、図1および図2を参照しつつ、図3を用いて、図1のコントローラ1および制御機器2の動作を説明する。図3(a)は、図1のコントローラが制御機器から各プロトコルデータを受信する手順を示したフローチャートであり、(b)は、図1の制御機器がコントローラへプロトコルデータを送信する手順を示したフローチャートである。
<Description of operation>
Next, operations of the controller 1 and the control device 2 of FIG. 1 will be described with reference to FIGS. 1 and 2 and FIG. FIG. 3A is a flowchart showing a procedure in which the controller in FIG. 1 receives each protocol data from the control device, and FIG. 3B shows a procedure in which the control device in FIG. 1 transmits the protocol data to the controller. It is a flowchart.

まず、コントローラ1は、制御機器2からの接続イベントの受信を待ち(S301)、接続イベントを受信すると(S301のYes)、プロトコルデータ交換部121は記憶部13に、この制御機器2のプロトコルスタック131があるか否かを判断する(S302)。ここで、既に記憶部13にプロトコルスタック131がある場合(S302のYes)、処理を終了する。   First, the controller 1 waits for reception of a connection event from the control device 2 (S301). When the connection event is received (Yes in S301), the protocol data exchange unit 121 stores the protocol stack of the control device 2 in the storage unit 13. It is determined whether there is 131 (S302). If the protocol stack 131 already exists in the storage unit 13 (Yes in S302), the process ends.

一方、記憶部13にプロトコルスタック131がない場合(S302のNo)、プロトコルデータ交換部121は、制御機器2へプロトコルスタックがない旨を通知する(S303)。そして、プロトコルデータ交換部121は、制御機器2からのプロトコルデータの受信を待ち(S304)、制御機器2からプロトコルデータ(つまり、プロトコルデータの元となる通信用データ)を受信すると(S304のYes)、このプロトコルデータを記憶部13に記憶する。そして、機器制御ドライバ部122は、このプロトコルデータに基づき、制御機器2へ制御信号を送信する(S305)。   On the other hand, when there is no protocol stack 131 in the storage unit 13 (No in S302), the protocol data exchange unit 121 notifies the control device 2 that there is no protocol stack (S303). Then, the protocol data exchanging unit 121 waits for reception of protocol data from the control device 2 (S304), and receives protocol data (that is, communication data that is the basis of the protocol data) from the control device 2 (Yes in S304). ), And stores the protocol data in the storage unit 13. Then, the device control driver unit 122 transmits a control signal to the control device 2 based on the protocol data (S305).

つまり、各機種に共通なドライバと、制御機器2から受信したプロトコルデータとに基づいて、この制御機器2への制御信号を送信する。例えば、受信したプロトコルデータが制御機器IO処理プロトコルデータ132であれば、機器制御ドライバ部122は、制御機器2へLEDをONにさせる制御信号や、ブザーをONにさせる制御信号を送信する。そして、機器制御ドライバ部122において、この制御機器2における処理成功の信号(処理成功メッセージ)を受信したとき(S306のYes)、この制御機器2からの次のプロトコルデータの受信を待つ(S307)。そして、S304へ戻る。   That is, the control signal to the control device 2 is transmitted based on the driver common to each model and the protocol data received from the control device 2. For example, if the received protocol data is the control device IO processing protocol data 132, the device control driver unit 122 transmits to the control device 2 a control signal for turning on the LED and a control signal for turning on the buzzer. When the device control driver unit 122 receives a processing success signal (processing success message) in the control device 2 (Yes in S306), it waits for reception of the next protocol data from the control device 2 (S307). . Then, the process returns to S304.

つまり、コントローラ1は、制御機器2からプロトコルデータを受信すると、このプロトコルデータをもとに制御機器2を正常に制御できるか確認する。そして、制御機器2から処理成功の信号を受信したとき、この制御機器2から次のプロトコルデータが送信されるのを待つ。このようにして、コントローラ1は制御機器2から、制御機器IO処理プロトコルデータ132に続いて、ICタグ処理プロトコルデータ133および制御機器初期化処理プロトコルデータ134を受信し、プロトコルスタック131を形成する。   That is, when receiving the protocol data from the control device 2, the controller 1 confirms whether or not the control device 2 can be normally controlled based on the protocol data. When a successful processing signal is received from the control device 2, the control device 2 waits for the next protocol data to be transmitted. In this way, the controller 1 receives the IC tag processing protocol data 133 and the control device initialization processing protocol data 134 following the control device IO processing protocol data 132 from the control device 2, and forms the protocol stack 131.

なお、S304において、プロトコルデータ交換部121が所定時間経過しても制御機器2からプロトコルデータを受信できなかったとき(S304のNo)、および、S306において制御機器2から処理成功の信号を受信できなかったとき(S306のNo)、処理を終了する。   In S304, when the protocol data exchange unit 121 has not received the protocol data from the control device 2 even after a predetermined time has elapsed (No in S304), and in S306, a signal indicating that the processing has been successful can be received. If not (No in S306), the process is terminated.

このようにすることで、コントローラ1は、制御機器2から受け取った各プロトコルデータの検証を行いながら、プロトコルデータを受信できる。   In this way, the controller 1 can receive protocol data while verifying each protocol data received from the control device 2.

次に、図3(b)を用いて、制御機器2がコントローラ1へ各プロトコルデータを送信する手順を説明する。   Next, a procedure in which the control device 2 transmits each protocol data to the controller 1 will be described with reference to FIG.

まず、制御機器2がコントローラ1に接続されるのを待ち(S308)、制御機器2がコントローラ1に接続すると(S308のYes)、プロトコルデータ交換部221は、コントローラ1へ接続イベントを送信する(S309)。ここで送信する接続イベントは、例えば、この制御機器2の識別情報等を含むものである。   First, the control device 2 waits for connection to the controller 1 (S308), and when the control device 2 connects to the controller 1 (Yes in S308), the protocol data exchange unit 221 transmits a connection event to the controller 1 ( S309). The connection event transmitted here includes, for example, identification information of the control device 2 and the like.

そして、制御機器2は、コントローラ1からこの制御機器2のプロトコルスタック131がない旨の通知の受信を待ち(S310)、制御機器2がコントローラ1からこの制御機器2のプロトコルスタック131がない旨の通知を受信すると(S310のYes)、記憶部23のプロトコルスタック231から、プロトコルデータを選択して読み出し、この読み出したプロトコルデータをコントローラ1へ送信する(S311)。   Then, the control device 2 waits for a notification from the controller 1 that there is no protocol stack 131 of the control device 2 (S310), and the control device 2 indicates that there is no protocol stack 131 of the control device 2 from the controller 1. When the notification is received (Yes in S310), the protocol data is selected and read from the protocol stack 231 of the storage unit 23, and the read protocol data is transmitted to the controller 1 (S311).

次に、サービス処理部222は、S311で送信したプロトコルデータの制御信号の受信を待ち(S312)、S311で送信したプロトコルデータの制御信号を受信すると(S312のYes)、この制御信号に基づく処理を行う。そして、サービス処理部222は、この制御信号に基づく処理結果である応答信号を送信する(S313)。   Next, the service processing unit 222 waits for the reception of the protocol data control signal transmitted in S311 (S312). When the service processing unit 222 receives the protocol data control signal transmitted in S311 (Yes in S312), processing based on this control signal is performed. I do. Then, the service processing unit 222 transmits a response signal that is a processing result based on this control signal (S313).

例えば、サービス処理部222がコントローラ1へ制御機器IO処理プロトコルデータ232を送信した後、コントローラ1から、制御機器2のLEDをONにさせる制御信号や、ブザーをONにさせる制御信号を受信したとき、サービス処理部222において、LEDをONにしたり、ブザーをONにしたりする。そして、サービス処理部222は、その処理結果である応答信号をコントローラ1へ送信する。例えば、LEDや、ブザーをONにした場合、制御機器IO処理プロトコルデータ232に基づき応答信号を送信する。   For example, when the service processing unit 222 transmits the control device IO processing protocol data 232 to the controller 1 and then receives a control signal for turning on the LED of the control device 2 or a control signal for turning on the buzzer from the controller 1. In the service processing unit 222, the LED is turned on or the buzzer is turned on. Then, the service processing unit 222 transmits a response signal that is the processing result to the controller 1. For example, when an LED or a buzzer is turned on, a response signal is transmitted based on the control device IO processing protocol data 232.

そして、プロトコルデータ交換部221は、プロトコルスタック231のすべてのプロトコルデータを送信したか否かを判断し(S314)、すべてのプロトコルデータを送信したとき(S314のYes)、処理を終了する。一方、まだ送信していないプロトコルデータがあるときには(S314のNo)、S311へ戻り、残りのプロトコルデータを送信する。   Then, the protocol data exchange unit 221 determines whether or not all the protocol data of the protocol stack 231 has been transmitted (S314), and when all the protocol data has been transmitted (Yes in S314), the process ends. On the other hand, when there is protocol data that has not been transmitted yet (No in S314), the process returns to S311 to transmit the remaining protocol data.

このようにすることで、コントローラ1は、制御機器2のプロトコルスタック231のすべてのプロトコルデータを受信し、この制御機器2のプロトコルスタック131を作成することができる。   By doing so, the controller 1 can receive all the protocol data of the protocol stack 231 of the control device 2 and create the protocol stack 131 of the control device 2.

なお、制御機器2がコントローラ1へプロトコルデータを送信する手順は、例えば、まず、制御機器初期化処理プロトコルデータ234を送信し、その後、ICタグ処理プロトコルデータ233または制御機器IO処理プロトコルデータ232を送信するのが好ましい。このようにするのは、まず、制御機器2の初期化に成功しないと、その他の処理の検証を行うことができないからである。   The control device 2 transmits the protocol data to the controller 1 by, for example, first transmitting the control device initialization processing protocol data 234 and then sending the IC tag processing protocol data 233 or the control device IO processing protocol data 232. It is preferable to transmit. The reason for this is that, unless the control device 2 is successfully initialized, the other processes cannot be verified.

次に、適宜図1ないし図3を参照しつつ、図4ないし図6を用いて、前記した手順によりプロトコルスタック131を作成したコントローラ1が、このプロトコルスタック131により制御機器2を制御する手順を説明する。図4ないし図6は、図1のコントローラが制御機器を制御する手順を示したシーケンス図である。   Next, referring to FIGS. 1 to 3 as appropriate, the procedure in which the controller 1 that has created the protocol stack 131 according to the procedure described above with reference to FIGS. 4 to 6 controls the control device 2 with the protocol stack 131 will be described. explain. 4 to 6 are sequence diagrams showing a procedure in which the controller of FIG. 1 controls the control device.

なお、以下の説明において、コントローラ1は、制御機器2の初期化後、この制御機器2から所定時間ごとにこの制御機器2で読み取ったタグIDの取得要求を行うものとする。つまり、制御機器2がICカード等からタグIDを読み取った後、コントローラ1からタグIDの取得要求を受信すると、制御機器2はこれに対する応答として、読み取ったタグIDをセットした信号を送信する。なお、制御機器2がコントローラ1からの取得要求を受信したとき、この制御機器2において読み取ったタグIDが無い場合(つまり、制御機器2へ未送信のタグIDが無い場合)、制御機器2はタグIDについて空の状態で信号を送信するものとする。   In the following description, it is assumed that the controller 1 makes an acquisition request for the tag ID read by the control device 2 every predetermined time after the control device 2 is initialized. That is, when the control device 2 receives the tag ID acquisition request from the controller 1 after reading the tag ID from the IC card or the like, the control device 2 transmits a signal in which the read tag ID is set as a response thereto. When the control device 2 receives an acquisition request from the controller 1, if there is no tag ID read by the control device 2 (that is, if there is no tag ID not yet transmitted to the control device 2), the control device 2 It is assumed that a signal is transmitted in an empty state for the tag ID.

制御機器2の初期化がまだ終了していない場合(S401のNo)、コントローラ1の機器制御ドライバ部122は、制御機器初期化処理プロトコルデータ134を参照して、以下の処理を行う。   When the initialization of the control device 2 has not been completed yet (No in S401), the device control driver unit 122 of the controller 1 performs the following processing with reference to the control device initialization processing protocol data 134.

すなわち、機器制御ドライバ部122は、前回の初期化要求送信から所定時間(制御機器初期化処理プロトコルデータ134に示されるBUSY値)経過しているか否かを判断する(S402)。ここで、所定時間経過した場合(S402のYes)、この制御機器の初期化要求(初期化を要求する制御信号)を制御機器へ送信する(S403)。一方、まだ前回の初期化要求送信から所定時間経過していなければ(S402のNo)、所定時間経過するのを待つ。なお、機器制御ドライバ部122が送信する初期化要求は、例えば、制御機器2のソフトリセットや機器リセットを指示するサービス番号およびコマンド番号(表6等参照)を含む制御信号である。   That is, the device control driver unit 122 determines whether or not a predetermined time (BUSY value indicated in the control device initialization processing protocol data 134) has elapsed since the previous initialization request transmission (S402). If a predetermined time has elapsed (Yes in S402), an initialization request for this control device (a control signal for requesting initialization) is transmitted to the control device (S403). On the other hand, if the predetermined time has not elapsed since the previous initialization request transmission (No in S402), the process waits for the predetermined time to elapse. The initialization request transmitted by the device control driver unit 122 is, for example, a control signal including a service number and a command number (see Table 6 etc.) for instructing software reset or device reset of the control device 2.

一方、既に制御機器2の初期化が終了していれば(S401のYes)、図5のS501へ進む。S501については後記する。   On the other hand, if the initialization of the control device 2 has already been completed (Yes in S401), the process proceeds to S501 in FIG. S501 will be described later.

S403においてコントローラ1から送信された初期化要求を受信した制御機器2は、サービス処理部222において初期化処理を行う(S404)。そして、その初期化処理が成功したとき(S405のYes)、サービス処理部222は、この初期化処理の処理成功メッセージをコントローラ1へ送信する(S407)。一方、サービス処理部222は初期化処理に失敗したとき(S405のNo)、処理エラーメッセージをコントローラ1へ送信する(S406)。ここで送信するメッセージは、例えば、表7に例示したようなサービス番号やコマンド番号(応答コード)を含む信号である。   The control device 2 that has received the initialization request transmitted from the controller 1 in S403 performs initialization processing in the service processing unit 222 (S404). When the initialization process is successful (Yes in S405), the service processing unit 222 transmits a process success message for the initialization process to the controller 1 (S407). On the other hand, when the initialization processing fails (No in S405), the service processing unit 222 transmits a processing error message to the controller 1 (S406). The message transmitted here is, for example, a signal including a service number and a command number (response code) as exemplified in Table 7.

コントローラ1の機器制御ドライバ部122は、S403の初期化要求送信後、タイムアウト時間(制御機器初期化処理プロトコルデータ134に示されるTIMEOUT値)内に、この初期化処理の処理成功メッセージを受信したとき(S408のYes)、S501へ進む。なお、ここで受信したメッセージ(信号)が、この初期化処理の処理成功メッセージであるか否かは、制御機器初期化処理プロトコルデータ134におけるサービス番号や応答コードの定義情報(表7参照)を参照して判断する。   When the device control driver unit 122 of the controller 1 receives this initialization processing success message within the timeout period (TIMEOUT value indicated in the control device initialization processing protocol data 134) after sending the initialization request in S403 (Yes in S408), the process proceeds to S501. Whether the message (signal) received here is a process success message of this initialization process is determined by the service number and response code definition information in the control device initialization process protocol data 134 (see Table 7). Refer to and judge.

一方、機器制御ドライバ部122においてタイムアウト時間内に処理成功メッセージを受信できなかったとき(S408のNo)、制御処理部12は、この制御機器2の初期化に失敗し、故障している可能性が高いことを示すフラグを立て(S409:故障判断処理)、処理を終了する。   On the other hand, when the device control driver unit 122 fails to receive a processing success message within the timeout period (No in S408), the control processing unit 12 may fail to initialize the control device 2 and may be out of order. Is raised (S409: failure determination process), and the process is terminated.

図5の説明に移る。次に、コントローラ1の機器制御ドライバ部122は、ICタグ処理プロトコルデータ133を参照して、以下の処理を行う。すなわち、機器制御ドライバ部122は、前回のICタグ処理要求送信から所定時間(ICタグ処理プロトコルデータ133に示されるBUSY値)経過しているか否かを判断する(S501)。ここで、所定時間経過していれば(S501のYes)、この制御機器のICタグ処理要求(制御機器2で読み取ったICタグのタグIDを要求する制御信号)を制御機器へ送信する(S502)。一方、まだ前回のICタグ処理要求送信から所定時間経過していなければ(S501のNo)、所定時間経過するのを待つ。ここで、機器制御ドライバ部122が送信するICタグ処理要求は、制御機器2のICタグ処理を指示するサービス番号およびコマンド番号(表4等参照)を含む制御信号である。   Turning to the description of FIG. Next, the device control driver unit 122 of the controller 1 refers to the IC tag processing protocol data 133 and performs the following processing. In other words, the device control driver unit 122 determines whether or not a predetermined time (BUSY value indicated in the IC tag processing protocol data 133) has elapsed since the previous transmission of the IC tag processing request (S501). If the predetermined time has elapsed (Yes in S501), an IC tag processing request for this control device (a control signal requesting the tag ID of the IC tag read by the control device 2) is transmitted to the control device (S502). ). On the other hand, if the predetermined time has not elapsed since the previous transmission of the IC tag processing request (No in S501), it waits for the predetermined time to elapse. Here, the IC tag processing request transmitted by the device control driver unit 122 is a control signal including a service number and a command number (see Table 4 and the like) instructing the IC tag processing of the control device 2.

このようなICタグ処理要求を受信した制御機器2は、サービス処理部222においてICタグ処理を行う(S503)。例えば、読み取ったICタグのタグIDをコントローラ1へ送信する処理を行う。そして、そのICタグ処理が成功したとき(S504のYes)、サービス処理部222は、このICタグ処理の処理成功メッセージと、処理結果データ(読み取ったタグIDがあれば、そのタグID)をコントローラ1へ送信する(S506)。一方、サービス処理部222はICタグ処理に失敗したとき(S504のNo)、処理エラーメッセージをコントローラ1へ送信する(S505)。ここで送信するメッセージは、例えば、表5に例示したようなサービス番号やコマンド番号(応答コード)、タグID等を含む信号である。   The control device 2 that has received such an IC tag processing request performs IC tag processing in the service processing unit 222 (S503). For example, a process of transmitting the tag ID of the read IC tag to the controller 1 is performed. When the IC tag processing is successful (Yes in S504), the service processing unit 222 sends the IC tag processing success message and processing result data (if there is a read tag ID, the tag ID) to the controller. 1 is transmitted (S506). On the other hand, when the IC tag processing has failed (No in S504), the service processing unit 222 transmits a processing error message to the controller 1 (S505). The message transmitted here is, for example, a signal including a service number, a command number (response code), a tag ID, and the like as exemplified in Table 5.

コントローラ1の機器制御ドライバ部122は、前記した初期化処理の場合と同様、S502におけるICタグ処理要求送信後、タイムアウト時間内にこのICタグ処理の処理成功メッセージを受信したか否かを判断する(S507)。つまり、機器制御ドライバ部122は、ICタグ処理プロトコルデータ133に示されるTIMEOUT値の時間内に、処理成功メッセージを受信したか否かを判断し、処理成功メッセージを受信できたとき(S507のYes)、図6のS601へ進む。なお、ここで受信したメッセージ(信号)が、このICタグ処理の処理成功メッセージであるか否かは、前記した初期化処理の場合と同様、ICタグ処理プロトコルデータ133におけるサービス番号や応答コードの定義情報(表5参照)を参照して判断する。また、ここで処理結果データとしてタグIDを受信したときは、このタグIDを記憶部13のRAM等に記憶しておく。一方、制御機器2は、読み取ったタグIDが特になければ、タグIDのカラムには特に情報をセットせずにコントローラ1へ信号を送信する。   As in the case of the initialization process described above, the device control driver unit 122 of the controller 1 determines whether or not the IC tag process success message has been received within the timeout period after the transmission of the IC tag process request in S502. (S507). That is, the device control driver unit 122 determines whether or not a processing success message has been received within the time of the TIMEOUT value indicated in the IC tag processing protocol data 133, and when the processing success message has been received (Yes in S507). ), The process proceeds to S601 in FIG. Whether or not the message (signal) received here is a processing success message of this IC tag processing is the same as the case of the initialization processing described above, in the service number and response code in the IC tag processing protocol data 133. Judgment is made with reference to the definition information (see Table 5). When the tag ID is received as the processing result data, the tag ID is stored in the RAM of the storage unit 13 or the like. On the other hand, if the read tag ID is not particularly specified, the control device 2 transmits a signal to the controller 1 without setting any information in the tag ID column.

一方、S507において、機器制御ドライバ部122は、タイムアウト時間内に、処理成功メッセージを受信できなかったとき(S507のNo)、制御処理部12は、前記したS407と同様、この制御機器2においてICタグの読み取り処理ができない状態であり、故障している可能性が高いことを示すフラグを立てる(S508:故障判断処理)。そして、処理を終了する。   On the other hand, in S507, when the device control driver unit 122 fails to receive the processing success message within the timeout period (No in S507), the control processing unit 12 uses the IC in the control device 2 as in S407 described above. A flag indicating that the tag cannot be read and that there is a high possibility of a failure is set (S508: failure determination process). Then, the process ends.

S507のYesの後、コントローラ1の機器制御ドライバ部122は、制御機器IO処理プロトコルデータ132を参照して、以下の処理を行う。   After Yes in S507, the device control driver unit 122 of the controller 1 refers to the control device IO processing protocol data 132 and performs the following processing.

なお、以下の説明において、コントローラ1がS507で受信した処理結果データには、タグIDが含まれているものとする。そして、コントローラ1はそのタグIDをもとに認証処理を行い、認証OKであれば制御機器2のLEDをON、ブザーはOFFとし、認証NGであれば制御機器2のLEDをOFF、ブザーはOFFとする制御信号を送信する場合を例に説明する。   In the following description, it is assumed that the processing result data received by the controller 1 in S507 includes a tag ID. Then, the controller 1 performs an authentication process based on the tag ID. If the authentication is OK, the LED of the control device 2 is turned on and the buzzer is turned off. If the authentication is NG, the LED of the control device 2 is turned off. A case where a control signal for turning OFF is transmitted will be described as an example.

図6のS601において、コントローラ1の制御処理部12は、受信した処理結果データ(タグID)をもとに認証処理を実行する(S601)。ここで、認証OKだった場合(S602のYes)、機器制御ドライバ部122は、前回のIO処理要求送信から所定時間(制御機器IO処理プロトコルデータ132に示されるBUSY値)経過しているか否かを判断する(S605)。ここで、所定時間経過していれば(S605のYes)、機器制御ドライバ部122は、この制御機器のIO処理要求(IO処理を要求する制御信号)を制御機器へ送信する(S606)。一方、まだ所定時間経過していなければ(S605のNo)、機器制御ドライバ部122はIO処理要求を送信しない。なお、ここで機器制御ドライバ部122が送信するIO処理要求は、例えば、制御機器2のLEDのONやブザーのOFFを指示するサービス番号およびコマンド番号(表2等参照)を含む制御信号である。   In S601 of FIG. 6, the control processing unit 12 of the controller 1 executes an authentication process based on the received processing result data (tag ID) (S601). If the authentication is OK (Yes in S602), the device control driver unit 122 determines whether or not a predetermined time (BUSY value indicated in the control device IO processing protocol data 132) has elapsed since the previous IO processing request transmission. Is determined (S605). Here, if the predetermined time has passed (Yes in S605), the device control driver unit 122 transmits an IO processing request (control signal for requesting IO processing) of the control device to the control device (S606). On the other hand, if the predetermined time has not yet elapsed (No in S605), the device control driver unit 122 does not transmit the IO processing request. Here, the IO processing request transmitted by the device control driver unit 122 is a control signal including, for example, a service number and a command number (see Table 2 etc.) instructing the LED of the control device 2 to be turned on and the buzzer to be turned off. .

一方、S602において認証エラーが発生した場合(S602のNo)も、機器制御ドライバ部122は、前回のIO処理要求送信から所定時間(制御機器IO処理プロトコルデータ132に示されるBUSY値)経過していれば(S603のYes)、この制御機器のIO処理要求(IO処理を要求する制御信号)を制御機器へ送信する(S604)。一方、まだ所定時間経過していなければ(S603のNo)、機器制御ドライバ部122はIO処理要求を送信せず、前回のIO処理要求送信から所定時間経過するのを待つ。   On the other hand, even when an authentication error occurs in S602 (No in S602), the device control driver unit 122 has passed a predetermined time (BUSY value indicated in the control device IO processing protocol data 132) since the previous IO processing request transmission. If this is the case (Yes in S603), the control device's IO processing request (control signal for requesting IO processing) is transmitted to the control device (S604). On the other hand, if the predetermined time has not yet elapsed (No in S603), the device control driver unit 122 does not transmit the IO processing request, but waits for a predetermined time since the previous IO processing request transmission.

ここで、機器制御ドライバ部122が送信するIO処理要求は、制御機器2のLEDのOFFやブザーのONを指示するサービス番号およびコマンド番号(表2参照)を含む制御信号である。   Here, the IO processing request transmitted by the device control driver unit 122 is a control signal including a service number and a command number (see Table 2) instructing the LED of the control device 2 to be turned off and the buzzer to be turned on.

このようなIO処理要求を受信した制御機器2は、サービス処理部222においてIO処理を行う(S607)。そして、そのIO処理が成功したとき(S608のYes)、サービス処理部222は、このIO処理の処理成功メッセージをコントローラ1へ送信する(S610)。一方、サービス処理部222はIO処理に失敗したとき(S608のNo)、処理エラーメッセージをコントローラ1へ送信する(S609)。ここで送信するメッセージは、例えば、表3に例示したようなサービス番号やコマンド番号(応答コード)を含む信号である。   Upon receiving such an IO processing request, the control device 2 performs IO processing in the service processing unit 222 (S607). When the IO process is successful (S608: Yes), the service processing unit 222 transmits a process success message for the IO process to the controller 1 (S610). On the other hand, when the IO processing has failed (No in S608), the service processing unit 222 transmits a processing error message to the controller 1 (S609). The message transmitted here is, for example, a signal including a service number and a command number (response code) as exemplified in Table 3.

コントローラ1の機器制御ドライバ部122は、S604またはS606におけるIO処理要求送信後、タイムアウト時間(制御機器IO処理プロトコルデータ132に示されるTIMEOUT値)内に、このIO処理成功メッセージを受信したとき(S611のYes)、図5のS501へ戻る。なお、ここで受信したメッセージ(信号)が、このIO処理の処理成功メッセージであるか否かは、前記した初期化やICタグ処理の場合と同様、制御機器IO処理プロトコルデータ132におけるサービス番号や応答コードの定義情報(表2参照)を参照して判断する。   When the device control driver unit 122 of the controller 1 receives this IO processing success message within the timeout period (TIMEOUT value indicated in the control device IO processing protocol data 132) after the transmission of the IO processing request in S604 or S606 (S611). Yes), the process returns to S501 in FIG. Whether or not the message (signal) received here is a processing success message of this IO processing is the same as in the case of the initialization or IC tag processing described above, the service number in the control device IO processing protocol data 132, The determination is made with reference to the response code definition information (see Table 2).

一方、機器制御ドライバ部122においてタイムアウト時間内に処理成功メッセージを受信できなかったとき(S611のNo)、制御処理部12は、この制御機器2は故障している可能性が高いことを示すフラグを立て(S612:故障判断処理)、処理を終了する。   On the other hand, when the device control driver unit 122 fails to receive a processing success message within the timeout period (No in S611), the control processing unit 12 indicates that the control device 2 is likely to be faulty. (S612: failure determination process) and the process ends.

このように、コントローラ1は制御機器2から送信されたプロトコルスタック231(つまり、プロトコルスタック131)に基づき、制御機器2との間で信号送受信ができるようになる。特に、コントローラ1は、制御機器2のプロトコルデータとして、この制御機器2に固有のBUSY値やTIMEOUT値等を送信するので、コントローラ1はこの制御機器2へサービス要求(制御信号)を送信するとき、この制御機器2をBUSY状態させない送信間隔で送信することができる。また、コントローラ1において、この制御機器2が正常に動作していることの確認(ヘルスチェック)をすることができ、大変便利である。   As described above, the controller 1 can transmit and receive signals to and from the control device 2 based on the protocol stack 231 (that is, the protocol stack 131) transmitted from the control device 2. In particular, since the controller 1 transmits a BUSY value, a TIMEOUT value, etc. specific to the control device 2 as protocol data of the control device 2, the controller 1 transmits a service request (control signal) to the control device 2. The control device 2 can be transmitted at a transmission interval that does not set the BUSY state. Further, the controller 1 can confirm (health check) that the control device 2 is operating normally, which is very convenient.

なお、S409、S508およびS612において、コントローラ1がこの制御機器2は故障している可能性が高いことを示す判断をしたとき、例えば、コントローラ1は、この制御機器2に故障が発生していることを示す信号を入出力部11経由で出力する。つまり、コントローラ1による制御機器2のヘルスチェック結果を表示部等に出力する。このようにすることで、コントローラ1へこの制御機器2を接続する作業を行う作業者は、この制御機器2において故障が発生しているか否かをすぐに確認でき、大変便利である。   In S409, S508, and S612, when the controller 1 determines that there is a high possibility that the control device 2 has failed, for example, the controller 1 has failed in the control device 2. A signal indicating this is output via the input / output unit 11. That is, the health check result of the control device 2 by the controller 1 is output to a display unit or the like. By doing in this way, the operator who performs the operation | work which connects this control apparatus 2 to the controller 1 can confirm immediately whether the malfunction has generate | occur | produced in this control apparatus 2, and it is very convenient.

なお、図4ないし図6において、説明を省略したが、コントローラ1が制御機器2から受信するプロトコルデータにSTROBE値が設定されていれば、コントローラ1はこのSTORBE値にしたがって制御信号を送信し、制御機器2にシーケンシャル処理を行わせる。   Although not described in FIGS. 4 to 6, if the STROBE value is set in the protocol data received by the controller 1 from the control device 2, the controller 1 transmits a control signal according to the STORBE value. Causes the control device 2 to perform sequential processing.

本実施の形態に係るコントローラ1および制御機器2は前記したような処理を実行させるプログラムによって実現することができ、そのプログラムをコンピュータによる読み取り可能な記憶媒体(CD−ROM等)に記憶して提供することが可能である。また、そのプログラムを、インターネット等のネットワークを通して提供することも可能である。   The controller 1 and the control device 2 according to the present embodiment can be realized by a program for executing the processing as described above, and the program is stored in a computer-readable storage medium (CD-ROM or the like) and provided. Is possible. It is also possible to provide the program through a network such as the Internet.

本実施の形態のコントローラと、このコントローラに接続される制御機器の構成を例示した図である。It is the figure which illustrated the structure of the controller of this Embodiment, and the control apparatus connected to this controller. 図1の制御機器のプロトコルデータ交換部が送信する通信用データを例示した図である。It is the figure which illustrated the data for communication which the protocol data exchange part of the control apparatus of FIG. 1 transmits. (a)は、図1のコントローラが制御機器からプロトコルデータを受信する手順を示したフローチャートであり、(b)は、図1の制御機器がコントローラへプロトコルデータを送信する手順を示したフローチャートである。(A) is a flowchart showing a procedure for the controller in FIG. 1 to receive protocol data from the control device, and (b) is a flowchart showing a procedure for the control device in FIG. 1 to send protocol data to the controller. is there. 図1のコントローラが制御機器を制御する手順を示したシーケンス図である。It is the sequence diagram which showed the procedure in which the controller of FIG. 1 controls a control apparatus. 図1のコントローラが制御機器を制御する手順を示したシーケンス図である。It is the sequence diagram which showed the procedure in which the controller of FIG. 1 controls a control apparatus. 図1のコントローラが制御機器を制御する手順を示したシーケンス図である。It is the sequence diagram which showed the procedure in which the controller of FIG. 1 controls a control apparatus.

符号の説明Explanation of symbols

1 コントローラ
2 制御機器
3 接続媒体
11,21 入出力部
12,22 制御処理部
13,23 記憶部
121,221 プロトコルデータ交換部
122 機器制御ドライバ部
131,231 プロトコルスタック
132,232 制御機器IO処理プロトコルデータ
133,333 ICタグ処理プロトコルデータ
134,234 制御機器初期化処理プロトコルデータ
222 サービス処理部
DESCRIPTION OF SYMBOLS 1 Controller 2 Control apparatus 3 Connection medium 11,21 Input / output part 12,22 Control processing part 13,23 Storage part 121,221 Protocol data exchange part 122 Equipment control driver part 131,231 Protocol stack 132,232 Control equipment IO processing protocol Data 133,333 IC tag processing protocol data 134,234 Control device initialization processing protocol data 222 Service processing unit

Claims (11)

自身の制御機器に類似する機種との差異となるプロトコルデータとして、(1)コントローラからの制御信号を受信するときのインターバルを示したBUSY値および(2)前記自身の制御機器において実行する処理のコマンド番号を示した定義情報を記憶する記憶部と、前記コントローラから、前記定義情報に示されるコマンド番号を含む制御信号を受信し、この制御信号に応じて処理を実行し、その処理の実行結果を前記制御信号の応答として送信するサービス処理部とを備える制御機器。   As protocol data that is different from a model similar to its own control device, (1) a BUSY value indicating an interval when receiving a control signal from the controller, and (2) a process executed in the control device. A storage unit that stores definition information indicating a command number, and a control signal including the command number indicated in the definition information is received from the controller, a process is executed according to the control signal, and an execution result of the process And a service processing unit that transmits a response as a response to the control signal. 前記プロトコルデータは、
前記コントローラが、前記制御機器からの制御信号の応答のタイムアウトを検知するための時間を示したTIMEOUT値をさらに含むことを特徴とする請求項1に記載の制御機器。
The protocol data is
The control device according to claim 1, further comprising a TIMEOUT value indicating a time for the controller to detect a timeout of a response of a control signal from the control device.
前記プロトコルデータは、
前記制御機器がシーケンシャル処理を行うために、前記コントローラから受信する必要がある前記制御信号のコマンド番号の並びを示したSTOROBE値をさらに含むことを特徴とする請求項1または請求項2に記載の制御機器。
The protocol data is
3. The STOROBE value indicating a sequence of command numbers of the control signals that need to be received from the controller in order for the control device to perform sequential processing, according to claim 1 or 2, Control equipment.
自身の制御機器に類似する機種との差異となるプロトコルデータとして、(1)コントローラからの制御信号を受信するときのインターバルを示したBUSY値および(2)前記自身の制御機器において実行する処理のコマンド番号を示した定義情報を記憶する記憶部と、前記コントローラから、前記コマンド番号を含む制御信号を受信し、この制御信号に応じて処理を実行し、その処理の実行結果を前記制御信号の応答として送信するサービス処理部とを備える制御機器から、前記プロトコルデータを受信するプロトコルデータ交換部と、
前記制御機器に類似する機種に共通なドライバと、前記受信したプロトコルデータとを記憶する記憶部と、
前記ドライバと前記プロトコルデータとを用いて、前記制御機器へ前記コマンド番号を含む前記制御信号を送信し、この制御機器に所定の処理を実行させ、前記処理の実行結果を前記制御信号の応答として受信する機器制御ドライバ部とを備え、
前記機器制御ドライバ部は、
前記プロトコルデータのBUSY値に示されるインターバルで、前記制御機器へ前記制御信号を送信することを特徴とするコントローラ。
As protocol data that is different from a model similar to its own control device, (1) a BUSY value indicating an interval when receiving a control signal from the controller, and (2) a process executed in the control device. A control unit including the command number is received from the controller that stores the definition information indicating the command number and the controller, and processing is executed in accordance with the control signal. A protocol data exchange unit for receiving the protocol data from a control device including a service processing unit to transmit as a response;
A driver common to a model similar to the control device, and a storage unit for storing the received protocol data;
The control signal including the command number is transmitted to the control device using the driver and the protocol data, the control device is caused to execute a predetermined process, and the execution result of the process is used as a response to the control signal. A device control driver unit for receiving,
The device control driver unit is
A controller, wherein the control signal is transmitted to the control device at an interval indicated by a BUSY value of the protocol data.
前記プロトコルデータは、
前記コントローラが、前記制御機器からの制御信号の応答のタイムアウトを検知するための時間を示したTIMEOUT値をさらに含み、
前記機器制御ドライバ部は、
前記制御機器へ前記制御信号を送信した後、前記プロトコルデータのTIMEOUT値に示される時間以上経過しても、当該制御機器から、前記制御信号の応答を受信しなかったとき、前記制御機器の異常を検知することを特徴とする請求項4に記載のコントローラ。
The protocol data is
The controller further includes a TIMEOUT value indicating a time for detecting a timeout of a control signal response from the control device;
The device control driver unit is
After transmitting the control signal to the control device, if a response to the control signal is not received from the control device even after the time indicated by the TIMEOUT value of the protocol data has elapsed, an abnormality of the control device is detected. The controller according to claim 4, wherein the controller is detected.
前記プロトコルデータは、
前記制御機器がシーケンシャル処理を行うために、前記コントローラから受信する必要がある前記制御信号のコマンド番号の並びを示したSTOROBE値をさらに含み、
前記機器制御ドライバ部は、
前記プロトコルデータに示されるSTOROBE値を参照して、前記シーケンシャルのために必要な前記制御信号を前記制御機器へ送信することを特徴とする請求項4または請求項5に記載のコントローラ。
The protocol data is
Further including a STOROBE value indicating a sequence of command numbers of the control signals that need to be received from the controller in order for the control device to perform sequential processing;
The device control driver unit is
6. The controller according to claim 4, wherein the control signal required for the sequential is transmitted to the control device with reference to a STOROBE value indicated in the protocol data.
前記制御信号は、
前記制御機器における初期化処理、IO処理およびサービス処理の少なくともいずれか1つの処理に関する制御信号であり、
前記プロトコルデータは、
前記制御機器における初期化処理、IO処理およびサービス処理それぞれに関するBUSY値、TIMEOUT値およびSTROBE値のうち少なくともいずれか1つの値を含むものであることを特徴とする請求項6に記載のコントローラ。
The control signal is
A control signal related to at least one of initialization processing, IO processing and service processing in the control device;
The protocol data is
7. The controller according to claim 6, wherein the controller includes at least one of a BUSY value, a TIMEOUT value, and a STROBE value relating to each of initialization processing, IO processing, and service processing in the control device.
制御対象となる各制御機器に共通なドライバを備えるコントローラが、
自身の制御機器に類似する機種との差異となるプロトコルデータとして、(1)前記コントローラからの制御信号を受信するときのインターバルを示したBUSY値および(2)前記自身の制御機器において実行する処理のコマンド番号を示した定義情報を含むプロトコルデータを受信するステップと、
前記受信したプロトコルデータを前記コントローラの記憶部に記憶するステップと、
前記ドライバと前記記憶されたプロトコルデータとを参照して、このプロトコルデータのBUSY値に示されるインターバルで、前記制御機器へ前記定義情報に示されるコマンド番号を含む前記制御信号を送信するステップと、
前記制御機器における処理の実行結果を前記制御信号の応答として受信するステップとを実行することを特徴とする制御方法。
A controller with a driver common to each control device to be controlled
As protocol data that is different from a model similar to its own control device, (1) a BUSY value indicating an interval when receiving a control signal from the controller and (2) a process executed in the control device Receiving protocol data including definition information indicating the command number of
Storing the received protocol data in a storage unit of the controller;
Referring to the driver and the stored protocol data, transmitting the control signal including a command number indicated in the definition information to the control device at an interval indicated by a BUSY value of the protocol data;
Receiving a result of execution of the process in the control device as a response to the control signal.
前記プロトコルデータは、
前記コントローラが、前記制御機器からの制御信号の応答のタイムアウトを検知するための時間を示したTIMEOUT値をさらに含み、
前記コントローラが、
前記制御機器へ前記制御信号を送信した後、前記プロトコルデータのTIMEOUT値に示される時間以上経過しても、当該制御機器から、前記制御信号の応答を受信しなかったとき、前記制御機器の異常を検知することを特徴とする請求項8に記載の制御方法。
The protocol data is
The controller further includes a TIMEOUT value indicating a time for detecting a timeout of a control signal response from the control device;
The controller is
After transmitting the control signal to the control device, if a response to the control signal is not received from the control device even after the time indicated by the TIMEOUT value of the protocol data has elapsed, an abnormality of the control device is detected. The control method according to claim 8, wherein the control is detected.
前記プロトコルデータは、
前記制御機器がシーケンシャル処理を行うために、前記コントローラから受信する必要がある前記制御信号のコマンド番号の並びを示したSTOROBE値をさらに含み、
前記コントローラが、
前記プロトコルデータに示されるSTOROBE値を参照して、前記シーケンシャルのために必要な前記制御信号を前記制御機器へ送信することを特徴とする請求項8または請求項9に記載の制御方法。
The protocol data is
Further including a STOROBE value indicating a sequence of command numbers of the control signals that need to be received from the controller in order for the control device to perform sequential processing;
The controller is
The control method according to claim 8 or 9, wherein the control signal necessary for the sequential is transmitted to the control device with reference to a STOROBE value indicated in the protocol data.
前記制御信号は、
前記制御機器における初期化処理、IO処理およびサービス処理の少なくともいずれか1つの処理に関する制御信号であり、
前記プロトコルデータは、
前記制御機器における初期化処理、IO処理およびサービス処理それぞれに関するBUSY値、TIMEOUT値およびSTROBE値のうち少なくともいずれか1つの値を含むものであることを特徴とする請求項10に記載の制御方法。
The control signal is
A control signal related to at least one of initialization processing, IO processing and service processing in the control device;
The protocol data is
11. The control method according to claim 10, wherein the control method includes at least one of a BUSY value, a TIMEOUT value, and a STROBE value relating to an initialization process, an IO process, and a service process in the control device.
JP2007000220A 2007-01-04 2007-01-04 Control device, its controller and control method Pending JP2008165683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007000220A JP2008165683A (en) 2007-01-04 2007-01-04 Control device, its controller and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007000220A JP2008165683A (en) 2007-01-04 2007-01-04 Control device, its controller and control method

Publications (1)

Publication Number Publication Date
JP2008165683A true JP2008165683A (en) 2008-07-17

Family

ID=39695051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007000220A Pending JP2008165683A (en) 2007-01-04 2007-01-04 Control device, its controller and control method

Country Status (1)

Country Link
JP (1) JP2008165683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032365B2 (en) 2009-05-22 2015-05-12 Nec Corporation Script description separation reconstructing device, script description separation reconstructing method, and non-transitory computer readable medium storing script description separation reconstructing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9032365B2 (en) 2009-05-22 2015-05-12 Nec Corporation Script description separation reconstructing device, script description separation reconstructing method, and non-transitory computer readable medium storing script description separation reconstructing program

Similar Documents

Publication Publication Date Title
CA2605852A1 (en) Reader control system
JP2007188521A5 (en)
CN101647028B (en) Method for establishing a wireless communication connection between an automation component and a mobile operating terminal
WO2015028446A1 (en) System and method for pairing devices
JP2012520471A5 (en)
CN107526681B (en) Robot test system and test method
EP1710642A2 (en) Distributed control apparatus
KR20140015281A (en) Display integrated control systems and display integrated input device
US11464111B2 (en) Stacked structure of circuit boards
JP2008165683A (en) Control device, its controller and control method
JP2020074204A (en) Work management system
JP4782063B2 (en) Control method for operating system and manufacturing system of a plurality of devices
KR101761668B1 (en) Apparatus for recognizing change of communication mode of barcode scanner
JP2005269468A (en) Identification information setting method, identification information setting device, and connector device with control function
JP2009104351A (en) Connection state decision system
US10838670B2 (en) Printing apparatus and method for printing based on presence or absence of input information from a peripheral device
CN114980056B (en) Multi-Bluetooth connection data transmission method and system
JPH11110333A (en) Central supervisory system
JPH03500587A (en) network interface board system
KR100917542B1 (en) How to set communication protocol of slave device
JP2005073075A (en) Remote monitoring and control system
JP3870890B2 (en) Operation board, remote I/O communication control method
JP4811030B2 (en) Radio tag transmission / reception device and program capable of visually recognizing reading result
KR20120121681A (en) Apparatus and method of confirming ID of servo
JP2006106999A (en) Programmable controller