This document presents a bidirectional control strategy for a LLC resonant converter used in a power electronic traction transformer (PETT) for locomotive applications. The strategy allows the converter to automatically adjust the power flow direction to keep the DC output voltage constant when the train transitions between traction and regenerative braking modes. A MATLAB/Simulink model is developed to simulate the LLC resonant converter using the proposed control strategy. Simulation results demonstrate the converter maintaining a constant 1500V output voltage under different load conditions while achieving soft-switching and high efficiency through the bidirectional control approach.