12
Zikodrive Motor Controllers is a trading name of Round Bank Engineering Ltd
Unit 4B, Top Land Business Park, Hebden Bridge, West Yorkshire, HX7 5RW
–
www.Zikodrive.com
- +44 (0) 1422
647177
0x02
– Move Distance
This register sets the motor running for a set distance at a set speed and direction.
Register
Name
Byte Data
Default
0x02
Move Distance
Data 0 = Direction
Data 1 = Distance MSB
Data 2 = Distance LMSB
Data 3 = Distance MLSB
Data 4 = Distance LSB
0x00
0x00
0x00
0x00
0x00
As default (can be changed by Zikodrive) the output is scaled to count every 6-motor
commutation point as a single unit of distance. So, for a 5-pole motor you will get 30
commutation points per revolution (5*3 [hall sensors], *2 [counts both the rise and falls of hall
sensors]) which will result in 5 distance units per motor revolution.
Page
Example 3
From Master
0x7A
0x64 0x01 0x02 0x00 0x00 0x00 0x0E
0x10
0xDE
0x7A & 0x64
=
Header
0x01
=
Address
0x02
=
Register
–
Move Distance
0x00
=
Data Byte 0
–
Direction
–
Move in Directi
on “
A
”
0x00
=
Data Byte 1
–
MSB
0x00
=
Data Byte 2
–
LMSB
0x0E
=
Data Byte 3
–
MLSB
0x10
=
Data Byte 4
–
LSB
0xDE
=
Checksum
This gives us a total move distance of 0xE10 = 3600 move units, which equals 3600/6 = 600
motor revolutions.