JPH11304852A - Current detecting device - Google Patents

Current detecting device

Info

Publication number
JPH11304852A
JPH11304852A JP10107234A JP10723498A JPH11304852A JP H11304852 A JPH11304852 A JP H11304852A JP 10107234 A JP10107234 A JP 10107234A JP 10723498 A JP10723498 A JP 10723498A JP H11304852 A JPH11304852 A JP H11304852A
Authority
JP
Japan
Prior art keywords
frequency
current
sampling
channel
cpu
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.)
Withdrawn
Application number
JP10107234A
Other languages
Japanese (ja)
Inventor
Seiji Takeda
成治 竹田
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.)
Micron Co Ltd
Original Assignee
Micron Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Micron Co Ltd filed Critical Micron Co Ltd
Priority to JP10107234A priority Critical patent/JPH11304852A/en
Publication of JPH11304852A publication Critical patent/JPH11304852A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform high-speed sampling with satisfactory responsiveness by performing a sampling in a sampling period, corresponding to the frequency detected by a frequency detecting means for detecting the frequency of alternat ing current. SOLUTION: A CPU 55 lights the indicator of a corresponding channel in a channel/alarm indicator 60, each time when the time of the average value of a sampling data from a A/D 54 exceeding a set time for each channel to give an alarm, an increments the detecting frequency of the channel. Since this device is provided with the CPU 55 as a frequency detecting means for detecting the frequency of alternating current and the CPU 55 as a sampling means for performing sampling in the sampling period which corresponds to the detected frequency, a smoothing circuit is dispensed with to allow a high- speed sampling free of delays by smoothing with satisfactory responsiveness, and this device is applicable also to sampling and detecting of the alternating currents of a plurality of channels.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は交流電流をサンプリ
ングして検出する電流検出装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a current detecting device for sampling and detecting an alternating current.

【0002】[0002]

【従来の技術】従来、交流電流が設定電流値を越えたこ
とや、交流電流が設定電流値を設定時間以上にわたって
越えたことなどを検出する電流検出装置は、交流電流を
全波整流回路により全波整流して平滑回路により平滑す
ることで直流に変換した後に、マイクロコンピュータ
(以下CPUという)によりアナログ/デジタル変換部
でデジタル値に変換してサンプリングし、又は平滑回路
の平滑出力をアナログ/デジタル変換器でデジタル値に
変換してCPUでサンプリングし、そのサンプリング値
からCPUで交流電流が設定電流値を越えたこと、又は
交流電流が設定電流値を設定時間以上にわたって越えた
ことなどを検出していた。
2. Description of the Related Art Conventionally, a current detecting device for detecting that an alternating current has exceeded a set current value or that an alternating current has exceeded a set current value for a set time or more has been known. After full-wave rectification and smoothing by a smoothing circuit to convert to direct current, a microcomputer (hereinafter referred to as a CPU) converts the digital value to a digital value in an analog / digital conversion unit and samples it. It is converted to a digital value by a digital converter and sampled by the CPU. From the sampled value, it is detected by the CPU that the AC current exceeds the set current value or that the AC current exceeds the set current value for more than the set time. Was.

【0003】[0003]

【発明が解決しようとする課題】上記電流検出装置で
は、交流電流を全波整流回路で全波整流して平滑回路で
平滑するので、全波整流回路の出力の平滑回路による平
滑に時間がかかり、平滑回路の出力を高速にサンプリン
グすることが不可能であって応答性が悪かった。すなわ
ち、図8に示すように、交流電流に対して全波整流、平
滑を行うと、平滑により直流変換に遅れが生じ、平滑回
路の出力を高速にサンプリングすることが不可能であっ
て応答性が悪かった。特に、複数チャンネルの交流電流
を切り換えながら各チャンネル毎に交流電流が設定電流
値を越えたこと、又は交流電流が設定電流値を設定時間
以上にわたって越えたことなどを検出する場合には、応
答性が悪くて使用できないことがあった。
In the above current detecting device, since the alternating current is full-wave rectified by the full-wave rectifier circuit and smoothed by the smoothing circuit, it takes time to smooth the output of the full-wave rectifier circuit by the smoothing circuit. However, it was impossible to sample the output of the smoothing circuit at high speed, and the response was poor. That is, as shown in FIG. 8, when full-wave rectification and smoothing are performed on an alternating current, a delay occurs in the DC conversion due to the smoothing, and it is impossible to sample the output of the smoothing circuit at high speed. Was bad. In particular, when detecting that the AC current exceeds the set current value for each channel while switching the AC current of multiple channels, or that the AC current exceeds the set current value for more than the set time, the responsiveness is determined. Was bad and could not be used.

【0004】本発明は、平滑による遅れが無くて高速サ
ンプリングが可能となり、応答性が良い電流検出装置を
提供することを目的とする。
An object of the present invention is to provide a current detecting device which can perform high-speed sampling without delay due to smoothing and has good responsiveness.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、交流電流をサンプリングして検出する電
流検出装置において、前記交流電流の周波数を検出する
周波数検出手段と、この周波数検出手段で検出した周波
数に対応するサンプリング周期で前記サンプリングを行
うサンプリング手段とを備えたものである。
In order to achieve the above object, the present invention relates to a current detecting apparatus for sampling and detecting an alternating current, wherein the frequency detecting means detects the frequency of the alternating current; And a sampling means for performing the sampling at a sampling cycle corresponding to the frequency detected in step (1).

【0006】[0006]

