immediately gets the data)
The maximum G (get) size is 127 (7F hex). This is limited by BASIC string
length maximum of 255 characters.
10
REM PROLOGGER - data transfer example
20
INPUT “Enter data logger command-”,A$
‘Get Command from
operator
30
IF A$="" THEN END
‘Finish on c/r
40
OPEN “COM1:9600,N,8,1,CS0,DS0,CD0” FOR RANDOM AS #1
‘Open RS-232 to logger
50
ON ERROR GOTO 140
‘Trap I/O errors
60
INPUT #1,L$:IF INSTR(L$"*")=0 THEN 60
‘Wait for logger prompt
70
PRINT #1,A$;
‘Send command to logger
80
INPUT #1,L$
‘Get response from logger
90
PRINT #1,"K";
‘Send KILL to save battery
100
ON ERROR GOTO 0
‘Reset error trapping
110
CLOSE #1
‘Close RS-232 file (channel)
120
PRINT “Data logger Response =”;L$
‘Print result on terminal
130
GOTO 20
‘Go back to beginning
140
RESUME
‘Ignore I/O error
PROLOGGER Hardware
COMPUTER COMMUNICATION 39
Summary of Contents for Starlog Prologger 7001
Page 6: ......
Page 60: ......
Page 64: ......
Page 67: ...02 PROM Verify Fail 03 Mirror Fail 04 Bad checksum in RAM firmware PROLOGGER Hardware 3...
Page 68: ......