Provided is a massage machine that is capable of properly setting a scale section of a rotary coding device, inspecting a tilting condition of a drive mechanism section with accuracy, and correctly controlling forward and backward movement of a treatment application member. A scale section 54b of a rotary coding device 54 that is provided for inspecting tilt of a drive mechanism section 60 with respect to a base 53 is slidably coupled to a shaft in a tilt center of the drive mechanism section 60. When the drive mechanism section 60 tilts, the scale section 54b is restrained by the shaft in respect of an operation thereof associated with the tilting in such a way that the degree of freedom of movement is limited to be only rotation about the shaft, whereby the scale section 54b that tilts in unison with the tilt of the drive mechanism section 60 can correctly tilt by rotating about the tilt center of the drive mechanism section 60. Even though components of other movements are added to the tilting condition of the drive mechanism section 60 about the shaft, the variations of such movements are not reflected on the scale section 54b so that the scale section 54b is allowed to tilt while maintaining a proper positional relationship with respect to an inspection section 54a and the inspection of the tilt angle can be properly performed.提供一種按摩機,能適切地設定旋轉編碼器之標尺部之配置,高精度地檢測驅動機構部之傾動狀態,正確地進行施療件之進退控制。檢測驅動機構部60相對底座部53之傾動角度之旋轉編碼器54之標尺部54b,滑接於驅動機構部60之傾動中心之軸,在驅動機構部60傾動時,標尺部54b被軸拘束其傾動相關之動作,移動之自由度被限制於僅繞該軸之旋動,藉此與驅動機構部60之傾動同時傾動之標尺部54b,正確地繞驅動機構部60之傾動中心傾動,縱使成為其他運動成分加於驅動機構部60之繞軸之傾動的狀態,該動作之變化亦不會反映於標尺部54b,能使標尺部54b相對檢測部54a維持適切之位置關係來傾動,能適切地進行傾動角度之檢測。