Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 129

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SCALING 3
SCL3(487)
SCL3
@SCL3
487
S: Source word
P1: 1st parameter
word
R: Result word
AVERAGE
AVG(195)
AVG
195
S: Source word
N: Number of
cycles
R: Result word
92
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
Positive Offset
P1
R
R (signed binary)
Max
conver-
sion
Offset
Min.
conver-
S (signed BCD)
sion
Offset of 0000
R (signed binary)
Max
conver-
sion
Min. conversion
Calculates the average value of an input word for the specified
number of cycles.
S
S: Source word
N
R
R
R + 1
Average Valid Flag
R + 2
R + 3
R + N + 1
Function
Negative Offset
R (signed binary)
Max conversion
Y
X
S (signed BCD)
Offset
Min. conversion
Y
X
S (signed BCD)
N: Number of cycles
Pointer
N values
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Output
672
Required
Y
X
Output
675
Required
Average

Advertisement

Table of Contents
loading

Table of Contents