Page 2 - TABLE OF CONTENTS
i TABLE OF CONTENTS Page CONSTANTS AND VARIABLES........................................................................... 1 LISTS OF COMMANDS, STATEMENTS, AND FUNCTIONS ............................... 3 ABS ..............................................................................................
Page 4 - CONSTANTS AND VARIABLES; CONSTANTS; VARIABLES
- 1 - CONSTANTS AND VARIABLES CONSTANTS Character constants: A string which is 255 digits or less including alphanumeric, Kana, symbol, and Kanji, enclosed indouble quotation marks (”). If a double quotation mark (”) is used in the character string, the CHR$function should be used. Numeric constants...
Page 5 - OPERATORS
- 2 - OPERATORS Arithmetic operators: Operator Operation ^ Exponential operation - Sign *, / Multiplication, Real division ¥ Integer division (The quotient is output.) MOD Integer division (The remainder is output.) +, - Addition, Subtraction The operations enclosed in parentheses are processed firs...
Page 6 - LISTS OF COMMANDS, STATEMENTS, AND FUNCTIONS
- 3 - LISTS OF COMMANDS, STATEMENTS, AND FUNCTIONS Declarations and definitions Statement CLEAR Format CLEAR Function Initializes a variable. DIM Format DIM <variable name> ( <subscript> [, <subscript> ] ···)[, <variable name> ( <subscript> [, <subscript> ] ···) ]...
Page 12 - ABS
- 9 - ABS Function Provides the absolute value. Format ABS ( <numeric expression> ) Explanation The absolute value for <numeric expression> (0 or a positive value) is provided as afunction value.
Page 13 - ASC
- 10 - ASC Function Provides the character code (ASCII) for the first character of the character string. Format ASC ( <character string> ) Explanation The character code for the first character (left side) of <character string> is provided.If <character string> is a null string, an...
Page 14 - BEEP
- 11 - BEEP Function Sounds the internal buzzer. Format BEEP Explanation The internal buzzer is sounded for 100 ms.
Page 15 - CHAIN
- 12 - CHAIN Function Loads another program, and executes it. Format CHAIN <file designation> [, ALL] Term <file designation>: The program file to be executed should be specified.(The file name should be included.) Explanation The program designated in <file designation> is execute...
Page 17 - CINT
- 14 - CINT Function Provides the integer value to which a real value is converted. Format CINT ( <numeric expression> ) Explanation The value for <numeric expression> is rounded off to the nearest whole number,making it into an integer.
Page 18 - CLEAR
- 15 - CLEAR Function Initializes a variable. Format CLEAR Explanation The memory used for storing data is freed without deleting any programs in thememory. After the CLEAR statement is executed, all numeric variables andcharacter variables become 0 and null strings (“”), respectively. The array dec...
Page 19 - CLOSE
- 16 - CLOSE Function Close a file. Format CLOSE [ [#] <file number> [, [#] <file number> ] ···] Term <file number>: The number assigned to the file or the device by the OPENstatement Explanation The file corresponding to <file number> is closed. One or more <file number&g...
Page 20 - CLS
Page 21 - COMMON
- 18 - COMMON Function Declares the variable is to be passed from the original program to a program calledby the CHAIN statement. Format COMMON <variable name> [, <variable name> ] ··· Term <variable name>: The variable name to be passed should be specified. Explanation The COMMON ...
Page 23 - CSNG
- 20 - CSNG Function Provides a value which is converted to a single-precision real value. Format CSNG ( <numeric expression> ) Explanation The value for <numeric expression> is converted to a 7-digit single-precision realvalue.
Page 25 - DATA
- 22 - DATA Function Sets a numeric value or a character constant read by the READ statement. Format DATA <constant> [, <constant> ] ··· Term <constant>: A numeric constant or character constant Explanation The DATA statement is a non-executing statement, and should be placed befor...
Page 26 - DIM
- 23 - DIM Function Specifies the max. number of array elements, and allocates the memory area in thememory. Format DIM <variable name> ( <subscript> ) ] ···) [, <variable name> ( <subscript> [,<subscript> ] ···) ] ··· Term <variable name>: Array variable name (It...
Page 27 - END
- 24 - END Function Terminates the execution of the program, closes all opened files, and returns to thecommand level state. Format END Explanation The END statement can be placed in any position in which the program is to beterminated. One or more END statements can also exist in the program. The E...
Page 28 - EOF
- 25 - EOF Function Checks the end of the sequential file, or whether or not the communication bufferbecomes empty. Format EOF ( <file number> ) Term <file number>: The number assigned to the file by the OPEN statement Explanation The EOF function returns -1 (true) when the specified fil...
Page 29 - ERASE
- 26 - ERASE Function Erases the specified array from the program. Format ERASE <array name> [, <array name> ] ··· Term <array name>: Array name to be erased Explanation When there is not enough memory area while executing the program, arrays whichbecome unnecessary should be erase...
Page 31 - FIELD
- 28 - FIELD Function Allocates the variable area to the random file buffer. (Record definition) Format FIELD [#] <file number>, <field width> AS <character variable> [, <field width> AS<character variable> ] ··· Term <file number>: The number assigned to the file...
Page 34 - GET
- 31 - GET Function Inputs the data in a file into the buffer. Format GET [#] <file number> [, <numeric value> ] Term <file number>: The number assigned to the file by the OPEN statement <numeric value>: The record number between 1 and 65535, or the number ofbytes of the data...
Page 35 - GOTO
- 32 - GOTO Function Moves the execution to the specified line without any conditions. Format GOTO <line number> Term <line number>: The line number to which the execution is moved Explanation The GOTO statement moves the execution to the specified line. When the specifiedline is a non-e...
Page 39 - INPUT
- 36 - INPUT Function Reads a numeric value or a character from the keyboard, and assigns it to a variable. Format INPUT [;] [” <prompt statement> ” ; ] <variable> [, <variable> ] ··· Term <prompt statement>: A character string which is output on the screen when theinput is p...
Page 42 - INSTR
- 39 - INSTR Function Searches for the specified characters from the character string, and provides the firstcharacter position of the characters. Format INSTR ( [ <numeric expression> , ] <character string 1>, <character string 2> ) Term <numeric expression>: Indicates the p...
Page 43 - INT
- 40 - INT Function Provides the max. integer value not exceeding the specified <numeric expression>. Format INT ( <numeric expression> ) Explanation The max. integer value not exceeding <numeric expression> is provided.
Page 45 - LEN
- 42 - LEN Function Provides the length of the character string (the number of bytes).Kanji is counted as 2 bytes. Format LEN ( <character string> ) Explanation The length should be between 0 and 255 bytes. A space and a code which is notdisplayed as the control code are also counted and inclu...
Page 47 - LOC
- 44 - LOC Function Provides the current theoretical location in the file. Format LOC ( <file number> ) Term <file number>: The number assigned to the file by the OPEN statement Explanation The file specified in <file number> is: 1. Random file The LOC function returns the record n...
Page 48 - LOCATE
- 45 - LOCATE Function Specifies the position of the cursor on the screen and determines the display of thecursor. Format LOCATE [ <line> ] [, [ <column> ] [, < <switch> ] ] ] Term <line>: The vertical position on the screen (1 to 2) <column>: The horizontal position...
Page 49 - LOF
- 46 - LOF Function Provides the size of the file. Format LOF ( <file number> ) Term <file number>: The number assigned to the file by the OPEN statement Explanation The file specified in <file number> is: 1. Disk file The file size is provided in units of bytes. 2. RS-232C communi...
Page 53 - ON COM
- 50 - ON COM Function Declares an interrupt which occurs when the data is input into the communicationbuffer, and declares the start line number for the subroutine to be executed. Format ON COM ( <line number> ) GOSUB <line number> Term <line number>: The line number to which an i...
Page 54 - ON ERROR
- 51 - ON ERROR Function Declares that the interrupt for the error process is enabled, and declares the linenumber of the subroutine to be executed when an error occurs. Format ON ERROR GOTO <line number> Term <line number>: The first line number of the subroutine for the error process E...
Page 56 - ON TIMER
- 53 - ON TIMER Function Declares an interrupt which occurs at specified intervals, and the line number fromwhich the execution of the subroutine is started by the interrupt. Format ON TIMER ( <n> ) GOSUB <line number> Term <n>: The time interval at which an interrupt occurs should...
Page 57 - OPEN
- 54 - OPEN Function Opens a file. Format OPEN <file designation> [FOR <file mode> ] AS [#] <file number> [LEN= <recordlength> ] Term <file designation>: The file name to be opened should be specified. <file mode>: The type of file should be specified. OUTPUT Sequ...
Page 58 - OPEN COM
- 55 - OPEN COM Function Opens the RS-232C communication file. Format OPEN ”COM <line number> : [ <communication baud rate> ] [, [ <parity> ][, [ <data length> ] [, [ <stop bit> ] ] ] ” AS [#] <file number> Term <line number>: The RS-232 C interface number(C...
Page 59 - PRINT
- 56 - PRINT Function Displays the character string and contents of the variable on the screen. Format PRINT [USING <format control character string> ] [ <expression list> ] [;] Term <format control character string>: A character string to specify the format <expression list>...
Page 62 - PUT
- 59 - PUT Function Outputs the data to the file. Format PUT [#] <file number> [, <numeric value> ] Term <file number>: The number assigned to the file by the OPEN statement. <numeric value>: A record number between 1 and 4294967295, or the number ofbytes of the data read fro...
Page 63 - READ
- 60 - READ Function Reads a value defined by a DATA statement and assigns it to a variable. Format READ <constant> [, <constant> ] ··· Term <variable>: The variable to which the value for the DATA statement is assigned (Numeric or character variables) Explanation The READ statemen...
Page 65 - RESUME
- 62 - RESUME Function Terminates an error process, and resumes execution of the program. Format RESUME [0] NEXT <line number> Term <line number>: The line number from which the execution of the program isresumed should be specified. Explanation The subroutine defined by the ON ERROR sta...
Page 66 - RETURN
- 63 - RETURN Function Declares the end of a subroutine, and returns the execution to the location where thesubroutine was called up. Format RETURN Explanation The RETURN statement should be placed at the end of the subroutine called by theGOSUB statement. When the RETURN statement is executed, the ...
Page 68 - SGN
- 65 - SGN Function Provides a sign for <numeric expression> Format SGN ( <numeric expression> ) Explanation If <numeric expression> is positive, 0, and negative, 1, 0, -1 is provided, respectively.
Page 71 - TIMER
- 68 - TIMER Function Returns the elapse time after the system is reset in a single-precision floating pointformat. (In units of 100 ms) Format X = TIMER Explanation A fraction is rounded off to the nearest value.
Page 73 - VAL
- 70 - VAL Function Converts a character string to a numeric value. Format VAL ( <character string> ) Explanation The opposite of the STR$ function, the VAL function converts a character stringindicating the numeric value for a 1-byte or 2-byte character (ex. “456”) to a numericvalue (ex. 456)...
Page 76 - KEY ENTRY CODE LIST
- 73 - KEY ENTRY CODE LIST Key Name Keyboard Entry Code (Pressed only the key) Keyboard Entry Code (Pressed together with the SHIFT key) 0 30H B0H 1 31H B1H 2 32H B2H 3 33H B3H 4 34H B4H 5 35H B5H 6 36H B6H 7 37H B7H 8 38H B8H 9 39H B9H . 2EH AEH ENTER/PRINT 0DH 8DH → 60H E0H ← 61H E1H ↑ 62H E2H ↓ 6...
Page 77 - RESTORE
- 74 - RESTORE Function Returns the starting position where the DATA statement is read by the READstatement to the beginning of the program. Format RESTORE Explanation When the READ statement is placed after the RESTORE statement, the READstatement starts finding the DATA statement from the beginnin...
Page 78 - SENDCMD
- 75 - SENDCMD Function Sends a command packet of character strings to the printer, and makes a response toan ACK or a NAK from the printer. Format SENDCMD <expression list> Term <expression list>: List of character expressions or character strings (A character string should be enclosed ...
Page 79 - ERROR CODE TABLE
- 76 - ERROR CODE TABLE Code Meaning 1 There is no FOR statement for the NEXT statement, or the number of NEXT statementsdoes not match with (is more than) the number of FOR statements. 2 The program is not in accordance with the grammar. Statements which are not definedare included in the program. ...