Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6958471B2 - Control device and control method - Google Patents
[go: Go Back, main page]

JP6958471B2 - Control device and control method - Google Patents

Control device and control method Download PDF

Info

Publication number
JP6958471B2
JP6958471B2 JP2018081788A JP2018081788A JP6958471B2 JP 6958471 B2 JP6958471 B2 JP 6958471B2 JP 2018081788 A JP2018081788 A JP 2018081788A JP 2018081788 A JP2018081788 A JP 2018081788A JP 6958471 B2 JP6958471 B2 JP 6958471B2
Authority
JP
Japan
Prior art keywords
time
signal
comparison
target signal
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018081788A
Other languages
Japanese (ja)
Other versions
JP2019190913A (en
Inventor
一樹 久米
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2018081788A priority Critical patent/JP6958471B2/en
Priority to PCT/JP2019/015239 priority patent/WO2019203033A1/en
Publication of JP2019190913A publication Critical patent/JP2019190913A/en
Application granted granted Critical
Publication of JP6958471B2 publication Critical patent/JP6958471B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/20Cathode-ray oscilloscopes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Description

本発明は、制御装置及び制御方法に関する。 The present invention relates to a control device and a control method.

センサやモータ等の機器から出力される信号を用いることによって種々の処理を行う装置が提案されている。例えば、特許文献1には、サンプリングによって得られた信号波形と参照波形とを比較した結果に基づき測定対象の物体の良否を判定する技術が開示されている。 Devices that perform various processes by using signals output from devices such as sensors and motors have been proposed. For example, Patent Document 1 discloses a technique for determining the quality of an object to be measured based on the result of comparing a signal waveform obtained by sampling with a reference waveform.

特開2012−196250号公報Japanese Unexamined Patent Publication No. 2012-196250

このような処理を行う場合、センサやモータ等の機器から出力される時系列の信号の中から、実際の判定処理に用いられる時間区間の信号(以下「対象信号」という。)を取得する必要がある。しかしながら、取得される対象信号(例えば上記信号波形)と、比較対象となる信号(例えば上記参照波形)とに時間方向のずれが生じる場合がある。このような場合、実際には良と判定されるべき対象信号が、時間方向のずれにより否と判定されてしまうおそれがある。逆に、実際には否と判定されるべき対象信号が良と判定されてしまうおそれもある。また、このような判定結果は、時間方向のずれにより生じるだけでなく、測定対象の物体が正常に測定されていない場合に得られた信号値のずれにより生じる場合もある。このような問題は、対象信号を他の信号と比較する場合に限定された問題ではなく、時間又は信号値に応じて変化する条件(以下「比較条件」という。)と対象信号とを比較する場合全般に生じうる問題である。このように、対象信号と比較条件とのずれにより、比較処理の精度が変わってしまう場合があった。 When performing such processing, it is necessary to acquire a time interval signal (hereinafter referred to as "target signal") used for actual determination processing from time-series signals output from devices such as sensors and motors. There is. However, there may be a time lag between the acquired target signal (for example, the signal waveform) and the signal to be compared (for example, the reference waveform). In such a case, the target signal that should actually be determined to be good may be determined to be negative due to a deviation in the time direction. On the contrary, there is a possibility that the target signal that should actually be determined to be negative may be determined to be good. Further, such a determination result may be caused not only by the deviation in the time direction but also by the deviation of the signal value obtained when the object to be measured is not measured normally. Such a problem is not limited to the case of comparing the target signal with other signals, but compares the target signal with a condition that changes according to time or a signal value (hereinafter referred to as "comparison condition"). This is a problem that can occur in all cases. As described above, the accuracy of the comparison processing may change due to the deviation between the target signal and the comparison condition.

本発明は上記の点に鑑みてなされたものであり、対象信号と比較条件とにずれが生じていた場合であっても、より高い精度で比較を行うことができる制御装置及び制御方法を提供することを目的としている。 The present invention has been made in view of the above points, and provides a control device and a control method capable of performing comparison with higher accuracy even when there is a discrepancy between the target signal and the comparison conditions. The purpose is to do.

本発明の一態様は、機器から出力される時系列の信号の時間変化を示す情報を記録する信号情報記録部と、予め定められた比較条件の時間変化を示す情報を記憶する比較条件記憶部と、前記信号情報記録部に記録された前記信号の時間変化と、前記比較条件記憶部に記憶されている前記比較条件の時間変化と、のいずれか一方又は双方を、時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる変更部と、前記変更部によって拡大又は縮小された後の時間変化を用いて前記信号と前記比較条件とを比較する比較部と、を備える制御装置である。 One aspect of the present invention is a signal information recording unit that records information indicating a time change of a time-series signal output from an apparatus, and a comparison condition storage unit that stores information indicating a time change of predetermined comparison conditions. And, one or both of the time change of the signal recorded in the signal information recording unit and the time change of the comparison condition stored in the comparison condition storage unit are deviated in the time axis direction. A control device including a changing unit that expands or contracts in the time axis direction so as to be smaller, and a comparison unit that compares the signal with the comparison condition using the time change after being expanded or contracted by the changing unit. Is.

本発明の一態様は、上記の制御装置であって、前記変更部は、前記比較条件において予め定められている複数の特徴部分に応じた各時刻と、前記信号の時間変化における複数の特徴部分に応じた各時刻と、が略一致するように拡大又は縮小を行う。 One aspect of the present invention is the control device, wherein the change unit has each time corresponding to a plurality of feature portions predetermined in the comparison condition, and a plurality of feature portions in a time change of the signal. Enlargement or reduction is performed so that each time according to the above is substantially the same.

本発明の一態様は、機器から出力される時系列の信号の時間変化を示す情報を記録する信号情報記録部と、予め定められた比較条件の時間変化を示す情報を記憶する比較条件記憶部と、を備える装置が、前記信号情報記録部に記録された前記信号の時間変化と、前記比較条件記憶部に記憶されている前記比較条件の時間変化と、のいずれか一方又は双方を、時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる変更ステップと、前記変更部によって拡大又は縮小された後の時間変化を用いて前記信号と前記比較条件とを比較する比較ステップと、を実行する制御方法である。 One aspect of the present invention is a signal information recording unit that records information indicating a time change of a time-series signal output from an apparatus, and a comparison condition storage unit that stores information indicating a time change of predetermined comparison conditions. A device comprising A change step of expanding or contracting in the time axis direction so that the deviation in the axial direction becomes small, and a comparison step of comparing the signal with the comparison condition using the time change after being expanded or contracted by the changing unit. , Is a control method to execute.

本発明によれば、対象信号と比較条件とにずれが生じていた場合であっても、より高い精度で比較を行うことができる。 According to the present invention, even if there is a discrepancy between the target signal and the comparison conditions, the comparison can be performed with higher accuracy.

制御システム100の構成の具体例を示す図である。It is a figure which shows the specific example of the structure of the control system 100. 制御装置3の機能構成の実施形態の具体例を示すブロック図である。It is a block diagram which shows the specific example of the embodiment of the functional configuration of the control device 3. 第1実施形態における制御装置3の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the control device 3 in 1st Embodiment. 比較パターンの具体例を示す図である。It is a figure which shows the specific example of the comparison pattern. 対象信号の第1具体例を示す図である。It is a figure which shows the 1st specific example of a target signal. 比較パターンと、時間軸方向にシフトされていない対象信号とを同じ時間軸に並べて示した図である。It is the figure which showed the comparison pattern and the target signal which was not shifted in the time axis direction side by side on the same time axis. 比較パターンと、時間軸方向にシフトされた対象信号とを同じ時間軸に並べて示した図である。It is a figure which showed the comparison pattern and the target signal shifted in the time axis direction side by side on the same time axis. 対象信号の第2具体例を示す図である。It is a figure which shows the 2nd specific example of a target signal. 比較パターンと、信号値がシフトされていない対象信号とを同じ時間軸に並べて示した図である。It is a figure which showed the comparison pattern and the target signal which the signal value is not shifted side by side on the same time axis. 比較パターンと、信号値がシフトされた対象信号とを同じ時間軸に並べて示した図である。It is a figure which showed the comparison pattern and the target signal whose signal value was shifted side by side on the same time axis. 対象信号の第3具体例を示す図である。It is a figure which shows the 3rd specific example of a target signal. 比較パターンと、時間軸方向に拡大されていない対象信号とを同じ時間軸に並べて示した図である。It is a figure which showed the comparison pattern and the target signal which is not expanded in the time axis direction side by side on the same time axis. 比較パターンと、時間軸方向に拡大された対象信号とを同じ時間軸に並べて示した図である。It is the figure which showed the comparison pattern and the target signal enlarged in the time axis direction side by side on the same time axis. 制御システム100の変形例の構成を示す図である。It is a figure which shows the structure of the modification of the control system 100.

図1は、制御システム100の構成の具体例を示す図である。制御システム100は、第1機器11、第2機器12、AD変換装置2、制御装置3及び端末装置4を備える。 FIG. 1 is a diagram showing a specific example of the configuration of the control system 100. The control system 100 includes a first device 11, a second device 12, an AD conversion device 2, a control device 3, and a terminal device 4.

第1機器11は、温度センサや圧力センサ等の入力機器、又は、サーボモーター等の出力機器である。第1機器11は、入力機器である場合には、センシングを行った結果として得られる値を出力する。第1機器11は、出力機器である場合には、動作の内容や動作後の状態等を示す値を出力する。第1機器11は、AD変換装置2に対して接続される。第1機器11は、アナログ値を示す電気信号をAD変換装置2に対して出力する。 The first device 11 is an input device such as a temperature sensor or a pressure sensor, or an output device such as a servo motor. When the first device 11 is an input device, the first device 11 outputs a value obtained as a result of performing sensing. When the first device 11 is an output device, the first device 11 outputs a value indicating the content of the operation, the state after the operation, and the like. The first device 11 is connected to the AD conversion device 2. The first device 11 outputs an electric signal indicating an analog value to the AD conversion device 2.

第2機器12は、温度センサや圧力センサ等の入力機器、又は、サーボモーター等の出力機器である。第2機器12は、第1機器11とは異なる装置として構成される。例えば、第1機器11が測定対象の物体(以下「対象物体」という。)の表面形状を計測するために用いられる距離センサである場合には、第2機器12は搬送される対象物体の位置を検知する検知装置であってもよい。例えば、第1機器11が測定対象の空間(以下「対象空間」という。)の温度を計測するために用いられる温度センサである場合には、第2機器12は対象空間の照度を測定する装置であってもよいし、対象空間に存在する人を検知する装置であってもよい。例えば、第1機器11が搬送対象の物体(以下「搬送体」という。)を搬送するコンベアの駆動装置である場合には、第2機器12は搬送体の位置を検知する検知装置であってもよい。このように、第2機器12は、第1機器11がセンシング又は作用する対象と同一の対象又は関連する対象に対してセンシング又は作用する機器である。 The second device 12 is an input device such as a temperature sensor or a pressure sensor, or an output device such as a servo motor. The second device 12 is configured as a device different from the first device 11. For example, when the first device 11 is a distance sensor used for measuring the surface shape of an object to be measured (hereinafter referred to as "target object"), the second device 12 is the position of the target object to be conveyed. It may be a detection device that detects. For example, when the first device 11 is a temperature sensor used for measuring the temperature of the space to be measured (hereinafter referred to as "target space"), the second device 12 is a device for measuring the illuminance of the target space. It may be a device that detects a person existing in the target space. For example, when the first device 11 is a drive device for a conveyor that transports an object to be transported (hereinafter referred to as a “conveyor body”), the second device 12 is a detection device that detects the position of the transport body. May be good. As described above, the second device 12 is a device that senses or acts on the same object or a related object that the first device 11 senses or acts on.

AD変換装置2は、第1機器11に接続され、第1機器11から出力される時系列のアナログ信号を自装置に入力する。AD変換装置2は、アナログ信号をデジタル信号に変換し、変換したデジタル信号を制御装置3に出力する。 The AD conversion device 2 is connected to the first device 11 and inputs a time-series analog signal output from the first device 11 to its own device. The AD conversion device 2 converts an analog signal into a digital signal, and outputs the converted digital signal to the control device 3.

制御装置3は、情報処理装置を用いて構成される。制御装置3は、例えばPLC(Programmable Logic Controller)である。制御装置3は、AD変換装置2に接続され、AD変換装置2から順次出力される時系列のデジタル信号を自装置に入力する。制御装置3は、所定の条件(記録開始条件)が満たされた場合に、AD変換装置2から出力されたデジタル信号の記録動作を開始する。制御装置3は、所定の条件(記録終了条件)が満たされた場合に、AD変換装置2から出力されたデジタル信号の記録動作を終了する。制御装置3は、記録動作を開始してから終了するまでに入力されたデジタル信号を示す情報を対象信号の情報として内部メモリに記録する。制御装置3は、内部メモリに記録された対象信号と、予め設定されている比較条件とを比較する。制御装置3は、比較結果に応じて対象信号について判定を行う。制御装置3は、判定結果を内部メモリに記録してもよいし、他の装置に出力してもよい。 The control device 3 is configured by using an information processing device. The control device 3 is, for example, a PLC (Programmable Logic Controller). The control device 3 is connected to the AD conversion device 2 and inputs a time-series digital signal sequentially output from the AD conversion device 2 to its own device. The control device 3 starts the recording operation of the digital signal output from the AD conversion device 2 when a predetermined condition (recording start condition) is satisfied. The control device 3 ends the recording operation of the digital signal output from the AD conversion device 2 when a predetermined condition (recording end condition) is satisfied. The control device 3 records in the internal memory the information indicating the digital signal input from the start to the end of the recording operation as the information of the target signal. The control device 3 compares the target signal recorded in the internal memory with the preset comparison conditions. The control device 3 determines the target signal according to the comparison result. The control device 3 may record the determination result in the internal memory or output the determination result to another device.

端末装置4は、PC(Personal Computer)やワークステーション、スマートフォン、携帯電話、タブレット端末などの情報処理装置である。端末装置4は、制御装置3と通信可能に構成される。端末装置4は、制御システム100のユーザが制御装置3に対する各種操作を入力するために用いられる。 The terminal device 4 is an information processing device such as a PC (Personal Computer), a workstation, a smartphone, a mobile phone, or a tablet terminal. The terminal device 4 is configured to be able to communicate with the control device 3. The terminal device 4 is used by the user of the control system 100 to input various operations to the control device 3.

次に、AD変換装置2及び制御装置3の構成について詳細に説明する。まず、図1を参照して、各装置のハードウェア構成を説明する。 Next, the configurations of the AD conversion device 2 and the control device 3 will be described in detail. First, the hardware configuration of each device will be described with reference to FIG.

まず、AD変換装置2のハードウェア構成を説明する。AD変換装置2は、アナログ入力インタフェース21、AD変換器22、FPGA(Field Programmable Gate Array)23、ROM(Read Only Memory)24、プロセッサ25及び通信モジュール26を備える。 First, the hardware configuration of the AD conversion device 2 will be described. The AD converter 2 includes an analog input interface 21, an AD converter 22, an FPGA (Field Programmable Gate Array) 23, a ROM (Read Only Memory) 24, a processor 25, and a communication module 26.

アナログ入力インタフェース21は、アナログ信号の入力インタフェースである。アナログ入力インタフェース21は、第1機器11とAD変換装置2とを接続し、第1機器11から出力される時系列のアナログ信号をAD変換装置2に入力する。 The analog input interface 21 is an analog signal input interface. The analog input interface 21 connects the first device 11 and the AD conversion device 2, and inputs a time-series analog signal output from the first device 11 to the AD conversion device 2.

AD変換器22は、アナログ入力インタフェース21を介して入力されたアナログ信号をデジタル信号に変換する。具体的には、AD変換器22は、数マイクロ秒程度のサンプリング周期でアナログ信号をサンプリングし、サンプリングしたアナログ信号を所定の量子化レベルで量子化することによってデジタル信号に変換する。 The AD converter 22 converts an analog signal input via the analog input interface 21 into a digital signal. Specifically, the AD converter 22 samples an analog signal at a sampling period of about several microseconds, and converts the sampled analog signal into a digital signal by quantization at a predetermined quantization level.

FPGA23は、AD変換器22によって変換されたデジタル信号に対して演算処理を施す回路である。演算処理の具体例として、デジタルフィルタ処理やオフセット/スパン設定処理等がある。デジタルフィルタ処理の具体例としては、ローパスフィルタや移動平均を用いた平滑化の処理がある。演算処理が施されたデジタル信号は通信モジュール26を介して制御装置3に送信される。 The FPGA 23 is a circuit that performs arithmetic processing on the digital signal converted by the AD converter 22. Specific examples of arithmetic processing include digital filter processing, offset / span setting processing, and the like. Specific examples of digital filtering include smoothing using a low-pass filter and a moving average. The arithmetically processed digital signal is transmitted to the control device 3 via the communication module 26.

具体的には、AD変換装置2は、演算処理を行う回路としてFPGA23を構成するためのコンフィギュレーションデータを予めROM24に記憶している。FPGA23は、AD変換装置2の起動時にROM24から読み出されたコンフィギュレーションデータをプロセッサ25から取得し、取得したコンフィギュレーションデータに基づく論理回路の構成処理(一般にコンフィギュレーションと呼ばれる)を行うことにより、自身を演算処理を行う回路として構成する。 Specifically, the AD conversion device 2 stores in advance the configuration data for configuring the FPGA 23 as a circuit for performing arithmetic processing in the ROM 24. The FPGA 23 acquires the configuration data read from the ROM 24 at the time of starting the AD conversion device 2 from the processor 25, and performs a logic circuit configuration process (generally called a configuration) based on the acquired configuration data. It is configured as a circuit that performs arithmetic processing.

通信モジュール26は、AD変換装置2が制御装置3と通信するための通信インタフェースである。通信モジュール26は、制御装置3の第1通信モジュール31に接続され、FPGA23によって演算処理が施されたデジタル信号を制御装置3に送信する。 The communication module 26 is a communication interface for the AD conversion device 2 to communicate with the control device 3. The communication module 26 is connected to the first communication module 31 of the control device 3 and transmits a digital signal that has been subjected to arithmetic processing by the FPGA 23 to the control device 3.

続いて、制御装置3のハードウェア構成を説明する。制御装置3は、内部バス30によって接続された第1通信モジュール31、第2通信モジュール32、第3通信モジュール33、補助記憶装置34(比較条件記憶部の具体例)、バッファメモリ35、RAM(Random Access Memory)36及びプロセッサ37を備える。 Subsequently, the hardware configuration of the control device 3 will be described. The control device 3 includes a first communication module 31, a second communication module 32, a third communication module 33, an auxiliary storage device 34 (a specific example of a comparison condition storage unit), a buffer memory 35, and a RAM (RAM) connected by an internal bus 30. It includes a Random Access Memory) 36 and a processor 37.

第1通信モジュール31は、制御装置3がAD変換装置2と通信するための通信インタフェースである。第1通信モジュール31は、AD変換装置2の通信モジュール26に接続され、AD変換装置2から送信されるデジタル信号を受信する。第1通信モジュール31によって受信されたデジタル信号は、バッファメモリ35に格納される。 The first communication module 31 is a communication interface for the control device 3 to communicate with the AD conversion device 2. The first communication module 31 is connected to the communication module 26 of the AD conversion device 2 and receives a digital signal transmitted from the AD conversion device 2. The digital signal received by the first communication module 31 is stored in the buffer memory 35.

第2通信モジュール32は、制御装置3が端末装置4と通信するための通信インタフェースである。第2通信モジュール32は、端末装置4が備える通信インタフェースに接続され、端末装置4との間で各種情報の送受信を行う。 The second communication module 32 is a communication interface for the control device 3 to communicate with the terminal device 4. The second communication module 32 is connected to a communication interface included in the terminal device 4 and transmits / receives various information to / from the terminal device 4.

第3通信モジュール33は、制御装置3が第2機器12と通信するための通信インタフェースである。第3通信モジュール33は、第2機器12が備える通信インタフェースに接続され、第2機器12から送信される信号を受信する。第3通信モジュール33が受信する信号は、第2機器12又は不図示のAD変換装置によってデジタル信号に変換された信号である。第3通信モジュール33は、例えばEtherCAT(登録商標)等のネットワークのインタフェースであってもよい。 The third communication module 33 is a communication interface for the control device 3 to communicate with the second device 12. The third communication module 33 is connected to the communication interface included in the second device 12 and receives the signal transmitted from the second device 12. The signal received by the third communication module 33 is a signal converted into a digital signal by the second device 12 or an AD conversion device (not shown). The third communication module 33 may be a network interface such as EtherCAT (registered trademark).

補助記憶装置34は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。補助記憶装置34は、制御装置3の動作に必要な各種の設定情報や、制御装置3において取得又は生成される各種の情報を記憶する。 The auxiliary storage device 34 is configured by using a storage device such as a magnetic hard disk device or a semiconductor storage device. The auxiliary storage device 34 stores various setting information necessary for the operation of the control device 3 and various information acquired or generated by the control device 3.

バッファメモリ35は、第1通信モジュール31によってAD変換装置2から受信されたデジタル信号の値を記憶する。バッファメモリ35は、デジタル信号値の記憶と消去とを所定の動作周期ごとに繰り返し実行する。プロセッサ37は、この動作周期に同期してバッファメモリ35にアクセスすることで、バッファメモリ35に記憶されているデジタル信号値を読み出しRAM36(信号情報記録部の具体例)に記録することができる。 The buffer memory 35 stores the value of the digital signal received from the AD conversion device 2 by the first communication module 31. The buffer memory 35 repeatedly executes storage and erasure of digital signal values at predetermined operation cycles. By accessing the buffer memory 35 in synchronization with this operation cycle, the processor 37 can read out the digital signal value stored in the buffer memory 35 and record it in the RAM 36 (a specific example of the signal information recording unit).

RAM36及びプロセッサ37は、制御装置3の動作を実現する各種処理を実行する。具体的には、プロセッサ37は、補助記憶装置34に記憶されたプログラムをRAM36に読み込んで実行する。このプログラムの実行により、制御装置3は、図2に示す機能構成を有する装置として機能し、図2に示す各機能部の動作によってデジタル信号値の記録動作や比較動作等の処理を行う。 The RAM 36 and the processor 37 execute various processes for realizing the operation of the control device 3. Specifically, the processor 37 reads the program stored in the auxiliary storage device 34 into the RAM 36 and executes it. By executing this program, the control device 3 functions as a device having the functional configuration shown in FIG. 2, and performs processing such as a digital signal value recording operation and a comparison operation by the operation of each functional unit shown in FIG.

図2は、制御装置3の機能構成の実施形態の具体例を示すブロック図である。実施形態における制御装置3は、プロセッサ37がプログラムを実行することにより、記録部371、設定部372、決定部373、比較部375及び変更部376を備える装置として機能する。なお、制御装置3の各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA等のハードウェアを用いて実現されてもよい。プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。プログラムは、電気通信回線を介して送信されてもよい。 FIG. 2 is a block diagram showing a specific example of the embodiment of the functional configuration of the control device 3. The control device 3 in the embodiment functions as a device including a recording unit 371, a setting unit 372, a determination unit 373, a comparison unit 375, and a change unit 376 when the processor 37 executes a program. All or part of each function of the control device 3 may be realized by using hardware such as an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA. The program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a flexible disk, a magneto-optical disk, a portable medium such as a ROM or a CD-ROM, or a storage device such as a hard disk built in a computer system. The program may be transmitted over a telecommunication line.

変更部376は、対象信号の波形を時間軸方向にシフトするという変更処理を実行することによって、比較部375によって比較処理に用いられる信号波形を取得する。変更部376は、対象信号の波形の信号値をシフトするという変更処理を実行することによって、比較部375によって比較処理に用いられる信号波形を取得する。変更部376は、複数の時刻について、対象信号の波形の特徴部分の各時刻と、比較パターンにおいて特徴部分に相当する部分の各時刻とを一致させるように対象信号の波形を時間軸方向に拡大又は縮小するという変更処理を実行することによって、比較部375によって比較処理に用いられる信号波形を取得する。 The change unit 376 acquires the signal waveform used in the comparison process by the comparison unit 375 by executing the change process of shifting the waveform of the target signal in the time axis direction. The change unit 376 acquires the signal waveform used in the comparison process by the comparison unit 375 by executing the change process of shifting the signal value of the waveform of the target signal. The changing unit 376 expands the waveform of the target signal in the time axis direction so as to match each time of the characteristic portion of the waveform of the target signal with each time of the portion corresponding to the characteristic portion in the comparison pattern for a plurality of times. Alternatively, the signal waveform used in the comparison process is acquired by the comparison unit 375 by executing the change process of reducing the size.

変更部376は、補助記憶装置34に予め設定されている設定情報に含まれる変更条件に応じて、変更処理を実行する。変更条件は、対象信号の波形と、比較部375において対象信号と比較されるパターン(以下「比較パターン」という。)との時間軸方向のずれを補正するための条件である。変更条件は、例えば対象信号の波形の特徴部分の時刻と、比較パターンの特徴部分の時刻とを一致させるための条件である。特徴部分は、対象信号において1つ又は少数(例えば2つ又は3つ)しか生じ得ない特徴的な部分である。特徴部分の具体例として、変曲点、極大値、極小値、ゼロクロス点がある。特徴部分は、例えば信号開始タイミング又は信号終了タイミングを基準として所定の時間間隔の間に位置する変曲点、極大値、極小値又はゼロクロス点として定義されてもよい。特徴部分は、例えば信号開始タイミング以降においてn番目に表れた変曲点、極大値、極小値又はゼロクロス点として定義されてもよい。なお、nは1以上の整数である。 The change unit 376 executes the change process according to the change condition included in the setting information preset in the auxiliary storage device 34. The change condition is a condition for correcting the deviation in the time axis direction between the waveform of the target signal and the pattern compared with the target signal by the comparison unit 375 (hereinafter referred to as “comparison pattern”). The change condition is, for example, a condition for matching the time of the characteristic portion of the waveform of the target signal with the time of the characteristic portion of the comparison pattern. The characteristic portion is a characteristic portion in which only one or a small number (for example, two or three) can occur in the target signal. Specific examples of the characteristic part include an inflection point, a maximum value, a minimum value, and a zero cross point. The feature portion may be defined as an inflection point, a maximum value, a minimum value, or a zero cross point located during a predetermined time interval with respect to, for example, a signal start timing or a signal end timing. The feature portion may be defined as, for example, the nth inflection point, the maximum value, the minimum value, or the zero cross point that appears after the signal start timing. Note that n is an integer of 1 or more.

変更376は、対象信号の波形の特徴部分の時刻と、比較パターンにおいて特徴部分に相当する部分の時刻と、を一致させるように対象信号の波形を時間軸方向にシフトする。 Change 376 shifts the waveform of the target signal in the time axis direction so as to match the time of the characteristic portion of the waveform of the target signal with the time of the portion corresponding to the feature portion in the comparison pattern.

変更376は、対象信号の波形の特徴部分の信号値(以下「対象信号特徴値」という。)を、比較パターンにおいて特徴部分に相当する第1部分の信号値(以下「第1比較特徴値」という。)から、比較パターンにおいて特徴部分に相当する第2部分の信号値(以下「第2比較特徴値」という。)までの範囲に含めるように、対象信号の波形の信号値をシフトする。特徴値の個数は複数でもよい。 In the change 376, the signal value of the characteristic portion of the waveform of the target signal (hereinafter referred to as “target signal feature value”) is changed to the signal value of the first portion corresponding to the feature portion in the comparison pattern (hereinafter referred to as “first comparative feature value”). The signal value of the waveform of the target signal is shifted so as to be included in the range from () to the signal value of the second portion corresponding to the feature portion in the comparison pattern (hereinafter referred to as "second comparative feature value"). The number of feature values may be plural.

変更376は、対象信号の波形の複数の時刻について、対象信号の波形の特徴部分の各時刻と、比較パターンにおいて特徴部分に相当する部分の各時刻と、を一致させるように対象信号の波形を時間軸方向に拡大又は縮小する。対象信号の波形の第1時刻から第2時刻までの時間の拡大率又は縮小率と、対象信号の波形の第1時刻から第3時刻までの時間の拡大率又は縮小率とは、異なっていてもよい。対象信号の波形の第1時刻から第2時刻までの時間の拡大率又は縮小率と、対象信号の波形の第2時刻から第3時刻までの時間の拡大率又は縮小率とは、異なっていてもよい。 Change 376 changes the waveform of the target signal so that each time of the feature portion of the waveform of the target signal and each time of the portion corresponding to the feature portion in the comparison pattern match with respect to a plurality of times of the waveform of the target signal. Enlarge or reduce in the time axis direction. The enlargement or reduction rate of the time from the first time to the second time of the waveform of the target signal and the enlargement or reduction rate of the time from the first time to the third time of the waveform of the target signal are different. May be good. The enlargement or reduction rate of the time from the first time to the second time of the waveform of the target signal and the enlargement or reduction rate of the time from the second time to the third time of the waveform of the target signal are different. May be good.

変更376は、対象信号の波形を時間軸方向にシフトする変更処理と、対象信号の波形の信号値をシフトする変更処理と、対象信号の波形を時間軸方向に拡大又は縮小する変更処理とのうちの少なくとも二つを、互いに組み合わせてもよい。 The change 376 includes a change process for shifting the waveform of the target signal in the time axis direction, a change process for shifting the signal value of the waveform of the target signal, and a change process for expanding or contracting the waveform of the target signal in the time axis direction. At least two of them may be combined with each other.

比較部375は、変更部376によって変更処理が実行された対象信号と、補助記憶装置34に予め登録されている比較パターンと、を比較する。比較パターンは、対象信号の波形の各時刻における閾値を示す。比較パターンの具体例については後述する。 The comparison unit 375 compares the target signal whose change processing has been executed by the change unit 376 with the comparison pattern registered in advance in the auxiliary storage device 34. The comparison pattern shows the threshold value at each time of the waveform of the target signal. Specific examples of the comparison pattern will be described later.

図3は、実施形態における制御装置3の動作例を示すフローチャートである。図3に示すフローチャートは、制御装置3が比較処理を行う際の処理の流れを示す。 FIG. 3 is a flowchart showing an operation example of the control device 3 in the embodiment. The flowchart shown in FIG. 3 shows the flow of processing when the control device 3 performs comparison processing.

まず、補助記憶装置34に記憶されている記録開始条件及び記録終了条件に応じて記録部371が記録動作を実行する(ステップS201)。記録動作の実行によって対象信号がRAM36に記録される。変更部376は、補助記憶装置34に記憶されているシフト条件に応じて、対象信号における特徴部分を検出する(ステップS202)。変更ト部376は、検出された特徴部分に基づいて、対象信号をシフトする(ステップS203)。比較部375は、変更処理が実行された対象信号と、補助記憶装置34に記憶されている比較条件に応じた比較パターンとを比較する(ステップS204)。比較部375は、比較結果に応じて判定処理を行う。比較部375は、判定結果を出力する(ステップS205)。 First, the recording unit 371 executes a recording operation according to the recording start condition and the recording end condition stored in the auxiliary storage device 34 (step S201). The target signal is recorded in the RAM 36 by executing the recording operation. The change unit 376 detects a feature portion in the target signal according to the shift condition stored in the auxiliary storage device 34 (step S202). The modification unit 376 shifts the target signal based on the detected feature portion (step S203). The comparison unit 375 compares the target signal for which the change processing has been executed with the comparison pattern stored in the auxiliary storage device 34 according to the comparison conditions (step S204). The comparison unit 375 performs a determination process according to the comparison result. The comparison unit 375 outputs the determination result (step S205).

図4は、比較パターンの具体例を示す図である。比較パターンは、対象信号の判定結果に係る閾値の領域を示す。例えば、図4に示される比較パターンは、対象信号の各時刻における上限値を示す波形である上限波形81と、対象信号の各時刻における下限値を示す波形である下限波形82と、を含む。 FIG. 4 is a diagram showing a specific example of the comparison pattern. The comparison pattern indicates a threshold area related to the determination result of the target signal. For example, the comparison pattern shown in FIG. 4 includes an upper limit waveform 81, which is a waveform showing an upper limit value of the target signal at each time, and a lower limit waveform 82, which is a waveform showing a lower limit value of the target signal at each time.

比較パターンにおいて、少なくとも一つの特徴部分に応じた時刻が、特徴時刻として予め定義される。図4の例では、極大値に応じた時刻が、第1特徴時刻として予め定義される。各変曲点に応じた時刻が、各特徴時刻として予め定義される。 In the comparison pattern, the time corresponding to at least one feature portion is defined in advance as the feature time. In the example of FIG. 4, the time corresponding to the maximum value is defined in advance as the first feature time. The time corresponding to each inflection point is defined in advance as each feature time.

比較パターンにおいて、少なくとも一つの特徴部分に応じた値が、特徴値として予め定義される。図4の例では、上限波形81の極大値に応じた値が、第1上限波形特徴値として予め定義される。上限波形81の各変曲点に応じた値が、第1上限波形特徴値以外の各上限波形特徴値として予め定義される。下限波形82の極大値に応じた値が、第1下限波形特徴値として予め定義される。下限波形82の各変曲点に応じた値が、第2下限波形特徴値以外の各下限波形特徴値として予め定義される。 In the comparison pattern, a value corresponding to at least one feature portion is defined in advance as a feature value. In the example of FIG. 4, a value corresponding to the maximum value of the upper limit waveform 81 is defined in advance as the first upper limit waveform feature value. A value corresponding to each inflection point of the upper limit waveform 81 is defined in advance as each upper limit waveform feature value other than the first upper limit waveform feature value. A value corresponding to the maximum value of the lower limit waveform 82 is defined in advance as the first lower limit waveform feature value. A value corresponding to each inflection point of the lower limit waveform 82 is defined in advance as each lower limit waveform feature value other than the second lower limit waveform feature value.

図5は、対象信号の具体例を示す図である。図5において、波形83が対象信号の波形を示す。
図6は、比較パターンと、変更部376によってシフトされていない対象信号とを同じ時間軸に並べて示した図である。図6に示される比較パターンは、図4に示されている比較パターンである。図6に示される対象信号は、図5に示されている対象信号である。図6に示されるように、対象信号において特徴部分が現れる時刻T1と、比較パターンにおいて特徴部分が現れる時刻T2と、には時間のずれが生じている。このずれにより、比較パターンと比較される対象信号の値が、理想的な値ではなくなっている。例えば、比較パターンにおける時刻T2と比較される対象信号の値(時刻T2における信号の値)は、下限波形82よりも低い。そのため、図6の例では対象信号の値は、上限波形81と下限波形82との間に位置しておらず、条件を満たしていないと判定されてしまう。
FIG. 5 is a diagram showing a specific example of the target signal. In FIG. 5, the waveform 83 shows the waveform of the target signal.
FIG. 6 is a diagram showing the comparison pattern and the target signal not shifted by the change unit 376 side by side on the same time axis. The comparison pattern shown in FIG. 6 is the comparison pattern shown in FIG. The target signal shown in FIG. 6 is the target signal shown in FIG. As shown in FIG. 6, there is a time lag between the time T1 at which the feature portion appears in the target signal and the time T2 at which the feature portion appears in the comparison pattern. Due to this deviation, the value of the target signal to be compared with the comparison pattern is not an ideal value. For example, the value of the target signal to be compared with the time T2 in the comparison pattern (the value of the signal at the time T2) is lower than the lower limit waveform 82. Therefore, in the example of FIG. 6, the value of the target signal is not located between the upper limit waveform 81 and the lower limit waveform 82, and it is determined that the condition is not satisfied.

図7は、比較パターンと、変更部376によってシフトされた対象信号とを同じ時間軸に並べて示した図である。変更部376は、対象信号の波形において、予め定義された条件を満たす特徴部分を検出する。そして、変更部376は、検出された特徴部分に応じた時刻を特徴時刻として検出し、対象信号をシフトする。図7では、対象信号の特徴時刻と比較パターンの特徴時刻とが一致するように、対象信号が時間軸方向にシフトされている。 FIG. 7 is a diagram showing the comparison pattern and the target signal shifted by the change unit 376 side by side on the same time axis. The change unit 376 detects a feature portion of the waveform of the target signal that satisfies a predetermined condition. Then, the change unit 376 detects the time corresponding to the detected feature portion as the feature time, and shifts the target signal. In FIG. 7, the target signal is shifted in the time axis direction so that the feature time of the target signal and the feature time of the comparison pattern coincide with each other.

変更部376は、所定の位置を搬送体が通過した時刻に応じて、対象信号の時間軸方向へのシフト量を変更してもよい。例えば、変更部376は、所定の位置を搬送体が通過した時刻が遅いほど、対象信号の時間軸方向へのシフト量を多くしてもよい。 The changing unit 376 may change the shift amount of the target signal in the time axis direction according to the time when the carrier passes the predetermined position. For example, the changing unit 376 may increase the amount of shift of the target signal in the time axis direction as the time when the carrier passes the predetermined position is later.

比較部375は、このようにシフトされた後の対象信号と比較パターンとを比較する。例えば、図7の例では、比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置しているか否か比較する。比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置している場合に、対象信号が正しい対象信号であると判定してもよい。例えば、対象信号が得られた物体が良品であると判定されてもよい。 The comparison unit 375 compares the target signal after being shifted in this way with the comparison pattern. For example, in the example of FIG. 7, the comparison unit 375 compares whether or not the signal value of the target signal is located between the upper limit value and the lower limit value at each time. The comparison unit 375 may determine that the target signal is the correct target signal when the signal value of the target signal is located between the upper limit value and the lower limit value at each time. For example, the object from which the target signal is obtained may be determined to be a non-defective product.

このように構成された実施形態における制御装置3では、対象信号と比較条件との特徴部分の出現時刻が一致するように、対象信号がシフトされる。そのため、対象信号と比較条件との時間軸方向のずれを小さくすることができる。そのため、より高い精度で比較を行うことが可能となる。特に対象信号や比較条件が時間軸方向で急峻に変化する場合には、時間軸方向のわずかなずれによって比較結果が大きく変わってしまうおそれがある。しかしながら、実施形態における制御装置3では、上述したように時間軸方向のずれを小さくすることができるため、たとえ対象信号や比較条件が時間軸方向で急峻に変化する場合であっても、より高い精度で比較を行うことが可能となる。 In the control device 3 according to the embodiment configured in this way, the target signal is shifted so that the appearance times of the feature portions of the target signal and the comparison condition match. Therefore, the deviation between the target signal and the comparison condition in the time axis direction can be reduced. Therefore, it is possible to perform comparison with higher accuracy. In particular, when the target signal or the comparison condition changes sharply in the time axis direction, the comparison result may change significantly due to a slight deviation in the time axis direction. However, in the control device 3 of the embodiment, since the deviation in the time axis direction can be reduced as described above, it is higher even when the target signal and the comparison condition change sharply in the time axis direction. It is possible to make comparisons with accuracy.

図8は、対象信号の第2具体例を示す図である。図8において、波形83が対象信号の波形を示す。図8における対象信号は、図5における対象信号と比較して、信号値が大きくなる方向にシフトしている。 FIG. 8 is a diagram showing a second specific example of the target signal. In FIG. 8, the waveform 83 shows the waveform of the target signal. The target signal in FIG. 8 is shifted in a direction in which the signal value becomes larger than that of the target signal in FIG.

図9は、比較パターンと、変更部376によって信号値がシフトされていない対象信号とを同じ時間軸に並べて示した図である。図9に示される比較パターンは、図4に示されている比較パターンである。図9に示される対象信号は、図8に示されている対象信号である。図9に示されるように、対象信号において特徴部分が現れている第1特徴値は、比較パターンの上限波形81において特徴部分が現れている第1上限波形特徴値から、比較パターンの下限波形82において特徴部分が現れている第1下限波形特徴値までの範囲には含まれていない。このため、比較パターンと比較される対象信号の値が、理想的な値ではなくなっている。例えば、比較パターンの上限波形81における第1上限波形特徴値と比較される対象信号の第1特徴値は、上限波形81よりも大きい。そのため、図9の例では対象信号の第1特徴値は、上限波形81の第1上限波形特徴値と下限波形82の第1下限波形特徴値との間に位置しておらず、条件を満たしていないと判定されてしまう。 FIG. 9 is a diagram showing a comparison pattern and a target signal whose signal value has not been shifted by the change unit 376 arranged side by side on the same time axis. The comparison pattern shown in FIG. 9 is the comparison pattern shown in FIG. The target signal shown in FIG. 9 is the target signal shown in FIG. As shown in FIG. 9, the first feature value in which the feature portion appears in the target signal is the lower limit waveform 82 of the comparison pattern from the first upper limit waveform feature value in which the feature portion appears in the upper limit waveform 81 of the comparison pattern. It is not included in the range up to the first lower limit waveform feature value where the feature portion appears in. Therefore, the value of the target signal to be compared with the comparison pattern is not an ideal value. For example, the first feature value of the target signal to be compared with the first upper limit waveform feature value in the upper limit waveform 81 of the comparison pattern is larger than the upper limit waveform 81. Therefore, in the example of FIG. 9, the first feature value of the target signal is not located between the first upper limit waveform feature value of the upper limit waveform 81 and the first lower limit waveform feature value of the lower limit waveform 82, and satisfies the condition. It will be judged that it is not.

図10は、比較パターンと、変更部376によって信号値がシフトされた対象信号とを同じ時間軸に並べて示した図である。変更部376は、対象信号の波形において、予め定義された条件を満たす特徴部分を検出する。そして、変更部376は、検出された特徴部分に応じた信号値を特徴値として検出し、対象信号の信号値をシフトする。図10では、対象信号の第1特徴値が、上限波形81の第1上限波形特徴値と下限波形82の第1下限波形特徴値との間に位置するように、対象信号の信号値がシフトされている。 FIG. 10 is a diagram showing a comparison pattern and a target signal whose signal value has been shifted by the change unit 376 arranged side by side on the same time axis. The change unit 376 detects a feature portion of the waveform of the target signal that satisfies a predetermined condition. Then, the changing unit 376 detects the signal value corresponding to the detected feature portion as the feature value, and shifts the signal value of the target signal. In FIG. 10, the signal value of the target signal is shifted so that the first feature value of the target signal is located between the first upper limit waveform feature value of the upper limit waveform 81 and the first lower limit waveform feature value of the lower limit waveform 82. Has been done.

変更部376は、搬送体を成型するプレスの圧力に応じて、対象信号の値が変化する方向のシフト量を変更してもよい。例えば、変更部376は、搬送体を成型するプレスの圧力が大きいほど、対象信号の値が変化する方向のシフト量を多くしてもよい。 The changing unit 376 may change the shift amount in the direction in which the value of the target signal changes according to the pressure of the press that forms the carrier. For example, the changing unit 376 may increase the shift amount in the direction in which the value of the target signal changes as the pressure of the press for molding the carrier increases.

比較部375は、このようにシフトされた後の対象信号と比較パターンとを比較する。例えば、図10の例では、比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置しているか否か比較する。比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置している場合に、対象信号が正しい対象信号であると判定してもよい。例えば、対象信号が得られた物体が良品であると判定されてもよい。 The comparison unit 375 compares the target signal after being shifted in this way with the comparison pattern. For example, in the example of FIG. 10, the comparison unit 375 compares whether or not the signal value of the target signal is located between the upper limit value and the lower limit value at each time. The comparison unit 375 may determine that the target signal is the correct target signal when the signal value of the target signal is located between the upper limit value and the lower limit value at each time. For example, the object from which the target signal is obtained may be determined to be a non-defective product.

このように構成された実施形態における制御装置3では、対象信号の特徴部分が、上限波形81の特徴部分と下限波形82の特徴部分との間に位置するように、対象信号の信号値がシフトされる。そのため、対象信号と比較条件との信号値のずれを小さくすることができる。そのため、より高い精度で比較を行うことが可能となる。特に対象信号や比較条件が時間軸方向で急峻に変化する場合には、信号値のわずかなずれによって比較結果が大きく変わってしまうおそれがある。しかしながら、実施形態における制御装置3では、上述したように信号値のずれを小さくすることができるため、たとえ対象信号や比較条件の信号値にオフセットがある場合であっても、より高い精度で比較を行うことが可能となる。 In the control device 3 according to the embodiment configured as described above, the signal value of the target signal is shifted so that the feature portion of the target signal is located between the feature portion of the upper limit waveform 81 and the feature portion of the lower limit waveform 82. Will be done. Therefore, the deviation of the signal value between the target signal and the comparison condition can be reduced. Therefore, it is possible to perform comparison with higher accuracy. In particular, when the target signal or the comparison condition changes sharply in the time axis direction, the comparison result may change significantly due to a slight deviation of the signal value. However, in the control device 3 of the embodiment, since the deviation of the signal value can be reduced as described above, even if there is an offset in the target signal or the signal value of the comparison condition, the comparison is performed with higher accuracy. Can be done.

図11は、対象信号の第3具体例を示す図である。図11において、波形83が対象信号の波形を示す。図11における対象信号は、図5における対象信号と比較して、時間軸方向に縮小している。 FIG. 11 is a diagram showing a third specific example of the target signal. In FIG. 11, the waveform 83 shows the waveform of the target signal. The target signal in FIG. 11 is reduced in the time axis direction as compared with the target signal in FIG.

図12は、比較パターンと、変更部376によって時間軸方向に拡大されていない対象信号とを同じ時間軸に並べて示した図である。図12に示される比較パターンは、図4に示されている比較パターンである。図12に示される対象信号は、図11に示されている対象信号である。 FIG. 12 is a diagram showing the comparison pattern and the target signal not expanded in the time axis direction by the change unit 376 side by side on the same time axis. The comparison pattern shown in FIG. 12 is the comparison pattern shown in FIG. The target signal shown in FIG. 12 is the target signal shown in FIG.

図12に示されるように、対象信号において第1特徴部分が現れる第1特徴時刻と、比較パターンにおいて第1特徴部分が現れる第1特徴時刻とは一致している。図12に示されるように、対象信号において第2特徴部分が現れる時刻T3と、比較パターンにおいて第2特徴部分が現れる時刻T4との間には、時間のずれが生じている。対象信号において第3特徴部分が現れる時刻T5と、比較パターンにおいて第3特徴部分が現れる時刻T7との間には、時刻T3から時刻T4までの時間よりも長い時間のずれが生じてもよい。対象信号において第4特徴部分が現れる時刻T6と、比較パターンにおいて第4特徴部分が現れる時刻T8との間には、時刻T5から時刻T7までの時間よりも長い時間のずれが生じてもよい。対象信号において第5特徴部分が現れる時刻T9と、比較パターンにおいて第5特徴部分が現れる時刻T10との間には、時刻T6から時刻T8までの時間よりも長い時間のずれが生じてもよい。 As shown in FIG. 12, the first feature time when the first feature portion appears in the target signal and the first feature time when the first feature portion appears in the comparison pattern coincide with each other. As shown in FIG. 12, there is a time lag between the time T3 at which the second feature portion appears in the target signal and the time T4 at which the second feature portion appears in the comparison pattern. There may be a time lag longer than the time from time T3 to time T4 between the time T5 at which the third feature portion appears in the target signal and the time T7 at which the third feature portion appears in the comparison pattern. There may be a time lag longer than the time from time T5 to time T7 between the time T6 at which the fourth feature portion appears in the target signal and the time T8 at which the fourth feature portion appears in the comparison pattern. There may be a time lag longer than the time from time T6 to time T8 between the time T9 at which the fifth feature portion appears in the target signal and the time T10 at which the fifth feature portion appears in the comparison pattern.

これらのずれにより、比較パターンと比較される対象信号の値が、理想的な値ではなくなっている。例えば、比較パターンにおける時刻T6と比較される対象信号の値(時刻T6における信号値)は、下限波形82よりも低い。そのため、図12の例では対象信号の値は、上限波形81と下限波形82との間に位置しておらず、条件を満たしていないと判定されてしまう。 Due to these deviations, the value of the target signal to be compared with the comparison pattern is not an ideal value. For example, the value of the target signal to be compared with the time T6 in the comparison pattern (the signal value at the time T6) is lower than the lower limit waveform 82. Therefore, in the example of FIG. 12, the value of the target signal is not located between the upper limit waveform 81 and the lower limit waveform 82, and it is determined that the condition is not satisfied.

図13は、比較パターンと、変更部376によって時間軸方向に拡大された対象信号とを同じ時間軸に並べて示した図である。変更部376は、対象信号の波形において、予め定義された条件を満たす複数の特徴部分を検出する。そして、変更部376は、検出された複数の特徴部分に応じた各時刻を各特徴時刻として検出し、特徴時刻ごとに対象信号を時間軸方向にシフトする。すなわち、変更部376は、検出された複数の特徴部分に応じた各時刻を各特徴時刻として検出し、対象信号を時間軸方向に拡大又は縮小する。 FIG. 13 is a diagram showing the comparison pattern and the target signal enlarged in the time axis direction by the change unit 376 side by side on the same time axis. The change unit 376 detects a plurality of feature portions satisfying a predetermined condition in the waveform of the target signal. Then, the change unit 376 detects each time corresponding to the detected plurality of feature portions as each feature time, and shifts the target signal in the time axis direction for each feature time. That is, the changing unit 376 detects each time corresponding to the detected plurality of feature portions as each feature time, and expands or contracts the target signal in the time axis direction.

変更部376は、例えば、第1の位置から第2の位置までの搬送体の搬送時間に応じて、対象信号を時間軸方向に拡大又は縮小する倍率を変更してもよい。例えば、変更部376は、第1の位置から第2の位置までの搬送体の搬送時間が長くなるほど、対象信号の時間変化が遅いため、対象信号の波形が時間軸方向にのびているので、対象信号を時間軸方向に縮小する倍率を大きくしてもよい。 For example, the changing unit 376 may change the magnification for expanding or contracting the target signal in the time axis direction according to the transport time of the transport body from the first position to the second position. For example, in the changing unit 376, the longer the transport time of the carrier from the first position to the second position, the slower the time change of the target signal, so that the waveform of the target signal extends in the time axis direction. The magnification for reducing the signal in the time axis direction may be increased.

図13では、対象信号の特徴時刻と比較パターンの各特徴時刻とが一致するように、対象信号が時間軸方向にシフトされている。比較部375は、このようにシフトされた後の対象信号と比較パターンとを比較する。例えば、図7の例では、比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置しているか否か比較する。比較部375は、対象信号の信号値が各時刻において上限値及び下限値の間に位置している場合に、対象信号が正しい対象信号であると判定してもよい。例えば、対象信号が得られた物体が良品であると判定されてもよい。 In FIG. 13, the target signal is shifted in the time axis direction so that the feature time of the target signal and each feature time of the comparison pattern coincide with each other. The comparison unit 375 compares the target signal after being shifted in this way with the comparison pattern. For example, in the example of FIG. 7, the comparison unit 375 compares whether or not the signal value of the target signal is located between the upper limit value and the lower limit value at each time. The comparison unit 375 may determine that the target signal is the correct target signal when the signal value of the target signal is located between the upper limit value and the lower limit value at each time. For example, the object from which the target signal is obtained may be determined to be a non-defective product.

このように構成された実施形態における制御装置3では、対象信号と比較条件との複数の特徴部分の各出現時刻が一致するように、対象信号が時間軸方向にシフトされる。そのため、対象信号と比較条件との時間軸方向のずれを小さくすることができる。そのため、より高い精度で比較を行うことが可能となる。特に対象信号や比較条件が時間軸方向に揺れ(ジッタ)を有する場合には、時間軸方向のわずかなずれによって比較結果が大きく変わってしまうおそれがある。しかしながら、実施形態における制御装置3では、上述したように時間軸方向のずれを小さくすることができるため、たとえ対象信号や比較条件が時間軸方向に揺れを有する場合であっても、より高い精度で比較を行うことが可能となる。制御装置3は、例えば、搬送体の搬送スピードの揺らぎを吸収することができるため判定のロバスト性が高いので、判定結果の精度を向上させることができる。 In the control device 3 according to the embodiment configured in this way, the target signal is shifted in the time axis direction so that the appearance times of the plurality of feature portions of the target signal and the comparison condition match. Therefore, the deviation between the target signal and the comparison condition in the time axis direction can be reduced. Therefore, it is possible to perform comparison with higher accuracy. In particular, when the target signal or the comparison condition has fluctuation (jitter) in the time axis direction, the comparison result may change significantly due to a slight deviation in the time axis direction. However, in the control device 3 of the embodiment, since the deviation in the time axis direction can be reduced as described above, even if the target signal and the comparison condition have fluctuations in the time axis direction, the accuracy is higher. It is possible to make a comparison with. For example, since the control device 3 can absorb fluctuations in the transport speed of the transport body, the robustness of the determination is high, so that the accuracy of the determination result can be improved.

図14は、制御システム100の変形例の構成を示す図である。図14に示されるように、制御システム100において、タイミング入力機器13がAD変換装置2に接続されてもよい。タイミング入力機器13は、例えばタイミングセンサやメカスイッチである。タイミング入力機器13は、所定の領域において対象物体の存在を検知する。タイミング入力機器13は、検知結果を示すデジタル信号(オン信号又はオフ信号)をAD変換装置2に対して出力する。AD変換装置2は、タイミング入力機器13から出力されたデジタル信号を制御装置3に出力する。タイミング入力機器13が出力するデジタル信号は、制御装置3において、対象物体に関するデジタル信号の記録動作開始のタイミングを判定するために使用されてもよい。すなわち、制御装置3の決定部373は、タイミング入力機器13から出力されるデジタル信号に基づいて、記録動作を開始するタイミングや終了するタイミングを決定してもよい。 FIG. 14 is a diagram showing a configuration of a modified example of the control system 100. As shown in FIG. 14, in the control system 100, the timing input device 13 may be connected to the AD conversion device 2. The timing input device 13 is, for example, a timing sensor or a mechanical switch. The timing input device 13 detects the presence of the target object in a predetermined area. The timing input device 13 outputs a digital signal (on signal or off signal) indicating the detection result to the AD conversion device 2. The AD conversion device 2 outputs the digital signal output from the timing input device 13 to the control device 3. The digital signal output by the timing input device 13 may be used in the control device 3 to determine the timing of starting the recording operation of the digital signal relating to the target object. That is, the determination unit 373 of the control device 3 may determine the timing to start the recording operation and the timing to end it based on the digital signal output from the timing input device 13.

(変形例)
実施形態の制御装置3において、対象信号は記録部371によって記録されることによって取得される。しかし、制御装置3が対象信号を取得する方法は、記録部371による記録に限定される必要はない。例えば、制御装置3が第1通信モジュール31、第2通信モジュール32又は第3通信モジュール33のいずれかを介して他の装置から対象信号のデータを受信してもよい。例えば、AD変換装置2が対象信号を記録する機能を有している場合、制御装置3は第1通信モジュール31を介してAD変換装置2から対象信号のデータを受信することによって対象信号を取得してもよい。
(Modification example)
In the control device 3 of the embodiment, the target signal is acquired by being recorded by the recording unit 371. However, the method by which the control device 3 acquires the target signal does not have to be limited to recording by the recording unit 371. For example, the control device 3 may receive the data of the target signal from another device via any of the first communication module 31, the second communication module 32, or the third communication module 33. For example, when the AD conversion device 2 has a function of recording the target signal, the control device 3 acquires the target signal by receiving the data of the target signal from the AD conversion device 2 via the first communication module 31. You may.

実施形態において、対象信号に対して変更処理が実行されるのではなく、比較条件(例えば比較パターン)に対して変更処理が実行されてもよい。
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。
In the embodiment, the change process may be executed for the comparison condition (for example, the comparison pattern) instead of executing the change process for the target signal.
Although the embodiments of the present invention have been described in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and includes designs and the like within a range that does not deviate from the gist of the present invention.

