EasyManuals Logo

Panasonic FP Series User Manual

Panasonic FP Series
1345 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
Page #76 background imageLoading...
Page #76 background image
Arithmetic instructions
75
Part II IEC Instructions
TAN
Tangent
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
The accuracy of the calculation decreases as the angle data specified
in the input variable increases. Therefore, we recommend to enter
angle data in radians -2 and 2.
The number of steps may vary depending on the PLC and parameters
used, see also Table of Code Intensive Instructions in the online help.
PLC types
Availability of TAN (see page 1331)
Data type I/O Function
REAL input input value in radians
REAL output as input tangent of input value
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
input variable does not have the data
type REAL or input variable 52707176
R900B %MX0.900.11 permanently output variable is zero
R9009 %MX0.900.9 for an instant processing result overflows the output
variable
Description
TAN calculates the tangent of the input variable and writes the result into the output variable. The
angle data has to be specified in radians (value < 52707176).
Data types
Error flags
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables which are required for programming the function are declared in the
POU header.
This example uses variables. You can also use a constant for the input variable.
Body
The tangent of input_value is calculated and written into output_value.
LD

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals