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
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