     end
   end
 
-  defp max_retries do
-    case param_read(:param_mov_nr_retry) do
-      {:ok, nr} -> floor(nr)
-      _ -> 3
-    end
-  end
-
   defp assert_axis!(axis) when is_atom(axis),
     do: axis
 

    do: String.to_existing_atom(axis)

  defp assert_axis!(axis) do
    # {:error, "unknown axis #{axis}"}
    raise("unknown axis #{axis}")
  end
end

  end

  def move_absolute(x, y, z, speed) do
    do_move_absolute(x, y, z, speed)
  end

  defp do_move_absolute(x, y, z, speed, errors \\ [])

  # This is the final attempt before movement is aborted.
  defp do_move_absolute(x, y, z, speed, 0, errors) do
