Omron CS1G/H-CPUxxH Instructions Manual page 454

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
Precautions
Example
3-12-4 DOUBLE BINARY-TO-DOUBLE BCD: BCDL(059)
Purpose
Ladder Symbol
Variations
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
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.
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.
×16
3
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
S
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
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
R
(BIN)
(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.
R
×16
×16
×16
×10
×10
2
1
0
3
BCDL(059)
S
S: First source word
R
R: First result word
Section 3-12
R
×10
×10
2
1
0
BCDL(059)
@BCDL(059)
Not supported
433

Advertisement

Table of Contents
loading

Table of Contents