【発明の実施の形態】図1は本発明の一実施形態を示
す。この実施形態は、多チャンネル、例えば6チャンネ
ルの電流測定(電流検出)を行う漏洩電流検出装置の実
施形態であり、チャンネル毎に電流が設定値を設定時間
(以下時限とも呼ぶ)以上にわたって越えた回数を検出
する。6チャンネルの電流センサ1〜6は、磁気回路1
1〜16と、この磁気回路11〜16に巻き付けられた
巻線21〜26とを有するクランプ方式の電流センサで
あり、磁気回路11〜16が被測定回路のケーブル、例
えば配電盤のアース線に磁気的に結合されてアース線に
流れる電流を検出する。
FIG. 1 shows an embodiment of the present invention. This embodiment is an embodiment of a leakage current detection device that performs current measurement (current detection) of multiple channels, for example, 6 channels, and the current exceeds a set value for each channel for a set time (hereinafter also referred to as a time period) or more for each channel. Detect the number of times. The six-channel current sensors 1 to 6
1 to 16 and a clamp type current sensor having windings 21 to 26 wound around the magnetic circuits 11 to 16, wherein the magnetic circuits 11 to 16 are connected to a cable of a circuit to be measured, for example, a ground wire of a switchboard. And a current flowing through the ground wire.

【0007】電流センサ1〜6はそれぞれコネクタ31
〜36を介してプリアンプ41〜46に接続され、電流
センサ1〜6の出力信号がそれぞれコネクタ31〜36
を介してプリアンプ41〜46により増幅される。アナ
ログスイッチ51はプリアンプ41〜46の出力信号の
いずれか1つを選択して全波整流回路52に供給し、全
波整流回路52はアナログスイッチ51の出力信号を全
波整流する。
Each of the current sensors 1 to 6 has a connector 31
To the preamplifiers 41 to 46, and output signals of the current sensors 1 to 6 are connected to the connectors 31 to 36, respectively.
Are amplified by the preamplifiers 41 to 46 via the. The analog switch 51 selects one of the output signals of the preamplifiers 41 to 46 and supplies it to the full-wave rectifier circuit 52. The full-wave rectifier circuit 52 performs full-wave rectification on the output signal of the analog switch 51.

【0008】全波整流回路52の出力信号は、プログラ
マブル ゲイン アンプ(PGA)53により増幅され
てアナログ/デジタル変換器(A/D)54によりアナ
ログ信号からデジタル信号に変換され、制御手段として
のCPU55に入力される。差し込みプラグ56は商用
電源のコンセントに接続され、電源回路57は商用電源
から差し込みプラグ56を介して入力される交流電圧を
所定の直流電圧に変換して機能確認用電流発生回路58
や他の回路へ印加すると共に、入力交流電圧から周波数
検出用信号(未整流、未平滑の交流電圧)を作成してC
PU55へ出力する。この実施形態の漏洩電流検出装置
は、差し込みプラグ56が商用電源のコンセントに接続
されて商用電源から50Hz又は60Hzの交流電力が
供給されることにより動作する。
The output signal of the full-wave rectifier circuit 52 is amplified by a programmable gain amplifier (PGA) 53 and converted from an analog signal to a digital signal by an analog / digital converter (A / D) 54. Is input to The plug 56 is connected to an outlet of a commercial power supply, and a power supply circuit 57 converts an AC voltage input from the commercial power supply through the plug 56 into a predetermined DC voltage, and outputs a function confirmation current generating circuit 58.
And other circuits, and also generates a frequency detection signal (unrectified and unsmoothed AC voltage) from the input AC voltage, and
Output to PU55. The leakage current detection device according to this embodiment operates when the insertion plug 56 is connected to an outlet of a commercial power supply and AC power of 50 Hz or 60 Hz is supplied from the commercial power supply.

【0009】また、CPU55は、表示器としての7セ
グメント表示器59及びチャンネル/警報表示器60を
制御し、操作手段を構成する操作スイッチ61からの入
力信号を取り込む。さらに、CPU55は、アナログス
イッチ51、PGA53及び機能確認用電流発生回路5
8を制御し、アラーム出力用リレー62を介してアラー
ム信号を出力する。また、電流センサ1〜6の磁気回路
11〜16には機能確認用巻線71〜76が巻き付けら
れ、この機能確認用巻線71〜76は機能確認用電流発
生回路58により電流が供給される。機能確認用電流発
生回路58の出力側には機能確認用巻線71〜76が直
列に接続されており、使用しない機能確認用巻線があれ
ばその機能確認用巻線の代りにジャンパ線が接続され
る。
The CPU 55 controls a 7-segment display 59 and a channel / alarm display 60 as displays, and takes in input signals from operation switches 61 constituting operation means. Further, the CPU 55 includes an analog switch 51, a PGA 53, and a function generation current generation circuit 5.
8 and outputs an alarm signal via an alarm output relay 62. Further, function confirmation windings 71 to 76 are wound around the magnetic circuits 11 to 16 of the current sensors 1 to 6, and a current is supplied to the function confirmation windings 71 to 76 by the function confirmation current generation circuit 58. . Function checking windings 71 to 76 are connected in series to the output side of the function checking current generating circuit 58. If there is a function checking winding that is not used, a jumper wire is used instead of the function checking winding. Connected.

