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.

A way in RAPID code to identify Robot/Controller model and whether its online or offline?

Is there a way in RAPID code to identify Robot/Controller model and whether its online or offline?

Just need a function that looks inside somewhere in the controller and return a value that represents the robot model (IRBxxxx) and/or is the code running on an actual controller or on a virtual controller.

Any ideas are welcomed!

Comments

  • Hello,

    to check if robot is virtual/real:

    IF RobOS() THEN
          Execution statements in RC
    ELSE
         Execution statements in VC
    ENDIF

    and for robot model

    VAR string rtype;
    rtype := GetSysInfo(\RobotType);

    more info in when you look up the getsysinfo command in the manual.

     Br

     Peter