/v1/leadscrew
Steps per mm for a lead-screw axis
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/steppermotor-api/v1/leadscrew" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/steppermotor-api/v1/leadscrew", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/steppermotor-api/v1/leadscrew");
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/leadscrew",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Steps per mm = (motor steps per rev × microstepping) ÷ the screw lead (travel per turn). A 1.8° motor (200 steps) at 16 microsteps on an 8 mm-lead screw gives 400 steps/mm and 2.5 µm of resolution. Microstepping smooths motion and raises the count but does not add real accuracy — torque per microstep drops, so the true positioning still rests on the motor, screw and mechanics. Beware confusing lead with pitch on a multi-start screw.",
"inputs": {
"lead_mm": 8,
"microstepping": 16,
"motor_steps_per_rev": 200
},
"steps_per_mm": 400,
"resolution_um": 2.5,
"full_steps_per_mm": 25
},
"meta": {
"timestamp": "2026-06-06T23:53:52.499Z",
"request_id": "ed8868f8-1d95-4be7-a229-1c6bf8c505d5"
},
"status": "ok",
"message": "Leadscrew steps/mm",
"success": true
}