【0010】図2は本実施形態の操作パネルを示す。本
実施形態は、検出対象電流が商用周波数(50Hz、6
0Hz)の電流であり、商用電源から差し込みプラグ5
6を介して入力される交流電力と検出対象電流との周波
数が同一である。本実施形態は、チャンネル切り換えモ
ード、感度電流設定(確認)モード及び時限設定(確
認)モードを切り換えるモード切り換えスイッチ81
と、このモード切り換えスイッチ81で選択したモード
を表示するモード表示器82を有する。
FIG. 2 shows an operation panel of the present embodiment. In the present embodiment, the detection target current is a commercial frequency (50 Hz, 6 Hz).
0Hz), and the plug 5
6 have the same frequency as the AC power input through the AC power supply 6 and the current to be detected. In the present embodiment, a mode changeover switch 81 that switches between a channel switching mode, a sensitivity current setting (confirmation) mode, and a time limit setting (confirmation) mode.
And a mode display 82 for displaying the mode selected by the mode changeover switch 81.

【0011】また、本実施形態は、一度押すことでテス
トモードを選択し、もう一度押すことでテストモードを
解除するためのテストスイッチ83と、テストモードで
点灯するテストモード表示器84を有する。テストモー
ドは、電流センサ1〜6に所定の電流を流して各機能が
正常であるかどうかを確認するモードである。更に、本
実施形態は、解除スイッチ85、呼び出しスイッチ8
6、選択スイッチ87、測定スイッチ88、測定中表示
器89、チャンネル/警報表示器60を有し、モード切
り換えスイッチ81、テストスイッチ83、解除スイッ
チ85、呼び出しスイッチ86、選択スイッチ87及び
測定スイッチ88は上記操作スイッチ61を構成する。
Further, the present embodiment has a test switch 83 for selecting a test mode by pressing it once and canceling the test mode by pressing it again, and a test mode indicator 84 which lights up in the test mode. The test mode is a mode in which a predetermined current is applied to the current sensors 1 to 6 to check whether each function is normal. Further, in the present embodiment, the release switch 85, the call switch 8
6, a selection switch 87, a measurement switch 88, a display 89 during measurement, a channel / alarm display 60, a mode changeover switch 81, a test switch 83, a release switch 85, a call switch 86, a selection switch 87, and a measurement switch 88. Constitutes the operation switch 61.

【0012】解除スイッチ85は警報表示と検出回数を
解除するためのスイッチであり、呼び出しスイッチ86
は検出回数を確認する場合に使用するスイッチである。
呼び出しスイッチ86を押して選択スイッチ87により
チャンネルを選択すると、その選択したチャンネルに対
応する検出回数が7セグメント表示器59により表示さ
れる。チャンネル/警報表示器60は感度電流、時限の
設定(確認)時の対象チャンネルの表示と、電流が設定
値を設定時間以上越えたチャンネルの表示を行う。
A release switch 85 is a switch for releasing an alarm display and the number of detections, and a call switch 86
Is a switch used to confirm the number of detections.
When the call switch 86 is pressed and a channel is selected by the selection switch 87, the number of detections corresponding to the selected channel is displayed on the 7-segment display 59. The channel / alarm display 60 displays the target channel when setting (confirming) the sensitivity current and time period, and displays the channel where the current exceeds the set value for a set time or more.

【0013】7セグメント表示器59は電流が設定値を
設定時間以上にわたって越えた回数を表示し、チャンネ
ルは選択スイッチ87により選択されてチャンネル/警
報表示器60で表示される。選択スイッチ87は感度電
流、時限の設定と確認にも使用され、モード切り換えス
イッチ81で感度電流設定(確認)モードを選択する
と、設定値が7セグメント表示器59で表示される。そ
の設定値を変更する場合には選択スイッチ87で設定値
を増減させる。モード切り換えスイッチ81で時限設定
(確認)モードを選択すると、設定値が7セグメント表
示器59で表示され、その設定値を変更する場合には選
択スイッチ87で設定値を増減させる。
A seven-segment display 59 indicates the number of times the current has exceeded the set value for a set time or more, and the channel is selected by the selection switch 87 and displayed on the channel / alarm display 60. The selection switch 87 is also used for setting and confirming the sensitivity current and time limit. When the sensitivity current setting (confirmation) mode is selected by the mode changeover switch 81, the set value is displayed on the 7-segment display 59. To change the set value, the set value is increased or decreased by the selection switch 87. When the time setting (confirmation) mode is selected by the mode changeover switch 81, the set value is displayed on the 7-segment display 59, and when the set value is changed, the set value is increased or decreased by the select switch 87.

【0014】選択スイッチ87はチャンネル切り換えモ
ード、感度電流設定(確認)モード及び時限設定(確
認)モードでそれぞれチャンネルの選択、感度電流の選
択、時限の選択を行う。選択スイッチ87は、感度電流
の選択、時限の選択を行う時のチャンネル選択と、呼び
出しスイッチ86を押して検出回数を確認する時のチャ
ンネル選択にも使用される。選択スイッチ87でチャン
ネルを選択したときにはチャンネル/警報表示器60が
点滅する。
A selection switch 87 performs channel selection, sensitivity current selection, and time period selection in a channel switching mode, a sensitivity current setting (confirmation) mode, and a time period setting (confirmation) mode, respectively. The selection switch 87 is also used for channel selection when selecting the sensitivity current and time period, and for selecting the channel when pressing the call switch 86 to check the number of detections. When a channel is selected by the selection switch 87, the channel / alarm indicator 60 flashes.

