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

  

[email protected]

 

 

www.Zikodrive.com

 - +44 (0) 1422 

647177 

The Zikodrive Protocol  

  

All commands are initiated with a two-byte header, one-byte address code, one-byte register 

address, 5 data bytes and then followed with a single Checksum byte. To ensure the correct data 
is being transferred, the protocol will send either a confirm (0x06) or a reject (0x15) for a good, 
or a bad command. If the ZD SERIES UART has accepted the command, the confirmation will then 
be sent to the Master Controller and then process 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    0x00    0x00    0x00    0x0E    0x10    0xDE 

 

  
  

 

 

0x7A    

=  

Header, ASCII code “Z”

  

0x64     

=  

Header, ASCII code 

D

  

0x01     

=  

Zikodrive Address, Set as 0x01 as default  

0x02     

=  

Register, states which command/action you wish to change  

0x00     

=  

Data byte 0  

0x00     

=  

Data byte 1  

0x00     

=  

Data byte 2  

0x0E     

=  

Data byte 3  

0x10     

=  

Data byte 4  

0xDE     

=  

Checksum  

  

CheckSum formula  

 

 

Each command sent to the Zikodrive controller must be followed with a CheckSum byte or the 

data will be rejected.

 

 

 

 

CHECKSUM = ((A RE DATA0 + DATA1 + DATA2 + DATA3 + DATA4) XOR 0xFF) & 0xFF;

 

 

 

 

 

The Address, the required register and the data bytes are all added together.  

 

Command is run through an XOR with 0xFF  

 

Command is then run through & with 0xFF

 

 

 

 

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

Отзывы: