230
1 1 0 0 0 0 1 1
1 0 1 1 1 0 0 0
$43
$38
First ASCII data to be converted: Rightmost 8 bits
Converted to binary data
*
*
*
: Not changed.
Digit 3
Digit 2
Digit 1
Digit 0
C
8
First digit to receive converted data: 1
Number of digits to be converted: 2
D:D00300
Parity bits: Even
5-17-16 SIGNED BCD-TO-BINARY: BINS(275)
(275)
BINS C S D
Ladder Symbol
Variations
↑
BINS(275)
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, BINS(275) is not executed. When the
execution condition is ON, BINS(275) converts the data in a specified source
word (S) from signed BCD to signed binary, and outputs the result to a specified
destination word (D). The format of the source word is determined by the con-
tents of the control word (C).
Note Special I/O Units sometimes output signed BCD data. Calculations using this
data will normally be easier if it is first converted to signed binary data by means
of BINS(275) or BISL(277).
The input data format and range designations for the various control word con-
tents are as follows:
When C = 0000 (Input 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 (Input 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...