Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 11:34:02 AM
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
| |-+  ABB Robots (Moderators: Werner Hampel, Sven Weyer, Jim Tyrer)
| | |-+  IRB6400 M94A WORLD ZONE
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: IRB6400 M94A WORLD ZONE  (Read 532 times)
Trebor
Newbie
*
Offline Offline

Posts: 1


« on: February 21, 2007, 03:55:22 AM »

I was wondering if anyone knows a script to creat a word zone for an IRB6400 M94A s4,
as these robots dont have word zones for setting up home pos Di.

any help would be great .

Trebor
Logged
Werner Hampel
Robotprogrammer
Administrator
Full Member
*****
Offline Offline

Gender: Male
Posts: 159


<a href="http://www.robtec.de">ROBTEC GmbH</a>


WWW
« Reply #1 on: February 23, 2007, 09:09:33 AM »

You could insert this into your user.sys:

Code:
  FUNC bool rCheckPosition(
    num DistanceInMM,
    robtarget Position,
    PERS tooldata toolUsed
    \PERS wobjdata wobjUsed)

    VAR robtarget CurrentPos;
    VAR num nDistance:=0;

    CurrentPos:=CRobT(\Tool:=toolUsed\WObj?wobjUsed);
    IF rRbtToRbtDist(Position,CurrentPos)<DistanceInMM AND rRbtToRbtConfig(Position,CurrentPos) THEN
      RETURN TRUE;
    ENDIF
    RETURN FALSE;
  ENDFUNC

Than you can do for Example this in your Programm:

Code:
    IF rCheckPosition(5,pHome,tGreifer) THEN
      !TPErase;
      !TPWrite "I am in Homeposition";
      Set doHomeposition;
      WaitTime 2;
      !TPErase;
    ELSEIF
      !TPErase;
      !TPWrite "I am NOT in Homeposition";
      Reset doHomeposition;
      WaitTime 2;
      !TPErase;
   ENDIF
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!