Thank you for your question.
Having an error code coming up on the control panel can be a concern, and then having to clear it to complete the clean cycle.
The F40 code is related one of three possibilities.
The first could be a bad wire connection in the wire harness.
The second could the cook-top lockout control board. This board locks out the cook-top from working when you have the self-clean cycle selected.
The last one could the Electronic Oven Control. If that is the problem it would have to be replaced.
Due to the complexity of this system I would suggest that you have a service technician complete the diagnosis for this error code.
If you do not feel confident repairing this problem yourself, then you can have it repaired at your home by a Sears technician. Here is a link for the website:
Sears Home Services
Thank you for using Manage My Life.