Omron CS1G/H-CPUxxH Instructions Manual page 452

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

Advertisement

Conversion Instructions
Operand Specifications
Description
Flags
Examples
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM 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
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.
×10
×10
×10
×10
7
6
5
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
CIO 0000 to CIO 6142
W000 to W510
H000 to H510
A000 to A958
T0000 to T4094
C0000 to C4094
D00000 to D32766
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+1, S are not BCD.
OFF in all other cases.
ON if the result is 0.
OFF in all other cases.
OFF
R+1
×10
×10
×10
×10
×16
×16
×16
4
3
2
1
0
7
6
Section 3-12
R
A448 to A958
R
(BIN)
R
×16
×16
×16
×16
×16
5
4
3
2
1
0
431

Advertisement

Table of Contents
loading

Table of Contents