Omron CS1G/H-CPUxxH Instructions Manual page 522

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Special Math Instructions
15 determines whether the input is BCD or binary: OFF specifies binary and
ON specifies BCD.
16-bit BCD16-bit binary (signed
or unsigned) or 16-bit BCD data
C+1
X0 (*1)
C+2
Y0
C+3
X1
C+4
Y1
C+5
X2
C+6
Y2
Xn
Yn
C+ (2m+1)
Xm
C+ (2m+2)
Ym
Note: Write X
(max. X
m
value in the table) in word
C+1 when the I/O data in
S and D contain signed
data (bit 11 of C = 0).
Note The X coordinates must be in ascending order: X
values of (X
, Y
) as binary data, regardless of the data format specified in
n
n
control word C.
Operation of the Linear Extrapolation Function
APR(069) processes the input data specified in S with the following equation
and the line-segment data (X
The result is output to the destination word(s) specified with D.
X
0
A
1. For S < X
0
Converted value = Y
≤ S ≤ X
2. For X
0
Converted value = Y
32-bit signed binary data
X0 (rightmost 16 bits)
C+1
X0 (leftmost 16 bits)
C+2
Y0 (rightmost 16 bits)
C+3
Y0 (leftmost 16 bits)
C+4
X1 (rightmost 16 bits)
C+5
X1 (leftmost 16 bits)
C+6
Y1 (rightmost 16 bits)
C+7
Y1 (leftmost 16 bits)
C+8
to
to
Xn (rightmost 16 bits)
C+ (4n+1)
Xn (leftmost 16 bits)
C+ (4n+2)
Yn (rightmost 16 bits)
C+ (4n+3)
Yn (leftmost 16 bits)
C+ (4n+4)
to
to
Xm (rightmost 16 bits)
C+ (4m+1)
Xm (leftmost 16 bits)
C+ (4m+2)
Ym (rightmost 16 bits)
C+ (4m+3)
Ym (leftmost 16 bits)
C+ (4m+4)
, Y
) specified in the table beginning at C+1.
n
n
Y (Binary data)
Y
max
Y
0
B
0
, if X
< S < X
max
n
n+1
+ 1 − Y
+[{Y
}/{X
n
n
n
Section 3-14
Floating-point data
X0 (rightmost 16 bits)
C+1
X0 (leftmost 16 bits)
C+2
Y0 (rightmost 16 bits)
C+3
Y0 (leftmost 16 bits)
C+4
X1 (rightmost 16 bits)
C+5
X1 (leftmost 16 bits)
C+6
Y1 (rightmost 16 bits)
C+7
Y1 (leftmost 16 bits)
C+8
to
to
Xn (rightmost 16 bits)
C+ (4n+1)
Xn (leftmost 16 bits)
C+ (4n+2)
Yn (rightmost 16 bits)
C+ (4n+3)
Yn (leftmost 16 bits)
C+ (4n+4)
to
to
Xm (rightmost 16 bits)
C+ (4m+1)
Xm (leftmost 16 bits)
C+ (4m+2)
Ym (rightmost 16 bits)
C+ (4m+3)
Ym (leftmost 16 bits)
C+ (4m+4)
< X
< ... < X
. Input all
1
2
m
X
max
X (Binary data)
C
+ 1 − X
}] × [Input data S − X
n
n
}
n
501

Advertisement

Table of Contents
loading

Table of Contents