EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #460 background imageLoading...
Page #460 background image
3. Instructions
422
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z BDSL
The following table shows the possible signed binary values for each signed BCD format. An error will
occur if the source data is not within the allowed range for the specified signed BCD format.
Precautions
Values of -0 in the source data will be treated as 0 and will not cause an error.
Hint
Some Special I/O Units require signed BCD data inputs. BCDS(471)/BDSL(473) can be used to
convert signed binary data for output to these Units.
Example Programming
z BCDS
When 0.00 is ON, it is first checked if the data range of D100 is based on the data format specification
0001. Here the check result is okay, so the signed binary data in data memory D100 is converted to
signed BCD and output to D200.
z BDSL
When CIO 0.00 is ON in the following example, the double signed binary data in D101 and D100 are
checked against the format specified in the control word (0003). The source data is correct, so the
double signed binary data in D101 and D100 is converted to double signed BCD and output to D201
and D200.
BDSL(473) converts the double singled binary
data in S+1 and S to signed BCD data and
writes the result in D+1 and D according to the
format setting in the control word (C).
Setting Signed binary values Signed BCD values
C=0000
FF67 6981 to FFFF FFFF –999 9999 to –1
0000 0000 to 0098 967F 0 to 999 9999
C=0001
FB3B 4C01 to FFFF FFFF –7999 9999 to –1
0000 0000 to 04C4 B3FF 0 to 7999 9999
C=0002
FF67 6981 to FFFF FFFF –999 9999 to –1
0000 0000 to 05F5 E0FF 0 to 9999 9999
C=0003
FECE D301 to FFFF FFFF –1999 9999 to –1
0000 0000 to 05F5 E0FF 0 to 9999 9999
Signed BCD
Signed BCD
Signed binary
Signed binary
Signed BCD format
specified in C
S: D100
E 0 C 1
D: D200
F 9 9 9
0.00
D100
D200
BCDS
1
Signed binary data
Signed BCD data (–7999)
S+1: D101
F F 8 B
D+1: D201
F 7 6 5
S: D100
3 4 4 F
D: D200
4 3 2 1
0.00
D100
D200
Double signed binary data
Double signed BCD data
(–7,654,321)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals