
265
Appendix C
PC Format
PC Format
When the ASCII Unit reads from and writes to the I/O memory data of the CPU Unit or the shared memory of
the ASCII Unit itself using the following commands, it recognizes the data format of the I/O memory or shared
memory. The ASCII Unit uses this data format when reading data from the I/O memory or the shared memory
into the ASCII Unit variable or writing data from the ASCII Unit variable to the I/O memory or the shared mem-
ory. To allow such read-write operation, the data format must be specified. This specified data format is called
the PC format.
Target Commands
For CPU Unit I/O Memory Data:
PC READ/PC WRITE, PC READ@/ PC WRITE@,
PC QREAD@/ PC QWRITE@ commands
For ASCII Unit Shared Memory Data:
PC EPUT/ PC EGET commands
• In the A format, multiple PC words can correspond to one ASCII Unit variables, with a maximum of 127
words for one variable.
For formats other than A, S, and where the variable is a character variable, there must be one variable cor-
responding to each word.
In the A format, one variable corresponds to one format.
In the S format, one array variable corresponds to one format.
For formats other than A, S, and where the variable is a character variable, multiple variables can be allo-
cated to one format.
• When “m” is omitted, one word is assumed.
Words from 1 to 64 (1 to 127 for A format) and numerals from 1 to 255 can be handled at one time.
Formats and subcommands can be specified as character variables.
Reading Data from CPU Unit I/O Memory or ASCII Unit Shared Memory to
ASCII Unit Variable
Name
Format
Meaning
Example
I (BCD) format
mIn
When variables
are numerals:
m = 1 to 255
n = 1 to 4
When variables
are characters:
m = 1 to 255
(see note 1)
n = 1 to 4
The following
must be true
when variables
are characters:
m x n < 256
Data of m words is regarded as
BCD data, and the data from the
rightmost 1 to n digits of each
word is stored in each variable.
2I3:
Data of 2 words is regarded as
BCD, and the data from the
rightmost 1 to 3 digits of each
word (bits 00 to 11) is stored in 2
variables.
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...