EasyManua.ls Logo

Automationdirect.com DL06 - Page 279

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-118
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Transcendental Functions
The DL06 CPU features special numerical functions to complement its real number capability.
The transcendental functions include the trigonometric sine, cosine, and tangent, and also their
inverses (arc sine, arc cosine, and arc tangent). The square root function is also grouped with
these other functions.
The transcendental math instructions operate on a real number in the accumulator (it cannot be
BCD or binary). The real number result resides in the accumulator. The square root function
operates on the full range of positive real numbers. The sine, cosine and tangent functions
require numbers expressed in radians. You can work with angles expressed in degrees by first
converting them to radians with the Radian (RADR) instruction, then performing the trig
function. All transcendental functions utilize the following flag bits.
SINR
COSR
TANR
AS INR
Discrete Bit Flags Description
SP53 On when the value of the operand is larger than the accumulator can work with.
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
SP70 On anytime the value in the accumulator is negative.
SP72 On anytime the value in the accumulator is an invalid floating point number
SP73 On when a signed addition or subtraction results in an incorrect sign bit.
SP75 On when a real number instruction is executed and a non-real number encountered.
DS Used
HPP
N/A
DS Used
HPP
N/A
DS Used
HPP
N/A
DS Used
HPP
N/A
Sine Real (SINR)
The Sine Real instruction takes the sine of the real number stored
in the accumulator. The result resides in the accumulator. Both
the original number and the result must be Real data type (IEEE
floating point format).
Cosine Real (COSR)
The Cosine Real instruction takes the cosine of the real number
stored in the accumulator. The result resides in the accumulator.
Both the original number and the result must be Real data type
(IEEE floating point format)..
Tangent Real (TANR)
The Tangent Real instruction takes the tangent of the real number
stored in the accumulator. The result resides in the accumulator.
Both the original number and the result must be Real data type
(IEEE floating point format).
Arc Sine Real (ASINR)
The Arc Sine Real instruction takes the inverse sine of the real
number stored in the accumulator. The result resides in the
accumulator. Both the original number and the result must be
Real data type (IEEE floating point format).