background image

 

 

 

Zikodrive Motor Controllers 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 

0x00 

– Speed & Direction Register  

  

This register sets the motor running in a set speed and direction.  

  

Register 

 

Name 

 

Byte Data  

 

Default 

 

0x00 

 

Speed & Direction 

 

Data 0 = Direction setting 

 

Data 1 = NA 

 

Data 2 = NA 

 

Data 3 = Speed MSB 

 

Data 4 = Speed LSB 

 

0x00 

 

0x00 

 

0x00 

 

0x00 

 

0x00 

 

  

The actual motor direction depends on the wiring order 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 to the PWM being sent into the motor windings. If a value of 0 is sent, the 

motor will stop, and if a value of 1850 the PWM will be at maximum duty cycle.  
  

Example 2  

 

From Master   

 

0x7A  

 

0x64    0x01    0x00    0x01    0x00    0x00    0x03  

 

0x9D  

 

0x5D 

 

 

 

 

0x7A & 0x64     

=  

Header  

 

 

0x01    

  

=  

Address  

 

 

0x00     

  

=  

Register 

 Speed & Direction register  

 

 

0x01     

  

=  

Data Byte 0 

 Direction 

 

Move in Direction “B”

  

 

 

0x00     

  

=  

Data Byte 1 

 Not read  

 

 

0x00     

  

=  

Data Byte 2 

 Not read  

 

 

0x03     

  

=  

Data Byte 3

 Speed Value MSB  

 

 

0x9D     

  

=  

Data Byte 4 

 Speed Value LSB  

 

 

0x5D     
  

  

=  

Checksum  

 

 

Speed variable   

=   

0x39D (HEX)  

 

 

  

  

  

=  

925 (Decimal)  

 

 

Содержание 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...

Отзывы: