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

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

Advertisement

Conversion Instructions
Description
Flags
Precautions
Example
488
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.
3
16
In this example, N words of binary data is converted to BCD data.
If N = 3, the three words of binary starting from D00010 will be converted to
binary data one word at a time when CIO 00000 turns ON. The resulting BCD
data will be stored starting from D00100.
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
(BIN)
R
(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
2
1
0
3
16
16
16
10
10
Section 3-12
R
2
1
0
10
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents