# Access variable over Socket connection

**URL:** <https://forum.universal-robots.com/t/access-variable-over-socket-connection/23550>\
**Category:** URScript\
**Created:** [August 31, 2022, 11:38am UTC](https://forum.universal-robots.com/t/access-variable-over-socket-connection/23550 "2022-08-31T11:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon32365751](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@anon32365751](https://forum.universal-robots.com/u/anon32365751)\
**Post date:** [August 31, 2022, 11:38am UTC](https://forum.universal-robots.com/t/access-variable-over-socket-connection/23550/1 "2022-08-31T11:38:20Z")

</div>

Dear UR Team,

I am working in a project in which I need to access a robot variable which is “robotDexterity” in section 3.2: Primary and Secondary Client Interface in the attached Excel sheet under the force package. The problem I am facing is the popup “force mode not possible in Singularity” and I would like to trigger this variable in order to act in real time. After research and trying some available codes, I couldn’t find a solution for that. Do you have any idea or sample code (Urscript, Python, …) to achieve this? Thank you very much in advance!

Regards,  
-Samara
