Next Article in Journal
CDM Protection Test Structure for I/O Cells in a Submicronic Technology
Next Article in Special Issue
An Adaptive Prediction Model for the Remaining Life of an Li-Ion Battery Based on the Fusion of the Two-Phase Wiener Process and an Extreme Learning Machine
Previous Article in Journal
Evaluation of VTH and RON Drifts during Switch-Mode Operation in Packaged SiC MOSFETs
Previous Article in Special Issue
A Genetic Algorithm Optimized RNN-LSTM Model for Remaining Useful Life Prediction of Turbofan Engine
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Frequency Signal Sampling Method Implemented in a PLC Controller Dedicated to Applications in the Monitoring of Selected Electrical Devices

by
Marcin Jaraczewski
1,
Ryszard Mielnik
1,
Tomasz Gębarowski
2 and
Maciej Sułowicz
1,*
1
Faculty of Electrical and Computer Engineering, Cracow University of Technology, Warszawska 24 Street, 31-155 Cracow, Poland
2
Mitsubishi Electric Europe B.V., branch in Poland, Krakowska 48 Street, 32-083 Balice, Poland
*
Author to whom correspondence should be addressed.
Submission received: 31 December 2020 / Revised: 6 February 2021 / Accepted: 7 February 2021 / Published: 10 February 2021

Abstract

:
High requirements for power systems, and hence for electrical devices used in industrial processes, make it necessary to ensure adequate power quality. The main parameters of the power system include the rms-values of the current, voltage, and active and reactive power consumed by the loads. In previous articles, the authors investigated the use of low-frequency sampling to measure these parameters of the power system, showing that the method can be easily implemented in simple microcontrollers and PLCs. This article discusses the methods of measuring electrical quantities by devices with low computational efficiency and low sampling frequency up to 1 kHz. It is not obvious that the signal of 50–500 Hz can be processed using the sampling frequency of fs = 47.619 Hz because it defies the Nyquist–Shannon sampling theorem. This theorem states that a reconstruction of a sampled signal is only guaranteed possible for a bandlimit fmax < fs, where fmax is the maximum frequency of a sampled signal. Therefore, theoretically, neither 50 nor 500 Hz can be identified by such a low-frequency sampling. Although, it turns out that if we have a longer period of a stable multi-harmonic signal, which is band-limited (from the bottom and top), it allows us to map this band to the lower frequencies, thus it is possible to use the lower sampling ratio and still get enough precise information of its harmonics and rms value. The use of aliasing for measurement purposes is not often used because it is considered a harmful phenomenon. In our work, it has been used for measurement purposes with good results. The main advantage of this new method is that it achieves a balance between PLC processing power (which is moderate or low) and accuracy in calculating the most important electrical signal indicators such as power, RMS value and sinusoidal-signal distortion factor (e.g., THD). It can be achieved despite an aliasing effect that causes different frequencies to become indistinguishable. The result of the research is a proposal of error reduction in the low-frequency measurement method implemented on compact PLCs. Laboratory tests carried out on a Mitsubishi FX5 compact PLC controller confirmed the correctness of the proposed method of reducing the measurement error.

1. Introduction

Currently, the increasing use of monitoring systems for various systems that measures various quantities can be seen. Previous methods of measuring these parameters required the use of methods using relatively high sampling frequency of the measured signals and relatively high computing power for processing the obtained measurement data. The papers [1,2] presented a new method of measuring and obtaining parameters of electric signals, it required parallel sampling of current and voltage with a frequency of only 8 Hz. The calculation formulae of the processing method were also relatively simple, which allowed their application in simple microprocessor systems.
The article [2] presented the implementation of the measurement of the current, voltage, and power using the low-frequency method. A laboratory stands for testing the application on a PLC controller was presented. The results of the research were presented and the obtained results were analyzed, and in particular, the influence of time delays on the errors of the obtained measurement was shown.
The 8Hz sampling method can be used successfully to monitor slowly changing loads, in particular electrical devices, in a stable state. The obtained information about the active and reactive power of the device as well as the rms values of the current and voltage can be used to control the active power and to compensate for the reactive power. The advantage of this method is that relatively inexpensive microcontrollers (equipped with at least two analog inputs) are able to control the device themselves and, at the same time, measure its power without the need to use additional expensive measurement modules [3].
Monitoring of the electrical parameters is important and useful information used in the control of the device and in meeting the energy quality requirements of the power supply system and, in particular, minimizing reactive power. The article [4] discusses the impact of technical limitations of measuring instruments on the measured electric parameters.
The article [5] presented the use of synchronous sampling with the use of a PLL (Phase Locked Loop).
Another interesting application of the low-frequency signal sampling method can be the monitoring of electromagnetic circuits, especially the monitoring of electromagnets in various technical applications [6].
There are many applications where low-frequency sampling methods can be used. One of the first examples might be monitoring and diagnostics of the internal combustion engines [7] or to measure the Weber-ampere characteristic [8].
Low-frequency sampling methods can be successfully applied in the problems of impedance analyses or the determination of dielectric solids [9].
The novel variable frequency sampling method is proposed [10], which solves the contradiction between low-frequency acquisition for CLVData and high-frequency acquisition for SSVData.
With the use of low-frequency methods, it is possible to monitor human physiological parameters in real time in order to conduct a comprehensive assessment of human health by registering changes in human health information [11].
In the areas of intelligent construction and monitoring of building structures, with the help of low-frequency methods, measurements related to the physical-chemical parameters of buildings and thermal characteristics can be made [12].
In [13] a near-real-time plug load identification approach was proposed which uses low-frequency power data (1/60 Hz) to identify plug loads in office spaces.
In [14], the performance of photovoltaic (PV) modules as a function of time is monitored by observing different slopes at successive time intervals. Slopes are denoted as degradation rates and used to express array performance degradation.
When measuring low-frequency vibrations, this method of data processing can be used to determine dynamic errors and the accuracy and reliability of the measurement [15,16].
The article [17,18] presents a transducer that allows us to measure the instantaneous value of the current with a Hall linear sensor. The advantage of the transducers presented in this paper is their simple design and low cost.
In modern building automation systems, in which various optimization and control algorithms have been implemented, it is very important to approach the signal processing with the appropriate frequency. These findings can assist policy and decision-makers in identifying the right smart meter hardware to meet appliance-level energy efficiency and building automation goals [19].
Another important application of a cheap low-frequency parameter measurement system is a new area of energy recovery from dragging mechanical elements and converting this energy into electrical energy used to power electronic components [20].
In addition to the typical applications of methods related to the processing of electrical signals in the field of broadly understood electrical engineering, many other applications can be found.
Another area of application of low-frequency sampling can be the broadly understood field of electromobility and data processing for the purpose of determining the location of vehicles [21].
Navigation and traffic jam warning systems also show great potential for the use of low-frequency methods [22] and low-frequency sampling methods can be used in monitoring weather parameters [23].
Also, low-frequency signal sampling methods can be used, for example, in water quality monitoring. Based on such a solution, it is possible to monitor, for example, the dynamics of the spread of pollution or the deterioration of water quality in the water supply system at any time [24].
Also, the application of these signal processing methods can be used in monitoring large bodies of water, for example, by the sea, for observing oscillations of water waves and for early warning of their undesirable effects [25].
Based on these methods, it is possible to construct frequency measurement algorithms based on the full properties of cyclically repeated arithmetic operations in computational algorithms [26].
Also, in the processing of simple two-dimensional data sampled with a low frequency [27].
Low-frequency sampling methods can be used in monitoring seismic events and observation of slow earthquake signals in the micro seismic frequency band [28].
Also, in the processing of simple two-dimensional data sampled with a low frequency [29].
Medicine is an important area of application of the methods. One of the areas here is the measurement of signals available during the diagnosis of a patient’s health condition [30].
The article presents the issues related to the parallel and real, serial, system for acquiring signals from two analog input channels. These real signal acquisition systems are typical low-cost PLCs, microcontrollers, and measurement cards. Next, this article was presented calculated the sampling period Ts for slow-sampling. Angular delays of samples readout of series sampling acquisition equipment are also defined. The theoretical basis for calculating the value of current, voltage, and power on an electrical receiver powered by sinusoidal voltage is also presented. The laboratory studies of the discussed measurement method were presented. It presents an appropriate measurement scheme with the characteristics of the elements used in its construction. The conducted research showed that the important issue of ensuring the accuracy of the measurement of the presented method is the selection of the signal sampling frequency and the maintenance of this frequency at a constant level.
The use of aliasing for measurement purposes is not often used because it is considered a harmful phenomenon. In our work, it was used for measurement purposes with good results.
The considerations in the article will focus on the analysis of periodic waveforms of current and voltage, allowing for a good illustration of the low-frequency properties of the proposed method.
The rest of the paper is organized as follows: in the second section, the concept of low-frequency method to sampling periodic signals is described. Necessary dependencies for the measurement method are presented and the method of measuring sinusoidal and non-sinusoidal signals is illustrated as well as the new issues connected to the low-frequency signal processing is presented. The third part describes the experiments and the results obtained. In the beginning, a laboratory system with a PLC controller was presented, which was used to carry out the research. This section presents the measurement results for sinusoidal voltage and current signals, followed by non-sinusoidal ones. Finally, conclusions are given in Section 4.

2. Low-Frequency Method of Sampling Periodic Signals

A common technique for digital platforms to acquire and process data is to use high sampling rates to measure signals (which in turn requires multiple samples per period) [1]. This is because these techniques must follow the Nyquist–Shannon sampling theorem, which requires at least two samples per period in the measured signal. For the 50 Hz signals, that is, with a period of T = 20 ms, it means a 100 Hz sampling rate at a minimum. Instead, the slow sampling that occurs when the sampling period Ts is longer than the period of the signal T results in a sampling rate much lower than 50 Hz.
The sampling period Ts for slow-sampling can be calculated as:
T s = k T / 2 + T / 4
where: k–integer ≥ 2.
In typical industrial (low-cost) PLCs, microcontrollers, and measurement cards, the acquisition of the measured signals is carried out using one AD converter and a multi-channel multiplexer. This signal acquisition method is referred to in the literature as the serial sampling method. Figure 1 shows two signals (voltage and current) sampled in such a serial-sampling acquisition system. In one channel, the voltage and current signals are sampled with an angular delay α while is the readout delay between channels.
Nowadays even cheap digital platforms such as FX5 Mitsubishi PLC along with its software provide a practically constant sampling rate, so the angular displacement error dα is negligibly small—it does not exceed 0.3% π/2-which makes it irrelevant. Therefore, it can frequently be assumed that ≈ 0 and the angular displacement α is constant (α ≈ constant).

