![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268121.webp)
82
Instruction Functions
Section 2-2
SCALING 3
SCL3
@SCL3
487
Output
Required
805
AVERAGE
AVG
195
Output
Required
808
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SCL3(487)
S
P1
R
S
: Source word
P1
: 1st parameter
word
R
: Result word
X
Y
X
Y
X
Y
S (signed BCD)
Offset
S (signed BCD)
Negative Offset
Offset
∆
∆
S (signed BCD)
Offset of 0000
∆
∆
∆
∆
Converts signed BCD data into signed binary data according to the
specified linear function. An offset can be input in defining the linear
function.
Positive Offset
R (signed binary)
R (signed binary)
Max conversion
Max
conver-
sion
Min.
conver-
sion
Min. conversion
R (signed binary)
Max
conver-
sion
Min. conversion
AVG(195)
S
N
R
S
: Source word
N
: Number of
cycles
R
: Result word
R + N + 1
R
R + 1
R + 2
R + 3
Average Valid Flag
Pointer
Average
N values
N: Number of cycles
S: Source word
Calculates the average value of an input word for the specified
number of cycles.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...