RobotStudio event

Could I declare my own variable???

I want to create a variable VAR Time mytimer:=0  will it work?

Comments

  • DenisFR
    DenisFR ✭✭✭
    Hello,
    Time is not a valid data type.
    To declare your own type use ALIAS (to copy from other type) or RECORD to make a new structured data type.
    You can check valid data type in "RAPID Instructions, Functions and Data types" help.

    In your case, you should use clock data to use with ClkReset, ClkStart, ClkStop, and ClkRead.


    ☑️2024 - RobotStudio® User Group

  • Agreed and thank you