摘要 |
PROBLEM TO BE SOLVED: To provide a sewing machine that can surely prevent the interference between an obstacle and a sewing needle in accordance with the obstacle installed in a holding body.SOLUTION: A sewing machine feeds and moves a holding body holding a sewing object below a needle bar having a sewing needle installed therein to an absolute original position or a sewing starting position. During the feed movement, a CPU of the sewing machine identifies an obstacle in an image of a predetermined region below the needle bar, captured by an image sensor, every time driving an X-axis motor and a Y-axis motor by one pulse to move the holding body, and confirms whether or not the obstacle is within a predetermined distance from a restricted region corresponding to the needle bar (S250). The CPU changes the moving direction of the holding body to a different direction, when the obstacle comes into the predetermined distance from the restricted region (S350). When the holding body reaches an end of the movable region after the change in moving direction, the CPU allows the holding body to be inverted in moving direction (S401: YES, S402: YES, S403), and then when the holding body reaches the end of the movable region again, notices of error occurrence (S405). |