JP2007147533A - Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium - Google Patents
Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium Download PDFInfo
- Publication number
- JP2007147533A JP2007147533A JP2005344969A JP2005344969A JP2007147533A JP 2007147533 A JP2007147533 A JP 2007147533A JP 2005344969 A JP2005344969 A JP 2005344969A JP 2005344969 A JP2005344969 A JP 2005344969A JP 2007147533 A JP2007147533 A JP 2007147533A
- Authority
- JP
- Japan
- Prior art keywords
- data
- setting
- unit
- update data
- update
- 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
- Geophysics And Detection Of Objects (AREA)
- Electronic Switches (AREA)
Abstract
Description
本発明は、製造作業者の安全確保に用いられる安全検知装置を含むセンサシステム、その安全検知装置の動作設定に用いられる設定機器および設定方法、その設定方法をコンピュータに実行させるためのプログラム、および、そのプログラムを記録したコンピュータ読取り可能な記録媒体に関する。 The present invention relates to a sensor system including a safety detection device used for ensuring the safety of a manufacturing worker, a setting device and a setting method used for operation setting of the safety detection device, a program for causing a computer to execute the setting method, and The present invention also relates to a computer-readable recording medium on which the program is recorded.
製造現場においては作業者の安全性を確保することが重要である。多くの場合、工場内には安全確保の目的で各種の安全センサが設けられている。このような安全センサに適用されるセンサの1つに多光軸光電センサがある。 It is important to ensure the safety of workers at the manufacturing site. In many cases, various safety sensors are provided in factories for the purpose of ensuring safety. One of the sensors applied to such a safety sensor is a multi-optical axis photoelectric sensor.
一般的な多光軸光電センサは、複数の投光素子が一列に配置された投光部と、投光素子と同数の受光素子が一列に配置された受光部とを備える。各投光素子と受光素子とは一対一の関係で向かい合うように配置される。投光部と受光部とは、一般に通信線を介して接続されており、投光部側では各投光素子を順次発光させるとともに、受光部側では各投光素子に対応する受光素子から投光素子の発光動作に同期するタイミングで得た受光量を取り出す。これにより多光軸光電センサの光軸ごとの遮光状態が順に検知される。受光部では各光軸ごとの検知結果を用いて検知エリアに物体があるか否かを判別し、その判別結果を示す信号(物体検知信号)を出力する。 A general multi-optical axis photoelectric sensor includes a light projecting unit in which a plurality of light projecting elements are arranged in a row, and a light receiving unit in which the same number of light receiving elements as the light projecting devices are arranged in a row. Each light projecting element and light receiving element are arranged to face each other in a one-to-one relationship. The light projecting unit and the light receiving unit are generally connected via a communication line. The light projecting unit side sequentially emits each light projecting element, and the light receiving unit side emits light from the light receiving element corresponding to each light projecting element. The received light amount obtained at the timing synchronized with the light emitting operation of the optical element is taken out. Thereby, the light-shielding state for every optical axis of a multi-optical axis photoelectric sensor is detected in order. The light receiving unit determines whether there is an object in the detection area using the detection result for each optical axis, and outputs a signal (object detection signal) indicating the determination result.
この種のセンサは、通常は、いずれか一光軸において遮光状態を検知すると、物体検知信号をオンにするように設定される。しかしながら多光軸光電センサによっては、ある光軸における検知結果を常時無効にするブランキング機能や、一時的に検知結果を無効にするミューティング機能など多くの機能を有するものがある。ブランキング機能は、検出領域内に障害物が常時とどまる場合(たとえば検出領域の一部に機械が存在する場合)に有効な機能である。また、ミューティング機能は検出エリア内にワークを一時的に通過させる場合に有効な機能である。 This type of sensor is normally set to turn on an object detection signal when a light blocking state is detected in any one optical axis. However, some multi-optical axis photoelectric sensors have many functions such as a blanking function that always invalidates a detection result on a certain optical axis and a muting function that temporarily invalidates a detection result. The blanking function is an effective function when an obstacle always stays in the detection area (for example, when a machine exists in a part of the detection area). The muting function is an effective function when the work is temporarily passed through the detection area.
従来の多くの場合、多光軸光電センサの設定には専用機器が用いられる。たとえば特開2002−296361号公報(特許文献1)には、多光軸光電センサの設定用機器が開示される。この設定用機器は安全用センサ、非安全用センサの種別ごとにそれぞれ設定項目テーブルを保持し、多光軸光電センサとの通信により多光軸光電センサの型式を取り込んで、その形式に適合した設定を行なう。これにより、センサに誤った設定がされるのを防ぐことができる。
従来は、多光軸光電センサの動作確認の際に、作業者は設定変更された機能を含む全機能の動作確認を行なっていた。全機能の確認を行なう理由は、変更対象外の機能に作業者の意図していない変更が行なわれていないかを確認するためである。よって従来は多光軸光電センサが多機能化されるにつれ、設定変更の際における確認作業に多くの工数が必要であった。 Conventionally, when confirming the operation of the multi-optical axis photoelectric sensor, the operator confirms the operation of all functions including the function whose setting has been changed. The reason for confirming all functions is to confirm whether or not changes not intended by the operator have been made to functions that are not subject to change. Therefore, conventionally, as the multi-optical axis photoelectric sensor becomes multifunctional, a large number of man-hours are required for the confirmation work when changing the setting.
一方、ユーザの利便性を向上させるため、設定用のソフトウェアを搭載したパーソナルコンピュータにより多光軸光電センサの設定を行なうケースが増えつつある。しかしこの場合には、専用機器を用いた場合よりも、作業者の意図していない変更が生じる可能性がある。つまり設定後のセンサの動作信頼性が低下する可能性がある。 On the other hand, in order to improve user convenience, there are an increasing number of cases in which a multi-optical axis photoelectric sensor is set by a personal computer equipped with setting software. However, in this case, there is a possibility that changes unintended by the operator may occur as compared with the case where dedicated equipment is used. That is, the operational reliability of the sensor after setting may be reduced.
たとえば、パーソナルコンピュータではメモリリーク(コンピュータの動作中に、使用可能なメモリ容量がだんだん減っていく現象)が生じることがある。メモリリークはオペレーティングシステム(OS)やアプリケーションソフトが処理のために占有したメモリ領域を、なんらかの理由で開放しないまま放置してしまうため生じる。メモリリークの原因は多くの場合、OSのメモリ管理方法の問題や、アプリケーションソフトに存在する不具合(バグ)等である。メモリリークにより利用可能なメモリ領域が減少すると、システムの性能が低下したり不安定になったりする。 For example, in a personal computer, a memory leak (a phenomenon in which the usable memory capacity gradually decreases during the operation of the computer) may occur. A memory leak occurs because a memory area occupied for processing by an operating system (OS) or application software is left unopened for some reason. In many cases, the cause of the memory leak is a problem of an OS memory management method, a defect (bug) existing in application software, or the like. If the available memory area decreases due to a memory leak, the performance of the system will deteriorate or become unstable.
このような状態で多光軸光電センサの設定を行なうと、ユーザの設定を反映したデータがパーソナルコンピュータ内に正しく記憶されていないという問題が生じやすい。従来はパーソナルコンピュータを用いてセンサの設定変更を行なった場合にも作業者が多光軸光電センサの全機能の動作確認を行なう必要があった。よってセンサの設定変更の際には作業者の工数が多くなっていた。 When the multi-optical axis photoelectric sensor is set in such a state, there is a problem that data reflecting the user setting is not correctly stored in the personal computer. Conventionally, even when the setting of a sensor is changed using a personal computer, it is necessary for the operator to check the operation of all functions of the multi-optical axis photoelectric sensor. Therefore, when the sensor setting is changed, the number of workers is increased.
本発明の目的は、安全検知装置の動作を設定する設定データを管理することが可能なセンサシステム、安全検知装置の設定装置および安全検知装置の設定方法、プログラム、および、コンピュータ読取り可能な記録媒体を提供することである。 An object of the present invention is to provide a sensor system capable of managing setting data for setting the operation of the safety detection device, a safety detection device setting device, a safety detection device setting method, a program, and a computer-readable recording medium. Is to provide.
本発明は要約すれば、センサシステムであって、安全検知部を備える。安全検知部は、機械から人体の安全を確保するために、人体の周囲が安全状態または非安全状態であることの検知を行なう。安全検知部は、不揮発的に保持する設定データに従って検知を行ない、与えられた更新データを一時的に記憶して、書換指示を受けたときに設定データを更新データに書換える。センサシステムは、更新データと書換指示とを安全検知部に与える設定部をさらに備える。設定部は、安全検知部から設定データを読出し、設定データの更新のための更新データを作成し、安全検知部に更新データの書込みを行ない、安全検知部への更新データの書込みが正常であると判定する場合に、書換指示を出力する。 In summary, the present invention is a sensor system including a safety detection unit. The safety detection unit detects that the human body is in a safe state or a non-safe state in order to ensure the safety of the human body from the machine. The safety detection unit performs detection according to the setting data held in a nonvolatile manner, temporarily stores the given update data, and rewrites the setting data to the update data when receiving a rewrite instruction. The sensor system further includes a setting unit that gives update data and a rewrite instruction to the safety detection unit. The setting unit reads the setting data from the safety detection unit, creates update data for updating the setting data, writes the update data to the safety detection unit, and writes the update data to the safety detection unit is normal. If it is determined that, rewrite instruction is output.
好ましくは、安全検知部は、設定データを不揮発的に記憶する、書換可能な第1の記憶部と、更新データを一時的に記憶する第2の記憶部と、設定データに従って検知を行ない、書換指示に応じて、第1の記憶部に記憶される設定データを更新データに書換える検知部とを含む。設定部は、編集部と、読出部と、比較部とを含む。編集部は、第1の記憶部から読出した設定データに基づいて、更新データと更新データのコピーデータとを作成し、コピーデータを内部に保持するとともに更新データを第2の記憶部に送る。読出部は、第2の記憶部から更新データを読出す。比較部は、コピーデータと、読出部が読み出した更新データとの比較を行なう。編集部は、比較部により得られる比較結果が、コピーデータと更新データとが一致することを示す場合に、第2の記憶部への更新データの書込みが正常であると判定して、書換指示を出力する。 Preferably, the safety detection unit performs detection according to the setting data, the first rewritable storage unit that stores the setting data in a nonvolatile manner, the second storage unit that temporarily stores the update data, and the rewriting. A detection unit that rewrites the setting data stored in the first storage unit to update data in response to the instruction. The setting unit includes an editing unit, a reading unit, and a comparison unit. The editing unit creates update data and copy data of the update data based on the setting data read from the first storage unit, holds the copy data therein, and sends the update data to the second storage unit. The reading unit reads update data from the second storage unit. The comparison unit compares the copy data with the update data read by the reading unit. When the comparison result obtained by the comparison unit indicates that the copy data and the update data match, the editing unit determines that the update data is normally written to the second storage unit, and Is output.
より好ましくは、編集部は、更新データの誤りを検出するチェックデータをさらに作成して、更新データに誤りがないことをチェックデータを用いて確認した場合に、コピーデータを生成する。 More preferably, the editing unit further creates check data for detecting an error in the update data, and generates copy data when it is confirmed using the check data that there is no error in the update data.
さらに好ましくは、比較部は、編集部から読み出したチェックデータを用いて、コピーデータと更新データとに誤りが生じていないことを確認した場合に、コピーデータと更新データとを比較する。 More preferably, the comparison unit compares the copy data with the update data when it is confirmed that no error has occurred between the copy data and the update data using the check data read from the editing unit.
さらに好ましくは、比較部は、コピーデータとチェックデータとを、互いに異なる経路を介して編集部から読み出す。 More preferably, the comparison unit reads the copy data and the check data from the editing unit via different paths.
さらに好ましくは、検知部は、少なくとも1つの多光軸光電センサを含む。
本発明の他の局面に従うと、安全検知装置の設定を行なう設定機器である。安全検知装置は、機械から人体の安全を確保するために、人体の周囲が安全状態または非安全状態であることの検知を行なう。安全検知装置は、設定データを不揮発的に記憶する、書換可能な第1の記憶部と、設定データの更新のための更新データを一時的に記憶する第2の記憶部と、設定データに従って検知を行ない、与えられる書換指示に応じて、設定データを更新データに書換える検知部とを含む。設定機器は、更新データと書換指示とを安全検知装置に与える。設定機器は、編集部と、読出部と、比較部とを含む。編集部は、第1の記憶部から読出した設定データに基づいて、更新データと更新データのコピーデータとを作成し、コピーデータを内部に保持するとともに更新データを第2の記憶部に送る。読出部は、第2の記憶部から更新データを読出す。比較部は、コピーデータと、読出部が読み出した更新データとの比較を行なう。編集部は、比較部により得られる比較結果が、コピーデータと更新データとが一致することを示す場合に、第2の記憶部への更新データの書込みが正常であると判定して、書換指示を出力する。
More preferably, the detection unit includes at least one multi-optical axis photoelectric sensor.
When the other situation of this invention is followed, it is a setting apparatus which performs the setting of a safety detection apparatus. The safety detection device detects that the human body is in a safe state or a non-safe state in order to ensure the safety of the human body from the machine. The safety detection device detects in accordance with setting data, a rewritable first storage unit that stores setting data in a nonvolatile manner, a second storage unit that temporarily stores update data for updating the setting data, And a detection unit that rewrites the setting data to update data in accordance with a given rewriting instruction. The setting device gives update data and a rewrite instruction to the safety detection device. The setting device includes an editing unit, a reading unit, and a comparison unit. The editing unit creates update data and copy data of the update data based on the setting data read from the first storage unit, holds the copy data therein, and sends the update data to the second storage unit. The reading unit reads update data from the second storage unit. The comparison unit compares the copy data with the update data read by the reading unit. When the comparison result obtained by the comparison unit indicates that the copy data and the update data match, the editing unit determines that the update data is normally written to the second storage unit, and Is output.
好ましくは、編集部は、更新データの誤りを検出するチェックデータをさらに作成して、更新データに誤りがないことをチェックデータを用いて確認した場合に、コピーデータを生成する。 Preferably, the editing unit further creates check data for detecting an error in the update data, and generates copy data when it is confirmed using the check data that there is no error in the update data.
より好ましくは、比較部は、編集部から読み出したチェックデータを用いて、コピーデータと更新データとに誤りが生じていないことを確認した場合に、コピーデータと更新データとを比較する。 More preferably, the comparison unit compares the copy data with the update data when it is confirmed that there is no error in the copy data and the update data using the check data read from the editing unit.
さらに好ましくは、比較部は、コピーデータとチェックデータとを、互いに異なる経路を介して編集部から読み出す。 More preferably, the comparison unit reads the copy data and the check data from the editing unit via different paths.
さらに好ましくは、検知部は、少なくとも1つの多光軸光電センサを含む。
本発明のさらに他の局面に従うと、安全検知装置の設定を行なう設定方法である。安全検知装置は機械から人体の安全を確保するために、人体の周囲が安全状態または非安全状態であることの検知を行なう。安全検知装置は、設定データを不揮発的に記憶する、書換可能な第1の記憶部と、設定データの更新のための更新データを一時的に記憶する第2の記憶部と、設定データに従って検知を行ない、与えられる書換指示に応じて、設定データを更新データに書換える検知部とを含む。設定方法は、第1の記憶部から読出した設定データに基づいて、更新データを作成するステップと、更新データのコピーデータを作成するステップと、第2の記憶部に更新データを送るステップと、第2の記憶部から更新データを読出すステップと、コピーデータと、読出部が読み出した更新データとを比較するステップと、比較するステップにおける比較結果が、コピーデータと更新データとが一致することを示す場合に第2の記憶部への更新データの書込みが正常であると判定して、書換指示を出力するステップとを備える。
More preferably, the detection unit includes at least one multi-optical axis photoelectric sensor.
According to still another aspect of the present invention, a setting method for setting a safety detection device. In order to ensure the safety of the human body from the machine, the safety detection device detects that the surroundings of the human body are in a safe state or an unsafe state. The safety detection device detects in accordance with setting data, a rewritable first storage unit that stores setting data in a nonvolatile manner, a second storage unit that temporarily stores update data for updating the setting data, And a detection unit that rewrites the setting data to update data in accordance with a given rewriting instruction. The setting method includes the steps of creating update data based on the setting data read from the first storage unit, creating copy data of the update data, sending the update data to the second storage unit, The comparison result in the step of reading the update data from the second storage unit, the step of comparing the copy data with the update data read out by the read unit, and the step of comparing the copy data and the update data match. The step of determining that the writing of the update data to the second storage unit is normal and outputting a rewrite instruction is provided.
好ましくは、更新データを作成するステップは、更新データの誤りを検出するチェックデータをさらに作成して、更新データに誤りがないことを確認する処理をさらに実行させる。コピーデータを作成するステップは、更新データに誤りがないことが確認された場合に、コピーデータを生成する処理を実行させる。 Preferably, the step of creating update data further creates check data for detecting an error in the update data, and further executes a process of confirming that the update data has no error. In the step of creating copy data, when it is confirmed that there is no error in the update data, a process of generating copy data is executed.
より好ましくは、比較するステップは、チェックデータにより、コピーデータと更新データとに誤りが生じていないことを確認した場合に、コピーデータと更新データとを比較する処理を実行させる。 More preferably, in the comparing step, when it is confirmed by the check data that no error has occurred in the copy data and the update data, a process of comparing the copy data and the update data is executed.
さらに好ましくは、比較するステップは、互いに異なる伝送手段を用いて、コピーデータとチェックデータとを取得する処理を実行させる。 More preferably, the comparing step causes the copy data and the check data to be acquired using different transmission means.
さらに好ましくは、検知部は、少なくとも1つの多光軸光電センサを含む。
本発明のさらに他の局面に従うと、上記のいずれかの安全検知装置の設定方法を、コンピュータに実行させるためのプログラムである。
More preferably, the detection unit includes at least one multi-optical axis photoelectric sensor.
According to still another aspect of the present invention, there is provided a program for causing a computer to execute any one of the above-described methods for setting a safety detection device.
本発明のさらに他の局面に従うと、上記のプログラムを記録した、コンピュータ読取り可能な記録媒体である。 According to still another aspect of the present invention, a computer-readable recording medium on which the above program is recorded.
本発明によれば、安全検知装置の動作を設定する設定データを高い信頼性で管理することが可能になる。 According to the present invention, setting data for setting the operation of the safety detection device can be managed with high reliability.
以下において、本発明の実施の形態について図面を参照して詳しく説明する。なお、図中同一符号は同一または相当部分を示す。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same reference numerals indicate the same or corresponding parts.
図1は、本発明のセンサシステムの構成を概念的に示す図である。
図1を参照して、センサシステム100は、安全検知装置100Aと、設定機器100Bとを備える。
FIG. 1 is a diagram conceptually showing the configuration of the sensor system of the present invention.
Referring to FIG. 1, the
安全検知装置100Aは、機械から人体の安全を確保するために、人体の周囲が安全状態または非安全状態であることを光や電波、温度変化等により検知する。たとえば安全検知装置100Aは、プレス機械(図示せず)の周囲に人体(図示せず)が近づいたことを検知するために設けられる。安全検知装置100Aは作業者の手がプレス機械に近づいたことを検知する(すなわち安全検知装置100Aは人体の周囲が非安全状態になったことを検知する)とプレス機械への電源供給を遮断して機械を停止する。
The
安全検知装置100Aは、不揮発的に保持する設定データに従って、安全状態または非安全状態の検知を行なう。安全検知装置100Aは更新データが与えられた場合には、書換指示を受けたときに設定データを更新データに書換える。このような動作を実現可能にするため、安全検知装置100Aは、記憶部M1,M2と検知部100Cとを含む。
The
記憶部M1は、安全検知装置100Aの検知動作を設定するためのデータD1(設定データ)を不揮発的に記憶し、かつ、データD1を書換可能である。記憶部M2は、データD1を更新する更新データ(データD2)を一時的に記憶する。たとえば記憶部M1はEEPROM(electrically erasable and programmable read only memory)であり、記憶部M2はRAM(Random Access Memory)である。なお記憶部M1,M2は検知部100C内に設けられてもよい。
The storage unit M1 stores data D1 (setting data) for setting the detection operation of the
検知部100CはデータD1に従って安全状態または非安全状態を検知する。また検知部100Cは、与えられる書換指示UDに応じて、記憶部M1に記憶されるデータD1をデータD2(更新データ)に書換える。 The detection unit 100C detects a safe state or an unsafe state according to the data D1. In addition, the detection unit 100C rewrites the data D1 stored in the storage unit M1 to data D2 (update data) in accordance with the given rewrite instruction UD.
検知部100Cの構成は、必要に応じて適宜定められる。たとえば検知部100Cは単数または複数のセンサ装置および制御装置を含む。制御装置は、たとえば複数のセンサ装置からの出力を1つにまとめる役割を果たす。なお検知部100Cは制御装置を含まず、単数または複数のセンサ装置のみから構成されてもよい。また、検知部100Cに含まれるセンサ装置としては各種のセンサ(たとえば光電センサや温度センサ等)が適用可能であるが、以下ではセンサ装置は多光軸光電センサであるとして説明する。 The configuration of the detection unit 100C is appropriately determined as necessary. For example, the detection unit 100C includes one or a plurality of sensor devices and a control device. For example, the control device plays a role of combining outputs from a plurality of sensor devices into one. Note that the detection unit 100C does not include a control device, and may include only one or a plurality of sensor devices. Various sensors (for example, a photoelectric sensor and a temperature sensor) can be applied as the sensor device included in the detection unit 100C. In the following description, it is assumed that the sensor device is a multi-optical axis photoelectric sensor.
設定機器100Bは、データD2と書換指示UDとを安全検知装置100Aに与える。設定機器100Bは、安全検知装置100AからデータD1を読出す。設定機器100BはデータD1の更新のためのデータD2を作成する。設定機器100Bは安全検知装置100AにデータD2の書込みを行なう。設定機器100Bは安全検知装置100AへのデータD2の書込みが正常であると判定する場合に書換指示UDを出力する。これにより安全検知装置100Aにおいてデータを正しく更新することができる。
The
設定機器100Bは編集部100Dと、読出部100Eと、比較部100Fとを含む。なお後述するように設定機器100Bはたとえばパーソナルコンピュータにより実現可能である。編集部100D、読出部100E、比較部100FはCPU(Central Processing Unit)上でソフトウェアを実行させることにより実現されてもよいし、ハードウェアにより実現されてもよい。
編集部100Dは、記憶部M1から読出したデータD1に基づいて、データD2とデータD2のコピーデータ(データD2A)とを作成する。編集部100Dは、データD2Aを内部に保持するとともにデータD2を記憶部M2に送信する。
The
読出部100Eは、記憶部M2からデータD2の読出を行なう。
比較部100Fは、編集部100DからデータD2A(データD2のコピーデータ)を受けるとともに読出部100EからデータD2を受けて、データD2AとデータD2との比較を行なう。編集部100Dは比較部100Fから比較結果CMPを受ける。編集部100Dは比較部100Fによる比較結果CMPがデータD2AとデータD2とが一致することを示す場合に安全検知装置100AへのデータD2の書込みが正常であると判定して書換指示UDを出力する。
Reading
設定機器100Bでは、編集部100D、読出部100Eのそれぞれから安全検知装置100Aの設定を更新するデータD2A,D2が比較部100Fに送られる。内部で保持するデータD2Aと安全検知装置100Aが一時的に保持するデータD2とが一致すれば、安全検知装置100Aでのデータ更新が行なわれる。一方、設定機器100Bの動作が不安定な場合になりデータD2Aに予期しない変更が生じた場合にはデータD2AとデータD2とが一致しないため、安全検知装置100Aでのデータ更新が行なわれない。このようにデータD2A,D2を比較することにより、設定機器100Bにおけるデータ管理の信頼性を高くすることができる。すなわち安全検知装置100Aにとって正しいデータを設定機器100Bが作成し、かつ、保持していることが保証できる。
In the
従来の設定機器においては1つの処理ブロック(編集部)が安全検知装置からのデータ受信、受信データに基づいたデータ編集、および編集後のデータの送信を行なっていた。よって作業者は安全検知装置をテスト動作させない限り、設定機器により予期せぬ設定変更が生じていないかどうかを確認できなかった。本発明のセンサシステムによれば、このような問題が生じるのを防ぐことができるので、作業者は自身が設定変更を行なった機能について安全検知装置100Aの動作確認を行なえばよくなる。よって、本発明のセンサシステムによれば作業者が動作確認に要する工数を減らすことができる。
In a conventional setting device, one processing block (editing unit) receives data from the safety detection device, edits data based on the received data, and transmits the edited data. Therefore, unless the operator performs a test operation of the safety detection device, it has not been possible to confirm whether or not an unexpected setting change has occurred by the setting device. According to the sensor system of the present invention, it is possible to prevent such a problem from occurring. Therefore, the operator only has to confirm the operation of the
また、編集部100Dは、データD2の誤りを検出するデータD2B(チェックデータ)を作成する。このデータD2Bは、たとえばデータD2の一部が変更された等のデータ誤りを検出するために用いられる。データD2Bの作成はデータD2の作成時に行なわれる。編集部100Dは、データD2Bを用いてデータD2に誤りがない(データD2が正しい)ことを確認するとデータD2Aを生成する。比較部100Fは、このデータD2Bを用いてデータD2A,D2に誤りが生じていないことを確認した場合に、データD2AとデータD2とを比較する。これにより、データD2A,D2の各々が正しいデータか否かを確認できる。よってデータ管理の信頼性をさらに高くすることができる。また、編集部100Dと比較部100EとでデータD2が正しいことが重ねて確認されるので、データ管理の信頼性をさらに高めることができる。
The
図2は、図1のセンサシステム100の具体的な構成例を示す外観図である。
図2を参照して、センサSNSは図1の検知部100Cに含まれる多光軸光電センサである。センサSNSは投光センサヘッド1と受光センサヘッド2とが通信用ケーブル101で接続された構成を有する。通信用ケーブル101には分岐コネクタ102および専用コード3を介して、通信ユニット4が連結されている。通信ユニット4はパーソナルコンピュータ5に接続される。通信ユニット4およびパーソナルコンピュータ5は図1の設定機器100Bを構成する。
FIG. 2 is an external view showing a specific configuration example of the
Referring to FIG. 2, sensor SNS is a multi-optical axis photoelectric sensor included in detection unit 100C of FIG. The sensor SNS has a configuration in which the light projecting sensor head 1 and the light receiving
図3は、図2のセンサSNSの構成を示すブロック図である。
図3を参照して、投光センサヘッド1は複数の投光素子11を備える。投光センサヘッドは、さらに、各投光素子11を個別に駆動する駆動回路12、光軸順次選択回路13、処理回路16、通信回路17、および電源回路18を含む。
FIG. 3 is a block diagram showing a configuration of the sensor SNS of FIG.
With reference to FIG. 3, the light projecting sensor head 1 includes a plurality of light projecting
受光センサヘッド2は、投光素子11と同数の受光素子21を備える。受光センサヘッド2は、さらに、各受光素子21に対応して設けられるアンプ22およびスイッチ23、光軸順次選択回路25、処理回路26、処理回路26への入力用のアンプ24、通信回路27、および電源回路28を含む。
The light receiving
処理回路16,26は、CPUやメモリを具備するマイクロコンピュータなどにより構成される。通信回路17,27は、RS485に準拠する通信インターフェースであって、投光センサヘッド1と受光センサヘッド2との間における信号のやりとりを制御する。
The
光軸順次選択回路13は、各投光素子11の駆動回路12を順に処理回路16に接続する。光軸順次選択回路25は、各受光素子21に対応するアンプ22およびスイッチ23を順に処理回路26に接続する。
The optical axis
電源回路18,28は、共通の外部電源15(直流電源)から電源の提供を受け、投光センサヘッド1と受光センサヘッド2とにそれぞれ電源を供給する。
The
分岐コネクタ102は投光センサヘッド1と受光センサヘッド2との間の通信線や電源ラインを分岐する。専用コード3には分岐した通信線や電源ラインが収納される。専用コード3には通信ユニット4が接続される。通信ユニット4はパーソナルコンピュータ(図3においてPCと示す)5に接続される。
The
通信ユニット4は、マイクロコンピュータ(図3においてマイコンと示す)36、通信回路37、電源回路38、通信変換器34を含む。通信回路37はRS485規格のインターフェースである。電源回路38は分岐コネクタ102を介して外部電源15からの電源を取り込み、通信ユニット4内の各部に供給する役割を果たす。通信変換器34はRS485規格の信号をシリアル変換し、たとえばRS232CやUSB(Universal Serial Bus)等の規格の信号として出力する。
The
図4は、図3の処理回路26の構成を示すブロック図である。
図4を参照して、処理回路26は、CPU261、EEPROM262、およびRAM263を含む。EEPROM262およびRAM263は図1の記憶部M1,M2にそれぞれ対応する。すなわちEEPROM262およびRAM263はデータD1,D2をそれぞれ記憶する。CPU261は通常時にはEEPROM261からデータD1を読み出して各種動作を実行する。またCPU261はRAM263に記憶されるデータD2を用いてEEPROM262に記憶されるデータD1の書換えを行なう。
FIG. 4 is a block diagram showing a configuration of the
Referring to FIG. 4, processing
図5は、図3のパーソナルコンピュータ5の構成を示す図である。
図5を参照して、パーソナルコンピュータ5は、全体を制御するための制御部51と、データを入力するための入力部55と、データを一時的に記憶するための記憶部53と、データを出力するための出力部57と、制御部51で実行するためのプログラム等を不揮発的に記憶するための外部記憶装置59とを含む。
FIG. 5 is a diagram showing a configuration of the
Referring to FIG. 5,
制御部51は、CPUと、このCPUで実行するためのプログラムを記憶するための読出専用メモリ(ROM)やCPUでプログラムを実行する際に必要となる変数等を記憶するためのランダムアクセスメモリ(RAM)を含む。
The
入力部55は、キーボードまたはマウスなどであり、文字または数字の入力、または、所定の指示コマンドの入力が可能となっている。
The
記憶部53は、センサSNSの設定に必要な各種データ(たとえばデータD1,D2や画面表示用の画像データ等)を一時的に格納する。
The
出力部57は、液晶表示装置等のディスプレイであり、制御部51の指示に従って、データD1,D2等を表示する。
The
外部記憶装置59は、コンピュータ読取可能な記録媒体61に記録されたプログラムやデータを読込み、制御部51に送信する。コンピュータ読取可能な記録媒体61としては、磁気テープやカセットテープなどのテープ系、磁気ディスク(フレキシブルディスク、ハードディスク装置等)や光ディスク(CD−ROM/MO/MD/DVD等)などのディスク系、ICカード(メモリカードを含む)や光カードなどのカード系、あるいはマスクROM、EPROM、フラッシュメモリなどの半導体メモリ等、固定的にプログラムを担持する媒体である。なお、プログラムはネットワーク(図示せず)からダウンロードされてもよい。制御部51は、記録媒体61に記録されたプログラムを外部記憶装置59で読取ることにより、読取ったプログラムを実行することができる。
The
図6は、図3のパーソナルコンピュータ5を動作させるソフトウェアの構造を示す図である。
FIG. 6 is a diagram showing the structure of software for operating the
図6を参照して、オペレーティングシステム71および設定用ソフトウェア72は、制御部51で実行される。設定用ソフトウェア72は、基本ソフトウェアであるオペレーティングシステム71上で実行される。設定用ソフトウェアは、その機能により、編集ソフトウェア72A、読出ソフトウェア72B、および比較ソフトウェア72Cに分かれる。これらのソフトウェアは1つのオペレーティングシステム上で独立して動作する。なお、「独立して動作する」とは、各ソフトウェアは制御部51上で並行して実行されることを意味する。
Referring to FIG. 6,
なお、編集ソフトウェア72A、読出ソフトウェア72B、および比較ソフトウェア72Cのそれぞれが制御部51上で実行されることにより、制御部51は図1の編集部100D、読出部100Eおよび比較部100Fの3つのブロックとして機能する。
Note that each of the
各ソフトウェアは、制御部51が実行する処理内容に応じて通信層、データ層、HMI(Human Machine Interface)層に階層化される。通信層により制御部51は通信ユニット4を介してセンサSNSと通信可能になる。つまり編集部100Dおよび読出部100EがセンサSNSとデータ授受を行なうことができる。データ層により編集部100D、読出部100Eおよび比較部100Fは互いの間でデータ授受が可能になる。HMI層により制御部51が出力部57に表示を行なわせることができる。つまり、編集部100Dが表示処理を行なうことができる。
Each software is hierarchized into a communication layer, a data layer, and an HMI (Human Machine Interface) layer according to the processing content executed by the
図7は、センサSNSに設定される動作モードと各モード間の関係とを概略的に示す図である。 FIG. 7 is a diagram schematically showing an operation mode set in the sensor SNS and a relationship between the modes.
図7を参照して動作モードには、通常モード、保守モード、および設定モードの3つの動作モードが存在する。通常モードはセンサSNSが通常の検知処理を行なう動作モードである。保守モードはセンサSNSが投光および受光を行なうが検出結果を出力しないモードである。設定モードは、ユーザ設定に応じて動作を行ない、設定値をセンサSNSの内部に書き込んだり、内部から読出したデータを送信したりする動作モードである。 Referring to FIG. 7, there are three operation modes: a normal mode, a maintenance mode, and a setting mode. The normal mode is an operation mode in which the sensor SNS performs normal detection processing. The maintenance mode is a mode in which the sensor SNS performs light projection and light reception but does not output a detection result. The setting mode is an operation mode in which an operation is performed according to a user setting, a setting value is written in the sensor SNS, and data read from the inside is transmitted.
センサSNSは、電源が立ち上げられた直後に通常モードが設定されるが、保守モードへの移行命令が制御部51から与えられると保守モードに切り替えられる。さらに保守モードにおいては、制御部51からの設定モード移行命令が与えられると設定モードに切り替えられる。設定モードにおいて制御部51からの設定モード終了命令を受け付けると、センサSNSは設定モードを終了して保守モードに戻る。また保守モードにおいて電源が再投入される(電源オン状態になる)と、動作モードは通常モードに戻る。
The sensor SNS is set to the normal mode immediately after the power is turned on, but is switched to the maintenance mode when a command to shift to the maintenance mode is given from the
図8は、図7の通常モードでの処理を説明するフローチャートである。
図8を参照して、処理が開始されるとステップS1では投光センサヘッド1と受光センサヘッド2との間で投受光処理が行なわれる。
FIG. 8 is a flowchart for explaining processing in the normal mode of FIG.
Referring to FIG. 8, when the process is started, a light projecting / receiving process is performed between light projecting sensor head 1 and light receiving
投受光処理では、図3の処理回路16は所定の時間毎にタイミング信号を発生させて、これを光軸順次選択回路13に与える。光軸順次選択回路13は、各投光素子11に対応する駆動回路12を順に処理回路16に接続する。これにより処理回路16からのタイミング信号が各駆動回路12に順に与えられて、各投光素子11の順次発光動作が実現する。さらにタイミング信号は、通信回路17,27を介して受光センサヘッド2側の処理回路26にも与えられる。
In the light projecting / receiving process, the
受光センサヘッド2において、各受光素子21からの出力(以下、「受光出力」という。)は、アンプ22およびスイッチ23を介して処理回路26に送出される。処理回路26は、投光センサヘッド1からのタイミング信号を光軸順次選択回路25に送って、各光軸のスイッチ23を順にオン動作させ、発光した投光素子11に対応する受光素子21からの受光出力を取り込むとともに、各受光出力をそれぞれ所定のしきい値と比較して、各光軸が遮光状態であるか否かを判別する。すべての光軸に対する受光出力の取り込みが終了すると、処理回路26は光軸毎の判別結果をまとめて最終的な判別処理を行って、その判別結果を示す物体検知信号を生成し、これを図示しない出力回路を介して外部に出力する。
In the light receiving
次にステップS2において、受光センサヘッド2の処理回路26は、図5の制御部51から保守モードへの移行命令が与えられたか否かの確認を行なう。なお制御部51は通信ユニット4がセンサSNSに接続されたことを検知すると移行命令をセンサSNSに対して送信する。
Next, in step S2, the
続いてステップS3において、移行命令が与えられた場合(ステップS3においてYES)、処理回路26は動作モードを保守モードに移行させる。移行命令が与えられていない場合(ステップS3においてNO)、処理回路26は再びステップS1において投受光処理を行なう。
Subsequently, when a transition instruction is given in step S3 (YES in step S3), the
図9は、図7の保守モードでの処理を説明するフローチャートである。
図9を参照して、処理が開始されると、ステップS11では投受光処理が行なわれる。ただし、この投受光処理では物体検知信号は出力されない。次にステップS12において、処理回路26は制御部51から設定モードへの移行命令が与えられたか否かを確認する。この移行命令は、設定用ソフトウェアの起動に応じて制御部51からセンサSNSに与えられる。
FIG. 9 is a flowchart for explaining processing in the maintenance mode of FIG.
Referring to FIG. 9, when the process is started, a light projecting / receiving process is performed in step S11. However, no object detection signal is output in this light emitting / receiving process. Next, in step S <b> 12, the
ステップS13において、移行命令が与えられた場合(ステップS13においてYES)、処理回路26は動作モードを設定モードに移行させる。移行命令が与えられていない場合(ステップS13においてNO)、処理回路26は再びステップS11において投受光処理を行なう。
If a transition instruction is given in step S13 (YES in step S13), the
図10は、図7の設定モードでの制御部51の処理を説明するフローチャートである。
図10を参照して、処理が開始されるとステップS21において制御部51はユーザからのコマンド送信があったか否かを判定する。コマンド送信があった場合(ステップS21においてYES)、処理はステップS22に進む。コマンド送信がなかった場合(ステップS21においてNO)、処理はステップS21に戻る。
FIG. 10 is a flowchart illustrating the processing of the
Referring to FIG. 10, when the process is started, in step S21,
ステップS22において制御部51はコマンドが設定モード終了命令か否かを判定する。コマンドが設定モード終了命令の場合(ステップS22においてYES)、処理回路26は動作モードを保守モードに移行させる。
In step S22, the
コマンドが設定モード終了命令以外の命令の場合(ステップS22においてNO)、ステップS23において制御部51はコマンドに応じた処理を実行する。ステップS23での処理が終了すると、制御部51はステップS21の処理を再び行なう。
If the command is an instruction other than the setting mode end instruction (NO in step S22), in step S23,
続いて、設定モードでの処理をより詳細に説明する。設定モードでは制御部51は「読出し処理」と、「編集・書込み処理」との2つの処理を行なう。「読出し処理」では制御部51はセンサSNSが記憶するデータを読み出し、そのデータを出力部57により表示する処理を行なう。「編集・書込み処理」では制御部51はセンサSNSから読み出した設定データ(データD1)をユーザ入力に応じて編集し、変更後の更新データ(データD2)をセンサSNSに書込む。
Subsequently, the processing in the setting mode will be described in more detail. In the setting mode, the
なお、設定モードでは制御部51上で設定用ソフトウェア72が実行されることで制御部51は編集部100D、読出部100E、および比較部100Fとして機能する。よって、以下では制御部51の動作を編集部100D、読出部100E、および比較部100Fの動作として説明する。
In the setting mode, when the
図11は、読出し処理のタイミングを示す図である。
図12は、読出処理を示すフローチャートである。なお図11では、図12と同一の符号を付して図12の各ステップに対応する処理を示す。
FIG. 11 is a diagram illustrating the timing of the reading process.
FIG. 12 is a flowchart showing the reading process. In FIG. 11, the same reference numerals as those in FIG. 12 are attached and processes corresponding to the steps in FIG. 12 are shown.
図11および図12を参照して、処理が開始すると、ステップS51において、制御部51において設定用ソフトウェア72が起動する。すなわち編集部100D、読出部100E、および比較部100Fが起動する。
Referring to FIGS. 11 and 12, when the process is started, setting
次にステップS52では、編集部100Dは、センサSNSの動作モードが保守モードか否かを処理回路26への問合わせにより判定する。動作モードが保守モードである場合(ステップS52においてYES)、処理はステップS53に進む。動作モードが他のモードである場合(ステップS52においてNO)、編集部100D、読出部100E、および比較部100Fの各々は動作を終了する。すなわち設定用ソフトウェアの終了処理が行なわれる。
Next, in step S52, the
ステップS53では、編集部100Dは、センサSNSの動作モードを設定モードに移行させるか否かを判定する。パーソナルコンピュータ5が通信ユニット4を介してセンサSNSに接続されている場合には、編集部100Dは動作モードを設定モードに移行させる(ステップS53においてYES)が、未接続の場合(ステップS53においてNO)、処理は再びステップS52に戻る。
In step S53, the
ステップS53においてYESの場合、ステップS54では編集部100DがセンサSNS(処理回路26内のEEPROM262)からデータD1の読出しを行なう。この場合、編集部100DはCPU261に読出しコマンドを送信する。CPU261は読出しコマンドに応じてEEPROM262から読出したデータD1を編集部100Dに送信する。編集部100Dは読出しが完了すると、読出部100Eにデータ読出しを行なうよう指示する。
If YES in step S53, in step S54, editing
続いてステップS55では、読出部100EがEEPROM262からデータD1の読出を行なう。読出部100EはステップS54における編集部100Dと同様の手順によりデータD1を読み出す。これにより、編集部100D、読出部100Eの各々がデータD1を保持する。編集部100Dは読出部100Eの読出しが完了すると、比較部100Fに比較処理を行なうよう指示する。
Subsequently, in step S55, the
続いてステップS56では、比較部100Fは編集部100Dが読み出すデータD1と読出部100Eが読み出すデータD1との比較を行なう。ステップS57において比較部100Fは2つのデータが一致するか否かを判定して図1の比較結果CMPを編集部100Dに送信する。
Subsequently, in step S56, the
比較結果において2つのデータD1が一致する場合(ステップS57においてYES)、処理はステップS58に進む。一方、2つのデータD1が不一致の場合(ステップS57においてNO)、処理はステップS61に進む。 If the two data D1 match in the comparison result (YES in step S57), the process proceeds to step S58. On the other hand, if the two data D1 do not match (NO in step S57), the process proceeds to step S61.
このようにセンサSNSからデータD1を2回読み出す際に読出しを行なうブロックが異なる。2つのデータD1が一致する場合には設定機器100Bの動作が安定していることを保証できる。
As described above, when data D1 is read twice from the sensor SNS, the blocks to be read are different. When the two data D1 match, it can be assured that the operation of the
ステップS58において、編集部100Dは、データD1の多重化を行なう。ここで「多重化」とは、データD1の誤りを検出するためのチェックデータをデータD1に基づいて生成することを意味する。
In step S58, the
図13は、編集部100Dにおける設定データの多重化を示す図である。
図13を参照して、記憶部53にはデータD1,D1Bが記憶される。データD1はセンサSNSから読出したデータそのものである。データD1BはデータD1に基づいて生成される。具体的にはデータD1BはデータD1のビットを反転したデータである。
FIG. 13 is a diagram illustrating multiplexing of setting data in the
Referring to FIG. 13,
編集部100DはデータD1とデータD1Bとを比較することにより、データD1に生じた誤りやデータ破損などを容易に検出できる。データD1BとしてはデータD1をそのままコピーしたデータでもよいし、ある符号化規則に従ってデータD1を符号化したビット列であってもよい。
The
再び図11および図12を参照しながら説明する。ステップS58に続いてステップS60において、編集部100DはデータD1に基づいて設定項目の表示を行なう。ステップS60での処理が終了すると、後述する「編集・書込み処理」が行なわれる。
This will be described with reference to FIGS. 11 and 12 again. In step S60 following step S58, the
また、ステップS57においてNOの場合、ステップS61において、編集部100Dは設定用ソフトウェアを終了させるか否かをユーザに判断させるための問い合わせを行なう。ユーザの指示により設定ソフトウェアを終了する場合(ステップS61においてYES)、編集部100Dは移行命令をセンサSNSに送り、動作モードを保守モードに移行させる。動作モードが保守モードに移行すると、編集部100D、読出部100E、比較部100Fの各々の動作が終了する。なお、設定ソフトウェアを終了しないとユーザが指示した場合(ステップS61においてNO)、処理は再びステップS54に戻る。
If NO in step S57, in step S61, editing
図14は、編集・書込み処理のタイミングを示す図である。
図15は、編集・書込み処理を示すフローチャートである。図11と同様に図14では図15と同一の符号を付して図15の各ステップに対応する処理を示す。
FIG. 14 is a diagram showing the timing of the edit / write process.
FIG. 15 is a flowchart showing the editing / writing process. Like FIG. 11, FIG. 14 attaches | subjects the code | symbol same as FIG. 15, and shows the process corresponding to each step of FIG.
図14および図15を参照して、処理が開始されるとステップS71において、ユーザがパーソナルコンピュータの画面を参照しながら項目の編集を行なう。このとき編集部100Dはユーザ入力されるデータを表示する。
Referring to FIGS. 14 and 15, when the process is started, in step S71, the user edits items while referring to the screen of the personal computer. At this time, the
次にステップS72において、編集部100Dはユーザが入力した設定値が設定範囲内に含まれているか否かを判定する。設定値が設定範囲内である場合(ステップS72においてYES)、処理はステップS73に進む。
In step S72, the
ステップS73では編集部100Dは更新データの多重化を行なう。この処理は図13のステップS58の処理と同様である。つまりステップS73では編集部100DはデータD1を更新してデータD2を生成するとともにデータD2B(チェックデータ)を作成する。なお、ステップS73は本発明において「更新データを作成するステップ」に相当する。
In step S73, the
一方、ステップS72において設定値が設定範囲外である場合(ステップS72においてNO)、処理はステップS74に進む。ステップS74では編集部100Dは「制約外」という画面表示を行ない、ユーザに設定値の再入力を促す。ステップS74での処理が終了すると、処理は再びステップS71に戻る。
On the other hand, when the set value is outside the set range in step S72 (NO in step S72), the process proceeds to step S74. In step S74, the
ステップS73に続いてステップS75では、編集部100DはデータD2,D2Bを用いて、多重化処理が正常(すなわちデータD2が正しい)か否かを判定する。このように編集部100Dは、センサSNSにデータD2を送る前に、予めデータD2Bを作成してデータの多重化を行なうことでデータD2が正しいことを保証することができる。
In step S75 following step S73, the
多重化処理が正常である場合(ステップS75においてYES)、編集部100Dは画面表示を更新する再描画処理を行ない、処理はステップS76に進む。
If the multiplexing process is normal (YES in step S75),
ステップS76では、編集部100Dは編集後のデータD2をセンサSNSに書き込むか否かの問い合わせをユーザに対して行なう。データD2をセンサSNSに書き込む場合(ステップS76においてYES)、処理はステップS78に進む。センサSNSへのデータ書込みを行なわない場合(ステップS76においてNO)、処理は再びステップS71に戻る。
In step S76, the
また、ステップS75において、編集部100Dの多重化処理が正常に行なわれなかった場合(ステップS75においてNO)、処理はステップS77に進む。ステップS77では編集部100Dは「内部異常」の警告を表示する。これにより編集部100D、読出部100E、比較部100Fは動作を終了する。
In step S75, if the multiplexing process of
ステップS78では、編集部100DはセンサSNSに書き込む前にデータD2をファイルに保存する。ファイルにはデータD2のコピーデータであるデータD2Aが記録される。一方、データD2Bはファイル出力されない。
In step S78, the
なお、ステップS78は本発明の「コピーデータを作成するステップ」に相当する。
続いてステップS80ではセンサSNSは書込み処理を行なう。この場合、ユーザから編集部100Dに書込み開始指示が入力される。これにより編集部100DはRAM263にデータD2を送信するとともにCPU261に対してデータ書込みコマンドを送信する。CPU262はデータ書込みコマンドに応じてRAM263にデータD2を格納する。編集部100Dは読出部100EにRAM263に記憶されるデータD2(すなわちセンサSNSに書き込んだデータ)を読み出すよう指示する。
Step S78 corresponds to the “step of creating copy data” of the present invention.
In step S80, the sensor SNS performs a writing process. In this case, a writing start instruction is input from the user to the
ステップS80に続いてステップS81では、読出部100EはセンサSNSからデータD2を読み出す。読出部100EはCPU261にデータ読取りコマンドを送信する。これによりRAM263に記憶されるデータD2が出力され、読出部100EはデータD2を受ける。
In step S81 following step S80, the
次にステップS82において読出部100EはデータD2をファイルに保存する。編集部100Dは比較部100Fに対してデータ受信を行なうよう指示する。
Next, in step S82, the
ステップS83において、比較部100Fは編集部100Dに対してデータD2Bを送信するよう要求する。このとき編集部100Dと比較部100Fとの間ではTCP/IPプロトコルに従ってデータD2Bの授受が行なわれる。また、比較部100Fはファイルに記録されているデータD2A,D2を読み出す。つまり、データD2A,D2Bは異なる伝送経路により比較部100Fに入力される。データD2A,D2Bを異なる伝送経路を介して編集部100Dから読み出す理由は、設定機器100Bの動作が正常であることを保証するためである。
In step S83, the
ステップS84において、比較部100FはデータD2Bを用いてデータD2A,D2に誤りが生じていないことをチェックする。これによりデータD2A(およびデータD2)そのものが正しいデータであるかどうかを確認できる。データD2AとデータD2とが正しい場合には比較部100FはデータD2A,D2を比較する。
In step S84, the
ステップS85において、データD2A,D2が正しく、かつデータD2AとデータD2とが同じ場合(ステップS85においてYES)、処理はステップS86に進む。データD2A,D2の少なくとも一方に誤りがある場合、およびデータD2AとデータD2とが一致しない場合(ステップS85においてNO)、編集部100DはセンサSNSにデータD2の書込みを行なわず、ステップS87において「書込み失敗」という警告を表示する処理を行なう。ステップS87での処理が終了すると、処理は再びステップS71に戻る。
If data D2A and D2 are correct in step S85 and data D2A and data D2 are the same (YES in step S85), the process proceeds to step S86. If there is an error in at least one of data D2A and D2, and if data D2A and data D2 do not match (NO in step S85),
ステップS85においてYESの場合、ステップS86において編集部100Dは設定変更を有効にするかまたは無効にするか(設定をキャンセルするか)の問い合わせをユーザに対して行なう。ユーザが設定を有効にすると指示した場合、編集部100Dは設定有効コマンド(図1の書換指示UD)をCPU261に送る。CPU261はRAM263に記憶されるデータD2を用いてEEPROM262に記憶されるデータD1の書換えを行なう。データD1の書換えが行なわれると、CPU261から編集部100Dに対して設定有効コマンドが送信される。これにより編集部100Dは再描画処理を行ない、たとえば「設定完了」という表示を行なう。
If YES in step S85, the
なお、ステップS86において設定を無効にするとの指示をユーザから受けた場合、編集部100Dはキャンセル指示を処理回路26のCPU261に送る。これによりCPU261はEEPROM262に記憶される設定データの更新を行なわない(たとえばRAM263に記憶される更新データを破棄する)。
When an instruction to invalidate the setting is received from the user in step S86, the
ステップS86での処理が終了すると、続いてステップS88では編集部100DはセンサSNSに移行命令を送り、センサSNSの動作モードを保守モードに移行させる。動作モードの移行に応じて「編集・書込み処理」が終了する。
When the processing in step S86 ends, in step S88, the
以上のように、本実施の形態によれば、比較部において編集部が保持する更新データと読出部が安全検知装置から読み出した更新データとが一致するか否かが判定されることにより、設定機器が安全検知装置の設定を行なうために保持するデータが正しいか否かが判定される。これにより設定機器から安全検知装置に送られるデータの信頼性を高くすることができる。 As described above, according to the present embodiment, setting is performed by determining whether or not the update data held by the editing unit in the comparison unit matches the update data read by the reading unit from the safety detection device. It is determined whether the data held by the device for setting the safety detection device is correct. Thereby, the reliability of the data sent from the setting device to the safety detection device can be increased.
また、本実施の形態によれば、パーソナルコンピュータに代表される汎用機器を用いて設定データの変更を行なった場合にも、その汎用機器が内部に保持する更新データの信頼性を高めることが可能になる。 Further, according to the present embodiment, even when the setting data is changed using a general-purpose device represented by a personal computer, it is possible to improve the reliability of update data held in the general-purpose device. become.
また、本実施の形態によれば、作業者は自身が設定変更を行なった機能について、安全検知装置の動作確認を行なえばよくなる。よって、本実施の形態によれば作業者が動作確認に要する工数を減らすことができる。 Further, according to the present embodiment, the operator only needs to confirm the operation of the safety detection device for the function for which the setting has been changed. Therefore, according to the present embodiment, the number of man-hours required for the operator to check the operation can be reduced.
今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 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 受光センサヘッド、3 専用コード、4 通信ユニット、5 パーソナルコンピュータ、11 投光素子、12 駆動回路、13,25 光軸順次選択回路、15 外部電源、16,26 処理回路、17,27,37 通信回路、18,28,38 電源回路、21 受光素子、22,24 アンプ、23 スイッチ、34 通信変換器、51 制御部、53 記憶部、55 入力部、57 出力部、59 外部記憶装置、61 記録媒体、71 オペレーティングシステム、72 設定用ソフトウェア、72A 編集ソフトウェア、72B 読出ソフトウェア、72C 比較ソフトウェア、100 センサシステム、100A 安全検知装置、100B 設定機器、100C 検知部、100D 編集部、100E 読出部、100F 比較部、101 通信用ケーブル、102 分岐コネクタ、261 CPU、262 EEPROM、263 RAM、M1,M2 記憶部、S1〜S88 ステップ、SNS センサ。 DESCRIPTION OF SYMBOLS 1 Light emission sensor head, 2 Light reception sensor head, 3 Dedicated code, 4 Communication unit, 5 Personal computer, 11 Light projection element, 12 Drive circuit, 13, 25 Optical axis sequential selection circuit, 15 External power supply, 16, 26 Processing circuit , 17, 27, 37 communication circuit, 18, 28, 38 power supply circuit, 21 light receiving element, 22, 24 amplifier, 23 switch, 34 communication converter, 51 control unit, 53 storage unit, 55 input unit, 57 output unit, 59 external storage device, 61 recording medium, 71 operating system, 72 setting software, 72A editing software, 72B reading software, 72C comparison software, 100 sensor system, 100A safety detection device, 100B setting device, 100C detection unit, 100D editing unit , 100E reading unit, 100 Comparing unit, 101 communication cable, 102 branch connector, 261 CPU, 262 EEPROM, 263 RAM, M1, M2 storage unit, S1~S88 step, SNS sensor.
Claims (18)
前記安全検知部は、不揮発的に保持する設定データに従って前記検知を行ない、与えられた更新データを一時的に記憶して、書換指示を受けたときに前記設定データを前記更新データに書換え、
前記更新データと前記書換指示とを前記安全検知部に与える設定部をさらに備え、
前記設定部は、前記安全検知部から前記設定データを読出し、前記設定データの更新のための前記更新データを作成し、前記安全検知部に前記更新データの書込みを行ない、前記安全検知部への前記更新データの書込みが正常であると判定する場合に、前記書換指示を出力する、センサシステム。 In order to ensure the safety of the human body from the machine, it has a safety detection unit that detects that the surroundings of the human body are in a safe state or a non-safe state,
The safety detection unit performs the detection according to setting data held in a nonvolatile manner, temporarily stores the given update data, and rewrites the setting data to the update data when receiving a rewrite instruction,
A setting unit that gives the update data and the rewrite instruction to the safety detection unit;
The setting unit reads the setting data from the safety detection unit, creates the update data for updating the setting data, writes the update data to the safety detection unit, and sends the update data to the safety detection unit. A sensor system that outputs the rewrite instruction when it is determined that writing of the update data is normal.
前記設定データを不揮発的に記憶する、書換可能な第1の記憶部と、
前記更新データを一時的に記憶する第2の記憶部と、
前記設定データに従って前記検知を行ない、前記書換指示に応じて、前記第1の記憶部に記憶される前記設定データを前記更新データに書換える検知部とを含み、
前記設定部は、
前記第1の記憶部から読出した前記設定データに基づいて、前記更新データと前記更新データのコピーデータとを作成し、前記コピーデータを内部に保持するとともに前記更新データを前記第2の記憶部に送る編集部と、
前記第2の記憶部から前記更新データを読出す読出部と、
前記コピーデータと、前記読出部が読み出した前記更新データとの比較を行なう比較部とを含み、
前記編集部は、前記比較部により得られる比較結果が、前記コピーデータと前記更新データとが一致することを示す場合に、前記第2の記憶部への前記更新データの書込みが正常であると判定して、前記書換指示を出力する、請求項1に記載のセンサシステム。 The safety detection unit is
A rewritable first storage unit for storing the setting data in a nonvolatile manner;
A second storage unit for temporarily storing the update data;
A detection unit that performs the detection according to the setting data, and rewrites the setting data stored in the first storage unit to the update data according to the rewriting instruction,
The setting unit
Based on the setting data read from the first storage unit, the update data and the copy data of the update data are created, the copy data is held inside, and the update data is stored in the second storage unit The editorial department to send to
A reading unit for reading the update data from the second storage unit;
A comparison unit that compares the copy data with the update data read by the reading unit;
When the comparison result obtained by the comparison unit indicates that the copy data and the update data match, the editing unit indicates that writing of the update data to the second storage unit is normal The sensor system according to claim 1, wherein the sensor system determines and outputs the rewrite instruction.
少なくとも1つの多光軸光電センサを含む、請求項2から5のいずれか1項に記載のセンサシステム。 The detector is
The sensor system according to claim 2, comprising at least one multi-optical axis photoelectric sensor.
前記安全検知装置は、
設定データを不揮発的に記憶する、書換可能な第1の記憶部と、
前記設定データの更新のための更新データを一時的に記憶する第2の記憶部と、
前記設定データに従って前記検知を行ない、与えられる書換指示に応じて、前記設定データを前記更新データに書換える検知部とを含み、
前記設定機器は、前記更新データと前記書換指示とを前記安全検知装置に与え、
前記設定機器は、
前記第1の記憶部から読出した前記設定データに基づいて、前記更新データと前記更新データのコピーデータとを作成し、前記コピーデータを内部に保持するとともに前記更新データを前記第2の記憶部に送る編集部と、
前記第2の記憶部から前記更新データを読出す読出部と、
前記コピーデータと、前記読出部が読み出した前記更新データとの比較を行なう比較部とを含み、
前記編集部は、前記比較部により得られる比較結果が、前記コピーデータと前記更新データとが一致することを示す場合に、前記第2の記憶部への前記更新データの書込みが正常であると判定して、前記書換指示を出力する、安全検知装置の設定機器。 In order to ensure the safety of the human body from the machine, it is a setting device for setting a safety detection device for detecting that the surroundings of the human body are in a safe state or an unsafe state,
The safety detection device is:
A rewritable first storage unit that stores setting data in a nonvolatile manner;
A second storage unit for temporarily storing update data for updating the setting data;
A detection unit that performs the detection according to the setting data and rewrites the setting data to the update data in accordance with a given rewrite instruction;
The setting device gives the update data and the rewrite instruction to the safety detection device,
The setting device is
Based on the setting data read from the first storage unit, the update data and the copy data of the update data are created, the copy data is held inside, and the update data is stored in the second storage unit The editorial department to send to
A reading unit for reading the update data from the second storage unit;
A comparison unit that compares the copy data with the update data read by the reading unit;
When the comparison result obtained by the comparison unit indicates that the copy data and the update data match, the editing unit determines that the update data is normally written to the second storage unit. A setting device for the safety detection device that determines and outputs the rewrite instruction.
少なくとも1つの多光軸光電センサを含む、請求項7から10のいずれか1項に記載の安全検知装置の設定機器。 The detector is
The setting device of the safety detection device according to any one of claims 7 to 10, comprising at least one multi-optical axis photoelectric sensor.
前記安全検知装置は、
設定データを不揮発的に記憶する、書換可能な第1の記憶部と、
前記設定データの更新のための更新データを一時的に記憶する第2の記憶部と、
前記設定データに従って前記検知を行ない、与えられる書換指示に応じて、前記設定データを前記更新データに書換える検知部とを含み、
前記設定方法は、
前記第1の記憶部から読出した前記設定データに基づいて、前記更新データを作成するステップと、
前記更新データのコピーデータを作成するステップと、
前記第2の記憶部に前記更新データを送るステップと、
前記第2の記憶部から前記更新データを読出すステップと、
前記コピーデータと、前記読出部が読み出した前記更新データとを比較するステップと、
前記比較するステップにおける比較結果が、前記コピーデータと前記更新データとが一致することを示す場合に前記第2の記憶部への前記更新データの書込みが正常であると判定して、前記書換指示を出力するステップとを備える、安全検知装置の設定方法。 In order to ensure the safety of the human body from the machine, a setting method for setting a safety detection device for detecting that the surroundings of the human body are in a safe state or a non-safe state,
The safety detection device is:
A rewritable first storage unit that stores setting data in a nonvolatile manner;
A second storage unit for temporarily storing update data for updating the setting data;
A detection unit that performs the detection according to the setting data and rewrites the setting data to the update data in accordance with a given rewrite instruction;
The setting method is as follows:
Creating the update data based on the setting data read from the first storage unit;
Creating copy data of the update data;
Sending the update data to the second storage unit;
Reading the update data from the second storage unit;
Comparing the copy data with the update data read by the reading unit;
When the comparison result in the comparing step indicates that the copy data and the update data match, it is determined that writing of the update data to the second storage unit is normal, and the rewrite instruction A method for setting a safety detection device, comprising:
前記コピーデータを作成するステップは、前記更新データに誤りがないことが確認された場合に、前記コピーデータを生成する処理を実行させる、請求項12に記載の安全検知装置の設定方法。 The step of creating the update data further creates check data for detecting an error in the update data, and further executes a process for confirming that there is no error in the update data,
13. The method of setting a safety detection device according to claim 12, wherein the step of creating the copy data causes the copy data to be generated when it is confirmed that there is no error in the update data.
少なくとも1つの多光軸光電センサを含む、請求項12から15のいずれか1項に記載の安全検知装置の設定方法。 The detector is
The method of setting a safety detection device according to any one of claims 12 to 15, comprising at least one multi-optical axis photoelectric sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005344969A JP2007147533A (en) | 2005-11-30 | 2005-11-30 | Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005344969A JP2007147533A (en) | 2005-11-30 | 2005-11-30 | Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007147533A true JP2007147533A (en) | 2007-06-14 |
Family
ID=38209097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005344969A Pending JP2007147533A (en) | 2005-11-30 | 2005-11-30 | Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007147533A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010113212A1 (en) * | 2009-03-31 | 2010-10-07 | 富士通株式会社 | Memory leak monitoring device and method |
CN112368608A (en) * | 2018-07-04 | 2021-02-12 | 欧姆龙株式会社 | Data processing device of multi-optical axis photoelectric sensor |
KR20210099859A (en) * | 2020-02-05 | 2021-08-13 | (주)쿠첸 | Temperature sensor module for sensing the temperature of heated objet and heating apparatus |
-
2005
- 2005-11-30 JP JP2005344969A patent/JP2007147533A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010113212A1 (en) * | 2009-03-31 | 2010-10-07 | 富士通株式会社 | Memory leak monitoring device and method |
JPWO2010113212A1 (en) * | 2009-03-31 | 2012-10-04 | 富士通株式会社 | Memory leak monitoring apparatus and method |
CN112368608A (en) * | 2018-07-04 | 2021-02-12 | 欧姆龙株式会社 | Data processing device of multi-optical axis photoelectric sensor |
KR20210099859A (en) * | 2020-02-05 | 2021-08-13 | (주)쿠첸 | Temperature sensor module for sensing the temperature of heated objet and heating apparatus |
KR102311291B1 (en) * | 2020-02-05 | 2021-10-14 | (주)쿠첸 | Temperature sensor module for sensing the temperature of heated objet and heating apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5039428B2 (en) | Programmable controller and PLC system | |
KR910002750B1 (en) | Ic card having a function to exclude erroneous recording and method using it | |
CN101088071B (en) | Method and device for secure parameterization of electronic devices | |
JP6717026B2 (en) | Control device, relay device, control device control method, relay device control method, control program, and recording medium | |
JP6139386B2 (en) | Programmable controller | |
KR101533813B1 (en) | Apparatus and method for controlling power relay assembly | |
JP4849261B2 (en) | Safety application creation support device | |
JP2007147533A (en) | Sensor system, apparatus for setting security detection device, method of setting the security detection device, program, and computer-readable recording medium | |
JP2014157483A (en) | Controller and information processing device | |
JP2007316814A (en) | Updating method of nonvolatile memory | |
JP6393905B2 (en) | Motor drive device | |
CN212181459U (en) | FPGA upgrading system | |
JP4490379B2 (en) | Node management apparatus, node management method, and program | |
US6377493B1 (en) | Semiconductor apparatus | |
JPWO2016136014A1 (en) | Surveillance recorder | |
JP2007041798A (en) | Information processor and memory rewriting method for information processor | |
JP2006155047A (en) | Verification system and verification method | |
CN112685802B (en) | Flash chip reading control method and device and storage medium | |
KR100713971B1 (en) | Method for discriminating firmware download in optical disc device | |
JP4108462B2 (en) | Memory check circuit | |
JP3794081B2 (en) | Communication method of bus line communication encoder | |
JP3947643B2 (en) | Data control device | |
JP2008293241A (en) | Display device | |
JP2005084843A (en) | Unit and programmable controller | |
US6438644B1 (en) | Method to prevent a flash memory from being miswritten |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080428 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080513 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080618 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080722 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20081216 |