Omron C200H-ASC11 Manual page 277

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

PC Format
Name
A (ASCII) format mAn
S (array
SmXn
variable) format
Note: X is any of
I,H,O or B.
Up to 255 words can be transferred at one time. For integer variables, however, only a maximum of 50 to 60
words can be transferred at one time. The following restrictions apply:
• A maximum of 255 characters can be written in one line.
• One variable must correspond to each word for integer variables.
Example: H format
1000 PC READ "59H4";
19 characters
Up to 79 variables using 3 characters per variable (236 ÷ 3 = 79) can be written. Therefore, a maximum of 59
words can be transferred at one time.
PC READ Format Conversion Examples
I Type Format
PC word data
1
2
3
4
5
6
7
8
268
Format
m = 1 to 127
n = 1 to 3
m = 1 to 255
n = similar to
each specified
format.
A0, A1, A2, . . . , B0, B1, . . . ,
236 characters max.
Integer
variables
n
n + 1
Character
variables
Meaning
Two ×m characters from the
beginning of 1 character
variable are converted into
ASCII data (2 characters
correspond to 1 word), and is
stored in the leftmost/rightmost
byte position in each word
specified by n.
n = 1: Rightmost byte (leftmost
byte is 00
)
hex
n = 2: Leftmost byte (rightmost
byte is 00
)
hex
n = 3: Leftmost and rightmost
bytes
Data of n array variables is
converted to a data format
specified by X (any of BCD,
hexadecimal, octal, or bit) and
stored to each of m words.
Character string arrays cannot
be used as variables.
→ J = 4
PC READ "I1"; J
→ J = 34
PC READ "I2"; J
→ J = 234
PC READ "I3"; J
→ J = 1234
PC READ "I4"; J
PC READ "I1"; A$ → A$ = "4"
PC READ "I2"; A$ → A$ = "34"
PC READ "I3"; A$ → A$ = "234"
PC READ "I4"; A$ → A$ = "1234"
PC READ "2I4"; A$ → A$ = "12345678"
Appendix C
Example
2A3:
The first 4 characters in 1
character variable is converted
to ASCII data, and stored to the
leftmost and rightmost bytes of
each word for 2 words.
S2I2:
Data from 2 array variables is
converted to hexadecimal and
stored in each of 2 words.

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents