Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 651

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Floating-point Math Instructions
Operand Specifications
Description
612
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
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
DEG(459) converts the 32-bit floating-point number in S+1 and S from radians
to degrees and places the result in R+1 and R. (The floating point source data
must be in IEEE754 format.)
S+1
S
R+1
R
Radians are converted to degrees by means of the following formula:
Radians
180/ = degrees
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.
S
CIO 0000 to CIO 6142
W000 to W510
H000 to H510
A000 to A958
T0000 to T4094
C0000 to C4094
D00000 to D32766
E00000 to E32766
En_00000 to En_32766
(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)
#0000000 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 (radians, 32-bit floating-point data)
Result (degrees, 32-bit floating-point data)
.
Section 3-15
R
A448 to A958
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents