
7-6
Section
Details of BASIC Commands
203
The
PC WRITE
statement can return a <result>. This <result> indicates whether the
PC WRITE
statement was successful or not. If the <result> is 0 then the command was successfully carried
out and the data is written successfully. If the <result> is -1 then the
PC WRITE
could not be carried
out, perhaps because another data transfer was being performed.
When the ASCII Unit receives a
PC WRITE
request from the CPU Unit (through bit 2 of IR n), data
in the specified variables is written to the data area location specified in IR n+3 and IR n+4. The
data is transferred at the next I/O refreshing cycle after the
PC WRITE
request from the CPU Unit;
the ASCII Unit will pause execution of the BASIC program until the data transfer has been
completed.
Before using a character-string variable for the variable setting, be sure to read Appendix A
Operating Precautions and Appendix C PC Format thoroughly, as the character-string variable
operate differently from those in the previous C200H-ASC02.
Examples:
The starting address and number of words in the CPU Units are specified in the following words:
IR n+3 and IR n+4.
PC WRITE
“
S
3
HS
”;
A
(1)
See also:
PC READ
,
PC QWRITE
,
WAIT
CPU Unit
ASCII Unit
variables
4-digit HEX
4-digit HEX
4-digit HEX
A(1)
A(2)
A(3)
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...