
7-6
Section
Details of BASIC Commands
196
pc read
Syntax:
[<result> = ]
PC READ
“<pc format> {, <pc format>}”; <variable> {, <variable>}
Description:
Statement. When a
PC READ
request is received from the CPU Unit, the data is read from the
specified PC data area and stored in the specified variable with the specified PC format.
The <pc format> indicates the data format of the specified data. The following table shows the
various data formats that can be specified.
Format
Syntax
Description
Treats the m words as BCD data and stores n digits of data from
each word in the variable.
m : the number of words
n : the number of digits read from each word (1 to 4)
n
Digits read
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
I Format
m I n
Treats the m words as hexadecimal data and stores n digits of data
from each word in the variable.
m : the number of words
n : the number of digits read from each word (1 to 4)
n
Digits read
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
H Format
m H n
Treats the m words as octal data and stores n digits of data from
each word in the variable.
m : the number of words
n : the number of digits read from each word (1 to 4)
n
Digits read
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
O Format
m O n
Treats the m words as binary data, converts the n
th
bit of each word
to decimal, and stores the converted values in the variable.
m : the number of words
n : the bit read from each word (0 to 15)
n
Bit read
0
bit 0
1
bit 1
2
bit 2
3
bit 3
4
bit 4
5
bit 5
6
bit 6
7
bit 7
Remarks:
B Format
m B n
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...