
317
Chapter 6, IBASIC Controller
PROGram Subsystem
Example BASIC program to download an IBASIC program to Test Set
10 OUTPUT 714;"PROG:DEL:ALL"!Delete current program
20 OUTPUT 714;"PROG:DEF #0"!Create program, send header
30 OUTPUT 714;"10 FOR J = 1 TO 10"!1st prog line
40 OUTPUT 714;"20 DISP J"!2nd prog line
50 OUTPUT 714;"30 BEEP"!3rd prog line
60 OUTPUT 714;"40 NEXT J"!4th prog line
70 OUTPUT 714;"50 END"END!Send END message at end of last line
80 END
Syntax (length of program known)
PROGram[:SELected]:DEFine <#><number of digits in count field>
<count field: number of data bytes in program><program data bytes>
The following notation is used in the command description:
The data starts with a header which begins with a “#”, followed by a single non-zero
digit in the range 1-9 which specifies the number of digits in the following count field,
followed by a series of digits in the range of 0-9 which gives the number of data bytes
being sent, followed by the number of data bytes specified by the count field.
Example
#16<data byte><data byte><data byte><data byte><data byte><data byte>
Example BASIC program to download an IBASIC program to Test Set
10 OUTPUT 714;"PROG:DEL:ALL"!Delete current program
20 OUTPUT 714;"PROG:DEF #257" !Create program, send header
30 OUTPUT 714;"10 FOR J = 1 TO 10"!18 char CR + LF
40 OUTPUT 714;"20 DISP J"!9 char CR + LF
50 OUTPUT 714;"30 BEEP"!7 char CR + LF
60 OUTPUT 714;"40 NEXT J"!9 char CR + LF
70 OUTPUT 714;"50 END"!6 characters
80 END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание E8285A
Страница 18: ...Contents 17 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 100: ...99 4 Status Reporting Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 268: ...267 6 IBASIC Controller Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 346: ...345 A Error Messages Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...