Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 413

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
BCD/BCDL
Instruction
BINARY TO BCD
DOUBLE BINARY TO
DOUBLE BCD
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
BCD: Source word
S
BCDL: First source word
BCD: Result word
R
BCDL: First result word
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.
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
BCD
OK
OK
OK
R
S
BCDL
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
376
Mnemonic
Variations
BCD
@BCD
BCDL
@BCDL
BCD
BCD(024)
S: Source word
S
D: Result word
R
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
ER
• ON if the content of S exceeds 270F (9999 dec-
imal).
• OFF in all other cases.
=
• ON if the result is 0000.
• OFF in all other cases.
Function
code
Converts a word of binary data to a word of BCD
024
data.
Converts 8-digit hexadecimal (32-bit binary) data
059
to 8-digit BCD data.
Subroutines
OK
Data type
BCD
UINT
WORD
DWORD
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
OK
---
OK
---
---
Operation
BCD
• ON if the contents of S and S+1 exceed 05F5
E0FF (9999 9999 decimal).
• OFF in all other cases.
• ON if the result is 0.
• OFF in all other cases.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
BCDL
BCDL(059)
S: First source word
S
D: First result word
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
BCDL
BCD
UDINT
1
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
---
OK
---
---
---
BCDL
BCDL
2
2
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents