Double Binary-To-Double Bcd: Bcdl(103) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Conversion Instructions
S+1: CIO 0011
0
0
7
6
x10
x10
0
0
7
6
x16
x16
R+1: D00201

5-17-4 DOUBLE BINARY-TO-DOUBLE BCD: BCDL(103)

Ladder Symbol
(103)
BCDL
Variations
j BCDL(103)
Description
Precautions
Flags
Example
0000
00
210
S: CIO 0010
2
0
0
0
5
5
4
3
2
x10
x10
x10
x10
x10
0
3
0
D
7
5
4
3
2
x16
x16
x16
x16
x16
R: D00200
S
R
When the execution condition is OFF, BCDL(103) is not executed. When the
execution condition is ON, BCDL(103) converts the 32-bit binary content of S
and S+1 into eight digits of BCD data and outputs the converted data to R and
R+1.
If the content of S exceeds 05F5E0FF, the converted result will exceed
99999999, BCDL(103) will not be executed, and the Error Flag (A50003) will be
turned ON. When the instruction is not executed, the content of R and R+1 re-
main unchanged.
Note Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
Content of S and S+1 exceeds 05F5E0FF.
EQ (A50006):
0 has been placed in R
When CIO 000000 is ON in the following example, the hexadecimal value in
CIO 0011 and CIO 0010 is converted to a BCD value and stored in D00200 and
D00201.
(103)
BCDL
0010 D00100
4
0
200050=3X16
1
0
x10
2
1
0
x16
Operand Data Areas
S: Source word
CIO, G, A, T, C, DM
R: Result word
CIO, G, A, DM
S + 1
Binary
R + 1
BCD
Section 5-17
2
1
0
+13X16
+7X16
+2X16
S
R
Address Instruction
00000
LD
00001
BCDL(103)
Operands
000000
0010
D00100

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents