576
Special Math Instructions Section 3-14
3. X
max
< S
Converted value = Y
max
Up to 256 endpoints can be stored in the line-segment data table beginning at
C+1. The following 5 kinds of I/O data can be used:
• 16-bit unsigned BCD data
• 16-bit unsigned binary data
• 16-bit signed binary data (CS1-H/CJ1-H/CJ1M Only)
• 32-bit signed binary data (CS1-H/CJ1-H/CJ1M Only)
• Single-precision floating-point data (CS1-H/CJ1-H/CJ1M Only)
Setting the Data Format in Control Word C
• 16-bit Unsigned BCD Data
The input data and/or the output data can be 16-bit unsigned BCD data.
Also, the linear extrapolation function can be set to operate on the value
specified in S directly or on X
m
–S. (X
m
is the maximum value of X in the
line-segment data.)
Setting name Bit in C Setting
Input data (S) format 15 0: Binary
1: BCD
Output data (D) format 14 0: Binary
1: BCD
Source data form 13 0: Operate on S
1: Operate on X
m
–S
Signed data specification for S and D 11 0: Unsigned data
Data length specification for S and D 10 Invalid (fixed at 16 bits)
Floating-point specification 09 0: Integer data
Yn
Yn+1
Xn Xn+1S
S−Xn
Xn+1−Xn
Yn+1−Yn
f(Y)=
Y
n+1−Yn
Xn+1−Xn
D
Y
n+
(S−X
n)
Y (binary data)
Equation:
Calculation
result
X (binary data)
Input data