In rail systems, a stop ball is placed next to the signal lamps that are positioned without entering the tunnel. If there is a vehicle in the tunnel, this signal turns red, if any vehicle passes through it by violating the signal, the PLC system sends the "stop the vehicle" command to the workstation in the vehicle.