# Simulation world zone don't work

**URL:** <https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340>\
**Category:** RobotStudio\
**Tags:** worldzone, simulation\
**Created:** [February 20, 2020, 10:11am UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340 "2020-02-20T10:11:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![edorobot](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@edorobot](https://tech-community.robotics.abb.com/u/edorobot)\
**Post date:** [February 20, 2020, 10:11am UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/1 "2020-02-20T10:11:08Z")

</div>

Hi,  
i’m trying to use the worldzone.

in particular I would like to simulate a function that activates a digital signal when the robot is in the home position.

If I understand, through the function I used in the rapid code (under) I go to activate the signal when the joints of the robot are in the “home\_pos” position, with a difference of 2 degrees.  
But there are a problem (rapid program havn’t errors when i compile it) when i simulate it the simulation stops in the line 114 (see the image attached).

I have a doubt. I activated the “worldzone” function in the controller options, did I do it correctly? The robot is an IRB 120 and the controller is RobotWare 06.08.1040

Thanks in advance  
Edoardo

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/1X/61340e162d604c11a33e69e3f2a69a2133ea1047.png)

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/1X/703428f551cb3ef6845c7e1db2edaa13e03f160f.png)

```auto
PROC power_on()
        VAR shapedata joint_space;
        CONST jointtarget home_pos :=[[0,0,0,0,90,90],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
        CONST jointtarget delta_pos := [[ 2, 2, 2, 2, 2, 2], [5, 9E9, 9E9, 9E9, 9E9, 9E9] ];
        WZHomeJointDef \Inside, joint_space, home_pos, delta_pos;
        WZDOSet \Stat, home\Inside, joint_space, do_homeSegnale,1;
    ENDPROC

```

---

<div class="post-metadata">

**Author:** ![j\_proulxFB](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@j\_proulxFB](https://tech-community.robotics.abb.com/u/j_proulxFB)\
**Post date:** [February 20, 2020, 2:48pm UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/2 "2020-02-20T14:48:48Z")

</div>

In Module1 do you have this declaration? VAR wzstationary home;

Do you create a Power On event routine to execute the routine “power\_on” ?

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [February 21, 2020, 10:19am UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/3 "2020-02-21T10:19:19Z")

</div>

Hello,  
Doc says:

Signal

Data type: signaldo

The name of the digital output signal that will be changed.

If a stationary worldzone is used then the signal must have the correct internal access level. The access level is set in the signal definition in the I/O system parameters. These concepts are further described in _Technical reference manual_ - _System parameters_, see the types Signal and Access Level. The access level must be protected for access from the user (RAPID, FlexPendant), so the predefined internal access level can be used, or a custom access level can be defined by the user.

---

<div class="post-metadata">

**Author:** ![jmf](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/jmf/32/762_2.png) [@jmf](https://tech-community.robotics.abb.com/u/jmf)\
**Post date:** [February 28, 2020, 5:20am UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/4 "2020-02-28T05:20:08Z")

</div>

Make sure your signal/s is set to Access = Read Only.

I can share a pdf doc which could assist you somewhat if you want.

---

<div class="post-metadata">

**Author:** ![edorobot](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@edorobot](https://tech-community.robotics.abb.com/u/edorobot)\
**Post date:** [February 28, 2020, 1:30pm UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/5 "2020-02-28T13:30:10Z")

</div>

> [@jmf](#):
>
> Make sure your signal/s is set to Access = Read Only.
> 
> I can share a pdf doc which could assist you somewhat if you want.

Hi, jmf  
If you can share the pdf, I’m really happy.  
With a guide is it’s easier.  
Waiting for your reply.

---

<div class="post-metadata">

**Author:** ![jmf](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/jmf/32/762_2.png) [@jmf](https://tech-community.robotics.abb.com/u/jmf)\
**Post date:** [March 2, 2020, 6:45am UTC](https://tech-community.robotics.abb.com/t/simulation-world-zone-dont-work/9340/6 "2020-03-02T06:45:41Z")

</div>

> [@edorobot](#):
>
> > [@jmf](#):
> >
> > Make sure your signal/s is set to Access = Read Only.
> > 
> > I can share a pdf doc which could assist you somewhat if you want.
> 
> Hi, jmf  
> If you can share the pdf, I’m really happy.  
> With a guide is it’s easier.  
> Waiting for your reply.
