Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 426

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
Precautions
Example
3-11-4 DOUBLE BINARY-TO-DOUBLE BCD: BCDL(059)
Purpose
Ladder Symbol
Variations
Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
BCD(024) converts the binary data in S to BCD data and writes the result to
R.
(BIN)
R
Name
Label
Error Flag
ER
Equals Flag
=
The content of S must not exceed 270F (9999 decimal).
The following diagram shows an example BCD-to-binary conversion.
R
3
2
1
0
16
16
16
16
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
BCDL(059)
S
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
S
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(BCD)
Operation
ON if the content of S exceeds 270F (9999 decimal).
OFF in all other cases.
ON if the result is 0000.
OFF in all other cases.
3
2
1
0
10
10
10
10
S: First source word
R: First result word
Section 3-11
R
BCDL(059)
@BCDL(059)
Not supported
393

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents