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 #459 background imageLoading...
Page #459 background image
421
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
BCDS/BDSL
z Operand Specifications
BCDS
BDSL
Flags
Function
z BCDS
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.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
C
OK OK OK OK OK OK OK OK OK OK
OK
OK --- OK --- --- --- ---S
---
D
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
C
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---S
--- ---
D
Name Label Operation
Error Flag ER • ON if C is not within the specified range of 0000 to 0003.
• ON if C=0 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 03E7).
• ON if C=1 and the source data is not within the allowed
ranges (E0C1 to FFFF or 0000 to 1F3F).
• ON if C=2 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 270F).
• ON if C=3 and the source data is not within the allowed
ranges (F831 to FFFF or 0000 to 270F).
• OFF in all other cases.
• ON if C is not within the specified range of 0000 to 0003.
• ON if C=0 and the source data is not within the range:
• FF67 6981 to FFFF FFFF or 0000 0000 to 0098 967F.
• ON if C=1 and the source data is not within the range:
• FB3B 4C01 to FFFF FFFF or 0000 0000 to 04C4 B3FF.
• ON if C=2 and the source data is not within the range:
• FF67 6981 to FFFF FFFF or 0000 0000 to 05F5 E0FF.
• ON if C=0003 and the source data is not within the range:
• FECE D301 to FFFF FFFF or 0000 0000 to 05F5 E0FF.
• OFF in all other cases.
Equal Flag = • ON if D is 0000 after execution.
• OFF in all other cases.
Negative Flag N • ON if C=0 or 1 and the result's sign bit is ON after execution.
• ON if C=2 and the leftmost digit of the result is F.
• ON if C=3 and the leftmost digit of the result is A or F.
• OFF in all other cases.
BCDS(471) converts the signed binary data in
S to signed BCD data and writes the result in
D according to the format setting in the control
word (C).
Setting Signed binary values Signed BCD values
C=0 FC19 to FFFF and 0000 to 03E7 –999 to –1 and 0 to 999
C=1 E0C1 to FFFF and 0000 to 1F3F –7999 to –1 and 0 to 7999
C=2 FC19 to FFFF and 0000 to 270F –999 to –1 and 0 to 9999
C=3 F831 to FFFF and 0000 to 270F –1999 to –1 and 0 to 9999
Signed BCD
Signed binary
Signed BCD format
specified in C

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