System time
CODESYS Forge
talk
(Thread)
System time
Last updated: 2006-01-13
Real time clock??
CODESYS Forge
talk
(Thread)
Real time clock??
Last updated: 2013-01-15
Time synchronisation
CODESYS Forge
talk
(Thread)
Time synchronisation
Last updated: 2007-10-27
local time, UTC, RTC
CODESYS Forge
talk
(Thread)
local time, UTC, RTC
Last updated: 2008-07-23
Time of day? TOD
CODESYS Forge
talk
(Thread)
Time of day? TOD
Last updated: 2016-04-09
Epoch Time
CODESYS Forge
talk
(Thread)
Epoch Time
Last updated: 2008-10-31
Struggeling with Task time
CODESYS Forge
talk
(Thread)
Struggeling with Task time
Last updated: 2018-12-30
Millisecond aus Time
CODESYS Forge
talk
(Thread)
Millisecond aus Time
Last updated: 2010-08-22
Input Signal Time
CODESYS Forge
talk
(Thread)
Input Signal Time
Last updated: 2016-08-05
prev cycle time
CODESYS Forge
talk
(Thread)
prev cycle time
Last updated: 2014-09-20
GENERATE TIME PERIOD
CODESYS Forge
talk
(Thread)
GENERATE TIME PERIOD
Last updated: 2013-11-05
Dwell time
CODESYS Forge
talk
(Thread)
Dwell time
Last updated: 2018-02-22
Daylight Savings Time?
CODESYS Forge
talk
(Thread)
Daylight Savings Time?
Last updated: 2012-04-25
Time display anomally
CODESYS Forge
talk
(Thread)
Time display anomally
Last updated: 2023-03-02
Time clock functioning
CODESYS Forge
talk
(Thread)
Time clock functioning
Last updated: 2021-12-17
Time clock functioning
CODESYS Forge
talk
(Thread)
Time clock functioning
Last updated: 2021-12-20
kann Time nicht subtrahieren
CODESYS Forge
talk
(Thread)
kann Time nicht subtrahieren
Last updated: 2007-03-10
get actual time
CODESYS Forge
talk
(Thread)
get actual time
Last updated: 2011-12-29
TIME VisuDialog
CODESYS Forge
talk
(Thread)
TIME VisuDialog
Last updated: 2016-08-02
Format der TIME-Variablen
CODESYS Forge
talk
(Thread)
Format der TIME-Variablen
Last updated: 2007-10-02
Start a time variable?
CODESYS Forge
talk
(Thread)
Start a time variable?
Last updated: 2017-03-10
Time zone
CODESYS Forge
talk
(Thread)
Time zone
Last updated: 2023-12-29
ModbusFB - Slow Response Time
CODESYS Forge
talk
(Thread)
ModbusFB - Slow Response Time
Last updated: 2024-04-26
Task time too fast?
CODESYS Forge
talk
(Thread)
Task time too fast?
Last updated: 2024-11-27
Post by hanoues on setting date and time on CPX-E
CODESYS Forge
talk
(Post)
Hello, Can anybody here tell me how to modify the time and date on my CPX-E? I used the code I found on CODESYS online help, but it doesn't work. What am I missing? FUNCTION current_date_time : STRING VAR stUTC_Timestamp : SysTime; //utc time // ULINT#1528280694913 stLocal_TimeStamp : SysTime; //local time but is in general equal // ULINT#1528280694913 stdNow : SysTimeDate; //local time in an object to access each number (day, month...) dtNow : DATE_AND_TIME;//DT#2018-6-6-10:24:54 todNow : TIME_OF_DAY; // TOD#10:24:54.913 datNow : DATE; // D#2018-6-6 END_VAR SysTimeRtcHighResGet(stUTC_Timestamp); // ULINT#1528273494913 SysTimeRtcConvertHighResToLocal(stUTC_Timestamp, stdNow); //convert UTC ULINT to Local SysTime // stdNow.wYear = UINT#2018 // stdNow.wMonth = UINT#6 // stdNowy.wDay = UINT#6 // stdNow.wHour = UINT#10 // stdNow.wMinute = UINT#24 // stdNow.wSecond = UINT#54 // stdNow.wMilliseconds = UINT#913 // stdNow.wDayOfWeek = UINT#3 // stdNow.wYday = UINT#157 SysTimeRtcConvertDateToHighRes(stdNow, stLocal_TimeStamp); // ULINT#1528280694913 dtNow := TO_DT(stLocal_TimeStamp / 1000 ( ms )); // DT#2018-6-6-10:24:54 todNow := TO_TOD(stLocal_TimeStamp MOD TO_ULINT(T#1D)); // TOD#10:24:54.913 datNow := TO_DATE(dtNow); // D#2018-6-6 (convert to appropriate string) current_date_time := concat('$N[', TO_STRING(dtNow)); current_date_time:= concat(current_date_time,'.'); current_date_time:= concat(current_date_time, TO_STRING(stdNow.wMilliseconds)); current_date_time:= concat(current_date_time,'] - '); RETURN;
Last updated: 2024-05-21
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.