RobotStudio event

Keeping variable value during controller restart

Hello to all, could you please advise me how to create and use variables in rapid program that will keep its last value even after controller lost power in the meantime, and have been restarted. Thanks.

Comments

  • Micky
    Micky ✭✭✭

    Hi,

    you can use persistent instead of variables. They will keep their values.

    Example:

    TASK PERS num nExample:=1;

    /BR

    Micky

     

     

  • pacijent
    pacijent ✭✭
    edited March 2014
    Thanks Micky.