RoboteQ AX500 manual Decimal to Hexadecimal Conversion Table, Dec Hex

Models: AX500

1 154
Download 154 pages 41.77 Kb
Page 127
Image 127

Decimal to Hexadecimal Conversion Table

logging purposes. This cable has a 15-pin male connector and 3 15-pin connectors. The

Front View

Rear View

4

1

 

 

Cut

 

 

 

 

Wire

3

1

 

 

 

2

1

 

 

 

1

 

 

1

Female to PC with RxData Only

Female to PC with Rx and Tx Data

Female to Application

Male to controller

FIGURE 72. ASCII string sent by the controller while in R/C or Analog mode

male connector plugs into the controller. The application cable that would normally plug into the controller may now be plugged into one of the adapter’s female connector 2. The PC can be plugged into connector 3 or 4. Connector 3 has the Rx and Tx data lines needed for full duplex serial communication, thus allowing the PC to send commands to the con- troller. Connector 4 has the Rx line cut so that only a data flows only from the controller to the PC. This configuration is for capturing the data logging strings sent in the RC or Analog modes.

Decimal to Hexadecimal Conversion Table

The AX500 uses hexadecimal notation for accepting and responding to numerical com- mands. Hexadecimal is related to the binary system that is used at the very heart of micro- computers. Functions for converting from decimal to hexadecimal are readily available in high level languages such as C.

If the user intends to enter commands manually using the terminal emulation program, the conversion table in Table 23 can be used to do the translation. Note that the table only shows numbers for 0 to 127 decimal (00 to 7F hexadecimal). The AX500’s speed com- mands are within this range. Table 24 shows the conversion values for numbers between 128 and 255 (unsigned) and between -1 and -128 (signed)

TABLE 23. 0 to +127 signed or unsigned decimal to hexadecimal conversion table

Dec

Hex

Dec

Hex

Dec

Hex

Dec

Hex

 

 

 

 

 

 

 

 

0

00

32

20

64

40

96

60

 

 

 

 

 

 

 

 

1

01

33

21

65

41

97

61

 

 

 

 

 

 

 

 

2

02

34

22

66

42

98

62

 

 

 

 

 

 

 

 

3

03

35

23

67

43

99

63

 

 

 

 

 

 

 

 

4

04

36

24

68

44

100

64

 

 

 

 

 

 

 

 

AX500 Motor Controller User’s Manual

127

Page 127
Image 127
RoboteQ AX500 manual Decimal to Hexadecimal Conversion Table, Dec Hex