
7-6
Section
Details of BASIC Commands
200
<address> specifies the starting address of data transfer within the specified data area. The starting
address must be consistent with the address range of the specified data area. If the address given
lies outside the allowable range then a “FORMAT ERROR” (code B067) will result.
<number of words> specifies the number of data words to be read from the starting address given.
If any of the data to be read exceed the allowable range then a “FORMAT ERROR” (code B067)
will result. The valid setting range is 1 to 255 words.
<pc format> indicates the data format of the data to be read. Refer to the explanation of <pc
format> settings in the
PC READ
statement for details on the various data formats that can be
specified.
<variable> is any valid variable name. It must be of the same type as specified in the format string
and have as many elements as the number of words specified in the
PC READ
@ statement.
The
PC READ
@ statement can return a <result>. This <result> indicates whether the
PC READ
@
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 READ
@ could not be
carried out, perhaps because another data transfer was being performed.
With the
PC READ
@ statement, the ASCII Unit operates without direction from the CPU Unit. The
ASCII Unit specifies a location in one of the PC’s data area, reads the data, and stores it in the
specified variables according to the specified pc format. The data is transferred at the next I/O
refreshing cycle after execution of the
PC READ
@ statement; the ASCII Unit will pause execution
of the BASIC program until the data transfer has been completed.
Refer to 6.3 Details of the Data Exchange Methods for more details on how to use the
PC READ
@
statement.
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:
See also:
PC QREAD
,
PC WRITE
,
WAIT
PC READ “@D, 200, 10, S10H4”; A(1)
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...