![Omron CVM1D Operation Manual Download Page 237](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532237.webp)
(275)
BINS
#0003
D00300
D00400
0000
01
232
Example 2
When CIO 000001 is ON in the following example, first the signed BCD data for-
mat and range in D00300 are checked against data control word “0003” (first
operand). If the check is okay, the signed BCD data in D00300 is converted to
binary and output to D00400.
Address
Instruction
Operands
00000
LD
000001
00001
BINS(275)
#0003
D00300
D00400
Signed BCD data
(–1369)
S: D00300
A 3 6 9
Signed binary data
D: D00400
F A A 7
5-17-17 SIGNED BINARY-TO-BCD: BCDS(276)
(276)
BCDS C S D
Ladder Symbol
Variations
↑
BCDS(276)
Operand Data Areas
C: Control word
CIO, G, A, T, C, #, DM, DR, IR
S: Source word
CIO, G, A, T, C, DM, DR, IR
D: Destination word
CIO, G, A, DM, DR, IR
Description
When the execution condition is OFF, BCDS(276) is not executed. When the
execution condition is ON, BCDS(276) converts the data in a specified source
word (S) from signed binary to signed BCD, and outputs the results to a specified
destination word (C). The format of the destination word is determined by the
contents of the control word (C).
Note Special I/O Units sometimes require input of signed BCD data. BCDS(276) or
BDSL(278) can be used to easily convert signed binary data to signed BCD
data.
The output data format and range designations for the various control word con-
tents are as follows:
When C = 0000 (Output Data Range: –999 to 999 BCD)
3 digits BCD, 12 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
When C = 0001 (Output Data Range: –7999 to 7999 BCD)
3 digits BCD, 12 bits
3 bits of digit 4 (0 to 7)
Sign bit (0: Positive; 1: Negative)
Conversion Instructions
Section 5-17
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...