Online Monitoring , Analysis , and Remote Recording of Welding Parameters to the Welding Diary

*Corr. Author’s Address: University of Ljubljana, Faculty of Mechanical Engineering, Aškerčeva 6, 1000 Ljubljana, Slovenia, andrej.lebar@fs.uni-lj.si 444 Online Monitoring, Analysis, and Remote Recording of Welding Parameters to the Welding Diary Lebar, A. – Selak, L. – Vrabič, R. – Butala, P. Andrej Lebar* – Luka Selak – Rok Vrabič – Peter Butala University of Ljubljana, Faculty of Mechanical Engineering, Slovenia


INTRODUCTION
In the production of water turbines and heavy hydro energy equipment, welding is one of the most time consuming operations.Due to the combination of small batch production and different workpiece sizes, high flexibility of welding equipment is a prerequisite.Consequently, a high level of manual labour is needed, which unavoidably leads to lower quality and longer waiting times between operations [1].
Monitoring of manual arc welding is important since it correlates with productivity and influences welders' skills and stress, which in turn influence the quality.
This paper reports on a concept of welding process monitoring based on a microcontroller platform capable of data acquisition, aggregation, and wireless transfer to a data server and presentation in the form of a welding diary.
The main welding parameters necessary to be recorded and stored are regulated by the ISO 15609-1 standard [2], which requires, among others, information on material thickness, parent materials, welding consumables, and electrical parameters.Based on this standard, a special document, i.e. a welding procedure specification (WPS) also known as a welding diary is to be used.The aim of the welding diary is to enable traceability of welds.In the welding diary the actual welding parameters and consumables for each run are to be written by the welder.The welding diary incorporates several details: run sequence, the welding process, the size of filler material, the type of current, wire feed speed, run out length, travel speed, and especially electric voltage and current.A note should be made that the term 'electric current' such as is used throughout this paper, is frequently substituted with a 'welding current', when it is used in the domain of welding technology.
However, filling of the welding diary in a paper form is tedious and time consuming for the welder.Moreover, it was found that up to 15% of information in the welding diary is not filled in correctly.In order to improve the reliability of the welding diary creation, methods of online process monitoring should be applied.
Research work covered by scientific papers focuses mainly on the measurement and analysis of electric voltage, current, emitted light and sound [3].Sforza and Blasiis focus on the Fourier analysis of optical signals of visible, infrared and ultraviolet emission of the plasma.They managed to evaluate the quality of welding [4].A system based on photo diodes to detect a wide variety of weld defects is presented by Mirapeix et al. [5].Acoustic methods are mainly useful to assess welding process stability and to detect severe deviations in arc behaviour [6], [7].An alternative approach of the groove geometry measurement based on laser triangulation is presented by Bračun et al. [8].Rak et al. perform quality analysis immediately after welding by means of cyclographs and autocorrelation [9].
Due to the commercial importance of the welding domain, a lot of information related to monitoring and data transmission of welding process parameters is available in patent databases.For wireless data transmission two technologies are used.The first one uses transmission at frequency 131 kHz [10], while the second one uses ZigBee communication protocol at frequency 2.4 GHz [11].
Regarding real time monitoring of the welding process there are several patented solutions [12] to [14].Signal processing can be performed at the site of data acquisition [12], which enables additional flexibility, or the data is transferred to a data server where the processing is done [13] and [14].
The presented concept is suitable for most types of welding, however this paper focuses on the shielded metal arc welding process (SMAW).

ONLINE MONITORING CONCEPT
Welding stations are often repositioned, even several times a day due to specific requirements in production.Any kind of monitoring constrained to a particular location is therefore, not possible.Furthermore, if wireless technologies are used, transfer rates are limited in harsh industrial environments.This situation fits in the frame of the paradigm of smart environment, networked sensors, and ubiquitous manufacturing.The proposed concept of wireless welding monitoring is presented in Fig. 1 by means of a functional diagram.
The key idea is that every welding station is equipped with a custom microcontroller, capable of acquisition, analogue to digital conversion (A/D) and digital data processing.Signal processing and aggregation is performed on-chip in order to avoid transfer rate limitations.The processed data are then transferred to a data server by means of ZigBee wireless communication.
Four key steps are conceived: (1) signal acquisition and conditioning, where SMAW process signals, such as voltage and electric current are acquired and digitalised, (2) signal processing, where online aggregation of signals takes place, (3) information transfer by means of ZigBee communication, and (4) information presentation, where the results of signal acquisition are merged with the corresponding manufacturing execution system (MES) and enterprise resource planning (ERP) system data.In turn, they are presented in the form of a welding diary.
In the remainder of this section, the steps are described in detail, focusing on the specifics of SMAW signals.

The SMAW Process
In the SMAW process a consumable electrode with a dry flux coating and a metal core is used.An electric arc is established between the electrode and the workpiece.Energy released in the arc melts the workpiece, the solid metal core of the electrode, and the flux coating.As the flux coating burns away, an inert gas which protects the materials from chemical reaction with ambient air, is released.
In addition to the gas, a layer of slag covering and protecting the welded area is produced from the burnt flux coating [15].
The elements of the SMAW process are schematically shown in Fig. 2.
Slag which is liquid and lighter than the molten metal rises to the surface forming a protective layer over the hot metal.While the slag is cooling, it protects the weld from the influence of the ambient atmosphere and also slows down the cooling rate of the weld.
A typical electric current signal observed in welding with inverter type power supply source is shown in Fig. 3. Burning of stable electrical arc is achieved by constant average consumption of electric

Welding current pulse occurs at the moment of contact between melted metal droplet and base material
It can be observed in Fig. 3, that for the particular example short pulses with an amplitude of nearly 30 A are superpositioned on rather constant signal of electric current with value 70 A. The pulses can be explained by the process of metal droplets detachment, which occurs when the surface tension is no longer able to keep the drop attached to the electrode as can be observed in Fig. 4. The forces which determine the detachment process are gravity, force caused by electromagnetic induction, force caused by aerodynamic drag, and a momentum force accounting for the change of mass in the drop [15].Monitoring of process parameters can provide better insight into the process and, in the case of manually operated machining, also into the skills of a particular operator.

Signal Acquisition and Conditioning
The welding process should be observed by means of continuous monitoring of the electric current and voltage.In the paragraphs below, materials and methods to acquire these quantities are described.

Electric Current Acquisition
Electric current can be measured by various methods, but due to high electric current, electric isolation, required resolution, and dynamical response characteristics, a Hall effect sensor is proposed for the presented application.A wire, which carries the current, runs through a magnetic flux collector, which is in the form of a wound core.The Hall sensor itself is integrated in this core (Fig. 5).

Fig. 5. Hall effect sensor
The Hall effect semiconductor sensor is based on the phenomenon that drifting charge carriers are deflected by a magnetic field, which results in an output voltage signal U H proportional to the external magnetic field B, originating in the measured electric current I.

Voltage Modification
The voltage signal should be digitised with the best possible resolution, therefore it's range must be adapted to the input range of an A/D converter optimally.For this, a voltage divider followed by an isolation amplifier is proposed.
A suitable electric circuit is shown in Fig. 6.The circuit incorporates a voltage divider, an isolation amplifier and power supply electronics.The isolation amplifier provides electrical isolation and acts as an electrical safety barrier.The voltage division is chosen according to the A/D input range.

Considerations on Sampling Rate
The concept of the welding monitoring system was developed gradually.At the beginning laboratory equipment was tested.Later, it was compared to a system based on a microcontroller, dedicated for implementation in industrial environment.
During the simultaneous comparison of both systems an issue emerged that despite calibration some differences between signals acquired with the National Instruments laboratory equipment (I NI ) and the Arduino microcontroller based system (I ARD ) were identified.
In order to explain the differences between I NI - I ARD , a numerical simulation was created.The results of the simulation can be compared to the experimental example the Fig. 7.The simulated reference signal (Fig. 7a) was downsampled to two signals with different sampling rate frequencies, simulating e.g. the faster (I NI ) and the slower (I ARD ) DAQ system.The difference between simulated signals can be observed in Fig. 7b.Parameters used were low sampling rate frequency f L = 2 kHz, high sampling rate frequency f H = 5×f L and reference signal with frequency f U = 100×f H = 500×f L .In the phase of monitoring system development a similar comparison was made experimentally with identical sample rate frequencies f L and f H as in simulation (Fig. 7c) The difference between experimental signals can be observed in Fig. 7d.
Although the average difference between the signals measured with both DAQ systems in Fig. 7d is zero, deviations arise from the rise time and fall time of the imperfect square wave signal.There is no ambiguity in the calculation of average signal values, which are calculated by the following equation: where x n is the new estimate for average value, x n−1 is the old estimate for average value, x n is the current measurement and n is the number of measurements in the current time series.
In probability theory the importance of standard deviation σ originates from the central limit theorem, which states that the mean of sufficient large number of independent random variables will tend to be normally distributed and σ is a parameter of normal distribution.Usually, it is calculated using the following equation: but this requires two passes through the data as can be observed in the following pseudocode: In the first pass the average value x is calculated and in the second pass the squares of deviations from the mean value are added up.With large data sets two passes can be a serious issue if the available time or computer memory is limited.Unfortunately, this is the very case in the real time situations.Alternatively, a formula, which requires only one pass through data can be used [17]: ( The formula performs poorly if rounding errors are present [17], which is the case if single precision variables are used.In the literature it is advised that instead of accumulating ∑ i x i and ∑ i x i 2 it is favorable to accumulate quantities given by mathematical expressions M k and Q k (Table 1) and calculate the standard deviation as: Table 1.Mathematical expressions for M k and Q k [17] This principle can be implemented in the pseudocode as follows: Function: calculate σ B x i -current measurement while experiment running renew Q value acc. to x i renew M value acc. to x i end calculate σ B acc. to Eq. 4. It can be clearly seen in Fig. 8 that the difference σ W -σ ref (Eq.( 3)) is significantly larger than the difference s B -σ ref (Eq.( 4)).In both cases the reference standard deviation sref is calculated by standard Matlab function std() with double precision, whereas expressions are calculated with single precision.The double precision calculations are at least three orders better with respect to results.

Information Transfer
The aggregated parameters of each weld need to be stored for future use.In turn, they have to be transferred to a data server and saved into a database.Several challenges are associated with this.Firstly, welding is done by both static and hand-held machine tools.The latter are movable and frequently change location, which makes data transfer by cable impractical.Wireless networks, which have the potential to solve this, have to deal with reliability and robustness issues in harsh industrial environments.Furthermore, if parameters are acquired from several welding stations, synchronisation of data has to be achieved.
As a solution to the above mentioned challenges, ZigBee wireless protocol is proposed.ZigBee is based on IEEE 802.15.4 standard for low-rate wireless personal area networks and is targeted at radiofrequency applications that require low data rate, long battery life, and secure networking.What differs ZigBee from competing standards (Bluetooth, WiFi) is that newer solutions, such as ZigBee Pro, offer self-healing network capabilities, extended singlehop range of up to hundreds of metres using 2.4 GHz frequency band, fragmentation, frequency agility, and advanced support for networks of thousands of devices.These properties make ZigBee usable even in industrial environments, where problems of radiofrequency interference are common.
The main limitation of the proposed protocol is that the data transfer rate is limited to 250 kbit/s in ideal conditions.Therefore, data aggregation of the previous step plays a very important role.
The data are transferred by the ZigBee interface to the data server.The communication algorithm works as follows: when the welding node is turned on, the time of the module is synchronised with the time of the computer.When welding starts the module records welding start time stamp and starts calculating average welding current and voltage.When the welding stops, the welding node records the welding stop timestamp.These four pieces of data are then transferred to the data server and to the database.The procedure is presented in the pseudocode below: Function: monitor welding synchronize time while true if welding save time of start end while welding update averages update st.deviations end save time of end send data to server end

Information Presentation
The standard [2] specifies technical content of welding procedure specification, which takes the form of a welding diary in practice.In order to fill the welding diary form, welding parameters information needs to be combined with manufacturing execution system (MES) data, which includes information about work orders, welding consumables, and operators.For example, average travel speed can be calculated by dividing the weld length specified in work order data with the welding time.
The welding monitoring system is responsible for current, voltage, travel speed and heat input measurements.For information about welding consumables as well as welder data and documentation, MES may be used.ERP system can provide only high-level information, such as manufacturer data.By combining all the information sources, a complete picture of the process can be obtained.

CASE STUDY
Two case studies are presented to illustrate the approach.Firstly, laboratory experiments are performed in order to verify the viability of the concept.A microcontroller is selected and compared to laboratory measurement equipment, which shows that a low cost microcontroller solution is adequate for SMAW signal acquisition and processing.Results of online signal analysis are discussed.Secondly, an industrial implementation of the concept is presented.

Laboratory Experiments
Initially, a comparison between the microcontroller and the laboratory measuring system was made.Measurements were performed on the experimental setup schematically shown in Fig. 9.As a power source, a Fronius Magic wave 2000 was used, the consumable wire was electrode Jadran S (ϕ = 2.5 mm with 0.08% C, 0.35% Si, 0.5% Mn).Structural steel with specimen thickness 4 mm was used in the experiment.The electric current was approximately 70 A, whereas the voltage supply was 21 V.The arc movement speed was 4 mm/s.
Arduino microcontroller platform was selected for the development of welding monitoring system.The platform is based on open-source hardware and software.It uses ATmega328 microcontroller with 16 MHz clock speed, six analog inputs (10 bit) and 1 KB of EEPROM memory.The signal was sampled with a sampling rate of 2 kS/s and transmitted to a computer by USB serial communication.The time stamp was set by the microcontroller in microseconds.
As a reference, data acquisition device National Instruments USB 6221 with a sampling rate of 10 kHz per channel and 16-bit resolution was employed.LabVIEW data acquisition software was used.Let us refer back to Fig. 7c.The figure shows that electric current measured during welding by laboratory measuring system is in good correlation with the current measured by the Arduino microcontroller platform.Fig. 7d shows the difference between the signals.The difference is in the range of ±5% of the measured signal, therefore it may be confirmed that the Arduino platform is fast and accurate enough for the given task.

Online Signal Analysis
The algorithm for online standard deviation calculation was tested for a range of possible signals.
For this, the influence of slag on electric current was studied, as slag influences the occurrence of electric current pulses (Fig. 3).
The experiment was conducted as follows: on a clean steel surface three separate weld beads were deposited.After the deposition of the beads, the remaining slag should be completely cleaned, but in the experiment the first bead was left unaltered, the second was partially cleaned of slag and the third bead was completely cleaned.After the cleaning operation, the second welding pass was applied over all three beads.It was expected that due to the remaining slag the distance between the electrode and base material varies more apparently.This should be reflected in the occurrence of electric current pulses.Despite the fact that signals look rather similar in the time domain (Fig. 10), their distributions (Figs.11a to c) reveal significant differences which can be used to discriminate a stable and unstable process.The average value of the standard deviation is significantly different between not removed slag σ a = 5.17A and totally removed slag σ c = 6.57 A. By using this method it is also possible to distinguish the share of stable and unstable process, e.g. if the arc is discontinued during welding.

Implementation in Industrial Environment
The concept proposed in Fig. 1 is industrially implemented on the welding power station Lincoln Idealarc DC -1500 (USA).It is a multi-process DC arc welding power source for automatic welding applications.The machine is designed for submerged arc welding with one welding wire.The operator can set the electric current, voltage, and travel speed of the welding head.
The implemented system is based on the same Arduino microcontroller platform it was used for the laboratory experiments.XBee-PRO 60 mW ZigBee device (from Digi) is used for signal transmission and MSSQL database for data storage.The system was in operation in the industrial environment for half a year.During this time 1005 welds were made.The average welding time was 951 s.The total welding time was 263 h and 3.75 MWh of electric energy were used.
The start and stop times of welding, average welding process voltage, and electric current are measured.The average voltage and current are calculated according to Eqs. ( 2) and ( 5).
The measured data is combined with MES data.The results are shown in Fig. 12, where process parameters are combined with operator and warehouse events.Each voltage spike represents one welding run.Together with the operator and warehouse actions, this gives a complete overview of the welding operations.
Energy consumption as well as wire and sand consumption are monitored, which enables accurate cost tracking.
In this way, the welding diary is completely digitalised, allowing for a detailed analysis of welding on the process and operation levels.

CONCLUSION
In this paper a new concept of monitoring, analysis and remote recording to the welding diary is presented.Based on the concept, a pilot system has been developed, tested in laboratory conditions and implemented in industrial environment.The system is based on the Arduino microcontroller platform, online signal processing algorithms, and ZigBee wireless communication.It has been shown that the presented system is appropriate for the monitoring task where the complete concept is capable of substituting the tedious manual fulfillment of the welding diary.Furthermore, it has been shown, that the system can be upgraded with a user friendly graphical presentation, which surpasses the conventional welding diary.

Fig. 1 .
Fig. 1.Functional diagram of the SMAW process monitoring concept

Fig. 7 .
Fig. 7. a) Simulated and c) measured signal; corresponding difference between high rate and low rate sampled signal in case of b) simulation and d) measured signal

Fig. 8 .
Fig. 8. a) Signal of electric current I, comparison of differences between b) standard deviations calculated by σ W and c) σ B

Fig. 9 .
Fig. 9. Experimental setup of the SMAW process monitoring system during laboratory experiments Electric current was measured simultaneously by two Hall effect sensors.The measurement range of LEM LF 1005-S sensor is ±1000 A, while the

Fig. 10 .
Fig. 10.Three signals of electric current corresponding to experimental SMA welds -second pass.; a) slag not removed b) slag partially removed and c) slag removed

Fig. 11 .Fig. 12 .
Fig. 11.Standard deviation of electric current signals (d) for three welds presented in Fig. 10.Accompanying distributions are presented in; a) slag not removed, b) slag partially removed, and c) slag removed