/v1/speed
Axis speed from the step rate
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}