COPYRIGHTCopyright 1988-1994 – Octagon Systems and Remote Processing Corp. All rights reserved.Modifications by Remote Processing Cor
Concepts - 4Below is a list of CAMBASIC commands. Some CPU Cards do not use all of the commands. Refer to your hardwaremanual for ex
Commands - 70MID$String FunctionSYNTAX: n$ = MID$(m$,p[,q])PURPOSE: To return the requested part of a given string.REMARKS: The functi
Commands - 71MID$String StatementSYNTAX: MID$(a$,s [,n]) = b$PURPOSE: To replace a portion of one string with another.REMARKS: A commo
Commands - 72MODOperatorSYNTAX: n = a MOD bPURPOSE: To return the remainder of an integer division.REMARKS: a is divided by b and the
Commands - 73MONCommandSYNTAX: MON PURPOSE: To invoke the Mini–MonitorREMARKS: The Mini–Monitor is used primarily for debugging object
Commands - 74NEW and UNNEWCommandsSYNTAX: NEWUNNEWPURPOSE: NEW initializes CAMBASIC for a new program.UNNEW restores a program erased
Commands - 75ONStatementSYNTAX: ON expression GOSUB line [,line] ...ON expression GOTO line [,line] ...PURPOSE: In the ON...GOTO state
Commands - 76ON BITTasking StatementSYNTAX: ON BIT task number,address,bit GOSUB line/labelPURPOSE: To declare an I/O line to be monit
Commands - 77ON COM$Tasking StatementSYNTAX: ON COM$ n GOSUB line/labelON COM$ n GOSUBPURPOSE: To define a program branch when a task
Commands - 78ON COUNTTasking StatementSYNTAX: ON COUNT n GOSUB line/labelON COUNT n GOSUBPURPOSE: To execute a subroutine when a prese
Commands - 79ON ERR GOTOStatementSYNTAX: ON ERR GOTO line/labelPURPOSE: To enable error trapping and specify the first line of the err
Concepts - 5Software and Hardware InterruptsCAMBASIC supports multiple hardware and software interrupts. These interrupts causes the
Commands - 80ON INPTasking StatementSYNTAX: ON INP n, address, mask, compare GOSUB line/labelPURPOSE: To cause an interrupt when a pre
Commands - 81ON ITRTasking StatementSYNTAX: ON ITR n GOSUB line/labelON ITR n GOSUBPURPOSE: To enable or disable a program branch due
Commands - 82ON KEYPAD$Tasking StatementSYNTAX: ON KEYPAD$ GOSUB line/labelON KEYPAD$ GOSUBPURPOSE: To cause a program branch when any
Commands - 83ON TICKTasking StatementSYNTAX: ON TICK n,t GOSUB line/labelON TICK n,t GOSUBPURPOSE: To cause periodic program branching
Commands - 84OPTOProcess FunctionSYNTAX: a = OPTO (channel)PURPOSE: To return the status of an input on an on board opto isolator rack
Commands - 85OPTOProcess StatementSYNTAX: OPTO channel, valuePURPOSE: To turn output modules on and off on 24 position opto-isolator r
Commands - 86PEEK and POKEMemory Function and StatementSYNTAX: n = PEEK(address)n = PEEK(address,segment)POKE address, dataPOKE addres
Commands - 87PEEK$ and POKE$Memory Function and StatementSYNTAX: x$ = PEEK$(address)x$ = PEEK$(address, segment)POKE $ address, X$POKE
Commands - 88PRINTStatementPR [#n,] [expression] [; or ,] [expression]..PRINT [#n,] [expression] [; or ,] [expression]..PURPOSE: To ou
Commands - 89In the example below, the semicolon at the end of line 20 causes both PRINT statements to be printedon the same line.10 I
Concepts - 6SAVING AND LOADING PROGRAMSSaving and loading programs to and from nonvolatile memory is as easy as typing “SAVE” and “LOA
Commands - 90PRINT USINGStatementSYNTAX: PRINT USING[#n,]!"format string"; expressionPURPOSE: To print strings or numbers us
Commands - 91A = 1234.67PRINT USING "#.##ˆˆˆˆ";A0.12E+4In this case the first # specifies the leading zero to the left of th
Commands - 92PRINT$StatementSYNTAX: PRINT [#n,] $ character [,character]...PR [#n,] $ character [,character]...PURPOSE: Used to send a
Commands - 93PULSEProcess FunctionSYNTAX: n=PULSE(m)PURPOSE: To return the remaining time of a pulsed output.REMARKS: The resolution o
Commands - 94PULSETasking StatementSYNTAX: PULSE n,address,bit,time,polarityPURPOSE: To configure a digital output line as a timed or
Commands - 95READStatementSYNTAX: READ variable [,variable] . . .PURPOSE: To read values from a DATA statement and assign them to vari
Commands - 96REMARKStatementSYNTAX: 'any charactersPURPOSE: To allow explanatory remarks to be inserted in a program or designate
Commands - 97RENUMCommandSYNTAX: RENUM [newline] [,increment] [,oldline]PURPOSE: To renumber program lines.REMARKS: newline is the fir
Commands - 98RESTOREStatementSYNTAX: RESTORE [line]PURPOSE: To reset the READ pointer to the beginning of the DATA list.REMARKS: After
Commands - 99RESUMEStatementSYNTAX: RESUMERESUME NEXTRESUME linePURPOSE: To continue program execution after an error recovery procedu
Concepts - 7Variables may contain keywords, as long as the keyword is not first. Keywords may be imbedded in variable names. Forexam
Commands - 100RESUME COUNTTasking StatementSYNTAX: RESUME COUNT m [,m1] [,m2] . . . [,mn]PURPOSE: To reenable a software event counter
Commands - 101RETURNStatementSYNTAX: RETURN [line/label]RETURN ITR numberPURPOSE: To resume execution after a GOSUB, interrupt, multit
Commands - 102RIGHT$String FunctionSYNTAX: n$ = RIGHT$(m$,p)PURPOSE: To return the right–most p characters of m$ as a string.REMARKS:
Commands - 103RNDNumeric FunctionSYNTAX: n = RND(m)PURPOSE: To return a pseudo–random number between 0 and 1.REMARKS: The RND function
Commands - 104RUNCommandSYNTAX: RUN [line]PURPOSE: To begin the execution of a program.REMARKS: RUN resets the numeric variables to ze
Commands - 105SAVECommandsSYNTAX: SAVE SAVE segmentSAVE DATA,to Flash segment, to Flash address, from RAM segment, from RAM address, l
Commands - 106SINNumeric FunctionSYNTAX: n = SIN(m)PURPOSE: To calculate the trigonometric sine function.REMARKS: m is an angle in rad
Commands - 107START BITTasking StatementSYNTAX: START BIT task number [,task number]. . .PURPOSE: To enable a BIT task that has previo
Commands - 108START COUNTTasking StatementSYNTAX: START COUNT n [,n1] [,nm]PURPOSE: To activate a software counter task that was previ
Commands - 109START INPTasking StatementSYNTAX: START INP n [,n1] [,n2] PURPOSE: To enable one or more INP tasks declared by the ON IN
Concepts - 8Lower–case characters have a higher ASCII value than upper–case characters. If two strings are identical up to the pointt
Commands - 110STOPStatementSYNTAX: STOPPURPOSE: To terminate program execution and return to command level.REMARKS: STOP statements ma
Commands - 111STOP BITTasking StatementSYNTAX: STOP BIT task [,task] . . .PURPOSE: To disable a bit that has previously been defined w
Commands - 112STOP COUNTTasking StatementSYNTAX: STOP COUNT n [,n1] [,nn]PURPOSE: To deactivate a software counter task that was previ
Commands - 113STOP INPTasking StatementSYNTAX: STOP INP n [,n1] [,n2]PURPOSE: To disable one or more INP tasks declared by the ON INP
Commands - 114STR$String FunctionSYNTAX: n$ = STR$(m)PURPOSE: To convert a number to a string.REMARKS: For positive numbers, the strin
Commands - 115SYSSystem FunctionSYNTAX: a = SYS(n)PURPOSE: To access system data and addresses.REMARKS: n is the system number.The fol
Commands - 116The SYS(6) and SYS(7) will return 0 if no error has occurred. Any nonzero value means an errorhas occurred and you can
Commands - 117TABPrint FunctionSYNTAX: PRINT TAB(m)PURPOSE: To tab to position m.REMARKS: m ranges from 0 to 255If the current print p
Commands - 118TANNumeric FunctionSYNTAX: n = TAN(m)PURPOSE: To return the trigonometric tangent of m.REMARKS: The angle m must be in r
Commands - 119TICKProcess FunctionSYNTAX: a=TICK(n)PURPOSE: To return the time from the TICK timers.REMARKS: There are three TICK time
Concepts - 9error message. Subsequent lines will become garbled as the synchronous nature of data transmissionis lost.When numeric co
Commands - 120TIME$FunctionSYNTAX: a$ = TIME$(n)PURPOSE: The TIME$ function is used to read the system calendar/clock. The system clo
Commands - 121TIME$StatementSYNTAX: TIME$ = time stringPURPOSE: TIME$ is used to set the time on the system calendar/clock. The clock
Commands - 122TRON/TROFFStatementSYNTAX: TRONTROFFPURPOSE: To trace program execution and/or display variable values.REMARKS: You exec
Commands - 123VALNumeric FunctionSYNTAX: n = VAL(m$)PURPOSE: To convert a string to a number.REMARKS: The VAL function strips leading
Commands - 124VARPTRNumeric FunctionSYNTAX: VARPTR(variable)PURPOSE: To return the address in RAM of the variable. This command is si
Commands - 125On power–up, you have 100 bytes of string space. You can change this with the CLEAR statement. (Beneath the string area
CONFIG Commands - 1CONFIG BAUDStatementSYNTAX: CONFIG BAUD n,baud rate, mode, parity [,com]PURPOSE: To change the serial port paramete
CONFIG Commands - 20 = RS-232 (default)1 = RS-422 (transmitter always on)2 = RS-485RELATED: noneEXAMPLE: 10 CONFIG BAUD 1,6,5,0This se
CONFIG Commands - 3CONFIG BREAKStatementSYNTAX: CONFIG BREAK com port,modePURPOSE: To enable or disable response to a break character
CONFIG Commands - 4CONFIG CLOCKStatementSYNTAX: CONFIG CLOCK mode,runCONFIG CLOCK run (RPC-2350 series only)PURPOSE: Configures real t
Concepts - 10> greater than X>Y < less than X<Y>= greater than X>=Y or equal to<= less than X<=Yor equal toRel
CONFIG Commands - 5CONFIG COM$Tasking StatementSYNTAX: CONFIG COM$ n,terminator,length,XON,echoPURPOSE: To configure a communication p
CONFIG Commands - 6CONFIG COUNTTasking StatementSYNTAX: CONFIG COUNT number,address,bit [,preset] [,AUTO]PURPOSE: To define the charac
CONFIG Commands - 7CONFIG DISPLAYStatementSYNTAX: CONFIG DISPLAY address,type,cursorPURPOSE: To install a driver for a displayREMARKS
CONFIG Commands - 8510 CONFIG DISPLAY & 40,3,0520 DISPLAY “REMOTE PROCESSING”;530 DISPLAY (3,1) “Tick = “;540 DISPLAY (3,8);550 PR
CONFIG Commands - 9CONFIG PIOStatementSYNTAX: CONFIG PIO init,port A,port B, port LC, port UC [,address]PURPOSE: To initialize an 82C5
Program debugging - 1PROGRAM DEBUGGINGCAMBASIC has several constructs which can be used to debug a program. This section will outline
Program debugging - 290 INC H100 RETURNRUN.30..40..90..100..50..40..90..100..50..40..90..100..50..60.USING MON TO EXAMINE MEMORYWhen s
Error Messages - 1The following list of error messages are returned by CAMBASIC. These indicate clearly, what is wrong, within the co
Error Messages - 2NUM MESSAGE EXPLANATION12 <Illegal immediate> A statement that is illegal in Immediate Mode is entered as an I
Error Messages - 3NUM MESSAGE EXPLANATION27 <Data > 255> The argument or parameter may not exceed 255.28 <Data > 65,535
Concepts - 11The NOT operator performs a logical negative of a value.Operand 1 0001 0111 = 23NOT Operand 1 1110 1000 = 232Value of exp
Event Multitasking - 1Event MultitaskingEvent Multitasking was developed to give faster response to real time events. It is different
Event Multitasking - 2There are a few exceptions. The INPUT and INPUT KEYPAD$ statements will ignore interrupts until the input isrec
Event Multitasking - 3Each counter may be assigned through software to any digital I/O line on any Control or expansion card. Onceco
Event Multitasking - 4CONFIG COUNT counter, address, bit [,preset] [,AUTO]Where:counter is the counter number which may be 0 through 7
Event Multitasking - 5Line 10 configures counter 5 to read bit 1 of address 0 as an input. When the count reaches 2000,the counter wi
Event Multitasking - 6NOTE: It is theoretically possible for the subroutine to take so long to execute that another 2000 counts isreac
Event Multitasking - 7You can try this by holding down the <ENTER> on your terminal so that it auto–repeats and enters count fas
Event Multitasking - 8parameters and are bits 0, 1 and 2. When the data at the port is ANDed with 7, and the value is 5(bits 0 and 2
Event Multitasking - 9A=KEYPAD$(1)returns the key position number to a numeric variable. A zero is returned if no key was pressed. F
Event Multitasking - 1055 B$=KEYPAD$(0)60 IF B$=CHR$(13) THEN ..Get_value65 IF B$="*" THEN B$="."70 A$=A$+B$75 RET
Concepts - 12>= (greater than or equal to)7. NOT (logical bitwise complement)8. AND (logical bitwise and)9. OR (logical bitwise or)
Event Multitasking - 11250 RETURNand so forth.Line 40 tells CAMBASIC to call a subroutine by the name of “Keypad_interrupt” every time
Event Multitasking - 12MULTITASKING ON A CLOCK TICKThe three 200 Hz (100 Hz in 9 Mhz systems) tick timers are used for a number of mul
Event Multitasking - 13PULSE MULTITASKINGIntroductionCAMBASIC supports eight timed (or pulsed) outputs. These are generated in softwa
Event Multitasking - 14Timer 0 is configured at address 0 and bit 1. The wait time is 0.05 seconds. The output will go high for 0.06
Differences - 1DIFFERENCES—CAMBASIC vs QBASIC1. CAMBASIC is a multitasking language while the others are not. This adds features to t
Mini-Monitor - 1THE CAMBASIC MINI–MONITORThe Mini–Monitor is included in CAMBASIC primarily for those who will be combining object cod
Mini-Monitor - 2Edit MemoryThis routine lets you poke hex values into memory. For example, to edit at A000, you enter the command bel
Program Editing - 1CAMBASIC EDITORUsing the Line EditorWhen using a CRT terminal to write programs, the resources of the PC are not av
Preface - 1HOW TO USE THIS MANUALThis manual contains information on CAMBASIC and its commands. You will find that some information i
Program Editing - 2CURSOR MOVEMENTThe display will appear as above. Press <SPC> twice. You will notice that the first two char
Program Editing - 3Move the cursor to the “e” in edit.10 PRINT "This is";:PRINT" a simple edit"10 PRINT "This
Program Editing - 410 PRINT "This is";:PRINT" a s_Type <R> and then <i>. You have replaced the “a” with an
Programing Tips - 1How to Maximize Execution Speed1. Use the precompiled variable A% to Z%. In an average program these will run 50%
Programing Tips - 210. Spaces have no affect on speed since they are eliminated in the compiling process.11. Data statements execute s
Programing Tips - 3second software interrupt occurs while the system is in a subroutine for another interrupt, nesting occurs. Thisme
Command Summary - 1Command Syntax PurposeABS n=ABS(m) Returns absolute value of a numberAIN n=AIN(channel) Returns result of A/D conve
Command Summary - 2Command Syntax PurposeDO/UNTIL DO list UNTIL expr. Executes until expression is trueDO/ENDDO DO n Fast loop structu
Command Summary - 3Command Syntax PurposeLINE a = LINE(n) Read and write single bitLINE n, mLIST LIST Outputs program listingLOAD LOAD
Command Summary - 4Command Syntax PurposePRINT$ PRINT$ char [,char] Prints string of charactersPULSE n=PULSE(m) Returns time from puls
Preface - 2PRODUCT SUPPORTIf you have a question about CAMBASIC and you cannot find the answer in this manual, call Technical Support
Command Summary - 5Command Syntax PurposeTIME$ n$=TIME$(n) Reads calendar/clockTIME$=n$ Writes to calendar/clockTROFF TROFF Stops the
Commands - 1ABSNumeric FunctionSyntax: n = ABS(m)Purpose: To return the absolute value of the expression m.Remarks: The absolute value
Commands - 2AINProcess FunctionSYNTAX: a = AIN(channel)PURPOSE: To return the analog input value.REMARKS: The channel is the channel n
Commands - 3AOTProcess StatementSYNTAX: AOT channel,valuePURPOSE: To write data to a analog output port.REMARKS: AOT causes the analog
Commands - 4ASCNumeric FunctionSYNTAX: n = ASC(m$) PURPOSE: To return the ASCII code for the first character of the string m$.REMARKS:
Commands - 5ATNNumeric FunctionSYNTAX: n = ATN(m)PURPOSE: To return the arctangent of m.REMARKS: The result, n, of the ATN function is
Commands - 6BCDNumeric FunctionSYNTAX: n = BCD(m)PURPOSE: To return four digits in packed BCD format from a number.REMARKS: The four B
Commands - 7BINNumeric FunctionSYNTAX: n = BIN(m)PURPOSE: To return a number from a packed BCD number.REMARKS: This function assumes t
Commands - 8BIN$String FunctionSYNTAX: n$ = BIN$(m)PURPOSE: Returns an 8–bit binary representation of a number.REMARKS: The most signi
Commands - 9BITProcess FunctionSYNTAX: n = BIT(I/O address,bit)PURPOSE: To read a specified bit at a specified I/O address.REMARKS: Th
Introduction - 1ABOUT CAMBASICCAMBASIC is the logical result of 13 years of industrial language development at Octagon. Its major str
Commands - 10BITProcess StatementSYNTAX: BIT I/O address,bit,valueBIT I/O address,bit,ONBIT I/O address,bit,OFFBIT I/O address,bit,NOT
Commands - 11CALLStatementSYNTAX: CALL address [,m1] [,m2]. . .PURPOSE: To execute an assembly language program at the specified addre
Commands - 12NOTE3: The CALL statement saves all the registers needed by CAMBASIC except IY. If thisregister is used, it must be re
Commands - 13CHR$String FunctionSYNTAX: n$ = CHR$(m)n$ = CHR$(m,n)PURPOSE: To convert an ASCII code to its character equivalent. Also
Commands - 14CLEARStatementSYNTAX: CLEAR [string] PURPOSE: To set all numeric variables to zero, set all string variables to null, res
Commands - 15CLEAR COM$Process StatementSYNTAX: CLEAR COM$ nPURPOSE: To reset a serial port input buffer to the power–up condition.REM
Commands - 16CLEAR COUNTTasking StatementSYNTAX: CLEAR COUNT n [,n1] . . . [,nm]PURPOSE: To clear the accumulated count in a software
Commands - 17CLEAR TICKTasking StatementSYNTAX: CLEAR TICK nPURPOSE: To reset the internal TICK clock to zero. This does not affect a
Commands - 18CLEAR PULSETasking StatementSYNTAX: CLEAR PULSE n [,n1] . . . [,nm]PURPOSE: To clear the remaining time in a software tim
Commands - 19CLSStatementSYNTAX: CLS [#n]PURPOSE: To clear the screen of a terminal connected to a serial port using PC SmartLINK.REMA
Introduction - 24. Event MultitaskingCAMBASIC provides several types of multitasking. All defined tasks operate in the background and
Commands - 20COM$Process FunctionSYNTAX: n$ =COM$(n)PURPOSE: To return a string from the serial input buffer. This function is usuall
Commands - 21CONFIGStatementSYNTAX: CONFIG command [list]PURPOSE: The CONFIG statement is used to set parameters for a number of indus
Commands - 22CONTCommandSYNTAX: CONTPURPOSE: To resume program execution after a break.REMARKS: The CONT command may be used to resume
Commands - 23COSNumeric FunctionSYNTAX: n = COS(m)PURPOSE: To return the trigonometric cosine function.REMARKS: m must be in radians.
Commands - 24COUNTProcess FunctionSyntax: n =count(channel)Purpose: To return the count in the software event counters and return the
Commands - 25DATAStatementSYNTAX: DATA constant [,constant] . . . .PURPOSE: To provide a means to store numeric and string constants a
Commands - 26DATE$System StatementSYNTAX: DATE$ = date stringPURPOSE: DATE$ is used to set the date on the system calendar clock. The
Commands - 27DATE$System FunctionSYNTAX: a$ = DATE$(n)PURPOSE: The DATE$ function is used read the date of the system calendar clock.
Commands - 28DEC & DECFStatementsSYNTAX: DEC variableDECF variablePURPOSE: To decrement a variable by one (DEC) or four (DECF).REM
Commands - 29DELETECommandSYNTAX: DEL [–] line [–line] [–]PURPOSE: To delete CAMBASIC program lines.REMARKS: The DEL command erases th
Introduction - 3machine code segments are executed with the CALL statement. You can pass up to 20 parameters tothe machine code progr
Commands - 30DELAYStatementSYNTAX: DELAY nPURPOSE: To create a precision delay. The resolution is 5 mS (10 ms on 9 Mhz systems).REMAR
Commands - 31DIMStatementSYNTAX: DIM variable (value) [,variable (value)] . . .PURPOSE: To specify the maximum size for array variable
Commands - 32DISPLAYProcess StatementSYNTAX: DISPLAY data [,][;][data] . . .DISPLAY$ data [,data] . . .DISPLAY! "format";dat
Commands - 33CLEAR DISPLAY Clears graphics and characters from displayCLEAR DISPLAY LINE Clears characters at current lineCLEAR DISPLA
Commands - 34Line 130 is a 0.5 second delay and the program repeats.ERROR: <Data negative> – for row and column<Data out of r
Commands - 35DO/UNTILStatementsSYNTAX: DO...UNTIL expression is true PURPOSE: To execute a conditional loop structure.REMARKS: The DO/
Commands - 36DPEEK and DPOKEMemory Function and StatementSYNTAX: n = DPEEK(address)n = DPEEK (address, segment)DPOKE address, dataDPOK
Commands - 37EDITCommandSYNTAX: EDIT line“ . ”PURPOSE: To display a line for editing.REMARKS: The EDIT statement simply displays the l
Commands - 38ENDStatementSYNTAX: ENDPURPOSE: To halt execution of a program at a given point.REMARKS: END causes execution to cease wi
Commands - 39ERLSystem VariableSYNTAX: n = ERLPURPOSE: To return the line number associated with an error.REMARKS: The function return
Concepts - 1Getting StartedTo program in CAMBASIC you will need a terminal to interface with your CPU card. This may be a CRT termina
Commands - 40ERRSystem VariableSYNTAX: n = ERRPURPOSE: To return the error code associated with an error.REMARKS: The function returns
Commands - 41ERRORSystem StatementSYNTAX: ERR nERROR nPURPOSE: To simulate the occurrence of a run time error.REMARKS: This statement
Commands - 42EXIT and EXIT CLEARStatementSYNTAX: EXIT [line/label]EXIT CLEARPURPOSE: To allow legal branching out of a loop structure.
Commands - 43EXPNumeric FunctionSYNTAX: n = EXP(m)PURPOSE: To return the exponential function of “e.”REMARKS: This function returns t
Commands - 44FINDCommandSYNTAX: FIND argumentPURPOSE: Used to locate variables, keywords, and labels.REMARKS: This is a useful tool es
Commands - 4520 GOSUB . . confirm50 GOSUB . . current_test>FIND . .200 . . confirm300 . . current_test>FIND . . confirm200 . . c
Commands - 46FOR / NEXT / STEPStatementsSYNTAX: FOR variable = n TO m [STEP z]...NEXTPURPOSE: To perform a loop operation a given numb
Commands - 47FPEEK and FPOKEMemory Function and StatementSYNTAX: a = FPEEK(address)a = FPEEK(address,segment)FPOKE address, dataFPOKE
Commands - 48FREFunctionSYNTAX: a = FRE(0)a = FRE(c$)PURPOSE: Returns the number of bytes of unused but allocated string space, or the
Commands - 49GOSUBStatementSYNTAX: GOSUB line/label...RETURNPURPOSE: To branch to and return from a subroutine.REMARKS: line/label is
Concepts - 2Line LabelsYou can write a program to GOTO or gosub to a label instead of a line number. This makes for more readable cod
Commands - 50GOTOStatementSYNTAX: GOTO line/labelPURPOSE: To branch unconditionally out of the normal program sequence to a specified
Commands - 51HEX$String FunctionSYNTAX: n$ = HEX$(m)PURPOSE: To return a hex representation of a number.REMARKS: The value of m may ra
Commands - 52IF / THEN / ELSEStatementSYNTAX: IF m THEN statement(s) [ELSE statement(s)]IF m GOTO line/labelIF m THEN line/labelPURPOS
Commands - 53INC and INCFStatementsSYNTAX: INC variableINCF variablePURPOSE: To increment a variable by one (INC) or four (INCF).REMAR
Commands - 54INKEY$FunctionSYNTAX: a$ = INKEY$(n)PURPOSE: To return a single character from a serial input buffer.REMARKS: The returne
Commands - 55INP and OUTI/O Function and StatementSYNTAX: n = INP(I/O address)OUT I/O Address, DataPURPOSE: INP returns a byte from an
Commands - 56INPUTStatementSYNTAX: INPUT [,#n][;] var [,var] ...INPUT [,#n][;] "prompt message"; var [,var] ...INPUT [,#
Commands - 57INPUT KEYPAD$StatementSYNTAX: INPUT KEYPAD$ echo port,variableINPUT KEYPAD$ echo port,"text",variableINPUT KEYP
Commands - 58EXAMPLE: 10 ON KEYPAD$ 24 GOSUB 500 20 DISPLAY (1,0);30 INPUT KEYPAD$ 10,"Enter weight",WEIGHT 40 PRINT WEIGHT5
Commands - 59INSTRFunctionSYNTAX: a = INSTR(n,string,substring)PURPOSE: Returns the position of the first occurrence on a substring wi
Concepts - 3Real time MultitaskingCAMBASIC can perform several kinds of tasks at assembly language speed while the program is running.
Commands - 60INTNumeric FunctionSYNTAX: a = INT(b)PURPOSE: To return the largest integer that is equal to, or less than the argument.R
Commands - 61KEYPAD$Process FunctionSYNTAX: a$=KEYPAD$(0)a=KEYPAD$(1)PURPOSE: To return a one–character string in response to a keypad
Commands - 62LEFT$String FunctionSYNTAX: n$ = LEFT$(m$,p)PURPOSE: To return the leftmost p characters of m$.REMARKS: If p is greater t
Commands - 63LENNumeric FunctionSYNTAX: n = LEN(m$)PURPOSE: To return the number of characters in m$.REMARKS: Unprintable and blank ch
Commands - 64LINEProcess FunctionSYNTAX: a = LINE(terminal #)PURPOSE: To return the status of an input on a STB-26 terminal board.REMA
Commands - 65LINEProcess StatementSYNTAX: LINE terminal #, valuePURPOSE: To write directly to the STB-26 terminal board.REMARKS: The t
Commands - 66LISTCommandSYNTAX: LIST [line [–[line]]]LIST #n, [line [–[line]]]LIST!PURPOSE: To list a part or all of the program curre
Commands - 67LOADCommandSYNTAX: LOADLOAD segmentLOAD DATA to RAM segment, RAM address, from Flash segment, Flash address, lengthPURPOS
Commands - 68LOCK and UNLOCKTasking StatementsSYNTAX: LOCKUNLOCK [RETURN]PURPOSE: To lock out interrupts from time critical portions o
Commands - 69LOGNumeric FunctionSYNTAX: n = LOG(m)PURPOSE: To return the natural logarithm of m.REMARKS: The natural logarithm is the
Comments to this Manuals