Data Control Instructions
Operand Specifications
Description
806
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
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.
∆Y
R = Binary conversion of ∆X x ((Binary conversion of S)+(Offset))
The slope of the line is ∆Y/∆X.
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.
S
CIO 0000 to CIO
CIO 0000 to CIO
6143
6139
W000 to W511
W000 to W507
H000 to H511
H000 to H507
A000 to A447
A000 to A443
A448 to A959
A448 to A955
T0000 to T4095
T0000 to T4091
C0000 to C4095
C0000 to C4091
D00000 to
D00000 to
D32767
D32763
E00000 to
E00000 to
E32767
E32763
En_00000 to
En_00000 to
En_32767
En_32763
(n = 0 to C)
(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)
---
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
Section 3-18
P1
R
CIO 0000 to CIO
6143
W000 to W511
H000 to H511
A448 to A959
T0000 to T4095
C0000 to C4095
D00000 to
D32767
E00000 to
E32767
En_00000 to
En_32767
(n = 0 to C)
DR0 to DR15
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?
Questions and answers