EasyManua.ls Logo

Siemens SIMATIC S7-200 - Natural Exponential; Sine, Cosine, Tangent

Siemens SIMATIC S7-200
606 pages
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...
IEC 1131-3 Instructions
10-22
S7-200 Programmable Controller System Manual
A5E00066097-02
Natural Exponential
The Natural Exponential instruction performs the
exponential operation of e raised to the power of the
value in IN and places the result in OUT.
Error conditions that set ENO = 0: SM1.1 (overflow),
0006 (indirect address)
This instruction affects the following Special Memory bits:
SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative).
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SMD, SD, LD, AC, Constant, *VD, *AC, *LD REAL
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD REAL
Sine, Cosine, Tangent
The Sine instruction calculates the sine of the angle
value IN and places the result in OUT. The input angle is
in radians. If the angle is in degrees, it must be multiplied
by π /180 to convert it to radians.
The Cosine instruction calculates the cosine of the angle
value IN and places the result in OUT. The input angle is
in radians. If the angle is in degrees, it must be multiplied
by π /180 to convert it to radians.
The Tangent instruction calculates the tangent of the
angle value IN and places the result in OUT. The input
angle is in radians. If the angle is in degrees, it must be
multiplied by π /180 to convert it to radians.
Error conditions that set ENO = 0: SM1.1 (overflow),
0006 (indirect address)
These instructions affect the following Special Memory
bits:
SM1.0 (zero); SM1.1 (overflow); SM1.2 (negative).
Inputs/Outputs Operands Data Types
IN VD, ID, QD, MD, SMD, SD, LD, AC, Constant, *VD, *AC, *LD REAL
OUT VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *AC, *LD REAL
L
A
D
EXP
EN
IN OUT
ENO
F
B
D
L
A
D
224 226
✓✓
222221
L
A
D
SIN
EN
IN OUT
ENO
F
B
D
L
A
D
222 224
221
COS
EN
IN OUT
ENO
226
TAN
EN
IN OUT
ENO

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals