JP2014096698A - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP2014096698A JP2014096698A JP2012247177A JP2012247177A JP2014096698A JP 2014096698 A JP2014096698 A JP 2014096698A JP 2012247177 A JP2012247177 A JP 2012247177A JP 2012247177 A JP2012247177 A JP 2012247177A JP 2014096698 A JP2014096698 A JP 2014096698A
- Authority
- JP
- Japan
- Prior art keywords
- sensor
- communication
- sensors
- error information
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
【課題】センサのエラー情報をPLCに送信することに伴う通信速度の低下を抑制する。
【解決手段】通信ユニットは、PLCならびに複数のセンサに物理的かつ電気的に接続され、複数のセンサから受信した情報をPLCに向けて送信する。通信ユニットは、PLCからのコマンドに対するエラーを示すエラー情報を、センサから受信すると、複数のセンサから受信した複数の種別のエラー情報のうち、一部の種別のエラー情報のみをPLCに送信する。複数のセンサから受信した全ての種別のエラー情報ではなく、一部の種別のエラー情報のみが通信ユニットからPLCに送信されるため、エラー情報の送信時におけるデータ量を最小限に抑えることができる。よって、センサから送信されたエラー情報に起因する通信速度の低下を抑制することができる。
【選択図】図13[PROBLEMS] To suppress a decrease in communication speed associated with transmitting sensor error information to a PLC.
A communication unit is physically and electrically connected to a PLC and a plurality of sensors, and transmits information received from the plurality of sensors to the PLC. When the communication unit receives error information indicating an error in response to a command from the PLC from the sensor, the communication unit transmits only some types of error information to the PLC among the plurality of types of error information received from the plurality of sensors. Since not all types of error information received from a plurality of sensors but only some types of error information are transmitted from the communication unit to the PLC, the amount of data during transmission of error information can be minimized. . Therefore, it is possible to suppress a decrease in communication speed due to error information transmitted from the sensor.
[Selection] Figure 13
Description
本発明は、通信装置に関し、特に、複数のセンサから受信したエラー情報を、制御装置に向けて送信する技術に関する。 The present invention relates to a communication device, and more particularly to a technique for transmitting error information received from a plurality of sensors to a control device.
一般的に、生産ラインには、複数のセンサが設けられる。制御装置としてのPLC(Programmable Logic Controller)は、種々のセンサから入力された信号に応答して、製造
機械を制御する。このような製造システムにおいては、システム構成を簡素にすべく、センサからの入力系統を一元化したいというニーズがある。
In general, a production line is provided with a plurality of sensors. A PLC (Programmable Logic Controller) as a control device controls a manufacturing machine in response to signals input from various sensors. In such a manufacturing system, there is a need to unify input systems from sensors in order to simplify the system configuration.
このようなニーズに対し、特開2011−28525号公報(引用文献1)に記載のように、ネットワークユニット(通信ユニット)が複数のセンサから送信されたデータを一括管理して制御装置に転送するシステムが用いられ得る。 In response to such needs, as described in Japanese Patent Application Laid-Open No. 2011-28525 (Cited document 1), the network unit (communication unit) collectively manages data transmitted from a plurality of sensors and transfers it to the control device. A system can be used.
特開2011−28525号公報に記載のようにセンサと制御装置との通信経路が通信ユニットによって一本化されるシステムでは、各センサからのエラー情報も通信ユニットに集約される。しかしながら、エラーの種別は1つではなく、各センサ毎に異なる種別のエラーが報告されることもあり得る。この場合、通信ユニットから制御装置に伝達すべきデータの量が増え得る。その結果、通信速度が低下し得る。 In a system in which the communication path between the sensor and the control device is unified by a communication unit as described in JP 2011-28525 A, error information from each sensor is also collected in the communication unit. However, the type of error is not one, and different types of errors may be reported for each sensor. In this case, the amount of data to be transmitted from the communication unit to the control device can be increased. As a result, the communication speed can be reduced.
本発明は、上述の課題に鑑みてなされたものであって、その目的は、センサから送信されたエラー情報に起因する通信速度の低下を抑制することである。 The present invention has been made in view of the above-described problems, and an object thereof is to suppress a reduction in communication speed due to error information transmitted from a sensor.
通信装置は、制御装置ならびに複数のセンサに物理的かつ電気的に接続され、複数のセンサから受信した情報を制御装置に向けて送信する。この通信装置は、制御装置からのコマンドに対するエラーを示すエラー情報を、センサから受信するための手段と、複数のセンサから受信した複数の種別のエラー情報のうち、一部の種別のエラー情報のみを制御装置に送信するための送信手段とを備える。 The communication device is physically and electrically connected to the control device and the plurality of sensors, and transmits information received from the plurality of sensors to the control device. This communication device has a means for receiving error information indicating an error in response to a command from a control device from a sensor, and only some types of error information among a plurality of types of error information received from a plurality of sensors. For transmitting to the control device.
複数のセンサから受信した全ての種別のエラー情報ではなく、一部の種別のエラー情報のみが通信装置から制御装置に送信されるため、エラー情報の送信時におけるデータ量を最小限に抑えることができる。よって、センサから送信されたエラー情報に起因する通信速度の低下を抑制することができる。なお、ユーザ等が認識されたエラーに対処した上で、次のコマンドを発行し、またエラー情報が得られたなら、同様の処理を繰り返すことで最終的には全てのエラーを解消することができるため、一部の種別のエラー情報のみを送信することに問題は無い。 Not all types of error information received from multiple sensors, but only some types of error information are sent from the communication device to the control device, minimizing the amount of data when sending error information it can. Therefore, it is possible to suppress a decrease in communication speed due to error information transmitted from the sensor. In addition, after dealing with errors recognized by the user, etc., if the next command is issued and error information is obtained, all errors can be finally resolved by repeating the same processing. Therefore, there is no problem in transmitting only some types of error information.
予め定められた優先度が最も高い種別のエラー情報のみを制御装置に送信するようにしてもよい。一例として、優先順位は、ユーザがエラーを解消するために要する時間などを考慮してユーザが定める。例えば、エラーを解消するのに要する時間が短い程、エラー情報の種別の優先度が高く定められ得る。 Only the error information of the type having the highest priority set in advance may be transmitted to the control device. As an example, the priority is determined by the user in consideration of the time required for the user to resolve the error. For example, the shorter the time required to resolve an error, the higher the priority of the error information type.
制御装置からのコマンドは、通信装置を介して、コマンドの識別情報等の所定の情報をセンサに送信することによってセンサに与えてもよい。この場合、制御装置からのコマンドが実行されると、通信装置が、所定の情報をセンサから受け取るようにしてもよい。制御装置からのコマンドに対してエラーが生じた場合、通信装置は、所定の情報の代わりにエラー情報をセンサから受け取ってもよい。すなわち、各センサは、与えられたコマンドの実行に成功すれば制御装置から得た情報をそのまま返信し、エラーが生じた場合は制御装置から得た情報をエラー情報に置き換えて返信してもよい。これにより、コマンドの成否を明示するとともに、エラー情報の送信に伴うデータ量の増大を抑制することができる。よって、通信速度に与える悪影響を小さくできる。 The command from the control device may be given to the sensor by transmitting predetermined information such as command identification information to the sensor via the communication device. In this case, when a command from the control device is executed, the communication device may receive predetermined information from the sensor. When an error occurs in response to a command from the control device, the communication device may receive error information from the sensor instead of the predetermined information. That is, each sensor may return the information obtained from the control device as it is if execution of the given command is successful, and may return the information obtained from the control device with error information if an error occurs. . As a result, it is possible to clearly indicate the success or failure of the command and to suppress an increase in the amount of data associated with the transmission of error information. Therefore, adverse effects on the communication speed can be reduced.
複数のセンサから受信した全ての種別のエラー情報ではなく、一部の種別のエラー情報のみが通信装置から制御装置に送信されるため、エラー情報の送信時におけるデータ量を最小限に抑えることができる。よって、センサから送信されたエラー情報に起因する通信速度の低下を抑制することができる。 Not all types of error information received from multiple sensors, but only some types of error information are sent from the communication device to the control device, minimizing the amount of data when sending error information it can. Therefore, it is possible to suppress a decrease in communication speed due to error information transmitted from the sensor.
以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同一である。したがって、それらについての詳細な説明は繰返さない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.
図1を参照して、センサシステムの一例としての光電センサシステム1について説明する。なお、光電センサシステム以外のセンサシステムを用いてもよい。光電センサシステム1は、通信ユニット10と、複数の分散ユニット20(20A,20B)と、複数のセンサ30(30A〜30N)とを備える。
A
通信ユニット10は、以下に説明する態様で、PLC2ならびに複数のセンサ30に物理的かつ電気的に接続され、複数のセンサ30から受信した情報をPLC2に向けて送信する。
The
通信ユニット10は、LAN(Local Area Network)などのネットワークを介してPLC2に接続される。本実施の形態において、通信ユニット10は、EtherCAT(登録商標)を利用してPLC2と通信するように構成される。EtherCAT(登録商標)の代わりにCC−LINK(登録商標)、DeviceNET、CompoNETなどを利用してもよい。
The
分散ユニット20A,20Bは、通信ユニット10に対してバス形式で接続される。本実施の形態においては2つの分散ユニット20A,20Bが用いられるが、分散ユニットの数は2つに限定されず、いくつであってもよい。
The
本実施の形態において、各分散ユニット20A,20Bは、通信ユニット10とシリアル伝送路で物理的に接続される。なお、各分散ユニット20A,20Bは、通信ユニット10とパラレル伝送路で物理的に接続されてもよい。
In the present embodiment, each of the
通信ユニット10および分散ユニット20A,20Bには、夫々異なるセンサ30が接続される。すなわち、センサ30A〜30Nは、光電センサシステム1において、分散して設置される。一例として、本実施の形態においては、センサ30A〜30Fは、通信ユニット10に接続される。センサ30G〜30Iは、分散ユニット20Aに接続される。センサ30J〜30Nは、分散ユニット20Bに接続される。各センサ30は、互いに隣接して一列に配列され得る。
Different sensors 30 are connected to the
センサ30の総数ならびに、通信ユニット10および分散ユニット20の各々に接続されるセンサ30の数は図1に示される数に限定されない。一例として、通信ユニット10にセンサが接続されなくてもよい。
The total number of sensors 30 and the number of sensors 30 connected to each of the
本実施の形態において、通信ユニット10は、センサ30A〜30Fからの信号をPLC2に伝達する。分散ユニット20Aは、センサ30G〜30Iからの信号を通信ユニット10に伝達し、通信ユニット10が、分散ユニット20Aからの信号をPLC2に伝達する。分散ユニット20Bは、センサ30J〜30Nからの信号を通信ユニット10に伝達し、通信ユニット10が、分散ユニット20Bからの信号をPLC2に伝達する。したがって、各センサ30A〜30Nからの信号は、通信ユニット10によって一元化されてPLC2に伝えられる。
In the present embodiment, the
一例として、各センサ30の検出値としきい値とを比較した結果得られる判別信号(オン/オフ値)、エラー情報、検出値のボトム値、検出値のピーク値、ボトム値またはピーク値としきい値を比較して得られる警告(ワーニング)情報、センサの検出値、センサにおいて設定されるしきい値などの設定値が各センサ30から通信ユニット10に直接、あるいは分散ユニット20を介して間接的に、所定の周期で送信される。本実施の形態において、センサ30の検出値は、一例として受光量である。また、設定値は一例として、受光量、ピーク値またはボトム値などと比較されるしきい値である。各センサ30から通信ユニット10に送信される情報はこれらに限定されない。その他、光電センサシステム1内におけるセンサ30の数、通信ユニット10の状態(初期化状態、プレオペレーショナル状態、セーフオペレーショナル状態、オペレーショナル状態)を通信ユニット10がPLC2に通知するようにしてもよい。
As an example, a discrimination signal (on / off value) obtained as a result of comparing the detection value of each sensor 30 with a threshold value, error information, detection value bottom value, detection value peak value, bottom value, or peak value are threshold values. Setting values such as warning (warning) information obtained by comparing values, sensor detection values, threshold values set in the sensors, etc. are directly sent from each sensor 30 to the
図2、3を参照して通信ユニット10についてさらに説明する。図2に示すように、通信ユニット10は、PLC2との接続に用いられる入力コネクタ101および出力コネクタ102、分散ユニット20との接続に用いられる接続コネクタ104、センサ30との接続に用いられる接続コネクタ106、電源入力コネクタ108を備える。
The
さらに、図3に示すように、通信ユニット10は、MPU(Micro Processing Unit)110、通信ASIC(Application Specific Integrated Circuit)112、シリアル通信回路114、パラレル通信回路116、シリアル通信回路118、電源回路120を備える。
Furthermore, as shown in FIG. 3, the
MPU110は、通信ユニット10における全ての処理を統括して実行するように動作する。通信ASIC112は、PLC2との通信を管理する。上述したように、通信ユニット10は、EtherCATを利用してPLC2と通信する。通信ユニット10は、メッセージ通信を利用してPLC2から要求されたデータをPLC2に送信する一方で、サイクリック通信を利用してデータをPLC2に所定の周期的に送信する。一例として、センサ30から受信したデータおよび通信ユニット10が生成したデータがMPU110内のメモリ111aに一旦保存され、メモリ111aに保存されたデータがサイクリック通信で送信される。すなわち、メモリ111aからデータが読み出される周期として、サイクリック通信の送信周期が定められる。サイクリック通信の送信周期は、メモリ111bに保存されたテーブルに従って、データの種類毎に定められた優先度に従って定められる。データの送信周期については後で詳細に説明する。
The
シリアル通信回路114は、通信ユニット10と分散ユニット20との間のシリアル通信に用いられる。なお、パラレル通信を用いてもよい。通信ユニット10と分散ユニット20との接続に用いられる通信線は、一例として送信用と受信用の2本である。
The
パラレル通信回路116は、通信ユニット10とセンサ30との間のパラレル通信に用いられ、シリアル通信回路118は、通信ユニット10とセンサ30との間のシリアル通信に用いられる。すなわち、通信ユニット10とセンサ30とがシリアル伝送路およびパラレル伝送路で物理的に接続される。なお、通信ユニット10とセンサ30とを、シリアル伝送路およびパラレル伝送路のうちのいずれか一方で接続してもよい。
The
図4、5を参照して分散ユニット20についてさらに説明する。図4に示すように、分散ユニット20は、通信ユニット10との接続に用いられる接続コネクタ202、センサ30との接続に用いられる接続コネクタ204、電源入力コネクタ206、ロータリースイッチ208を備える。
The
さらに、図5に示すように、分散ユニット20は、MPU210、通信ユニット10との通信のためのシリアル通信回路212、センサ30との通信のためのシリアル通信回路214、電源回路216を備える。
Further, as shown in FIG. 5, the
MPU210は、分散ユニット20における全ての処理を統括して実行するように動作する。上述したように、通信ユニット10と分散ユニット20とはバス形式で接続され、シリアル通信が利用される。
The
センサ30は、たとえば分散ユニット20の側面に取り付けられる。分散ユニット20とセンサ30との通信には、シリアル通信が用いられるが、パラレル通信を用いてもよい。一方、分散ユニット20とセンサ30とは、シリアル伝送路およびパラレル伝送路のうちの少なくともいずれか一方で物理的に接続される。分散ユニット20とセンサ30とを、シリアル伝送路およびパラレル伝送路で接続してもよい。
The sensor 30 is attached to the side surface of the
本実施の形態において、分散ユニット20は光電センサシステム1内において複数設けられることから、各々の分散ユニット20を区別して通信ユニット10と通信するためには、各々の分散ユニット20の識別番号を特定する必要がある。この目的のため、ユーザは、ロータリースイッチ208を用いて各分散ユニット20の識別番号を設定することができる。通信ユニット10は、受信したデータに含まれる識別番号から、データの送信元の分散ユニット20を特定することができる。また、通信ユニット10から発信されるデータに識別番号を含ませることにより、所望の分散ユニット20に対してコマンドを与えることができる。
In the present embodiment, since a plurality of distributed
また、本実施の形態においては各分散ユニット20の識別番号はPLC2にも伝達される。
In the present embodiment, the identification number of each
図6を参照して、センサ30についてさらに説明する。センサ30は、アンプユニット301と、ファイバユニット302とを備える。アンプユニット301は、ケーシングに回動自在に取付けられた開閉カバーと、本体ケーシングの内部に収容されたフレームとを有している。開閉カバーの開状態において露出するフレームの上面に表示部および操作部を有している。操作部をユーザが操作することによって、しきい値等の設定値を設定することができる。また、センサ30は、PLC2等からの指令に基づき、設定値を自動的に設定することも可能である。
The sensor 30 will be further described with reference to FIG. The sensor 30 includes an
アンプユニット301の両側壁部分に、通信ユニット10、分散ユニット20または他のアンプユニット301との接続コネクタ304,306が設けられている。したがって、アンプユニット301は、通信ユニット10または分散ユニット20に対して直列的に複数接続することが可能である。よって、他のアンプユニット301に接続されたアンプユニット301からの信号は、他のアンプユニット301を介して通信ユニット10または分散ユニット20に伝達される。
Connection connectors 304 and 306 to the
アンプユニット301の前壁部分には、ファイバユニット302が接続される。ファイバユニット302は、ヘッド部と、投光側光ファイバおよび受光側光ファイバとを備える。
A fiber unit 302 is connected to the front wall portion of the
本実施の形態において、各アンプは自身のチャネル番号を認識するように構成されている。一例として、全てのセンサ30が隣接するセンサ30に対して所定の信号を発信するように制御されている期間において、信号を受信しないセンサ30が自身を親機として認識し、チャネル番号が「1」であると認識する。そして、親機であるセンサ30が、隣接するのセンサ30に対して、図7に例示するバイナリデータを送信する。このバイナリデータを受け取ったセンサ30、すなわち子機であるセンサ30は、受け取ったバイナリデータの「自CH番号」にデータ「0x01」入力されていたため、このバイナリデータを受け取ったセンサ30は、自身のチャネル番号がチャネル「2」であることを認識する。すなわち、受け取ったバイナリデータデータの「自CH番号」により表されるチャネル番号よりも1つだけ大きい番号がチャネル番号として認識される。 In this embodiment, each amplifier is configured to recognize its own channel number. As an example, in a period in which all the sensors 30 are controlled to transmit a predetermined signal to the adjacent sensor 30, the sensor 30 that does not receive the signal recognizes itself as a parent device, and the channel number is “1”. ”. Then, the sensor 30 that is the parent device transmits binary data illustrated in FIG. 7 to the adjacent sensor 30. Since the sensor 30 that has received this binary data, that is, the sensor 30 that is a slave unit, has entered the data “0x01” in the “own CH number” of the received binary data, the sensor 30 that has received this binary data It recognizes that the channel number is channel “2”. That is, a number that is one greater than the channel number represented by the “own CH number” of the received binary data data is recognized as the channel number.
そして、チャネル2のセンサ30は、隣接するセンサ30に対して、図8に例示するバイナリデータを送信する。図8に示すバイナリデータデータでは、チャネル番号を1つインクリメントしてチャネル番号がチャネル2であることを表すべく、データ「0x02」が「自CH番号」として入力されている。よって、受け取ったバイナリデータの「自CH番号」においてデータ「0x05」が入力されていた場合には、送信するバイナリデータの「自CH番号」においてデータ「0x06」が入力される。
Then, the sensor 30 of the
このようにして、バイナリデータが各センサ30によって順次送られる。各センサ30は、受け取ったバイナリデータデータの「自CH番号」により表されるチャネル番号よりも1つだけ大きい番号をチャネル番号として認識する。 In this way, binary data is sequentially sent by each sensor 30. Each sensor 30 recognizes, as a channel number, a number that is one greater than the channel number represented by the “own CH number” of the received binary data data.
チャネル番号は、通信ユニット10および各分散ユニット20のそれぞれにおいて識別される。よって、たとえばチャネル1のセンサ30が複数存在し得る。図1に示す例では、センサ30Aのチャネル番号、センサ30Gのチャネル番号、およびセンサ30Jのチャネル番号は全て「1」である。識別されたチャネル番号は、通信ユニット10ならびにPLC2に送信される。PLC2は、センサ30のチャネル番号と分散ユニット20の識別番号とから構成される宛先を用いることによって、所望のセンサ30に対してコマンドを与えることができる。
The channel number is identified in each of the
図9に、センサ30にコマンドを与えるためにPLC2から通信ユニット10に対して送信されるコマンドデータ40の一例を示す。コマンドデータ40の第1データ領域401には、コマンドデータ40の宛先が入力される。第2データ領域402には、コマンドの種別を表す識別情報としてのコマンドIDが入力される。第3データ領域403には、種々の数値を表すデータが入力される。たとえば、各センサ30において設定されるしきい値を特定の値に変更するコマンドが発行された場合、第3データ領域403にてしきい値の具体的な値が入力される。その他、第3データ領域403には送信元のアドレスなど、種々の情報が入力される。
FIG. 9 shows an example of
第1データ領域401においては、センサ30の夫々に対応する箇所(桁)に「1」が入力されているか、「0」が入力されているかによって、宛先が入力されている。図1に例示される光電システム1について説明すると、第1データ領域401のうち、部分411が通信ユニット10に接続されたセンサ30A〜30Fに割当てられた領域である。より具体的には、部分411の1桁目がセンサ30Aに割当てられる。以下、同様に、部分411の2〜6桁目がセンサ30B〜30Fにそれぞれ割当てられる。
In the
第1データ領域401のうち、部分412が分散ユニット20Aに接続されたセンサ30G〜30Iに割当てられた領域である。部分412の1〜3桁目(第1データ領域401全体の7〜9桁目)がセンサ30G〜30Iにそれぞれ割当てられる。
Of the
第1データ領域401のうち、部分413が分散ユニット20Bに接続されたセンサ30J〜30Nに割当てられた領域である。部分413の1〜5桁目(第1データ領域401全体の10〜14桁目)がセンサ30J〜30Nにそれぞれ割当てられる。
In the
要するに、各部分411〜413の1桁目はチャネル1のセンサ30に割当てられ、以下同様に、2桁目以降がチャネル2以降のセンサ30に順番に割当てられる。
In short, the first digit of each of the
本実施の形態において、コマンドデータ40は全てのセンサ30に送信されるが、各センサ30は、コマンドデータ40を受け取ると、自身に割当てられた箇所に「1」が入力されているか「0」が入力されているかによって、コマンドデータ40が自身に向けて送信されたものであるか否かを判別する。
In the present embodiment, the
例えば、センサ30Aは、チャネル番号が「1」であることから部分411の1桁目に入力された数値が「1」であるか「0」であるかによってコマンドデータ40が自身に向けて送信されたものであるか否かを判別する。部分411の1桁目に「1」が入力されていると、センサ30Aは、コマンドデータ40が自身に向けて送信されたものであると認識し、第2データ領域402に入力されたコマンドIDによって特定されるコマンドを実行する。
For example, since the channel number is “1”, the
しかしながら、本実施の形態においては、複数のセンサ30においてチャネル番号が重複し得るものの、各センサ30はチャネル番号が重複していることを知り得ない。したがって、たとえば分散ユニット20Aに接続されたセンサ30Gは、自身のチャネル番号が「1」であり、部分412の1桁目は第1データ領域401全体の7桁目であることから宛先を誤認し得る。この場合、部分412の1桁目に「0」が入力されていても、部分411の1桁目に「1」が入力されているため、センサ30Gは、誤ってコマンドを実行し得る。
However, in the present embodiment, although the channel numbers may be duplicated in the plurality of sensors 30, each sensor 30 cannot know that the channel numbers are duplicated. Therefore, for example, the
このような宛先の誤認を防ぐべく、通信ユニット10は、各分散ユニット20の識別番号と、各分散ユニット20に接続されたセンサ30の数を把握しているため、それらのデータを利用して、第1データ領域401から一部の宛先のみを抜き出し、各センサ30に対して加工後のコマンドデータを送信する。
In order to prevent such misidentification of the destination, the
図1に示す光電センサシステム1の例であれば、図10に示されるように、第1データ領域401のうち、部分411のみが抜き出されたコマンドデータ40Aが、通信ユニット10に接続されたセンサ30A〜30Fに送信される。
In the example of the
また、図11に示されるように、第1データ領域401のうち、部分412のみが抜き出されたコマンドデータ40Bが分散ユニット20Aならびに分散ユニット20Aに接続されたセンサ30G〜30Iに送信される。
Also, as shown in FIG. 11,
さらに、図12に示されるように、第1データ領域401のうち、部分413のみが抜き出されたコマンドデータ40Cが分散ユニット20Bならびに分散ユニット20Bに接続されたセンサ30J〜30Nに送信される。
Further, as shown in FIG. 12, command data 40C in which only the
なお、通信ユニット10からPLC2にセンサ30から出力されたデータを転送する際には、上記の処理とは逆に、分けられていた部分を繋げることによって第1データ領域401を復元し、第1データ領域401がデータの送信元としてPLC2に送られる
上記したように、「1」が入力されている箇所に対応するセンサ30は、第2データ領域402に入力されたコマンドIDによって特定されるコマンドを実行する。コマンドが有効であり、コマンドを正常に実行することができた場合、各センサ30は受け取った第2データ領域402に変更を加えずに、コマンドIDを含むデータをPLC2に向けて返信する。
In addition, when transferring the data output from the sensor 30 from the
一方、何等かの理由によりコマンドに対してエラーが生じると、センサ30は、コマンドIDの代わりにエラー情報を第2データ領域402に入力し、PLC2に向けて返信する。エラー情報は、PLC2に送信される前に通信ユニット10において集約され、複数の種別のエラー情報のうち、一部の種別のエラー情報のみがPLC2に転送される。より具体的には、受信した複数の種別のエラー情報のうち、予め定められた優先度が最も高い種別のエラー情報のみが通信ユニット10からPLC2に送信される。
On the other hand, when an error occurs with respect to a command for any reason, the sensor 30 inputs error information in place of the command ID into the
図13に、エラー情報と、種別毎に定められた優先度とを示す。種別毎の優先度は、テーブルとして通信ユニット10内のメモリ等に記憶される。図13における「0x08」、「0x04」、「0x02」、「0x01」等のエラーコードが、エラー情報として上述したコマンドIDの代わりに第2データ領域402に入力されて、通信ユニット10に送信される。
FIG. 13 shows error information and priorities determined for each type. The priority for each type is stored in a memory or the like in the
本実施の形態においては、「0x08」のエラーの優先度が最も高く、以下、「0x04」、「0x02」、「0x01」の順番に優先度が低い。優先度は、たとえば、ユーザがエラーを解消するために要する時間等を考慮して定められる。一例として、ユーザがエラーを解消するために要する時間が短いエラーほど、優先度が高くなるように定められる。なお、優先度を決定する方法はこれに限定されず、ニーズに応じて適宜優先度を設定すればよい。 In the present embodiment, the priority of the error “0x08” is the highest, and the priority is lower in the order of “0x04”, “0x02”, and “0x01”. The priority is determined in consideration of, for example, the time required for the user to resolve the error. As an example, an error is determined such that the priority is higher as the error takes less time for the user to resolve the error. The method for determining the priority is not limited to this, and the priority may be set as appropriate according to the needs.
図14を参照して、本実施の形態において通信ユニット10が実行する処理について説明する。
With reference to FIG. 14, the process which the
ステップ(以下、ステップをSと略す)100にて、PLC2からコマンドデータを受信すると(S100にてYES)、S102にて、各センサ30に向けてコマンドデータを転送する。、
S104にて、各センサ30からエラー情報を受信すると(S104にてYES)、複数の種別のエラー情報のうち、優先度が最も高い種別のエラー情報のみをPLC2に送信する。
When command data is received from
If error information is received from each sensor 30 in S104 (YES in S104), only the error information of the highest priority type among the plurality of types of error information is transmitted to the PLC2.
今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 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.
1 光電センサシステム、2 PLC、10 通信ユニット、20,20A,20B 分散ユニット、30,30A,30B,30C,30D,30E,30F,30G,30H,30I,30J,30K,30L,30M,30N センサ、40,40A,40B,40C コマンドデータ、101 入力コネクタ、102 出力コネクタ、104,106,202,204,304,306 接続コネクタ、108,206 電源入力コネクタ、110,210 MPU、111a,111b メモリ、112 通信ASIC、114,118,212,214 シリアル通信回路、116 パラレル通信回路、120,216 電源回路、208 ロータリースイッチ、301 アンプユニット、302 ファイバユニット、400 データ、401 第1データ領域、402 第2データ領域、403 第3データ領域。
1 photoelectric sensor system, 2 PLC, 10 communication unit, 20, 20A, 20B dispersion unit, 30, 30A, 30B, 30C, 30D, 30E, 30F, 30G, 30H, 30I, 30J, 30K, 30L, 30M,
Claims (4)
前記制御装置からのコマンドに対するエラーを示すエラー情報を、前記センサから受信するための手段と、
前記複数のセンサから受信した複数の種別のエラー情報のうち、一部の種別のエラー情報のみを前記制御装置に送信するための送信手段とを備える、通信装置。 A communication device that is physically and electrically connected to a control device and a plurality of sensors, and that transmits information received from the plurality of sensors to the control device,
Means for receiving from the sensor error information indicating an error in response to a command from the control device;
A communication apparatus comprising: a transmission unit configured to transmit only some error information of a plurality of types of error information received from the plurality of sensors to the control device.
前記制御装置からのコマンドが実行されると、前記通信装置は、前記所定の情報を前記センサから受け取り、
前記制御装置からのコマンドに対してエラーが生じた場合、前記通信装置は、前記所定の情報の代わりに前記エラー情報を前記センサから受け取る、請求項1または2に記載の通信装置。 A command from the control device is given to the sensor by transmitting predetermined information to the sensor via the communication device,
When a command from the control device is executed, the communication device receives the predetermined information from the sensor,
The communication device according to claim 1 or 2, wherein when an error occurs with respect to a command from the control device, the communication device receives the error information from the sensor instead of the predetermined information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012247177A JP2014096698A (en) | 2012-11-09 | 2012-11-09 | Communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012247177A JP2014096698A (en) | 2012-11-09 | 2012-11-09 | Communication device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2014096698A true JP2014096698A (en) | 2014-05-22 |
Family
ID=50939448
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012247177A Pending JP2014096698A (en) | 2012-11-09 | 2012-11-09 | Communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2014096698A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016217837A (en) * | 2015-05-19 | 2016-12-22 | 日本精工株式会社 | Proximity sensor |
| WO2019235236A1 (en) * | 2018-06-07 | 2019-12-12 | オムロン株式会社 | Sensor system |
| JP2021192554A (en) * | 2016-08-24 | 2021-12-16 | Necプラットフォームズ株式会社 | Relay device, communication system, relay method, and relay program |
-
2012
- 2012-11-09 JP JP2012247177A patent/JP2014096698A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016217837A (en) * | 2015-05-19 | 2016-12-22 | 日本精工株式会社 | Proximity sensor |
| JP2021192554A (en) * | 2016-08-24 | 2021-12-16 | Necプラットフォームズ株式会社 | Relay device, communication system, relay method, and relay program |
| WO2019235236A1 (en) * | 2018-06-07 | 2019-12-12 | オムロン株式会社 | Sensor system |
| JP2019212142A (en) * | 2018-06-07 | 2019-12-12 | オムロン株式会社 | Sensor system |
| JP7068654B2 (en) | 2018-06-07 | 2022-05-17 | オムロン株式会社 | Sensor system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2725436B1 (en) | Communication device connectable to a control device and a plurality of sensors | |
| RU2665890C2 (en) | Data management and transmission system, gateway module, input/output module and process control method | |
| EP3220582B1 (en) | Slave device, control method of slave device, information processing program and recording medium | |
| US6606670B1 (en) | Circuit serial programming of default configuration | |
| US9519283B2 (en) | Method and apparatus for transmitting data in an automated control system | |
| US11146425B2 (en) | IO-link device | |
| CN110663222B (en) | Processing process data | |
| JP2000196700A (en) | Start-stop synchronization data transmitting method | |
| US7299310B2 (en) | Connection module for the connection of a sensor to a fieldbus | |
| CN103814549A (en) | Method and device for coupling a first sensor with at least one second sensor | |
| JP2014096698A (en) | Communication device | |
| CN104219121B (en) | Serial bus communication on-line reorganization method based on FPGA | |
| US20130166799A1 (en) | Method for allocating subscriber addresses to bus subscribers of a bus-based control system | |
| CN108369403A (en) | Field bus coupler, system and the method for config failure insurance module | |
| JP6098106B2 (en) | Sensor system and communication device | |
| US8811459B1 (en) | Robust and simple to configure cable-replacement system | |
| CN112241383A (en) | Updating of components of a modular system | |
| US20180046589A1 (en) | Function connection unit | |
| CN103905235A (en) | Interface configuration method and apparatus, network transmission device, and communication system | |
| CN110663226B (en) | data bus user equipment | |
| JP2014085804A (en) | Communication device | |
| KR100932148B1 (en) | Master module and slave module communication method of PLC network | |
| KR20100117705A (en) | Plc control system using usn | |
| CN114095534A (en) | Data interaction method, device and system, wireless module and air conditioning unit | |
| CN111158810B (en) | HMI human-machine interface data communication method and HMI human-machine interface device |