50 likes | 224 Views
Use of the ACRO-400e. Communications environment. PC used as a “dumb” terminal to ACRO-400 Bi-directional communications interface 9600 baud, 1 stop, 1 start, no parity, no handshaking. ACRO-400e. Acro 400e functional configuration. ACRO 400e Basic intrepreter.
E N D
Communications environment • PC used as a “dumb” terminal to ACRO-400 • Bi-directional communications interface • 9600 baud, 1 stop, 1 start, no parity, no handshaking
ACRO-400e • Acro 400e functional configuration
ACRO 400e Basic intrepreter • Line numbered BASIC Interpreter • Enter line number and statement • Delete line numbers by entering blank line • No effective editing • Includes special analog and digital I/O commands • Resolve = [8-17] sets A/D resolution • Range(ch) = [0.1 ,1, 10] sets the volt range of A/D channel • x = VIN(ch) reads A/D channel into the variable x • Uses BASIC’s simple command syntax • NEW – clears the program space • RUN – executes the program • LIST – displays the program • Uses BASIC’s simple program structures and statements • FOR J=1 TO 100 / NEXT J – loop 100 times incrementing J • Print x – prints the variable x • GOTO line no. – allows jump in program
Example Acro 400e program • Program to read A/D channel 1 and print the result repeatedly 10 RANGE(1) = 1 20 RESOLVE = 17 30 X=VIN(1) 40 PRINT X 50 GOTO 30 • Use ctl-C to break the program execution