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 #624 background imageLoading...
Page #624 background image
7-250
SIN(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 0.
*2
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
The result exceeds the following range (Operation results in an overflow)
(For the Universal model QCPU, LCPU)
2
128
| Operation result | (Error code: 4141)
The value of the specified device is 0, unnormalized number, nonnumeric, and ± .
(For the Universal model QCPU, LCPU) (Error code: 4140)
Program Example
(1) The following program conducts a SIN operation on the angles stored in the four BCD digits
from X20 to X2F and stores the results at D0 and D1 as 32-bit floating decimal point type
real numbers.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 150]
Inputs an angle used for SIN
operation ( ).
Converts the input angle into
a 32-bit floating-point real
number ( ).
Converts the converted angle
into a radian value ( ).
Executes SIN operati
on
using the converted radian value ( ).
1
2
3
4
Step Instruction Device
Conversion to radian
32-bit floating-point
real number
D21
D20
RAD
SIN operation
32-bit floating-point
real number
D11
D10
SIN
32-bit floating-point
real number
D1
D0
X2F
BCD value
0
D30
150
X20
Conversion to BIN
BIN
b15
b0
BIN value
Conversion to floating-point
FLT
150
150
2
.
617994 0
.
500000

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