We provide the PIC24/dsPIC DSC Class B V2.40 software library for the PIC24 microcontroller (MCU) and dsPIC Digital Signal Controller (DSC) families to facilitate compliance with Class B safety-critical application standards such as IEC 60730. This library includes self-test routines to ensure the integrity of critical MCU functional blocks, helping manufacturers meet certification requirements efficiently. Version 2.40 features updates and enhancements that build upon previous releases.