3. Instructions
SIND/COSD/TAND
Instruction
DOUBLE SINE
DOUBLE COSINE
DOUBLE TANGENT
SIND
SIND(851)
Symbol
S
D
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
D
First destination word
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
S
OK
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
530
Mnemonic
Variations
SIND
@SIND
COSD
@COSD
TAND
@TAND
S: First source word
D: First destination
word
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
addresses
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
P_ER
• ON if the source data is not recognized as floating-point data.
• 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.
P_EQ
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
P_OF
• SIND, COSD
Unchanged
• TAND
•ON if the absolute value of the result is too large to be expressed as a double-precision (64-bit) float-
ing-point value.
•OFF in all other cases.
P_UF
Unchanged
P_N
• ON if the result is negative.
• OFF in all other cases.
Function
code
Calculates the sine of a double-precision (64-bit)
851
floating-point number (in radians) and places the
result in the specified destination words.
Calculates the cosine of a double-precision (64-
852
bit) floating-point number (in radians) and places
the result in the specified destination words.
Calculates the tangent of a double-precision (64-
853
bit) floating-point number (in radians) and places
the result in the specified destination words.
COSD
COSD(852)
S
S: First source word
D
D: First destination
word
Subroutines
OK
Data type
LREAL
LREAL
Registers
Con-
stants
*DM
DR
IR
*EM
OK
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
TAND
TAND(853)
S
S: First source word
D
D: First destination
word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
4
4
Flags
Pulse
bits
Indirect
TK
CF
using IR
OK
---
---
---
TR
bits
---
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?