Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 514

Table of Contents

Advertisement

3. Instructions
SIN/COS/TAN
Instruction
SINE
COSINE
TANGENT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
476
Mnemonic
Variations
SIN
@SIN
COS
@COS
TAN
@TAN
SIN
SIN(460)
S: First source
S
word
R: First result
R
word
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
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.
=
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
OF
OFF
UF
OFF
N
• ON if the result is negative.
• OFF in all other cases.
Function
code
Calculates the sine of a 32-bit floating-point num-
460
ber (in radians) and places the result in the speci-
fied result words.
Calculates the cosine of a 32-bit floating-point
461
number (in radians) and places the result in the
specified result words.
Calculates the tangent of a 32-bit floating-point
462
number (in radians) and places the result in the
specified result words.
COS
COS(461)
S: First source
S
word
R: First result
R
word
Subroutines
OK
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
TAN
TAN(462)
S: First source
S
R: First result
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
REAL
2
REAL
2
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
word
word
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents