This document discusses modeling and field oriented control (FOC) of a permanent magnet synchronous motor (PMSM) using MATLAB/Simulink. It first introduces PMSM drives and their components. It then presents the mathematical modeling of a PMSM in the d-q reference frame. This includes developing the voltage and flux linkage equations. It also discusses Parks transformation and the equivalent circuit model. Next, it covers PMSM control strategies like FOC which allows controlling the motor like a DC motor. It provides the details of FOC implementation including constant torque control. Finally, it discusses establishing the FOC simulation model in MATLAB/Simulink to simulate the control system.