# Function to determine controller version

**URL:** <https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177>\
**Category:** RAPID Programming\
**Created:** [October 30, 2019, 11:53am UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177 "2019-10-30T11:53:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 30, 2019, 11:53am UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/1 "2019-10-30T11:53:33Z")

</div>

I know that there are functions to determine RobOS vs. VC, but is there a function to determine the version of controller? S4, S4C+ or IRC5? If not,could we maybe get one? Please, pretty please with sugar on top?

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [December 9, 2019, 3:29pm UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/2 "2019-12-09T15:29:29Z")

</div>

Hello,  
Have you test this:

```auto
        VAR string version;
        version := GetSysInfo(\SWVersion);

```

---

<div class="post-metadata">

**Author:** ![j\_proulxFB](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@j\_proulxFB](https://tech-community.robotics.abb.com/u/j_proulxFB)\
**Post date:** [December 9, 2019, 4:24pm UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/3 "2019-12-09T16:24:51Z")

</div>

Rapid Tech Manual  
2.85 GetSysInfo - Get information about the system Usage

GetSysInfo is used to read information about the system. The available information  
includes serial number, software version, software version name, robot type,  
controller ID, WAN IP address, controller language, and system name.

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [December 9, 2019, 6:25pm UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/4 "2019-12-09T18:25:23Z")

</div>

> [@DenisFR](#):
>
> Hello,  
> Have you test this:  
> VAR string version;  
> version := GetSysInfo(\SWVersion);

Why last line was not showed???

Error on Code Format?  
You can Quote original message an see the two lines…

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [December 13, 2019, 3:12pm UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/5 "2019-12-13T15:12:56Z")

</div>

I don’t think that that instruction was available in pre IRC5 controllers. Maybe not even in early IRC5. I am not concerned with the version, but the controller version inself. But thank you anyway.

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [December 16, 2019, 9:36am UTC](https://tech-community.robotics.abb.com/t/function-to-determine-controller-version/9177/6 "2019-12-16T09:36:38Z")

</div>

Or you can call procedures using late binding (%%)?  
Not really clean but should works.  
You can find new procedure in each release notes.
