Bcd Data; Signed Bcd Data; Floating-Point Data - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Data Formats

4-12-3 BCD Data

Bit
15
14
15
14
2
2
3
2
2
2
3
Digit
10
Bit
15
14
ON/OFF
0
0
3
2
2
2
1
0
2
+ 2
Digit
3
Range of Expression
Double Data

4-12-4 Signed BCD Data

4-12-5 Floating-point Data

94
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.
13
12
11
10
13
12
11
10
2
2
2
2
1
0
3
2
2
2
2
2
2
10
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.
13
12
11
10
1
1
1
0
1
0
3
2
2
2
2
2
3
= 3
2
=8
8
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.
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.
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.
09
08
07
06
9
8
7
6
2
2
2
2
1
0
3
2
2
2
2
2
1
10
09
08
07
06
0
0
0
0
1
0
3
2
2
2
2
2
0
0
Section 4-12
05
04
03
02
5
4
3
2
2
2
2
2
1
0
3
2
2
2
2
2
0
10
05
04
03
02
0
0
0
1
1
0
3
2
2
2
2
2
2
1
2
+ 2
+2
7
01
00
1
0
2
2
1
0
2
2
01
00
1
1
1
0
2
2
0
=7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents