Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 153

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Floating-point Math Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DEGREES TO
RAD(458)
RADIANS
RAD
@RAD
458
S: 1st source
word
R: 1st result word
RADIANS TO
DEG(459)
DEGREES
DEG
@DEG
459
S: 1st source
word
R: 1st result word
SINE
SIN(460)
SIN
@SIN
460
S: 1st source
word
R: 1st result word
HIGH-SPEED
SINQ (475)
SINE
(CJ1-H-R CPU
only)
SINQ
@SINQ
S: 1st source
475
word
R: 1st result word
COSINE
COS(461)
COS
@COS
461
S: 1st source
word
R: 1st result word
HIGH-SPEED
COS(476)
COSINE
(CJ1-H-R CPU
only)
COS
@COS
S: 1st source
476
word
R: 1st result word
Converts a 32-bit floating-point number from degrees to radians and
places the result in the specified result words.
S
S+1
R
R+1
Converts a 32-bit floating-point number from radians to degrees and
places the result in the specified result words.
S
S+1
R
R+1
Calculates the sine of a 32-bit floating-point number (in radians) and
places the result in the specified result words.
S
SIN
S+1
R
R+1
Calculates the sine of a 32-bit floating-point number (in radians) and
places the result in the specified result words.
S
R
SIN
S+1
R+1
Calculates the cosine of a 32-bit floating-point number (in radians)
and places the result in the specified result words.
S
COS
S+1
R
R+1
Calculates the cosine of a 32-bit floating-point number (in radians)
and places the result in the specified result words.
S
COS
S+1
R
R+1
Function
Source (degrees, 32-bit
S
floating-point data)
Result (radians, 32-bit
R
floating-point data)
Source (radians, 32-bit
S
floating-point data)
Result (degrees, 32-bit
R
floating-point data)
S
R
S
R
S
R
S
R
Section 3-13
Location
Execution condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
115

Advertisement

Table of Contents
loading

Table of Contents