Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 449

Table of Contents

Advertisement

BCDS/BDSL
Instruction
SIGNED BINARY TO BCD
DOUBLE SIGNED BINARY TO
BCD
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control word
BCDS: Source word
S
BDSL: First source word
BCDS: Destination word
D
BDSL: First destination word
C: Control Word
Specifies the signed BCD format. C must be 0000 to 0003.
S: Source Word
BCDS
Setting
C=0
C=1
C=2
C=3
D: Destination Word
BCDS
• C = 0 (Output Data Range: -999 to 999 BCD)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
BCDS
@BCDS
BDSL
@BDSL
BCDS
BCDS(471)
C: Control word
C
S: Source word
S
D
D: Destination word
Block program areas
Step program areas
OK
OK
Description
Allowed values for S
FC19 to FFFF or 0000 to 03E7
E0C1 to FFFF or 0000 to 1F3F
FC19 to FFFF or 0000 to 270F
F831 to FFFF or 0000 to 270F
3 digits BCD, 12 bits
Sign bit (0: Positive; 1: Negative)
Status of 3 bits: 0
Function
code
Converts one word of signed binary data to one
471
word of signed BCD data.
Converts double signed binary data to double
473
signed BCD data.
BDSL(473)
C
S
D
Subroutines
Interrupt tasks
OK
OK
Data type
BCDS
BDSL
UINT
UINT
INT
DINT
WORD
DWORD
BDSL
Setting
Allowed values for S+1 and S
C=0
FB3B 4C01 to FFFF FFFF or
C=1
C=2
FECE D301 to FFFF FFFF or
C=3
3. Instructions
Function
BDSL
C: Control word
S: First source word
D: First destination word
SFC action or transition
programs
OK
Size
BCDS
BDSL
1
1
1
2
1
2
FF67 6981 to FFFF FFFF or
0000 0000 to 0098 967F
0000 0000 to 04C4 B3FF
FF67 6981 to FFFF FFFF or
0000 0000 to 05F5 E0FF
0000 0000 to 05F5 E0FF
411
3

Advertisement

Table of Contents
loading

Table of Contents