EasyManua.ls Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 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 #634 background imageLoading...
Page #634 background image
7-260
TAND(P)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The value of the specified device is not in the following range: (Error code: 4140)
0,2
-1022
| value of specified device | < 2
1024
The value of the designated device is 0. (Error code: 4140)
The result exceeds the following range (Operation results in an overflow):
2
1024
| Operation result | (Error code: 4141)
Program Example
(1) The following program performs a TAN operation on the angle data set by the 4 BCD digits
from X20 to X2F, and stores the results as 64-bit floating decimal point type real numbers at
D0 to D3.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 135]
Inputs an angle used for TAN
operation ( ).
Converts the input angle into a
64-bit floating-point real number ( ).
Converts the converted angle into a
radian value ( ).
Executes TAN operation
using the
converted radian value ( ).
1
2
3
4
Step Instruction Device
64-bit floating-point
real number
X2F
BCD value
0
D30
135
X20
Conversion
to BIN
BIN
b15
b0
BIN value
Conversion to radian
RADD
TAN operation
TAND
135
Conversion to
floating-point
FLTD
D21
135
D20D23 D22
64-bit floating-point
real number
D21
2.356194
D20D23 D22
64-bit floating-point
real number
D21
-1.000000
D20D23 D22
1
2
3
4

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
SeriesMELSEC Q Series
TypeModular PLC
Programming SoftwareGX Works2, GX Works3
CategoryProgrammable Logic Controller (PLC)
I/O ModulesDigital I/O, Analog I/O, High-Speed Counter, Positioning
CommunicationEthernet, CC-Link
Programming LanguagesLadder Logic, Structured Text, Function Block Diagram, Sequential Function Chart, Instruction List
MemoryFlash Memory
I/O PointsUp to 4096 points (expandable with additional modules)
Power SupplyAC or DC power supply options available, depending on the base unit and modules.
MountingDIN rail mounting
Operating Temperature0°C to 55°C
Storage Temperature-25°C to 75°C
Humidity5% to 95% (non-condensing)
Vibration Resistance10 to 57 Hz, 0.075mm amplitude
WeightVaries depending on the module, from a few grams to several kilograms.
Shock Resistance147 m/s² (3 times each in X, Y, Z directions)

Related product manuals