How can i set date and time in a linux controller with codesys. For windows i use :
IF set THEN
SysTimeRtcConvertDateToUtc(setDate,dwSetTime_local);
Result_Convert:=SysTimeRtcConvertLocalToUtc(dwTimestampLocal:= dwSetTime_local , pdwTimestampUtc:= dwSetTime );
setTimestamp := DWORD_TO_DT(dwSetTime);
SysTimeRtcSet(dwSetTime);
set:= FALSE;
END_IF
But thats not workin by linux
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can i set date and time in a linux controller with codesys. For windows i use :
IF set THEN
SysTimeRtcConvertDateToUtc(setDate,dwSetTime_local);
Result_Convert:=SysTimeRtcConvertLocalToUtc(dwTimestampLocal:= dwSetTime_local , pdwTimestampUtc:= dwSetTime );
setTimestamp := DWORD_TO_DT(dwSetTime);
SysTimeRtcSet(dwSetTime);
set:= FALSE;
END_IF
But thats not workin by linux
Anyone ?