Omron C200H-ASC11 Manual page 276

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

Advertisement

PC Format
Name
S (array
SmXn
variable) format
Note: X is any of
I,H,O or B.
Note 1. For versions up to V1.02, m = 1 to 64. The version is shown on the terminal startup display.
2. For versions up to V1.02, m = 1 to 127. The version is shown on the terminal startup display.
Reading Data from ASCII Unit Variable to CPU Unit I/O Memory or ASCII
Unit Shared Memory
Name
I (BCD) format
mIn
H (hexadecimal)
mHn
format
O (octal) format
mOn
B (bit) format
mBn
Format
m = 1 to 255
Data of m words is regarded as
data in the specified format
n = same as
(BCD, hexadecimal, octal, or
specified format
bit), and the data from each
word is stored in n array
variables. Character string
arrays cannot be used as
variables.
Format
When variables
Data from the rightmost 1 to n
are numerals:
digits of m variables is
converted to BCD data, and
m = 1 to 255
saved to the rightmost 1 to n
n = 1 to 4
digits of each word for m words.
When variables
are characters:
m = 1 to 64
n = 1 to 4
When variables
Data from the rightmost 1 to n
are numerals:
digits of m variables is
converted to hexadecimal data,
m = 1 to 255
and saved to rightmost 1 to n
n = 1 to 4
digits of each word for m words.
When variables
are characters:
m = 1 to 64
n = 1 to 4
When variables
Data from the rightmost 1 to n
are numerals:
digits of m variables is
converted to octal data, and
m = 1 to 255
saved to the rightmost 1 to n
n = 1 to 4
digits of each word for m words.
When variables
are characters:
m = 1 to 64
n = 1 to 4
When variables
Each of m numeric variables is
are numerals:
regarded as decimal, and
converted to binary data, and
m = 1 to 255
the nth bit of data from each
n = 0 to 15
word only (other bits are
regarded as 0) is stored to each
word for m words.
Meaning
S2I2:
Data of 2 words is regarded as
BCD data and data from each
word is stored in 2 array
variables.
Meaning
2I3:
Data from the rightmost 1 to 3
digits of 2 words is converted to
BCD data, and saved to the
rightmost 1 to 3 digits of each
word for 2 words.
2H3:
Data of the rightmost 1 to 3
digits of 2 words is converted to
hexadecimal data, and stored in
the rightmost 1 to 3 digits of
each word for 2 words.
2O3:
Data of the rightmost 1 to 3
digits of 2 words is converted to
octal data, and stored in the
rightmost 1 to 3 digits of each
word for 2 words.
2B3:
Each of 2 numeric variables is
regarded as decimal and
converted to binary data, and
the 3rd bit of data from each
word (other bits are regarded as
0) only is stored in each of 2
words.
Appendix C
Example
Example
267

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents