In order to solve the problem that the attraction force of the permanent magnet wheel of the wall-climbing robot can not be changed and it is difficult to remove the permanent magnet wheel from the wall after the completion of the operation,a permanent magnet wheel whose magnetic force can be switched is designed.The adsorption unit of the magnetic wheel is parameterized and optimized by using Maxwell software,so that the magnetic wheel of the wall-climbing robot can provide about 400 N suction with less mass,and the magnetic force can be turned off so that the staff can separate the wall-climbing robot from the wall.