Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

systimeRTC

edmond
2018-09-26
2018-09-27
  • edmond - 2018-09-26

    hi,

    i want to get a systime.
    i use systimeRTC lib and try this:

    VARΒ  Β 
    Β  Β t0:Β  Β DWORD;
    Β  Β t1: Β  Β DT;
    END_VAR
    t1:=DWORD_TO_DT(systimeRtcGet(pResult:=t0));
    

    It works.
    i see there is a high resolution version
    SysTimeRtchighResGet(pTimeStamp:=γ€€γ€€οΌ‰, in_out type is systime

    how to get the milisec data?

     
  • e.kislov - 2018-09-27

    Hi. Hope it helps:

    IMG: 1.png

    IMG: 2.png

     

Log in to post a comment.