Skip to content

Timecheck

Type Function: BOOL

Input TD TOD(time of day)
TD TOD(time of day)
STOP TOD(stop time)
Output BOOL ( Return Value )
TIME CHECK checks whether the daily time TD is between the START and STOP time. TIME CHECK returns TRUE if TD > = START and TD < STOP. IF START and STOP are defined in a way that START > STOP, the output with the start set to TRUE and remains by midnight TRUE until at the next day STOP is reached.
The function has the following definition
START < STOP TD >= START AND TD < STOP
START > STOP TD >= START OR TD < STOP

timecheck