Set motor limit (any input mode) – Pololu Simple User Manual

Page 67

Advertising
background image

Response Byte 1 Response Byte 2

0x1E (30)

0x01 (1)

This response tells us that the temperature is:

30 + 256 * 1 = 286

in units of 0.1 °C, which means the board temperature is 28.6 °C.

Set Motor Limit (any input mode)

Command Format:

Command

Byte

Data Byte 1

Data Byte

2

Data Byte

3

Data Byte

4

Data Byte

5

Compact

Protocol

0xA2 (162)

limit ID

limit byte 1

limit byte 2

-

-

Pololu Protocol

0xAA (170)

device

number

0x22 (34)

limit ID

limit byte 1

limit byte 2

Response Format:

Response Byte 1

response code

Description: This command lets you change the temporary motor limit variables documented in

Section 6.4

. The

ID of the limit to set is specified by the first compact protocol data byte, and the value of the limit is specified by
the next two data bytes, the first of which (limit byte 1) contains the low seven bits of the value and the second
(limit byte 2) contains the high seven bits. Limit IDs from 0 to 3 are affect both forward and reverse limits equally
(they are “symmetric”). Limit IDs from 4 to 7 affect only forward limits and limit IDs from 8 to 11 affect only
reverse limits. The following table provides the limit IDs for all of the temporary motor limit variables along with
the allowed limit values:

Pololu Simple Motor Controller User's Guide

© 2001–2014 Pololu Corporation

6. Using the Serial Interface

Page 67 of 101

Advertising