This document presents the development of a position tracking drive system for controlling a Permanent Magnet Synchronous Motor (PMSM) using a variable structure controller on a dSPACE 1104 platform. The proposed system incorporates adaptive sliding mode control to manage uncertainties in speed and position control effectively, ensuring high performance in industrial applications. Simulation results and experiments verify the effectiveness of the control algorithms, highlighting their potential for precision control in various engineering scenarios.