Many
Manuals
search
Categorie
Marchi
Home
Remote Processing Coorporation
no
RPC-320
Specifiche
Remote Processing Coorporation RPC-320 Specifiche Pagina 31
Scaricare
Condividere
Condivisione
Aggiungi ai miei manuali
Stampa
Pagina
/
186
Indice
SEGNALIBRI
Valutato
.
/ 5. Basato su
recensioni clienti
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
Commands - 1
ABS
Numeric Function
Syntax:
n = ABS(
m
)
Purpose:
To return the absolute value of the expression
m
.
Remarks:
The absolute value of a number is always positive or zero.
Related:
none
Example:
PRINT ABS(7)
7
PRINT ABS(–7)
7
Error:
none
1
2
...
26
27
28
29
30
31
32
33
34
35
36
...
185
186
COPYRIGHT
1
TRADEMARKS
1
HOW TO USE THIS MANUAL
2
PRODUCT SUPPORT
3
ABOUT CAMBASIC
4
Getting Started
7
Line Format
7
Line Renumbering
7
Line Labels
8
Debugging
8
Bit Manipulation
8
Communications Ports
8
Real time Multitasking
9
Reserved Words
9
Character Set
9
10 ON KEYPAD$ GOSUB 50
11
10 . .
12
10 DIM G$(100)
14
10 DIM TEMP(20,20)
14
Expression Evaluation
17
CAMBASIC EDITOR
19
LINE EDITING COMMANDS
20
Other Tips
24
10 IF A=1.23 THEN 100
25
10 IF A=>1.23 THEN 100
25
PRINT ABS(7)
31
PRINT ABS(–7)
31
10 F$ = "Alert"
34
20 PRINT ASC(F$)
34
A = BIN(B)
37
PRINT INP(&18)
37
PRINT BIN(INP(&18))
37
PRINT BIN$(199)
38
11000111
38
PRINT CHR$(65)
43
PRINT CHR$(36,10)
43
$$$$$$$$$$
43
10 CLEAR 500
44
10 CLEAR
44
CLEAR COM$
45
CLEAR COUNT
46
CLEAR TICK
47
CLEAR PULSE
48
10 FOR X = 0 TO 7
54
20 A(X) = COUNT(X)
54
10 A$ = "01-15-91"
56
20 DATE$ = A$
56
20 PRINT DATE$(0)
57
30 PRINT DATE$(1)
57
02-11-91
57
DEC & DECF
58
DEL 10 Deletes line 10
59
10 DELAY .5 delays 1/2 second
60
10 DIM A(25), A$(30)
61
20 DIM B(10,10,10)
61
Commands - 34
64
DO/UNTIL
65
DPEEK and DPOKE
66
10 GOSUB 50
68
50 PRINT "END";
68
60 RETURN
68
EXIT and EXIT CLEAR
72
10 PRINT EXP(1),EXP(2)
73
2.71828 7.38906
73
Commands - 45
75
FOR / NEXT / STEP
76
FPEEK and FPOKE
77
PRINT FRE(0) ; FRE(A$)
78
35210 100
78
CLEAR 1000
78
34310 1000
78
PRINT HEX$(127)
81
PRINT HEX$(1280)
81
IF / THEN / ELSE
82
INC and INCF
83
10 A$ = INKEY$(1)
84
50 GOTO 10
84
INP and OUT
85
Input pH, volume? _
86
INPUT KEYPAD$
87
10 A$="BOOHOO"
89
20 B$="HOO"
89
30 PRINT INSTR(1,A$,B$)
89
PRINT INT(45.67)
90
PRINT INT(–15.02)
90
A=INT(B+0.5)
90
10 A$ = "Hopeless"
92
20 B$ = LEFT$(A$,4)
92
30 PRINT B$
92
20 PRINT LEN(A$)
93
10 OUT 0,1
94
20 PRINT LINE(119)
94
10 LINE 113,ON
95
20 PRINT LINE(113)
95
LOCK and UNLOCK
98
PRINT LOG(45/7)
99
10 A$ = "ABCDEFG"
100
20 PRINT MID$(A$,5,2)
100
NEW and UNNEW
104
200 ON R GOTO 150,300,320,390
105
ON COUNT
108
ON ERR GOTO
109
ON KEYPAD$
112
20 PRINT OPTO(0)
114
10 OPTO 3,ON
115
20 PRINT OPTO(103)
115
PEEK and POKE
116
PEEK$ and POKE$
117
PRINT USING
120
10 A=PULSE(2)
123
PULSE 5,48,2,2.55,1
124
10 FOR X = 1 TO 9
125
20 READ A(X)
125
RENUM 300,50
127
RENUM 1000,1,20
127
RESUME COUNT
130
10 ON ITR 0 GOSUB 40
131
30 GOTO 20
131
50 RETURN ITR 0
131
20 PRINT RIGHT$(A$,3)
132
10 PRINT 7/1
134
20 PRINT "HELLO"
134
PRINT SIN(1.5)
136
START BIT
137
START COUNT
138
START INP
139
STOP BIT
141
STOP COUNT
142
STOP INP
143
PRINT SYS(2)–SYS(1)
145
20 A = PEEK(N)
146
30 PRINT N,A,CHR$(A)
146
10 PRINT TAN(1.5)
148
10 CLEAR TICK 2
149
20 FOR X=0 TO 5000 : NEXT
149
30 PRINT TICK (2)
149
20 PRINT TIME$(0)
150
30 PRINT TIME$(1)
150
11:23:45
150
10 A$ = “01:45:12"
151
20 TIME$ = A$
151
TRON/TROFF
152
CONFIG BAUD
156
10 CONFIG BAUD 1,6,5,0
157
CONFIG BREAK
158
CONFIG CLOCK
159
CONFIG COM$
160
CONFIG COUNT
161
CONFIG DISPLAY
162
163
CONFIG Commands - 8
163
CONFIG PIO
164
PROGRAM DEBUGGING
165
90 INC H
166
100 RETURN
166
Event Multitasking
170
COM$ TASKING
171
COUNT MULTITASKING
171
INP TASKING
176
KEYPAD MULTITASKING
177
Applications Examples
178
250 RETURN
180
30 INPUT KEYPAD$ 1,A$
180
40 PRINT A$
180
MULTITASKING ON A CLOCK TICK
181
PULSE MULTITASKING
182
THE CAMBASIC MINI–MONITOR
185
Commenti su questo manuale
Nessun commento
Publish
Stampa documento
Stampa pagina 31
Commenti su questo manuale