21:(*checknumberphonesender'a*) (*check if sms is not too old*) timestamp_hist_hi := time_sys.udiLocal_DateAndTime + timestamp_hist; timestamp_hist_lo := time_sys.udiLocal_DateAndTime - timestamp_hist; IF (smsrec.sNumber = 'XXXXXXXXXXX' OR smsrec.sNumber = 'XXXXXXXXXXX')AND(DT_TO_UDINT(smsrec.dtSend)>timestamp_hist_lo)AND(DT_TO_UDINT(smsrec.dtSend)<timestamp_hist_hi)THENiState:=23;ELSEiState:=100;END_IF;
Teh variable timestamp_hist equal 300sec.
How it is possible that time to time the variables timestamp_hist_hi and timestamp_hist_lo are the same ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Below I paste one of step CASE statement
Teh variable timestamp_hist equal 300sec.
How it is possible that time to time the variables timestamp_hist_hi and timestamp_hist_lo are the same ?
When timestamp_hist = 0