![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423031.webp)
18
tains four digits, which are numbered from right to left. These digit numbers
and the corresponding bit numbers for one word are shown below.
Bit number
Contents
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Digit number
3
2
1
0
When referring to the entire word, the digit numbered 0 is called the right-
most digit; the one numbered 3, the leftmost digit.
When inputting data into data areas, it must be input in the proper form for
the intended purpose. This is no problem when designating individual bits,
which are merely turned ON (equivalent to a binary value of 1) or OFF (a bi-
nary value of 0). When inputting word data, however, it is important to input it
either as decimal or as hexadecimal, depending on what is called for by the
instruction it is to be used for. Section 5 Instruction Set specifies when a par-
ticular form of data is required for an instruction.
Binary and hexadecimal can be easily converted back and forth because
each four bits of a binary number is numerically equivalent to one digit of a
hexadecimal number. The binary number 0101111101011111 is converted to
hexadecimal by considering each set of four bits in order from the right. Bi-
nary 1111 is hexadecimal F; binary 0101 is hexadecimal 5. The hexadecimal
equivalent would thus be 5F5F, or 24,415 in decimal (16
3
x 5 + 16
2
x 15 + 16
x 5 + 15).
Decimal and BCD are easily converted back and forth. In this case, each
BCD digit (i.e., each group of four BCD bits) is numerically equivalent of the
corresponding decimal digit. The BCD bits 0101011101010111 are converted
to decimal by considering each four bits from the right. Binary 0101 is deci-
mal 5; binary 0111 is decimal 7. The decimal equivalent would thus be 5,757.
Note that this is not the same numeric value as the hexadecimal equivalent
of 0101011101010111, which would be 5,757 hexadecimal, or 22,359 in deci-
mal (16
3
x 5 + 16
2
x 7 + 16 x 5 + 7).
Because the numeric equivalent of each four BCD binary bits must be nu-
merically equivalent to a decimal value, any four bit combination numerically
greater then 9 cannot be used, e.g., 1011 is not allowed because it is numeri-
cally equivalent to 11, which cannot be expressed as a single digit in decimal
notation. The binary bits 1011 are of course allowed in hexadecimal are a
equivalent to the hexadecimal digit C.
There are instructions provided to convert data either direction between BCD
and hexadecimal. Refer to 5-16 Data Conversion for details. Tables of binary
equivalents to hexadecimal and BCD digits are provided in the appendices
for reference.
Decimal points are used in timers only. The least significant digit represents
tenths of a second. All arithmetic instructions operate on integers only.
3-3
IR (Internal Relay) Area
The IR area is used both as data to control I/O points, and as work bits to
manipulate and store data internally. It is accessible both by bit and by word.
In the C200H PC, the IR area is comprised of words 000 to 235.
Words in the IR area that are used to control I/O points are called I/O words.
Bits in I/O words are called I/O bits. Bits in the IR area which are not as-
Converting Different Forms
of Data
Decimal Points
IR Area
Section 3-3
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...