
7-6
Section
Details of BASIC Commands
205
<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” will result.
<number of words> specifies the number of data words to be written from the starting address
given. If the amount of the data to be written exceeds the allowable range then a “FORMAT
ERROR” (code B067) will result. For numerals it is 1 to 255, for characters it is 1 to 64.
<pc format> indicates the data format of the data to be read. Refer to the explanation of <pc
format> settings in the
PC WRITE
statement for details on the various data formats that can be
specified.
<numeric expression> 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 WRITE
@
statement.
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.
With the
PC WRITE
@ 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 and writes the data from 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 WRITE
@ 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 WRITE
@
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:
PC QREAD
,
PC WRITE
,
WAIT
See also:
PC WRITE “@D, 200, 5, 1H4, 1H4, 1H4, 1H4, 1H4”; A(1), A(2), A(3), A(4), A(5)
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...