EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 172

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
132
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
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
S
N
R
AVG(195)
S: Source word
N: Number of
c
ycles
R: Result word
R + N + 1
R
R + 1
R + 2
R + 3
Calculates the average value of an input word for the specified
number of cycles.
S: Source word
N: Number of cycles
Average
N values
Average Valid Flag
Pointer

Table of Contents

Related product manuals