
272 Chapter 8
O:\Manuals\E6380A_Progguid\Book\Ibasic.fm
IBASIC Controller
PROGram Subsystem
Example 8-13 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
Example 8-14 Syntax (length of program known)
PROGram[:SELected]:DEFine <#><of digits in count field>
<count field: 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 8-15 Example
#16<data byte><data byte><data byte><data byte><data byte><d
ata byte>
Comentários a estes Manuais