UIrobot UIM2842 User Manual page 59

Can2.0b instruction control, miniature integrated stepper motor controller (closed-loop) v1.0
Table of Contents

Advertisement

Miniature Integrated Stepper Motor Controller(
Header
The start of a feedback message
There are 3 kinds of headers:
AA represents the ACK message, which is a repeat of the received instruction.
CC represents the status feedback, which is a description of current working status.
EE represents the error message.
Controller ID
The identification number of current controller in a CAN network (also known as Node ID)
Scope: 5 – 125.
Message ID
The property of the current message
For example, CC 05 A0 FF, where A0 denotes that there is a low level on sensor 1. For
details, please refer to following sections.
Data
Has a 7bits data structure. High is in front, and low is in the back.
In figure 12-1 and 12-2, examples are shown on how to convert a set of 7-bit data into 16-
bit data and 32-bit data.
Obviously, one 16-bit data takes three 7-bit data to represent, and one 32-bit data takes
five 7-bit data.
Terminator
The end of a feedback message. UIM motion controller utilizes "FF" or "FE" as the
terminator. If terminator is "FF", it means there is no follow-up message; If terminator is
"FE", it means there has follow-up messages.
Note: there are two types of feedback that has NO message ID: ACK message and Motor
Status feedback (controller's response to FBK instruction). Other messages could have
NO data, such as some real-time change notification messages.
Figure12-1: Conversion from three 7bits message data to a 16bits data
Data received (Hex): [XX] [XX] ... [1
7
6
1
st
Byte
0
0
0
2
Byte
nd
3
rd
Byte
16bit Binary Data
UI Robot Technology Co. Ltd.
st
Byte] [2
nd
Byte] [3
Receive sequence: earlier
5
4
3
2
1
0
D15 D14
0
0
0
7
6
0
D13 D12 D11 D10 D9
15
14
13
D15 D14 D13 D12 D11 D10 D9
M4220170607EN
rd
Byte] ... [XX] [XX] [ FF ]
later
5
4
3
2
1
0
D7
D8
7
0
12
11
10
9
8
7
D8
D7
Closed-loop
6
5
4
3
2
1
D6
D5
D4
D3
D2
D1
6
5
4
3
2
1
D6
D5
D4
D3
D2
D1
Page 59
)
0
D0
0
D0

Advertisement

Table of Contents
loading

Table of Contents