# Prevent Collision with Wall Geometry

**URL:** <https://tech-community.robotics.abb.com/t/prevent-collision-with-wall-geometry/4949>\
**Category:** RobotStudio\
**Created:** [June 25, 2012, 9:28pm UTC](https://tech-community.robotics.abb.com/t/prevent-collision-with-wall-geometry/4949 "2012-06-25T21:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutomationNation](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@AutomationNation](https://tech-community.robotics.abb.com/u/AutomationNation)\
**Post date:** [June 25, 2012, 9:28pm UTC](https://tech-community.robotics.abb.com/t/prevent-collision-with-wall-geometry/4949/1 "2012-06-25T21:28:52Z")

</div>

I would like to use my wall geometry to teach the robot that there’s an obstruction there and limit it’s travel. That way, an unskilled operator wouldn’t be able to crash into the walls down the road. Is there a way to do this in RobotStudio? Thanks!

---

<div class="post-metadata">

**Author:** ![SjoLi](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/sjoli/32/3340_2.png) [@SjoLi](https://tech-community.robotics.abb.com/u/SjoLi)\
**Post date:** [June 26, 2012, 8:32am UTC](https://tech-community.robotics.abb.com/t/prevent-collision-with-wall-geometry/4949/2 "2012-06-26T08:32:04Z")

</div>

you can use the option worldzones (608-1)

you can read about is on the manual-CD under:

> application manuals \> RobotWare Options \> Motion Functions and Events (chapter one)

With worldzones you can define zones that can be monitored eithe inside or outside the defined zone. This zone can be a square, a sphere or a cilinder.

here is an example of defining a maximum work area:

VAR wzstationary Max\_Workarea;

PROC Activate\_Max\_Workarea()

> VAR shapedata volume;
> 
> CONST pos p1 := [-1000, -1000, 0];  
> CONST pos p2 := [1000, 1000, 1000];
> 
> > !Define a around the box between the corners p1 and p2
> 
> > WZBoxDef Outside, volume, p1, p2;
> 
> > 
> 
> > !Define and enable supervision of the box
> 
> > WZLimSup Stat, Max\_Workarea , volume;

ENDPROC

---

<div class="post-metadata">

**Author:** ![AutomationNation](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@AutomationNation](https://tech-community.robotics.abb.com/u/AutomationNation)\
**Post date:** [June 26, 2012, 5:24pm UTC](https://tech-community.robotics.abb.com/t/prevent-collision-with-wall-geometry/4949/3 "2012-06-26T17:24:12Z")

</div>

Wow! Thanks for the help! World Zones are exactly what I was looking for. I can’t explain how much help you’ve been. Thanks for your reply!
