Hello,
I am new to codesys programming, How to record timestamp and saved the value in a variable? I need to record start time and end time of a process.
Warmest regards.
Hi, what device are you using? There could be manufacturer's libs that do it.
As general advice I will use the classical way of embedded system: create a variable and count cycles (assuming that your process is in ciclic task).
Another way could be to use the Task configuration > Monitor tab.
Hi, Francesco
Hi Francesco,
Thank you for your reply,
I used SysTimeRTC library to get the PLC time. I wrote a if function a boolean variable true then freeze the start time in a date_time variable.
Warmest regards,
Log in to post a comment.
Hello,
I am new to codesys programming,
How to record timestamp and saved the value in a variable?
I need to record start time and end time of a process.
Warmest regards.
Hi,
what device are you using? There could be manufacturer's libs that do it.
As general advice I will use the classical way of embedded system: create a variable and count cycles (assuming that your process is in ciclic task).
Another way could be to use the Task configuration > Monitor tab.
Hi,
Francesco
Hi Francesco,
Thank you for your reply,
I used SysTimeRTC library to get the PLC time.
I wrote a if function a boolean variable true then freeze the start time in a date_time variable.
Warmest regards,