
805
Data Control Instructions
Section 3-18
Operand Specifications
Description
SCL3(487) is used to convert the signed BCD data (the BCD data contains
the absolute value and the Carry Flag shows the sign) contained in the source
word S into signed binary data and place the result in the result word R
according to the linear function defined by the slope (
∆
X,
∆
Y) and an offset.
The maximum and minimum conversion values are also specified. The
address of the first word containing
∆
X,
∆
Y, the offset, the maximum conver-
sion, and the minimum conversion is specified for the first parameter word P1.
The sign of the result is indicated by the status of the Carry Flag (ON: nega-
tive, OFF: positive). Use STC(040) and CLC(041) to turn the Carry Flag ON
and OFF.
The following equations are used for the conversion.
The offset and slope can be a positive value, 0, or a negative value. Using a
negative slope enables reverse scaling.
The result will be rounded to the nearest integer.
Area
S
P1
R
CIO Area
CIO 0000 to CIO
6143
CIO 0000 to CIO
6139
CIO 0000 to CIO
6143
Work Area
W000 to W511
W000 to W507
W000 to W511
Holding Bit Area
H000 to H511
H000 to H507
H000 to H511
Auxiliary Bit Area
A000 to A447
A448 to A959
A000 to A443
A448 to A955
A448 to A959
Timer Area
T0000 to T4095
T0000 to T4091
T0000 to T4095
Counter Area
C0000 to C4095
C0000 to C4091
C0000 to C4095
DM Area
D00000 to
D32767
D00000 to
D32763
D00000 to
D32767
EM Area without bank
E00000 to
E32767
E00000 to
E32763
E00000 to
E32767
EM Area with bank
En_00000 to
En_32767
(n = 0 to C)
En_00000 to
En_32763
(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
∆
Y
R = Binary conversion of
∆
X
x ((Binary conversion of S)+(Offset))
The slope of the line is
∆
Y/
∆
X.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...