Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 09:27:35 PM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  KUKA Robots (Moderators: Werner Hampel, kai_n, MartinH)
| | |-+  Reposition
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Reposition  (Read 330 times)
saulotovar
Newbie
*
Offline Offline

Posts: 10


« on: November 30, 2007, 06:26:04 PM »

Hi,

I am writing a program that should move the robot inside an interruption. Unfortunately, when the interruption is finished, the KCP ask me to reposition the robot to $POS_RET.

Of course I can acknowledge this message, but I would like to do it automatically. I already change the variable $NEARPATHTOL to 2000 and I still get this Stop (1437) message “Reposition”. Does anyone from you know how to solve this problem?

Thank you very much,
Saúl

Reposition (Stop Message)

BCO not achieved when returning from the interrupt program.

The robot must be repositioned to the interrupt point before the end of the interrupt program, e.g. with LIN $pos_ret
Logged
Jim Tyrer
Global Moderator
Sr. Member
*****
Offline Offline

Gender: Male
Posts: 383


If all else fails, read the manual.


« Reply #1 on: November 30, 2007, 07:27:16 PM »

;&to do the BCO run, move to current position
PTP $POS_ACT
Logged
MartinH
Global Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 122

Kent, UK


« Reply #2 on: November 30, 2007, 09:51:41 PM »

As Jim says, try $POS_ACT.

Here's a section of my code, so you can see how I use it :-

Code:
  INTERRUPT DECL 11 WHEN $TORQ_DIFF[2] > 22 DO STOP_SEARCH()
  INTERRUPT ON 11
  SEARCH_STACK()
  INTERRUPT OFF 11
  (etc)
 
DEF STOP_SEARCH ()
  INTERRUPT OFF 11
  BRAKE F
  PTP $POS_ACT
  LIN_REL {Z 20.0}
  OUT_AIR_BLAST = FALSE
  RESUME
END

I believe BRAKE F applies the brakes, and you then need to do PTP $POS_ACT to release the brakes again.

If that doesnt work, please post your code and we can check it for you.
Logged

There are 10 types of people in this world - those who understand binary, and those who dont.
mookie
Full Member
***
Offline Offline

Posts: 111


« Reply #3 on: December 01, 2007, 04:07:07 PM »

hey i havent tried in a while but i thought you cant move the robot using an interrupt.
Logged
saulotovar
Newbie
*
Offline Offline

Posts: 10


« Reply #4 on: December 03, 2007, 06:41:09 PM »

Hello Martin and Jim,

I tried to do the BCO run using the PTP $POS_ACT, but I still get the Stop alert. My code looks like this,

INTERRUPT DECL 1 WHEN $TIMER[1]>1 DO SpecialMovement()

$TIMER[1]=0
$TIMER_STOP[1]=FALSE

INTERRUPT ON 1
WAIT SEC 20
INTERRUPT OFF 1

DEF SpecialMovement()
   IF $Torque_Axis_Act.A1>10 THEN
                ;PTP $POS_ACT
      LIN {E1 10}
   ENDIF
   $TIMER[1]=0
END


I know that it looks funny, but it is a very special application. The purpose is to move the robot with the hand in one direction. I can move it just one time, but I would like to move it every time I exert a pressure on it (during this 20sec).

thank you very much for your help,
Saúl

Logged
Jim Tyrer
Global Moderator
Sr. Member
*****
Offline Offline

Gender: Male
Posts: 383


If all else fails, read the manual.


« Reply #5 on: December 03, 2007, 07:48:31 PM »

   IF $Torque_Axis_Act.A1>10 THEN
                ;PTP $POS_ACT
      LIN {E1 10}
   ENDIF
Just at a glance....
Did you want the PTP statement commented out?
« Last Edit: December 03, 2007, 09:56:17 PM by Jim Tyrer » Logged
MartinH
Global Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 122

Kent, UK


« Reply #6 on: December 03, 2007, 09:15:54 PM »

1.  What KCP version are you using?

2.  Which axis / axes do you want to move by hand?
Logged

There are 10 types of people in this world - those who understand binary, and those who dont.
saulotovar
Newbie
*
Offline Offline

Posts: 10


« Reply #7 on: December 04, 2007, 03:11:32 PM »

Jim, the PTP $POS_ACT is commented because I used it once but it didn't work.

Martin,
   1.- I am using a KCP 5.3 version
   2.- LIN {E1 10}  moves all 7 axes but keeps the TCP in the same position and direction (I am using a Light Weight Robot 3, not yet a commercial version)

I just want to detect a simple push in Axis 1 and then the robot kinematics should move to one direction, but the tool should keep in the same position and direction. After another touch, the robot kinematics should move again in the same direction.

regards,
Saúl
   
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!