Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 653

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

Advertisement

Floating-point Math Instructions
Description
Flags
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SIN(460) calculates the sine of the angle (in radians) expressed as a 32-bit
floating-point value in S+1 and S and places the result in R+1 and R.
(The floating point source data must be in IEEE754 format.)
SIN
S+1
R+1
Specify the desired angle (–65,535 to 65,535) in radians in S+1 and S. 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 from degrees to
radians, see 3-15-22 LOGARITHM: LOG(468) DEGREES TO RADIANS:
RAD(458).
The following diagram shows the relationship between the angle and result.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
S
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#00000000 to #FFFFFFFF
(binary)
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Source (32-bit floating-point data)
S
Result (32-bit floating-point data)
R
R
S: Angle (radian) data
R: Result (sine)
Operation
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.
OFF
Section 3-15
R
---
613

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents