Remote Processing CAMBASIC User Manual
Page 27

Comm and Summar y - 1
Comm and
Syntax
Purpose
ABS
n= ABS(m)
Returns absolute value of a number
AIN
n= AIN(c hannel)
Returns result of A/D conversion
A N D
n = a A N D b
P e r fo r m s l og ic a l A N D
AOT
AOT channel,value
Sends data to a D/A converter
ASC
n = A S C (m$)
Returns ASCII code for first character
ATN
n = A T N (m)
Returns the arctangent
AUTO
AUTO line,increment
Gener ate line num bers auto matically
B C D
n = B C D (m)
C o n ve r ts b in a r y t o B C D
BIN
n = B IN (m)
Converts packed BCD to binary
B IN $
a$ = BIN$(m)
Converts 8– bit number to string
BIT
n= BIT(I/O address, bit)
Reads specific bit at address
BIT
BIT addr,bit,value
Writes bit at addr ess
CALL
CALL addr [,m1][, m2]
Call assem bly progr am and p ass data
CHR$
n$= CHR$( m)
Converts number to character equivalent
n$= CHR$( m,n)
Converts number m character n times
CLEAR
CLEAR[ string space]
Clears variables, sets string space
C L E AR C O M $
CLE AR CO M$ n
Resets serial input buffer
C L E A R C O U N T
CLEAR COUNT n
Clears count in software counter
CLE AR PU LSE
CLEAR PULSE n
Clears remaining time in software timer
C L E A R T IC K
CLEA R TICK n
Resets an internal system clock to 0
CLS
CLS[ #n]
Clears screen
C O M $
n$= COM $(n)
Returns string from serial input buffer
CON FIG
CONFIG n
Initializes system parameters
C O N T
C O N T
Resumes progr am execution
COS
n= COS( m)
Returns cosine of m to n
C O U N T
n= COUNT(m)
Returns the count in software counters
DATA
DAT A constant
Stores num eric and string data
DATE$
a$= DAT E$(n)
Returns date from calendar/clock
DAT E$= string
Writes to calendar/clock
DEC
D E C variable
Decrem ents variable by 1
D E C F
D E C F variable
Decrem ents variable by 4
DELETE
DEL ETE– ]line[– line][– ]
Deletes CAMBASIC progr am lines
DELAY
DELAY n
Delays program by n seconds
DIM
D I M variable (value)
Specifies max size for array variables