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.

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