AC voltage zero cross detection circuit structure
The AC voltage zero-crossing detection circuit uses two photocouplers and a time difference correction method to improve the precision of zero-crossing detection, addressing inaccuracies from diode and photocoupler threshold voltages and enhancing control accuracy.
Patent Information
- Application Number
- JP2020165075
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2040-09-30
AI Technical Summary
Conventional zero-crossing detection methods for AC voltage, such as those using photocouplers and rectifiers, suffer from inaccuracies due to the threshold voltages of diodes and photocouplers, leading to difficulties in precisely detecting the zero-crossing point, especially when the AC voltage is near zero.
The proposed AC voltage zero-crossing detection circuit employs two photocouplers that output different signals based on the polarity of the AC power signal, calculates the time difference between specific signal transitions, and uses a zero-cross timing acquisition unit to correct the zero-crossing point by adding half the time difference to the detected timings, thereby improving accuracy.
This method allows for more precise detection of zero-crossing points, reducing errors caused by diode and photocoupler threshold voltages, and enhances control accuracy by ensuring zero-crossing detection is aligned with the AC power supply phase, minimizing noise and inrush currents.
Smart Images

Figure 0007537682000011 
Figure 0007537682000005 
Figure 0007537682000008
Abstract
Description
[Technical field]
[0001] The present invention relates to an AC voltage zero cross detection circuit structure for detecting zero cross points of an AC voltage. [Background technology]
[0002] For example, the thyristor phase control method for heater control uses a thyristor to change the ratio of ON time per cycle of AC current, thereby controlling the output voltage between 0 and 100%. In order to perform this type of control, it is important to accurately perform zero-cross detection, which detects the zero-cross point (the timing when the AC voltage becomes 0V).
[0003] Conventional zero-crossing detection involves full-wave rectifying an AC voltage, using a photocoupler with the full-wave rectified output voltage as the input signal, measuring the period during which the phototransistor that constitutes the photocoupler is off (non-conductive state between the collector and emitter), and detecting the zero-crossing point based on that period.
[0004] The technology according to the prior art document 1 will be described with reference to FIG. 14. The technology of document 1 is a heater control device (1401) that controls turning on a heater (1411) at a zero-cross point to prevent flicker (flickering of fluorescent lamps, cathode ray tubes, etc.), and includes a zero-cross detection device (1402) that detects the zero-cross point. This heater control device has a circuit configuration as shown in FIG. 14(a). The zero-cross detection device (1402) includes a rectifier circuit (1404) that full-wave rectifies an AC voltage supplied from a power source (1403), and a photocoupler (1405) that receives the output voltage of the rectifier circuit (1404) as an input signal. The photocoupler (1405) is composed of a light-emitting diode D1 and a phototransistor Tr1, and the anode of the light-emitting diode D1 is connected to the output of the rectifier circuit (1404) via a resistor R1, and the cathode of the light-emitting diode D1 is connected to ground.
[0005] The collector of the phototransistor Tr1 is connected to a DC power supply VDD via a resistor R2 and to the base of the transistor Tr2, and the emitter of the phototransistor Tr1 is connected to ground. The collector of the transistor Tr2 is connected to a DC power supply VDD via a resistor R3, and the emitter of the transistor Tr2 is connected to ground. The control unit (1406) also has a zero-cross time measurement means (1407), a delay time calculation means (1409), and a delay means (1410), and is connected to the collector of the transistor Tr2 and the switch unit (1408).
[0006] Fig. 14(b) shows the voltage waveform of the AC power supply (1403), and Fig. 14(c) shows the input signal waveform of the photocoupler (1405) (output voltage waveform of the rectifier circuit (1404)). Fig. 14(d) shows the waveform of the collector output of the transistor Tr2, and Fig. 14(e) shows the waveform of the heater control signal.
[0007] The AC voltage (FIG. 14(b)) from the AC power supply (1403) is full-wave rectified by the rectifier circuit (1404), and the full-wave rectified voltage (FIG. 14(c)) is applied to the light-emitting diode D1 of the photocoupler (1405) via the resistor R1. As a result, a forward current proportional to the voltage of the AC power supply (1403) flows through the light-emitting diode D1, and this forward current causes the light-emitting diode D1 to emit light.
[0008] When the phototransistor Tr1 of the photocoupler (1405) receives light emitted from the light-emitting diode D1, a base current flows and conducts between the collector and emitter. Therefore, the collector voltage of the phototransistor Tr1 becomes the ground voltage, so that the base current of the transistor Tr2 does not flow, the transistor Tr2 turns off, and the collector voltage of the transistor Tr2 becomes "H" (the voltage of the DC power supply VDD).
[0009] Furthermore, when the amplitude of the voltage of the AC power supply (1403) becomes smaller, the forward current flowing through the light-emitting diode D1 becomes smaller, and the amount of light emitted by the light-emitting diode D1 decreases. When the amount of light emitted by the light-emitting diode decreases, the base current stops flowing through the phototransistor Tr1, and the phototransistor Tr1 turns off. Then, a base current flows from the DC power supply VDD to the base of the transistor Tr2 via the resistor R2, so the transistor Tr2 turns on and the voltage of the collector of the transistor Tr2 becomes "L" (ground voltage).
[0010] In other words, if the voltage of the AC power supply (1403) when the transistor Tr2 turns on is Vth, then when the absolute value of the voltage of the AC power supply (1403) is smaller than Vth, the transistor Tr2 turns on and the collector voltage of the transistor Tr2 becomes "L" (ground voltage) as shown in Figures 14(c) and 14(d). Also, the period when the transistor Tr2 is on, that is, the period when the collector voltage of the transistor Tr2 is "L", is a period near the zero cross of the voltage waveform of the AC power supply (1403), so this period is called the zero cross period, and the signal indicative of this zero cross period, shown in Figure 14(d), is called the zero cross signal.
[0011] This zero-cross signal is then input to a control unit (1406), which in turn outputs a heater control signal (FIG. 14(e)) delayed by a delay time calculated by a delay time calculation means (1409) from the falling edge of this zero-cross signal using a delay means (1410) to a switch unit (1408). The switch unit (1408) is then turned on using the supplied heater control signal as a trigger, and AC power from the AC power supply (1403) is supplied to a heater (1411).
[0012] A heater control signal (FIG. 14(e)) delayed by the delay time calculated by the delay time calculation means (1409) from the falling edge of the zero-cross signal is output to a switch section (1408). The switch section (1408) is then turned on using the heater control signal as a trigger, and AC power from the AC power supply (1403) is supplied to a heater (1411).
[0013] Here, when the heater control device (1401) is powered on, that is, when the control unit (1406) is powered on, the control unit (1406) starts the delay time calculation operation. Next, it is determined whether a zero cross signal has been detected. This is to determine whether the collector output of the transistor Tr2 has become "L", that is, whether the falling edge of the zero cross signal has been detected. Then, when the falling edge of the zero cross signal is detected, the width of the zero cross signal is measured. That is, the time from the falling edge to the rising edge of the zero cross signal is measured by the zero cross time measurement means (1407). This time from the falling edge to the rising edge of the zero cross signal is the length of the zero cross period, and is therefore called the zero cross time. Then, when the measurement of the zero cross time is finished, the delay time is calculated by the delay time calculation means (1409). On the other hand, if the zero cross time cannot be measured, the detection of the zero cross signal is started again.
[0014] The delay time calculation means (1409) calculates the delay time by multiplying the measured zero cross time by 1 / 2. For example, in the case of the AC voltage waveform shown in FIG. 14(b), the zero cross time measured by the zero cross time measurement means (1407) is multiplied by t a Then, the control unit (1406) calculates the zero cross time t a The delay time t a Then, the control unit (1406) calculates a delay time t aThe heater control signal (FIG. 14(e)) is delayed by 1 / 2 and output to the switch section (1408). As described above, the zero crossing points are detected, and the heater control is performed based on them. [Prior art documents] [Patent documents]
[0015] [Patent Document 1] JP 2005-123977 A Summary of the Invention [Problem to be solved by the invention]
[0016] At first glance, the zero-cross detection device in the heater control device of Patent Document 1 appears to accurately detect zero-cross points. However, the voltage that actually passes through the rectifier circuit is not output with an ideal waveform as shown in Figure 14(c) due to factors such as the operating threshold voltage of the diode used for rectification (generally about 0.6V, but varies slightly depending on the product). When the operating threshold voltage of the diode is 0.6V, the rectifier diode does not turn on in the input voltage waveform range of +0.6V to -0.6V, and a flat portion of 0V is generated between the peaks of the input voltage waveform of the photocoupler shown in Figure 14(c) (a waveform folded back by full-wave rectification). As a result, the t a Therefore, there is a problem that it is difficult to detect the zero crossing point with high accuracy because it is affected by the threshold voltage of the rectifier diode as well as the operating threshold voltage of the photocoupler. [Means for solving the problem]
[0017] In order to solve the above problems, a first invention provides a power supply device including: a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; a second photocoupler that outputs a signal H in response to the acquired AC power signal being positive and outputs a signal L in response to the acquired AC power signal being negative; "The time difference between the first timing at which the signal of the second photocoupler switches from L to H and the second timing at which the signal of the first photocoupler switches from H to L in the same timing region where the AC power supply signal inverts from negative to positive" or / and, a time difference acquisition unit that acquires "a time difference between a third timing at which the signal of the second photocoupler switches from H to L and a fourth timing at which the signal of the first photocoupler switches from L to H in the same timing region where the AC power supply signal is inverted positive and negative"; a zero-cross timing acquisition unit that acquires a timing when the voltage of the AC power signal is zero using a correction time length that is half the time length of the acquired time difference; The present invention provides an AC voltage zero cross detection circuit structure comprising:
[0018] Furthermore, as a second invention, based on the first invention, The delay time at which the output of the first photocoupler and the second photocoupler switch from signal H to signal L and / or the advance time at which the output of the first photocoupler and the second photocoupler switch from signal L to signal H are approximately equal. An AC voltage zero crossing detection circuit structure is provided.
[0019] Furthermore, as a third invention, based on either the first or second invention, there is provided an AC voltage zero-crossing detection circuit structure further having a correction time length acquisition unit that acquires a correction time length by statistically processing a plurality of acquired time differences.
[0020] Furthermore, as a fourth invention, based on any one of the first to third inventions, there is provided an AC voltage zero-cross detection circuit structure in which a first photocoupler and a second photocoupler output L when the photocoupler is ON.
[0021] Furthermore, as a fifth invention, based on any one of the first to fourth inventions, there is provided an AC voltage zero-cross detection circuit structure having anticipation means, wherein the zero-cross timing acquisition unit acquires the zero-cross timing by using the timing at which the signal of the first photocoupler rises from L to H just before the zero-cross timing and a correction time length when the AC power supply signal inverts from positive to negative, and acquires the zero-cross timing by using the timing at which the signal of the second photocoupler rises from L to H just before the zero-cross timing and a correction time length when the AC power supply signal inverts from negative to positive.
[0022] Furthermore, there are also provided respective operation methods and respective operation programs corresponding to the AC voltage zero cross detection circuit structures of the first to fifth aspects of the present invention. Furthermore, the respective operation programs may be recorded on a recording medium. Effect of the Invention
[0023] According to the present invention, it is possible to provide a zero-cross detection circuit structure capable of detecting zero-cross points with higher accuracy. [Brief description of the drawings]
[0024] [Figure 1] FIG. 1 is a functional block diagram according to a first embodiment of the present invention. [Diagram 2] 1 is a flowchart according to the first embodiment of the present invention. [Diagram 3] FIG. 1 is a schematic diagram of a hardware configuration according to a first embodiment of the present invention. [Figure 4] FIG. 4 is a signal waveform diagram illustrating the effect of the first embodiment of the present invention. [Diagram 5] FIG. 11 is a functional block diagram according to a third embodiment of the present invention. [Figure 6] FIG. 11 is a signal waveform schematic diagram illustrating calculation of a corrected time length according to the third embodiment of the present invention. [Figure 7a] 11 is a flowchart according to a third embodiment of the present invention. [Figure 7b] 11 is a flowchart according to a third embodiment of the present invention. [Figure 8]FIG. 11 is a schematic diagram of a hardware configuration according to a third embodiment of the present invention. [Figure 9] FIG. 13 is a functional block diagram according to a fifth embodiment of the present invention. [Figure 10] 11 is a flowchart according to a fifth embodiment of the present invention. [Figure 11] FIG. 1 is a functional block diagram of a microcomputer according to a first embodiment of the present invention. [Figure 12] FIG. 13 is a schematic diagram of hardware according to a sixth embodiment of the present invention. [Figure 13a] FIG. 13 is a diagram showing waveforms of a three-phase AC current according to a sixth embodiment of the present invention. [Figure 13b] FIG. 13 is an explanatory diagram of zero-cross detection of a three-phase AC according to a sixth embodiment of the present invention. [Figure 14] 1 is a schematic diagram of a circuit configuration according to a conventional technique and a schematic diagram of waveforms in the circuit. [Figure 15a] FIG. 1 is an explanatory diagram of an example of ON / OFF control of AC using a zero crossing point. [Figure 15b] FIG. 1 is an explanatory diagram of an example of ON / OFF control of AC using a zero crossing point. [Figure 15c] FIG. 1 is an explanatory diagram of an example of ON / OFF control of AC using a zero crossing point. [Figure 16] FIG. 13 is a schematic configuration diagram of a heater circuit using a three-phase AC zero-cross detection circuit structure according to a sixth embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. Note that the present invention should not be limited to these embodiments, and can be embodied in various forms without departing from the spirit of the present invention.
[0026] The functional configuration of each embodiment described below can be realized as a combination of hardware and software, which will be described later. Each embodiment described in this specification can be realized not only as an apparatus, but also as a method of operation, either in part or in whole. A part of such an apparatus can be configured as software. Furthermore, software products used to cause a computer, such as a microcomputer chip, such as an IC, to execute such software, and recording media (regardless of form, such as a memory chip, a memory card, an EPROM attached to a microcomputer chip, etc.) on which such products are fixed are naturally included in the technical scope of each embodiment described in this specification (the same applies throughout this specification).
[0027] <Embodiment 1: Mainly Claim 1> <Overview of embodiment 1> A description will be given of embodiment 1. The AC voltage zero cross detection circuit structure is characterized in that it detects zero crosses using two photocouplers, a first photocoupler and a second photocoupler.
[0028] <Configuration of embodiment 1> Hereinafter, the AC voltage zero cross detection circuit structure according to the embodiment of the present invention will be described in the order of functional configuration, processing flow, and circuit configuration. 1 is a functional block diagram showing an embodiment of an AC voltage zero cross detection circuit structure according to the present embodiment. As shown in the figure, the AC voltage zero cross detection circuit structure (0100) is composed of an AC power supply signal acquisition unit (0101), a first photocoupler (0102), a second photocoupler (0103), a time difference acquisition unit (0104), and a zero cross timing acquisition unit (0105). The above functional blocks are merely an example for implementing the present invention, and functions may be omitted or new functions may be added as appropriate within the scope that does not contradict the problems to be overcome by the present invention and its effects.
[0029] <Embodiment 1: AC power signal acquisition unit (0101)> The 'acquiring unit for AC power supply signal' (0101) is configured to acquire an AC power supply signal. The AC voltage zero-cross detection circuit structure of the present invention detects zero crossings, branches off from the power source input to the target part or product to be power-controlled, and obtains a signal from the AC power source of the same phase. It is preferable to configure the circuit so that there is no voltage phase shift between the AC power source signal input to the AC voltage zero-cross detection circuit structure and the AC power source signal at the switch section of the AC power source to be controlled. There are control methods for turning the AC power source signal ON / OFF every half cycle or cycle (see FIG. 15a), turning ON / OFF every few cycles (see FIG. 15b), and phase control methods for changing the ON / OFF ratio every half cycle (see FIG. 15c). In the method of turning ON / OFF every half cycle or cycle, if there is a shift from the power source voltage phase of the controlled object, the determined zero cross point will shift, and switching with voltage applied will cause noise generation and inrush current, which will have a negative effect on the controlled device and other devices connected to the same power source. In the phase control method, the ON / OFF time is changed within a half cycle starting from the phase 0 point, so the phase 0 point between the AC voltage zero-cross detection circuit structure and the controlled object must be matched.
[0030] <Embodiment 1: First Photocoupler (0102)> The "first photocoupler" (0102) is configured to output a signal L when the acquired AC power signal is positive, and to output a signal H when the acquired AC power signal is negative. A photocoupler is generally an element that integrates a light-emitting diode, which is a light-emitting element, and a phototransistor that is turned on in response to light emitted by the light-emitting diode, into one package. By using a photocoupler, it is possible to configure an LED section that operates on an AC power supply signal with a reduced voltage using a configuration that does not affect the AC voltage phase, such as a current-limiting resistor, and a circuit that operates on DC, such as a phototransistor, which is a light-receiving element for zero-crossing point detection, and a microcontroller, insulated from each other while preventing any phase shift with the AC power supply.
[0031] <Embodiment 1: Second Photocoupler (0103)> The "second photocoupler" (0103) is configured to output a signal H in response to the acquired AC power signal being positive, and to output a signal L in response to the acquired AC power signal being negative. In this embodiment, in FIG. 1 and FIG. 3 described later, the first photocoupler (0102) and the second photocoupler are illustrated as an integrated component as a two-circuit photocoupler, but a similar circuit configuration may be achieved by using each of them as a stand-alone component.
[0032] <Embodiment 1: Time difference acquisition unit (0104)> The "time difference acquisition unit" (0104) acquires a time difference between a first timing at which the signal of the second photocoupler switches from L to H and a second timing at which the signal of the first photocoupler switches from H to L in the same timing region in which the AC power supply signal is inverted from negative to positive, or / and It is configured to obtain "the time difference between the third timing at which the signal of the second photocoupler switches from H to L and the fourth timing at which the signal of the first photocoupler switches from L to H in the same timing region where the AC power supply signal is inverted positive and negative." For the first to fourth timings, see Figure 4. As shown in the schematic circuit configuration diagram of Figure 3 described later, this function can be easily obtained by using a commercially available microcomputer chip that includes a counter function for measuring pulse width. An example of this is the PIC16F1 series of microcomputer chips manufactured by Microchip Technology. It has the function of counting the pulse width of an external signal as an input signal or the time for one high-low cycle. For example, in a model of the PIC16F1 series, when the system frequency is 32MHz, four cycles are required to execute one instruction, so the timer count frequency is 32MHz / 4=8MHz. One cycle of a 50Hz AC power supply voltage signal is 20msec, and when measured at 8MHz, it becomes 160000 counts per cycle, which exceeds the upper limit of 65536 and cannot be measured with a counter that uses a 16-bit memory area. Therefore, if the signal is divided by 4 using the prescaler function (select from 1, 4, or 8 division), it becomes 40000 counts, which makes it possible to measure it with a 16-bit counter. In addition, in a general commercial AC single-phase 100V power supply (50Hz) in eastern Japan, the time between the photocoupler's ON / OFF threshold voltage of approximately 0.8V and 0V is approximately 25μs if the AC voltage waveform is an ideal sine wave. When measured with the 8MHz counter, it is approximately 200 counts, and even if divided by 4, it is approximately 50 counts, which is sufficient for measurement. When the AC power supply signal reverses between positive and negative, the counter of the microcomputer detects the fourth timing, which is the rising edge of the pulse at which the signal of the first photocoupler changes from L to H, as a trigger and starts counting. The counter of the microcomputer stops counting the pulse width when it detects the third timing, which is the falling edge of the pulse at which the second photocoupler changes from H to L, later. The time difference acquisition unit (0104) obtains the number of counts between the third timing and the fourth timing. Conversely, when the AC power supply signal is inverted from negative to positive, the counter of the microcomputer detects and starts counting the first timing, which is the rising edge of the pulse at which the signal of the second photocoupler changes from L to H, as a trigger, and stops counting the pulse width when the counter of the microcomputer detects the second timing, which is the falling edge of the pulse at which the signal of the first photocoupler changes from H to L. The time difference acquisition unit (0104) obtains the number of counts between the first timing and the second timing. The time difference acquisition unit (0104) may convert the counter clock frequency and the frequency division value when the counter counts and the obtained count number into time and transmit them to the zero cross timing acquisition unit (0105), or may transmit them as they are as count numbers. Transmitting them as count numbers can save processing time for multiplication and memory storage. In the following specification, the "time," "time difference," "timing," and "time length" measured by the counter may be expressed not only in units of time, but also in units of the counter count number or information derived from the count number unit (for example, an integer multiple of the count number), and may be interpreted as such. When the count number unit or information derived from the count number is not divisible when processing such as multiplying by 2, either rounding up or rounding down the fraction may be adopted. It is preferable to determine in advance how to handle the case where the fraction is not divisible.
[0033] <First embodiment: Zero cross timing acquisition unit (0105)> The "zero cross timing acquisition unit" (0105) is configured to acquire the timing of zero voltage of the AC power signal using a correction time length that is half the time length of the acquired time difference information. The time difference information, which is the rise / fall timing difference of the pulses of the first photocoupler and the second photocoupler acquired by the time difference acquisition unit, is multiplied by 2 and used to correct the zero cross point of the next half cycle of the AC power signal. As in the embodiment described later, when the AC power signal is inverted in polarity, 1 / 2 of the time difference is added to the fourth timing when the signal of the first photocoupler changes from L to H, to correct and output the zero cross pulse. Even if the zero cross point varies due to factors such as variations in the power supply frequency caused by fluctuations in power demand, the correction can be reflected in the half cycle ahead. In addition, due to the operating threshold voltage of the built-in light-emitting diode and the operating threshold voltage of the phototransistor that receives light, the photocoupler does not immediately start outputting a light receiving signal even when a voltage is applied from 0V, but starts outputting a light receiving signal when it reaches about 0.8V, depending on the product. Therefore, the first photocoupler and the second photocoupler have an ON delay time until they start outputting a light receiving signal even when the AC voltage starts to increase or decrease from 0V. In particular, when the first photocoupler and the second photocoupler are configured as a single combination, the ON delay times of both photocouplers may differ. The ON delay times of both photocouplers may be measured before use of the device, and a photocoupler ON delay time ratio information storage unit may be provided that stores photocoupler ON delay time ratio information, which is information indicating the ratio of the ON delay time lengths of the two photocouplers obtained (for example, a ratio of m:n or 1:k), and the obtained time length may be divided based on the photocoupler ON delay time ratio information to obtain a correction time length.
[0034] The method of outputting the zero-cross pulse depends on the specifications of the microcomputer used, but for example, as described above, only the time difference between the third timing and the fourth timing or the time difference between the first timing and the second timing is measured by a counter, and the correction time length obtained by multiplying the counter value by half is held. One method is to use a signal change in the photocoupler output at the first timing or the fourth timing approximately half a wavelength ahead of the AC power supply voltage signal or a natural number multiple of a half wavelength ahead as a trigger, and to change the signal potential of the zero-cross pulse between H potential and L potential when the count value equivalent to the held correction time length has advanced. For ease of understanding, it is preferable to set the signal potential of the zero-cross pulse to H potential during the period when the AC power supply signal is positive, and to set the signal potential of the zero-cross pulse to L potential during the negative period. Also, the monitoring of the reference timer count value is started after the device is started or at an appropriate timing after the device is started, the count value of the change point of the photocoupler output (first to fourth timing) is recorded, and the difference is multiplied by 1 / 2 to obtain the correction time length. There is also a method in which the signal change of the photocoupler output at the first timing or the fourth timing approximately half a wavelength ahead or a natural number multiple of half a wavelength ahead of the AC power supply voltage signal is used as a trigger, and the signal potential of the zero-cross pulse is changed between H potential and L potential when the count value equivalent to the held correction time length has advanced. If the AC power supply signal is positive at the start of detection, a DC positive predetermined voltage (for example, +3V) is started to be output from the output terminal, and a correction time length that is half the time length of the time difference information acquired by the zero-cross timing acquisition unit is used for correction after half a cycle, and the predetermined DC voltage being output is changed from positive (H potential) to 0V (L potential) at a predetermined timing, so that the zero-cross detection can be output. There is also a method of outputting a short rectangular pulse from an output terminal at a predetermined timing so that the rising edge of the pulse coincides with the zero crossing point, but in this specification, a method of switching the potential of the zero crossing pulse at a predetermined timing will be described. In addition, the correction length is applied half a wavelength ahead to obtain the zero crossing timing, but in the following explanation, when it is applied half a wavelength ahead, it can be interpreted as also being applied to a natural number multiple of half a wavelength ahead.
[0035] <Processing flow of embodiment 1> 2 is an operation flow chart of the AC voltage zero cross detection circuit structure of the embodiment 1. As shown in this figure, the operation method of the AC voltage zero cross detection circuit structure of the embodiment includes an AC power supply signal acquisition step (S0201), a fourth timing acquisition step (S0202a), a third timing acquisition step (S0202b), a first timing acquisition step (S0202c), a second timing acquisition step (S0202d), a time difference acquisition step (S0203), and a zero cross timing acquisition step (S0204). Each step will be described below.
[0036] Here, at the timing when the AC power supply waveform changes from positive to negative, The AC power signal acquisition step (S0201) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the fourth timing acquisition step (S0202a), a process is performed to acquire a fourth timing, which is the timing at which the AC power waveform changes from positive to negative, which is the same as a timing described later, and is the timing at which the signal rises from L to H, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; In the third timing acquisition step (S0202b), a process is performed to acquire a third timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from positive to negative, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative, and which is the same timing as the timing described above; In the time difference acquisition step (S0203), a process of acquiring time difference information which is information indicating a time difference between the fourth timing and the third timing is performed; In the zero cross timing acquisition step (S0204), a process is performed to acquire the zero cross timing of the AC power supply using this time difference information and any third timing or any fourth timing that follows the third timing and the fourth timing.
[0037] Here, at the timing when the AC power supply waveform changes from negative to positive, The AC power signal acquisition step (S0201) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the first timing acquisition step (S0202c), a process is performed to acquire a first timing, which is a timing at which the AC power waveform changes from negative to positive, which is the same as a timing described later, and is a timing at which the signal rises from L to H, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative; In the second timing acquisition step (S0202d), a process is performed to acquire a second timing, which is the same timing as the timing at which the signal falls from H to L when the AC power waveform changes from negative to positive, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative, when the AC power waveform changes from negative to positive; In the time difference acquisition step (S0203), a process is performed to acquire time difference information which is information indicating a time difference between the first timing and the second timing, In the zero cross timing acquisition step (S0204), a process is performed to acquire the zero cross timing of the AC power supply using this time difference information and any first timing or any second timing that follows the first timing and second timing. After the time difference acquisition step (S0203), if the acquired time difference information is within a normal range or is a value that can be clearly regarded as abnormal, such as a value equivalent to a half wavelength, it can be configured to determine that the information is abnormal and not use the calculated time difference information. In that case, the previously calculated time difference information can be used again, or the time difference can be treated as 0, assuming that there is no time difference. This is an operating method for causing the AC voltage zero cross detection circuit structure to execute a series of processes.
[0038] <Hardware configuration of embodiment 1> The hardware configuration of the structure in this embodiment will be described with reference to the drawings. Fig. 3 is a schematic diagram for explaining the circuit configuration of the AC voltage zero-cross detection circuit structure (0300) of embodiment 1. It is composed of an AC power supply (0301), a current limiting resistor (0302), a two-circuit photocoupler (0303), a microcomputer (0304), a counter (0305), a zero-cross pulse generator (0306), etc. A signal is obtained from the AC power supply (0301) to detect the zero crossing point, and the power supply from the AC power supply (0301) is switched based on the detected zero crossing point. It is preferable to ensure that the phase of the AC power supply signal for the zero crossing point used for detection and the AC power supply of the switching part are not shifted. The current limiting resistor is used to limit the current and voltage of the AC input to the photocoupler. The two-circuit photocoupler (0303) may be configured using a photocoupler for each circuit.
[0039] The microcontroller used is a commercially available one, but we assume that it has a built-in counter and a pulse generation function, like the PIC16F1 series mentioned above. The configuration of the microcontroller will be explained using Figure 11. The microcontroller (1100) is composed of a control circuit (1101), an arithmetic circuit (1102), a register (1103) made of RAM used for temporary storage, a data memory (1104) made of RAM for storing data, a clock generator (1105) for executing various operations of the microcontroller, a program memory (1106) made of non-volatile memory for storing various programs, a port control (1107) for controlling various ports, a timer based on pulses from the built-in clock or an external crystal oscillator, and a counter / timer (1108) with a counter function that starts counting when triggered by an external input, a serial communication (1109) for communicating with the outside, and an AD / DA converter (1110). Programs written in high-level languages such as C or assembler using program development software on a separate PC are written to the microcontroller using a dedicated tool. The programs to be written are stored in the program memory (1106) in the microcontroller. The program memory (1106) is a type of memory that retains records even without power and is rewritable, such as an EEPROM or flash memory. The programs stored in the program memory (1106) include a program that uses the rising and falling timing of the photocoupler output signal as a trigger to input the signal into the counter / timer (1108) to operate the counter for zero-cross detection, and a program that generates a zero-cross pulse based on the count number, which is the obtained time difference information. The output signal from the photocoupler is input to a counter / timer (1108), which detects the timing of a rising or falling edge and starts counting. The number of pulses of the reference clock is counted, and the corresponding register is counted up. When another rising or falling edge is detected, the counting stops. The calculation unit multiplies the obtained count by 1 / 2, and the result is stored in the data memory. The generated zero-cross pulse is corrected using the result and output. The purpose of the present invention is not to be violated even if the counter and pulse generation functions are external components to the microcontroller. It is preferable to integrate them in one microcontroller, because it is cheaper, smaller, and more convenient.
[0040] FIG. 4 shows signal waveforms at a, b, c, and d in the circuit of FIG. 3. The horizontal axis represents time, and the vertical axis represents voltage. The top point a represents the power supply signal voltage waveform, which is a sine wave at point a in FIG. 3, that is, the AC power supply (0301). When point a, which represents the voltage signal obtained by branching the AC voltage zero-cross detection circuit structure (0300) so as to have the same phase as the AC power supply supplied to the component to be controlled, is on the positive side, current flows through the first photocoupler (0303a) in the two-circuit photocoupler (0303), and the light-emitting diode begins to light up. The sine wave waveform at the top of FIG. 4 represents the voltage signal at point a, and the horizontal lines arranged to sandwich the zero cross (the intersection of the voltage 0V and the voltage signal) in the figure represent the ON / OFF threshold voltages of the first and second photocouplers. When the power supply signal (point a) is positive, the light-emitting diode in the first photocoupler (0303a) lights up and the phototransistor receives the light and turns ON, and point b is connected to 0V of the circuit via the phototransistor, resulting in an L potential. Conversely, when the power supply signal (point a) becomes negative, the light-emitting diode in the first photocoupler (0303a) does not light up and the phototransistor turns OFF, so point b is supplied with Vcc potential (H potential), which is a positive direct current potential, via resistor R, resulting in an H potential. When the power supply signal (point a) is negative, the light-emitting diode in the second photocoupler (0303b) lights up and the phototransistor turns ON, so point c changes from H potential to L potential. It is possible to configure the circuit so that when both photocouplers are ON, the potentials of points b and c become H potential instead of L potential, but this would increase the number of components such as transistors as shown in Figure 14, which is a technology from Reference 1.
[0041] The first photocoupler (0303a) and the second photocoupler (0303b) are alternately turned on depending on whether the AC waveform of the power supply is positive or negative, and the potentials at points b and c change in a square wave shape. Figure 4 shows the first timing to the fourth timing, which are the switching timings between the H potential and the L potential of the first photocoupler output and the second photocoupler output described above. The counter (0305) measures the time between the rising and falling edges of the two square wave pulses, "first timing-second timing" or "third timing-fourth timing", and calculates the timing difference. Due to the threshold voltage at which the light-emitting diode turns on and the threshold voltage at which the phototransistor turns on, when the power supply signal switches from negative to positive and from positive to negative, it does not turn on and off correctly at a voltage of 0V. Therefore, when comparing the pulse waveforms at points b and c near the point where the power supply voltage becomes 0V, time difference information t is generated between the rising and falling edges. The time difference information t may be in the form of a count value in a counter.
[0042] The obtained time difference information t is multiplied by 1 / 2 in the zero cross pulse generation (0306) and the value is used to correct the rise and fall timing of the zero cross pulse half a wavelength ahead or a natural number multiple of a half wavelength ahead. Applying correction to a zero crossing point that is half a wavelength away or a natural number multiple of a half wavelength away means, for example, finding half the value of the time difference information t when the power supply signal waveform changes from negative to positive, and then using that value to correct the zero crossing point that is half a wavelength away or a natural number multiple of a half wavelength away where the power supply signal waveform next changes from positive to negative. In addition, the system can be configured to accumulate and hold half the value of the calculated time difference information, and if the just calculated value is clearly abnormal (for example, time difference information for half a wavelength), it can be configured not to use the half value of the time difference information that showed the abnormal value, but to use a value that is preset as a provisional correction time length or the previous value instead of using it for correction. The zero-cross pulse is output to a switch section outside the AC power supply voltage zero-cross detection circuit structure (0300). The ON / OFF timing of the switch section, which is made up of switching elements such as thyristors and optical MOS-FET relays, is controlled using the zero-cross pulse signal. By turning the switch section ON / OFF at the zero-cross point (the rising or falling edge of the zero-cross pulse), it is possible to suppress noise generation and inrush current generation in the output, and to make the starting point of control more accurate in output adjustment by phase control.
[0043] With a zero-crossing point detection method that uses a full-wave rectifier and one photocoupler, there is a concern that the detection of the zero-crossing point may be off due to a non-ideal waveform after rectification. However, by using two photocouplers to detect positive / negative and negative / positive changes based on the unrectified AC power supply voltage waveform, the zero-crossing point can be calculated with high precision.
[0044] <Embodiment 2: Mainly Claim 2> The characteristics of the two-circuit photocoupler are almost equal <Overview of the Second Embodiment> The second embodiment will be described. Based on the first embodiment, the output of the first photocoupler and the second photocoupler is switched from the signal L to the signal H. Ahead of schedule Time or / and signal H switches to signal L delay The times are arranged to be approximately equal. Due to the threshold voltage required for the light emitting diode constituting the photocoupler to emit light and the threshold voltage required for the photodiode, which is the light receiving element, to turn on, a time difference occurs between 0V and the operating threshold voltage, and a delay time occurs from the zero cross point until the photocoupler turns on. Conversely, when the voltage gradually drops from a voltage exceeding the operating threshold toward 0V, the photocoupler turns off when it reaches the threshold voltage just before 0V (zero cross point), so it switches from ON to OFF ahead of the zero cross point. The feature of the second embodiment is that these delay or advance times are approximately equal. The above functional blocks are merely an example for implementing the present invention, and functions may be omitted or new functions may be added as appropriate within the scope that does not contradict the problems to be overcome by the present invention and its effects.
[0045] The functional configuration of the second embodiment will be described below with reference to FIG. <Embodiment 2: First photocoupler (0102) and second photocoupler (0103)> The delay time when the output of the "first photocoupler" (0102) switches from signal H to signal L and the delay time when the output of the "second photocoupler" (0103) switches from signal L to signal H Ahead of scheduleTime, the output of the "first photocoupler" (0102) is a signal L Signal from H The advance time for switching to and the output of the "second photocoupler" (0103) are H Signal from L Switch to delay The times are arranged to be approximately equal. In this embodiment, as shown in FIG. 1, the first photocoupler (0102) and the second photocoupler (0103) are components sealed in one package. In FIG. 3 as well, the first photocoupler (0303a) and the second photocoupler (0303b) are illustrated as an integrated component, a two-way photocoupler (0303). For example, a photocoupler TLP2105 manufactured by Toshiba Electronic Devices & Storage Corporation can be used. Although a similar circuit configuration may be achieved using individual components, it is empirically easier to obtain photocouplers with approximately equal delay times and / or advance times when components from the same manufacturing lot by the same manufacturer are used. The delay time when the first photocoupler (0102) switches from signal H to signal L and the delay time when the output of the second photocoupler (0103) switches from signal L to signal H Ahead of schedule At this time, the output of the first photocoupler (0102) is L Signal from H The advance time for switching to the second photocoupler (0103) is H Signal from L Switch to delay If the times are roughly equal, the accuracy of the calculated value can be improved when calculating the "time difference between the first timing and the second timing" or the "time difference between the third timing and the fourth timing" using a counter and multiplying the time difference information by 1 / 2 to calculate the zero crossing point. This is because the time difference information is the sum of the delay time and / or advance time of the first photocoupler and the second photocoupler. For this reason, when using photocouplers that are individual components, it is preferable to set criteria and select photocouplers whose ON delay times and / or ON advance times are approximately equal before use. In the case of a dual-circuit photocoupler, the light-emitting diode and phototransistor are manufactured by the same manufacturer, and it is expected that the two circuits have similar characteristics. Also, there is little concern that the characteristics variation between photocouplers will increase due to factors such as heat history during mounting, mounted resistors, and wiring loads on the board, as occurs when each photocoupler is soldered onto a board separately.
[0046] The process flow and hardware configuration of the second embodiment are similar to those of the first embodiment, and therefore will not be described.
[0047] Since the first photocoupler and the second photocoupler have approximately equal ON delay times and / or ON advance times, the proportions that the first photocoupler and the second photocoupler account for in the time difference between the timing at which the signals of the first photocoupler and the second photocoupler switch between L and H near the timing at which the AC power supply voltage switches between positive and negative can be made equal, and the zero crossing point can be calculated with high accuracy.
[0048] <Embodiment 3: Mainly Claim 3> Correction time length acquisition unit <Overview of the Third Embodiment> A third embodiment will be described. Based on the first or second embodiment, the third embodiment is configured to include a corrected time length acquisition unit that statistically processes a plurality of acquired time differences to acquire a corrected time length.
[0049] <Configuration of embodiment 3> Hereinafter, the AC voltage zero cross detection circuit structure according to the third embodiment of the present invention will be described in the order of functional configuration, processing flow, and circuit configuration, based on the first embodiment. Note that the same effects can be obtained based on the second embodiment. 5 is a functional block diagram showing an embodiment of the AC voltage zero cross detection circuit structure of this embodiment. As shown in the figure, the AC voltage zero cross detection circuit structure (0500) is composed of an AC power supply signal acquisition unit (0501), a first photocoupler (0502), a second photocoupler (0503), a time difference acquisition unit (0504), a correction time length acquisition unit (0505), and a zero cross timing acquisition unit (0506). Since the components other than the correction time length acquisition unit (0505) are the same as those in the first embodiment, their explanations will be omitted. The above functional blocks are merely an example for implementing the present invention, and functions may be omitted or new functions may be added as appropriate within the scope that does not contradict the problems to be overcome by the present invention and its effects.
[0050] <Third embodiment: Correction time length acquisition unit (0505)> The 'corrected time length acquisition unit' (0505) is configured to perform statistical processing on a plurality of acquired time differences to acquire a corrected time length. To make a correction, for example, the correction time length found when the power supply signal waveform changes from negative to positive can be used to find the zero crossing point half a wavelength or a natural number multiple of a half wavelength away when the power supply signal waveform next changes from positive to negative. As a statistical process for obtaining the correction time length, the correction time length obtained by multiplying the "time difference between the first timing and the second timing" or the "time difference between the third timing and the fourth timing" by 1 / 2 can be stored and held, and the correction time length can be calculated by averaging the past data up to that point. There are also other methods, such as setting a predetermined number of times instead of all past data and calculating the average from only the past predetermined number of times, or discarding old data that is not used for calculating the average. If all past data is not used, the correction time length can be calculated by averaging only the correction time lengths accumulated so far until a predetermined number of times are accumulated, or the correction time length calculated each time without averaging can be used as is until a predetermined number of times are accumulated. In addition to calculating a simple average of past correction time lengths, it is also possible to calculate the variation in correction time lengths over a predetermined number of times in the past, and if the variation is outside the expected maximum or minimum value (e.g., equivalent to 3σ), it is determined that the value is an abnormal state due to disturbance such as noise, and the value is not used and is excluded. If the calculated correction time length is an abnormal state, the same value as the previous time can be used as a provisional correction time length, a preset ideal value can be used as the provisional correction time length, or zero cross output can be prevented. Other statistical methods such as t-tests can be used to determine whether or not there is an abnormal state, such as the presence or absence of disturbance. When calculating the correction time length using past correction time lengths, or when verifying validity, the extent to which past correction time lengths should be used can be determined by, for example, reducing the number of correction time lengths when the variation in the correction time lengths is small, and increasing the number of correction time lengths when the variation is large, or dynamically reducing the number of correction time lengths when the load of other tasks that the microcomputer used in the calculation must process increases, and dynamically restoring the number to the original number when the load decreases.
[0051] FIG. 6 shows signal waveforms at each point of the circuit structure in the third embodiment (see a, b, and c in the circuit diagram in FIG. 8). Assuming a clean steady state after the circuit structure has been started and operating in a steady state for a while, two periods are shown from when the AC power supply voltage signal becomes 0V at the timing when it changes from negative to positive. F0, D0, F1, and D1 on the vertical axis represent zero crossing points. Fn (n=0, 1,) is when the AC power supply signal changes from negative to positive, and Dn (n=0, 1,) is when it changes from positive to negative. An, Bn, Cn, and En on both sides of Fn and Dn respectively indicate the points at which the ON / OFF threshold voltages of the first photocoupler and the second photocoupler are reached as shown in FIG. 6. An, Bn, Cn, and Dn correspond to the first timing, second timing, third timing, and fourth timing in FIG. 4, respectively. For example, near point F0 where the AC power supply voltage signal changes from negative to positive, a time difference acquisition unit (0504) obtains time difference information t1 between A0 where the second photocoupler turns OFF and the output changes, and B0 where the first photocoupler turns ON and the output changes, and a zero-cross timing acquisition unit (0506) calculates a value by multiplying the time difference information t1 by 1 / 2. By adding this to the fourth timing (point C0) where the first photocoupler turns OFF and the output changes from L to H at the fall of the AC power supply voltage signal from positive to negative in the next half wavelength, it is possible to obtain the zero-cross timing (i.e., the zero-cross point) earlier than real time. A time difference acquisition unit (0504) acquires time difference information t2 between C0, where the first photocoupler turns OFF and the output changes, and E0, where the second photocoupler turns ON and the output changes, near point D0, where the AC power signal changes from positive to negative. A zero cross timing acquisition unit (05) calculates a value by multiplying the time difference information t2 by 1 / 2, and adds this value to the first timing (point A1), where the second photocoupler turns OFF and the output changes from L to H at the rising edge of the AC power signal from negative to positive in the next half wavelength, so that the zero cross timing (i.e., the zero cross point) can be obtained earlier than the actual zero cross point is reached. In the case of a general commercial power supply of single phase 100V 50Hz, the time between the photocoupler's ON / OFF threshold voltage of approximately 0.8V and 0V is approximately 25μs when the AC voltage waveform is an ideal sine wave. This can be obtained approximately 25μs earlier. If the ON delay time length and / or ON advance time length of the first photocoupler and the second photocoupler are approximately equal, the contribution of both photocouplers to the time difference (for example, t2) will be equal, and the accuracy of the value obtained by multiplying the time difference, which is the correction time length, by 1 / 2 can be improved. In the above explanation, the time difference information such as t1, t2, etc. may be in the form of a count value of a counter provided in a microcomputer. Although the zero cross timing is obtained by applying the correction length to a half wavelength ahead, it may be applied to a natural number multiple of a half wavelength ahead instead of a half wavelength ahead. It is also possible to determine whether the obtained correction time length is appropriate using a statistical method. It is possible to eliminate those with large variations due to the influence of disturbances such as noise.
[0052] <Processing flow of embodiment 3> 7ab is an operation flow chart of the AC voltage zero cross detection circuit structure of the third embodiment. The method includes an AC power signal acquisition step (S0701), a fourth timing acquisition step (S0702a), a third timing acquisition step (S0702b), a first timing acquisition step (S0702c), a second timing acquisition step (S0702d), a time difference acquisition step (S0703), a correction time length acquisition step (S0704), a correction time length holding sub-step (S0705) in the correction time length acquisition step, a correction time length validity determination step (S0706), a provisional correction time length output step (S0707), and a zero cross timing acquisition step (S0708). Each step will be described below.
[0053] First, a description will be given with reference to FIG. Here, at the timing when the AC power supply waveform changes from positive to negative, The AC power signal acquisition step (S0701) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the fourth timing acquisition step (S0702a), a process is performed to acquire a fourth timing, which is the timing at which the AC power waveform changes from positive to negative, which is the same as the timing described below, and is the timing at which the signal rises from L to H, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; In the third timing acquisition step (S0702b), a process is performed to acquire a third timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from positive to negative, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative, and which is the same timing as the timing described above; In the time difference acquisition step (S0703), a process of acquiring time difference information which is information indicating a time difference between the fourth timing and the third timing is performed; In the correction time length acquisition step (S0704), a correction time length obtained by multiplying the obtained time difference information by 1 / 2 and a correction time length stored in the past are statistically processed to calculate a correction time length candidate. In the zero cross timing acquisition step (S0708), a process is performed to acquire the zero cross timing of the AC power supply using the time difference information and any third timing or any fourth timing that follows the third timing and fourth timing.
[0054] Here, at the timing when the AC power supply waveform changes from negative to positive, The AC power signal acquisition step (S0701) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the first timing acquisition step (S0702c), a process is performed to acquire a first timing, which is a timing at which the AC power waveform changes from negative to positive, which is the same as a timing described later, and is a timing at which the signal rises from L to H, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative; In the second timing acquisition step (S0702d), a process is performed to acquire a second timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from negative to positive, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative, and which is the same timing as the timing described above, when the AC power waveform changes from negative to positive; In the time difference acquisition step (S0703), a process is performed to acquire time difference information which is information indicating a time difference between the first timing and the second timing, In the correction time length acquisition step (S0704), a correction time length obtained by multiplying the obtained time difference information by 1 / 2 and a correction time length stored in the past are statistically processed to calculate a correction time length candidate. In the zero cross timing acquisition step (S0708), a process is performed to acquire the zero cross timing of the AC power supply using this time difference information and any first timing or any second timing that follows the first timing and second timing.
[0055] In the corrected time length acquisition step (S0704), an average of a predetermined number of past times can be used as a statistical process. As shown in Fig. 7b, the corrected time length acquisition unit (S0704) may include a corrected time length holding sub-step (S0705) for holding previously acquired corrected time lengths. In the corrected time length holding sub-step (S0705), the obtained corrected time lengths are added and held, but the corrected time lengths determined to be in an abnormal state as described below are not held, and the provisional corrected time lengths are not held either. It is preferable to provide a correction time length determination step (S0706) for determining whether the value obtained in the time difference acquisition step (S0703) and multiplied by 1 / 2 the value calculated in the correction time length acquisition step (S0704) is within a reasonable range. This determination is made using a statistical method such as a t-test. If the value is reasonable, it is used as the correction time length, and if it is not reasonable, a provisional correction time length is output in a provisional correction time length output step (S0707). The provisional correction time length may be determined from an ideal value, or the correction time length used previously may be used. However, if a provisional correction time length is used, the value is not retained. This is because it will result in erroneous data when a statistical method is used to determine the next correction time length. The AC voltage zero cross detection circuit structure is operated according to the above-mentioned process flow.
[0056] <Hardware configuration of embodiment 3> The hardware configuration of the structure in this embodiment will be described with reference to Fig. 8. Fig. 8 is a schematic diagram for explaining the circuit configuration of the AC voltage zero cross detection circuit structure (0800) in this embodiment. It is composed of an AC power supply (0801), a current limiting resistor (0802), a two-circuit photocoupler (0803), a microcomputer (0804), a counter (0805), a zero cross pulse generator (0806), and a correction time length acquirer (0807). The difference from the example in Fig. 3 is that the correction time length acquisition (0807) is provided within the zero cross pulse generation (0806). As described above, the correction time length acquisition (0807) can be used to obtain past correction time lengths, accumulate and hold them, and calculate the next correction time length from the correction time lengths for a predetermined number of times that have been held in the past, or to determine whether the obtained correction time length is in an abnormal state based on the correction time lengths for a predetermined number of times in the past, and if normal, use it as the correction time length when calculating the next zero cross point.
[0057] In contrast to the first embodiment, in the third embodiment, the zero crossing point is calculated by halving the most recently obtained time difference information and calculating the next correction time length based on the past correction time lengths, and by eliminating abnormal states due to disturbances or noise, it is possible to determine the zero crossing point with higher accuracy.
[0058] <Embodiment 4: Mainly Claim 4>: When the photocoupler is ON, the output becomes L. <Overview of embodiment 4> A fourth embodiment will be described. Based on any one of the first to third embodiments, the first and second photocouplers configure an AC voltage zero-cross detection circuit structure such that the output is L when the photocoupler is ON.
[0059] <Configuration of embodiment 4> Hereinafter, an AC voltage zero cross detection circuit structure according to embodiment 4 of the present invention will be described based on embodiment 1. The same effects can be obtained even if embodiment 2 or 3 is used as a base. The functional configuration, processing flow, and circuit configuration will be described in that order. The functional configuration is the same as that of the first embodiment. A description will be given with reference to Fig. 1. As shown in Fig. 1, the AC voltage zero-cross detection circuit structure (0100) is composed of an AC power supply signal acquisition unit (0101), a first photocoupler (0102), a second photocoupler (0103), a time difference acquisition unit (0104), and a zero-cross timing acquisition unit (0105). The parts that differ from the first embodiment will be described. The above functional blocks are merely an example for implementing the present invention, and functions may be omitted or new functions may be added as appropriate within the scope that does not contradict the problems to be overcome by the present invention and its effects.
[0060] <Embodiment 4: First photocoupler (0102)> The "first photocoupler" (0102) is configured to output a signal L when the acquired AC power signal is positive and to output a signal H when the acquired AC power signal is negative, and is further configured such that the output signal becomes L when the photocoupler is ON.
[0061] <Embodiment 4: Second Photocoupler (0103)> The "second photocoupler" (0103) is configured to output a signal H when the acquired AC power signal is positive and to output a signal L when the acquired AC power signal is negative, and is further configured such that the output signal becomes L when the photocoupler is ON. When configuring the circuit so that the output becomes H when the photocoupler is ON, this can be achieved by adding one transistor and one resistor to the output of the photocoupler (light receiving element side), as shown in the circuit of prior art document 1 in Figure 14. In the case of the present invention, two photocouplers are used, so two additional transistors and two additional resistors are required, which increases the number of parts and the cost. For this reason, it is preferable to configure the output so that the output becomes L when the photocoupler is ON.
[0062] <Fourth embodiment: Time difference acquisition unit (0104)> The "time difference acquisition unit" (0104) is "the time difference between the first timing at which the second photocoupler turns OFF and the output signal switches from L to H and the second timing at which the first photocoupler turns ON and the output signal switches from H to L in the same timing region in which the AC power supply signal is inverted from negative to positive" or / and, It is configured to acquire the time difference between a third timing at which the second photocoupler turns ON and the output signal switches from H to L, and a fourth timing at which the first photocoupler turns OFF and the output signal switches from L to H, in the same timing region where the AC power supply signal is inverted positive and negative.
[0063] <Processing flow of embodiment 4> The process flow is also almost the same as that of the first embodiment. An operation flow chart of the AC voltage zero cross detection circuit structure of the first embodiment will be described with reference to FIG. 2. As shown in this figure, the operation method of the AC voltage zero cross detection circuit structure of the embodiment includes an AC power supply signal acquisition step (S0201), a fourth timing acquisition step (S0202a), a third timing acquisition step (S0202b), a first timing acquisition step (S0202c), a second timing acquisition step (S0202d), a time difference acquisition step (S0203), and a zero cross timing acquisition step (S0204). The following describes the differences between each step and the first embodiment.
[0064] Here, at the timing when the AC power supply waveform changes from positive to negative, The AC power signal acquisition step (S0201) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the fourth timing acquisition step (S0202a), a process is performed to acquire a fourth timing, which is the timing at which the AC power waveform changes from positive to negative from a first photocoupler that is turned ON and outputs an output signal L when the acquired AC power signal is positive, and is turned OFF and outputs an output signal H when the acquired AC power signal is negative, and is the same timing as a timing described later, and is the timing at which the first photocoupler is turned OFF and the output signal rises from L to H; In the third timing acquisition step (S0202b), a process is performed to acquire a third timing, which is the timing when the second photocoupler turns ON and the output signal falls from H to L when the acquired AC power signal is positive, from a second photocoupler which turns OFF and outputs an output signal H when the acquired AC power signal is positive, and turns ON and outputs an output signal L when the acquired AC power signal is negative, when the AC power waveform changes from positive to negative, and which is the same timing as the timing described above. In the time difference acquisition step (S0203), a process of acquiring time difference information which is information indicating a time difference between the fourth timing and the third timing is performed; In the zero cross timing acquisition step (S0204), a process is performed to acquire the zero cross timing of the AC power supply using this time difference information and any third timing or any fourth timing that follows the third timing and the fourth timing.
[0065] Here, at the timing when the AC power supply waveform changes from negative to positive, The AC power signal acquisition step (S0201) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the first timing acquisition step (S0202c), a process is performed to acquire a first timing, which is the timing when the AC power waveform changes from negative to positive and is the same as the timing described below, from a second photocoupler that is turned OFF and outputs an output signal potential H when the acquired AC power signal is positive, and that is turned ON and outputs an output signal potential L when the acquired AC power signal is negative, and is the timing when the second photocoupler is turned OFF and the output signal rises from L to H, In the second timing acquisition step (S0202d), a process is performed to acquire a second timing, which is the timing at which the output signal of the first photocoupler falls from H to L when the AC power waveform changes from negative to positive, from a first photocoupler which turns ON and outputs an output signal potential L when the acquired AC power signal is positive, and turns OFF and outputs an output signal potential H when the acquired AC power signal is negative, and which is the same timing as the timing described above, when the AC power waveform changes from negative to positive; In the time difference acquisition step (S0203), a process is performed to acquire time difference information which is information indicating a time difference between the first timing and the second timing, In the zero cross timing acquisition step (S0204), a process is performed to acquire the zero cross timing of the AC power supply using this time difference information and any first timing or any second timing that follows the first timing and second timing. After the time difference acquisition step (S0203), if the acquired time difference information is within a normal range or is a value that can be clearly considered abnormal, such as a value equivalent to a half wavelength, it can be configured to determine that the information is abnormal and not use the calculated time difference information. In that case, the previously calculated time difference information can be used again, or a previously set ideal value can be processed as a provisional correction time length. The ideal value is, for example, a value calculated based on the ON / OFF threshold voltage in the photocoupler specifications, which is the counter value of the microcomputer from 0V to when the photocoupler turns ON, and is used by writing it in advance to the memory area in the microcomputer together with other operating programs. This is an operating method for causing the AC voltage zero cross detection circuit structure to execute a series of processes.
[0066] <Fourth embodiment: Hardware configuration> The hardware configuration of the structure in this embodiment will be described with reference to Fig. 3, as in the first embodiment. When the first photocoupler or the second photocoupler is turned ON (i.e., when the light-emitting diode is lit and the phototransistor receives light and turns ON), the circuit in Fig. 3 is configured so that point b or point c in the figure changes from H potential to L potential. Note that the circuit can also be configured so that the potential of point b or point c becomes H potential instead of L potential when the photocoupler is turned ON, but since this increases the number of parts such as transistors and resistors as shown in Fig. 14, which is the technology of Literature 1, the configuration as shown in Fig. 3 is preferable.
[0067] <Embodiment 5: Mainly Claim 5>: Preemptive means <Outline of the fifth embodiment> The fifth embodiment will be described. Based on any one of the first to fourth embodiments, a zero-cross timing acquisition unit is provided with a pre-acquisition means so that the zero-cross timing at which the voltage becomes 0V is acquired using the timing at which the signal of the first photocoupler rises from L to H when the AC power supply signal inverts from positive to negative, and is acquired using the timing at which the second photocoupler rises from L to H when the AC power supply signal inverts from negative to positive.
[0068] <Configuration of embodiment 5> Hereinafter, the AC voltage zero cross detection circuit structure according to the fifth embodiment of the present invention will be described in the order of functional configuration, processing flow, and circuit configuration, based on the third embodiment. The same effects can be obtained based on the first, second, and fourth embodiments. 9 is a functional block diagram showing an embodiment of the AC voltage zero cross detection circuit structure of this embodiment. As shown in the figure, the AC voltage zero cross detection circuit structure (0900) is composed of an AC power supply signal acquisition unit (0901), a first photocoupler (0902), a second photocoupler (0903), a time difference acquisition unit (0904), a correction time length acquisition unit (0905), a zero cross timing acquisition unit (0906), and a look-ahead means (0907). Since the elements other than the look-ahead means (0907) are the same as those in the third embodiment, a description thereof will be omitted. The above functional blocks are merely an example for implementing the present invention, and functions may be omitted or new functions may be added as appropriate within the scope that does not contradict the problems to be overcome by the present invention and its effects.
[0069] <Embodiment 5: Preemptive Means (0907)> The "pre-acquisition means" (0907) is configured in the zero-cross timing acquisition unit (0906) so as to acquire the zero-cross timing, which is the timing of 0V voltage, by using the timing when the signal of the first photocoupler rises from L to H when the AC power supply signal inverts from positive to negative, and to acquire the zero-cross timing by using the timing when the signal of the second photocoupler rises from L to H when the AC power supply signal inverts from negative to positive. The acquisition of zero cross timing by the anticipation means (0907) will be described with reference to FIG. 6. FIG. 6 shows signal waveforms at each point (a, b, c, d) of the circuit structure in FIG. 8. F0, D0, F1, and D1 on the vertical axis represent zero cross points. F0 is when the AC power signal goes from negative to positive. n (n=0, 1,), and when it goes from positive to negative, it is Dn(n=0, 1,). n and D n A on both sides of n , B n , C n , E n indicate the points at which the ON / OFF threshold voltages of the first and second photocouplers are reached, as shown in the figure. For example, near point F0 where the AC power supply signal changes from negative to positive, the time difference t1 between A0 where the second photocoupler turns OFF and the output changes, and B0 where the first photocoupler turns ON and the output changes, is obtained by the correction time length acquisition unit (0905), and 1 / 2 of that t1 is added to the timing where the first photocoupler turns OFF and the output changes from L to H at the falling edge of the AC power supply signal from positive to negative in the next half wavelength, thereby making it possible to obtain the zero-cross timing (i.e., the zero-cross point) earlier than real time. Near the point D0 where the AC power supply signal changes from positive to negative, the time difference t2 between C0 where the first photocoupler turns OFF and the output changes, and E0 where the second photocoupler turns ON and the output changes is obtained by a correction time length acquisition unit (0905). By adding 1 / 2 of the obtained t2 to the timing where the second photocoupler turns OFF and the output changes from L to H at the rising edge of the AC power supply signal from negative to positive in the next half wavelength, the zero cross timing (i.e., the zero cross point) can be obtained earlier than the actual zero cross point is reached. For example, the microcontroller's operation is to start counting in a counter when the output of the first photocoupler at C0 changes from signal L to signal H, and to halt counting when the output of the second photocoupler at E0 changes from signal H to signal L. The obtained count value is halved, and the average count value is calculated as the correction time length using a predetermined number of past correction time lengths (count values) that are held. The operation is to change the zero-cross pulse signal potential from L to H when the calculated correction time length (count value) has elapsed from the timing when the output of the second photocoupler at A1, half a wavelength ahead, changes from signal L to signal H. If the ON delay time length and / or ON advance time length of the first photocoupler and the second photocoupler are approximately equal, the contributions of both photocouplers to the time difference (for example, t2) will be equal, and the accuracy of the value obtained by multiplying the time difference, which is the correction time length, by 1 / 2 will be improved.
[0070] The timing at which the output signal of the first photocoupler or the second photocoupler changes from H to L is called T na The timing when the output signal of the second photocoupler or the first photocoupler changes from L to H is T nb n starts from 1 with an arbitrary time as the starting point, and is used to number and distinguish the timing when the photocoupler output signal changes. 1a , T 1b , T 2a , T 2b ,,,T (n-1)a , T (n-1)b , T na , T nb , T (n+1)a , T (n+1)b , and so on. The time difference between the timings is t n Then, tn can be expressed as follows: t n =T nb -T na The average time difference between n timings, Δt n teeth, (t1+t2+t3+…+t n―2 +t n-1 +t n) / n = Δt n becomes When calculating the correction time length by halving the time difference, Δt n / 2 = Δt n ' The zero-crossing point at half a wavelength ahead is obtained by the following formula. Zero (n+1) = T (n+1)a + Δt n ' When obtaining the correction time length based on the time difference between timings at the n-th point, n average values are calculated, but it may also be possible to trace back a predetermined number k times to the past from the n-th point. 1 ≤ k < n. This is because as n increases, the data retention memory area for the past correction time length increases and the processing load also increases.
[0071] Next, the verification of the validity of the obtained correction time length Δt n ' will be explained using the t-test as an example. Let the number of samples used for verification be m. (1 ≤ m < n) The t-value in the t-test is t = (average of m - Δt n ) / (standard deviation / √m) and can be expressed as. Calculate the p-value, and if it is 5% or less, which is generally used as the significance level, it is judged to be valid. The number m of correction time lengths used for verification may be dynamically reduced, for example, when the deviation of the correction time length is small or when the load increases including other processes of the microcomputer.
[0072] Hereinafter, the case of performing a t-test using the past 10 correction time lengths will be explained as an example, but it is not limited to 10, and it may be more or less. The zero-crossing point F0 at the leftmost point in Fig. 6 is at the start point of the circuit operation, so the correction time length has not been calculated yet. The change points A0, B0 of the waveforms of the first photocoupler output and the second photocoupler output are due to the ON / OFF thresholds of the respective photocouplers. For a two-circuit photocoupler, it can be expected that the ON / OFF thresholds are substantially equal. A n , B n , C n , En The time (count value) at A n , B n , C n , E n The time difference information (count value) at each zero crossing point is divided by 2 to get T Fn , T Dn is expressed by the following formula: T F0 =(B0-A0) / 2 T F1 =(B1-A1) / 2 … T Fn =(B n -A n ) / 2 n=1,2,3,… T D0 =(E0-C0) / 2 T D1 =(E1-C1) / 2 … T Dn =(E n -C n ) / 2 n=1,2,3,… When estimating each average value, if we refer to the past 10 samples, The estimated upper and lower limits of the variation in the correction time length are given as follows: T FnL,H =T Fn ±t(10-1,0.05)×(V F / (10-1)) (1 / 2) T DnL,H =T Dn ±t(10-1,0.05)×(V D / (10-1)) (1 / 2) t(10-1,0.05) is the correction time length Δt n ' represents the test quantity of the t-test at a significance level of 5% for the past 10 samples, and V F , V D represents the respective variance values. Therefore, in the above two equations, T FnL is the lower limit estimate based on the correction time length calculated at the Fn point, T FnHrepresents the upper limit estimate when there is variation. It is a form of verification to see if it is within the range that includes the deviation from the average value of the past 10 items. Correction time length T Fn and T Dn A n and C n The value added to this becomes the zero crossing point. F n Corrected time length T obtained at point Fn From the lower and upper estimates of F n E half wavelength ahead of the point n The point is C n It is expected that the points are within the range of the following formula. n Similarly, the point D is half a wavelength ahead. n Corrected time length T obtained at point Dn It is expected that the range will be within the following formula from the lower and upper estimates of C n +2T FnL <E n <C n +2T FnH A n +T Dn-1L n n +2T Dn-1H If it is not within the range of the above formula, F n Or D n At this point, it is assumed that a disturbance such as noise has occurred, and the zero cross pulse is not corrected using the value calculated by statistical processing. In the above case, a provisional correction time length is applied, but the procedure is determined in advance, such as using a provisional correction time length determined from an ideal value, or applying the previous correction time length. If correction is not performed using the calculated correction time length, the value is not retained even if the provisional correction time length is applied. This is because it is not used when performing statistical processing based on the retained past correction time lengths to calculate the next correction time length and to evaluate the validity of the calculated correction time length.
[0073] The significance level of 5% in the above explanation corresponds to a 5% defect rate (95% good products, equivalent to 2σ). The oversight rate is usually expected to be about twice as high as a 5% defect rate, so it is 10%. Therefore, it is believed that by looking at 10 runs, it is possible to eliminate any products that are significantly out of line. Although the correction time length of the past 10 times was referenced, it is not limited to 10 times. When performing statistical processing, the more samples there are, the more accurate the variation and the higher the accuracy. However, if the number of samples is increased, the correction starts later even if a fluctuation occurs, the amount of data to be stored increases, the memory area increases, and the amount of memory used temporarily during calculation increases, which increases the cost of parts. There are also disadvantages such as an increase in the calculation load on the CPU and the calculation time required, which is a trade-off with accuracy. The calculation load of the microcontroller may be monitored and the number of times the past correction time length used in the statistical method is referenced may be dynamically changed. In that case, it is advisable to determine the range of the minimum and maximum numbers. Also, depending on the frequency of occurrence of a situation where the value obtained by multiplying the obtained time difference by 1 / 2 cannot be used due to the influence of disturbances on the power signal waveform, the number of past correction time lengths to be referenced may be increased or decreased. Generally, the number of samples for statistical processing is around 30, but the designer can select the number of samples as appropriate.
[0074] <Processing flow of embodiment 5> 10 is an operation flowchart of the AC voltage zero-cross detection circuit structure of embodiment 5. The circuit has an AC power signal acquisition step (S1001), a fourth timing acquisition step (S1002a), a third timing acquisition step (S1002b), a first timing acquisition step (S1002c), a second timing acquisition step (S1002d), a time difference acquisition step (S1003), a correction time length acquisition step (S1004), a zero-cross timing acquisition step (S1005), and a look-ahead sub-step (S1006) in the zero-cross timing acquisition step. Each step will be described below.
[0075] Here, at the timing when the AC power supply waveform changes from positive to negative, The AC power signal acquisition step (S1001) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the fourth timing acquisition step (S1002a), a process is performed to acquire a fourth timing, which is the timing at which the AC power waveform changes from positive to negative, which is the same as the timing described below, and is the timing at which the signal rises from L to H, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; In the third timing acquisition step (S1002b), a process is performed to acquire a third timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from positive to negative, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative, and which is the same timing as the timing described above; In the time difference acquisition step (S1003), when the AC power waveform changes from positive to negative, a process of acquiring time difference information which is information indicating a time difference between a third timing and a fourth timing is performed; In the correction time length acquisition step (S1004), a statistical process is performed using the obtained time difference information multiplied by 1 / 2 and the past correction time length stored to calculate the correction time length; The anticipatory sub-step (S1006) in the zero-cross timing acquisition step (S1005) applies the acquired correction time length to the timing, half a wavelength ahead, when the signal of the first photocoupler rises from L to H and adds it to the zero-cross pulse, and the zero-cross timing acquisition step (S1005) performs a process of acquiring the zero-cross timing of the AC power supply.
[0076] Here, at the timing when the AC power supply waveform changes from negative to positive, The AC power signal acquisition step (S1001) performs a process of acquiring an AC power signal branched from an AC power source supplied to a component to be controlled, In the first timing acquisition step (S1002c), a process is performed to acquire a first timing, which is the timing at which the AC power waveform changes from negative to positive, which is the same as the timing described below, and is the timing at which the signal rises from L to H, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative; In the second timing acquisition step (S1002d), a process is performed to acquire a second timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from negative to positive, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative, and which is the same timing as the timing described above, when the AC power waveform changes from negative to positive; In the time difference acquisition step (S1003), a process is performed to acquire time difference information which is information indicating a time difference between the first timing and the second timing; In the correction time length acquisition step (S1004), a statistical process is performed using the obtained time difference information multiplied by 1 / 2 and the past correction time length stored to calculate the correction time length; The anticipatory sub-step (S1006) in the zero-cross timing acquisition step (S1005) applies the acquired correction time length to the timing when the signal of the second photocoupler rises from L to H, which is half a wavelength ahead, and adds it to the zero-cross pulse. The zero-cross timing acquisition step (S1005) performs a process of acquiring the zero-cross timing of the AC power supply.
[0077] As in Figure 7b, it is preferable to provide a correction time length validity judgment step and a provisional time length output step to judge whether the value obtained by multiplying the time difference obtained in the correction time length acquisition step by 1 / 2 is a valid value for the correction time length and whether it is not affected by disturbances, and to use a provisional correction length when it exceeds the range predicted by statistical methods. The provisional correction time length can be the previous correction time length or a correction time length of 0 (i.e., no correction). If a provisional correction time length is used, the provisional correction time length used is not retained. This is because it would interfere with subsequent statistical processing. This is an operating method for causing the AC voltage zero cross detection circuit structure to execute a series of processes.
[0078] <Fifth embodiment: Hardware configuration> The hardware configuration of the structure in this embodiment is the same as that in embodiment 3. In FIG. 3 showing the hardware configuration of the structure in embodiment 3, the difference is that the correction time length acquisition (0807) uses a correction time length obtained based on the time difference between the timings obtained by the counter and adds it to the zero cross pulse half a wavelength ahead. The processing is performed by a microcomputer program.
[0079] In the fifth embodiment, the obtained correction time length is applied to the half-wavelength ahead of the AC power supply voltage waveform when calculating the zero-cross pulse used for controlling a switch, etc., so that the zero-cross point can be determined prior to the time when the zero-cross (voltage 0V) actually occurs, and the corresponding zero-cross pulse can be output.
[0080] <Another example of preemptive measures> In the first to fifth embodiments, the time between the rising and falling of the first and second photocouplers (t1, t2, t3 in FIG. 6) is measured by a counter, but the period of the output signal of the first photocoupler and the output signal of the second photocoupler may be measured. This will be explained with reference to FIG. 6. For example, the number of counts elapsed since startup is monitored, the number of counts at point B0 where the output of the first photocoupler changes from signal H to signal L is recorded, and the period of signal L is counted. Next, the number of counts at point C0 where the output changes from signal L to signal H is recorded, and the period of signal H is counted. Similarly, the number of counts at points B1 and C1 are recorded. Similarly, the number of counts at points A0, E0, A1, E1, etc. are measured and recorded for the output signal of the second photocoupler. The time difference between the rise and fall of the first photocoupler and the second photocoupler is obtained as a count number by t1 = (count number at point B0 - count number at point A0). The correction time length is obtained as t1 / 2. The correction time length t1 / 2 obtained as in the fifth embodiment can be added to point C0 where the output of the first photocoupler, which is a half wavelength ahead, changes from signal L to signal H to generate a zero crossing pulse. In addition, since the count number of the signal H period and the signal L period of the output signal waveform of the photocoupler are recorded, for example, when the correction time length t2 / 2 near point D0 is calculated and then applied to point F1, the zero crossing point near point F1 can be obtained by adding the count number of the H period of the first photocoupler obtained in the past to the count number at point C0 and subtracting the correction time length t2 / 2. In a commercial single-phase AC power supply, the zero crossing point varies by about 80 μsec, but the zero crossing point can be found in advance by the time (almost 10 ms) obtained by subtracting the time required to calculate the correction time length from the half-cycle time of 10 ms. When finding the zero crossing point near point D1 based on the L period count number, it can be obtained by adding the L period count number to the count number at point B1 and adding the correction time length t3 / 2. It can be found in the same way when the second photocoupler is used. A more accurate value can be obtained by using only one of them, or by comparing the values obtained by using both separately, or by comparing with the calculation method of embodiment 5.
[0081] <Embodiment 6>: In the case of three-phase AC <Overview of embodiment 6> The sixth embodiment is based on the first to fifth embodiments that are intended for single-phase AC and is applied to three-phase AC. Note that the sixth embodiment can be similarly expanded from single phase to other phases (two-phase AC and the like). <Configuration of embodiment 6> An explanation will be given with reference to Fig. 12. The three-phase AC voltage zero-cross detection circuit structure (1200) is composed of single-phase AC voltage zero-cross detection circuit structures (1203), (1204), (1205), an AC input (1206), a DC input (1207), and a zero-cross pulse output (1208). The single-phase AC voltage zero-cross detection circuit structure (1205) is composed of a two-circuit photocoupler (1201) and a microcomputer (1202) with a built-in counter / timer. The single-phase AC voltage zero-cross detection circuit structures (1203) and (1204) are components with the same configuration as (1205), and are responsible for each of the three combinations of three AC phases. If the three phases are conveniently referred to as the R phase, S phase, and T phase, the single-phase AC voltage zero-cross detection circuit structure may detect zero-cross points by dividing the R phase, S phase, and T phase into separate signals, or by dividing the signals into voltage signals between the R phase and the S phase, between the S phase and the T phase, and between the T phase and the R phase. In the latter case, the zero-cross points may be found from the voltage signal between the R phase and the S phase, and the zero-cross points of the related R phase and S phase may be calculated and found by processing in a computer such as a microcomputer.
[0082] Zero-cross detection is performed in the same manner as in the first to fifth embodiments, and similarly, for each assigned signal, the midpoint between the positive and negative peaks of the voltage signal waveform is used as the reference potential, and a photocoupler is used to detect the zero-cross point and output the zero-cross pulse. The zero-cross pulse output (1208) is connected to, for example, a switch section, and controls the output of the AC power supply by turning on / off a switch made of a thyristor or the like. When controlling the time to turn on / off the power supply to adjust the temperature of a heater or the like, the generation of noise and inrush current can be suppressed by turning on / off at the zero-cross point, and when adjusting the temperature by phase control, the starting point of control can be obtained more accurately. FIG. 13a shows an example of a three-phase AC voltage waveform and a zero-cross pulse waveform of each phase. In FIG. 13a, the zero-cross point is obtained using a voltage signal between two phases. The signals between RS, ST, and TR are shifted in phase by 120 degrees each. An upward arrow is drawn at the rising and falling of the zero-cross pulse to indicate the zero-cross point of the corresponding phase. FIG. 13b shows the phase relationship between the zero-cross pulse of the two-phase voltage signal and the voltage signal of each phase. As an example, the waveforms of the RS-to-RS signal and the R and S phases are shown. The zero crossing point is obtained from the RS-to-RS signal, and the zero crossing points of the R and S phases are calculated by computer processing such as a microcomputer. An example of this would be when used to control three heaters in a delta connection as shown in Fig. 16. Note that the same applies to a star connection instead of a delta connection. When switching three-phase AC, all three phases can be turned on / off based on the zero-cross pulse of a certain phase, or the timing can be shifted by 120 degrees and turned on / off based on the zero-cross pulse of each phase. The latter method can minimize the generation of noise and inrush current caused by switching on / off, and can make the starting point of control more accurate when adjusting output by phase control. [Explanation of symbols]
[0083] AC voltage zero cross detection structure...0300 AC power supply…0301 Current limiting resistor...0302 2-circuit photocoupler...0303 First photocoupler...0303a Second photocoupler...0303b Microcomputer…0304 Counter…0305 Zero cross pulse generation...0306
Claims
1. an AC power signal acquisition unit that acquires an AC power signal; a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; a second photocoupler that outputs a signal H in response to the acquired AC power signal being positive and outputs a signal L in response to the acquired AC power signal being negative; "The time difference between the first timing at which the signal of the second photocoupler switches from L to H and the second timing at which the signal of the first photocoupler switches from H to L in the same timing region where the AC power supply signal is inverted from negative to positive" or / and, a time difference acquisition unit that acquires "a time difference between a third timing at which the signal of the second photocoupler switches from H to L and a fourth timing at which the signal of the first photocoupler switches from L to H in the same timing region where the AC power supply signal is inverted positive and negative"; a zero-cross timing acquisition unit that acquires a timing when the voltage of the AC power signal is zero by using a correction time length that is half the time length of the acquired time difference; An AC voltage zero crossing detection circuit structure comprising: moreover A correction time length acquisition unit acquires a correction time length by performing statistical processing on a plurality of acquired time differences, In the correction time length acquisition section, the time lengths obtained by multiplying the acquired multiple time differences by 1 / 2 are accumulated and held, and statistically processed to obtain the correction time lengths, and if the time length obtained by multiplying the acquired time difference by 1 / 2 falls outside a predetermined range of the correction time lengths obtained from the correction time lengths, the AC voltage zero-cross detection circuit structure does not acquire zero-cross timing.
2. An AC voltage zero-cross detection circuit structure as described in claim 1, wherein the delay time when the output of the first photocoupler and the second photocoupler switch from signal H to signal L and / or the advance time when the output of the first photocoupler and the second photocoupler switch from signal L to signal H are approximately equal.
3. 3. The AC voltage zero cross detection circuit structure according to claim 1, wherein the first photocoupler and the second photocoupler output an L level when the photocoupler is ON.
4. 4. The AC voltage zero-cross detection circuit structure according to claim 1, wherein the zero-cross timing acquisition unit acquires the zero-cross timing by using a timing at which the signal of the first photocoupler rises from L to H just before the zero-cross timing and a correction time length when the AC power supply signal inverts from positive to negative, and acquires the zero-cross timing by using a timing at which the signal of the second photocoupler rises from L to H just before the zero-cross timing and a correction time length when the AC power supply signal inverts from negative to positive.
5. an AC power signal acquiring step of acquiring an AC power signal; a fourth timing acquisition step of acquiring a fourth timing, which is a timing at which the signal rises from L to H, advanced by an advance time from a timing at which the AC power waveform changes from positive to negative, which is the same as a timing to be described later, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; a third timing acquisition step of acquiring a third timing, which is a timing at which the signal falls from H to L with a delay time from the timing at which the AC power signal changes from positive to negative, from a second photocoupler that outputs a signal H in response to a positive AC power signal and outputs a signal L in response to a negative AC power signal; a time difference information acquiring step of acquiring time difference information which is information indicating a time difference between the third timing and the fourth timing; a zero-cross timing acquisition step of acquiring a zero-cross timing of the AC power supply signal using the time difference information and an arbitrary third timing or an arbitrary fourth timing subsequent to the third timing and the fourth timing; A method of operating a zero crossing detection circuit structure comprising:
6. an AC power signal acquiring step of acquiring an AC power signal; a first timing acquisition step of acquiring a first timing, which is a timing at which the signal rises from L to H, advanced by an advance time from a timing at which the AC power waveform changes from negative to positive, which is the same as a timing described later, from a second photocoupler that outputs a signal H in response to a positive AC power signal acquired and outputs a signal L in response to a negative AC power signal acquired; a second timing acquisition step of acquiring a second timing, which is a timing at which the signal falls from H to L, delayed by a delay time from the timing at which the AC power signal changes from positive to negative, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; a time difference information acquiring step of acquiring time difference information which is information indicating a time difference between the first timing and the second timing; a zero-cross timing acquisition step of acquiring a zero-cross timing of the AC power supply signal using the time difference information and an arbitrary first timing or an arbitrary second timing subsequent to the first timing and the second timing; A method of operating a zero crossing detection circuit structure comprising:
7. The time difference information acquisition step includes a statistical time difference information acquisition sub-step of acquiring statistical time difference information, which is information indicating a statistical time difference obtained by acquiring and statistically processing a plurality of pairs of the third timing and the fourth timing, 6. The method for operating a zero-cross detection circuit structure which is a computer according to claim 5, wherein the zero-cross timing acquisition step includes a statistical zero-cross timing acquisition sub-step of acquiring the zero-cross timing using the statistical time difference information.
8. The time difference information acquisition step includes a statistical time difference information acquisition sub-step of acquiring statistical time difference information, which is information indicating a statistical time difference obtained by acquiring and statistically processing a plurality of pairs of a first timing and a second timing, 7. The method for operating a zero-cross detection circuit structure which is a computer according to claim 6, wherein the zero-cross timing acquisition step includes a statistical zero-cross timing acquisition sub-step of acquiring the zero-cross timing using the statistical time difference information.
9. an AC power signal acquiring step of acquiring an AC power signal; a fourth timing acquisition step of acquiring a fourth timing, which is a timing at which the signal rises from L to H, advanced by an advance time from a timing at which the AC power signal changes from positive to negative, which is the same as a timing described below, from a first photocoupler that outputs a signal L when the acquired AC power signal is positive and outputs a signal H when the acquired AC power signal is negative; a third timing acquisition step of acquiring a third timing, which is the timing at which the signal falls from H to L when the AC power waveform changes from positive to negative, from a second photocoupler that outputs a signal H in response to the acquired AC power signal being positive and a signal L in response to the acquired AC power signal being negative, and which is delayed by a delay time from the timing at which the signal falls from H to L when the AC power waveform changes from positive to negative; a time difference information acquiring step of acquiring time difference information which is information indicating a time difference between the third timing and the fourth timing; a zero-cross timing acquisition step of acquiring a zero-cross timing of the AC power supply signal using the time difference information and an arbitrary third timing or an arbitrary fourth timing subsequent to the third timing and the fourth timing; A program written in a readable and executable manner into a zero-cross detection circuit structure, which is a computer.
10. an AC power signal acquiring step of acquiring an AC power signal; a first timing acquisition step of acquiring a first timing, which is a timing at which the signal rises from L to H, advanced by an advance time from a timing at which the AC power signal changes from negative to positive, which is the same as a timing described later, from a second photocoupler that outputs a signal H when the acquired AC power signal is positive and outputs a signal L when the acquired AC power signal is negative; a second timing acquisition step of acquiring, from a first photocoupler which outputs a signal L in response to the acquired AC power signal being positive and outputs a signal H in response to the acquired AC power signal being negative, a second timing which is a timing at which the signal falls from H to L when the AC power signal changes from negative to positive and which is delayed by a delay time from the timing which is the same as the timing at which the signal falls from H to L; a time difference information acquiring step of acquiring time difference information which is information indicating a time difference between the first timing and the second timing; a zero-cross timing acquisition step of acquiring a zero-cross timing of the AC power supply signal using the time difference information and an arbitrary first timing or an arbitrary second timing subsequent to the first timing and the second timing; A program written in a readable and executable manner into a zero-cross detection circuit structure, which is a computer.
Citation Information
Patent Citations
Sine wave information digitized extraction method and device
CN110346637A
Electric power source unit
JP2004279278A
Zero-cross point detection apparatus and heater controller using the same
JP2005123977A
Zero-crossing detection circuit, power adjusting unit equipped with the zero-crossing detection circuit, and zero-crossing detecting method
JP2005235125A
Ac control circuit structure
JP2019056659A
