Set boolean ==> with clock

meni
2009-10-20
2009-10-23
  • meni - 2009-10-20

    Hello

    I want to start a boolean to a particular system time

    Is someone already made this function.

    Thank you in advance. I use a system WAGO 841

     
  • Nitrozin - 2009-10-23

    Hi,

    VAR
        SYS_TIME: DT;
        SET_TIME: DT;
        BOOL_VAR: BOOL;
    END_VAR
         LD       TRUE (* get the Systemtime *)
         SysRtcGetTime
         ST   SYS_TIME
         LD   SYS_TIME
         GE   SET_TIME (* compare the DT-Values *)
         ST   BOOL_VAR (* set the BoolVar *)
    

    you must import SysLibRtc.lib

    Greets Volker

     

Log in to post a comment.