Image Backup Procedure
Image Backup Procedure
• The thickness value set by design is stored in the variable $SGSCH1[1].$THICKNESS this
value is recorded in the register 5 available in this robot (check availability of registers before
loading this macro in another robot)
• The thickness value observed by the robot during production is stored in the variable
$SGTHKRPT1.$THK_OBSV, this value is recorded in the register 6 available in this robot
(check availability of registers before loading this macro in another robot)
• The IF statement compares the value observed and value set by design, if the observe
thickness is 0.5 less than the set by design it will call a macro called CALL DO_R1_THCK
• The macro CALL DO_R1_THCK is used to communicate with PLC:
1: !-------------------------------- ;
2: ! Thickness check ;
3: !-------------------------------- ;
4: ! Set DO to PLC ;
5: DO[166:Thickness failed]=ON ;
6: WAIT DI[166:Thickness failed]=ON ;
7: ;
8: ! Set DO to PLC ;
9: DO[166:Thickness failed]=OFF ;
10: ;
• If the thickness check failed it will send a Digital Output to the PLC DO:166 (check
availability of digital outputs before loading this macro in another robot)
• It will wait until a Digital input is received by the PLC
• The routine R1_THCK must to be placed after the SPOT instruction in the weld
routine:
175:L P[41] 3000mm/sec CNT100 ;
176: ;
177: ! GM WeldNr: f02_509a806 ;
178: CALL R1_WELD_PRE(5091806,51,1.9,2200) ;
179:L P[42] 1000mm/sec CNT100
: SPOT[SD=1,P=1,S=1,ED=1] ;
180: CALL R1_THCK ; -------------------------------- THICKNESS MACRO
181: CALL R1_WELD_END ;
182: ;
183:L P[43] 3000mm/sec CNT100 ;