Ir al contenido
GET /v1/speed

Axis speed from the step rate

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/steppermotor-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/steppermotor-api/v1/speed" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/steppermotor-api/v1/speed", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/steppermotor-api/v1/speed");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/steppermotor-api/v1/speed",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "Axis speed = step pulse rate ÷ steps per mm, so the same controller step-rate ceiling gives a faster axis when steps/mm is lower. At 80 steps/mm a 40 kHz step rate is 500 mm/s — but real top speed is limited first by the motor losing torque at high step rates and stalling, and by the controller's maximum pulse frequency, so leave a margin below the theoretical figure.",
        "inputs": {
            "steps_per_mm": 80,
            "step_frequency_hz": 40000
        },
        "speed_mm_s": 500,
        "speed_mm_min": 30000
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.573Z",
        "request_id": "7fc33fc8-c2e0-4d59-adc0-d66e64ec0439"
    },
    "status": "ok",
    "message": "Axis speed",
    "success": true
}