local ind = POS(1951,7,9111)
__approach_callback_mode = 1
if event.approach and not event.has_entered then
	atc_set_ars_disable(true)
	atc_set_lzb_tsr(1)
end

if event.train and atc_arrow then
	F.remove_rc({"WOA_ttb_s"})
	if F.indicator(ind) then
		schedule_in(";02","send")
	end
	atc_send("B0WR")
end

if (event.ext_int and event.message == "notify") or (event.schedule and event.message == "send") or (event.channel=="train_ctl" and event.msg=="send") then
	print(rwt.to_string(rwt.now()) .. " WOA RX Notification")
	if not atc_id then 
		F.indicator(ind,true)
		return
	end
	set_route(POS(1942,8,9102),"Exit South")
	atc_send("I+S0WRD2;SMA1")
	F.indicator(ind,false)
	return
end