Download Print this page

Radio Shack TRS-80 100 Quick Reference Manual page 19

Hide thumbs Also See for TRS-80 100:

Advertisement

RS-232C Communications (COM)
Com
in
uric
alio
rs Co
nil
9
u
rattan
Some
BASIC commands
f
OQuiro
1
hat
yo>u signify
the
communications
con'
>q
m
anon H
constats
of
a
live
character
siring ol
the pattern
rwpDs.
wham
f
BaudRate
ThiaoanurTtoetliornl
to9,
whore
1
>
75;2 -
1
'G;3- 300;4 =
600.
5=
'200.
6-
2400,7^
46jQQ,8
=
9600,9
^19200
»
Wofd
Length
Th«s
ts
a
number
t'om
6
loB,
whare6-6Nl8:7-7b«e;B-8bils
p
Pmttf
ErmefE.O.i.o*W.«lwe
E
- Even;
O-Odd.
I
Ignore.
N
=
Nor
«e
b
StopBit*
Einwio'2wno'ei
=
i
stop
W.2^2stOpbrtS
I
XONXOFF
Statu*
ErtWrE .,'..'
-
E -
Enable;
D
-
Disaolo
Communication*
Command*
and
Functions
COW ON
at
OFF
Of
STOP
Lnat>t»sot0;saWeslhaQNC:0M
interrupt.
COM ON
COM
Ol
I
COWSTOP
CLOSE
Me
number
list
Coses
tho
tiles
OPEN
od
as We numbe*
close
1.2.3
acsf
EOF
(flfe
numbed
losisto-anond-of-MoconcWtlonontrie
communca
ions
Me
OP"EN
'ed
as
W
e number.
The tunewn
returns
s
'logical'
answer,
either
lrue"{-t)M you have reached
the
end
ol
•bo Ho,
or
else
'(also"
(0)
rl
you
hivenol reached
|h**ftddt
1h«
Me
IFEOF-(l)THENGOTC
tooa
'•
p
u
t >
it
1
e
n
u n
1
oer
,
variable
MM
inputs
data
seovenlially
Inxn
thecomrrwnications
IH»
OPEN'od as
We
numC«v.
™nPOT#i.a.BC£
iNPUTfjrHjmarfcvxprMWon^ifenumbar/
Retumsasirir>gola
len^i
given by
numeric exjjrwaion
hom
ttocommuiwcaiions
(Me
OPEN
ed as
numoe
r.
AS-
INPU7H5.1)
LO»D"CO*l:conr*guwwon
,
1
R
Loadsa BASICprogfanHrom
comrtMiricaDons
lines
l*Rls present.
BASIC
runs
the
program
sfte'
il
has
been
loaded
LOAD COM78N1E
LOAD
C0WWE1E~
MAXF1LES
Stores
me
Curren
I
maximum numb cot
files
You
may
access
MAXF'lES
*e
any
nume'ic
variable
10MAXF1LES
-
5
^VAXFILFS
MERGE
"COM:conffgurcboD"
We*g.es>he Imestrorn
the
incoirang.
die *<th
p>e lr>osof the current
program
MERGE
"COM 7&'F
ONCOMQOSUBI/nenumber
Deftnesaco"ii"uncatioris
inienuptsubioutiTCtonncorrofV]RS-232CcommurK^iK)ns
CNCOMGOSOB
100O
OPEN
~COM:con»flurBiton"FOfl
mode
AS
We
nttmBti
Allocates
a
&untr giver
as
We
rwCer
tot
a
convnun «Hions
tile
mOdecanboOUTPUT.specrtyinodaiawn be
transmuted out the
RS-232C
tow. or
INPUT,
specitying
data
will
be
received
via
the
RS-232Cnne.
tOOPfcN
CaM660tt FORINPUTAS4
PRINT
#
W(enwmber,ejipre«ton
Hal
Transmltsthe
values
ol
expressionist
loihecornmuncattons
life
opoiwd
as
We
number
ORINT
#1
AS
PR:
NT
#4
.
1
0.20.30
PRiNT
sm*
number.
USING
'1otmaV\ exoratiiOn
Hal
Formats
me
flata In
expresS'Ont'St
ano sends A
to
(he corntnun icabons
tile
OPEMrWasftfennrnMr
fnrmarconststGOlonao'mo'eotthg
(oHovring:
"I"
Prirus list string character
PRINT
#
1
USNG
1
Taney
" n
apace*
>"
Prints
2
ncharacterslromasmng
PRINT
#
1
USHsG
\\
'Tandy'
#
PrirVsonedglttoroach*
PRINT #1
U6iNG##i»##'5
4
inserts
the
algeof
aic
sign 0! tho
number
PRINT*!
U&NG
*#**#
13
inserts a
minus
s^nethefaithCbofltnninQ
Or
endo*
negative
numbers
f>RINT#r
USING"
##*#*#
'.14

Advertisement

loading