# RoboStudio - Differences between program to control a real system and simulation program

**URL:** https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201
**Category:** RobotStudio
**Tags:** smart-components, rapid, robotstudio, robot-controller, abb
**Created:** [May 25, 2021, 1:08pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201 "2021-05-25T13:08:36Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![maxenceC](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@maxenceC](https://tech-community.robotics.abb.com/u/maxenceC)
#### Post date: [May 25, 2021, 1:08pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/1 "2021-05-25T13:08:36Z")

</div>

Hello  
**My objective is to control a real IRB 120** thanks to a code from RobotSudio.

First I made a program using both RAPID program modules and the Station Logic (using I/O signals to make the link).  
Then I realized that all of the **Station Logic’s part program can not be share with the IRB 120** in contrary to RAPID program modules which can be plug by USB key or by internet connection ( or I didn’t know how to do it but I after days of research I didn’t find anything about this )  
whereas **some of the functions/smart components of the Station Logic can not be replace** by functions of RAPID because they didn’t exist !  
(Some examples of functions which do not exist in RAPID, just below)

1. A collision sensor between 2 objects wich are not the robot (here the IRB 120)
2. Create a volume other than a cylinder, sphere or box

If I’m right and the Station Logic can only be used in Simulation program so, **where is the interest of a simulation program which can not be send to a real controller?**

Thanks for reading

---

<div class="post-metadata">

### Author: ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)
#### Post date: [May 25, 2021, 7:49pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/2 "2021-05-25T19:49:07Z")

</div>

The station logic and smart component’s are only there to simulate the non robot things that happen in the real world.  
There fore they are never transferred to and can not be run by the robot controller.

---

<div class="post-metadata">

### Author: ![maxenceC](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@maxenceC](https://tech-community.robotics.abb.com/u/maxenceC)
#### Post date: [May 27, 2021, 1:33pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/3 "2021-05-27T13:33:02Z")

</div>

Thanks for you reply, it’s more clear in my mind now.  
But as I keep thinking that to not be able to transfer simulation’s tools to a robot controller it’s a bad point for RoboStudio. Indeed in my case, as I receive real positions of all of the robot’s environment thanks to a technology of cameras (linked with a TCP/IP connexion), all that I simule it’s in reality the real world. This makes totally justified why simulation’s tools should be run by a robot controller.  
However, RobotStudio constrain us to use only RAPID code which one is limited as I show it before.

---

<div class="post-metadata">

### Author: ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)
#### Post date: [May 27, 2021, 8:06pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/4 "2021-05-27T20:06:30Z")

</div>

If you are using a camera this can be input into the virtual controller in RobotStudio without the use of smart components/ station logic.  
@Maxim can you help with how to do this?

---

<div class="post-metadata">

### Author: ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)
#### Post date: [May 28, 2021, 7:08am UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/5 "2021-05-28T07:08:15Z")

</div>

I’d suggest looking for guides on Integrated Vision on Youtube or the like.

Also, there’s a manual available in this post: [ABB Robotics Community - Maintenance](https://forums.robotstudio.com/discussion/12496/abb-manuals-collection)

---

<div class="post-metadata">

### Author: ![maxenceC](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@maxenceC](https://tech-community.robotics.abb.com/u/maxenceC)
#### Post date: [May 28, 2021, 11:59am UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/6 "2021-05-28T11:59:55Z")

</div>

In my project I use Optitrack’s cameras, with the software Motive, to track and to send to Robotstudio 3D positions from the robot’s 3D environment. Or the RobotStudio’s integrated vision is made for a plane area of detection. Thus I didn’t use the RobotStudio’s integrated vision.  
Thanks a lot for all your reply

---

<div class="post-metadata">

### Author: ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)
#### Post date: [May 30, 2021, 1:54am UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/7 "2021-05-30T01:54:38Z")

</div>

Are you using the Externally Guided Motion (EGM) option?

---

<div class="post-metadata">

### Author: ![maxenceC](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@maxenceC](https://tech-community.robotics.abb.com/u/maxenceC)
#### Post date: [June 8, 2021, 1:26pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/8 "2021-06-08T13:26:10Z")

</div>

No I’m not.

---

<div class="post-metadata">

### Author: ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)
#### Post date: [June 8, 2021, 8:41pm UTC](https://tech-community.robotics.abb.com/t/robostudio-differences-between-program-to-control-a-real-system-and-simulation-program/10201/9 "2021-06-08T20:41:52Z")

</div>

I have not used EGM but I understand it has functions to allow you to stream the positions from the camera to the controller at a high rate
