background image

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

  

[email protected]

 

 

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.  
  

Содержание ZDBL50DCUART Series

Страница 1: ...s is a trading name of Round Bank Engineering Ltd Unit 4B Top Land Business Park Hebden Bridge West Yorkshire HX7 5RW enquiries Zikodrive com www Zikodrive com 44 0 1422 647177 Zikodrive ZDBL50DCUART...

Страница 2: ...tents Introduction 3 Overview 3 Specifications 3 Setting Up 4 Programming Manual 6 The UART Protocol 6 Protocol Setup 6 Recommended Software 6 The Zikodrive Protocol 7 CheckSum formula 7 Shortlist of...

Страница 3: ...ations Up to 28Vdc Up to 50Adc Sensored BLDC trapezoidal Block commutation control Four Optically Isolated Inputs Two Power Outputs 24V up to 2A Modular design connects to many Break Out Boards that c...

Страница 4: ...em wired up incorrectly as the motor will not turn may be possibility of damage to either the motor and or controller possibly even PSU due to high currents Power Wires 12 28Vdc must be applied to the...

Страница 5: ...TX transmitting from the Master controller must be connected to the RX receiving pin on the ZDBL50DC controller The TX transmitting from the ZD SERIES UART must be connected to the RX receiving of the...

Страница 6: ...rd and derived by the Zikodrive engineers to provide fast and efficient data transfer The Data is transmitted and received in 10 packets of 8bit binary Bytes Protocol Setup BAUD RATE 19200 START BITS...

Страница 7: ...rocess the given command If the command was rejected all data will be disregarded with a NACK 0x15 and error code and a new command must be sent Example 1 Basic Command From Master 0x7A 0x64 0x01 0x02...

Страница 8: ...SB Data 4 Speed LSB 0x00 0x00 0x00 0x00 0x00 0x01 Parameters Data 0 NA Data 1 Max Current Data 2 Reaction Data 3 Move Distance Speed MSB Data 4 Move Distance Speed LSB 0x00 0x0F 0x46 0x00 0x00 0x02 Mo...

Страница 9: ...der and motor windings However if Byte 0 is equal to 0 the direction will be A and if Byte 0 is equal to 1 the direction will be B Data Bytes 1 2 are not required and will not be read The speed refers...

Страница 10: ...5RW enquiries Zikodrive com www Zikodrive com 44 0 1422 647177 As 925 is half the max 1850 the motor will move in direction B at half the PWM duty cycle This varies depending on what motor is used If...

Страница 11: ...a 3 Move Distance Speed MSB Data 4 Move Distance Speed LSB 0x00 0x0F 0x46 0x00 0x00 When the Max Current is measured in the motor phase windings the PWM supplied to the windings will be reduced to pre...

Страница 12: ...n 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 se...

Страница 13: ...sets the power bridge configuration into one of two different modes Normal running conditions will resume when the appropriate UART command is received Register Name Byte Data Default 0x04 Motor Mode...

Страница 14: ...le Data 1 Commutation Points Data 2 Proportional Value Data 3 Integral Value Data 4 Derivative Value 0x01 0x0F 0x64 0x00 0x00 0x06 Revert to PWM Analogue Data 0 4 NA NA Internally the micro controller...

Отзывы: