JP2005293567A - Measuring device - Google Patents
Measuring device Download PDFInfo
- Publication number
- JP2005293567A JP2005293567A JP2005068554A JP2005068554A JP2005293567A JP 2005293567 A JP2005293567 A JP 2005293567A JP 2005068554 A JP2005068554 A JP 2005068554A JP 2005068554 A JP2005068554 A JP 2005068554A JP 2005293567 A JP2005293567 A JP 2005293567A
- Authority
- JP
- Japan
- Prior art keywords
- measurement
- timing
- data
- information
- output
- 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.)
- Granted
Links
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
【課題】 計測対象物の計測値を、計測値が得られた時間に関する情報と共に外部制御機器に出力できる計測装置を提供すること。
【解決手段】 計測装置は、計測値を所定の周期で取得する計測値取得部と、計測タイミングに関する情報を取得する計測タイミング取得部とを備え、計測タイミングに関する情報は、計測開始タイミングであり、所定周期で取得した計測値に、計測開始タイミングを基準とし、所定計測周期をもとに算出した経過時間情報を対応させて付加し、当該計測タイミング情報を付加した複数の計測値を、一括してデジタル出力する。また、計測装置が有する当該計測装置の認識番号をさらに前記計測値に付加する。
【選択図】 図2
PROBLEM TO BE SOLVED: To provide a measurement device capable of outputting a measurement value of a measurement object to an external control device together with information on a time when the measurement value is obtained.
A measurement apparatus includes a measurement value acquisition unit that acquires measurement values at a predetermined cycle, and a measurement timing acquisition unit that acquires information about measurement timing. The information about measurement timing is a measurement start timing. To the measurement values acquired at a predetermined cycle, the elapsed time information calculated based on the predetermined measurement cycle is added in correspondence with the measurement start timing as a reference, and a plurality of measurement values to which the measurement timing information is added are added together. Output digitally. Further, an identification number of the measurement device included in the measurement device is further added to the measurement value.
[Selection] Figure 2
Description
この発明は、PCなどの外部制御機器に接続される計測装置に関する。 The present invention relates to a measuring device connected to an external control device such as a PC.
例えば変位センサ、温度センサ、視覚センサなどの計測装置と、計測装置を制御する外部の制御機器とが接続されてなり、外部の制御機器が、計測装置による計測結果に基づく判定などを行う計測システムは知られている(例えば特許文献1参照)。 For example, a measurement system in which a measurement device such as a displacement sensor, a temperature sensor, or a visual sensor is connected to an external control device that controls the measurement device, and the external control device makes a determination based on a measurement result of the measurement device. Is known (see, for example, Patent Document 1).
この種の計測装置は、計測値をリアルタイムで連続して制御機器に出力し、計測値の受け取りは制御機器に委ねられている。計測対象物が移動する場合、計測装置が計測値をいつ取得したかを示す時間情報が重要となる。制御機器は、この時間情報を外部からの同期信号などを用いて判断する。例えば、ライン上を移動するワークが所定位置まで流れてきたときに、これを検出する同期用のセンサがオンし、このオン入力に同期して、制御機器は計測装置から計測値を取得している。
しかしながら、制御機器がPC(Personal Computer)やPLC(Programmable Logic Controller)などの汎用機の場合、同期用のセンサの接続端子が設けられていない場合があり、計測装置の出力にUSBなどのデジタル信号のシリアル出力を用いると、計測値がリアルタイムに連続して出力されないため、PCがリアルタイムに、又一定周期ごとに、計測値を時間情報と共に取得することは困難であった。よって、PC側で同期用センサの出力を得たとして計測値と同期タイミングの対応を取ることができなかった。 However, when the control device is a general-purpose machine such as a PC (Personal Computer) or PLC (Programmable Logic Controller), a connection terminal of a sensor for synchronization may not be provided, and a digital signal such as USB is output to the output of the measuring device. When the serial output is used, since the measurement value is not continuously output in real time, it is difficult for the PC to acquire the measurement value together with the time information in real time and at regular intervals. Therefore, it is impossible to take the correspondence between the measurement value and the synchronization timing, assuming that the output of the synchronization sensor is obtained on the PC side.
この発明は、このような従来の問題点に着目して成されたものであり、その目的とするところは、計測対象物の計測値を、計測値が得られた時間に関する情報と共に外部制御機器に出力できる計測装置を提供することにある。 The present invention has been made by paying attention to such conventional problems, and the object of the present invention is to provide an external control device with the measurement value of the measurement object together with information on the time when the measurement value was obtained. An object of the present invention is to provide a measurement device that can output to
この発明のさらに他の目的並びに作用効果については、明細書の以下の記述を参照することにより、当業者であれば容易に理解されるであろう。 Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.
本発明の計測装置は、計測値を取得する計測値取得部と、外部からのトリガ信号が入力されるトリガ信号入力部と、取得した計測値を処理する処理部と、処理条件のデータを記憶するデータ記憶部と、処理された計測値を出力するインターフェース部とを有する計測装置であって、計測値取得部は、計測値を周期的に取得し、データ記憶部は、処理条件のデータとして処理された複数の計測値を一括して出力する際の最大データ数を規定する情報を記憶し、処理部は、周期的に取得した測定値に、トリガ信号が入力されたタイミングを基準とする計測タイミングに関する情報を付加し、前記の計測タイミング情報が付加された複数の計測値を、取得した順序を保って前記最大データ数以下である複数の計測値に区切り、その区切られた複数の計測値を当該データ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第1のデジタル出力を実行した後、前回のデジタル出力の後、前記最大データ数と前記周期との積で定まる時間以内に、出力済みの計測値に続く次の計測タイミングに関する情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下のデータ数である複数の計測値に区切り、その区切られたデータ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第2のデジタル出力を実行し、その後第2のデジタル出力を繰り返す。 The measurement apparatus of the present invention stores a measurement value acquisition unit that acquires measurement values, a trigger signal input unit that receives an external trigger signal, a processing unit that processes the acquired measurement values, and processing condition data A measurement device having a data storage unit that performs processing and an interface unit that outputs the processed measurement value, wherein the measurement value acquisition unit periodically acquires the measurement value, and the data storage unit stores data as processing conditions Stores information that defines the maximum number of data when a plurality of processed measurement values are output in a batch, and the processing unit uses the timing when the trigger signal is input as a periodically acquired measurement value Information related to measurement timing is added, and a plurality of measurement values to which the measurement timing information is added are divided into a plurality of measurement values that are equal to or less than the maximum number of data in the acquired order, and the plurality of divided values After executing the first digital output in which the measured values are digitally output from the interface unit in a time shorter than the time determined by the product of the number of data and the period, the maximum number of data after the previous digital output The number of data is equal to or less than the maximum number of data while maintaining the order of acquiring a plurality of measurement values to which information related to the next measurement timing following the output measurement value is added within a time determined by the product of the period and the cycle. Dividing into a plurality of measurement values, executing the second digital output that is digitally output from the interface unit in a time shorter than the time determined by the product of the divided number of data and the period, and then executing the second digital output Repeat output.
本発明の実施形態においては、処理された複数の計測値を一括して出力する際の最大データ数は、あらかじめ設定しておいても良いし、インターフェース部を介して入力されるようにしても良い。 In the embodiment of the present invention, the maximum number of data when a plurality of processed measurement values are collectively output may be set in advance or may be input via the interface unit. good.
本発明の実施形態においては、トリガ信号が入力されたタイミングを基準とする計測タイミングに関する情報を付加するとは、トリガ信号が入力されたときのみに他と区別可能な識別標識を付加する場合や、トリガ信号が入力されたときから連続して他と区別可能な識別標識を付加し続ける場合、トリガ信号が入力されたときを基準にした並びの順序が判別可能な文字(例えばアルファベットなど)や数、記号などの標識を順に付加する場合を含む。計測値に計測タイミングに関する情報を常に付加する場合や、トリガ信号入力により開始させる場合、また、トリガ信号入力により開始させた後、再度のトリガ入力により停止するようにする場合も含む。 In the embodiment of the present invention, adding information related to the measurement timing based on the timing at which the trigger signal is input includes adding an identification mark that can be distinguished from the other only when the trigger signal is input, When you continue to add an identification mark that can be distinguished from others from the time when the trigger signal is input, characters (for example, alphabets) and numbers that can be distinguished from the sequence when the trigger signal is input This includes the case where signs such as symbols are added in order. This includes the case where information related to measurement timing is always added to the measurement value, the case where the measurement value is started by trigger signal input, and the case where the measurement value is started by trigger signal input and then stopped by another trigger input.
このような構成によれば、所定の周期で取得された計測値は、区切った単位ごとに一括して出力されるものの、トリガ信号が入力されたタイミングを基準とする計測タイミングに関する情報を取得した時間を対応させて付加され、計測値が取得された順序が保たれている。従って、PC等の制御用機器はUSB通信などの一括してデジタル出力を行う出力信号形態によってもトリガ信号が入力されたタイミングと関連付けられた連続した計測値を漏れなく得ることができる。またこの計測値により、計測値は所定期間内のものが一括して出力されるので、計測装置の計測速度と、出力側のPCなどの制御機器の処理速度に大きな隔たりがあっても差し支えなく、制御機器の処理負担を軽減させることができる。 According to such a configuration, the measurement values acquired at a predetermined cycle are output in batches for each divided unit, but information on measurement timing based on the timing at which the trigger signal is input is acquired. The order in which the measurement values are acquired by keeping corresponding times is maintained. Therefore, a control device such as a PC can obtain a continuous measurement value associated with the timing at which the trigger signal is input without omission even by an output signal form that performs digital output all at once, such as USB communication. In addition, because the measured values are output in batches within a predetermined period, there is no problem even if there is a large gap between the measurement speed of the measuring device and the processing speed of the control device such as the PC on the output side. The processing load on the control device can be reduced.
また、区切られた複数の計測値ごとにそのデータ数と計測値取得周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する、というのは、USBなど、デジタル信号のシリアル伝送方式では一般に用いられる通信方法でデータを垂れ流し式に送るのではなく、複数のデータを高速に一括して伝送する方式を意味している。上記の積で定まる時間を越えない時間毎に伝送することで、取得し続ける計測値に対して未出力の計測値が累積することなく、全計測値を一定の時間範囲内で出力することができる。 In addition, for each of a plurality of divided measurement values, digital output from the interface unit in a time shorter than the time determined by the product of the number of data and the measurement value acquisition cycle is a digital signal such as USB. The serial transmission method means a method of transmitting a plurality of data at a time at a high speed, instead of sending data in a flow-down manner by a communication method generally used. By transmitting every time that does not exceed the time determined by the above product, all measurement values can be output within a certain time range without accumulating unmeasured measurement values for the measurement values that are continuously acquired. it can.
また、第2のデジタル出力がその前に行われたデジタル出力の後、最大データ数と周期との積で定まる時間以内に、出力済みの計測値に続く次の複数の計測値を、一括してインターフェース部よりデジタル出力するので、PCなどの制御機器側では、実際に計測値を取得したタイミングとそのデータを受け取るときまでの時間的な遅れが一定値を超えることがなく、連続した計測値を取得することができる。 In addition, after the digital output that was performed before the second digital output, within the time determined by the product of the maximum number of data and the period, the next multiple measured values following the output measurement value are batched. Because the digital data is output from the interface unit, the control device side such as a PC does not exceed a certain value because the timing of actual measurement value acquisition and the time delay until the data is received do not exceed a certain value. Can be obtained.
本発明の実施形態においては、計測値を取得する計測値取得部と、取得した計測値を処理する処理部と、処理条件のデータを記憶するデータ記憶部と、処理された計測値を出力するインターフェース部とを有する計測装置であって、計測値取得部は、計測値を周期的に取得し、データ記憶部は、前記処理条件のデータとして処理された複数の計測値を一括して出力する際の最大データ数を規定する情報と、計測値と比較されるタイミング判定閾値とを記憶し、処理部は、周期的に取得した測定値に、計測値が前記タイミング判定閾値をまたいで変化したタイミングを基準とする計測タイミングに関する情報を付加し、前記の計測タイミング情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下である複数の計測値に区切り、その区切られた複数の計測値を当該データ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第1のデジタル出力を実行した後、前回のデジタル出力の後、前記最大データ数と前記周期との積で定まる時間以内に、出力済みの計測値に続く次の計測タイミングに関する情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下のデータ数である複数の計測値に区切り、その区切られたデータ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第2のデジタル出力を実行し、その後第2のデジタル出力を繰り返す。 In the embodiment of the present invention, a measurement value acquisition unit that acquires measurement values, a processing unit that processes the acquired measurement values, a data storage unit that stores data of processing conditions, and a processed measurement value are output. A measurement device having an interface unit, wherein a measurement value acquisition unit periodically acquires measurement values, and a data storage unit collectively outputs a plurality of measurement values processed as data of the processing conditions Information for defining the maximum number of data at the time and a timing determination threshold value to be compared with the measured value, and the processing unit periodically changes the measured value across the timing determination threshold value to the measured value Information on the measurement timing based on the timing is added, and the plurality of measurement values to which the measurement timing information is added are maintained in the order in which the plurality of measurement values are not more than the maximum number of data. After the first digital output is performed, the plurality of divided measurement values are digitally output from the interface unit in a time shorter than the time determined by the product of the number of data and the period. After the output, within the time determined by the product of the maximum number of data and the period, the maximum number is maintained while maintaining the order in which a plurality of measurement values to which information on the next measurement timing following the output measurement value is added are added. A second digital output that is divided into a plurality of measurement values that are less than or equal to the number of data and is digitally output from the interface unit in a time that is shorter than the time determined by the product of the divided number of data and the period. And then repeat the second digital output.
本発明の実施形態においては、タイミング判定閾値は、予め設定するようにしても良いし、外部から設定するようにしても良い。 In the embodiment of the present invention, the timing determination threshold value may be set in advance or may be set from the outside.
このような構成によれば、計測値が計測タイミング判定閾値をまたいで変化する動作は例えばセルフトリガにより生じ、これにより、計測タイミングに関する情報を計測値に付加する操作の有無を制御することができる。 According to such a configuration, the operation in which the measurement value changes across the measurement timing determination threshold value is generated by, for example, a self-trigger, and thereby it is possible to control the presence or absence of an operation for adding information related to the measurement timing to the measurement value. .
本発明の実施形態においては、処理された複数の計測値を一括して出力する際の最大データ数を規定する情報として、最大データ量もしくは最大出力周期を記憶しても良い。最大データ量とすれば、出力する際の各データの大きさから許容できる最大データ数が規定されることになり、最大出力周期であれば、その中に含みうる計測周期の数から最大データ数が規定されることになる。 In the embodiment of the present invention, the maximum data amount or the maximum output cycle may be stored as information for defining the maximum number of data when a plurality of processed measurement values are collectively output. If the maximum data amount is specified, the maximum number of data that can be tolerated is specified from the size of each data at the time of output, and if it is the maximum output cycle, the maximum number of data is calculated from the number of measurement cycles that can be included in it. Will be specified.
本発明の実施形態においては、計測タイミングに関する情報は、計測開始タイミングであってもよい。このような構成によれば、複数の計測値が計測開始タイミングに対応させて順序を保ちながら出力される。 In the embodiment of the present invention, the information related to the measurement timing may be a measurement start timing. According to such a configuration, a plurality of measurement values are output while maintaining the order corresponding to the measurement start timing.
本発明の実施形態においては、計測タイミングに関する情報は、計測開始タイミングおよび計測終了タイミングであってもよい。このような構成によれば、複数の計測値が計測開始タイミングと計測終了タイミングの間の期間に対応させて順序を保ちながら出力される。 In the embodiment of the present invention, the information related to the measurement timing may be a measurement start timing and a measurement end timing. According to such a configuration, a plurality of measurement values are output while maintaining the order corresponding to the period between the measurement start timing and the measurement end timing.
本発明の実施形態においては、計測値を所定の周期で取得する計測値取得部と、計測タイミングに関する情報を取得する計測タイミング取得部とを備え、計測タイミングに関する情報は、計測開始タイミングであり、所定周期で取得した計測値に、計測開始タイミングを基準とする時系列情報を対応させて付加し、当該計測タイミング情報を付加した複数の計測値を、一括してデジタル出力するようにしてもよい。この場合、時系列情報は例えば通し番号であり、複数の計測値が計測開始タイミングに対応させて通し番号により出力される。従って、計測装置の外部に接続される制御機器等は、計測値と共に、計測値が取得された時間情報を容易に知ることができる。 In the embodiment of the present invention, a measurement value acquisition unit that acquires measurement values at a predetermined period and a measurement timing acquisition unit that acquires information about measurement timing, the information about measurement timing is a measurement start timing, Time series information based on the measurement start timing may be added to the measurement values acquired at a predetermined cycle in association with each other, and a plurality of measurement values to which the measurement timing information is added may be digitally output collectively. . In this case, the time series information is, for example, a serial number, and a plurality of measurement values are output by serial numbers in correspondence with the measurement start timing. Therefore, a control device or the like connected to the outside of the measuring apparatus can easily know the time information at which the measurement value is acquired together with the measurement value.
本発明の実施形態においては、計測値を所定の周期で取得する計測値取得部と、計測タイミングに関する情報を取得する計測タイミング取得部とを備え、計測タイミングに関する情報は、計測開始タイミングであり、所定周期で取得した計測値に、計測開始タイミングを基準とし、所定計測周期をもとに算出した経過時間情報を対応させて付加し、当該計測タイミング情報を付加した複数の計測値を、一括してデジタル出力するようにしてもよい。このような構成によれば、複数の計測値が計測開始タイミングに対応させて経過時間情報と共に出力される。さらに、経過時間情報は計測周期が何周期分なのかによって容易に求められる。また、外部に接続される制御機器では、計測値が取得された経過時間情報を実時間情報としてそのまま利用することができる。 In the embodiment of the present invention, a measurement value acquisition unit that acquires measurement values at a predetermined period and a measurement timing acquisition unit that acquires information about measurement timing, the information about measurement timing is a measurement start timing, To the measurement values acquired at a predetermined cycle, the elapsed time information calculated based on the predetermined measurement cycle is added in correspondence with the measurement start timing as a reference, and a plurality of measurement values to which the measurement timing information is added are added together. And digital output. According to such a configuration, a plurality of measurement values are output together with the elapsed time information in correspondence with the measurement start timing. Furthermore, the elapsed time information can be easily obtained depending on how many measurement cycles there are. Further, in the control device connected to the outside, the elapsed time information from which the measurement value is acquired can be used as it is as real time information.
本発明の実施形態においては、処理部は、トリガ信号が入力されるとともに前記第1の一括デジタル出力を開始し、トリガ信号の入力が継続している間、前記第2の一括デジタル出力を繰り返すものとしても良い。 In an embodiment of the present invention, the processing unit starts the first collective digital output when a trigger signal is input, and repeats the second collective digital output while the input of the trigger signal continues. It is good as a thing.
本発明の実施形態においては、計測値が前記判定タイミング判定閾値をまたいで変化したときに前記第1の一括デジタル出力を開始し、計測値が前記判定タイミング判定閾値を再度またいで変化するまでの間前記第2の一括デジタル出力を繰り返すようにしても良い。 In an embodiment of the present invention, when the measurement value changes across the determination timing determination threshold, the first batch digital output is started, and the measurement value is changed over the determination timing determination threshold again. In the meantime, the second batch digital output may be repeated.
本発明の実施形態においては、計測装置が有する当該計測装置の認識番号をさらに前記計測値に付加するようにしてもよい。これによれば、計測装置の外部に接続される制御機器に対して、複数の計測装置から入力がある場合に、制御機器は、受け取った計測値がどの計測装置のものなのかを容易に判別することができるので、使い勝手がよくなる。 In the embodiment of the present invention, an identification number of the measurement device included in the measurement device may be further added to the measurement value. According to this, when there is an input from a plurality of measurement devices to a control device connected to the outside of the measurement device, the control device can easily determine which measurement device the received measurement value belongs to. Can be used, so it is easy to use.
以上の説明で明らかなように、本発明によれば、計測対象物の計測値を、計測値が得られたタイミングに関する時間情報と共に、外部に接続される制御機器に一括出力することができる。従って、外部の制御機器が計測値に対して高精度な判定処理、制御処理を行い易くなり、また、制御機器の処理負担を軽減できるという利点を有する。 As is clear from the above description, according to the present invention, the measurement value of the measurement object can be collectively output to the control device connected to the outside together with the time information regarding the timing at which the measurement value was obtained. Therefore, it is easy for an external control device to perform highly accurate determination processing and control processing on the measurement value, and there is an advantage that the processing load on the control device can be reduced.
以下に、この発明の好適な実施の一形態を添付図面を参照しながら詳細に説明する。 In the following, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.
本実施形態の計測装置の電気的ハードウェア構成を示すブロック図が図1に示されている。計測装置は、変位センサとして構成され、制御盤などへのコンパクトな収容を可能とするために、また狭小な計測環境への据え付けを容易とするために、センサヘッド部1と信号処理部2とを分離させてなり、外部の制御機器であるPC3に接続されて使用される。
FIG. 1 is a block diagram showing the electrical hardware configuration of the measuring apparatus according to the present embodiment. The measurement device is configured as a displacement sensor, and in order to enable compact accommodation in a control panel or the like, and to facilitate installation in a narrow measurement environment, the
センサヘッド部1は、投光素子101と、受光素子102と、投光制御部103と、受光制御部104と、演算処理部105と、内部メモリ106と、通信制御部107とを備えている。
The
投光素子101は、例えばLD(レーザダイオード)から成り、受光素子102は、PD(フォトダイオード)から成る。投光制御部103は、投光素子101の駆動パルスを生成し、計測対象物へと向けて投光素子101によりパルス光を照射させる。受光制御部104は受光素子102の制御を行う。
The
演算処理部105は、受光素子102から得られる受光量を取得して特徴量を算出する。内部メモリ106は、計測対象物の計測周期、処理された複数の計測値を一括して出力する際の最大データ数を規定する情報として最大データ数や最大データ量もしくは最大出力周期、センサヘッド部1のID番号(認識番号)などの情報を格納する。通信制御部107は、信号処理部2との通信を制御する。
The
本実施形態のセンサヘッド部1は、以上のような回路構成とされ、この例では、信号処理部2の指令に応じて投光処理を行い、受光処理による受光信号を適当なタイミングで信号処理部2に送る処理を行うべく使用される。
The
信号処理部2は、通信制御部201と、計測制御部202と、外部信号検知部203と、SW検知部204と、表示部205と、内部メモリ206と、USBコントローラ207と、CPU208とを備えている。
The
通信制御部201は、センサヘッド部1との通信制御を行い、センサヘッド部1から受光データなどを取得する。計測制御部202は、センサヘッド部1から取得したデータに基づいて、計測対象物までの距離を計測する処理を行う。外部信号検知部203は、外部トリガなどの外部信号を検知し、計測制御部202による計測結果を取得するタイミングをCPU208に入力する。
The
SW検知部204は、信号処理部2に設けられた不図示のスイッチやボタンからの入力を検知する。表示部205は、計測値や設定条件を表示する液晶表示部や、動作状態等を示す表示灯LED等を備えている。内部メモリ206は、計測値などの計算結果を格納する。USBコントローラ207は、外部のPC等に接続するためのUSB通信を制御する。
The
CPU208は、信号処理部2全体を統括制御する。CPU208は、SW検知部204から取得したスイッチ状態により計測条件の設定を反映させる。また、計測値取得部の機能を有し、計測制御部202から取得した計測値、計測条件の設定などを表示部205に表示させる。CPU208は、計測タイミング取得部の機能を有し、時間情報を生成するためのタイミングを検知し、時間情報を算出し、算出した時間情報を計測値に付加する。
The
信号処理部2の動作を示すフローチャートが図2に示されている。電源投入により処理が開始されると、信号処理部2は、センサヘッド部1に投光処理を指示する(ステップ201)。これにより、センサヘッド部1は、計測対象物に対してパルス光の照射を行う。信号処理部2は、センサヘッド部1から受光データを取得し(ステップ202)、受光データから計測値(距離値)を算出する(ステップ203)。
A flowchart showing the operation of the
続いて、時間情報を取得するためのタイミング検知を行う(ステップ204)。ここで、タイミング検知は、外部信号検知部203により外部信号(計測信号)がONであるかOFFであるかを判別することにより行われ、外部信号がONになったときに、計測開始タイミングであることが判定され、外部信号がOFFになったときに、計測終了タイミングであることが判定される。
Subsequently, timing detection for acquiring time information is performed (step 204). Here, the timing detection is performed by determining whether the external signal (measurement signal) is ON or OFF by the external
ステップ204に続いて、計測値が計測されたときの時間情報を算出する(ステップ205)。CPU208は外部信号がONになってからの計測回数(カウント数)をカウントすると共に、外部信号がOFFの期間は計測回数をクリアする。算出される時間情報は、カウント数と、あらかじめセンサヘッド部1から取得しておいた計測周期との積として表される。
Subsequent to step 204, time information when the measured value is measured is calculated (step 205). The
ステップ205に続いて、計測値に時間情報を付加し(ステップ206)、さらに、時間情報が付加された計測値に、あらかじめ取得しておいたセンサヘッド部1のID番号を付加する(ステップ207)。続いて、計測値の最終結果(時間情報およびID番号が付加された計測値)を内部メモリ206に格納する(ステップ208)。さらに、所定期間内に得られた計測値の最終結果をUSBコントローラ207に転送する(ステップ209)。USBコントローラ207は、PC3からの要求をトリガとして、予め設定された、もしくはPCにより設定された最大データ数内の得られた所定の複数の計測値の最終結果をまとめてPC3に一括でデジタル出力する。この一括デジタル出力は、それに続く計測値を所定の複数に区切って、先に行った一括デジタル出力の後、最大データ数と計測値取得周期との積で定まる時間以内に行われる(ステップ210)。また、この一括デジタル出力は、複数の計測値を取得した周期毎に垂れ流すのではなく、最大データ数内の所定の複数データ数を一度に一括して高速に出力することにより行われる。これにより、PC3は、計測値と時間情報とを一定のタイムラグを超えずに取得し、種々の判定、制御処理を円滑に行うことができる。また、受け取ったデータをセンサヘッド部1毎に仕分けして利用することができる。
Subsequent to step 205, time information is added to the measurement value (step 206), and the ID number of the
尚、上記ステップ204のタイミング検知は、外部信号がONになったときに計測開始タイミングであると判定し、外部信号がOFFになったときに計測終了タイミングであると判定したが、代わりに、計測値が所定値以上又は所定値以下となったときに、計測開始タイミング又は計測終了タイミングであると判定するように構成してもよい。また、ステップ205で算出される時間情報はカウント数そのものとしてもよい。この場合には、PC3に、信号処理部2から受け取ったデータを計測時間に沿って再配置する機能を持たせる。他に時間情報として、計測タイミングに対応する計測値にだけ識別標識を付加するようにしても良い。
The timing detection in
信号処理部2内における計測値に対する時間情報付加処理の流れを示すタイムチャートが図3に示されている。この例では、信号処理部2の計測制御部202は、図3に参照符号aで示されるタイミングで受光データ1と受光データ2とを取得し(ステップ202)、参照符号bで示されるタイミングで、計測値として距離値1と距離値2とを算出する(ステップ203)。
FIG. 3 shows a time chart showing the flow of the time information addition process for the measurement value in the
CPU208は、距離値1の時間情報と、距離値2の時間情報とを算出し(ステップ205)、参照符号cで示されるタイミングで、距離値1に時間情報を付加し、同様に、距離値2に時間情報を付加する(ステップ206)。さらに、CPU208は、時間情報が付加された距離値1および距離2に、参照符号dで示されるタイミングで、センサヘッド部1のID番号をそれぞれ付加する(ステップ207)。なお、受光データ1と、受光データ2との間隔(1周期)は数十μs以上である。
The
タイミング検知と、計測値に対する時間情報付加処理との関係を示す説明図が図4に示されている。この例では、信号処理部2が、受光データ1〜9を取得し、受光データ3を取得するときに外部信号がON(計測開始タイミング)となり、受光データ7を取得した後に外部信号がOFF(計測終了タイミング)となる場合を想定している。ここでは説明の便宜上1〜9の受光データを示すが、受光データ数は様々な数をとりうるのは言うまでもない。
FIG. 4 is an explanatory diagram showing the relationship between the timing detection and the time information addition processing for the measurement value. In this example, when the
信号処理部2が受光データ1,2を取得するときには、外部信号がOFFであるので、この期間では計測回数がクリアされ、計測値(距離値1、距離値2)には、時間情報が付加されない。一方、信号処理部2が受光データ3〜7を取得するときには、外部信号がONであるので、計測値(距離値3〜距離値7)に経過時間情報(0ms〜40ms)が付加される。また、信号処理部2が受光データ8,9を取得するときには、外部信号がOFFであるので、この期間では計測回数がクリアされ、計測値(距離値8、距離値9)には時間情報が付加されない。
When the
尚、時間情報が付加される期間(計測開始タイミング〜計測終了タイミング)の検知動作は、外部信号のON/OFFによるもののほか、例えば所定の計測タイミング判定閾値をまたいで変化したタイミングでセルフトリガによって定めるようにしてもよい。 Note that the detection operation during the period in which time information is added (measurement start timing to measurement end timing) is based on ON / OFF of an external signal, for example, by self-triggering at a timing that changes across a predetermined measurement timing determination threshold. It may be determined.
信号処理部2からPC3に出力されるデータのデータ構造は、図5に示されるように、計測値(距離値)と、時間情報と、センサヘッド部ID番号とから成る。時間情報は、計測値が取得された時間を表す。これにより、計測値がいつ測定されたかを知ることができる。センサヘッド部ID番号は、受け取ったデータが、どのセンサヘッド部からのデータであるかを示すID番号である。これにより、PC3に対して複数の信号処理部(計測装置)からの入力がある場合に、PC3は受け取った計測値を判別できることとなる。
As shown in FIG. 5, the data structure of data output from the
センサヘッド部1の内部メモリ106のメモリ構造は、図6に示されるように、センサヘッド部ID番号と、1周期あたりの実計測時間(計測周期)とから成る。信号処理部2は、起動時に、センサヘッド部1から計測周期とセンサヘッド部ID番号を取得し、取得した計測周期を時間情報算出のために利用する。また、計測周期を信号処理部2からPC3に送信すれば、PC3に対して複数の信号処理部(計測装置)からの入力がある場合に、計測装置によって計測周期が異なっていてもPC3が対応できることとなる。なお、センサヘッド部1の内部メモリ106には、この他、センサヘッド部1固有の情報も格納される。
As shown in FIG. 6, the memory structure of the
本発明計測装置の応用例を示す説明図が図7に示されている。この例では、ワーク801に液晶シール剤802を塗布するためのノズル803の制御を表している。ノズル803はセンサヘッド部1と一体に構成される。信号処理部2は、PC3にUSB接続されている。センサヘッド部1は、ワーク801表面の凹凸を計測する。PC3は、センサヘッド部1で計測されて信号処理部2から受け取った計測値データを用いて、ノズル803を上下に移動させるように制御する。信号処理部2は、センサヘッド部1で取得されたデータを所定期間蓄積し、間隔を置いて一括してPC3に出力する。センサヘッド部1が高速に計測したデータをPC3が取得することにより、PC3は様々な解析をすることができ、高精度な予測に基づくノズル制御を実現することができる。
An explanatory view showing an application example of the measuring apparatus of the present invention is shown in FIG. In this example, control of the
本発明計測装置の作用説明図が図8に示されている。この例では、9個の一連の計測値(12345,12334,12342,12341,12115,12113,12122,12108,12105)に対して、開始トリガを計測開始タイミングとして、3番目の計測値(12342)から計測タイミング情報を付加している。そして、8番目の計測値(12108)に対して終了トリガを計測終了タイミングとしている。3番目の計測値(12342)から7番目の計測値(12112)まで、時間情報は、図示されるように、通し番号(時系列情報)である。データを受け取るPC3が、信号処理部2から受け取ったデータを計測時間に沿って再配置する機能を有している場合には、USB通信(デジタル通信)で、PCに、計測周期(この例では周期は2ms)も合わせて送ると、PCが受信データを実時間に配置し直すことができる。
FIG. 8 shows an operation explanatory diagram of the measuring apparatus of the present invention. In this example, for a series of nine measurement values (12345, 12334, 12342, 12341, 12115, 12113, 12122, 12108, and 12105), the third measurement value (12342) is set with the start trigger as the measurement start timing. Measurement timing information is added. An end trigger is set as a measurement end timing for the eighth measurement value (12108). The time information from the third measurement value (12342) to the seventh measurement value (12112) is a serial number (time-series information) as shown in the figure. When the
上記実施形態では、計測装置は変位センサとして説明したが、本発明の計測装置はこれに限定されず、温度センサや視覚センサとして構成するようにしてもよい。 In the above embodiment, the measurement device has been described as a displacement sensor. However, the measurement device of the present invention is not limited to this, and may be configured as a temperature sensor or a visual sensor.
1 センサヘッド部
2 信号処理部
3 PC
101 投光素子
102 受光素子
103 投光制御部
104 受光制御部
105 演算処理部
106 内部メモリ
107 通信制御部
201 通信制御部
202 計測制御部
203 外部信号検知部
204 SW検知部
205 表示部
206 内部メモリ
207 USBコントローラ
208 CPU
801 ワーク
802 液晶シール剤
803 ノズル
DESCRIPTION OF
101
201
801
Claims (10)
計測値取得部は、計測値を周期的に取得し、
データ記憶部は、処理条件のデータとして処理された複数の計測値を一括して出力する際の最大データ数を規定する情報を記憶し、
処理部は、周期的に取得した測定値に、トリガ信号が入力されたタイミングを基準とする計測タイミングに関する情報を付加し、
前記の計測タイミング情報が付加された複数の計測値を、取得した順序を保って前記最大データ数以下である複数の計測値に区切り、その区切られた複数の計測値を当該データ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第1のデジタル出力を実行した後、
前回のデジタル出力の後、前記最大データ数と前記周期との積で定まる時間以内に、出力済みの計測値に続く次の計測タイミングに関する情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下のデータ数である複数の計測値に区切り、その区切られたデータ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第2のデジタル出力を実行し、
その後第2のデジタル出力を繰り返すことを特徴とする計測装置。 A measurement value acquisition unit that acquires measurement values, a trigger signal input unit that receives an external trigger signal, a processing unit that processes the acquired measurement values, a data storage unit that stores processing condition data, and a process A measuring device having an interface unit for outputting the measured value,
The measurement value acquisition unit periodically acquires measurement values,
The data storage unit stores information defining the maximum number of data when a plurality of measurement values processed as processing condition data are collectively output,
The processing unit adds information related to the measurement timing based on the timing at which the trigger signal is input to the periodically acquired measurement value,
The plurality of measurement values to which the measurement timing information is added are divided into a plurality of measurement values that are equal to or less than the maximum number of data in the acquired order, and the plurality of divided measurement values are divided into the number of data and the period After executing the first digital output that is digitally output from the interface unit in a time shorter than the time determined by the product of
After the previous digital output, within the time determined by the product of the maximum number of data and the period, the order in which a plurality of measurement values to which information related to the next measurement timing following the output measurement value is added is acquired is maintained. The second data is divided into a plurality of measurement values that are equal to or less than the maximum number of data, and is digitally output from the interface unit in a time shorter than the time determined by the product of the divided number of data and the period. Perform digital output,
Thereafter, the second digital output is repeated.
計測値取得部は、計測値を周期的に取得し、
データ記憶部は、前記処理条件のデータとして処理された複数の計測値を一括して出力する際の最大データ数を規定する情報と、計測値と比較されるタイミング判定閾値とを記憶し、
処理部は、周期的に取得した測定値に、計測値が前記タイミング判定閾値をまたいで変化したタイミングを基準とする計測タイミングに関する情報を付加し、
前記の計測タイミング情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下である複数の計測値に区切り、その区切られた複数の計測値を当該データ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第1のデジタル出力を実行した後、
前回のデジタル出力の後、前記最大データ数と前記周期との積で定まる時間以内に、出力済みの計測値に続く次の計測タイミングに関する情報が付加された複数の計測値を取得した順序を保って前記最大データ数以下のデータ数である複数の計測値に区切り、その区切られたデータ数と前記周期との積で定まる時間よりも短い時間で一括してインターフェース部よりデジタル出力する第2のデジタル出力を実行し、
その後第2のデジタル出力を繰り返すことを特徴とする計測装置。 A measurement device having a measurement value acquisition unit that acquires measurement values, a processing unit that processes the acquired measurement values, a data storage unit that stores data of processing conditions, and an interface unit that outputs the processed measurement values There,
The measurement value acquisition unit periodically acquires measurement values,
The data storage unit stores information defining a maximum number of data when collectively outputting a plurality of measurement values processed as data of the processing condition, and a timing determination threshold value to be compared with the measurement value,
The processing unit adds information related to the measurement timing based on the timing at which the measurement value changes across the timing determination threshold to the periodically acquired measurement value,
Maintaining the order in which the plurality of measurement values to which the measurement timing information is added is acquired and divided into a plurality of measurement values equal to or less than the maximum number of data, After executing the first digital output that performs digital output from the interface unit in a time shorter than the time determined by the product of
After the previous digital output, within the time determined by the product of the maximum number of data and the period, the order in which a plurality of measurement values to which information on the next measurement timing following the output measurement value is added is acquired is maintained. The second data is divided into a plurality of measurement values that are equal to or less than the maximum number of data, and is digitally output from the interface unit in a time shorter than the time determined by the product of the divided data number and the period Perform digital output,
Thereafter, the second digital output is repeated.
周期的に取得した計測値に、計測開始タイミングを基準とする時系列情報を対応させて付加することを特徴とする請求項1または2に記載の計測装置。 The information about the measurement timing is the measurement start timing,
The measurement apparatus according to claim 1, wherein time-series information with reference to the measurement start timing is added to the periodically acquired measurement value in association with the measurement value.
所定周期で取得した計測値に、計測開始タイミングを基準とし、当該計測周期をもとに算出した経過時間情報を対応させて付加し、当該計測タイミング情報を付加することを特徴とする請求項1または2に記載の計測装置。 The information about the measurement timing is the measurement start timing,
2. The measurement value acquired at a predetermined cycle is added in association with elapsed time information calculated based on the measurement cycle based on the measurement start timing, and the measurement timing information is added. Or the measuring apparatus of 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005068554A JP4650620B2 (en) | 2004-03-12 | 2005-03-11 | Measuring device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004070769 | 2004-03-12 | ||
| JP2005068554A JP4650620B2 (en) | 2004-03-12 | 2005-03-11 | Measuring device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2005293567A true JP2005293567A (en) | 2005-10-20 |
| JP4650620B2 JP4650620B2 (en) | 2011-03-16 |
Family
ID=35326379
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005068554A Expired - Fee Related JP4650620B2 (en) | 2004-03-12 | 2005-03-11 | Measuring device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4650620B2 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012111173A1 (en) | 2011-02-15 | 2012-08-23 | オムロン株式会社 | Image processing apparatus and image processing system |
| EP3282220A1 (en) | 2016-08-09 | 2018-02-14 | Omron Corporation | Information processing system, information processing device, workpiece position identifying method, and workpiece position identifying program |
| EP3282219A1 (en) | 2016-08-09 | 2018-02-14 | Omron Corporation | Information processing system, information processing device, workpiece position identifying method, and workpiece position identifying program |
| JP2018097445A (en) * | 2016-12-09 | 2018-06-21 | 株式会社東京精密 | Measurement system |
| JP2021036469A (en) * | 2020-11-20 | 2021-03-04 | 株式会社東京精密 | Measurement system and data transmission method |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10221193A (en) * | 1997-02-03 | 1998-08-21 | Nitto Seiko Co Ltd | Gas pressure totalizing system, gas pressure measuring device used therefor, and totalizing device |
| JP2002253516A (en) * | 2001-03-06 | 2002-09-10 | Matsushita Electric Ind Co Ltd | Data processing device for health support services |
-
2005
- 2005-03-11 JP JP2005068554A patent/JP4650620B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10221193A (en) * | 1997-02-03 | 1998-08-21 | Nitto Seiko Co Ltd | Gas pressure totalizing system, gas pressure measuring device used therefor, and totalizing device |
| JP2002253516A (en) * | 2001-03-06 | 2002-09-10 | Matsushita Electric Ind Co Ltd | Data processing device for health support services |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012111173A1 (en) | 2011-02-15 | 2012-08-23 | オムロン株式会社 | Image processing apparatus and image processing system |
| US9741108B2 (en) | 2011-02-15 | 2017-08-22 | Omron Corporation | Image processing apparatus and image processing system for conveyor tracking |
| EP3282220A1 (en) | 2016-08-09 | 2018-02-14 | Omron Corporation | Information processing system, information processing device, workpiece position identifying method, and workpiece position identifying program |
| EP3282219A1 (en) | 2016-08-09 | 2018-02-14 | Omron Corporation | Information processing system, information processing device, workpiece position identifying method, and workpiece position identifying program |
| US10155317B2 (en) | 2016-08-09 | 2018-12-18 | Omron Corporation | Information processing system, information processing device, workpiece position identifying method, and workpiece position identifying program |
| JP2018097445A (en) * | 2016-12-09 | 2018-06-21 | 株式会社東京精密 | Measurement system |
| JP2021036469A (en) * | 2020-11-20 | 2021-03-04 | 株式会社東京精密 | Measurement system and data transmission method |
| JP7000538B2 (en) | 2020-11-20 | 2022-01-19 | 株式会社東京精密 | Measurement system and data transmission method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP4650620B2 (en) | 2011-03-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9170095B1 (en) | Distance detection device and method including dynamically adjusted frame rate | |
| US20180052452A1 (en) | Operating state acquisition apparatus, production management system, and production management method for manufacturing line | |
| EP3890302B1 (en) | Information processing apparatus, information processing system, device for position/attitude acquisition, and device information acquisition method | |
| EP2363736B1 (en) | Photoelectric sensor and method for aiding checking of threshold | |
| JP4650620B2 (en) | Measuring device | |
| KR102522688B1 (en) | Battery Residual Value Determination System | |
| EP1569347A1 (en) | Encoder and control apparatus for motor | |
| JP2008033532A (en) | Method and apparatus for detecting abnormality in equipment provided with movable part | |
| KR102403252B1 (en) | Grip-type blood pressure measuring device and method for operating thereof | |
| US7337082B2 (en) | Digital measurement instrument for acquiring measurement and time values | |
| KR20180008748A (en) | Method and apparatus for sensor synchronization | |
| EP3732500B1 (en) | Optical ranging system having multi-mode operation using short and long pulses | |
| JP4139226B2 (en) | Method for operating a position measuring device and a position measuring device suitable for this method | |
| JP2009033861A (en) | Power supply sequence measuring apparatus and power supply sequence measuring method | |
| JP2013011566A (en) | Displacement sensor system, sensor controller, and display control program | |
| CN108994770B (en) | Electric screwdriver control method and device | |
| CN114072044A (en) | Alarm system and alarm method | |
| JP6417594B2 (en) | Biological information measuring device | |
| JP7110845B2 (en) | Information processing device and information processing method | |
| CN112219174B (en) | Method for automatically generating a signed signature | |
| JP2022180010A5 (en) | ||
| JP2007278743A (en) | Ranging device | |
| JP2009156790A (en) | Displacement sensor | |
| KR20180089423A (en) | Method and apparatus for detecting impulse wrench rotation | |
| KR102049291B1 (en) | Measurement system, control apparatus, measurement method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20071112 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101101 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20101117 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20101130 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4650620 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131224 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |