# Activate output from a g-code file

**URL:** <https://forum.universal-robots.com/t/activate-output-from-a-g-code-file/19284>\
**Category:** Robot Communication\
**Created:** [February 15, 2022, 12:09pm UTC](https://forum.universal-robots.com/t/activate-output-from-a-g-code-file/19284 "2022-02-15T12:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon50781943](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon50781943](https://forum.universal-robots.com/u/anon50781943)\
**Post date:** [February 15, 2022, 12:09pm UTC](https://forum.universal-robots.com/t/activate-output-from-a-g-code-file/19284/1 "2022-02-15T12:09:11Z")

</div>

Hello everyone,

I’m currently working with a UR5e.  
I’m developping some URCaps using the virtual machine 5.9.4.1031232

I need to activate some outputs from a g-code file.

I have seen that this is possible to do :

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/3/3895fd715eb6ee5ec7ab1b8cb70610e2f832b511.png)  
(source : [Universal Robots - Remote TCP & Toolpath URCap FAQ](https://www.universal-robots.com/articles/ur/application-installation/remote-tcp-toolpath-urcap-faq/))

But the robot on the virtual machine is on version 5.11.0 and not 5.11.5.  
Do I have to update the virtual robot or there is another way to activate some outputs ?  
If an update is needed, how can I update the virtual robot ?

(The outputs need to be activated at some specific positions given by the g-code file. I cannot activate thme separetly by a Set fonction or from an URScript)

Thanks in advance for your answer

Best regards

---

<div class="post-metadata">

**Author:** ![bba](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/bba/32/555_2.png) [@bba](https://forum.universal-robots.com/u/bba)\
**Post date:** [February 15, 2022, 7:20pm UTC](https://forum.universal-robots.com/t/activate-output-from-a-g-code-file/19284/2 "2022-02-15T19:20:30Z")

</div>

This feature to activate digital outputs from the imported G-code file was introduced in version 5.11.5 so you will need to update the version of polyscope within URsim. You can download a newer version from our support page just like you did the original one.

---

<div class="post-metadata">

**Author:** ![anon50781943](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon50781943](https://forum.universal-robots.com/u/anon50781943)\
**Post date:** [February 16, 2022, 7:28am UTC](https://forum.universal-robots.com/t/activate-output-from-a-g-code-file/19284/3 "2022-02-16T07:28:11Z")

</div>

Thank you,

I have found the package here : [Universal Robots - Offline Simulator - e-Series - UR Sim for Linux 5.11.5](https://www.universal-robots.com/download/software-e-series/simulator-linux/offline-simulator-e-series-ur-sim-for-linux-5115/)
