# Accessing variables set via URScript

**URL:** https://forum.universal-robots.com/t/accessing-variables-set-via-urscript/1241
**Category:** URCaps SDK
**Created:** [October 5, 2017, 1:25pm UTC](https://forum.universal-robots.com/t/accessing-variables-set-via-urscript/1241 "2017-10-05T13:25:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![anon51496239](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@anon51496239](https://forum.universal-robots.com/u/anon51496239)
#### Post date: [October 5, 2017, 1:25pm UTC](https://forum.universal-robots.com/t/accessing-variables-set-via-urscript/1241/1 "2017-10-05T13:25:21Z")

</div>

Is there a way I can access a variable that was set via URScript? In other words, if my robot gets a variable via a socket connection (like via `socket_read_ascii_float()`), I want my URCap program to access that variable and store it in the data model. Is this possible, or would I need to connect the URCap to the socket directly?

Thanks
