AWS function is dependant on the type of receiver fitted to the vehicle, the modern electronic ones behave differently to the conventional switch detectors, most of them will be the retro-fit electronic units ever since the era of TPWS Mk.2 in the mid 2000s. However, the electronic receivers are forwards and backwards compatible with the conventional detectors, and they can be fitted interchangeably.
"Sometimes working" can also be a sign of a weak fixed AWS magnet or magnet pair, tolerances on AWS are, well, not that good to be honest, and since TPWS came in for "TETS" terminal station overspeed and fixed buffer protection, perhaps this AWS magnet has simply been forgotten about as it's not 'needed' since TPWS provides the protection now. All of this being conjecture, it could also be a speed dependant AWS magnet that's controlled by position detectors or track deltas that will sound if the signalling system detects what it deems to be 'overspeed'. There's a lot of weird things out there in the world of signalling that I don't think any of us will ever fully understand, other than the person who designed it to be put there.
Standard AWS self test when opening the desk isn't it? AWS display shows black/clear, horn sounds. Acknowledge the horn, then display shows yellow/black and bell sounds.
Yes. AWS Self Test is part of the energisation characteristic of the system. All the way back to the "Electric" Brake and Horn Relay and "Baldwin" AWS EP Valve systems. (If anyone wants to know how the old EP valves worked, I can explain it, but it's very, very dry).
EP = Electropneumatic.
There are also old school AWS test magnets at some locations that activated when coming out of a depot. They also pre date me but not doubt someone could give the reasons why they existed and some still do. We also have a weird AWS magnet going into a terminal platform. Some days it goes off and others it doesn't. I've never been able to lock down a specific reason why it sounds. No signal. It just sits there a few yards from the platform :/
AWS Test Magnets now form part of an exam period, combined with TPWS Testing. As TPWS can't be tested by a fixed depot system, it is now integrated into a single test under the Unipart, Thales or Wabtec maintenance plans. So put simply, there isn't any need for it any more. They now use the "Magnet on a Stick" test.