
7-6
Section
Details of BASIC Commands
202
3
bit 3
4
bit 4
5
bit 5
6
bit 6
7
bit 7
8
bit 8
9
bit 9
10
bit 10
11
bit 11
12
bit 12
13
bit 13
14
bit 14
15
bit 15
Converts a string variable with 2×m characters to ASCII data (2
characters for each word of data) and stores the data in the m
words. The value of n indicates whether the first byte, second byte,
or both are stored.
m : number of words
n : specified byte(s)
n
Byte(s)
1
byte 1 (bits 0-7)
2
byte 2 (bits 8-15)
3
bytes 1-2 (bits 0-15)
A Format
m A n
S Format
S m X n
Converts the data in the n array variables to the kind of data
indicated by X (I, H, O, or B) and stores the data in the m data area
words.
m : the number of words
X : Data type (I, H, O or B as described above)
n : the number of elements (as described above)
With the A format, many words of data from the PC can be stored in a single ASCII Unit variable,
although a maximum of 127 words can be transferred at one time.
Except for the A and S formats, and where a character variable is used as the variable, there must
be a one-to-one correspondence between each word and variable. With the A format, one format
must be used with each variable. With the S format, one format must be used with the variables in
each array.
Except for the A and S formats, and where a character variable is used as the variable, more than
one variable can be associated with a single format.
If the “m” setting is omitted, the default setting is 1 word. The setting range for “m” is 1 to 255.
For numerals it is 1 to 255, for characters it is 1 to 64.
String variables can be used to specify the format, but be sure to use uppercase characters when
specifying the format.
<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. If the value of the numeric expression is not an integer, the non-integer portion will be
truncated. Single-precision or double-precision floating-point values will be converted to integer
values.
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...