Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 567

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Description
Note
Area
Index Registers
Indirect addressing
using Index Registers
BDSL(473) converts double signed binary data to double signed BCD data.
First the double signed binary data in S+1 and S is checked to verify that it is
within the valid range for the signed BCD format specified in the control word
(C). If the source data is correct, the double signed binary data in S+1 and S
is converted to double signed BCD and output to D+1 and D. If the source
data is incorrect, the Error Flag will be turned ON and the instruction will not
be executed.
Signed binary
Signed binary
1. Values of –0 in the source data will be treated as 0 and will not cause an
error.
2. Some Special I/O Units require signed BCD data inputs. BDSL(473) can
be used to convert double signed binary data for output to these Units.
The control word specifies the signed BCD format that will be used for the
result, as shown below.
C = 0000 (Output Data Range: –999 9999 to 999 9999 BCD)
S+1
C = 0001 (Output Data Range: –7999 9999 to 7999 9999 BCD)
S+1
C = 0002 (Output Data Range: –999 9999 to 9999 9999 BCD)
S+1
C
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Signed BCD format
specified in C
Signed BCD
Signed BCD
S
7 digits BCD, 28 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
S
7 digits BCD, 28 bits
3 bits of digit 8 (0 to 7)
Sign bit (0: Positive; 1: Negative)
S
Section 3-12
S
D
7 digits BCD, 28 bits
0 to 9: Eighth digit BCD
F: Negative (–)
527

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents