1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Curiousity on Creating a Zone that Turns on a DO

  • Azermath
  • October 7, 2017 at 4:58 PM
  • Thread is Resolved
  • Azermath
    Trophies
    3
    Posts
    58
    • October 7, 2017 at 4:58 PM
    • #1

    Hello,

    Is it possible, (not using a DCS) to Create a Zone in Space that always turns off a DO? i fell like there should be, i am using a R30ib MH robot combo. i just want to make sure that i have a press clear DO turn off when its past a Area in space, that the signal will always turn off and then when it goes back into the safe Area turns on that DO.

    at the moment i have the DO signals controlled in the Pick up routine that it waits for its permissive then sets it, but i was challenged with the idea of a "bad tech" skipping the DO section of my routine, and leaving the robot in the press and starting Auto, i Figure it this would be a Background logic routine. but how to create this "zone" is my issue.

    Thanks all

  • Robo_Eng_13
    Reactions Received
    26
    Trophies
    4
    Posts
    432
    • October 7, 2017 at 5:30 PM
    • #2

    There might be an option with System Variables in back ground logic. I know that you can use system variables to pull the robot's joint position, so i imagine there exists a way to pull the cartesian position. Then you can make a background logic program that looks at these variables and compares them to the desired zones, and sets the DO based on that.

    An alternative would be a reference position with a huge tolerance (i am not near a robot right now, so i don't know what options may exist down this path), the idea being that if it is within a few feet of the safe zone's reference point, then the DO would be on, and if it left the safe point window, it would turn off.

    I think the first one is the more elegant solution, but if the options under reference position allow this implementation to work, it would probably be easier. Both are buried just enough that someone without a bit of training would not be likely to walk up and circumvent it.

  • Azermath
    Trophies
    3
    Posts
    58
    • October 7, 2017 at 5:38 PM
    • #3

    i completely overlooked the Position References lmao thank you!

  • gwallee
    Trophies
    3
    Posts
    41
    • October 16, 2017 at 2:54 PM
    • #4

    I've been using this program to check if the robot is in a zone. Sometimes I have it in a background program pulling in the position, and others, I do an LPOS and run it once before recovery. It relies on having 2 PRs to define a zone and checks if the position is inside of the zone. If anyone is familiar with ABB's worldzones, this was my attempt to replicate it.

    Code
    1:  R[198:pr 1]=AR[1]    ;
       2:  R[199:pr 2]=AR[2]    ;
       3:  R[200:flag]=AR[3]    ;
       4:   ;
       5:  PR[98:LPOS]=LPOS    ;
       6:  //J PR[98:LPOS] 100% CNT100    ;
       7:   ;
       8:  !Pull in TCP Coords ;
       9:  //R[191:zone x]=($SCR_GRP[1].$MCH_POS_X) ;
      10:  //R[192:zone y]=($SCR_GRP[1].$MCH_POS_Y) ;
      11:  //R[193:zone z]=($SCR_GRP[1].$MCH_POS_Z) ;
      12:  R[191:zone x]=(PR[98,1:LPOS]) ;
      13:  R[192:zone y]=(PR[98,2:LPOS]) ;
      14:  R[193:zone z]=(PR[98,3:LPOS]) ;
      15:   ;
      16:  !Check X & Y coord of P1 & P2 ;
      17:   ;
      18:  !Get Smallest Coord ;
      19:  IF (PR[R[198],1]<PR[R[199],1]) THEN ;
      20:  R[194:x sm]=PR[R[198],1]    ;
      21:  R[195:x lg]=PR[R[199],1]    ;
      22:  ELSE ;
      23:  R[194:x sm]=PR[R[199],1]    ;
      24:  R[195:x lg]=PR[R[198],1]    ;
      25:  ENDIF ;
      26:  IF (PR[R[198],2]<PR[R[199],2]) THEN ;
      27:  R[196:y sm]=PR[R[198],2]    ;
      28:  R[197:y lg]=PR[R[199],2]    ;
      29:  ELSE ;
      30:  R[196:y sm]=PR[R[199],2]    ;
      31:  R[197:y lg]=PR[R[198],2]    ;
      32:  ENDIF ;
      33:   ;
      34:  !Zone 1 start ;
      35:  F[R[200]]=(R[191:zone x]>R[194:x sm] AND R[191:zone x]<R[195:x lg] AND R[192:zone y]>R[196:y sm] AND R[192:zone y]<R[197:y lg] AND R[193:zone z]<=PR[R[198],3]) ;
    Display More

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download