TPWS is train protection warning system.
When the train crosses red signal, the automatic brakes slam down n the train stops.
Most of the P-7 have them. n some are being introduced. the equipment is also laid near important signal points which hits the loco console unit below the bogies n then start activating.