blob: 01e2be38817f7e2bac19dee4c365f4685c931796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Example 3.10
clear; clc; close;
format('v',6);
// Given data
Resolution=500;//steps/res
theta=72;//rotator turn angle in degree
//Calculations
Hmod_Res=Resolution*2;//half step mode resolution in steps/res
disp(Hmod_Res,"Half step mode resolution in steps/res : ");
Beta=360/Hmod_Res;//in degree
steps=theta/Beta;//in steps
disp(steps,"No. of steps required : ");
|