47
Refer to Appendix D Formatting and Data Conversion for details on READ
and WRITE statement formatting.
Example:
A$ = “2H1, A3, I4, O2”
PC READ A$;X, Y, A$, I, J
PC WRITE Statement
Purpose:
To write data to the PC
Format:
PC WRITE “<format>[,<format> ...]”;<exp1>
[,<exp2>, ...]
Note
For parameter definitions, refer to Appendix C.
Examples:
PC WRITE “H4, A2, I3, O4”; 1234, “AB”, K, L
Remarks:
If the data of the previous PC WRITE statement has not been read by the
PC, the next PC WRITE statement cannot be executed until the previous one
is completed.
The maximum number of data items that can be transferred with one WRITE
statement specification is 255 in the S or A formats.
If an amount of memory greater than the actual memory area is specified by
the WRITE instruction, a FORMAT ERROR will occur.
If the value of <exp> is not an integer, the INT function is internally executed
to round it off.
Single-precision and double-precision numeric expressions are internally
converted into integer expressions.
The PC WRITE statement’s formatting parameters can be assigned to a
single character variable and that variable may then be used in the PC
WRITE statement.
Example:
A$=“H4, A2, I3, O4”
PC WRITE A$; 1234, “AB”, K, L
POKE Statement
Purpose:
To write one byte to a specified memory address
Format: POKE
<address>,<data>
<address> is the memory location where data will be POKEd.
<data> is an integer from 0 to 255.
Example: POKE
&H2000,&H39
Remarks:
The address must be a 2-byte integer ranging from 0 to 65535 (&HFFFF). Do
not write data to addresses &H0000 to &H2000, and &H8000 to &HFFFF;
they are reserved for system use.
PRINT/LPRINT Statement
Purpose:
To output data and text to the screen or printer
Format:
PRINT [#<port>,] [<list of exp>][;]
BASIC Language
Section 4-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...