![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268616.webp)
577
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...