Download User's Manual - Blackbox-av
Transcript
ACS Basic User s Manual INPUT var Get value for variable from the serial port. INPUT "prompt", var Get value of variable from the serial port with prompt. Prompt may be a constant string or you can use a string variable in the prompt by concatenating it to such a string: INPUT ""+A$,B$ INPUT #N, var Get value for variable from file #N (0-9). Note that when an end of file occurs, the variable will have its last value. Test the @FEOF(#N) specialvar to detect this condition. [LET ]var[$]=expr[$] (default statement) Program or Direct mode. Sets variable = expression (This is the default statement, so the LET keyword is not required). An attempt to assign a string value to a numeric variable or a numeric value to a string variable will generate a Type error. Some examples: LET a0 = 240 100 Z9$ = Test @TIMER(0) = 240 LIF test THEN statement[:statement] Program mode only. Long IF (all statements to end of line). The expression test is evaluated, and if non-zero, the statements to the end of the program line are executed. LIST [start, [end]] Direct mode only. List program lines to the serial port. May also specify a starting and ending line number to limit the range of lines that are displayed. LIST #N [start, [end]] Direct mode only. List program lines to open file #N (0-9). May also specify a starting and ending line number to limit the range of lines that are displayed. 16