A method of estimating an amount of iron powder contained in a lubricant of a connecting part of a robot arm comprising a motor configured to operate based on data indicating a command current value and an arm configured to operate based on a driving force of the motor, which are connected with the connecting part interposed therebetween, the method comprising:
- acquiring an average value of differences between the command current values acquired at a plurality of timings when the motor is controlled at a rotation speed within a preset fixed range in a preset first period and an average value of the command current values in the first period, and accumulating the average values of the differences in an order of the acquisition;
- and
- estimating the amount of the iron powder based on a product of an accumulated value of the average values of the differences and a preset coefficient.