








































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
ArcKill Kill the AW process
ArcKill is used in advanced error handlers to kill the AW process.
PROC main()
WeldSeam1; WeldSeam2;
ERROR TPReadFk ans “The weld failed”, ““, ““, ““,”Service”,”OK”;
TEST ans CASE 4: service_routine; TRYNEXT;
DEFAULT: TRYNEXT ENDTEST
ENDPROC
PROC WeldSeam1()
! Weld the seam ArcL \On, p1, v100, seam1, weld5, noweave, fine, gun1; ArcL \Off, p2, v100, seam1, weld5, noweave, fine, gun1;
ERROR TEST ERRNO CASE AW_IGNI_ERR: ! Try to restart the process if this was an ignition error. RETRY;
DEFAULT: ! Kill the aw process and raise the error to the main routine ArcKill; RAISE ENDTEST
ENDPROC
ArcRefresh Refresh arcweld data
ArcRefresh is used to tune aw process parameters during program execution.
PROC PulseWeld()
! Setup a two Hz timer interrupt CONNECT intno1 WITH TuneTrp; ITimer ,0.5 ,intno1;
! Weld the seam ArcL \On, p1, v100, seam1, weld5, noweave, fine, gun1; ArcL \Off, p2, v100, seam1, weld5, noweave, fine, gun1;
IDelete intno1;
ENDPROC
TRAP TuneTrp
! Modify the weld_voltage component of active welddata.
IF HighValueFlag =TRUE THEN weld5.weld_voltage := 10; HighValueFlag := FALSE; ELSE weld5.weld_voltage := 15; HighValueFlag := TRUE; ENDIF
! Order the process control to refresh process parameters ArcRefresh;
ENDTRAP
The weld voltage will be switched between 10 and 15 volts by the trap routine at a two Hz rate.
Described in: Performing a circular weld Instructions - ArcC Performing a linear weld Instructions - ArcL Definition of weld data Data Types - welddata Definition of weave data Data Types - weavedata Installation parameters for welding System Parameters - Arc Welding equipment and welding functions
Described in: Connects to a correction generator Instructions - CorrCon Disconnects from a correction generator Instructions - CorrDiscon Writes to a correction generator Instructions - CorrWrite Reads the current total offsets Functions - CorrRead Removes all correction generators Instructions - CorrClear Characteristics of non-value data types Basic Characteristics - Data Types
CorrCon Connects to a correction generator
CorrCon is used to connect to a correction generator.
VAR corrdescr id; ... CorrCon id;
The correction generator reference corresponds to the variable id reservation.
Descr Data type: corrdescr
Descriptor of the correction generator.
Path coordinate system
All path corrections (offsets on the path) are added in the path coordinate system. The path coordinate system is defined as:
Figure 1 Path coordinate system.
P = Path coordinate system T = Tool coordinate system
Path direction ->
Z (^) T
Y (^) T
X (^) T
Y (^) P
Z (^) P
X (^) P
Tool
! Position for start of contour tracking MoveJ p10,v100,z10,tool1;
! Run MoveL with both vertical and horizontel correction. MoveL p20,v100,z10,tool1\Corr; ! Read the total corrections added by all connected correction generators. total_offset := CorrRead(); ! Write the total vertical correction on the TeachPendant. TPWrite “The total vertical correction is: ”\Num:=total_offset.z; ! Disconnect the correction generator for vertical correction. ! Horizontal corrections will be unaffected. CorrDiscon vert_id; ! Run MoveL with only horizontel correction. MoveL p30,v100,z10,tool1\Corr;
! Remove all outstanding connected correction generators. ! In this case, the only connected correction generator is the one for horizontal ! correction. CorrClear;
! Remove the timer interrupt. IDelete intno1;
ENDPROC
TRAP ReadSensors
! Compute the horizontal correction values and execute the correction. write_offset.x := 0; write_offset.y := (hori_sig - TARGET_DIST)*SCALE_FACTOR; write_offset.z := 0; CorrWrite hori_id, write_offset;
! Compute the vertical correction values and execute the correction. write_offset.x := 0; write_offset.y := 0; write_offset.z := (vert_sig - TARGET_DIST)*SCALE_FACTOR; CorrWrite vert_id, write_offset;
!Setup interupt again IDelete intnol; CONNECT intno1 WITH ReadSensors; ITimer\singel 0.2, intno1;
ENDTRAP
Program explanation
Two correction generators are connected with the instruction CorrCon. Each correction generator is referenced by a unique descriptor ( hori_id and vert_id ) of the type corrdesc. The two sensors will use one correction generator each.
A timer interrupt is set up to call the trap routine ReadSensors with a frequency of 5
Hz. The offsets, needed for path correction, are computed in the trap routine and written to the corresponding correction generator (referenced by the descriptors hori_id and vert_id ) by the instruction CorrWrite. All the corrections will have immediate effect on the path.
The MoveL instruction must be programmed with the switch argument Corr when path corrections are used. Otherwise, no corrections will be executed.
When the first MoveL instruction is ready, the function CorrRead is used to read the sum of all the corrections (the total path correction) given by all the connected correction generators. The result of the total vertical path correction is written to the TeachPendant with the instruction TPWrite.
CorrDiscon will then disconnect the correction generator for vertical correction (referenced by the descriptor vert_id ). All corrections added by this correction generator will be removed from the total path correction. The corrections added by the correction generator for horizontal correction will still be preserved.
Finally, the function CorrClear will remove all outstanding connected correction generators and their previously added corrections. In this case, it is only the correction generator for horizontal correction that will be removed. The timer interrupt will also be removed by the instruction IDelete.
The correction generators
Figure 3 Correction generators.
A maximum number of 5 correction generators can be connected simultaneously.
CorrCon
0 0 3
0 1 0
0 1 3
x y z
Vertical correction generator, with the sum of all its own path corrections.
Horizontal correction generator, with the sum of all its own path corrections.
Not connected correction generator.
Not connected correction generator.
Not connected correction generator.
The sum of all corrections done by all connected correction generators.
Path coordinate axis.
CorrWrite Writes to a correction generator
CorrWrite is used to write offsets in the path coordinate system to a correction generator.
VAR corrdescr id; VAR pos offset; ... CorrWrite id, offset;
The current offsets, stored in the variable offset , are written to the correction generator referenced by the descriptor id.
Descr Data type: corrdescr
Descriptor of the correction generator.
Data Data type: pos
The offset to be written.
See Instructions - CorrCon
The best performance is achieved on straight paths. As the speed and angles between to consecutive linear paths increase, the deviation from the expected path will also increase. The same applies to circles with decreasing circle radius.
CorrWrite
CorrRead Reads the current total offsets
CorrRead is used to read the total corrections delivered by all connected correction generators.
CorrRead can be used to:
VAR pos offset; ... offset := CorrRead();
The current offsets delivered by all connected correction generators are available in the variable offset.
The total absolute offsets delivered from all connected correction generators so far.
See Instructions - CorrCon
A function with a return value of the data type pos.
Described in: Connects to a correction generator Instructions - CorrCon Disconnects from a correction generator Instructions - CorrDiscon Writes to a correction generator Instructions - CorrWrite Removes all correction generators Instructions - CorrClear Correction descriptor Data types - corrdescr