【0015】測定スイッチ88は測定モードの選択と解
除を行い、測定モードでは測定スイッチ88以外の各種
スイッチが無効となる。測定中表示器89は測定モード
で点滅する。設定値(感度電流)は、選択スイッチ87
により複数の設定値、例えば15mA、50mA、10
0mA、200mA、500mA、1000mA及び無
視のいずれかに設定され、デフォルト値が15mAであ
る。未使用チャンネルの設定値(感度電流)は無視に設
定される。時限は、選択スイッチ87により複数の値、
例えば0.5秒、1.3秒、5秒のいずれかに設定さ
れ、デフォルト値が5秒である。
The measurement switch 88 selects and cancels the measurement mode. In the measurement mode, various switches other than the measurement switch 88 are disabled. The display 89 during measurement blinks in the measurement mode. The set value (sensitivity current) is
A plurality of set values, for example, 15 mA, 50 mA, 10
It is set to any of 0 mA, 200 mA, 500 mA, 1000 mA, and ignored, and the default value is 15 mA. The setting value (sensitivity current) of the unused channel is set to be ignored. The time limit is set to a plurality of values by the selection switch 87,
For example, one of 0.5 seconds, 1.3 seconds, and 5 seconds is set, and the default value is 5 seconds.

【0016】図3は本実施形態の動作フローを示す。C
PU55は、電流センサ1〜6の磁気回路11〜16が
被測定回路のケーブル、例えば配電盤のアース線に磁気
的に結合されて差し込みプラグ56が商用電源のコンセ
ントに接続されると、初期化処理を行い、後述する周波
数検出フローで電源回路57からの周波数検出用信号よ
り商用電源からの交流入力の周波数を検出することで検
出対象電流の周波数を検出する。
FIG. 3 shows an operation flow of the present embodiment. C
The PU 55 performs an initialization process when the magnetic circuits 11 to 16 of the current sensors 1 to 6 are magnetically coupled to a cable of a circuit to be measured, for example, a ground wire of a switchboard and the plug 56 is connected to an outlet of a commercial power supply. The frequency of the current to be detected is detected by detecting the frequency of the AC input from the commercial power supply from the frequency detection signal from the power supply circuit 57 in a frequency detection flow described later.

【0017】従って、CPU55は、検出対象の電流の
周波数を検出する周波数検出手段を構成している。ここ
に、電源回路57は、商用電源から差し込みプラグ56
を介して入力された交流入力から未整流、未平滑の周波
数検出用信号を作成してCPU55へ出力する。
Accordingly, the CPU 55 constitutes frequency detecting means for detecting the frequency of the current to be detected. Here, the power supply circuit 57 is connected to a plug 56 from a commercial power supply.
An unrectified and unsmoothed frequency detection signal is generated from the AC input input through the CPU 55 and output to the CPU 55.

【0018】次に、CPU55は、モード切り換えスイ
ッチ(MODE SW)81からの入力信号によりモー
ド切り換えスイッチ81が押下されてオンしたか否かを
判断し、モード切り換えスイッチ81が押下されてオン
する毎にチャンネル切り換えモード、感度電流設定(確
認)モード及び時限設定(確認)モードを順次に繰り返
して切り換える。
Next, the CPU 55 determines whether or not the mode changeover switch 81 has been pressed down and turned on based on an input signal from the mode changeover switch (MODE SW) 81, and each time the mode changeover switch 81 is pressed down and turned on. Next, the channel switching mode, the sensitivity current setting (confirmation) mode, and the time limit setting (confirmation) mode are sequentially and repeatedly switched.

【0019】CPU55は、テストスイッチ(TEST
SW)83からの入力信号によりステトスイッチ83
が押下されてオンしたか否かを判断し、ステトスイッチ
83が押下されてオンする毎にテストモードの選択と解
除を順次に行う。CPU55は、テストモードの選択時
には機能確認用電流発生回路58に機能確認用巻線71
〜76に所定の電流を供給させ、アナログスイッチ51
を制御して各電流センサ1〜6の出力信号に対するA/
D54からの出力信号を順次に取り込み、これらの信号
から各機能が正常であるかどうかを確認する。
The CPU 55 has a test switch (TEST)
SW) 83, a state switch 83 according to an input signal from
It is determined whether or not is pressed and turned on, and the selection and release of the test mode are sequentially performed each time the stet switch 83 is pressed and turned on. When the test mode is selected, the CPU 55 sends the function confirmation winding 71 to the function confirmation current generation circuit 58.
To a predetermined current to the analog switch 51.
To control A / A with respect to the output signal of each current sensor 1-6.
The output signals from D54 are sequentially taken in, and it is confirmed from these signals whether each function is normal.

