![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532099.webp)
94
4-12-3 BCD Data
With BCD data, 16-bit word data is expressed as 4-digit binary data (0000 to
9999) using only the hexadecimal numbers 0 to 9. If the data in any digit corre-
sponds to the hexadecimal numbers A to F, an error will be generated.
Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
↓
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Digit
10
3
10
2
10
1
10
0
In the following example, the bit status of CIO 0000 is shown as
“0011100000000111.” This value is “3807” in BCD, and would thus be 3,807 in
decimal format.
Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
ON/OFF
0
0
1
1
1
0
0
0
0
0
0
0
0
1
1
1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
1
+ 2
0
= 3
2
3
=8
0
2
2
+ 2
1
+2
0
=7
Digit
3
8
0
7
The range that can be expressed as BCD data is 0000 to 9999 ( 0 to 9,999 deci-
mal).
Two-word data is handled as 8-digit BCD data, with a decimal range of 0 to
99,999,999.
4-12-4 Signed BCD Data
Signed BCD data is a formatted in special data patterns in order to express neg-
ative numbers for 16-bit word data. This format depends on the application, but
in the CVM1D CPUs four formats are used.
The BINS(275), BISL(277), BCDS(276), and BDSL(278) instructions are pro-
vided for converting between BCD and binary. For details, refer to the explana-
tions of individual instructions in Section 5 Instruction Set.
4-12-5 Floating-point Data
Floating-point data is stored as 2-word (32-bit) data in a format defined in
IEEE754. The CVM1D CPUs provide a number of floating-point operation
instructions, including math instructions, logarithms, exponents. All of these
handle floating-point data.
The FIX(450), FIXL(451), FLT(452), and FLTL(453) instructions are provided for
converting between floating-point and signed binary data. For details, refer to
the explanations of individual instructions in Section 5 Instruction Set.
Range of Expression
Double Data
Data Formats
Section 4-12
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...