The method involves sending electric signals as a signal with a predetermined pattern. A reception signal (E1) received in receiving coils (17, 18) is processed as a pattern (M) by an evaluation unit (19) of a self-propelled, rechargeable battery-powered tool. The reception signal is compared with a predetermined reference pattern (RM). Information about a position of the coils within or outside an edge limiting wire and about a location of the tool on a surface is reproduced by a comparison result. A traveling direction of the tool is controlled by a control unit (13) based on the result.