A robot arm may be in need for performing various operations, especially for service robots and space robots. This paper presents a strategy that allows a modular and reconfigurable robot to safely perform nail hammering without hardware enhancements. The purpose is to equip a versatile robot arm with hammering capability that can be used if needed. To do this, a multiple working mode approach is applied to switch the selected joint(s) to passive mode with friction compensation to allow free rotation during impact. Analytic impulse models are used to predict joint impulses and serve as criteria for mode switching. Advantages of the proposed approach include savings on space, weight, costs, and complexity for a limited range of nail/board environments. An experimental study has validated analytic models of hammering and demonstrated the effectiveness of the proposed approach.