Skip to main content

timeHasNotExpired

Short summary​

This assertion method checks that the time since the timestamp time has not yet elapsed

Parameters​

NameTypeCommentKind
timestampLTIMEstart time you get it with LTIME()input
expiringTimeLTIMEtimeout like LTIME#300msinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD timeHasNotExpired
VAR_INPUT
(* start time you get it with ``LTIME()`` *)
timestamp :LTIME;
(* timeout like ``LTIME#300ms`` *)
expiringTime :LTIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR