Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 530

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
Precautions
Examples
490
Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
BCDL(059) converts the 8-digit hexadecimal (32-bit binary) data in S and S+1
to 8-digit BCD data and writes the result to R and R+1.
S+1
(BCD)
Name
Label
Error Flag
ER
Equals Flag
=
The content of S+1 and S must not exceed 05F5 E0FF (9999 9999 decimal).
The following diagram shows an example of 8-digit BCD-to-binary conversion.
7
6
5
16
16
16
16
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.
S
E00000 to E32766
En_00000 to En_32766
(n = 0 to C)
@ 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)
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
S
R+1
(BCD)
(BIN)
Operation
ON if the contents of S and S+1 exceed 05F5 E0FF
(9999 9999 decimal).
OFF in all other cases.
ON if the result is 0.
OFF in all other cases.
R+1
4
3
2
1
0
7
6
16
16
16
16
10
10
10
Section 3-12
R
R
(BIN)
R
5
4
3
2
1
0
10
10
10
10
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents