![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268716.webp)
677
Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Section 3-16
Specify the desired angle (–65,535 to 65,535) in radians in words S to S+3. If
the angle is outside of the range –65,535 to 65,535, an error will occur and the
instruction will not be executed. For information on converting between
degrees and radians, see
3-16-9 DOUBLE DEGREES TO RADIANS:
RADD(849)
or
3-16-10 DOUBLE RADIANS TO DEGREES: DEGD(850)
.
The following diagram shows the relationship between the angle and result.
Flags
Precautions
The source data in words S to S+3 must be in IEEE754 floating-point data for-
mat.
3-16-12 DOUBLE COSINE: COSD(852)
Purpose
Calculates the cosine of a double-precision (64-bit) floating-point number (in
radians) and places the result in the specified destination words.
This instruction is supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU Units
only.
Ladder Symbol
Variations
Applicable Program Areas
R
S: Angle (radian) data
R: Result (sine)
Name
Label
Operation
Error Flag
ER
ON if the source data is not a number (NaN).
ON if the absolute value of the source data exceeds
65,535.
OFF in all other cases.
Equals Flag
=
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag
OF
Unchanged
Underflow Flag
UF
Unchanged
Negative Flag
N
ON if the result is negative.
OFF in all other cases.
COSD(852)
S
D
S
: First source word
D
: First destination word
Variations
Executed Each Cycle for ON Condition
COSD(852)
Executed Once for Upward Differentiation
@COSD(852)
Executed Once for Downward Differentiation
Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Содержание 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...