![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429132.webp)
Appendix D
Formatting and Data Conversion
127
Digit
Bit
n
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
0
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
x 2
0
1
–
–
–
–
–
–
–
–
–
–
–
–
–
–
x 2
1
–
2
–
–
–
–
–
–
–
–
–
–
–
–
–
x 2
2
–
–
3
–
–
–
–
–
–
–
–
–
–
–
–
x 2
3
–
–
–
4
–
–
–
–
–
–
–
–
–
–
–
x 2
4
–
–
–
–
5
–
–
–
–
–
–
–
–
–
–
x 2
5
–
–
–
–
–
6
–
–
–
–
–
–
–
–
–
x 2
6
–
–
–
–
–
–
7
–
–
–
–
–
–
–
–
x 2
7
–
–
–
–
–
–
–
8
–
–
–
–
–
–
–
x 2
8
–
–
–
–
–
–
–
–
9
–
–
–
–
–
–
x 2
9
–
–
–
–
–
–
–
–
–
10
–
–
–
–
–
x 2
10
–
–
–
–
–
–
–
–
–
–
11
–
–
–
–
x 2
11
–
–
–
–
–
–
–
–
–
–
–
12
–
–
–
x 2
12
–
–
–
–
–
–
–
–
–
–
–
–
13
–
–
x 2
13
–
–
–
–
–
–
–
–
–
–
–
–
–
14
–
x 2
14
–
–
–
–
–
–
–
–
–
–
–
–
–
–
15
x 2
15
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Example:
5B14... Indicates five binary words of 14 bits each.
A Format (mAn)
This format is used for ASCII characters:
m
: number of words
A
: ASCII format designator
n
: the nth byte of the word
Digit n
Bit
15 14 13 12 11 10 9 8
7 6 5 4 3 2 1 0
1
–
ASCII code
2
ASCII code
–
3
ASCII code
ASCII code
Example:
6A2... Indicates six ASCII words of two characters each.
A maximum of 255 words can be transferred at one time when the A format is used because many PC words
can be represented by one BASIC variable.
Example:
PC READ “50A3, 100A2, 30A1, 75A3”; A$, B$, C$, D$
A$: Fifty PC words (50 words x 2 characters = 100 characters) indicated by 50A3 are assigned to this vari-
able.
B$: One hundred PC words (100 words x 1 character = 100 characters) indicated by 100A2 are assigned to
this variable.
C$: Thirty PC words (30 words x 1 character = 30 characters) indicated by 30A1 are assigned to this variable.
D$: Seventy-five PC words (75 words x 2 characters = 150 characters) indicated by 75A3 are assigned to this
variable.
S Format (SmIn, SmHn, SmOn, SmBn)
This format is used for array variables.
S
: format designator
m
: number of words
n
: the digits of the specified format type
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...