![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033058.webp)
47
PC WRITE Statement
Purpose:
To write data to the PC
Format:
PC WRITE “<format>[,<format> ...]”;<exp1>
[,<exp2>, ...]
Note For parameter definitions, refer to the PC READ instruction.
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 com-
pleted.
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 INF function is internally executed to
round it off.
Single-precision and double-precision numeric expressions are internally con-
verted 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 state-
ment.
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 &H1FFF, and &H8000 to &HFFFF; they are
reserved for system use.
PRINT Statement
Purpose:
To output data and text to the screen or printer
Format:
PRINT [#<port>,] [<list of exp>][;]
LPRINT
<port> is an integer (1 or 2).
<list of exp> can be numeric or character expressions. Character
expressions should be enclosed in double quotation marks.
Example:
PRINT #1,A,B$;“BASIC”
Remarks:
The list of expressions must be separated by comas, semicolons, or blanks.
When the expressions are separated with blanks or semicolons, the next value
Commands, Statements, and Functions
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...