Campbell Hausfeld SDM-SIO4 manual Appendix A. Ascii Table, Dec Char

Page 69

Appendix A. ASCII Table

American Standard Code for Information Interchange

Decimal Values and Characters

 

 

 

(X3.4-1968)

 

 

 

 

Dec.

Char.

Dec.

Char.

Dec.

Char.

Dec.

Char.

0

CONTROL @

32

SPACE

64

@

96

`

1

CONTROL A

33

!

65

A

97

a

2

CONTROL B

34

"

66

B

98

b

3

CONTROL C

35

#

67

C

99

c

4

CONTROL D

36

$

68

D

100

d

5

CONTROL E

37

%

69

E

101

e

6

CONTROL F

38

&

70

F

102

f

7

CONTROL G

39

'

71

G

103

g

8

CONTROL H

40

(

72

H

104

h

9

CONTROL I

41

)

73

I

105

i

10

CONTROL J

42

*

74

J

106

j

11

CONTROL K

43

+

75

K

107

k

12

CONTROL L

44

,

76

L

108

l

13

CONTROL M

45

-

77

M

109

m

14

CONTROL N

46

.

78

N

110

n

15

CONTROL O

47

/

79

O

111

o

16

CONTROL P

48

0

80

P

112

p

17

CONTROL Q

49

1

81

Q

113

q

18

CONTROL R

50

2

82

R

114

r

19

CONTROL S

51

3

83

S

115

s

20

CONTROL T

52

4

84

T

116

t

21

CONTROL U

53

5

85

U

117

u

22

CONTROL V

54

6

86

V

118

v

23

CONTROL W

55

7

87

W

119

w

24

CONTROL X

56

8

88

X

120

x

25

CONTROL Y

57

9

89

Y

121

y

26

CONTROL Z

58

:

90

Z

122

z

27

CONTROL [

59

;

91

[

123

{

28

CONTROL \

60

<

92

\

124

29

CONTROL ]

61

=

93

]

125

}

30

CONTROL ^

62

>

94

^

126

~

31

CONTROL _

63

?

95

_

127

DEL

A-1

Image 69
Contents Issued Page Guarantee Page Contents Appendix A. Ascii Table Data Error DetectionIntroduction What is the SDM-SIO4?Datalogger Command Control SDM-SIO4 Serial Port Pin Configuration SpecificationsSerial Ports Serial Port BuffersSDM Port Power RequirementsCase Environmental Operating RangeOther Key Features Page Setting the SDM Address Installation and Hardware Set-UpAddress Settings Selector Block Settings SDM AddressSelecting RS232 or 5V Logic for Each Port Connections to the SDM-SIO4Transient Protection and Grounding Power-on Tests the Status LED Status LED Error CodesNo. of Flashes Description of error/status Page Understanding How the SDM-SIO4 Handles Data IntroductionMethod of Entering Special / Control Characters Input Filters Filter TypesSimple Filters Filter Strings Ibn8Ficn8F Simple Output Formatter Output FormattingPredefined Filter Strings Filter No Filter String UsedOutput Format Strings CR10X Program Example Fmtst 123 z261 f62 iBattery z257 f61z273Get panel temperature Get battery voltageCommand Line Operation and Structure Entering CommandsProgramming the SDM-SIO4 Basic Commands Advanced Commands Hexdump start address number of bytes ErrorresBytewr address byte WD n Wderr n Wdaddr nTestio returns Testio test#Page Instruction 113 Parameters Programming the DataloggerParameter 7 Values per Rep Commands and Options Parameters 4, 5Parameter 8 Starting Input Location Parameters 9 and 10 Multiplier and OffsetUnderstanding Parameter Options and Returned Values Command 1 Poll of Available DataCommand 3 Flush all Receive Buffers Command 2 SignaturesCommand 4 Send Data to Datalogger Command 5 StatusCommand 7 Activate Command Line Command 6 Flush Transmit BufferCommand 8 Poll Tx Buffers for Data Command 9 Flush Converted Data BufferCommand 320 Send Byte Data to SDM-SIO4 Command 67 Get Return CodeCommand 321 Execute Command Line Command Program Example for P113 CommandExecute the command line string Command 1025 Transmit a Byte Command 1024 Send String to DeviceCommand 1026 Serial Port Status First Value ReturnedSecond Value Returned First Command Option Reset Error CountersThird Value Returned Fourth Value ReturnedCommand 2049 Set Communications Parameters Command 1027 ‘Manual’ Handshake ModeSecond Command Option Parameter First Command Option ParameterCommand 2054 Set Up Receive Filter String Number or Character Code SDM-SIO4 Configuration Examples Command 2305 Transmit BytesExample CR10X Program End of serial and filter setup Set flag one high so the above will only be done onceGet two floating point numbers into locations 1 Strst 101 Send DataJM Example CR10X Program Using Instruction P113 CommandWait long enough for sensor to send data Set up the filter and then send stringGet data from SDM-SIO4 and put into locations 1 Sensors Which Send Data Out Without PromptingTime stamp Instantaneous sample form the sensorFltst 200 tdataA5xff Example CR10X Program without Polling or InterruptsEnd of set up Example CR10X Program using the Polling MethodGet the two floating point values from the SDM-SIO4 Instantaneous values stored to final storageDelay required by filter set-up command Set up string filterDo filter set-up only if flag one is clear Set flag one high so the filter set-up is only done onceExample CR10X Program using Interrupts Get voltages into locations 3 and 4 if poll was trueInstantaneous value stored into final storage Do filter setup only if flag one is clear Delay required by filter setup commandSet control port 8 to i/p so it can be used as an interrupt Get voltages into locations 3 Interrupt routine for control portInstantaneous readings stored into final storage End of interrupt routineOutputting Datalogger Data Flushing the Input and Output Buffers Return Error CodesData Error Detection Error Detection with the SDM-SIO4Received Data SDM-SIO4 User Guide Example of Using Received Data Filters 2 CR10X Program ExampleFltst 100 TFrequency=xg2n10fCCG8 Minimum delay of 4ms is required by the above P113 End of filter setupTell the SDM-SIO4 to use filter string End of get data CRC32 Transmitted DataFmtst 100 g1i123456789G8 Example of Using Transmitted Data FiltersFmtst 100 g1 Fmtst 101 isome data Fmtst 102 f62 G8 Alternative CR10X ProgramMinimum delay of 1ms is required after this command Use formatter string 100 to set up the CRC16 on portMinimum delay of 3.8ms is required after this command Send the Ascii characters ‘Y’ and ‘Z’ to portCRC16-CCITT-IBM Data Error Detection Page Dec Char Appendix A. Ascii TablePage Baud rates Appendix B. Serial Port Data Transfer ModesStop Bits Data LengthSerial Handshake Modes Parity Bits