![Omron CJ1G-CPUxx Instructions Manual Download Page 726](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491726.webp)
705
Data Control Instructions
Section 3-18
Description
SCL(194) is used to convert the unsigned binary data contained in the source
word S into unsigned BCD data and place the result in the result word R
according to the linear function defined by points (As, Ad) and (Bs, Bd). The
address of the first word containing the coordinates of points (As, Ar) and (Bs,
Br) is specified for the first parameter word P1. These points define by 2 val-
ues (As and Bs) before scaling and 2 values (Ar and Br) after scaling.
The following equations are used for the conversion.
Points A and B can define a line with either a positive or negative slope. Using
a negative slope enables reverse scaling.
The result will be rounded to the nearest integer. If the result is less than
0000, 0000 will be output as the result. If the result is greater than 9999, 9999
will be output.
Timer Area
T0000 to T4095
T0000 to T4092
T0000 to T4095
Counter Area
C0000 to C4095
C0000 to C4092
C0000 to C4095
DM Area
D00000 to
D32767
D00000 to
D32764
D00000 to
D32767
EM Area without bank
E00000 to
E32767
E00000 to
E32764
E00000 to
E32767
EM Area with bank
En_00000 to
En_32767
(n = 0 to C)
En_00000 to
En_32764
(n = 0 to C)
En_00000 to
En_32767
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
Data Registers
DR0 to DR15
---
DR0 to DR15
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
P1
R
(Bd – Ad)
BCD conversion of (Bs – As)
The slope of the line is as follows:
(Bd – Ad)
BCD conversion of (Bs – As)
R = Bd–
BCD conversion of (Bs – S)
R = Bd –
×
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...