![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489143.webp)
122
Data Control Instructions
Section 3-16
SCALING 3
SCL3
@SCL3
487
Output
Required
AVERAGE
AVG
195
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: Source word
P1: 1st parameter
word
R: Result word
SCL3(487)
S
P1
R
R (signed binary)
S (signed BCD)
Positive Offset
Offset
R (signed binary)
S (signed BCD)
Negative Offset
Offset
∆
X
∆
Y
R (signed binary)
S (signed BCD)
Offset of 0000
∆
X
∆
Y
Max
conver-
sion
Min.
conver-
sion
Max conversion
Min. conversion
Max
conver-
sion
Min. conversion
∆
X
∆
Y
Converts signed BCD data into signed binary data according to the
specified linear function. An offset can be input in defining the linear
function.
S: Source word
N: Number of
cycles
R: Result word
AVG(195)
S
N
R
S: Source word
N: Number of cycles
Average
N values
Pointer
Average Valid Flag
R + N + 1
R
R + 1
R + 2
R + 3
Calculates the average value of an input word for the specified number of
cycles.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...