18
Zikodrive Motor Controllers, Unit 4B, Top Land Country Business Park, Cragg Vale, Hebden Bridge, West Yorkshire,
UK, HX7 5RW
–
www.Zikodrive.com
- +44 (0)333 123 1730
RUN_STPS Formula
The values for the Data Bytes required for the RUN_STPS are the required number of Microsteps.
Example 5
-
Setting RUN_STPS
So, M_STEP was set to 128 Microsteps/Step there would be 25,600 steps per revolution. So, if we
needed to rotate 16.2 revolutions we need:
25600 x 16.2 = 414,720 Microsteps
414,720 Decimal = 0x065400 Hexadecimal
RUN_STPS_MSB = 0x06
RUN_STPS_MID = 0x54
RUNSTPS_LSB = 0x00
From Master
0x7A
0x64 0x01 0x02 0x01 0x06
0x54
0x00
0xA1
From ZikoDrive
0x06
0x7A & 0x64 =
Header, ASCII code ZD
0x01
=
ZikoDrive Address, Set as 0x01 as default
0x02
=
Register Address, RUN_STPS
0x01
=
Direction
0x06
=
Speed MSB
0x54
=
Speed MID
0x00
=
Speed LSB
0xA1
=
CheckSum