Campbell-scientific CR9000X Measurement and Control System Manual de usuario Pagina 399

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 442
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 398
Section 11. String Functions
CHR(c)
The CHR string function returns an ANSI character. 'c' ranges in values from
0..255.
The character returned by the CHR function can be stored in a string in the
program or sent to some other device by using such instructions as EmailSend
or SerialOut.
ANSI characters for decimal codes 0 through 128 are shown in Table 11.1.
See the editor for ANSI characters for decimal codes 129 through 255.
Table 11.1: ANSI Character Codes; Decimal 1 through 128
Dec Char Description Dec Char Dec Char Dec Glyph
0 ^@ Null character 32 ? 64 @ 96 `
1 ^A Start of Header 33 ! 65 A 97 a
2 ^B Start of Text 34 " 66 B 98 b
3 ^C End of Text 35 # 67 C 99 c
4 ^D End of Transmission 36 $ 68 D 100 d
5 ^E Enquiry 37 % 69 E 101 e
6 ^F Acknowledgment 38 & 70 F 102 f
7 ^G Bell 39 ' 71 G 103 g
8 ^H Backspace 40 ( 72 H 104 h
9 ^I Horizontal Tab 41 ) 73 I 105 i
10 ^J Line feed 42 * 74 J 106 j
11 ^K Vertical Tab 43 + 75 K 107 k
12 ^L Form feed 44 , 76 L 108 l
13 ^M Carriage return 45 - 77 M 109 m
14 ^N Shift Out 46 . 78 N 110 n
15 ^O Shift In 47 / 79 O 111 o
16 ^P Data Link Escape 48 0 80 P 112 p
17 ^Q Device Control 1 49 1 81 Q 113 q
18 ^R Device Control 2 50 2 82 R 114 r
19 ^S Device Control 3 51 3 83 S 115 s
20 ^T Device Control 4 52 4 84 T 116 t
21 ^U Negative Acknowledge 53 5 85 U 117 u
22 ^V Synchronous Idle 54 6 86 V 118 v
23 ^W End of Trans. Block 55 7 87 W 119 w
24 ^X Cancel 56 8 88 X 120 x
25 ^Y End of Medium 57 9 89 Y 121 y
26 ^Z Substitute 58 : 90 Z 122 z
27 ^[ Escape 59 ; 91 [ 123 {
28 ^\ File Separator 60 < 92 \ 124 |
29 ^] Group Separator 61 = 93 ] 125 }
30 ^^ Record Separator 62 > 94 ^ 126 ~
31 ^_ Unit Separator 63 ? 95 _ 127 Delete
Example: Add a carriage return, line feed to a string at the end.
X = “Line”+Chr(13)+Chr(10)
11-3
Vista de pagina 398
1 2 ... 394 395 396 397 398 399 400 401 402 403 404 ... 441 442

Comentarios a estos manuales

Sin comentarios