F.stn("Sys5W", "Ack5W", "Rea5W", "R")
if event.train then
S.Ack5W_lvcross=false
if not (S.Ack5E_lvcross or S.Ack5W_lvcross) then
setstate("AckLvcross1", "off")
setstate("AckLvcross2", "off")
end
end