【0020】CPU55は、解除スイッチ85からの入
力信号により解除スイッチ85が押下されてオンした時
にチャンネル/警報表示器60の警報表示と検出回数を
解除する。CPU55は、呼び出しスイッチ(CALL
SW)86からの入力信号により呼び出しスイッチ8
6が押下されてオンした時に、選択スイッチ87で選択
されたチャンネルの検出回数(測定モードで測定した、
電流が設定値を設定時間以上にわたって越えた回数)を
7セグメント表示器59に表示させる。
The CPU 55 cancels the alarm display on the channel / alarm display 60 and the number of detections when the release switch 85 is depressed and turned on by an input signal from the release switch 85. The CPU 55 has a call switch (CALL
SW) 86 is called by an input signal from the switch 86.
6 is pressed and turned on, the number of detections of the channel selected by the selection switch 87 (measured in the measurement mode,
(The number of times the current has exceeded the set value over the set time) is displayed on the 7-segment display 59.

【0021】CPU55は、選択スイッチ87からの入
力信号により選択スイッチ87が押下された時に、チャ
ンネル切り換えモードであれば選択チャンネルを選択ス
イッチ87の押下に対応して増減させ、感度電流設定
(確認)モードであれば設定値(感度電流)を選択スイ
ッチ87の押下に対応して増減させ、時限設定(確認)
モードであれば設定時間を選択スイッチ87の押下に対
応して増減させる。CPU55は、測定スイッチ88か
らの入力信号により測定スイッチ88が一度押下されて
オンした時に測定モードで測定動作を行い、測定スイッ
チ88がもう一度押下されてオンした時に測定モードを
解除して測定動作を停止する。
When the selection switch 87 is pressed by an input signal from the selection switch 87, the CPU 55 increases or decreases the selected channel in response to the pressing of the selection switch 87 in the channel switching mode, and sets the sensitivity current (confirmation). In the case of the mode, the set value (sensitivity current) is increased / decreased in accordance with the pressing of the selection switch 87, and the time limit is set (confirmed).
In the case of the mode, the set time is increased or decreased in accordance with the pressing of the selection switch 87. The CPU 55 performs a measurement operation in the measurement mode when the measurement switch 88 is once depressed and turned on by an input signal from the measurement switch 88, and releases the measurement mode when the measurement switch 88 is depressed and turned on again to perform the measurement operation. Stop.

【0022】CPU55は、測定モードでは、アナログ
スイッチ51にプリアンプ41〜46の出力信号を順次
に選択させてPGA53のゲインをアナログスイッチ5
1によるプリアンプの41〜46の出力信号の選択に対
応して各チャンネルの最適なゲインに切り換えながら後
述するように周波数検出フローで検出した商用電源の周
波数に対応したサンプリング周期でA/D54の出力信
号をサンプリングして取り込み、このA/D54の出力
信号からチャンネル毎に電流センサ1〜6による検出電
流が設定値を設定時間以上にわたって越えた回数をカウ
ントして検出する。従って、CPU55は、上記周波数
検出手段で検出した検出対象電流の周波数に対応するサ
ンプリング周期でサンプリングを行うサンプリング手段
を構成している。
In the measurement mode, the CPU 55 causes the analog switch 51 to sequentially select the output signals of the preamplifiers 41 to 46 so as to adjust the gain of the PGA 53 to the analog switch 5.
The output of the A / D 54 at a sampling cycle corresponding to the frequency of the commercial power supply detected in the frequency detection flow as described later while switching to the optimum gain of each channel in accordance with the selection of the output signals of the preamplifiers 41 to 46 according to 1. A signal is sampled and taken in, and the number of times that the current detected by the current sensors 1 to 6 exceeds the set value for a set time or more is counted and detected from the output signal of the A / D 54 for each channel. Therefore, the CPU 55 constitutes sampling means for performing sampling at a sampling period corresponding to the frequency of the current to be detected detected by the frequency detecting means.

【0023】次に、上記周波数検出フローについて説明
する。CPU55は、電源回路57からポート1bit
に入力される周波数検出用信号を一定のサンプリング周
期でサンプリングして取り込み、その信号の変化から商
用電源の周波数を検出する。この場合、CPU55は、
図7に示すように、電源回路57からポート1bitに
入力される周波数検出用信号を所定のスレッシュレベル
を基準として0か1として読み込んでサンプリングデー
タDn+0〜Dn+xとする。
Next, the frequency detection flow will be described. The CPU 55 is connected to the power supply circuit 57 from the port 1 bit.
Of the commercial power supply is detected based on a change in the signal for sampling at a fixed sampling period. In this case, the CPU 55
As shown in FIG. 7, the frequency detection signal input to the port 1 bit from the power supply circuit 57 is read as 0 or 1 with reference to a predetermined threshold level, and is set as sampling data D n + 0 to D n + x .

【0024】そして、CPU55は、そのサンプリング
データDn+0〜Dn+xを先頭から読み込み順に2つずつ比
較し、2つの連続するデータDn〜Dn+1が0なればそこ
を周波数検出用信号の立ち上がりエッジとみなし、2つ
の連続するデータDn〜Dn+1が1なればそこを周波数検
出用信号の立ち下がりエッジとみなす。周波数検出用信
号の立ち上がりエッジから周波数検出用信号の立ち下が
りエッジまでのサンプリングデータ(又は周波数検出用
信号の立ち下がりエッジから周波数検出用信号の立ち上
がりエッジまでのサンプリングデータ)は一定周期の波
形であり、CPU55は商用電源の周波数(周波数検出
用信号の周波数)を 商用電源の周波数=サンプリングデータ数×一定のサン
プリング周期 なる式で割り出す。
Then, the CPU 55 compares the sampled data D n + 0 to D n + x two by two in the reading order from the head. If two consecutive data D n to D n + 1 become 0, the CPU 55 changes the frequency to the frequency. It is regarded as the rising edge of the detection signal, and when two consecutive data D n to D n + 1 become 1, it is regarded as the falling edge of the frequency detection signal. The sampling data from the rising edge of the frequency detection signal to the falling edge of the frequency detection signal (or the sampling data from the falling edge of the frequency detection signal to the rising edge of the frequency detection signal) has a fixed period waveform. The CPU 55 calculates the frequency of the commercial power supply (the frequency of the frequency detection signal) by the following formula: commercial power supply frequency = number of sampling data × constant sampling period.

【0025】例えば、上記一定のサンプリング周期を1
00μsec、周波数検出用信号の立ち上がりエッジか
ら周波数検出用信号の立ち下がりエッジまでのサンプリ
ングデータ数を200とすると、 100μsec×200=20msec=50Hz となる。また、上記一定のサンプリング周期を100μ
sec、周波数検出用信号の立ち上がりエッジから周波
数検出用信号の立ち下がりエッジまでのサンプリングデ
ータ数を166とすると、 100μsec×166=16.6msec=60.2
4Hz となる。
For example, the constant sampling period is set to 1
Assuming that 200 μsec, the number of sampling data from the rising edge of the frequency detection signal to the falling edge of the frequency detection signal is 200, 100 μsec × 200 = 20 msec = 50 Hz. Further, the constant sampling period is set to 100 μm.
Assuming that the number of sampling data from the rising edge of the frequency detection signal to the falling edge of the frequency detection signal is 166 sec, 100 μsec × 166 = 16.6 msec = 60.2
4 Hz.

【0026】図4は本実施形態のタイマ割込み処理フロ
ーを示す。CPU55は、250μsタイマによる割込
みで、iが160になるまで電源回路57からポート1
bitに入力される周波数検出用信号を250μsの一
定周期でサンプリングしてバッファbuf[i]に取り
込む。ここに、iは上記初期化処理でクリアされ、16
0は50Hzに対して一周期×2の時間である。
FIG. 4 shows a timer interrupt processing flow of the present embodiment. The CPU 55 interrupts the port 1 from the power supply circuit 57 until i becomes 160 by an interruption by the 250 μs timer.
The frequency detection signal input to the bit is sampled at a constant period of 250 μs and taken into the buffer buf [i]. Here, i is cleared by the initialization processing, and
0 is one cycle × 2 time for 50 Hz.

【0027】図5は本実施形態の周波数判定処理を示
す。CPU55は、割込み処理内で周波数検出用信号の
サンプリングが終了した後に、idx、lcnt、hc
ntをクリアし、バッファbuf[idx]のデータを
aとし、idxをインクリメントしてa=xであるか否
かを判断する。CPU55は、a=xであればバッファ
buf[idx]のデータをaとするステップへ戻り、
a=xでなくなれば、つまり、周波数検出用信号のサン
プリングデータが最初に低レベル又は高レベルから高レ
ベル又は低レベルに変化すれば、バッファbuf[id
x]のデータをxとし、バッファbuf[idx]のデ
ータをaとし、idx及びlcntをインクリメントし
てa=xであるか否かを判断する。
FIG. 5 shows the frequency judgment processing of the present embodiment. The CPU 55 sets idx, lcnt, hc after the sampling of the frequency detection signal is completed in the interrupt processing.
nt is cleared, the data in the buffer buf [idx] is set to a, and idx is incremented to determine whether a = x. If a = x, the CPU 55 returns to the step of setting the data of the buffer buf [idx] to a,
If a = x is not satisfied, that is, if the sampling data of the frequency detection signal first changes from the low or high level to the high or low level, the buffer buf [id
The data of x] is x, the data of buffer buf [idx] is a, and idx and lcnt are incremented to determine whether a = x.

【0028】CPU55は、a=xであればバッファb
uf[idx]のデータをaとするステップへ戻って上
記動作を繰り返すことにより周波数検出用信号の低レベ
ル又は高レベルのサンプリングデータを前半の半周期カ
ウントし、a=xでなくなればバッファbuf[id
x]のデータをxとし、バッファbuf[idx]のデ
ータをaとし、idx及びhcntをインクリメントし
てa=xであるか否かを判断する。
If a = x, the CPU 55
Returning to the step of setting the data of uf [idx] to a, the above operation is repeated to count the low-level or high-level sampling data of the frequency detection signal in the first half cycle. If a = x is not satisfied, the buffer buf [ id
The data of x] is x, the data of buffer buf [idx] is a, and idx and hcnt are incremented to determine whether a = x.

【0029】CPU55は、a=xであればバッファb
uf[idx]のデータをaとするステップへ戻って上
記動作を繰り返すことにより周波数検出用信号の高レベ
ル又は低レベルのサンプリングデータを後半の半周期カ
ウントし、a=xでなくなればCNT←lcnt+hc
ntとして商用電源からの交流入力の周波数に対応する
値CNTを求め、このCNTが73より小さいか否かを
判断する。ここに、73は50Hzと60Hzとの間の
周波数に対応する値である。CPU55は、CNTが7
3より小さければ商用電源の周波数、つまり、検出対象
電流の周波数を50Hzであると判定し、CNTが73
より小さくなければ商用電源の周波数(検出対象電流の
周波数)を60Hzであると判定する。
If a = x, the CPU 55 determines that the buffer b
Returning to the step where the data of uf [idx] is set to a, the above operation is repeated to count the high-level or low-level sampling data of the frequency detection signal in the latter half half cycle. If a = x is not satisfied, CNT ← lcnt + hc
A value CNT corresponding to the frequency of the AC input from the commercial power supply is obtained as nt, and it is determined whether or not this CNT is smaller than 73. Here, 73 is a value corresponding to a frequency between 50 Hz and 60 Hz. The CPU 55 determines that CNT is 7
If it is smaller than 3, it is determined that the frequency of the commercial power supply, that is, the frequency of the current to be detected is 50 Hz, and CNT is 73
If not smaller, it is determined that the frequency of the commercial power supply (frequency of the current to be detected) is 60 Hz.

【0030】図6は本実施形態の測定動作を示す。CP
U55は、測定中(測定モード)であるか否かを判断
し、測定中にはiiをインクリメントしながらiiが4
0になるまでA/D54の出力信号を上記周波数検出フ
ローで検出した商用電源の周波数に対応するサンプリン
グ周期でサンプリングして取り込んで加算しdatとす
る。ここに、ii、datは測定動作の開始時には0に
リセットされている。CPU55は、iiが40になる
と、つまり、A/D54から40個のサンプリングデー
タを取り込むと、これらのサンプリングデータを加算し
たdatを40で除算してその平均値を求め、この平均
値をdatとする。
FIG. 6 shows the measuring operation of this embodiment. CP
U55 determines whether or not the measurement is being performed (measurement mode), and during measurement, ii is incremented by 4 while ii is incremented by 4.
Until the output signal becomes 0, the output signal of the A / D 54 is sampled at a sampling cycle corresponding to the frequency of the commercial power supply detected in the above-described frequency detection flow, fetched and added to obtain dat. Here, ii and dat are reset to 0 at the start of the measurement operation. When ii becomes 40, that is, when 40 pieces of sampling data are taken in from the A / D 54, the CPU 55 divides dat obtained by adding these sampling data by 40 to obtain an average value, and calculates this average value as dat. I do.

【0031】CPU55は、その平均値datが選択中
のチャンネル(アナログスイッチ51でアンプの出力信
号が選択されているチャンネル)の設定値(基準値)を
越えたか否かを判断し、平均値datが設定値を越えな
い場合にはtimをリセットする。CPU55は、平均
値datが設定値を越えた場合にはtimに所定の時間
を加算することで、平均値datが設定値を越えている
時間を計時し、timが選択中のチャンネルの設定時間
より大きくなったか否かを判断する。
The CPU 55 determines whether or not the average value dat has exceeded the set value (reference value) of the selected channel (the channel whose amplifier output signal has been selected by the analog switch 51). If does not exceed the set value, tim is reset. When the average value dat exceeds the set value, the CPU 55 measures the time during which the average value dat exceeds the set value by adding a predetermined time to tim, and tim indicates the set time of the selected channel. Determine if it has become larger.

【0032】CPU55は、timが設定時間より大き
くなった時にはチャンネル/警報表示器60における該
当する選択中のチャンネル(CH)の表示器(LED)
を点灯させて警報を発し、該当チャンネルの検出回数を
インクリメントする。次に、CPU55は、アナログス
イッチ51にプリアンプ41〜46の出力信号を切り換
えさせることでチャンネルを切り換え、PGA53のゲ
インをそのチャンネルに最適なゲインに切り換えてi
i、datを0にクリアする。
When the time tim becomes longer than the set time, the CPU 55 displays the corresponding selected channel (CH) in the channel / alarm display 60 (LED).
Is turned on to generate an alarm, and the number of detections of the corresponding channel is incremented. Next, the CPU 55 switches the channel by causing the analog switch 51 to switch the output signals of the preamplifiers 41 to 46, and switches the gain of the PGA 53 to the optimal gain for the channel, and
Clear i and dat to 0.

【0033】以下同様に、CPU55は、各チャンネル
毎にA/D54からのサンプリングデータの平均値が設
定値を越えている時間が設定時間を越える毎に、チャン
ネル/警報表示器60における該当するチャンネル(C
H)の表示器(LED)を点灯させて警報を発し、該当
チャンネルの検出回数をインクリメントする。
Similarly, every time the average value of the sampling data from the A / D 54 exceeds the set value for each channel exceeds the set time, the CPU 55 sets the corresponding channel on the channel / alarm display 60. (C
The indicator (LED) of H) is turned on to generate an alarm, and the number of times of detection of the corresponding channel is incremented.

【0034】この実施形態では、交流電流をサンプリン
グして検出する電流検出装置において、前記交流電流の
周波数を検出する周波数検出手段としてのCPU55
と、この周波数検出手段55で検出した周波数に対応す
るサンプリング周期で前記サンプリングを行うサンプリ
ング手段としてのCPU55とを備えたので、平滑回路
が不要になり、かつ、平滑による遅れが無くて高速サン
プリングが可能となり、応答性が良く、複数チャンネル
の交流電流をサンプリングして検出する場合にも使用で
きる。
In this embodiment, in a current detecting device for sampling and detecting an alternating current, a CPU 55 as frequency detecting means for detecting the frequency of the alternating current is used.
And the CPU 55 as sampling means for performing the sampling at a sampling cycle corresponding to the frequency detected by the frequency detection means 55, so that a smoothing circuit is not required, and high-speed sampling is possible without delay due to smoothing. This makes it possible to provide a high response and to sample and detect alternating current of a plurality of channels.

【0035】なお、上記実施形態において、検出対象の
電流の周波数と商用電源の周波数とが異なる場合には、
上記周波数検出フローで、商用電源の周波数を検出する
代りに検出対象の電流の周波数を上記実施形態と同様に
検出すればよい。また、上記実施形態では交流電流が設
定電流値を設定時間以上にわたって越えたことを検出し
たが、交流電流が設定電流値を越えたことなどを検出す
る場合にも上記実施形態と同様に交流電流の周波数を検
出してその検出した周波数に対応するサンプリング周期
で交流電流のサンプリングを行うようにすればよい。
In the above embodiment, when the frequency of the current to be detected is different from the frequency of the commercial power supply,
In the frequency detection flow, the frequency of the current to be detected may be detected in the same manner as in the above embodiment, instead of detecting the frequency of the commercial power supply. Further, in the above embodiment, it is detected that the AC current has exceeded the set current value for more than the set time. However, in the case of detecting that the AC current has exceeded the set current value, the same as in the above embodiment, And the sampling of the alternating current may be performed at a sampling period corresponding to the detected frequency.

【0036】[0036]

【発明の効果】以上のように本発明によれば、上記構成
により、平滑回路が不要になり、かつ、平滑による遅れ
が無くて高速サンプリングが可能となり、応答性が良
く、複数チャンネルの交流電流をサンプリングして検出
する場合にも使用できる。
As described above, according to the present invention, the above configuration eliminates the need for a smoothing circuit, enables high-speed sampling without delay due to smoothing, improves responsiveness, and improves the AC current of a plurality of channels. Can also be used for sampling and detection.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】同実施形態の操作パネルを示す平面図である。FIG. 2 is a plan view showing an operation panel of the embodiment.

【図3】同実施形態の動作フローを示すフローチャート
である。
FIG. 3 is a flowchart showing an operation flow of the embodiment.

【図4】同実施形態のタイマ割込み処理フローを示すフ
ローチャートである。
FIG. 4 is a flowchart showing a timer interrupt processing flow of the embodiment.

【図5】同実施形態の周波数判定処理を示すフローチャ
ートである。
FIG. 5 is a flowchart showing a frequency determination process of the embodiment.

【図6】同実施形態の測定動作を示すフローチャートで
ある。
FIG. 6 is a flowchart showing a measurement operation of the embodiment.

【図7】同実施形態を説明するための図である。FIG. 7 is a diagram for explaining the same embodiment.

【図8】従来の電流検出装置を説明するための図であ
る。
FIG. 8 is a diagram for explaining a conventional current detection device.

【符号の説明】[Explanation of symbols]

1〜6 電流センサ 11〜16 磁気回路 51 アナログスイッチ 54 A/D 55 CPU 57 電源回路 58 機能確認用電流発生回路 59 7セグメント表示器 71〜76 機能確認用巻線 81 モード切り換えスイッチ 87 選択スイッチ 1-6 Current sensor 11-16 Magnetic circuit 51 Analog switch 54 A / D 55 CPU 57 Power supply circuit 58 Function confirmation current generation circuit 59 7-segment display 71-76 Function confirmation winding 81 Mode changeover switch 87 Selection switch

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】交流電流をサンプリングして検出する電流
検出装置において、前記交流電流の周波数を検出する周
波数検出手段と、この周波数検出手段で検出した周波数
に対応するサンプリング周期で前記サンプリングを行う
サンプリング手段とを備えたことを特徴とする電流検出
装置。
1. A current detecting apparatus for sampling and detecting an alternating current, comprising: frequency detecting means for detecting a frequency of the alternating current; and sampling for performing the sampling at a sampling cycle corresponding to the frequency detected by the frequency detecting means. And a current detecting device.
JP10107234A 1998-04-17 1998-04-17 Current detecting device Withdrawn JPH11304852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10107234A JPH11304852A (en) 1998-04-17 1998-04-17 Current detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10107234A JPH11304852A (en) 1998-04-17 1998-04-17 Current detecting device

Publications (1)

Publication Number Publication Date
JPH11304852A true JPH11304852A (en) 1999-11-05

Family

ID=14453897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10107234A Withdrawn JPH11304852A (en) 1998-04-17 1998-04-17 Current detecting device

Country Status (1)

Country Link
JP (1) JPH11304852A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007139728A (en) * 2005-11-22 2007-06-07 Jimbo Electric Co Ltd Electrical socket device
JP2012233843A (en) * 2011-05-09 2012-11-29 Hioki Ee Corp Impedance measuring apparatus
JP2017133914A (en) * 2016-01-27 2017-08-03 日置電機株式会社 Measurement device
JP2017138118A (en) * 2016-02-01 2017-08-10 日置電機株式会社 Measurement device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007139728A (en) * 2005-11-22 2007-06-07 Jimbo Electric Co Ltd Electrical socket device
JP2012233843A (en) * 2011-05-09 2012-11-29 Hioki Ee Corp Impedance measuring apparatus
JP2017133914A (en) * 2016-01-27 2017-08-03 日置電機株式会社 Measurement device
JP2017138118A (en) * 2016-02-01 2017-08-10 日置電機株式会社 Measurement device

Similar Documents

Publication Publication Date Title
JPH11304852A (en) Current detecting device
JPH11311640A (en) Detecting method for clamped state of clamping-type current sensor and detector for leakage current
JP2004069466A (en) Electric current measuring device
JP2962244B2 (en) PCB passive element isolation measurement circuit
JPH11311653A (en) Ground leakage current detector
KR102071884B1 (en) Load control device, current measurement method of load control device
JP2002055128A (en) Ac signal measuring instrument
JPH11295363A (en) Impedance measuring apparatus
JPH08327674A (en) Electronic watthour meter with error test mode function
JP2741131B2 (en) Power monitoring recorder
JPH03165123A (en) Automatic range-selecting measurement equipment
JPS5826640A (en) Overcurrent device of feeder
KR100325351B1 (en) Current-balance circuit of parallel power device driving apparatus and method thereof
JPH07209050A (en) Two wire system electromagnetic flow meter
JPH05264295A (en) Power source monitoring recorder
KR0129475B1 (en) Noise-removing circuit of anglog/digital converter
JP3954696B2 (en) Method and apparatus for removing spike noise from gas analyzer
JP3075434B2 (en) High-speed resistance measuring device
JP2923979B2 (en) Frequency detection circuit
JP3692530B2 (en) AC signal measuring instrument
JPH0832506A (en) Electric quantity measuring instrument
JPH11108753A (en) Vibration detector
JP3385602B2 (en) Current detector
JPS6486080A (en) Method and apparatus for diagnosing abnormality of current detector
JPH05264297A (en) Power source monitoring recorder

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050705