487
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Floating-point Math Instructions
3
SINQ/COSQ/TANQ
SINQ/COSQ/TANQ
Applicable Program Areas
Operands
z Operand Specifications
Instruction Mnemonic Variations
Function
code
Function
HIGH-SPEED SINE SINQ @SINQ 475
Calculates the sine of a 32-bit floating-point num-
ber (in radians) and places the result in the speci-
fied result words.
HIGH-SPEED COSINE COSQ @COSQ 476
Calculates the cosine of a 32-bit floating-point
number (in radians) and places the result in the
specified result words.
HIGH-SPEED TANGENT TANQ @TANQ 477
Calculates the tangent of a 32-bit floating-point
number (in radians) and places the result in the
specified result words.
Symbol
SINQ COSQ TANQ
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S First source word REAL 2
R First result word REAL 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers
TK CF
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
S
OK OK OK OK OK OK OK OK OK OK
OK
--- --- OK --- --- --- ---
R ---
S: First source
word
R: First result
word
SINQ(475)
S
R
S: First source
word
R: First result
word
COSQ(476)
S
R
S: First source
word
R: First result
word
TANQ(477)
S
R