2.1. Theoretical Formulation

Up to the end of this paper, we assume that voltage is measured in Volt, current in Ampere, and power in Watt. Each continuous sinusoidal signal y(t) can be described by the function:
y ω t = Re ( Y e j ω t ) = Y   cos ω t + Y = Y C cos ( ω t ) Y S sin ( ω t )
or by its complex representation
Y = | Y | e j Y = Y C + j Y S     Y =   Y C Y S
where: Y C —real part and Y S —imaginary part of Y .
To calculate a harmonic of a sinusoidal signal we can take two consecutive samples with an interval Ts and use the following equation to identify it:
y 1 y 2 =   F Y C Y S     Y C Y S = F 1 y 1 y 2
where:
y 1 =   y t 1   ,   y 2 =   y t 2 -two consecutive samples of signal y(t) taken at the time t1 and t2.
F = 1 0 cos ( Δ α ) sin ( Δ α ) = 1 0 0 1
Δ α = 2 π 4
The formulas for power and rms-value in the case of a parallel sampling are as follows [2,3,4]:
p   = i 1 u 1   +   i 2 u 2   2 ,   q   = ( 1 ) k u 1 i 2 u 2 i 1 2
where:
p, q—active and reactive power, calculated as for parallel sampling [2,3],
u 1 ,   u 2 , i 1 , i 2 -two consecutive samples of voltage and current signal,
the current and voltage rms-values can be calculated with the formulae:
I RMS = i 1 2 + i 2 2   2 ,   U RMS = u 1 2 + u 2 2   2
Alternatively, we can use four sampling points, which results in formulae:
P = 1 8 i 1 u 1 u 3 + i 2 u 2 u 4 + i 3 u 3 u 1 + i 4 u 4 u 2 Q = 1 8 u 4 u 2 i 1 + u 1 u 3 i 2 + u 2 u 4 i 3 + u 3 u 1 i 4
and the current and voltage rms values can be calculated with the formulae:
I RMS = 2 i 1 2 + 2 i 2 2 + 2 i 3 2 + 2 i 4 2 4 i 1 i 3 4 i 2 i 4 4 ,   U RMS = 2 u 1 2 + 2 u 2 2 + 2 u 3 2 + 2 u 4 2 4 u 1 u 3 4 u 2 u 4 4
The paper [4] showed that parallel sampling is not always feasible in real PLCs. In these cases, we are dealing with serial sampling.

2.2. Serial Sampling

As PLCs generally use serial sampling, current samples are taken with a delay to the voltage (or vice versa), introducing a delay error dβ.
This error needs to be corrected and a correction should be made to the power calculation formulas, so the key point is to determine this delay simply and accurately.
If, for example, the current signal is sampled with a delay Δt to the voltage, then the delay = ωΔt causes an error in the power calculation. To correct this error, we use a correction formula, based on angle , to calculate the power, which can be written using the rotation matrix:
P Q = cos ( d β ) sin ( d β ) sin ( d β ) cos ( d β ) p q
where:
Δt—time delay between current and voltage samples,
d β 2 π T Δ t   = ω Δ t —angular delay between current and voltage channel readouts.
The delay does not affect the rms-values, so their values can still be determined from (3).
The next section presents a method of determining , which can be carried out in a simple way without any additional hardware, before using the controller for measurement.

2.3. Determining dβ

As shown in [4], delay Δτ can be determined directly by testing the readout delay time between channels.
However, it can also be calculated more simply by measuring the power of a purely resistive load.
In this case (Q = 0) the formulae for active and reactive power (taking into account the delay ) for the resistive load are:
P 0 = cos ( d β ) sin ( d β ) sin ( d β ) cos ( d β ) p q
and because it can also be assumed that () = 1, then
P 0 = 1 sin ( d β ) sin ( d β ) 1 p q
thus
sin d β d β = q p
Alternatively, a correction that results from the difference between average power values measured with card and PLC can be calculated with the formula:
d β   = t g 1 t g 0 1 + t g 1 t g 0
where t g 1 , t g 0 —measured and exact Q/P.

2.4. Multiharmonic Signals

In the case of multiharmonic signals we take samples every 21 ms (Figure 2).
This is the equivalent of a 1 kHz sampling rate for stable periodic signals, but requires much less PLC processor power and does not overload its data acquisition system.

2.5. Sinusoidal Voltage Signal Accompanied by a Multi-Harmonic Current

2.5.1. Two Samples Method

To calculate a harmonic of a sinusoidal voltage signal we can take two consecutive samples with an interval 5 T s and use the following equation to identify it:
u 0 u 5   =   F Y C Y S     Y C Y S   =   F 1 u 0 u 5
where: F= 1 0 cos ( 5 Δ α ) sin ( 5 Δ α ) = 1 0 0 1 , Δ α = 2 π 20
thus RMS value of signal can be calculated with
Y RMS   =   Y C 2   +   Y S 2   2   =   u 0 2   +   u 5 2   2

2.5.2. Three Samples Method

To get a more accurate RMS value we can take three consecutive points instead with an interval 4 T s and the unique relations between values of points u 0 u 4 u 8 and the Fourier coefficients Y C Y S can be established in a matrix form:
u 0 u 4 u 8   =   F Y C Y S     Y C Y S   =   M u 0 u 4 u 8
where:
F   =   1 0 cos ( 4 Δ α ) sin ( 4 Δ α ) cos ( 8 Δ α ) sin ( 8 Δ α )   =   1 0 cos 2 5 π sin 2 5 π cos 1 5 π sin 1 5 π   =   1 . 0 . 0.3090169938 0.9510565165 0.8090169943 0.5877852524 M = ( F T F ) 1 F T   =   0.5801787285037238 0.2594638150897272 0.41982127167952077 0.08430490422994767 0.7985475122078457 0.4092245999669539
The RMS value of signal can be calculated from the formula
U RMS   =   Y C 2   +   Y S 2   2

2.6. Multiharmonic Current of Odd or Even Harmonics

When a multi-harmonic signal occurs, which has only odd harmonics [1 3 5 7 9], Fourier coefficients for harmonics up to 9 are related with 10 consecutive samples by the matrix equation
i 0 i 1 i 9   =   F   Y C , 9 Y C , 7 Y S , 7 Y S , 9     Y C , 9 Y C , 7 Y S , 7 Y S , 9   =   M i 0 i 1 i 9
where:
F   =   1 1 0   0 cos ( 9 Δ α ) cos ( 7 Δ α ) sin ( 7 Δ α ) sin ( 9 Δ α ) cos ( 9 Δ α 9 ) cos ( 7 Δ α 9 ) sin ( 7 Δ α 9 ) sin ( 9 Δ α 9 ) ,   M = ( F T F ) 1 F T
The RMS value of the signal can be calculated from the formula:
I RMS   =   1 2 n = 0 4 Y C , 2 n + 1 2   +   Y S , 2 n + 1 2  
When the signal has even harmonics [2 4 6 8] only we can use a similar approach to calculate them based on 10 consecutive samples
i 0 i 1 i 9   =   F   Y C , 8 Y C , 2 Y S , 2 Y S , 8     Y C , 8 Y C , 2 Y S , 2 Y S , 8 =   M i 0 i 1 i 9
where:
F   =   1   1 0   0 cos ( 8 Δ α ) cos ( 6 Δ α ) sin ( 6 Δ α ) sin ( 8 Δ α ) cos ( 8 Δ α 9 ) cos ( 6 Δ α 9 ) sin ( 6 Δ α 9 ) sin ( 8 Δ α 9 ) ,   M = ( F T F ) 1 F T

2.7. Power Calculation

The calculation of power is carried out based on the fundamental harmonic only, that is, on the assumption that voltage is monoharmonic.
Complex power for the fundamental harmonic S1 can be calculated as:
S 1 = U 1 I 1 * =   U C 1 + j U S 1   I C 1 j I S 1   =   U C 1 I C 1 +   U S 1 I S 1   + j U S 1 I C 1   U C 1 I S 1   =   P 1   + j   Q 1
Thus
P = P 1   =   1 2 U C 1 I C 1 +   U S 1 I S 1
XC,1, XS,2—real and imaginary parts of the 1st harmonic of X,
P, Q—active and reactive power.

3. Experiments and Obtained Results

3.1. Sinusoidal Signals of Voltage and Current

The block diagram of the low-frequency measurement system for measuring voltage, current, and power consumption by a single-phase load is shown in Figure 3.
In this system, one can distinguish:
  • Mitsubishi FX5-32-MT PLC with left-hand FX5-4AD-ADP analog input module
  • LEM LV25-P voltage measurement sensor
  • LEM HY5-P current measurement sensor
  • electric load
