Error 40 is displayed when the keypad's battery is flat or the battery has been inserted incorrectly.
Remove the battery and insert it again. If the error continues, replace the battery.