RobotStudio event

Identify Controller Model [WebWare SDK]

I'm updating existing code to also work with the IRC5 controllers.

Since reading and writing to a rapid program require different parameters based on the controller type, is there a way within Webware SDK to identify if the connected controller is an IRC4 or IRC5?

Comments

  • Yes there is a way to find out the controller version. Use a Helper object and the property SysVersion.

    Helper1.SysVersion

    Remember that this returns the full RobotWare string. You only need to look at the first number to determine if it is a S4C+(4) or an IRC5(5).