Mitsubishi Electric PLC controllers of the FX family, produced since 1981, are among the best-selling PLCs. So far, over 13 million units of various types of FX family PLCs have been sold. PLC FX5-32 MT is representative of the latest family of compact PLC controllers from Mitsubishi Electric-iQ-F. Table 1 shows the basic parameters of this controller. As can be seen from the table, the controller manufacturer has significantly increased its efficiency by increasing the computing power, reducing the instruction execution time, and increasing the program memory capacity and the memory of variable/registers. Thanks to the new software package GX-Works3, the user gains the possibility of more easily building the software application for the controller. Built-in functionality, for example, communication via Ethernet and RS-232.485, positioning and motion control in four axes, and the possibility of expanding with additional I/O modules, makes the compact FX5 series controller especially recommended for industrial automation applications (eFactory technology) in the Edge-Object layer. This layer now not only transfers data from the object to the management layer, but also performs some calculations of object variables and send the already processed data to the management layer. This reduces the traffic in the Ethernet network and accelerates the process of monitoring and diagnostics of the supervised facility.
The external module FX5-4AD-ADP, with four analog inputs, is connected to the FX5-32 MT controller via the left side adapter. This module has an input range of −10 to 10 V and a resolution of 14 bits. The range of analog inputs of this module is important because the applied current and voltage measuring converters generate an output voltage in the range from −10 to 10 V DC/AC. The measuring system does not use two analog inputs built into the controller, as their input voltage is in the range of 0–10 V, which would require the use of additional voltage shifters. The basic specification of the FX5-4AD-ADP analog input module is shown in Table 2.
In the measuring system discussed, two LEM type transducers were used. They use the Hall effect in their actions. This provides galvanic isolation between the converter input and output. The output voltage range of these converters is −10 to 10V. The converters are designed for PCB mounting. These transducers have good linear characteristics and an accuracy of less than 1%. The LEM LV 25-P voltage converter measures AC/DC voltage in the range from −500 to 500 V. The LEM HY 5-P converter measures AC/DC current in the range from −15 to 15 A.
A universal measurement card by National Instruments, type Ni USB 6259, was used as a model measuring system. This card has both analog and digital inputs and outputs. Thanks to the built-in buffer memory, the card can transfer data to and from a computer, via the USB interface, without losing data during transmission. The basic parameters of the analog inputs of this card are presented in Table 3.

3.2. Sinusoidal Signals of Voltage and Current

In the case of sinusoidal signals, the sampling period should be T S = 25   m s , however, PLC does not hold the same sampling period T S all the time, which is shown in Figure 4.
Figure 5 shows samples of sinusoidal signals taken with card and PLC and average RMS values of current, voltage, and average values of power.
The difference between two-point and four-point measurement methods of RMS values are depicted in Figure 6.
Calculated power with Formulas (5) and (7) without correction are depicted below in Figure 7.
Because it was a purely resistive load (with Q = 0) the correction that results from the difference between true power value and this measured with PLC can be calculated with the Formula (12) and should be used in Formula (9) to get the corrected power depicted below in Figure 8.
A comparison of values obtained with DAQ card and PLC measurement are listed in Table 4.

3.3. Non-Sinusoidal Current and Sinusoidal Voltage Signal

In the case of nonsinusoidal signals, the sampling period should be T S = 21   m s , however, PLC does not hold the same sampling period T S all the time, which is shown in Figure 9.
The measured samples with PLC and DAQ card with an average power and average RMS-values of current and voltage are depicted below in Figure 10.

Required Number of Samples

Because the current is nonsinusoidal we take 10 consecutive samples to determine the harmonics RMS-value of current with Formulas (16) and (17) and only 3 samples to determine the harmonics and RMS-value of voltage with Formulas (14) and (15) because voltage is almost always sinusoidal (Figure 11).
Alternatively, we can use two samples of voltage distanced by four samples (every fourth sample) (Figure 12).
The resulting active power calculated based on the first harmonic (22) is depicted below in Figure 13.
A comparison of values obtained with DAQ card and PLC measurement are listed in Table 5.
Comparing the results, it can be easily seen that in the case of sinusoidal signals, the delay in sampling between the voltage and current channels changes mainly the reactive power. However, this can be easily fixed with the correction given by Equation (12) or (13). additionally, the four-point sampling version does not differ much from the two-point version as smoothing can always be obtained by averaging two adjacent samples.
In the case of multi-harmonic signals, the slow-sampling method reflects well the harmonic content of the signal. It is also able to determine the active power well. It should be noted that sinusoidal voltage is sampled with a lower frequency than the multi-harmonic current. The economical three-point sinusoidal voltage sampling method used in this case proved to be better in power calculations than the two-point method.

4. Conclusions

The algorithms presented in the paper enable us to do a calculation of the basic electrical parameters of sinusoidal and non-sinusoidal signals, up to the ninth harmonic, in a simple way. These procedures do not overload the processors of PLC controllers or their measurement modules, thus enabling the controllers to perform their normal control work for which they are intended. These algorithms can be used in devices monitoring the quality of electricity and in devices protecting against overload or distortion of electric voltage or current.
They could also be used in systems dedicated to the diagnostics of the parameters of electrical machines and devices as simple damage indicators.
The algorithms proved to be accurate and the relative error did not exceed a few percent. It is possible to use this method to measure impedance that changes slowly over time, measure frequency deviations from 50 Hz of the supply sinusoidal signal, and to detect short-circuits in the rotor of a three-phase motor. Works on these issues are in progress and in some of them, the results confirming the usefulness of slow sampling for determining the above-mentioned parameters of electrical signals have already been obtained.
The paper shows that sometimes, using certain peculiarities of signal processing, it is possible to construct effective computational algorithms, which, as it generally seems, due to the adopted laws and principles in the classical approach, are on the verge of applicability.
In terms of the ubiquitous development of devices and methods related to the development of Industry 4.0, it seems to be a very interesting solution. After a slight modification of the already existing systems with PLC drivers, such simple measurement algorithms can be implemented in most systems. It can be a simple and effective tool for tracking and diagnosing faults in less known machines and electrical devices, where there are generally no online condition monitoring and control systems.

Author Contributions

Conceptualization, M.J., R.M., T.G., and M.S.; methodology, M.J.; software, T.G.; validation, R.M. and M.S.; formal analysis, M.J. and T.G.; investigation, R.M. and M.S.; resources, T.G. and M.J.; data curation, M.J., R.M., T.G., and M.S.; writing—original draft preparation, M.J. and M.S.; writing—review and editing, M.J., T.G., and M.S.; visualization, T.G., M.J.; supervision M.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research: which was carried out under the theme Institute E-2, was founded by the subsidies on science granted by the Polish Ministry of Science and Higher Education.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jaraczewski, M.; Mielnik, R.; Sulowicz, M. The low-frequency measuring method and signal processing application in electrical machines and electric devices monitoring. In Proceedings of the 2016 13th Selected Issues of Electrical Engineering and Electronics (WZEE), Rzeszow, Poland, 4–8 May 2016; pp. 1–6. [Google Scholar]
  2. Gębarowski, T.; Jaraczewski, M.; Mielnik, R. The low-frequency measuring method of voltage, current, power and signal processing application for compact PLC. Tech. Trans. 2016, 2-E, 121–134. [Google Scholar]
  3. Jaraczewski, M.; Mielnik, R. Error reduction of the low-frequency sampling method for measuring the current, voltage and power of a cage induction motor. In Proceedings of the 2018 International Symposium on Electrical Machines (SME) SME 2018, Andrychów, Poland, 10–13 June 2018; pp. 1–4. [Google Scholar]
  4. Jaraczewski, M.; Gebarowski, T.; Mielnik, R. Low-Frequency Sampling Method for Power Measurement on a Compact PLC Controller - Error Elimination Due to Serial Sampling. In Proceedings of the 2018 14th Selected Issues of Electrical Engineering and Electronics (WZEE), Szczecin, Poland, 19–21 November 2018; pp. 1–4. [Google Scholar]
  5. Krzyk, P. Comparative Analysis of Weakly Non-Linear Self-Excited Oscillations in Autonomous Analogue and Digital Circuits; University of Zielona Góra Press: Zielona Góra, Poland, 2011. [Google Scholar]
  6. Kovilin, S.; Lankina, M.; Baklanov, A. Studying Model in Microcap to Describe Harmonic Balance Method for Determining Weber-Ampere Characteristics of Electrical Devices. In Proceedings of the 2019 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), Sochi, Russia, 25–29 March 2019; pp. 1–5. [Google Scholar]
  7. Reznitchenko, A.; Rekov, A.; Shantaev, E. Design and Implementation of Diagnostic Stand for Starter Retractors. In Proceedings of the 2019 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), Sochi, Russia, 25–29 March 2019; pp. 1–5. [Google Scholar]
  8. Kovilin, S.; Baklanov, A.; Mariya, L. Determination of Weber-ampere Characteristics of AC Electrical Devices using Harmonic Balance Method. In Proceedings of the 2019 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM), Sochi, Russia, 25–29 March 2019; pp. 1–6. [Google Scholar]
  9. Silva, R.L.S.; Banerjee, P.; Franco Júnior, A. Functional properties of donor- and acceptor-co-doped high dielectric constant zinc oxide ceramics. Phys. Chem. Chem. Phys. 2019, 21, 9456–9464. [Google Scholar] [CrossRef]
  10. Cheng, J.; Zou, X.; Zuo, Y.; Liu, A.; Tao, F. A variable frequency sampling method for sudden small-volume data and conventional large-volume data. Procedia Cirp 2019, 81, 1319–1324. [Google Scholar] [CrossRef]
  11. Hu, J.; Wang, J.; Xie, H. Wearable bracelets with variable sampling frequency for measuring multiple physiological parameter of humans. Comput. Commun. 2020, 161, 257–265. [Google Scholar] [CrossRef]
  12. Humberto Cabrera, H.; Matroodi, F.; Cabrera-Díaz, H.D.; Ramírez-Miquet, E.E. Frequency-resolved photothermal lens: An alternative approach for thermal diffusivity measurements in weak absorbing thin samples. Int. J. Heat Mass Transf. 2020, 158, 120036. [Google Scholar] [CrossRef]
  13. Tekler, Z.D.; Low, R.; Zhou, Y.; Yuen, C.; Blessing, L.; Spanos, C. Near-real-time plug load identification using low-frequency power data in office spaces: Experiments and applications. Appl. Energy 2020, 275, 115391. [Google Scholar] [CrossRef]
  14. Abenante, L.; de Lia, F.; Schioppo, R.; Castello, S. Non-linear continuous analytical model for performance degradation of photovoltaic module arrays as a function of exposure time. Appl. Energy 2020, 275, 115363. [Google Scholar] [CrossRef]
  15. Tomczyk, K. Impact of uncertainties in accelerometer modeling on the maximum values of absolute dynamic error. Measurement 2016, 80, 71–78. [Google Scholar] [CrossRef]
  16. Tomczyk, K. Monte Carlo-Based Procedure for Determining the Maximum Energy at the Output of Accelerometers. Energies 2020, 13, 1552. [Google Scholar] [CrossRef] [Green Version]
  17. Sulowicz, M.; Ludwinek, K.; Tulicki, J.; Depczynski, W.; Nowakowski, L. Practical Adaptation of a Low-Cost Voltage Transducer with an Open Feedback Loop for Precise Measurement of Distorted Voltages. Sensors 2019, 19, 1071. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Ludwinek, K. Measurement of Momentary Currents by Hall Linear Sensor. Prz. Elektrotechniczny 2009, 10, 182–187. [Google Scholar]
  19. Huang, B.; Knox, M.; Bradbury, K.; Collins, L.M.; Newell, R.G. Non-intrusive load monitoring system performance over a range of low frequency sampling rates. In Proceedings of the 2017 IEEE 6th International Conference on Renewable Energy Research and Applications (ICRERA), San Diego, CA, USA, 5–8 November 2017; pp. 505–509. [Google Scholar]
  20. Le Scornec, J.; Guiffard, B.; Seveno, R.; Le Cam, V. Frequency tunable, flexible and low cost piezoelectric micro-generator for energy harvesting. Sens. Actuators A Phys. 2020, 312, 112148. [Google Scholar] [CrossRef]
  21. Peng, L.; Li, Z.; Wang, C.; Sarkodie-Gyan, T. Evaluation of roadway spatial-temporal travel speed estimation using mapped low-frequency AVL probe data. Measurement 2020, 165, 108150. [Google Scholar] [CrossRef]
  22. Chen, J.; Xue, Z.; Fan, D. Deep Reinforcement Learning Based Left-Turn Connected and Automated Vehicle Control at Signalized Intersection in Vehicle-to-Infrastructure Environment. Information 2020, 11, 77. [Google Scholar] [CrossRef] [Green Version]
  23. Carbajal Henken, C.; Dirks, L.; Steinke, S.; Diedrich, H.; August, T.; Crewell, S. Assessment of Sampling Effects on Various Satellite-Derived Integrated Water Vapor Datasets Using GPS Measurements in Germany as Reference. Remote Sens. 2020, 12, 1170. [Google Scholar] [CrossRef] [Green Version]
  24. Piniewski, M.; Marcinkowski, P.; Koskiaho, J.; Tattari, S. The effect of sampling frequency and strategy on water quality modelling driven by high-frequency monitoring data in a boreal catchment. J. Hydrol. 2019, 579, 124186. [Google Scholar] [CrossRef]
  25. Dong, G.; Zheng, Z.; Ma, X.; Huang, X. Characteristics of low-frequency oscillations in the Hambantota Port during the southwest monsoon. Ocean Eng. 2020, 208, 107408. [Google Scholar] [CrossRef]
  26. Popović-Bugarin, V.; Djukanović, S. A low complexity model order and frequency estimation of multiple 2-D complex sinusoids. Digit. Signal Process. 2020, 104, 102794. [Google Scholar] [CrossRef]
  27. Rizvi, S.; Cao, J.; Zhang, K.; Hao, Q. Improving Imaging Quality of Real-time Fourier Single-pixel Imaging via Deep Learning. Sensors 2019, 19, 4190. [Google Scholar] [CrossRef] [Green Version]
  28. Wierts, R.; Janssen, M.J.A.; Kingma, H. Measuring Saccade Peak Velocity Using a Low-Frequency Sampling Rate of 50 Hz. Ieee Trans. Biomed. Eng. 2008, 55, 2840–2842. [Google Scholar] [CrossRef] [PubMed]
  29. Arozi, M.; Caesarendra, W.; Ariyanto, M.; Munadi, M.; Setiawan, J.D.; Glowacz, A. Pattern Recognition of Single-Channel sEMG Signal Using PCA and ANN Method to Classify Nine Hand Movements. Symmetry 2020, 12, 541. [Google Scholar] [CrossRef] [Green Version]
  30. Sun, W.; Tang, R.; Lang, Y.; He, J.; Qiang, H. Decomposing single-channel intramuscular electromyography signal sampled at a low frequency into its motor unit action potential trains with a generative adversarial network. J. Electromyogr. Kinesiol. 2019, 48, 187–196. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Series sampling; dβ, dα—angular delays of samples readout.
Figure 1. Series sampling; dβ, dα—angular delays of samples readout.
Electronics 10 00442 g001
Figure 2. Theoretical (parallel) sampling of voltage and current.
Figure 2. Theoretical (parallel) sampling of voltage and current.
Electronics 10 00442 g002
Figure 3. The block diagram of the low-frequency measurement setup for measuring voltage, current, and power consumption of a single-phase load.
Figure 3. The block diagram of the low-frequency measurement setup for measuring voltage, current, and power consumption of a single-phase load.
Electronics 10 00442 g003
Figure 4. Error distribution of sampling period TS.
Figure 4. Error distribution of sampling period TS.
Electronics 10 00442 g004
Figure 5. Samples of sinusoidal signals taken with card and PLC with average RMS values of current, voltage, and average values of power.
Figure 5. Samples of sinusoidal signals taken with card and PLC with average RMS values of current, voltage, and average values of power.
Electronics 10 00442 g005
Figure 6. Two-point vs. four-point measurement method of RMS values. URMS(t), URMS (average) and IRMS(t), IRMS (average).
Figure 6. Two-point vs. four-point measurement method of RMS values. URMS(t), URMS (average) and IRMS(t), IRMS (average).
Electronics 10 00442 g006
Figure 7. Two-point vs. four-point measurement method of power (before correction).
Figure 7. Two-point vs. four-point measurement method of power (before correction).
Electronics 10 00442 g007
Figure 8. Two-point vs. four-point measurement method of power (after correction).
Figure 8. Two-point vs. four-point measurement method of power (after correction).
Electronics 10 00442 g008
Figure 9. Error distribution of sampling time Ts.
Figure 9. Error distribution of sampling time Ts.
Electronics 10 00442 g009
Figure 10. Measurement carried out with DAQ card and PLC.
Figure 10. Measurement carried out with DAQ card and PLC.
Electronics 10 00442 g010
Figure 11. RMS and harmonics of current (left) and voltage (right) measured both with DAQ card and PLC.
Figure 11. RMS and harmonics of current (left) and voltage (right) measured both with DAQ card and PLC.
Electronics 10 00442 g011
Figure 12. The two-point vs. three-point measurement method of URMS value.
Figure 12. The two-point vs. three-point measurement method of URMS value.
Electronics 10 00442 g012
Figure 13. P measurement for the 1-st harmonic.
Figure 13. P measurement for the 1-st harmonic.
Electronics 10 00442 g013
Table 1. Basic parameters of the Mitsubishi Electric FX5-32MT controller.
Table 1. Basic parameters of the Mitsubishi Electric FX5-32MT controller.
No.Item SpecificationParameters
Number of inputs/outputs32
execution time of LD and MOV instructions32 ns
Memoryprogram memory64 ksteps
comment memory2 MB
variable/register memory120 kB
fast counters1-phase counter6 (200 kHz)
2 (10 kHz)
2-phase counter3 (200 kHz)
5 (10 kHz)
built-in functionspulse signals outputs200 kHz, 4 axes
memory card connectorSD card
communication portsEthernet,
RS-232/485 (1 channel)
analog inputs (resolution, range)2 (12 bits, 0–10)
analog outputs (resolution, range)1 (12 bits, 0–10)
real-time clockmaintenance up to 10 days
expansion card connectors 1 slot
extension adaptersextension of communication modules2
extension of analog modules4
Table 2. The basic specification of the FX5-4AD-ADP analog input module.
Table 2. The basic specification of the FX5-4AD-ADP analog input module.
No.Item SpecificationParameters
1.Number of analog input points 4 points (4 channels)
2.Analog input voltage −10 to +10 V DC (input resistance 1 MOhm)
3.Digital output value 14-bit binary value Input
4.Input characteristics, resolution (analog input range, digital output value, resolution Voltage)0–10 V, 0 to 16000, 625 µV
0–5 V, 0 to 16000, 312.5 µV
1–5 V, 0 to 2800, 312.5 µV
−10–10V, −8000 to +8000, 1250 µV
5.Conversion speed maximum 450 µs (The data will be updated at every scan time of the PLC)
Table 3. Analog input parameters of the NI USB 6259 DAQ card.
Table 3. Analog input parameters of the NI USB 6259 DAQ card.
No.Analog Input ParametersParameter Values
1.Number of channels16 differential or 32 single ended
2.ADC resolution16 bits
3.Sample rateSingle channel maximum1.25 MS/s
Multichannel maximum (aggregate)1.00 MS/s
MinimumNo minimum
4.Timing resolution50 ns
5.Timing accuracy0 ppm of sample rate
6.Input range±0.1 V, ±0.2 V, ±0.5 V, ±1 V, ±2 V, ±5 V, ±10 V
7.Maximum working voltage for analog±11 V of AI
Table 4. Values obtained with DAQ card and PLC measurement.
Table 4. Values obtained with DAQ card and PLC measurement.
DAQ CardPLCError %
Ts (ms)0.0125-
P (W)21782151−1.24
Q (Var)00-
IRMS (A)9.189.12−0.65
URMS (V)237234−1.26
Table 5. Values obtained with DAQ card and PLC measurement.
Table 5. Values obtained with DAQ card and PLC measurement.
DAQ CardPLCError %
Ts (ms)0.0121-
P (W)108210880.55
Q (Var)00-
IRMS (A)76.6−5.71
URMS (V)237236−0.42
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jaraczewski, M.; Mielnik, R.; Gębarowski, T.; Sułowicz, M. Low-Frequency Signal Sampling Method Implemented in a PLC Controller Dedicated to Applications in the Monitoring of Selected Electrical Devices. Electronics 2021, 10, 442. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10040442

AMA Style

Jaraczewski M, Mielnik R, Gębarowski T, Sułowicz M. Low-Frequency Signal Sampling Method Implemented in a PLC Controller Dedicated to Applications in the Monitoring of Selected Electrical Devices. Electronics. 2021; 10(4):442. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10040442

Chicago/Turabian Style

Jaraczewski, Marcin, Ryszard Mielnik, Tomasz Gębarowski, and Maciej Sułowicz. 2021. "Low-Frequency Signal Sampling Method Implemented in a PLC Controller Dedicated to Applications in the Monitoring of Selected Electrical Devices" Electronics 10, no. 4: 442. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics10040442

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop