B&B Electronics RS-485 manual Appendix C Decimal to HEX to Ascii Table

Page 38

Appendix C: Decimal to HEX to ASCII Table

Table C-1: Decimal to HEX to ASCII Table

DECIMAL to HEX to ASCII CONVERSION TABLE

DEC

HEX

ASCII

KEY

DEC

HEX

ASCII

DEC

HEX

ASCII

DEC

HEX

ASCII

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

NUL

ctrl @

32

20

SP

64

40

@

96

60

`

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1

SOH

ctrl A

33

21

!

65

41

A

97

61

a

 

 

 

 

 

 

 

 

 

 

 

 

 

2

2

STX

ctrl B

34

22

66

42

B

98

62

b

 

 

 

 

 

 

 

 

 

 

 

 

 

3

3

ETX

ctrl C

35

23

#

67

43

C

99

63

c

 

 

 

 

 

 

 

 

 

 

 

 

 

4

4

EOT

ctrl D

36

24

$

68

44

D

100

64

d

 

 

 

 

 

 

 

 

 

 

 

 

 

5

5

ENQ

ctrl E

37

25

%

69

45

E

101

65

e

 

 

 

 

 

 

 

 

 

 

 

 

 

6

6

ACK

ctrl F

38

26

&

70

46

F

102

66

f

 

 

 

 

 

 

 

 

 

 

 

 

 

7

7

BEL

ctrl G

39

27

'

71

47

G

103

67

g

 

 

 

 

 

 

 

 

 

 

 

 

 

8

8

BS

ctrl H

40

28

(

72

48

H

104

68

h

 

 

 

 

 

 

 

 

 

 

 

 

 

9

9

HT

ctrl I

41

29

)

73

49

I

105

69

i

 

 

 

 

 

 

 

 

 

 

 

 

 

10

A

LF

ctrl J

42

2A

*

74

4A

J

106

6A

j

 

 

 

 

 

 

 

 

 

 

 

 

 

11

B

VT

ctrl K

43

2B

+

75

4B

K

107

6B

k

 

 

 

 

 

 

 

 

 

 

 

 

 

12

C

FF

ctrl L

44

2C

,

76

4C

L

108

6C

l

 

 

 

 

 

 

 

 

 

 

 

 

 

13

D

CR

ctrl M

45

2D

-

77

4D

M

109

6D

m

 

 

 

 

 

 

 

 

 

 

 

 

 

14

E

SO

ctrl N

46

2E

.

78

4E

N

110

6E

n

 

 

 

 

 

 

 

 

 

 

 

 

 

15

F

SI

ctrl O

47

2F

/

79

4F

O

111

6F

o

 

 

 

 

 

 

 

 

 

 

 

 

 

16

10

DLE

ctrl P

48

30

0

80

50

P

112

70

p

 

 

 

 

 

 

 

 

 

 

 

 

 

17

11

DC1

ctrl Q

49

31

1

81

51

Q

113

71

q

 

 

 

 

 

 

 

 

 

 

 

 

 

18

12

DC2

ctrl R

50

32

2

82

52

R

114

72

r

 

 

 

 

 

 

 

 

 

 

 

 

 

19

13

DC3

ctrl S

51

33

3

83

53

S

115

73

s

 

 

 

 

 

 

 

 

 

 

 

 

 

20

14

DC4

ctrl T

52

34

4

84

54

T

116

74

t

 

 

 

 

 

 

 

 

 

 

 

 

 

21

15

NAK

ctrl U

53

35

5

85

55

U

117

75

u

 

 

 

 

 

 

 

 

 

 

 

 

 

22

16

SYN

ctrl V

54

36

6

86

56

V

118

76

v

 

 

 

 

 

 

 

 

 

 

 

 

 

23

17

ETB

ctrl W

55

37

7

87

57

W

119

77

w

 

 

 

 

 

 

 

 

 

 

 

 

 

24

18

CAN

ctrl X

56

38

8

88

58

X

120

78

x

 

 

 

 

 

 

 

 

 

 

 

 

 

25

19

EM

ctrl Y

57

39

9

89

59

Y

121

79

y

 

 

 

 

 

 

 

 

 

 

 

 

 

26

1A

SUB

ctrl Z

58

3A

:

90

5A

Z

122

7A

z

 

 

 

 

 

 

 

 

 

 

 

 

 

27

1B

ESC

ctrl [

59

3B

;

91

5B

[

123

7B

{

 

 

 

 

 

 

 

 

 

 

 

 

 

28

1C

FS

ctrl \

60

3C

<

92

5C

\

124

7C

 

 

 

 

 

 

 

 

 

 

 

 

 

29

1D

GS

ctrl ]

61

3D

=

93

5D

]

125

7D

}

 

 

 

 

 

 

 

 

 

 

 

 

 

30

1E

RS

ctrl ^

62

3E

>

94

5E

^

126

7E

~

 

 

 

 

 

 

 

 

 

 

 

 

 

31

1F

US

ctrl _

63

3F

?

95

5F

_

127

7F

DEL

 

 

 

 

 

 

 

 

 

 

 

 

 

485SDA103798 Manual

Appendix C

C-1

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 434-7094

Image 38 Contents
Internet Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois Table of Contents Software Tables485SDA103798 Manual Table of Contents Iii 485SDA10 Features 485SDA10 UnitSoftware Installation Packing ListWindows UninstallGetting Started Windows 9x and Windows NTA/D with Variable Resistor 485SDA10 Specifications Inputs #0-10 Ref Input +Typical Connections Ref InputAnalog Ground Digital Inputs #0-2 Digital I/O Connections485SDA10 I/O Port Pinout Digital Outputs #0-2Digital Ground Typical Digital I/O ConnectionsSerial Port Connections RS-485 Terminal Block ConnectionsPower Supply Connections Typical RS-485 2-wire ConnectionCommands 485SDA10 CommandsEquivalent Values Reading A/D Channels CommandSyntax Read A/D Response AddrRA#Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSB States Reading Digital I/O CommandAddrRD Read Digital I/O Response for OutputsAddrSOstates Set Digital Output CommandSet Module Address Command Set Digital Output Data Byte ValuesRead Module Configuration Command Set Power-up States CommandSet Turn-around Delay Command Addressstatesdelay Reference Inputs Sampling RateInput Range Data Range Converting DataPage Print #1, Command$ Read A/D CommandCommand$ = ! + CHR$addr + RA + CHR$channel MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Reply$ = INPUT$ 1, #1 Read Digital I/O CommandCommand$ = ! + CHR$addr + RD Set Digital Output States Digital I/O Mask ValuesSet Module Address Command$ = !0SO + CHR$statesCommand$ = ! + CHR$addr + SO + CHR$newaddr Addr =States = states and NOTmask Addr = 5 states =Set Turn-around Delay Command$ = ! + CHR$addr + SC + CHR$delayRead Module Configuration Comp = not x and &HFF #addrRA00FF00FF01FE Table A-1 Extended Commands Appendix B Analog Input Impedance Simplified Analog Input Analysis 1 2 LSB = R s + 1k Ω × 60pF × ln2048485SDA103798 Manual Appendix B Appendix C Decimal to HEX to Ascii Table Table C-1 Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 39 pages 36.61 Kb Manual 46 pages 1.37 Kb