This part is a kind of semiconductor called 1N540.
Function of this product has Diode Switching 400V 3A 2-Pin SOD-64 Ammo.
Manufacturers : New Jersey Semiconductor
Image and pinout :

Some of the text within the PDF file :
[ ... ]
1N540 PDF Datasheet Download
