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

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

Advertisement

Conversion Instructions
Description
Flags
Examples
486
Area
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
BINL(058) converts the 8-digit BCD data in S and S+1 to 8-digit hexadecimal
(32-bit binary) data and writes the result to R and R+1.
S+1
(BCD)
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
The following diagram shows an example of 8-digit BCD-to-binary conversion.
7
6
5
10
10
10
10
When CIO 000000 is ON in the following example, the 8-digit BCD value in
CIO 0010 and CIO 0011 is converted to hexadecimal and stored in D00200
and D00201.
S
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+1, S are not BCD.
OFF in all other cases.
ON if the result is 0.
OFF in all other cases.
OFF
R+1
4
3
2
1
0
7
6
10
10
10
10
16
16
16
Section 3-12
R
R
(BIN)
R
4
5
3
2
1
0
16
16
16
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents