I'm fairly new to robot programming and I'm trying to write a simple program using touch sensing on the teach pendant (KR 6/1 robot, KRC1 controller, VxWorks V2.2.8). Ultimately I'd like to use offline programming with touch sense to increase efficiency. As far as I can tell the structure for using the touch sense to offset points is something like this:
PTP to a point close to surface
PTP touchsense command and store in CD1 variable
CORR offset following points using CD1
PTP
A bunch of offset points
PTP
HOME
End
when I run this program the touch sense line executes as expected. The welding wire approaches the work-piece touches then goes back to start pos. However all of the points after the CORR command are unchanged in anyway. I get a message that goes something like the CORR data was changed successfully with NULL FRAME (paraphrased). The rest of the program is executed with no errors.
Can someone tell me how to get these points to shift? Attached are the actual program files.
Thanks