how to give proper earthing to body and pcb which is operated on +24v dc. Now i am use 100nf capacitor which is placed between earthing and pcb 0V.
Why do you want to earth it?
Post your schematic (aka "circuit diagram") - instructions in Tip #1.
Where does the "+24V DC" come from:
© 2020 Microchip Technology Inc.