Double Bcd To Double Binary: Binl(058) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

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

Advertisement

Conversion Instructions
Example

3-12-2 DOUBLE BCD TO DOUBLE BINARY: BINL(058)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
486
The following diagram shows an example BCD-to-binary conversion.
3
10
In this example, N words of BCD data is converted to binary data.
If N = 3, the three words of BCD starting from D00010 will be converted to
binary data one word at a time when CIO 00000 turns ON. The resulting
binary data will be stored starting from D00100.
00000
MOVR
MOVR
00000
NEXT
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
BINL(058)
S
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
R
2
1
0
3
10
10
10
16
D10
IR0
D00010
BCD#0100
D00011
BCD#0200
D00012
BCD#0300
D100
IR1
BCD
FOR
BIN
&3
D00100
Decimal &100
BIN
D00101
Decimal &200
,IR0+
D00102
Decimal &300
,IR1+
S: First source word
R: First result word
Step program areas
Subroutines
OK
S
CIO 0000 to CIO 6142
W000 to W510
H000 to H510
A000 to A958
T0000 to T4094
C0000 to C4094
D00000 to D32766
E00000 to E32766
Section 3-12
2
1
0
16
16
16
(Hexadecimal #0064)
(Hexadecimal #00C8)
(Hexadecimal #012C)
BINL(058)
@BINL(058)
Not supported
Interrupt tasks
OK
R
A448 to A958

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents