According to the requirements of railway transportation, to ensure that locomotives can receive frequency-shifted signal information through the track within the station, the track circuits must be codified. Due to the increased speed of train operations, braking has become more challenging, increasing the possibility of running a red signal compared to the present. Therefore, it is imperative to implement pre-overlay codification technology and equipment suitable for use in speed-enhanced sections. As the pre-overlay coding method must be adopted, it requires the isolation components in the interface equipment to have "fault-safe" performance. When the isolation component fails, the current or voltage introduced into the parallel track relay must not cause malfunction. Therefore, ensuring that the current and voltage of each component in the codified track meet the requirements is crucial. This research aims to establish a circuit simulation model based on MATLAB Simulink to achieve dynamic simulation of the pre-overlay ZPW-2000 codification circuit diagram of the 25Hz phase-sensitive track circuit in the electrified section. Through this model, the electrical characteristic indicators such as current, voltage, and waveform of each component on the circuit can be observed in real-time. This helps optimize the design and maintenance of the railway signal system, improving the safety and efficiency of train operations and contributing to the establishment of a digital twin model for the entire railway system's signal system.