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

Upgrade from codesys 3.5.19 to 3.5.20

pethun
2024-04-20
2024-04-23
  • pethun - 2024-04-20

    Hi

    We upgraded our ptoject from 3.5.19 to 3.5.20 but we get an error message in the latest version.
    We made our own trend function and its related to this

    we get error message:
    Trend_Menu Device: PLC Logic: Application: C0032: Cannot convert type 'RTS_SYSTIMEDATE(systimertc, 3.5.20.0 (system))' to type 'RTS_SYSTIMEDATE(systimertc, 3.5.17.0 (system))'

    The variables are defined as follow:

    start : SysTimeRtc.SYSTIMEDATE;
    end : SysTimeRtc.SYSTIMEDATE;

    The code that creates the error is the variable start and end

    IF xAssign THEN
    xAssign := FALSE;
    xPanEnable := FALSE;
    xZoomEnable := FALSE;
    drs.liFrom := VisuTrendStorageAccess.TrendStorageConvertToTimestamp(start, 0 (us));
    drs.liTo := VisuTrendStorageAccess.TrendStorageConvertToTimestamp(end, 0 (us));
    drs.m_itfDateRangeSelectorClient.SetCurrentRange(drs.liFrom, drs.liTo);
    END_IF

    I cant understand really what the error message means and what can be the cause of the error? It compiles fine in dthe older codesys 3.5.19.

    If anyone has some experience of this please help us out?

    We must upgrade due to the new licenses.

    Thanks

     
  • hoatran - 2024-04-23

    you can change the library version to match in Library Manager > Place Holder

     

Log in to post a comment.