...
In this example, Area 11 will select top 1 VALUE from tblPLC_3 where DT >= Down (the time the equipment went down) + ( -1 * SearchXSecondsPriorToEvent ) AND DT <= dtStartTemp.AddMilliseconds(fnGetSearchYMilisecondsAfterEvent) ORDER BY DT
The Configuration Key in the EXE is SearchXSecondsPriorToEvent by default is 30
...