Tool placement in the tool magazine of a flexible machine