94
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
SCALING 3
SCL3
@SCL3
487
Output
Required
680
AVERAGE
AVG
195
Output
Required
683
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.