119
Appendix D
Formatting and Data Conversion
Format
Meaning
Name
mIn
Indicates the nth byte of m decimal words
I format
mHn
Indicates the nth byte of m hexadecimal words
H format
mOn
Indicates the nth byte of m octal words
O format
mBn
Indicates the nth bit of of m binary words
B format
mAn
Indicates the nth byte of m ASCII words
A format
SmXn
Indicates the nth bit/byte of m words
S format
When m is omitted, the default value is one. When using the A format, one format designator corresponds to only
one variable in the variable list: e.g., the first format designator corresponds to the first variable in the list, the sec-
ond format designator corresponds to the second variable in the list, etc.
In all formats except A and S, one format designator can apply to many variables. For example:“5H2”; A, B, C, D, E.
This is the same as “1H2, 1H2, 1H2, 1H2, 1H2”; A, B, C, D, E.
All format designators must be in uppercase characters.
Under normal conditions, the maximum number of words that can be transferred at one time is 255. When using
the A or B formats, however, the maximum number of words that can be transferred is between 50 and 60.
I Format (mIn)
This format is used for decimal numbers (0 to 9):
m: number of words
I: decimal format designator
n: the nth digit of the word
Digit n
Bit
15 14 13 12
11 10 9 8
7 6 5 4
3 2 1 0
1
---
---
---
x 10
0
2
---
---
x 10
1
x 10
0
3
---
x 10
2
x 10
1
x 10
0
4
x 10
3
x 10
2
x 10
1
x 10
0
Example:
2I3 ... Indicates 2 decimal words of 3 digits each.
H Format (mHn)
This format is used for hexadecimal numbers (0 to F):
m: number of words
H: hexadecimal format designator
n: the nth digit of the word
Digit n
Bit
15 14 13 12
11 10 9 8
7 6 5 4
3 2 1 0
1
---
---
---
x 16
0
2
---
---
x 16
1
x 16
0
3
---
x 16
2
x 16
1
x 16
0
4
x 16
3
x 16
2
x 16
1
x 16
0
Example:
3H4 ... Three hexadecimal words of 4 digits each.
O Format (mOn)
This format is used for octal numbers (0 to 7):
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...