
2-50 Agilent B1500A/B1505A Programming Guide, Edition 11
Remote Mode Functions
Program Memory
To call programs
from a memory
program
A memory program can invoke another memory program by storing the DO or RU
command in the memory program. Up to eight levels of nesting are available. The
first level is always the DO or RU command sent by the external computer.
To execute
programs
Send the RU or DO command to execute the memory program.
• OUTPUT @B1500;"RU 1,5"
This example executes the programs numbered 1 through 5 sequentially. These
programs must be stored in the memory.
• OUTPUT @B1500;"DO 1,2,3,4,5"
This example executes programs 1, 2, 3, 4, and 5 in this order. These programs
must be stored in the memory. A maximum of eight numbers can be specified.
To use variables You can use variables in the memory programs. To enter the value to the variable,
send the VAR command. If the variable is referred by multiple programs or
commands, set or change the value carefully so that the program works fine without
errors. Format of the variable is %tn (t: integer I or real R, n: integer, 1 to 99).
In the following example, the first line stores a program (program 99) which uses
the %I50 variable. The second line enters 2 to %I50, and executes the program 99.
OUTPUT @B1500;"ST99;CN%I50;DV%I50,0,2;TI%I50;CL%I50;END"
OUTPUT @B1500;"VAR0,50,2;DO99"
To read programs To read the program numbers of the memory programs, send the LST? command
without a command parameter.
To read the contents of a memory program, send the LST? command with the
program number as shown below. Up to 3000 commands can be read by one
command execution.
OUTPUT @B1500;"LST? 100"
To delete
programs
To delete all memory programs, send the SCR command without a parameter.
To delete a memory program, send the SCR command with the program number as
shown below.
OUTPUT @B1500;"SCR 100"
NOTE Turning off the instrument also clears the program memory. The device clear and
*RST commands do not clear the program memory.
Komentáře k této Příručce