# SmartComponent RapidVariable

**URL:** <https://tech-community.robotics.abb.com/t/smartcomponent-rapidvariable/9620>\
**Category:** RobotStudio\
**Created:** [July 16, 2020, 9:05am UTC](https://tech-community.robotics.abb.com/t/smartcomponent-rapidvariable/9620 "2020-07-16T09:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dahniel](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Dahniel](https://tech-community.robotics.abb.com/u/Dahniel)\
**Post date:** [July 16, 2020, 9:05am UTC](https://tech-community.robotics.abb.com/t/smartcomponent-rapidvariable/9620/1 "2020-07-16T09:05:47Z")

</div>

Hi.

I am trying to use the RapidVariable component, which I have placed in the Station Logic, to set a variable in Rapid and I do not seem to get it working.  
Furthermore, I cannot find any documentation regarding the RapidVariable component and that is why I am reaching out for help here.

I would like to understand the properties in RapidVariable. Some of them I understand and some of them I do not understand. If there is someone who could say a few words about each property I would be very thankful.

RapidVariable properties:  
Data Type  
Controller  
Task  
Module  
Variable  
Value  
Set  
Get

My aim is to set an integer to a **var num** (I already declared the var num in Rapid) with the help of RapidVariable component.  
Is there anyone who has any ideas how to do that please share them 😊

/ Dahniel

---

<div class="post-metadata">

**Author:** ![dnilsson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/dnilsson/32/795_2.png) [@dnilsson](https://tech-community.robotics.abb.com/u/dnilsson)\
**Post date:** [August 14, 2020, 12:34pm UTC](https://tech-community.robotics.abb.com/t/smartcomponent-rapidvariable/9620/2 "2020-08-14T12:34:19Z")

</div>

Hi,  
Here is an illustration of the different fields to set a variable of the type num.  
The Set button is used to assign the value entered in the value field to the variable entered in the variable field. Get does the opposite and Assigns the value of the varible to the Value field.

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/9/9e1018559ba7d5ef7afe766777928b4187f8e560.png)
