
274
PC Format
Appendix C
A Type Format
If the integer variable type does not match, an error will be generated.
S Type Format
Note
1.
Numeric variables and character variables can be used together for PC READ and PC WRITE com-
mands if the character variable is at the end of the format as follows:
Example:
PC READ “@D,0,2,H4,H4”; B, A$
If the command format is written as PC READ “@D,0,2,H4,H4”; A$, B, a FORMAT ERROR will be
generated. The above combination cannot be used if array variables have been used as variables for
PC WRITE.
2.
Character-string array variables cannot be used with the S-type format. Use the following format to
read or write character data.
Example:
PC READ “@D,0,2,10,10H4”; A$
3.
Only one character-string variable can be used in the variable list, so multiple strings are not possible.
4.
If using “mA1, mA2” when writing ASCII variables in A–type format to I/O memory in the CPU Unit,
provide 2 x m characters in the character variable.
5.
Negative values cannot be written using the I–type format for PC WRITE. A format error will occur.
0
0
5
1
PC word data
Character variables
←
A$ = "QRST"
PC WRITE "2A1"; A$
PC WRITE "2A2"; A$
PC WRITE "2A3"; A$
0
0
5
2
5
1
0
0
5
2
0
0
5
1
5
2
5
3
5
4
Q: &H51
R: &H52
S: &H53
T: &H54
9
8
7
6
PC word data
←
A (1) = 9876
Integer variables
←
A (2) = 5432
(In I type format)
←
A (3) = 1098
←
A (4) = 7654
5
4
3
2
1
0
9
8
7
6
5
4
PC WRITE "S4I4"; A (1)
Example 1: PC WRITE "@D,0,4,4A,4A1";("1234"+"1234")
Example 2:
A$= 1234"
PC WRITE "@D,0,4A,4A1";(A$+A$)
Dummy data
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...