





Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!






Research Scholars, IDP in Systems and Control Engineering, Syscon Lab, 114 B, ACRE Building, Indian Institute of Technology Bombay, Powai, Mumbai-400076, Maharashtra, India. Telephone : +91 22 25780263. Emails : [email protected] ; [email protected] ; [email protected]
This paper presents the design, fabrication of a micro- controller based resistance welding system which is used for performing a welding process. The paper is divided into 4 sections. First, a brief introduction to the what is welding, methods of welding control such as resistance and spot welding is given. Secondly, the critical factors in the design of a welding process is dealt along with the principle of the welding process. Following this, the introduction to the design of the control scheme employed by us with the basic block diagram of the welding system and the functioning is presented. Thirdly, the design and development of the control software algorithm is dealt with. Finally, the conclusions is drawn along with its working and future improvements.
Keywords : Resistance welding, Micro-controller, Firing angle, Constant current control.
Welding in the simplest terms is the process of fusing or joining two or more metal pieces with the application of heat and pressure. Resistance welding uses the concept of heat generated due to the current flowing through a resistance. The heat energy generated is large enough to weld two work-pieces together. Automated resistance welding machines use micro-controller based control systems to regulate and ensure consistent welds. The design hopes to achieve complete automation of the resistance welding process. This is done by accepting various process inputs from the user and after due process, controlling various parameters like the current, conduction angle, weld count, etc.,.
This is achieved by using a micro-controller, which will acquire data from the user and process it to generate suitable control signals as and when required
during the welding process. The use of a μC makes the operation extremely fast, reliable and flexible. In the design, the most important parameter to be monitored and controlled is the primary welding current. For this constant current control method, an adaptive algorithm takes care of the past and present values, to predict the firing angles of thyristors in the next cycle, to ensure the preset value of the current is maintained. Also, various other parameters like the weld count, job count, conduction angle, etc., need to be monitored. This is done by using a micro-controller which will take care of all the processes parameters with minimum of supervision.
It is a general term used to describe a group of welding processes, which depend on the passage of high electric current for the generation of heat. Resistance welding is defined as any welding processes in which, at some stage, force is applied to surfaces in contact and in which the heat for welding is produced by the passage of an electric current through the electrical resistance at, or adjacent to these surfaces.
The amount of heat produced is determined by the relationship between the electrical resistance and the current being passed and the time for which the current is allowed to flow. The heat produced is proportional to the square of the current multiplied by the resistance multiplied by the time duration. The resistance values are commonly very low and the time cycles are usually required to be very short. This results in the need for exceptionally high welding currents upto about 20 KA. Equipments capable of delivering such high currents for closely controlled brief intervals of time is naturally expensive and the resistance welding processes are therefore suitable only for mass production applications where the expense is justified.
The main advantages of resistance welding are it is suitable for mass production, accurate control, no need for filler metal, fluxes, ability to join dissimilar metals and negligible metal loss. Some of the types of resistance welding are spot welding, gun welding, shot welding, flash welding and seam welding and projection welding. All of these operations are fundamentally the same but the preparation of metal and the construction of the machines may be different.
3 Spot Welding
Spot welding is the most common form of resistance welding and is defined as a process in which a weld is produced at a spot in a work piece between the electrodes, the weld being of approximately the same areas as the electrode tips, or as the smaller tip where they differ in size. Force is applied to the spot, usually through the electrodes and continuously throughout the process. The term ‘spot’ is an obvious one from the shape and appearance of the weld. The process is almost always applied to the lap joints. The basic assembly is shown in the Fig. 1 below.
Welding Power Supply
Welding current Pressure
Electrode
Work-piece
Nugget
Figure 1 : Spot welding assembly
The joint to be welded is placed between the tow electrodes and the pressure is applied to ensure good contact. The electrodes are made of copper of high conductivity copper or lead and this ensures that a minimum amount of heat is produced where they make contact with the work piece. Heating of the weld area begins where the parts to be joined touch each other and is largely due to the contact resistance.
Any heat, which is generated near the electrodes, tends to be conducted away by the mass of the electrodes. The generation of the heat at the central interface continues until a slug of metal is in the molten condition and the current flow is terminated. This molten metal then cools and solidifies whilst still under the forging pressures of the electrodes. Success in spot welding depends on the correct balance between current, time and pressure and that these must suit the characteristics of the materials being welded.
4 Critical factors in welding
Understanding the resistance weld process requires an understanding of the main factors involved and how
they work together. The critical factors involved in welding are the current, voltages, power, resistance and the transformer specifications, transmitting force, current density, throat dimensions and the electrodes.
The current is usually measured in KA. A resistance weld cannot be made unless there is a sufficient weld current. If current is the amount of electricity flowing, then voltage is the pressure or force that’s causing the flow. Power is voltage measured by current and is in watts or KVA. This means the amount of current flowing times the pressure that’s causing it to flow equals the amount of power generated.
Resistance is the opposition to flow of current. Since R to I is what generates the heat in the work piece, it is critically important that the area with the greatest resistance be at the interface between t he two parts being joined. The heat is where the resistance is, and the resistance is where the heat will be.
The transformer used is of high rating as is should be capable of supplying that much weld current.
The amount of force needed to make a good weld varies, depending on t he type of metal being welded and other factors, but a general figure would be about 600 to 800 lbs. Current density describes how much current is being delivered to a specific area. It describes the concentration of the current in a small area of the work piece, viz., namely the area where the weld is. Throat dimensions is an important factor for current determination.
Electrodes play a very important role in t he successful operation of a spot welding machine. They must conduct the welding current to the work without overheating. They must at the same time conduct heat away from the surface of the sheet being welded and they must apply pressure to the work without deforming.
5 Principle of resistance welding
Ohm’s law states that, Voltage = Current × Resistance V = I R (1) Joules law states that, Heat = V * I * time for which the current flows Heat = V I t = I 2 R t. (2)
Basically, it states that the heat energy required for welding depends on the square of the welding current flowing between the two electrodes and on the resistance offered to this current between the two electrodes. The resistance taken into account includes the resistance of the welding electrodes and the resistance of the jobs that are being welded together.
Figure 5 : Explanation of the firing angle measurement
From this equation, we can see that the current available in the primary depends on the firing angle α. As α increases from 0 to 180°, the current available at the load decreases and hence the power delivered to the load also decreases. Hence, by controlling the firing angle α, we can control the current and power required for the welding process. In the designed control scheme employed by us, the constant current control method is used which is explained as follows.
Consider a full wave rectified current signal as shown in Fig. 5. Let a complete half cycle correspond to Irms of 50 KA. Now, for a welding current of 20 KA, the firing angle α 1 can be calculated from the above equation to be around 125°. i.e., for I 1 = 20 KA, α 1 = 125°. But, due to an inherent error present the actual firing angle may b e 127°. This causes a difference of 1 KA in the current. This has to be compensated for in the next cycle.
Hence, the firing angle is recalculated to compensate for the shift in the desired value as 122. 2°. If we now even consider the inherent phase angle difference of 2°, the new firing angle will therefore become 120.2°. Hence, in the next half cycle, the thyristors will be triggered at the new firing angle. The process is repeated so as to keep the current at the desired value for the entire welding cycle process.
9 Block diagram
The overall working of the designed system which is shown in the block-diagram in Fig. 6 can be explained as follows :
The user inputs the welding current, no. of cycles required for squeeze, weld and hold cycles and the job count. The micro-controller reads this data and calculates the approximate firing angle required to obtain the desired welding current. A control voltage corresponding to this firing angle is applied to the TCA785 phase control IC through a DAC. The phase control IC is used to trigger the high power anti-parallel thyristors in the main welding transformer.
This IC recognizes the zero crossing of the ac line voltage through a stepped down transformer and this zero crossing is indicated to the micro-controller
through a port line. The micro-controller synchronizes the firing of the thyristors with the zero crossing in every half cycle. The firing of the thyristors takes place for the number of cycles that the user has the input. During this time, the micro-controller receives feedback about the actual welding current that is being made available through an ADC. Appropriate action is taken to ensure that the actual welding current is very close to the desired welding current.
Once a particular job has been welded, the micro- controller has to display the relevant information, which is required by the user. This includes the actual welding current and the number of jobs completed. If during the welding process, errors occurs, provision is made to indicate the occurrence of the error. A 12 V power supply for the phase control IC and DAC, a 15V supply for the DAC and a 5V power supply for the rest of the circuit is designed and incorporated in the overall system design.
The design also includes provisions to store an entire schedule for later use. This helps in avoiding mistakes from occurring and eliminates the need to reenter all the datas.
The block diagram of the designed controller system has the following major units :
Pulse amplification
Pulse Generation & ZC Detector
Control Power source
Display Driver
Display Module
Input switches
Input - Output Unit
Micro- controller Memory
A to D Conversion
Toroidal coil
Welding transformer
Work piece WeldingPower Thyristors 230 V / 50 Hz
AC mains 230 V / 50 Hz Control Power Transformer
Fig. 6 Block diagram of the entire designed resistance welding control system
A separate power circuit is also required to provide power to all the circuits of the controller. The power supply requirements of various circuits are +5V, +12V, –12V. The control power source provides these different power supplies from the same circuit thus saving the use of different power supplies.
This unit triggers the thyristors at adjustable firing angles so as to control the amount of current flowing through the primary and hence the secondary of the welding transformer. This unit provides the basic feedback actuation in the controller circuit. The two anti-parallel thyristors are fired at calculated firing
angles thus controlling the current flow of the welding current.
It takes in the control voltage and gives output pulses, which controls the conduction angle of the thyristors. The reference is obtained from the zero crossing of the AC mains and the output of this block is given to a pulse amplifier circuit, which gives the firing pulses to the thyristors. So, any discrepancies in the current value can be brought to the required value by the proper processing at the micro-controller unit and the proper firing mechanism.
The MCU is the most critical part of the system. The entire process of welding has to be monitored and collected by the controller. The micro-controller interfaces with several other circuits to effectively control and vary the numerous parameters that are vital to the successful functioning of the system. All the incoming data, which mainly consists of analog signals, is digitized and then processed by the micro- controller. The micro-controller also controls the display panel, which is an interface between the operator and the machine.
The MCU controls the various parts of the system. Some of them are :
Another vital function of the micro-controller is to monitor the primary and the secondary currents. Since the primary and the secondary currents a re in the order of several KA, ct coils or the toroidal coils a re used to step d own the current to a measurable level. The output of these coils is usually an industry standard of 1A or 5A. This is passed through signal conditioning and current to voltage converter circuits that provide a signal that can be digitized.
For digitizing the signals, a ADC is employed. It converts the signal to digital inputs that the micro- controller can process. These digital inputs are then compared and processed, taking into account the parameters entered by the operator and an appropriate action is taken.
For ex., if the constant current mode is selected, and the measured current is slightly above the set value, then the firing angle of the thyristors of the contactors is adjusted so that the average current over the entire cycle is equal to the set value. This approximation is done at every half cycle interval thus, making the controlling mechanism very accurate.
The components of the designed micro-controller based welding controller consists of the 89C micro-controller, the input-output ports like the 8255’s, analog signal interface, the DAC0808 and the ADC 0809.
The micro-controller selected for this welding application is the Atmel AT89C52, which is a low- power, high-performance CMOS 8-bit micro-computer with 8K bytes of flash programmable and erasable read only memory. The MCU interacts with all the units of the controller using an Harris 8255A PPI, which provides a 8-bit bi-directional i-o ports, which are used to communicate with devices such as DAC’s and ADC’s.
the units of the controller. This demands a significant amount of input / output ports from the micro-controller. Since the number of available i/o ports on the micro-controller is limited, it is required to interface an external i/o peripheral device to expand the i/o capability of the MCU. This is achieved by interfacing the 8255 Programmable Peripheral Interface PPI to t he micro-controller.
The 8255 provides three 8-bit bi-directional ports, which are used to communicate with the devices such as the DAC and the ADC, as well as the external switches of the user interface. The 8255 is interfaced in the memory –mapped fashion for easy access of other peripherals. The peripherals is selected using the address lines provided in the
the μC controls the SCR triggering unit as well as monitors the welding current. Such signals are analog in nature that the μC is required to handle. Since the μC cannot directly manipulate analog signals, digitization of these signals is necessary. This is achieved by using D/A and A/D converters.
by generating a control voltage that controls the firing angle of the thyristors. Depending on the value of the welding current entered by the user, the μC generates digital data corresponding to the required value of the control voltage and feeds it to the DAC. The DAC performs the conversion and provides the analog voltage to the triggering unit. The DAC IC that is selected for this application is the DAC0808.
measuring a DC analog voltage that is downscaled to be made compatible with the inputs of the μC unit. This analog signal needs to be converted into a digital value to be manipulated by the μC. An A/D
DAC0808 and the amplifier, a buffer stage is included to provide isolation and to prevent loading of the DAC circuit.
This buffer stage is a voltage follower implemented using the OPAMP 741. The output of the amplifier stage is given to the thyristors triggering circuit as the control voltage to the phase control IC TCA785. The amplifier is designed as
Ri = 3.3, where Rf = 33 K and Ri = 10 K.
It is designed using the following IC chips, viz., 8255, ADC0809 and the multiplexer. The multiplexer is responsible for maintaining the current for the welding process constant. To achieve this, some sort of feedback mechanism must be incorporated.
The actual value of the welding current is measured externally and a 0 to 5 V analog input is made available to the μC unit. An ADC is therefore, interfaced to the μC unit through one of the ports of the 8255 PPI.
It is designed using the following IC chips, viz., AT89C52, ICM7218C – 8 digit LED multiplexed display driver, 74LS373 – a octal latch. The various parameters of the welding process as well as the status of the operation need to be displayed to the user. For this purpose, common anode 7-segment LED’s are employed. The LED’s are multiplexed and driven by and 8 of them are driven by the common anode 8-digit display driver IC 7218C.
It is designed using the following IC chips, viz., AT89C52, ICM7217 – the 4 digit LED display driver, programmable up / down counter. One of the parameters that the display panel shows is the job count. This is a counter that is incremented after every successful weld operation. For displaying the present job count, 4 seven segment LED’s are used. These are driven by the ICM 7217.
12 seven segment LED’s are used to display various parameters to the user. The LED’s employed are of common anode type. Here, the digit drive is connected to the supply and the segment that is to be activated is connected to the ground. Of the 12 LED’s, 8 are driven by ICM7218C and the remaining are driven by ICM7217.
The user enters the welding parameters through the input switches which are of normally open type push button switches. These NO switches are directly connected to the port B of the 8255 PPI through
connectors. The other end of the switches are connected to the ground. Whenever the user presses a switch, a logic low is detected at the port pin and an appropriate action is taken by the software, depending on the switch pressed.
The PS circuit is designed using the following items : Transformer of 230 V primary & 15-0-15 V secondary, diode-bridge network (IN4007), filter caps, voltage regulator IC’s (7802, 7812, 7912). The circuit provides all the other circuits with the power supply they require. The different voltages provided by the circuit are +12 V, + 5V, –12 V and the reference ground.
10 Software
The hardware performs the various tasks for controlling the process as explained in the previous sections. However, for the successful working of the controller and to ensure satisfactory welds, a robust software core is essential. The software drives the μC, which in turn controls the peripheral circuits. The software is coded in MCS-51 family assembly language and is stored in the in-built 8K Flash EEPROM of the μC AT89C52. The code is written in 8051 assembly language. The software that drives the welding process control system is based on the following designed and implemented algorithm.
The micro-controller unit consists of several components. A failure in any one would result in a failure of the system. Also, before testing the controller, it is necessary for us to ensure that all the IC’s are functioning normally and all the connections are proper. For this purpose, a diagnostic routine was written that would test all the IC chips.
A diagnostic routine written to test all the IC’s is as shown below.
. ORG 000h
START :
MOV SP, #20H LCALL init_
_begin :
LCALL mem_test LCALL disp_7218_test LCALL dac_test LJMP _begin
; INITIALIZE 8255 init_8255 :
MOV DPTR, #2003H MOV A, #8BH MOVX @DPTR, A RET
; INIT_8255 ENDS
; MEMORY TEST mem_test :
MOV DPTR, #000h MOV R0, #0FFH
_up1 : MOV A,R MOVX @DPTR, A INC DPTR DEC R DJNZ R0,_UP
_up2 : MOVX @DPTR, A INC DPTR INC R
CJNE R0, #0FFH,_up RET ; MEMORY TEST OVER ; 7218 TEST disp_7218_test : MOV DPTR, #400H MOV R0,#09H MOV R1,#07H MOV A,#80H ___ di g ag : LCALL delay MOVX @DPTR, A INC A DJNZ R0,_dig_AG ANL A,#0F0H SWAP A INC A SWAP A DJNZ R1,_dig_ag RET ; 7218 TEST OVER ; 7217 TEST disp_7217_test : CLR P3. LCALL delay MOV R0, #0FFH ___ incag : SETB P3. LCALL delay CLR P3. LCALL delay DJNZ R0,_inc_ag RET ; 7217 TEST OVER ; DAC TEST dac_test : MOV DPTR,#2000H MOV R0,#0FFFH _up6 : MOVA, #0FFFH _up5 : MOVX @DPTR,A LCALL delay DJNZ A,_up DJNZ R0,_up RET ; DAC-TEST ENDS ; DELAY ROUTINE – BIG DELAY delay1: PUSH 00H PUSH 01H MOV R0,#0FH _u2 : MOV R1,#0FFFH