Supervisory control and protection system of the neutral beam injector (NBI) in the HL-2A tokamak is presented. The system is used for a safe coordination of all the main NBI subsystems. Because the system is based on computer networks with its transmission medium of optical fiber, its advantages in high operational stability, reliability, security and flexible functional expandability are clearly shown during the NBI commissioning and heating experiment in HL-2A.