
7-6
Section
Details of BASIC Commands
201
pc write
Syntax:
[<result> = ]
PC WRITE
“<pc format> {, <pc format>}”; <numeric expression> {, <numeric
expression>}
Description:
Statement. When a
PC WRITE
request is received from the CPU Unit, the variable data is written to
the specified PC data area in 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
Takes the first n digits of data from each of the m variables,
converts the data to BCD, and stores it in the first n digits of the
each of the m data area words.
m : number of words
n : number of digits written to each word (1 to 4)
n
Digits written
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
Takes the first n digits of data from each of the m variables,
converts the data to hexadecimal, and stores it in the first n digits of
the each of the m data area words.
m : number of words
n : number of digits written to each word (1 to 4)
n
Digits written
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
Takes the first n digits of data from each of the m variables,
converts the data to octal, and stores it in the first n digits of the
each of the m data area words.
m : number of words
n : number of digits written to 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 data in each of the m variables as decimal, converts the
data to binary, and stores only the n
th
bit’s value (treating the rest as
0) in each of the m data area words.
m : number of words
n : bit specified in the word (0 to 15)
n
Specified bit
0
bit 0
1
bit 1
2
bit 2
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...