A method for producing mechanical locking systems in a floor panel using a first tool configuration and a second tool configuration, the floor panel comprising: wear resistant top surface layer, a core and a mechanical locking system on a first and a second edge (1, 1') for horizontal locking of the floor panel with similar other panels, the mechanical locking system comprising: a first pair of locking surfaces in the first edge of a panel and a second pair of locking surfaces in the opposite second edge, the first pair of locking surfaces comprises a first upper edge and a locking element, the second pair of locking surfaces comprises a second upper edge and a locking groove, characterised in that the method comprises: displacing the floor panel in a feeding direction with its first edge relative the first tool configuration and with its second edge relative the second tool configuration, the first tool configuration comprises a first and second tool body (TB1, TB2) positioned on the same side of a second column having two opposite column sides (88, 89), and the second tool configuration comprises a first and second tool body (TB1', TB2') positioned on the same side of a third column having two opposite column sides (88', 89'), wherein the first and the second tool configurations (68, 68') are positioned essentially opposite each other transversally to the feeding direction, pre-processing at least a part of the wear resistant top surface layer of the floor panel on the first upper edge such that properties of the surface layer are changed by removing a part of a ridge on the upper edge (18,19) of the wear resistant top surface layer, forming by the first and second tool body of the first tool configuration at least a part of the first pair of locking surfaces (19, 8), and forming by the first tool body (TB1') and second tool body (TB2') of the second tool configuration at least a part of at least one of the surfaces of the second pair of locking surfaces (18,14), wherein the intermediate preprocessing tool is positioned on a first column and the first tool configuration comprises a COMBI tool on an adjacent side of the second column such that four rotating tools are positioned on three columns (80, 80', 81) and on three column sides. displacing the floor panel in a feeding direction with its first edge relative the first tool configuration and with its second edge relative the second tool configuration, the first tool configuration comprises a first and second tool body (TB1, TB2) positioned on the same side of a second column having two opposite column sides (88, 89), and the second tool configuration comprises a first and second tool body (TB1', TB2') positioned on the same side of a third column having two opposite column sides (88', 89'), wherein the first and the second tool configurations (68, 68') are positioned essentially opposite each other transversally to the feeding direction, pre-processing at least a part of the wear resistant top surface layer of the floor panel on the first upper edge such that properties of the surface layer are changed by removing a part of a ridge on the upper edge (18,19) of the wear resistant top surface layer, forming by the first and second tool body of the first tool configuration at least a part of the first pair of locking surfaces (19, 8), and forming by the first tool body (TB1') and second tool body (TB2') of the second tool configuration at least a part of at least one of the surfaces of the second pair of locking surfaces (18,14), wherein the intermediate preprocessing tool is positioned on a first column and the first tool configuration comprises a COMBI tool on an adjacent side of the second column such that four rotating tools are positioned on three columns (80, 80', 81) and on three column sides.