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

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

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Description
Flags
672
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
RADD(849) converts the double-precision (64-bit) floating-point number in
words S to S+3 from degrees to radians and places the result in words D to
D+3. (The floating point source data must be in IEEE754 format.)
S+3CH
S+2CH
S+1CH
D+3CH
D+2CH
D+1CH
Degrees are converted to radians by means of the following formula:
Degrees
/180 = radians
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag will turn ON and the
result will be output as
If the absolute value of the result is less than the minimum value that can be
expressed as floating-point data, the Underflow Flag will turn ON and the
result will be output as 0.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
S
En_00000 to En_32764
(n = 0 to C)
@ 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)
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
SCH
Source (degrees, 64-bit floating-point data)
DCH
Result (radians, 64-bit floating-point data)
.
Operation
ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
ON if the absolute value of the result is too large to be
expressed as a double-precision floating-point value.
ON if the absolute value of the result is too small to be
expressed as a double-precision floating-point value.
ON if the result is negative.
OFF in all other cases.
Section 3-16
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents