
267
PC Format
Appendix C
Note
1.
For versions up to V1.02, m = 1 to 64. The version is shown on the terminal startup display.
2.
For versions up to V1.02, m = 1 to 127. The version is shown on the terminal startup display.
Reading Data from ASCII Unit Variable to CPU Unit I/O Memory or ASCII
Unit Shared Memory
S (array
variable) format
SmXn
Note: X is any of
I,H,O or B.
m = 1 to 255
n = same as
specified format
Data of m words is regarded as
data in the specified format
(BCD, hexadecimal, octal, or
bit), and the data from each
word is stored in n array
variables. Character string
arrays cannot be used as
variables.
S2I2:
Data of 2 words is regarded as
BCD data and data from each
word is stored in 2 array
variables.
Name
Format
Meaning
Example
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 64
n = 1 to 4
Data from the rightmost 1 to n
digits of m variables is
converted to BCD data, and
saved to the rightmost 1 to n
digits of each word for m words.
2I3:
Data from the rightmost 1 to 3
digits of 2 words is converted to
BCD data, and saved to the
rightmost 1 to 3 digits of each
word for 2 words.
H (hexadecimal)
format
mHn
When variables
are numerals:
m = 1 to 255
n = 1 to 4
When variables
are characters:
m = 1 to 64
n = 1 to 4
Data from the rightmost 1 to n
digits of m variables is
converted to hexadecimal data,
and saved to rightmost 1 to n
digits of each word for m words.
2H3:
Data of the rightmost 1 to 3
digits of 2 words is converted to
hexadecimal data, and stored in
the rightmost 1 to 3 digits of
each word for 2 words.
O (octal) format
mOn
When variables
are numerals:
m = 1 to 255
n = 1 to 4
When variables
are characters:
m = 1 to 64
n = 1 to 4
Data from the rightmost 1 to n
digits of m variables is
converted to octal data, and
saved to the rightmost 1 to n
digits of each word for m words.
2O3:
Data of the rightmost 1 to 3
digits of 2 words is converted to
octal data, and stored in the
rightmost 1 to 3 digits of each
word for 2 words.
B (bit) format
mBn
When variables
are numerals:
m = 1 to 255
n = 0 to 15
Each of m numeric variables is
regarded as decimal, and
converted to binary data, and
the nth bit of data from each
word only (other bits are
regarded as 0) is stored to each
word for m words.
2B3:
Each of 2 numeric variables is
regarded as decimal and
converted to binary data, and
the 3rd bit of data from each
word (other bits are regarded as
0) only is stored in each of 2
words.
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...