Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Function to determine controller version

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?
Lee Justice

Comments

  • Hello,
    Have you test this:
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VAR string version;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; version := GetSysInfo(\SWVersion);

    ☑️2024 - RobotStudio® User Group

  • 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.
  • DenisFR said:
    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...

    ☑️2024 - RobotStudio® User Group

  • 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.
    Lee Justice
  • Or you can call procedures using late binding (%%)?
    Not really clean but should works.
    You can find new procedure in each release notes.

    ☑️2024 - RobotStudio® User Group