/v1/speed
Axis speed from the step rate
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}