SP18.3 : Add library OSCAT basic 32bits on Codesys 64bits

galexis
2022-10-12
2022-10-14
  • galexis - 2022-10-12

    Hi,
    How add library OSCAT basic 3.4 32bits on CODESYS 64bits installation ? From the past, it's was possible...
    Thanks for your help.

     

    Last edit: galexis 2022-10-14
  • galexis - 2022-10-14

    There is a solution to make same function that DAYS_DELTA of OSCAT without OSCAT ?

     
  • galexis - 2022-10-14

    Functon is:

    FUNCTION FC_DeltaJours: DINT;
    VAR_INPUT
        i_dDate1: DATE;
        i_dDate2: DATE;
    END_VAR
    
    VAR
        //Date 1 convertit en timestamps
        uliDate1: ULINT;
        //Date 2 convertit en timestamps
        uliDate2: ULINT;
    END_VAR
    
    uliDate1:= DATE_TO_ULINT(i_dDate1);
    uliDate2:= DATE_TO_ULINT(i_dDate2);
    FC_DeltaJours:= ULINT_TO_DINT((uliDate2 - uliDate1)/(24*60*60));
    
     

Log in to post a comment.