100…制御システム、 11…第1機器、 12…第2機器、 13…タイミング入力機器、 2…AD(Analog to Digital)変換装置、 20…内部バス、 21…アナログ入力インタフェース、 22…変換器、 23…FPGA(Field Programmable Gate Array)、 24…ROM(Read Only Memory)、 25…プロセッサ、 26…通信モジュール、 3…制御装置、 30…内部バス、 31…第1通信モジュール、 32…第2通信モジュール、 33…第3通信モジュール、 34…補助記憶装置、 35…バッファメモリ、 36…RAM(Random Access Memory)、 37…プロセッサ、 371…記録部、 372…設定部、 373…決定部、 374…領域決定部、 375…比較部、 376…変更部、 4…端末装置 100 ... Control system, 11 ... 1st device, 12 ... 2nd device, 13 ... Timing input device, 2 ... AD (Analog to Digital) converter, 20 ... Internal bus, 21 ... Analog input interface, 22 ... Converter, 23 ... FPGA (Field Programmable Gate Array), 24 ... ROM (Read Only Memory), 25 ... Processor, 26 ... Communication module, 3 ... Control device, 30 ... Internal bus, 31 ... 1st communication module, 32 ... 2nd communication Module, 33 ... 3rd communication module, 34 ... Auxiliary storage device, 35 ... Buffer memory, 36 ... RAM (Random Access Memory), 37 ... Processor, 371 ... Recording unit, 372 ... Setting unit, 373 ... Determining unit, 374 ... Area determination unit, 375 ... Comparison unit, 376 ... Change unit, 4 ... Terminal device

Claims (3)

機器から出力される時系列の信号の時間変化を示す情報を記録する信号情報記録部と、
予め定められた比較条件の時間変化を示す情報を記憶する比較条件記憶部と、
前記信号情報記録部に記録された前記信号の時間変化と、前記比較条件記憶部に記憶されている前記比較条件の時間変化と、のいずれか一方又は双方を、時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる変更部と、
前記変更部によって拡大又は縮小された後の時間変化を用いて前記信号と前記比較条件とを比較する比較部と、
を備え
前記信号情報記録部に記録された前記信号の時間変化は、極大値、極小値、およびゼロクロス点のいずれかである第1特徴部分を少なくとも1つ含み、
前記比較条件記憶部に記憶されている前記比較条件の時間変化は、極大値、極小値、およびゼロクロス点のいずれかである第2特徴部分を少なくとも1つ含み、
前記変更部は、前記第1特徴部分と前記第2特徴部分との時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる制御装置。
A signal information recording unit that records information indicating the time change of time-series signals output from the device,
A comparison condition storage unit that stores information indicating the time change of predetermined comparison conditions, and a comparison condition storage unit.
The time axis deviation of either or both of the time change of the signal recorded in the signal information recording unit and the time change of the comparison condition stored in the comparison condition storage unit becomes small. A change part that expands or contracts in the time axis direction,
A comparison unit that compares the signal with the comparison condition using the time change after being enlarged or reduced by the change unit.
Equipped with a,
The time change of the signal recorded in the signal information recording unit includes at least one first feature portion which is any of a maximum value, a minimum value, and a zero cross point.
The time change of the comparison condition stored in the comparison condition storage unit includes at least one second feature portion which is any of a maximum value, a minimum value, and a zero cross point.
The changing unit, the first characteristic portion and the second characteristic portion and in the time axis direction deviation Ru controller is enlarged or reduced as the time axis direction becomes small.
前記変更部は、前記比較条件において予め定められている複数の特徴部分に応じた各時刻と、前記信号の時間変化における複数の特徴部分に応じた各時刻と、が略一致するように拡大又は縮小を行う、請求項1に記載の制御装置。 The changed portion is enlarged or expanded so that each time corresponding to a plurality of feature portions predetermined in the comparison condition and each time corresponding to a plurality of feature portions in the time change of the signal substantially coincide with each other. The control device according to claim 1, wherein the control device is reduced. 機器から出力される時系列の信号の時間変化を示す情報を記録する信号情報記録部と、予め定められた比較条件の時間変化を示す情報を記憶する比較条件記憶部と、を備える装置が、
前記信号情報記録部に記録された前記信号の時間変化と、前記比較条件記憶部に記憶されている前記比較条件の時間変化と、のいずれか一方又は双方を、時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる変更ステップと、
前記変更ステップにおいて拡大又は縮小された後の時間変化を用いて前記信号と前記比較条件とを比較する比較ステップと、
を実行し、
前記信号情報記録部に記録された前記信号の時間変化は、極大値、極小値、およびゼロクロス点のいずれかである第1特徴部分を少なくとも1つ含み、
前記比較条件記憶部に記憶されている前記比較条件の時間変化は、極大値、極小値、およびゼロクロス点のいずれかである第2特徴部分を少なくとも1つ含み、
前記変更ステップは、前記第1特徴部分と前記第2特徴部分との時間軸方向のずれが小さくなるように時間軸方向に拡大又は縮小させる制御方法。
A device including a signal information recording unit that records information indicating a time change of a time-series signal output from an apparatus and a comparison condition storage unit that stores information indicating a time change of a predetermined comparison condition.
The time axis deviation of either or both of the time change of the signal recorded in the signal information recording unit and the time change of the comparison condition stored in the comparison condition storage unit becomes small. With the change step of expanding or contracting in the time axis direction,
A comparison step of comparing the signal with the comparison condition using the time change after being enlarged or reduced in the change step.
The execution,
The time change of the signal recorded in the signal information recording unit includes at least one first feature portion which is any of a maximum value, a minimum value, and a zero cross point.
The time change of the comparison condition stored in the comparison condition storage unit includes at least one second feature portion which is any of a maximum value, a minimum value, and a zero cross point.
The changing step, the first characteristic portion and the second characteristic portion with enlarged or reduced so Ru control method in the time axis direction as shift in the time axis direction is small.
JP2018081788A 2018-04-20 2018-04-20 Control device and control method Active JP6958471B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018081788A JP6958471B2 (en) 2018-04-20 2018-04-20 Control device and control method
PCT/JP2019/015239 WO2019203033A1 (en) 2018-04-20 2019-04-08 Control device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018081788A JP6958471B2 (en) 2018-04-20 2018-04-20 Control device and control method

Publications (2)

Publication Number Publication Date
JP2019190913A JP2019190913A (en) 2019-10-31
JP6958471B2 true JP6958471B2 (en) 2021-11-02

Family

ID=68239693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018081788A Active JP6958471B2 (en) 2018-04-20 2018-04-20 Control device and control method

Country Status (2)

Country Link
JP (1) JP6958471B2 (en)
WO (1) WO2019203033A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5525144B2 (en) * 2008-06-23 2014-06-18 日置電機株式会社 Waveform determination apparatus and time axis position adjustment method in the waveform determination apparatus
JP5307848B2 (en) * 2011-04-27 2013-10-02 三菱電機株式会社 Inspection device
JP2013007565A (en) * 2011-05-20 2013-01-10 Hioki Ee Corp Waveform determination device and waveform determination method
JP5661832B2 (en) * 2013-02-26 2015-01-28 ファナック株式会社 Waveform display device with search function according to setting conditions

Also Published As

Publication number Publication date
WO2019203033A1 (en) 2019-10-24
JP2019190913A (en) 2019-10-31

Similar Documents

Publication Publication Date Title
US9292125B2 (en) Digital filter, touch sense device including the digital filter, and method for performing the digital filtering
US20130293403A1 (en) Adc, ic including the same, and adc method thereof
CN114706448A (en) Signal sampling method, signal sampling device and storage medium
US11126164B2 (en) Control apparatus and control method
JP6958471B2 (en) Control device and control method
JP6973130B2 (en) Control device and control method
US20190236048A1 (en) Control apparatus and control method
CN105807980A (en) Scanning method of touch panel
JP2008182508A (en) A / D converter
CN111065897A (en) Recording device and recording method
CN101562691A (en) Image processing device and method
JPWO2006059414A1 (en) Filter adjustment circuit
JP7419773B2 (en) Image processing device
JP2004294110A (en) Offset voltage correction device
JP4578011B2 (en) Tuning circuit
CN109787572B (en) Switched capacitor subtraction device and image sensor with same
US11199910B2 (en) Optical navigation device, optical navigation method and image processing system
JP5962573B2 (en) Electronic control unit
KR101093803B1 (en) Touch sensing device
JP5061587B2 (en) Semiconductor integrated circuit
JP2008523712A (en) Data compression method
JP2014222162A (en) Sensor circuit and sensor
JP2014201003A5 (en) Control device and transfer control method thereof
JP2012227642A (en) A/d converter and method of correcting the same
CN110658497A (en) Radar signal generation method and device and radar

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180607

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20180905

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210302

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210416

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: 20210907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210920

R150 Certificate of patent or registration of utility model

Ref document number: 6958471

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150