A method for automatically controlling a mining machine. In the method a
route is determined for a mining machine (14) in the form of successive,
interconnected segments in a coordinate system fixed in a relation to the
mine, the segments in turn being determined as successive points located
at a distance from one another. The location of each point is determined
in the coordinate system fixed in relation to the mine and the data
associated with the points is sent wirelessly (17) to the mining machine.