Mitsubishi MELSEC Q Series Programming Manual page 649

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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 contents of the designated device or the result of the addition are not "0", or not within
the following range(For the Universal model QCPU, LCPU):
-126
0, 2
• The value of the specified device is
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU)
*3: There are CPU modules that will not result in an operation error if
• The result exceeds the following range (Operation results in an overflow)
(For the Universal model QCPU, LCPU)
128
2
| Operation result |
• The value of the specified device is
(For the Universal model QCPU, LCPU)
Program Example
(1) The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians,
and stores results as 32-bit floating decimal point type real number at D20 and D21.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when X20 to X2F designate a value of 120]
X2F
X20
0
1 2 0
BCD value
| Contents of designated device | < 2
Device
Conversion
D0
Conversion to
b15
b0
floating-point
to BIN
120
BIN
BIN value
FLT
128
*3
0.
0 is specified. For details, refer to 3.2.4.
0, unnormalized number, nonnumeric, and ±
Inputs an angle to be converted
into a radian value (
)
1
Converts the input a 32-bit
floating-point real number (
2
Converts the converted angle into
a radian value (
)
3
D11
D10
1 2 0
RAD
RAD(P)
(Error code: 4140)
(Error code: 4100)
(Error code: 4141)
.
(Error code: 4140)
)
D21
D20
2 . 0 9 4 3 9 5
7-275
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents