EasyManuals Logo

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 #422 background imageLoading...
Page #422 background image
3. Instructions
384
CS/CJ/NSJ Series Instructions Reference Manual (W474)
BCD/BCDL
Applicable Program Areas
Operands
S: Source Word (BCD)/First Source Word (BCDL)
•BCD
S must be between 0000 and 270F hexadecimal (0000 and 9999 decimal).
•BCDL
The content of S+1 and S must be between 0000 0000 and 05F5 E0FF hexadecimal (0000 0000
and 9999 9999 decimal).
Note S to S+1 and D to D+1 must each be the same area type.
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
BINARY TO BCD BCD @BCD 024
Converts a word of binary data to a word of BCD
data.
DOUBLE BINARY TO
DOUBLE BCD
BCDL @BCDL 059
Converts 8-digit hexadecimal (32-bit binary) data
to 8-digit BCD data.
Symbol
BCD BCDL
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
BCD BCDL BCD BCDL
S
BCD: Source word
BCDL: First source word
UINT UDINT 1 2
R
BCD: Result word
BCDL: First result word
WORD DWORD 1 2
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
BCD
S
OK OK OK OK OK OK OK OK OK OK
---
OK --- OK --- --- --- ---
R
BCDL
S
OK OK OK OK OK OK OK OK OK OK
---
--- --- OK --- --- --- ---
R
Name Label
Operation
BCD BCDL
Error Flag ER • ON if the content of S exceeds 270F (9999 dec-
imal).
• OFF in all other cases.
• ON if the contents of S and S+1 exceed 05F5
E0FF (9999 9999 decimal).
• OFF in all other cases.
Equals Flag = • ON if the result is 0000.
• OFF in all other cases.
• ON if the result is 0.
• OFF in all other cases.
S: Source word
D: Result word
BCD(024)
S
R
S: First source word
D: First result word
BCDL(059)
S
R

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