











































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!












































ABB Robotics Products AB DPT / MT S-72168 VÄSTERÅS SWEDEN Telephone: (0) 21 344000 Telefax: (0) 21 132592
Programming SpotWare
The SpotWare package is added to the base system and is ready to use. However, in order to be able to adapt the package to special needs, the I/O configuration and application specific program data and routines can be modified. See Customizing the spot weld instruction on page 6.
Spot weld instructions
A spot weld instruction comprises both motion and process. It contains basically the same types of information as a positioning instruction. However, each spot weld instruction includes further arguments, spot and gun , that serve as data for the spot weld process (data types: spotdata and gundata ).
Each SpotL instruction includes a movement to the weld position and one weld.
Since the spot weld is always carried out at a stop point the zone argument is omitted.
Note. gun1 and tool1 contain data for the same tool, i.e. the spot weld gun, where tool contains the motion-specific data known from the MoveL instruction.
Defining spot weld data
Before starting to program the instructions, you should define the spot weld data that is to be used. This data is divided into two types:
There is already data defined in the spot weld system module SWURSF. If the new data that is being defined belongs to the spot weld application, it should also be stored in SWUSRF.
Switch inhibiting gun pre-closing Switch inhibiting concurrent execution Choice for opening gap after the weld
Arguments as in L = Linear the MoveL instruction
Data for the spot weld process
Gun specific spot weld data
Testing a spot weld instruction
To prevent the spot weld process executing during programming, it is possible to run SpotL in simulation mode.
This can be done by setting sw_inhib_weld TRUE. This will set the output current_enable low and the simulation will be carried out by the weld timer.
If such a signal is not connected the spot weld can be internally inhibited by setting sw_sim_weld TRUE. The simulated weld time is then stored in sw_sim_time. In this simulation mode the start signal is never sent to the welding timer.
Note. The gun will be opened and closed as normal.
The SpotL instruction has a built-in pre-closing of the weld gun, i.e. when approaching the position the gun will start to close in advance, in order to save time. The pre_closing relates to closing the gun from the work stroke. Closing the retract stroke should be handled in the user program, by a fly-by position.
The gun closing times are defined in gundata. It is possible to define a closing time for each gun pressure (max. 4).
The pressure to use in the actual SpotL instruction is stored in spotdata. It will also pick the accurate closing time.
Note. The pre-closing can be disabled by choosing the \InPos argument in the instruction or by setting sw_inpos TRUE in SWURSF (global disabling).
Defining the closing time manually
Defining the closing time automatically
It is possible to measure and store the closing times using a RAPID program.
Customizing can be done at different levels:
Global data, service and equipment routines affecting the entire program. (See Predefined Data and Programs in RAPID Reference Manual).
Global data, service and equipment routines affecting the entire program. (See Predefined Data and Programs in RAPID Reference Manual).
I/O configuration
Mirroring the connected equipment. (See System Parameters).
In continuous mode the spot weld instructions are by default running in concurrent execution, i.e. the program execution is continuing whilst welding is in progress, and it will not stop until the next motion instruction.
Therefore if the running is stopped during welding, the program pointer is normally moved to next SpotL or motion instruction. This fact is important to remember when SpotL positions are modified with ModPos.
To avoid problems it is recommended to execute the program in step-by-step mode when positions are modified. In this mode the program pointer is in agreement with the robot position. If a strictly sequential execution is desired also in continuous mode the NoConc flag must be set in the instruction.
The gundata contains counters and limits for each pair of tips. The counters will be incremented for each spot.
A tip-dress supervision can however be programmed in the main program or in the SpotL supervision routines.
In this way, an automatic tip-dressing can be performed.
Spot Welding
The spot welding system parameters are defined by input and output signals.
See Chapter 12, System Parameters.
The SpotWare package can be configured for different equipment setups. This chapter describes the signals used by SpotWare and their dependency of the equipment.
The physical connections can be freely changed. To save physical signals, signals not in use can be connected to a virtual unit (type eip000).
If different signal names are required, new logical signals can be added and connected to the corresponding physical signal. The predefined logical name must remain in the configuration as it is used internally by the SpotL instruction.
There are two predefined units:
-one physical unit named SW_BOARD with default setup:
-one virtual, named SIM_BOARD.
The basic setup signals are connected to the SW_BOARD. All others are connected to the SIM_BOARD which makes them easy to activate.
Start and monitoring of the weld
start1 output 7 Start signal to the weld timer (Tip1 if a dual gun is used)
Timer reset
Process error
Current signal
Equipment supervision
By default, the following input signals are tested in every welding position before the weld start. If desired, other user defined signals can be tested, before or after the weld- ing process. (See also Predefined Data)
If a double gun is used it has to be indicated in gundata by nof_tips = 2. Tip_no in spot- data chooses the tip (tip_no = 12 or 21 closes both tips together). Close_tip1, work_select and close_tip2 must be defined as consecutive physical signals.
reset_fault output 1 Reset signal. Can be used to reset the welding controller after a weld error. The signal is pulsed with a user defined pulse length. (sw_reset_time1) before manual or automatic rewelding.
process_error output 9 Operator request is set when an error situation occurs.
current_enable output 8 Current enable signal. Used for the weld inhibit function. See Predefined Data and Programs (sw_inhib_weld).
timer_ready input 8 The timer is ready to weld.
flow_ok input 9 Signal indicating problems with the water sup- ply.
temp_ok input 10 Signal indicating over-temperature.
current_ok input 11 Signal indicating that the weld current exceeds the permissible tolerances.
close_tip2 sim output Close gun request, tip 2
By default, the following input signals are set depending on the motor on state and the output signals current_enable and process_error. (See also Predefined Data)
The manual action signals are internally triggering RAPID routines to execute. The sig- nal are defined on the SIM_BOARD.
The manual actions operate on local data. This data may be updated in three ways:
SwNewData sim output Transfers manual data to the manual actions
SwCloseGun sim output Close the gun, runs sw_close_gun
SwOpenGun sim output Open the gun, runs sw_open gun
SwRunProc sim output Runs complete spot weld including opening/ closing of the gun. This action may also be used to run a reweld when the process has stopped in a weld ready timeout situation.
SwSkipProc sim output Skip the ongoing action and be ready for a new action. This signal is also used by SpotWare for internal process abortion.
weld_power sim output Possible to use for a weld power unit contactor
water_start sim output Possible to use to activate water cooling
Table 1 Default functionality of water_start and weld_power
Activators motors on 0 1 0 1 0 1 0 1
process_error 0 0 1 1 0 0 1 1
current_enable 0 0 0 0 1 1 1 1
Result water_start 0 0 0 0 0 pulse 0 0
weld_power 0 0 0 0 0 1 0 0
gundata Spot weld gun data
Gundata is used to define spot weld gun specific data, to control the gun in an optimal way in the weld process.
Gundata is used in spot weld instructions and has the following structure:
nof_tips (number of tips) Data type: num
Number of electrode pairs (1 or 2)
nof_plevels (number of pressure levels) Data type: num
Number of pressure levels (1 - 4)
close_request (closure request) Data type: bool
If the flag is TRUE, the ordered pressure level is tested before the weld may start.
open_request (opening request) Data type: bool
If the flag is TRUE, the gun open signal is tested before the next motion is released. The time out is defined by sw_go_timeout. (See Predefined Data and Programs - System Module SWUSER )
Note. The open_time must elapse before the test is done (see below).
If the flag is FALSE, the next motion is always released after open_time (see below).
build_up_p3^1 Data type: num
Time [s] elapsed to build up the pressure from the moment when the gun has just about closed. The pressure p3 has to be set in advance.
build_up_p4^1 Data type: num
Time [s] elapsed to build up the pressure from the moment when the gun has just about closed. The pressure p4 has to be set in advance.
open_time Data type: num
The time [s] that always elapses between the gun opening order and the release of the next motion or the test of gun open (see above).
< dataobject of gundata > < nof_tips of num > < nof_plevels of num > < close_request of bool > < open_request of bool > < tip1_counter of num > < tip2_counter of num > < tip1_max of num > < tip2_max of num > < close_time1 of num > < close_time2 of num > < close_time3 of num > < close_time4 of num > < build_up_p1 of num > < build_up_p2 of num > < build_up_p3 of num > < build_up_p4 of num > < open_time of num >
Described in: Spot weld instruction Instructions - SpotL Definition of tool TCP, weight etc. Data types - tooldata