Double Signed Binary To Bcd: Bdsl(473) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Conversion Instructions
Flags

3-12-17 DOUBLE SIGNED BINARY TO BCD: BDSL(473)

Purpose
Ladder Symbol
526
C = 0002 (Output Data Range: –999 to 9999 BCD)
C = 0003 (Output Data Range: –1999 to 9999 BCD)
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.
Setting
Signed binary values
C=0000 FC19 to FFFF and 0000 to 03E7
C=0001 E0C1 to FFFF and 0000 to 1F3F
C=0002 FC19 to FFFF and 0000 to 270F
C=0003 F831 to FFFF and 0000 to 270F
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
Converts double signed binary data to double signed BCD data.
BDSL(473)
C
S
D
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
F: Negative (–)
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
A: Negative (–1)
F: Negative (–)
–999 to –1 and 0 to 999
–7999 to –1 and 0 to 7999
–999 to –1 and 0 to 9999
–1999 to –1 and 0 to 9999
Operation
ON if C is not within the specified range of 0000 to 0003.
ON if C=0000 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 03E7).
ON if C=0001 and the source data is not within the allowed
ranges (E0C1 to FFFF or 0000 to 1F3F).
ON if C=0002 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 270F).
ON if C=0003 and the source data is not within the allowed
ranges (F831 to FFFF or 0000 to 270F).
OFF in all other cases.
ON if D is 0000 after execution.
OFF in all other cases.
ON if C=0000 or 0001 and the result's sign bit is ON after
execution.
ON if C=0002 and the leftmost digit of the result is F.
ON if C=0003 and the leftmost digit of the result is A or F.
OFF in all other cases.
C: Control word
S: First source word
D: First destination word
Section 3-12
Signed BCD values

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents