Function to determine controller version

lemster68
lemster68 United States ✭✭✭
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

  • DenisFR
    DenisFR FRANCE ✭✭✭
    Hello,
    Have you test this:
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; VAR string version;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; version := GetSysInfo(\SWVersion);
  • j_proulxFB
    j_proulxFB Watertown, WI USA
    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
    DenisFR FRANCE ✭✭✭
    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...
  • lemster68
    lemster68 United States ✭✭✭
    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
  • DenisFR
    DenisFR FRANCE ✭✭✭
    Or you can call procedures using late binding (%%)?
    Not really clean but should works.
    You can find new procedure in each release notes.