EasyManuals 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 #670 background imageLoading...
Page #670 background image
7-296
LOG(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 designated by is negative. (Error code: 4100)
• The value designated by is 0. (Error code: 4100)
• 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): (Error code: 4140)
0, 2
-126
| Contents of designated device | < 2
128
• The value of the specified device is 0. *
3
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU) (Error code: 4100)
*3: 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 seeks the natural logarithm of the value "10" set by D50, and stores
the result at D30 and D31.
[Ladder Mode]
[List Mode]
[Operation]
S
S
Sets data used for natural
logarithm operation ( )
Converts the operation data
into a 32-bit floating-point real number ( )
Executes natural logarithm operation ( )
1
2
3
Step Instruction Device
D50
10
MOV
b15 b0
BIN value
10
Conversion to
floating-point
FLT
LOG operation
D41
D40
LOG
D31
D30
32-bit floating-point
real number
32-bit floating-point
real number
1
02
.
302585
1
2
3

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals