Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 525

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Floating-point Math Instructions
3-14-9 DEGREES TO RADIANS: RAD(458)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description
492
Converts a 32-bit floating-point number from degrees to radians and places
the result in the specified result words.
RAD(458)
S
S: First source word
R: First result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
RAD(458) converts the 32-bit floating-point number in S+1 and S from
degrees to radians and places the result in R and R+1. (The floating point
source data must be in IEEE754 format.)
S+1
S
R+1
R
Degrees are converted to radians by means of the following formula:
Step program areas
Subroutines
OK
S
CIO 0 to CIO 6142
W0 to W510
H0 to H510
A0 to A958
T0000 to T4094
C0000 to C4094
D0 to D32766
@ D0 to @ D32767
*D0 to *D32767
#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 (degrees, 32-bit floating-point data)
Result (radians, 32-bit floating-point data)
Section 3-14
RAD(458)
@RAD(458)
Not supported.
Interrupt tasks
OK
R
A448 to A958
---

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Table of Contents