RobotStudio event

RAPID Registers

Options
In the "RAPID Instructions, Functions and Data types" manual and others I see references to using registers ("Add reg1, 3;") but I can't find a description of those registers anywhere. Can someone point me to where I can learn about those?
Tagged:

Comments

  • innebandy
    Options
    reg1,reg2,... reg5 are built in variables for assigning numeric values. They are located in a system module named 'USER.SYS' and the module is loaded automatically when you start the controller.
  • lemster68
    Options
    Yes, they are numeric datatypes, NUM.  As with any of the predefined datatypes, you are free to create your own, call them what you like, and store them wherever you need to.  They can be either local or global, and of the VAR, CONST or PERS type.
    Lee Justice