502
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
Y
n
Y
n+1
X
n
X
n+1
S
S
−
X
n
X
n+1
−
X
n
Y
n+1
−
Y
n
f(Y)=
Y
n+1
−
Y
n
X
n+1
−
X
n
D
Y
n
+
(S
−
X
n
)
Y (binary data)
Equation:
Calculation
result
X (binary data)
Input data
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...