Omron SYSMAC C200H-ASC02 Operation Manual page 132

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Formatting and Data Conversion
Digit
n
15
14
13
0
1
2
3
4
5
6
7
8
9
10
11
12
13
x 2
14
14
x 2
15
15
x 2
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
1
2
3
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
12
11
10
x 2
10
x 2
11
x 2
12
x 2
13
15 14 13 12 11 10 9 8
ASCII code
ASCII code
Bit
09
08
07
06
6
x 2
7
x 2
8
x 2
9
Bit
7 6 5 4 3 2 1 0
ASCII code
ASCII code
Appendix D
05
04
03
02
2
x 2
3
x 2
4
x 2
5
x 2
01
00
0
x 2
1
x 2
127

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents