# Development of Railway Protective Relay Simulator for Real-Time Applications
## 1 Introduction  
The fault of the traction power-supply system (TPSS) directly results in the operation disturbance of railway trains because electric railways use electrical energy as an energy source. Therefore, system faults must be quickly identified and responded to, which is achieved by protective relays. In other words, protective relays are designed to monitor breakdowns and prevent breakdown impacts. Thus, they are very important for the stable operation of the system [1; 2; 3; 4]. The autotransformer (AT) feeding method, which is applied to electric railways in many countries, supplies power to the line through an AT with twice the rated voltage of the load (i.e., train). In other words, it comprises a trolley wire (TF) that connects the neutral point of an AT with the rail to supply power to the load, and a feeder (AF) to absorb the return current of the load in the rail [5; 6; 7; 8]. Unlike the conventional electric power system, substations that serve as a power source have a disconnected wire form instead of a network form; thus, short circuit fault at a distance from the power source can be confused with the load current. Additionally, because the load of the TPSS has a large capacity of approximately 15 [MVA] in terms of high-speed trains and rapid operation, the load current has great variability. Accordingly, the AC TPSS is characterized by asymmetrical single phases due to moving loads (such as trains); the TPSS characteristics differ significantly from conventional balanced three-phase power systems. In addition, it is essential to establish performance verification procedures at the development stage because it is essential to ensure the reliability of the protective relay operation on railways where safety is important. However, many studies have been conducted on the fault analysis ofrailway systems, but little research has been conducted on the performance evaluation of relays in railways [9; 10; 11; 12]. Generally, in power systems, the performance test of protective relay can be divided into steady and dynamic tests. A steady test is a method of injecting a specific voltage and current into a protective relay to determine whether it operates. A dynamic test tests the response characteristics of the protective relay by injecting a waveform that reflects the operating characteristics or environment of the system wherein the protective relay is equipped. A steady characteristic test of protective relay for railroads can be performed using general commercial testing devices including an amplifier that generates waveforms. However, a dynamic characteristic test can be performed through hardware in the loop simulation (HILS) in connection with the relay by simulating system operation environments through an expensive simulator such as digital real-time simulator (DRTS) [13; 14; 15; 16]. However, DRTSs are not easy to construct, as they are expensive and require more effort than electromagnetic transients (EMT) simulators for transient state analysis. Additionally, the best way to test the protective relay with the correct system fault waveform is to obtain voltage and current waveforms from the protective relay installed in the actual TPSS as a common format for transient data exchange for power systems (COMTRADE) file and then inject it into the protective relay that needs to be tested. Therefore, this paper proposes a new digital simulator for the railways called protective relay digital simulator for railway (PREDIS-R), which enables the accurate and efficient testing of protective relay performance at a low cost at the laboratory level. The proposed digital simulator has the following configurations and features. First, it provides an environment where users can create waveforms or import them from outside. In other words, users can create the desired test waveform on a digital simulator or import a fault waveform implemented by measurement or an external EMT simulator.