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

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

Advertisement

Conversion Instructions
Description
Note
524
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
BCDS(471) converts signed binary data to signed BCD data. First the signed
binary data in word 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 cor-
rect, the signed binary data in S is converted to signed BCD and output to D.
If the source data is incorrect, the Error Flag will be turned ON and the
instruction will not be executed.
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. BCDS(471) can
be used to convert 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 to 999 BCD)
C = 0001 (Output Data Range: –7999 to 7999 BCD)
C
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #0003
---
(binary)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to 1–2048 to +2047 ,IR5
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Signed BCD format
specified in C
Signed BCD
3 digits BCD, 12 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
3 digits BCD, 12 bits
3 bits of digit 4 (0 to 7)
Sign bit (0: Positive; 1: Negative)
Section 3-12
S
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents